@canton-network/core-wallet-ui-components 0.8.0 → 0.10.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/AppHeader.d.ts.map +1 -1
- package/dist/components/AppHeader.stories.d.ts +5 -0
- package/dist/components/AppHeader.stories.d.ts.map +1 -0
- package/dist/components/NetworkForm.d.ts +4 -2
- package/dist/components/NetworkForm.d.ts.map +1 -1
- package/dist/components/NetworkForm.stories.d.ts +7 -0
- package/dist/components/NetworkForm.stories.d.ts.map +1 -0
- package/dist/components/NetworkTable.stories.d.ts +6 -0
- package/dist/components/NetworkTable.stories.d.ts.map +1 -0
- package/dist/index.cjs +721 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +1051 -1287
- package/dist/index.js.map +1 -0
- package/dist/windows/discovery.stories.d.ts +6 -0
- package/dist/windows/discovery.stories.d.ts.map +1 -0
- package/package.json +17 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppHeader.d.ts","sourceRoot":"","sources":["../../src/components/AppHeader.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,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;IAC3F,OAAO,CAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"AppHeader.d.ts","sourceRoot":"","sources":["../../src/components/AppHeader.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,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;IAC3F,OAAO,CAAC,MAAM;IAgBd,MAAM;CAuCT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppHeader.stories.d.ts","sourceRoot":"","sources":["../../src/components/AppHeader.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,QAGrB,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Network } from '@canton-network/core-wallet-store';
|
|
2
2
|
import { BaseElement } from '../internal/BaseElement.js';
|
|
3
3
|
import { NetworkInputChangedEvent } from './NetworkFormInput.js';
|
|
4
|
+
import { Credentials, PasswordAuth } from '@canton-network/core-wallet-auth';
|
|
4
5
|
/**
|
|
5
6
|
* Emitted when the user clicks the Cancel button on the form
|
|
6
7
|
*/
|
|
@@ -17,7 +18,7 @@ export declare class NetworkEditSaveEvent extends Event {
|
|
|
17
18
|
type NetworkKeys = Exclude<keyof Network, 'auth' | 'ledgerApi'>;
|
|
18
19
|
type LedgerApiKeys = keyof Network['ledgerApi'];
|
|
19
20
|
type CommonAuth = Exclude<keyof Network['auth'], 'type' | 'admin'>;
|
|
20
|
-
type AdminAuth = keyof
|
|
21
|
+
type AdminAuth = keyof Credentials;
|
|
21
22
|
type PasswordAuthKeys = Exclude<keyof PasswordAuth, 'type' | 'admin'>;
|
|
22
23
|
export declare class NetworkForm extends BaseElement {
|
|
23
24
|
network: Network;
|
|
@@ -31,6 +32,7 @@ export declare class NetworkForm extends BaseElement {
|
|
|
31
32
|
setNetwork(field: NetworkKeys): (ev: NetworkInputChangedEvent) => void;
|
|
32
33
|
setLedgerApi(field: LedgerApiKeys): (ev: NetworkInputChangedEvent) => void;
|
|
33
34
|
setAuth(field: CommonAuth): (ev: NetworkInputChangedEvent) => void;
|
|
35
|
+
setAuthConfigUrl(): (ev: NetworkInputChangedEvent) => void;
|
|
34
36
|
setAdminAuth(field: AdminAuth): (ev: NetworkInputChangedEvent) => void;
|
|
35
37
|
setPasswordAuth(field: PasswordAuthKeys): (ev: NetworkInputChangedEvent) => void;
|
|
36
38
|
renderAuthForm(): import("lit-html").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkForm.d.ts","sourceRoot":"","sources":["../../src/components/NetworkForm.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"NetworkForm.d.ts","sourceRoot":"","sources":["../../src/components/NetworkForm.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAiB,MAAM,mCAAmC,CAAA;AAG1E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,EACH,WAAW,EAEX,YAAY,EAEf,MAAM,kCAAkC,CAAA;AAEzC;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;;CAIhD;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;IAC3C,OAAO,EAAE,OAAO,CAAA;gBAEJ,OAAO,EAAE,OAAO;CAI/B;AAED,KAAK,WAAW,GAAG,OAAO,CAAC,MAAM,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,CAAA;AAC/D,KAAK,aAAa,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,CAAA;AAE/C,KAAK,UAAU,GAAG,OAAO,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAA;AAClE,KAAK,SAAS,GAAG,MAAM,WAAW,CAAA;AAClC,KAAK,gBAAgB,GAAG,OAAO,CAAC,MAAM,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,CAAA;AAErE,qBACa,WAAY,SAAQ,WAAW;IACZ,OAAO,EAAE,OAAO,CAGhC;IACgB,QAAQ,EAAE,MAAM,CAAa;IAEhD,OAAO,CAAC,MAAM,CAAK;IAE5B,MAAM,CAAC,MAAM,iCAAuB;IAEpC,iBAAiB,IAAI,IAAI;IAOzB,gBAAgB,CAAC,CAAC,EAAE,KAAK;IAOzB,mBAAmB;IA8CnB,YAAY,CAAC,CAAC,EAAE,KAAK;IAerB,UAAU,CAAC,KAAK,EAAE,WAAW,IACjB,IAAI,wBAAwB;IAKxC,YAAY,CAAC,KAAK,EAAE,aAAa,IACrB,IAAI,wBAAwB;IAUxC,OAAO,CAAC,KAAK,EAAE,UAAU,IACb,IAAI,wBAAwB;IAKxC,gBAAgB,KACJ,IAAI,wBAAwB;IAQxC,YAAY,CAAC,KAAK,EAAE,SAAS,IACjB,IAAI,wBAAwB;IAOxC,eAAe,CAAC,KAAK,EAAE,gBAAgB,IAC3B,IAAI,wBAAwB;IAsBxC,cAAc;IAsId,MAAM;CA6ET"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
export declare const Default: StoryObj;
|
|
5
|
+
export declare const PopulatedImplicitAuth: StoryObj;
|
|
6
|
+
export declare const PopulatedPasswordAuth: StoryObj;
|
|
7
|
+
//# sourceMappingURL=NetworkForm.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkForm.stories.d.ts","sourceRoot":"","sources":["../../src/components/NetworkForm.stories.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AAKpE,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AAMnB,eAAO,MAAM,OAAO,EAAE,QAKrB,CAAA;AA2BD,eAAO,MAAM,qBAAqB,EAAE,QAQnC,CAAA;AA6BD,eAAO,MAAM,qBAAqB,EAAE,QAQnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkTable.stories.d.ts","sourceRoot":"","sources":["../../src/components/NetworkTable.stories.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AAMpE,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AA+BnB,eAAO,MAAM,OAAO,EAAE,QAOrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,QAWtB,CAAA"}
|