@embarkai/ui-kit 0.3.4 → 0.4.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/iframe/index.html +1 -1
- package/dist/iframe/main.js +71 -1
- package/dist/iframe/main.js.map +1 -1
- package/dist/index.cjs +3292 -1624
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +2984 -1321
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -138,6 +138,7 @@ declare global {
|
|
|
138
138
|
__EMBARK_SERVICES__?: Partial<{
|
|
139
139
|
tssUrl: string;
|
|
140
140
|
shareVaultUrl: string;
|
|
141
|
+
dashboardApiUrl: string;
|
|
141
142
|
tssRequireWasm: boolean;
|
|
142
143
|
tssWasmDebug: boolean;
|
|
143
144
|
}>;
|
|
@@ -260,6 +261,7 @@ interface ProviderConfig {
|
|
|
260
261
|
services: {
|
|
261
262
|
tssUrl: string;
|
|
262
263
|
shareVaultUrl: string;
|
|
264
|
+
dashboardApiUrl?: string;
|
|
263
265
|
iframeUrl?: string;
|
|
264
266
|
tssRequireWasm?: boolean;
|
|
265
267
|
tssWasmDebug?: boolean;
|
|
@@ -840,6 +842,18 @@ declare class IframeManager {
|
|
|
840
842
|
* Returns encrypted data that parent can upload/download
|
|
841
843
|
*/
|
|
842
844
|
encryptBackupData(userId: string, password?: string): Promise<any>;
|
|
845
|
+
/**
|
|
846
|
+
* Encrypt current keyshare as EnvelopeEncryptedShare (for Guardian backup)
|
|
847
|
+
*/
|
|
848
|
+
encryptEnvelopeData(userId: string, password: string): Promise<string>;
|
|
849
|
+
/**
|
|
850
|
+
* Decrypt EnvelopeEncryptedShare and restore keyshare (for Guardian restore)
|
|
851
|
+
*/
|
|
852
|
+
decryptAndRestoreEnvelope(userId: string, envelopeJson: string, password: string): Promise<{
|
|
853
|
+
success: boolean;
|
|
854
|
+
timestamp: number;
|
|
855
|
+
error?: string;
|
|
856
|
+
}>;
|
|
843
857
|
/**
|
|
844
858
|
* Restore keyshare from local file backup
|
|
845
859
|
*/
|
|
@@ -1021,7 +1035,11 @@ declare enum PageKey {
|
|
|
1021
1035
|
KEYSHARE_RESTORE = "keyshare-restore",
|
|
1022
1036
|
CHAIN = "chain",
|
|
1023
1037
|
CHAIN_SWITCH_REQUEST = "chain-switch-request",
|
|
1024
|
-
NICKNAME_SETTINGS = "nickname-settings"
|
|
1038
|
+
NICKNAME_SETTINGS = "nickname-settings",
|
|
1039
|
+
DEVICES = "devices",
|
|
1040
|
+
DEVICE_LINK = "device-link",
|
|
1041
|
+
DEVICE_MANAGE = "device-manage",
|
|
1042
|
+
DEVICE_RESTORE = "device-restore"
|
|
1025
1043
|
}
|
|
1026
1044
|
/** WIP: need to develop page options typeset, i.e options: AuthOpenOptions | BuyOpenOption etc */
|
|
1027
1045
|
interface PageOpenParams {
|
package/dist/index.d.ts
CHANGED
|
@@ -138,6 +138,7 @@ declare global {
|
|
|
138
138
|
__EMBARK_SERVICES__?: Partial<{
|
|
139
139
|
tssUrl: string;
|
|
140
140
|
shareVaultUrl: string;
|
|
141
|
+
dashboardApiUrl: string;
|
|
141
142
|
tssRequireWasm: boolean;
|
|
142
143
|
tssWasmDebug: boolean;
|
|
143
144
|
}>;
|
|
@@ -260,6 +261,7 @@ interface ProviderConfig {
|
|
|
260
261
|
services: {
|
|
261
262
|
tssUrl: string;
|
|
262
263
|
shareVaultUrl: string;
|
|
264
|
+
dashboardApiUrl?: string;
|
|
263
265
|
iframeUrl?: string;
|
|
264
266
|
tssRequireWasm?: boolean;
|
|
265
267
|
tssWasmDebug?: boolean;
|
|
@@ -840,6 +842,18 @@ declare class IframeManager {
|
|
|
840
842
|
* Returns encrypted data that parent can upload/download
|
|
841
843
|
*/
|
|
842
844
|
encryptBackupData(userId: string, password?: string): Promise<any>;
|
|
845
|
+
/**
|
|
846
|
+
* Encrypt current keyshare as EnvelopeEncryptedShare (for Guardian backup)
|
|
847
|
+
*/
|
|
848
|
+
encryptEnvelopeData(userId: string, password: string): Promise<string>;
|
|
849
|
+
/**
|
|
850
|
+
* Decrypt EnvelopeEncryptedShare and restore keyshare (for Guardian restore)
|
|
851
|
+
*/
|
|
852
|
+
decryptAndRestoreEnvelope(userId: string, envelopeJson: string, password: string): Promise<{
|
|
853
|
+
success: boolean;
|
|
854
|
+
timestamp: number;
|
|
855
|
+
error?: string;
|
|
856
|
+
}>;
|
|
843
857
|
/**
|
|
844
858
|
* Restore keyshare from local file backup
|
|
845
859
|
*/
|
|
@@ -1021,7 +1035,11 @@ declare enum PageKey {
|
|
|
1021
1035
|
KEYSHARE_RESTORE = "keyshare-restore",
|
|
1022
1036
|
CHAIN = "chain",
|
|
1023
1037
|
CHAIN_SWITCH_REQUEST = "chain-switch-request",
|
|
1024
|
-
NICKNAME_SETTINGS = "nickname-settings"
|
|
1038
|
+
NICKNAME_SETTINGS = "nickname-settings",
|
|
1039
|
+
DEVICES = "devices",
|
|
1040
|
+
DEVICE_LINK = "device-link",
|
|
1041
|
+
DEVICE_MANAGE = "device-manage",
|
|
1042
|
+
DEVICE_RESTORE = "device-restore"
|
|
1025
1043
|
}
|
|
1026
1044
|
/** WIP: need to develop page options typeset, i.e options: AuthOpenOptions | BuyOpenOption etc */
|
|
1027
1045
|
interface PageOpenParams {
|