@embarkai/ui-kit 0.4.76 → 0.4.78
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 +1 -1
- package/dist/index.cjs +451 -437
- package/dist/index.d.cts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +340 -326
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -288,7 +288,12 @@ interface ProviderConfig {
|
|
|
288
288
|
rpcUrl: string;
|
|
289
289
|
explorerUrl?: string;
|
|
290
290
|
testnet?: boolean;
|
|
291
|
+
/** if true, chain selector is disabled and user cannot switch to other chains */
|
|
291
292
|
forceChain?: boolean;
|
|
293
|
+
/** if true, SDK will ask user to switch to the configured chain on any attempt to change chain.
|
|
294
|
+
* - users can still switch manually,
|
|
295
|
+
* - dApp sets chain to configured on reload */
|
|
296
|
+
autoswitch?: boolean;
|
|
292
297
|
};
|
|
293
298
|
services: {
|
|
294
299
|
assetApiUrl?: string;
|
|
@@ -315,7 +320,13 @@ interface ProviderConfig {
|
|
|
315
320
|
provider?: 'sumsub' | 'uaepass' | 'custom';
|
|
316
321
|
options?: Record<string, any>;
|
|
317
322
|
};
|
|
318
|
-
/**
|
|
323
|
+
/**
|
|
324
|
+
* Affects the language selector component (not actual i18n translations).
|
|
325
|
+
* - For cases if somehow there is no language support in embarkAI, but language required in dApp.
|
|
326
|
+
* Translations object with extra lang map results in language selector option appearing, although if ":passport" namespace is missing embarkAI still falls back to English for all text.
|
|
327
|
+
* - should be same object as registered in i18n.
|
|
328
|
+
* - ```{ [language]: { [project namespace]: {resource map object} } }```
|
|
329
|
+
*/
|
|
319
330
|
translations?: Record<string, Record<string, unknown>>;
|
|
320
331
|
}
|
|
321
332
|
|
|
@@ -1209,7 +1220,6 @@ declare class Onboarder {
|
|
|
1209
1220
|
*/
|
|
1210
1221
|
registerElement(onboardingElementId: string, elementRef?: HTMLElement | null): void;
|
|
1211
1222
|
getCurrentStep(): TourStep | null;
|
|
1212
|
-
getCurrentPointer(): number;
|
|
1213
1223
|
}
|
|
1214
1224
|
declare const onboarder: Onboarder;
|
|
1215
1225
|
|
|
@@ -2297,7 +2307,7 @@ declare function useSmartAccountTransactions(): {
|
|
|
2297
2307
|
}>;
|
|
2298
2308
|
};
|
|
2299
2309
|
|
|
2300
|
-
declare const ONBOARDING_TOURS: Partial<Record<PageKey, () => TourStep[]>>;
|
|
2310
|
+
declare const ONBOARDING_TOURS: Partial<Record<PageKey, (options?: Record<string, unknown>) => TourStep[]>>;
|
|
2301
2311
|
|
|
2302
2312
|
type FinchpayTransactionStatus = 'CREATED' | 'PROCESSING' | 'REFUNDED' | 'SENDING' | 'HOLD' | 'COMPLETE' | 'ERROR' | 'EXPIRED' | 'REJECTED_BY_ANTI_FRAUD';
|
|
2303
2313
|
interface FinchpayTxPayload {
|
|
@@ -2770,6 +2780,7 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2770
2780
|
checkingAvailability: string;
|
|
2771
2781
|
nicknameAvailable: string;
|
|
2772
2782
|
nicknameNotAvailable: string;
|
|
2783
|
+
nicknameChanged: string;
|
|
2773
2784
|
};
|
|
2774
2785
|
initialUser: {
|
|
2775
2786
|
welcome: string;
|
|
@@ -3308,6 +3319,7 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
3308
3319
|
checkingAvailability: string;
|
|
3309
3320
|
nicknameAvailable: string;
|
|
3310
3321
|
nicknameNotAvailable: string;
|
|
3322
|
+
nicknameChanged: string;
|
|
3311
3323
|
};
|
|
3312
3324
|
initialUser: {
|
|
3313
3325
|
welcome: string;
|
|
@@ -3846,6 +3858,7 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
3846
3858
|
checkingAvailability: string;
|
|
3847
3859
|
nicknameAvailable: string;
|
|
3848
3860
|
nicknameNotAvailable: string;
|
|
3861
|
+
nicknameChanged: string;
|
|
3849
3862
|
};
|
|
3850
3863
|
initialUser: {
|
|
3851
3864
|
welcome: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -288,7 +288,12 @@ interface ProviderConfig {
|
|
|
288
288
|
rpcUrl: string;
|
|
289
289
|
explorerUrl?: string;
|
|
290
290
|
testnet?: boolean;
|
|
291
|
+
/** if true, chain selector is disabled and user cannot switch to other chains */
|
|
291
292
|
forceChain?: boolean;
|
|
293
|
+
/** if true, SDK will ask user to switch to the configured chain on any attempt to change chain.
|
|
294
|
+
* - users can still switch manually,
|
|
295
|
+
* - dApp sets chain to configured on reload */
|
|
296
|
+
autoswitch?: boolean;
|
|
292
297
|
};
|
|
293
298
|
services: {
|
|
294
299
|
assetApiUrl?: string;
|
|
@@ -315,7 +320,13 @@ interface ProviderConfig {
|
|
|
315
320
|
provider?: 'sumsub' | 'uaepass' | 'custom';
|
|
316
321
|
options?: Record<string, any>;
|
|
317
322
|
};
|
|
318
|
-
/**
|
|
323
|
+
/**
|
|
324
|
+
* Affects the language selector component (not actual i18n translations).
|
|
325
|
+
* - For cases if somehow there is no language support in embarkAI, but language required in dApp.
|
|
326
|
+
* Translations object with extra lang map results in language selector option appearing, although if ":passport" namespace is missing embarkAI still falls back to English for all text.
|
|
327
|
+
* - should be same object as registered in i18n.
|
|
328
|
+
* - ```{ [language]: { [project namespace]: {resource map object} } }```
|
|
329
|
+
*/
|
|
319
330
|
translations?: Record<string, Record<string, unknown>>;
|
|
320
331
|
}
|
|
321
332
|
|
|
@@ -1209,7 +1220,6 @@ declare class Onboarder {
|
|
|
1209
1220
|
*/
|
|
1210
1221
|
registerElement(onboardingElementId: string, elementRef?: HTMLElement | null): void;
|
|
1211
1222
|
getCurrentStep(): TourStep | null;
|
|
1212
|
-
getCurrentPointer(): number;
|
|
1213
1223
|
}
|
|
1214
1224
|
declare const onboarder: Onboarder;
|
|
1215
1225
|
|
|
@@ -2297,7 +2307,7 @@ declare function useSmartAccountTransactions(): {
|
|
|
2297
2307
|
}>;
|
|
2298
2308
|
};
|
|
2299
2309
|
|
|
2300
|
-
declare const ONBOARDING_TOURS: Partial<Record<PageKey, () => TourStep[]>>;
|
|
2310
|
+
declare const ONBOARDING_TOURS: Partial<Record<PageKey, (options?: Record<string, unknown>) => TourStep[]>>;
|
|
2301
2311
|
|
|
2302
2312
|
type FinchpayTransactionStatus = 'CREATED' | 'PROCESSING' | 'REFUNDED' | 'SENDING' | 'HOLD' | 'COMPLETE' | 'ERROR' | 'EXPIRED' | 'REJECTED_BY_ANTI_FRAUD';
|
|
2303
2313
|
interface FinchpayTxPayload {
|
|
@@ -2770,6 +2780,7 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2770
2780
|
checkingAvailability: string;
|
|
2771
2781
|
nicknameAvailable: string;
|
|
2772
2782
|
nicknameNotAvailable: string;
|
|
2783
|
+
nicknameChanged: string;
|
|
2773
2784
|
};
|
|
2774
2785
|
initialUser: {
|
|
2775
2786
|
welcome: string;
|
|
@@ -3308,6 +3319,7 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
3308
3319
|
checkingAvailability: string;
|
|
3309
3320
|
nicknameAvailable: string;
|
|
3310
3321
|
nicknameNotAvailable: string;
|
|
3322
|
+
nicknameChanged: string;
|
|
3311
3323
|
};
|
|
3312
3324
|
initialUser: {
|
|
3313
3325
|
welcome: string;
|
|
@@ -3846,6 +3858,7 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
3846
3858
|
checkingAvailability: string;
|
|
3847
3859
|
nicknameAvailable: string;
|
|
3848
3860
|
nicknameNotAvailable: string;
|
|
3861
|
+
nicknameChanged: string;
|
|
3849
3862
|
};
|
|
3850
3863
|
initialUser: {
|
|
3851
3864
|
welcome: string;
|