@canton-network/core-wallet-ui-components 0.24.0 → 0.26.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.
- package/dist/components/app-header.d.ts.map +1 -1
- package/dist/components/custom-toast.d.ts +2 -1
- package/dist/components/custom-toast.d.ts.map +1 -1
- package/dist/components/not-found.d.ts.map +1 -1
- package/dist/components/transaction-card.d.ts +10 -10
- package/dist/components/transaction-card.d.ts.map +1 -1
- package/dist/components/transaction-detail.d.ts +10 -4
- package/dist/components/transaction-detail.d.ts.map +1 -1
- package/dist/components/wallet-picker.d.ts +46 -0
- package/dist/components/wallet-picker.d.ts.map +1 -0
- package/dist/index.cjs +340 -116
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1800 -1449
- package/dist/index.js.map +1 -1
- package/dist/routing.d.ts +7 -0
- package/dist/routing.d.ts.map +1 -0
- package/dist/windows/wallet-picker.d.ts +9 -0
- package/dist/windows/wallet-picker.d.ts.map +1 -0
- package/dist/windows/{discovery.stories.d.ts → wallet-picker.stories.d.ts} +3 -1
- package/dist/windows/wallet-picker.stories.d.ts.map +1 -0
- package/package.json +8 -7
- package/themes/default.css +28 -2
- package/dist/components/discovery.d.ts +0 -34
- package/dist/components/discovery.d.ts.map +0 -1
- package/dist/windows/discovery.d.ts +0 -3
- package/dist/windows/discovery.d.ts.map +0 -1
- package/dist/windows/discovery.stories.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-header.d.ts","sourceRoot":"","sources":["../../src/components/app-header.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"app-header.d.ts","sourceRoot":"","sources":["../../src/components/app-header.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAGtD,qBAAa,WAAY,SAAQ,KAAK;;CAIrC;AACD,qBACa,SAAU,SAAQ,WAAW;IACV,OAAO,EAAE,MAAM,CAAoB;IACtD,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,QAAQ,CAA2C;IAEpE,MAAM,CAAC,MAAM,iCAyIZ;IAED,iBAAiB;IAKjB,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,UAAU;IAIlB,2FAA2F;YAC7E,MAAM;IASpB,MAAM;CA0CT"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { BaseElement } from '../internal/base-element';
|
|
2
|
+
export type ToastMessageType = 'info' | 'success' | 'error';
|
|
2
3
|
export declare class Toast extends BaseElement {
|
|
3
4
|
static styles: import("lit").CSSResultGroup[];
|
|
4
5
|
title: string;
|
|
5
6
|
message: string;
|
|
6
7
|
buttonText: string;
|
|
7
|
-
type:
|
|
8
|
+
type: ToastMessageType;
|
|
8
9
|
closing: boolean;
|
|
9
10
|
private closeToast;
|
|
10
11
|
connectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-toast.d.ts","sourceRoot":"","sources":["../../src/components/custom-toast.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAEtD,qBACa,KAAM,SAAQ,WAAW;IAClC,MAAM,CAAC,MAAM,iCA8FZ;IAE2B,KAAK,SAAK;IACV,OAAO,SAAK;IACZ,UAAU,SAAS;IACnB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"custom-toast.d.ts","sourceRoot":"","sources":["../../src/components/custom-toast.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAEtD,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;AAE3D,qBACa,KAAM,SAAQ,WAAW;IAClC,MAAM,CAAC,MAAM,iCA8FZ;IAE2B,KAAK,SAAK;IACV,OAAO,SAAK;IACZ,UAAU,SAAS;IACnB,IAAI,EAAE,gBAAgB,CAAU;IAC/B,OAAO,UAAQ;IAE5C,OAAO,CAAC,UAAU;IAQlB,iBAAiB;IAKjB,MAAM;CA6BT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not-found.d.ts","sourceRoot":"","sources":["../../src/components/not-found.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"not-found.d.ts","sourceRoot":"","sources":["../../src/components/not-found.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAGtD,qBACa,QAAS,SAAQ,WAAW;IACrC,MAAM,CAAC,MAAM,iCAuBZ;IAE2B,IAAI,EAAE,MAAM,CAAM;IAE9C,MAAM;CAmBT"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { BaseElement } from '../internal/base-element.js';
|
|
2
|
-
|
|
3
|
-
export interface ParsedTransactionInfo {
|
|
4
|
-
packageName?: string;
|
|
5
|
-
moduleName?: string;
|
|
6
|
-
entityName?: string;
|
|
7
|
-
signatories?: string[];
|
|
8
|
-
stakeholders?: string[];
|
|
9
|
-
jsonString?: string;
|
|
10
|
-
}
|
|
2
|
+
import { ParsedTransactionInfo } from '@canton-network/core-tx-visualizer';
|
|
11
3
|
/** Emitted when the user clicks "Review" on a transaction card */
|
|
12
|
-
export declare class
|
|
4
|
+
export declare class TransactionCardReviewEvent extends Event {
|
|
5
|
+
commandId: string;
|
|
6
|
+
constructor(commandId: string);
|
|
7
|
+
}
|
|
8
|
+
/** Emitted when the user clicks "Delete" on a transaction card */
|
|
9
|
+
export declare class TransactionCardDeleteEvent extends Event {
|
|
13
10
|
commandId: string;
|
|
14
11
|
constructor(commandId: string);
|
|
15
12
|
}
|
|
@@ -20,7 +17,10 @@ export declare class WgTransactionCard extends BaseElement {
|
|
|
20
17
|
createdAt: string | null;
|
|
21
18
|
signedAt: string | null;
|
|
22
19
|
origin: string | null;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
isDeleting: boolean;
|
|
23
22
|
static styles: import("lit").CSSResultGroup[];
|
|
23
|
+
private get isDeleteDisabled();
|
|
24
24
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=transaction-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-card.d.ts","sourceRoot":"","sources":["../../src/components/transaction-card.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"transaction-card.d.ts","sourceRoot":"","sources":["../../src/components/transaction-card.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAEzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAE1E,kEAAkE;AAClE,qBAAa,0BAA2B,SAAQ,KAAK;IAC9B,SAAS,EAAE,MAAM;gBAAjB,SAAS,EAAE,MAAM;CAGvC;AAED,kEAAkE;AAClE,qBAAa,0BAA2B,SAAQ,KAAK;IAC9B,SAAS,EAAE,MAAM;gBAAjB,SAAS,EAAE,MAAM;CAGvC;AAED,qBACa,iBAAkB,SAAQ,WAAW;IAClC,SAAS,SAAK;IAEd,MAAM,SAAK;IAEK,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAO;IAE3D,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAE/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAO;IAE9B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAO;IAE5B,OAAO,EAAE,OAAO,CAAQ;IAExB,UAAU,EAAE,OAAO,CAAQ;IAEvC,MAAM,CAAC,MAAM,iCAAmC;IAEhD,OAAO,KAAK,gBAAgB,GAE3B;IAED,SAAS,CAAC,MAAM;CAsEnB"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { BaseElement } from '../internal/base-element.js';
|
|
2
|
-
import type { ParsedTransactionInfo } from '
|
|
2
|
+
import type { ParsedTransactionInfo } from '@canton-network/core-tx-visualizer';
|
|
3
3
|
/** Emitted when the user clicks the "Approve" button */
|
|
4
4
|
export declare class TransactionApproveEvent extends Event {
|
|
5
5
|
commandId: string;
|
|
6
6
|
constructor(commandId: string);
|
|
7
7
|
}
|
|
8
|
+
/** Emitted when the user clicks the "Delete" button */
|
|
9
|
+
export declare class TransactionDeleteEvent extends Event {
|
|
10
|
+
commandId: string;
|
|
11
|
+
constructor(commandId: string);
|
|
12
|
+
}
|
|
8
13
|
export declare class WgTransactionDetail extends BaseElement {
|
|
9
14
|
commandId: string;
|
|
10
15
|
status: string;
|
|
@@ -14,10 +19,11 @@ export declare class WgTransactionDetail extends BaseElement {
|
|
|
14
19
|
createdAt: string | null;
|
|
15
20
|
signedAt: string | null;
|
|
16
21
|
origin: string | null;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
isApproving: boolean;
|
|
23
|
+
isDeleting: boolean;
|
|
24
|
+
disabled: boolean;
|
|
20
25
|
static styles: import("lit").CSSResultGroup[];
|
|
26
|
+
private get areActionsDisabled();
|
|
21
27
|
private _copyToClipboard;
|
|
22
28
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
23
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-detail.d.ts","sourceRoot":"","sources":["../../src/components/transaction-detail.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"transaction-detail.d.ts","sourceRoot":"","sources":["../../src/components/transaction-detail.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAE/E,wDAAwD;AACxD,qBAAa,uBAAwB,SAAQ,KAAK;IAC3B,SAAS,EAAE,MAAM;gBAAjB,SAAS,EAAE,MAAM;CAGvC;AAED,uDAAuD;AACvD,qBAAa,sBAAuB,SAAQ,KAAK;IAC1B,SAAS,EAAE,MAAM;gBAAjB,SAAS,EAAE,MAAM;CAGvC;AAED,qBACa,mBAAoB,SAAQ,WAAW;IACpC,SAAS,SAAK;IAEd,MAAM,SAAK;IAEX,MAAM,SAAK;IAEX,EAAE,SAAK;IAES,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAO;IAE3D,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAE/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAO;IAE9B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAO;IAEX,WAAW,UAAQ;IAEnB,UAAU,UAAQ;IAGlB,QAAQ,UAAQ;IAE7C,MAAM,CAAC,MAAM,iCAcZ;IAED,OAAO,KAAK,kBAAkB,GAE7B;IAED,OAAO,CAAC,gBAAgB;IAIxB,SAAS,CAAC,MAAM;CA4HnB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type { WalletPickerEntry, WalletPickerResult, } from '@canton-network/core-types';
|
|
2
|
+
/**
|
|
3
|
+
* <swk-wallet-picker> — a wallet selection component modelled after PartyLayer's
|
|
4
|
+
* WalletModal. Designed for popup rendering (same pattern as <swk-discovery>).
|
|
5
|
+
*
|
|
6
|
+
* IMPORTANT: Because the popup serialises this class via .toString() and runs it
|
|
7
|
+
* inside a blob URL, every helper the class uses must be either:
|
|
8
|
+
* (a) a method / property on the class itself, or
|
|
9
|
+
* (b) a string literal inlined where it is used.
|
|
10
|
+
* Top-level module constants are NOT available at runtime in the popup.
|
|
11
|
+
*
|
|
12
|
+
* Communication:
|
|
13
|
+
* - Reads wallet entries from localStorage key `splice_wallet_picker_entries`
|
|
14
|
+
* - Posts a WalletPickerResult to window.opener via postMessage on selection
|
|
15
|
+
*
|
|
16
|
+
* States: list → connecting → connected | error
|
|
17
|
+
*/
|
|
18
|
+
export declare class WalletPicker extends HTMLElement {
|
|
19
|
+
static styles: string;
|
|
20
|
+
private readonly RECENT_KEY;
|
|
21
|
+
private root;
|
|
22
|
+
private entries;
|
|
23
|
+
private recentGateways;
|
|
24
|
+
private state;
|
|
25
|
+
private selectedEntry;
|
|
26
|
+
private errorMessage;
|
|
27
|
+
constructor();
|
|
28
|
+
private loadRecentGateways;
|
|
29
|
+
private saveRecentGateway;
|
|
30
|
+
private loadEntries;
|
|
31
|
+
private getAllEntries;
|
|
32
|
+
private selectWallet;
|
|
33
|
+
private connectCustomUrl;
|
|
34
|
+
setConnected(): void;
|
|
35
|
+
setError(message: string): void;
|
|
36
|
+
private renderHeader;
|
|
37
|
+
private renderWalletCard;
|
|
38
|
+
private renderList;
|
|
39
|
+
private renderConnecting;
|
|
40
|
+
private renderConnected;
|
|
41
|
+
private renderError;
|
|
42
|
+
render(): void;
|
|
43
|
+
connectedCallback(): void;
|
|
44
|
+
private el;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=wallet-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-picker.d.ts","sourceRoot":"","sources":["../../src/components/wallet-picker.ts"],"names":[],"mappings":"AAQA,YAAY,EACR,iBAAiB,EACjB,kBAAkB,GACrB,MAAM,4BAA4B,CAAA;AA+QnC;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,YAAa,SAAQ,WAAW;IACzC,MAAM,CAAC,MAAM,SAAoB;IAEjC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgC;IAE3D,OAAO,CAAC,IAAI,CAAa;IACzB,OAAO,CAAC,OAAO,CAOP;IACR,OAAO,CAAC,cAAc,CAAyC;IAC/D,OAAO,CAAC,KAAK,CAAwD;IACrE,OAAO,CAAC,aAAa,CAAiC;IACtD,OAAO,CAAC,YAAY,CAAK;;IAwBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,aAAa;IA+BrB,OAAO,CAAC,YAAY;IAwBpB,OAAO,CAAC,gBAAgB;IAcjB,YAAY,IAAI,IAAI;IAQpB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAQtC,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,gBAAgB;IA4BxB,OAAO,CAAC,UAAU;IA6ElB,OAAO,CAAC,gBAAgB;IA6BxB,OAAO,CAAC,eAAe;IA0BvB,OAAO,CAAC,WAAW;IA0CnB,MAAM,IAAI,IAAI;IA0Bd,iBAAiB,IAAI,IAAI;IAMzB,OAAO,CAAC,EAAE;CAYb"}
|