@powerhousedao/connect 6.0.0-dev.26 → 6.0.0-dev.27

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.
Files changed (79) hide show
  1. package/dist/assets/AddDriveModal-0hv05tuC.js +1 -0
  2. package/dist/assets/{ClearStorageModal-DcpPO-I3.js → ClearStorageModal-DabxxYFH.js} +1 -1
  3. package/dist/assets/CookiesPolicyModal-C__qDa93.js +1 -0
  4. package/dist/assets/CreateDocumentModal-D8T6zQTT.js +1 -0
  5. package/dist/assets/{DebugSettingsModal-C1ftvYc2.js → DebugSettingsModal-BWIwkk5x.js} +1 -1
  6. package/dist/assets/{DeleteDriveModal-szwiCtbM.js → DeleteDriveModal-BQUcmAfn.js} +1 -1
  7. package/dist/assets/DeleteItemModal-BbdwPLg2.js +1 -0
  8. package/dist/assets/DisclaimerModal-BVKcXPjd.js +1 -0
  9. package/dist/assets/DriveSettingsModal-CAlHEG0i.js +1 -0
  10. package/dist/assets/{ExportDocumentWithErrorsModal-BgssbqP3.js → ExportDocumentWithErrorsModal-DztAA32Q.js} +1 -1
  11. package/dist/assets/{SettingsModal-CT9Ygl-q.js → SettingsModal-Bcu9wxg4.js} +1 -1
  12. package/dist/assets/UpgradeDriveModal-zhOWMgKU.js +1 -0
  13. package/dist/assets/{design_system-C2cn-i_6.js → design_system-C3U_0NB8.js} +1 -1
  14. package/dist/assets/{design_system_connect-CEF8vh_d.js → design_system_connect-DZ5YJvUa.js} +5 -5
  15. package/dist/assets/{design_system_ui-D2fobb5H.js → design_system_ui-BOpZBu1l.js} +1 -1
  16. package/dist/assets/{document_drive-D_syJkZt.js → document_drive-CE7W_PLN.js} +1 -1
  17. package/dist/assets/{document_engineering-B2B5Du5E.js → document_engineering-Bxdy1Oty.js} +1 -1
  18. package/dist/assets/{document_model-Cvww2VA-.js → document_model-C_UNn5sq.js} +1 -1
  19. package/dist/assets/{document_model_editor-_uYV5sBF.js → document_model_editor-Bs-cRAi1.js} +4 -4
  20. package/dist/assets/{drive_explorer-XNO5XkhP.js → drive_explorer-DAWZaT0G.js} +2 -2
  21. package/dist/assets/{graphql-editor-nel36GVq.js → graphql-editor-V3ALaicq.js} +1 -1
  22. package/dist/assets/{hooks-MzUW1Gro.js → hooks-BTVZFkoS.js} +1 -1
  23. package/dist/assets/index-B6fwBGP_.css +1 -0
  24. package/dist/assets/index-DoaPBWBs.js +18 -0
  25. package/dist/assets/{index-Cx_zG0En.js → index-bB42X8b1.js} +2 -2
  26. package/dist/assets/{json-editor-f-IgBsIW.js → json-editor-IWrqiUPX.js} +1 -1
  27. package/dist/assets/{nodefs-V7ew4ffB.js → nodefs-MgvhWdQD.js} +1 -1
  28. package/dist/assets/{opfs-ahp-DguxTmgy.js → opfs-ahp-CB0bWWG3.js} +1 -1
  29. package/dist/assets/{reactor_browser-LOlgwHbC.js → reactor_browser-CLJCmB9P.js} +11 -11
  30. package/dist/assets/{state-schemas-C1TXdrU1.js → state-schemas-DeWxvIPb.js} +2 -2
  31. package/dist/index.html +10 -10
  32. package/lib/package.copy.json +1 -1
  33. package/lib/src/components/document-editor-container.d.ts.map +1 -1
  34. package/lib/src/components/document-editor-container.js +6 -3
  35. package/lib/src/components/document-editor-container.js.map +1 -1
  36. package/lib/src/components/editors.d.ts.map +1 -1
  37. package/lib/src/components/editors.js +10 -5
  38. package/lib/src/components/editors.js.map +1 -1
  39. package/lib/src/components/modal/modals/AddDriveModal.d.ts.map +1 -1
  40. package/lib/src/components/modal/modals/AddDriveModal.js +10 -4
  41. package/lib/src/components/modal/modals/AddDriveModal.js.map +1 -1
  42. package/lib/src/services/index.d.ts +0 -3
  43. package/lib/src/services/index.d.ts.map +1 -1
  44. package/lib/src/services/index.js +0 -3
  45. package/lib/src/services/index.js.map +1 -1
  46. package/lib/src/store/reactor.d.ts.map +1 -1
  47. package/lib/src/store/reactor.js +19 -13
  48. package/lib/src/store/reactor.js.map +1 -1
  49. package/lib/src/utils/reactor.d.ts +2 -2
  50. package/lib/src/utils/reactor.d.ts.map +1 -1
  51. package/lib/src/utils/reactor.js +3 -3
  52. package/lib/src/utils/reactor.js.map +1 -1
  53. package/lib/style.css +3 -0
  54. package/lib/test/utils/signer.test.js +25 -28
  55. package/lib/test/utils/signer.test.js.map +1 -1
  56. package/lib/tsconfig.tsbuildinfo +1 -1
  57. package/package.copy.json +2 -2
  58. package/package.json +10 -10
  59. package/dist/assets/AddDriveModal-CrueuRfQ.js +0 -1
  60. package/dist/assets/CookiesPolicyModal-D_fXQPVs.js +0 -1
  61. package/dist/assets/CreateDocumentModal-Dyo_3hio.js +0 -1
  62. package/dist/assets/DeleteItemModal-DidHhqe6.js +0 -1
  63. package/dist/assets/DisclaimerModal-BJZ4iCue.js +0 -1
  64. package/dist/assets/DriveSettingsModal-DFmkdHFh.js +0 -1
  65. package/dist/assets/UpgradeDriveModal-DiwcKft5.js +0 -1
  66. package/dist/assets/index-Df9NBjHI.css +0 -1
  67. package/dist/assets/index-c-YcxuA8.js +0 -18
  68. package/lib/src/services/renown/browser.d.ts +0 -2
  69. package/lib/src/services/renown/browser.d.ts.map +0 -1
  70. package/lib/src/services/renown/browser.js +0 -6
  71. package/lib/src/services/renown/browser.js.map +0 -1
  72. package/lib/src/services/renown/constants.d.ts +0 -130
  73. package/lib/src/services/renown/constants.d.ts.map +0 -1
  74. package/lib/src/services/renown/constants.js +0 -41
  75. package/lib/src/services/renown/constants.js.map +0 -1
  76. package/lib/src/services/renown/utils.d.ts +0 -7
  77. package/lib/src/services/renown/utils.d.ts.map +0 -1
  78. package/lib/src/services/renown/utils.js +0 -20
  79. package/lib/src/services/renown/utils.js.map +0 -1
