@canton-network/core-wallet-ui-components 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sessions.stories.d.ts","sourceRoot":"","sources":["../../src/components/Sessions.stories.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AAGpE,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,eAAO,MAAM,OAAO,EAAE,QAErB,CAAA;
|
|
1
|
+
{"version":3,"file":"Sessions.stories.d.ts","sourceRoot":"","sources":["../../src/components/Sessions.stories.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AAGpE,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,eAAO,MAAM,OAAO,EAAE,QAErB,CAAA;AAsCD,eAAO,MAAM,SAAS,EAAE,QAEvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-errors.d.ts","sourceRoot":"","sources":["../src/handle-errors.ts"],"names":[],"mappings":"AAYA,KAAK,YAAY,GAAG;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"handle-errors.d.ts","sourceRoot":"","sources":["../src/handle-errors.ts"],"names":[],"mappings":"AAYA,KAAK,YAAY,GAAG;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,YAAY,QA0CnE"}
|
package/dist/index.cjs
CHANGED
|
@@ -956,7 +956,7 @@
|
|
|
956
956
|
background: var(--bs-secondary-bg);
|
|
957
957
|
font-weight: 600;
|
|
958
958
|
}
|
|
959
|
-
`];Eo([v({type:Array})],exports.WgSessions.prototype,"sessions",2);exports.WgSessions=Eo([j("wg-sessions")],exports.WgSessions);g().regex(/^[a-zA-Z0-9:_-]*::[a-z0-9]*/,"Invalid party ID format");var rl=w({method:g(),params:N(rr([Et(q()),ws(g(),q())]))}),ol=w({result:N(q())}),Ft=w({error:w({code:$t(),message:g(),data:N(g().or($t()).or(ds()).or(mo()).or(q()))})}),el=rr([ol,Ft]),So=w({jsonrpc:S("2.0"),id:N(g().or($t()).or(bs()).or(mo()))}),al=or(So,rl),il=or(So,el);st("type",[w({type:S("SPLICE_WALLET_REQUEST"),request:al}),w({type:S("SPLICE_WALLET_RESPONSE"),response:il}),w({type:S("SPLICE_WALLET_EXT_READY")}),w({type:S("SPLICE_WALLET_EXT_ACK")}),w({type:S("SPLICE_WALLET_EXT_OPEN"),url:g().url()}),w({type:S("SPLICE_WALLET_IDP_AUTH_SUCCESS"),token:g()})]);st("walletType",[w({walletType:S("extension"),url:N(go())}),w({walletType:S("remote"),url:g().url()})]);w({name:g(),rpcUrl:g()});function Ao(t,r){const o=document.createElement("custom-toast");let e=-1,a="";if(Ft.safeParse(t).success){const i=Ft.parse(t);e=i.error.code,a=i.error.message}switch(e){case-32600:o.title="Invalid Request";break;case-32601:o.title="Method Not Found";break;case-32602:o.title="Invalid Parameters";break;case-32603:o.title="Internal Error";break;default:o.title=r?.title||"Unexpected Error";break}o.message=a||r?.message||"Something went wrong. Please try again.",o.type="error",o.buttonText=r?.buttonText||"Dismiss",document.body.appendChild(o)}var nl=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,jo=(t,r,o,e)=>{for(var a=e>1?void 0:e?sl(r,o):r,i=t.length-1,n;i>=0;i--)(n=t[i])&&(a=(e?n(r,o,a):n(a))||a);return e&&a&&nl(r,o,a),a};exports.WgWalletsSync=class extends h{constructor(){super(...arguments),this.client=null,this.syncWallets=async()=>{try{const r=await this.client?.request("syncWallets");alert(`Wallet sync completed:
|
|
959
|
+
`];Eo([v({type:Array})],exports.WgSessions.prototype,"sessions",2);exports.WgSessions=Eo([j("wg-sessions")],exports.WgSessions);g().regex(/^[a-zA-Z0-9:_-]*::[a-z0-9]*/,"Invalid party ID format");var rl=w({method:g(),params:N(rr([Et(q()),ws(g(),q())]))}),ol=w({result:N(q())}),Ft=w({error:w({code:$t(),message:g(),data:N(g().or($t()).or(ds()).or(mo()).or(q()))})}),el=rr([ol,Ft]),So=w({jsonrpc:S("2.0"),id:N(g().or($t()).or(bs()).or(mo()))}),al=or(So,rl),il=or(So,el);st("type",[w({type:S("SPLICE_WALLET_REQUEST"),request:al}),w({type:S("SPLICE_WALLET_RESPONSE"),response:il}),w({type:S("SPLICE_WALLET_EXT_READY")}),w({type:S("SPLICE_WALLET_EXT_ACK")}),w({type:S("SPLICE_WALLET_EXT_OPEN"),url:g().url()}),w({type:S("SPLICE_WALLET_IDP_AUTH_SUCCESS"),token:g(),sessionId:g()})]);st("walletType",[w({walletType:S("extension"),url:N(go())}),w({walletType:S("remote"),url:g().url()})]);w({name:g(),rpcUrl:g()});function Ao(t,r){const o=document.createElement("custom-toast");let e=-1,a="";if(t instanceof Error&&(a=t.message),Ft.safeParse(t).success){const i=Ft.parse(t);e=i.error.code,a=i.error.message}switch(e){case-32600:o.title="Invalid Request";break;case-32601:o.title="Method Not Found";break;case-32602:o.title="Invalid Parameters";break;case-32603:o.title="Internal Error";break;default:o.title=r?.title||"Unexpected Error";break}o.message=a||r?.message||"Something went wrong. Please try again.",o.type="error",o.buttonText=r?.buttonText||"Dismiss",document.body.appendChild(o)}var nl=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,jo=(t,r,o,e)=>{for(var a=e>1?void 0:e?sl(r,o):r,i=t.length-1,n;i>=0;i--)(n=t[i])&&(a=(e?n(r,o,a):n(a))||a);return e&&a&&nl(r,o,a),a};exports.WgWalletsSync=class extends h{constructor(){super(...arguments),this.client=null,this.syncWallets=async()=>{try{const r=await this.client?.request("syncWallets");alert(`Wallet sync completed:
|
|
960
960
|
➕ ${r?.added.length} new wallets.
|
|
961
961
|
➖ ${r?.removed.length} old wallets.`)}catch(r){Ao(r)}}}connectedCallback(){super.connectedCallback()}render(){return m.html`
|
|
962
962
|
<div class="mb-5">
|