@mictonode/widget
v0.3.27
Published
Ping widget
Maintainers
Readme
@mictonode/widget
@mictonode/widget packages MictoNode wallet and transaction web components
for Cosmos SDK applications.
Install
npm install @mictonode/[email protected]Or load the ESM artifact from a CDN:
https://cdn.jsdelivr.net/npm/@mictonode/[email protected]/dist/ping-widget.jsUsage
Import the ESM package once to register the custom elements:
import widget from '@mictonode/widget';
console.log(widget.version); // 0.3.21Then use the registered custom elements in your page:
<ping-connect-wallet></ping-connect-wallet>
<ping-tx-dialog></ping-tx-dialog>
<ping-token-convert></ping-token-convert>Distribution files
dist/ping-widget.jsis the ESM build.dist/ping-widget.umd.cjsis the UMD build.
Contributor verification
Use Node 22.14.0 (pinned in .nvmrc) and Yarn Classic 1.22.22 for local
widget work. The package deliberately has no consumer-facing engines field:
the published browser artifact must not impose the contributor build-tool
runtime on consuming applications.
corepack enable
corepack prepare [email protected] --activate
yarn install --frozen-lockfile
yarn build