@canton-network/core-wallet-ui-components 0.24.0 → 0.25.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.
@@ -0,0 +1,9 @@
1
+ import type { WalletPickerEntry, WalletPickerResult } from '../components/wallet-picker.js';
2
+ /**
3
+ * Opens a wallet picker popup and resolves with the user's selection.
4
+ *
5
+ * Wallet entries are passed via localStorage and the user's choice is
6
+ * communicated back via postMessage.
7
+ */
8
+ export declare function pickWallet(entries: WalletPickerEntry[]): Promise<WalletPickerResult>;
9
+ //# sourceMappingURL=wallet-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet-picker.d.ts","sourceRoot":"","sources":["../../src/windows/wallet-picker.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACR,iBAAiB,EACjB,kBAAkB,EACrB,MAAM,gCAAgC,CAAA;AAIvC;;;;;GAKG;AACH,wBAAsB,UAAU,CAC5B,OAAO,EAAE,iBAAiB,EAAE,GAC7B,OAAO,CAAC,kBAAkB,CAAC,CAqC7B"}
@@ -3,4 +3,4 @@ declare const meta: Meta;
3
3
  export default meta;
4
4
  export declare const Default: StoryObj;
5
5
  export declare const Popup: StoryObj;
6
- //# sourceMappingURL=discovery.stories.d.ts.map
6
+ //# sourceMappingURL=wallet-picker.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet-picker.stories.d.ts","sourceRoot":"","sources":["../../src/windows/wallet-picker.stories.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AAIpE,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,eAAO,MAAM,OAAO,EAAE,QAiBrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,QAgBnB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canton-network/core-wallet-ui-components",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "type": "module",
5
5
  "description": "Reusable UI components for the Splice wallet",
6
6
  "license": "Apache-2.0",
@@ -39,10 +39,11 @@
39
39
  },
40
40
  "packageManager": "yarn@4.9.4",
41
41
  "dependencies": {
42
- "@canton-network/core-types": "^0.19.0",
43
- "@canton-network/core-wallet-auth": "^0.20.0",
44
- "@canton-network/core-wallet-store": "^0.23.0",
45
- "@canton-network/core-wallet-user-rpc-client": "^0.24.0",
42
+ "@canton-network/core-tx-visualizer": "^0.21.0",
43
+ "@canton-network/core-types": "^0.20.0",
44
+ "@canton-network/core-wallet-auth": "^0.21.0",
45
+ "@canton-network/core-wallet-store": "^0.24.0",
46
+ "@canton-network/core-wallet-user-rpc-client": "^0.25.0",
46
47
  "@popperjs/core": "^2.11.8",
47
48
  "bootstrap": "^5.3.8",
48
49
  "lit": "^3.3.2"
@@ -1,34 +0,0 @@
1
- /**
2
- * Discovery implements the view of the Wallet Gateway selection window.
3
- *
4
- * This component is a special case. It does not use Lit or BaseElement, because it is intended to be injected directly into client-side popup windows.
5
- * This has some implications about how styles are handled. We want to rely on the same base styles as BaseElement, but do not want to depend on the Lit runtime.
6
- *
7
- * Therefore, we define the styles as a string constant (SUBSTITUTABLE_CSS), and inject them into the shadow DOM manually.
8
- */
9
- export declare class Discovery extends HTMLElement {
10
- static observedAttributes: string[];
11
- private readonly DISCOVERY_LAST_USED_KEY;
12
- static styles: string;
13
- get walletExtensionLoaded(): boolean;
14
- set walletExtensionLoaded(val: boolean);
15
- private root;
16
- private selectedTabId;
17
- private verifiedKernels?;
18
- private lastUsed?;
19
- private getVerifiedGateways;
20
- constructor();
21
- tabs(): {
22
- label: string;
23
- id: string;
24
- }[];
25
- private renderExtensionOption;
26
- private renderKernelOption;
27
- private selectKernel;
28
- private mkElement;
29
- private renderLastUsed;
30
- render(): void;
31
- connectedCallback(): void;
32
- attributeChangedCallback(): void;
33
- }
34
- //# sourceMappingURL=discovery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/components/discovery.ts"],"names":[],"mappings":"AA6EA;;;;;;;GAOG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACtC,MAAM,CAAC,kBAAkB,WAA8B;IACvD,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CACD;IAEvC,MAAM,CAAC,MAAM,SAAoB;IAEjC,IAAI,qBAAqB,YAExB;IAED,IAAI,qBAAqB,CAAC,GAAG,SAAA,EAM5B;IAED,OAAO,CAAC,IAAI,CAAa;IACzB,OAAO,CAAC,aAAa,CAAkB;IACvC,OAAO,CAAC,eAAe,CAAC,CAAc;IACtC,OAAO,CAAC,QAAQ,CAAC,CAAwB;IAEzC,OAAO,CAAC,mBAAmB;;IAoE3B,IAAI;;;;IAaJ,OAAO,CAAC,qBAAqB;IAqB7B,OAAO,CAAC,kBAAkB;IAoD1B,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,SAAS;IAkBjB,OAAO,CAAC,cAAc;IAiCtB,MAAM;IAmGN,iBAAiB;IAIjB,wBAAwB;CAG3B"}
@@ -1,3 +0,0 @@
1
- import { DiscoverResult, GatewaysConfig } from '@canton-network/core-types';
2
- export declare function discover(verifiedGateways: GatewaysConfig[]): Promise<DiscoverResult>;
3
- //# sourceMappingURL=discovery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/windows/discovery.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAI3E,wBAAsB,QAAQ,CAC1B,gBAAgB,EAAE,cAAc,EAAE,GACnC,OAAO,CAAC,cAAc,CAAC,CAoCzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"discovery.stories.d.ts","sourceRoot":"","sources":["../../src/windows/discovery.stories.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AAIpE,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,eAAO,MAAM,OAAO,EAAE,QAiBrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,QAcnB,CAAA"}