@canton-network/core-wallet-ui-components 0.19.0 → 0.19.1
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.
- package/dist/handle-errors.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +52 -49
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -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,QA6CnE"}
|
package/dist/index.cjs
CHANGED
|
@@ -975,7 +975,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
975
975
|
background: var(--bs-secondary-bg);
|
|
976
976
|
font-weight: 600;
|
|
977
977
|
}
|
|
978
|
-
`];Uo([w({type:Array})],exports.WgSessions.prototype,"sessions",2);exports.WgSessions=Uo([T("wg-sessions")],exports.WgSessions);h().regex(/^[a-zA-Z0-9:_-]*::[a-z0-9]*/,"Invalid party ID format");var Ml=y({method:h(),params:F(sr([Ot(H()),ol(h(),H())]))}),Dl=y({result:F(H())}),Yt=y({error:y({code:It(),message:h(),data:F(h().or(It()).or(Gs()).or($o()).or(H()))})}),Ll=sr([Dl,Yt]),Mo=y({jsonrpc:j("2.0"),id:F(h().or(It()).or(qs()).or($o()))}),Bl=lr(Mo,Ml),Fl=lr(Mo,Ll);pt("type",[y({type:j("SPLICE_WALLET_REQUEST"),request:Bl}),y({type:j("SPLICE_WALLET_RESPONSE"),response:Fl}),y({type:j("SPLICE_WALLET_EXT_READY")}),y({type:j("SPLICE_WALLET_EXT_ACK")}),y({type:j("SPLICE_WALLET_EXT_OPEN"),url:h().url()}),y({type:j("SPLICE_WALLET_IDP_AUTH_SUCCESS"),token:h(),sessionId:h()})]);pt("walletType",[y({walletType:j("extension"),url:F(So())}),y({walletType:j("remote"),url:h().url()})]);y({name:h(),rpcUrl:h()});function Do(t,r){const o=document.createElement("custom-toast");let e=-1,a="";if(t instanceof Error&&(a=t.message),Yt.safeParse(t).success){const i=Yt.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 Wl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,Lo=(t,r,o,e)=>{for(var a=e>1?void 0:e?Gl(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&&Wl(r,o,a),a};exports.WgWalletsSync=class extends x{constructor(){super(...arguments),this.client=null,this.syncWallets=async()=>{try{const r=await this.client?.request("syncWallets");alert(`Wallet sync completed:
|
|
978
|
+
`];Uo([w({type:Array})],exports.WgSessions.prototype,"sessions",2);exports.WgSessions=Uo([T("wg-sessions")],exports.WgSessions);h().regex(/^[a-zA-Z0-9:_-]*::[a-z0-9]*/,"Invalid party ID format");var Ml=y({method:h(),params:F(sr([Ot(H()),ol(h(),H())]))}),Dl=y({result:F(H())}),Yt=y({error:y({code:It(),message:h(),data:F(h().or(It()).or(Gs()).or($o()).or(H()))})}),Ll=sr([Dl,Yt]),Mo=y({jsonrpc:j("2.0"),id:F(h().or(It()).or(qs()).or($o()))}),Bl=lr(Mo,Ml),Fl=lr(Mo,Ll);pt("type",[y({type:j("SPLICE_WALLET_REQUEST"),request:Bl}),y({type:j("SPLICE_WALLET_RESPONSE"),response:Fl}),y({type:j("SPLICE_WALLET_EXT_READY")}),y({type:j("SPLICE_WALLET_EXT_ACK")}),y({type:j("SPLICE_WALLET_EXT_OPEN"),url:h().url()}),y({type:j("SPLICE_WALLET_IDP_AUTH_SUCCESS"),token:h(),sessionId:h()})]);pt("walletType",[y({walletType:j("extension"),url:F(So())}),y({walletType:j("remote"),url:h().url()})]);y({name:h(),rpcUrl:h()});function Do(t,r){const o=document.createElement("custom-toast");let e=-1,a="";if(t instanceof Error&&(a=t.message),Yt.safeParse(t).success){const i=Yt.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;case 413:o.title="Payload Too Large";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 Wl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,Lo=(t,r,o,e)=>{for(var a=e>1?void 0:e?Gl(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&&Wl(r,o,a),a};exports.WgWalletsSync=class extends x{constructor(){super(...arguments),this.client=null,this.syncWallets=async()=>{try{const r=await this.client?.request("syncWallets");alert(`Wallet sync completed:
|
|
979
979
|
➕ ${r?.added.length} new wallets.
|
|
980
980
|
➖ ${r?.removed.length} old wallets.`)}catch(r){Do(r)}}}connectedCallback(){super.connectedCallback()}render(){return g.html`
|
|
981
981
|
<div class="mb-5">
|