@@ -1,130 +0,0 @@
1
- export declare const RENOWN_URL: string;
2
- export declare const RENOWN_NETWORK_ID: string;
3
- export declare const RENOWN_CHAIN_ID: number;
4
- export declare const DOMAIN_TYPE: readonly [{
5
- readonly name: "name";
6
- readonly type: "string";
7
- }, {
8
- readonly name: "version";
9
- readonly type: "string";
10
- }, {
11
- readonly name: "chainId";
12
- readonly type: "uint256";
13
- }, {
14
- readonly name: "verifyingContract";
15
- readonly type: "address";
16
- }];
17
- export declare const VERIFIABLE_CREDENTIAL_EIP712_TYPE: readonly [{
18
- readonly name: "@context";
19
- readonly type: "string[]";
20
- }, {
21
- readonly name: "type";
22
- readonly type: "string[]";
23
- }, {
24
- readonly name: "id";
25
- readonly type: "string";
26
- }, {
27
- readonly name: "issuer";
28
- readonly type: "Issuer";
29
- }, {
30
- readonly name: "credentialSubject";
31
- readonly type: "CredentialSubject";
32
- }, {
33
- readonly name: "credentialSchema";
34
- readonly type: "CredentialSchema";
35
- }, {
36
- readonly name: "issuanceDate";
37
- readonly type: "string";
38
- }, {
39
- readonly name: "expirationDate";
40
- readonly type: "string";
41
- }];
42
- export declare const CREDENTIAL_SCHEMA_EIP712_TYPE: readonly [{
43
- readonly name: "id";
44
- readonly type: "string";
45
- }, {
46
- readonly name: "type";
47
- readonly type: "string";
48
- }];
49
- export declare const CREDENTIAL_SUBJECT_TYPE: readonly [{
50
- readonly name: "app";
51
- readonly type: "string";
52
- }, {
53
- readonly name: "id";
54
- readonly type: "string";
55
- }, {
56
- readonly name: "name";
57
- readonly type: "string";
58
- }];
59
- export declare const ISSUER_TYPE: readonly [{
60
- readonly name: "id";
61
- readonly type: "string";
62
- }, {
63
- readonly name: "ethereumAddress";
64
- readonly type: "string";
65
- }];
66
- export declare const CREDENTIAL_TYPES: {
67
- readonly EIP712Domain: readonly [{
68
- readonly name: "name";
69
- readonly type: "string";
70
- }, {
71
- readonly name: "version";
72
- readonly type: "string";
73
- }, {
74
- readonly name: "chainId";
75
- readonly type: "uint256";
76
- }, {
77
- readonly name: "verifyingContract";
78
- readonly type: "address";
79
- }];
80
- readonly VerifiableCredential: readonly [{
81
- readonly name: "@context";
82
- readonly type: "string[]";
83
- }, {
84
- readonly name: "type";
85
- readonly type: "string[]";
86
- }, {
87
- readonly name: "id";
88
- readonly type: "string";
89
- }, {
90
- readonly name: "issuer";
91
- readonly type: "Issuer";
92
- }, {
93
- readonly name: "credentialSubject";
94
- readonly type: "CredentialSubject";
95
- }, {
96
- readonly name: "credentialSchema";
97
- readonly type: "CredentialSchema";
98
- }, {
99
- readonly name: "issuanceDate";
100
- readonly type: "string";
101
- }, {
102
- readonly name: "expirationDate";
103
- readonly type: "string";
104
- }];
105
- readonly CredentialSchema: readonly [{
106
- readonly name: "id";
107
- readonly type: "string";
108
- }, {
109
- readonly name: "type";
110
- readonly type: "string";
111
- }];
112
- readonly CredentialSubject: readonly [{
113
- readonly name: "app";
114
- readonly type: "string";
115
- }, {
116
- readonly name: "id";
117
- readonly type: "string";
118
- }, {
119
- readonly name: "name";
120
- readonly type: "string";
121
- }];
122
- readonly Issuer: readonly [{
123
- readonly name: "id";
124
- readonly type: "string";
125
- }, {
126
- readonly name: "ethereumAddress";
127
- readonly type: "string";
128
- }];
129
- };
130
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/services/renown/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,QAA2B,CAAC;AACnD,eAAO,MAAM,iBAAiB,QAAiC,CAAC;AAChE,eAAO,MAAM,eAAe,QAA+B,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;;;;;;;EAKd,CAAC;AAEX,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;EASpC,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;;;EAGhC,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;EAI1B,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;EAGd,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnB,CAAC"}
@@ -1,41 +0,0 @@
1
- import { connectConfig } from "@powerhousedao/connect/config";
2
- export const RENOWN_URL = connectConfig.renown.url;
3
- export const RENOWN_NETWORK_ID = connectConfig.renown.networkId;
4
- export const RENOWN_CHAIN_ID = connectConfig.renown.chainId;
5
- export const DOMAIN_TYPE = [
6
- { name: "name", type: "string" },
7
- { name: "version", type: "string" },
8
- { name: "chainId", type: "uint256" },
9
- { name: "verifyingContract", type: "address" },
10
- ];
11
- export const VERIFIABLE_CREDENTIAL_EIP712_TYPE = [
12
- { name: "@context", type: "string[]" },
13
- { name: "type", type: "string[]" },
14
- { name: "id", type: "string" },
15
- { name: "issuer", type: "Issuer" },
16
- { name: "credentialSubject", type: "CredentialSubject" },
17
- { name: "credentialSchema", type: "CredentialSchema" },
18
- { name: "issuanceDate", type: "string" },
19
- { name: "expirationDate", type: "string" },
20
- ];
21
- export const CREDENTIAL_SCHEMA_EIP712_TYPE = [
22
- { name: "id", type: "string" },
23
- { name: "type", type: "string" },
24
- ];
25
- export const CREDENTIAL_SUBJECT_TYPE = [
26
- { name: "app", type: "string" },
27
- { name: "id", type: "string" },
28
- { name: "name", type: "string" },
29
- ];
30
- export const ISSUER_TYPE = [
31
- { name: "id", type: "string" },
32
- { name: "ethereumAddress", type: "string" },
33
- ];
34
- export const CREDENTIAL_TYPES = {
35
- EIP712Domain: DOMAIN_TYPE,
36
- VerifiableCredential: VERIFIABLE_CREDENTIAL_EIP712_TYPE,
37
- CredentialSchema: CREDENTIAL_SCHEMA_EIP712_TYPE,
38
- CredentialSubject: CREDENTIAL_SUBJECT_TYPE,
39
- Issuer: ISSUER_TYPE,
40
- };
41
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/services/renown/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC;AACnD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC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,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC9B,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;CACxB,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC9B,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE;CACnC,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,YAAY,EAAE,WAAW;IACzB,oBAAoB,EAAE,iCAAiC;IACvD,gBAAgB,EAAE,6BAA6B;IAC/C,iBAAiB,EAAE,uBAAuB;IAC1C,MAAM,EAAE,WAAW;CACX,CAAC"}
@@ -1,7 +0,0 @@
1
- export type PKHDid = {
2
- networkId: string;
3
- chainId: number;
4
- address: `0x${string}`;
5
- };
6
- export declare function parsePkhDid(did: string): PKHDid;
7
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/services/renown/utils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,KAAK,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAqB/C"}
@@ -1,20 +0,0 @@
1
- export function parsePkhDid(did) {
2
- const parts = did.split(":");
3
- if (!did.startsWith("did:pkh:") || parts.length !== 5) {
4
- throw new Error("Invalid pkh did");
5
- }
6
- const [, , networkId, chainIdStr, address] = parts;
7
- if (!address.startsWith("0x")) {
8
- throw new Error(`Invalid address: ${address}`);
9
- }
10
- const chainId = Number(chainIdStr);
11
- if (isNaN(chainId)) {
12
- throw new Error(`Invalid chain id: ${chainIdStr}`);
13
- }
14
- return {
15
- chainId,
16
- networkId,
17
- address: address,
18
- };
19
- }
20
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/services/renown/utils.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,WAAW,CAAC,GAAW;IACrC,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC7B,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrC,CAAC;IACD,MAAM,CAAC,EAAE,AAAD,EAAG,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC;IAEnD,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,oBAAoB,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACnC,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,qBAAqB,UAAU,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,OAAO;QACL,OAAO;QACP,SAAS;QACT,OAAO,EAAE,OAA4B;KACtC,CAAC;AACJ,CAAC"}