@dynamic-labs/sdk-react-core 2.1.0-alpha.2 → 2.1.0-alpha.4
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/CHANGELOG.md +26 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +13 -14
- package/src/index.cjs +0 -2
- package/src/index.d.ts +1 -1
- package/src/index.js +0 -1
- package/src/lib/Main.cjs +5 -0
- package/src/lib/Main.js +5 -0
- package/src/lib/components/Alert/Alert.cjs +2 -2
- package/src/lib/components/Alert/Alert.js +2 -2
- package/src/lib/components/Alert/Alert.types.d.ts +1 -0
- package/src/lib/components/EmailForm/EmailForm.cjs +1 -1
- package/src/lib/components/EmailForm/EmailForm.js +1 -1
- package/src/lib/components/PhoneNumberField/PhoneNumberField.cjs +1 -1
- package/src/lib/components/PhoneNumberField/PhoneNumberField.js +1 -1
- package/src/lib/components/RadioButton/RadioButton.cjs +14 -0
- package/src/lib/components/RadioButton/RadioButton.d.ts +5 -0
- package/src/lib/components/RadioButton/RadioButton.js +10 -0
- package/src/lib/components/RadioButton/index.d.ts +1 -0
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +1 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +2 -1
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +1 -1
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.cjs +1 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +1 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +2 -2
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +2 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +5 -2
- package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +5 -2
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.cjs +2 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.d.ts +1 -1
- package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.js +2 -1
- package/src/lib/context/ViewContext/ViewContext.cjs +2 -2
- package/src/lib/context/ViewContext/ViewContext.js +2 -2
- package/src/lib/context/ViewContext/types/index.d.ts +7 -2
- package/src/lib/data/api/user/user.cjs +16 -0
- package/src/lib/data/api/user/user.js +16 -1
- package/src/lib/events/dynamicEvents.d.ts +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +6 -0
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +6 -0
- package/src/lib/locale/en/translation.cjs +44 -3
- package/src/lib/locale/en/translation.d.ts +43 -2
- package/src/lib/locale/en/translation.js +44 -3
- package/src/lib/shared/types/dynamicEventsCallbacks.d.ts +2 -1
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/errors.cjs +0 -2
- package/src/lib/utils/constants/errors.js +1 -2
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.cjs +11 -9
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.d.ts +6 -2
- package/src/lib/utils/functions/findTurnkeyWallet/findTurnkeyWallet.js +12 -10
- package/src/lib/utils/functions/findTurnkeyWallet/index.d.ts +1 -1
- package/src/lib/utils/functions/index.d.ts +1 -0
- package/src/lib/utils/functions/serializeWalletConnectors/index.d.ts +1 -0
- package/src/lib/utils/functions/serializeWalletConnectors/serializeWalletConnectors.cjs +32 -0
- package/src/lib/utils/functions/serializeWalletConnectors/serializeWalletConnectors.d.ts +2 -0
- package/src/lib/utils/functions/serializeWalletConnectors/serializeWalletConnectors.js +28 -0
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +4 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +4 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +1 -1
- package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +1 -1
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +8 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +8 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +7 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +10 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +7 -8
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.cjs +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useMPCEmbeddedWallet.js +1 -1
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.cjs +137 -25
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.d.ts +17 -7
- package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useSecureEnclaveEmbeddedWallet.js +140 -28
- package/src/lib/utils/hooks/useMergeUserAccounts/index.d.ts +1 -0
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.cjs +99 -0
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.d.ts +4 -0
- package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.js +95 -0
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.cjs +6 -13
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.d.ts +1 -3
- package/src/lib/utils/hooks/useSendDynamicProps/useSendDynamicProps.js +6 -12
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +5 -0
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +6 -1
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.cjs +25 -2
- package/src/lib/utils/hooks/useWalletConnectorOptions/useWalletConnectorOptions.js +25 -2
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +2 -4
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.d.ts +2 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +2 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.cjs +3 -3
- package/src/lib/views/CollectUserDataView/UserDataFields/UserField/UserField.js +3 -3
- package/src/lib/views/CollectUserDataView/useFields.cjs +1 -0
- package/src/lib/views/CollectUserDataView/useFields.d.ts +2 -0
- package/src/lib/views/CollectUserDataView/useFields.js +1 -0
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.cjs +2 -2
- package/src/lib/views/EmbeddedReveal/utils/turnkeyExport/turnkeyExport.js +2 -2
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.cjs +126 -0
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.d.ts +6 -0
- package/src/lib/views/MergeUserAccountsConflictsView/MergeUserAccountsConflictsView.js +122 -0
- package/src/lib/views/MergeUserAccountsConflictsView/index.d.ts +1 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +123 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.d.ts +4 -0
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +119 -0
- package/src/lib/views/MergeUserAccountsView/index.d.ts +1 -0
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.cjs +1 -1
- package/src/lib/views/Passkey/utils/createEmbeddedWalletWithPasskey/createEmbeddedWalletWithPasskey.js +1 -1
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.cjs +1 -1
- package/src/lib/views/Passkey/utils/createPregeneratedWallet/createPregeneratedWallet.js +1 -1
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.cjs +7 -7
- package/src/lib/views/Passkey/utils/passkeyRecovery/passkeyRecovery.js +7 -7
- package/src/lib/views/viewToComponentMap.cjs +4 -0
- package/src/lib/views/viewToComponentMap.d.ts +2 -0
- package/src/lib/views/viewToComponentMap.js +4 -0
|
@@ -61,6 +61,21 @@ const mergeUserAccounts = (userJwt, environmentId) => _tslib.__awaiter(void 0, v
|
|
|
61
61
|
throw e;
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
+
const verifyMergeUsers = (userJwt, environmentId, mergeConflictResolutions) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
65
|
+
try {
|
|
66
|
+
const response = yield api.sdkApi(userJwt).verifyMergeUsers({
|
|
67
|
+
environmentId,
|
|
68
|
+
mergeUserConflictResolutions: {
|
|
69
|
+
mergeUserResolutions: mergeConflictResolutions,
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
return response;
|
|
73
|
+
}
|
|
74
|
+
catch (e) {
|
|
75
|
+
logger.logger.error(e);
|
|
76
|
+
throw e;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
64
79
|
const refreshUserJwt = (_a, userJwt_1) => _tslib.__awaiter(void 0, [_a, userJwt_1], void 0, function* ({ environmentId, }, userJwt) {
|
|
65
80
|
try {
|
|
66
81
|
const { jwt, minifiedJwt } = yield api.sdkApi(userJwt).refreshAuth({
|
|
@@ -76,3 +91,4 @@ const refreshUserJwt = (_a, userJwt_1) => _tslib.__awaiter(void 0, [_a, userJwt_
|
|
|
76
91
|
exports.mergeUserAccounts = mergeUserAccounts;
|
|
77
92
|
exports.refreshUserJwt = refreshUserJwt;
|
|
78
93
|
exports.updateUserProfileFields = updateUserProfileFields;
|
|
94
|
+
exports.verifyMergeUsers = verifyMergeUsers;
|
|
@@ -57,6 +57,21 @@ const mergeUserAccounts = (userJwt, environmentId) => __awaiter(void 0, void 0,
|
|
|
57
57
|
throw e;
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
const verifyMergeUsers = (userJwt, environmentId, mergeConflictResolutions) => __awaiter(void 0, void 0, void 0, function* () {
|
|
61
|
+
try {
|
|
62
|
+
const response = yield sdkApi(userJwt).verifyMergeUsers({
|
|
63
|
+
environmentId,
|
|
64
|
+
mergeUserConflictResolutions: {
|
|
65
|
+
mergeUserResolutions: mergeConflictResolutions,
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
return response;
|
|
69
|
+
}
|
|
70
|
+
catch (e) {
|
|
71
|
+
logger.error(e);
|
|
72
|
+
throw e;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
60
75
|
const refreshUserJwt = (_a, userJwt_1) => __awaiter(void 0, [_a, userJwt_1], void 0, function* ({ environmentId, }, userJwt) {
|
|
61
76
|
try {
|
|
62
77
|
const { jwt, minifiedJwt } = yield sdkApi(userJwt).refreshAuth({
|
|
@@ -69,4 +84,4 @@ const refreshUserJwt = (_a, userJwt_1) => __awaiter(void 0, [_a, userJwt_1], voi
|
|
|
69
84
|
}
|
|
70
85
|
});
|
|
71
86
|
|
|
72
|
-
export { mergeUserAccounts, refreshUserJwt, updateUserProfileFields };
|
|
87
|
+
export { mergeUserAccounts, refreshUserJwt, updateUserProfileFields, verifyMergeUsers };
|
|
@@ -11,7 +11,7 @@ export type DynamicEvents = {
|
|
|
11
11
|
authFlowCancelled: () => void;
|
|
12
12
|
emailVerificationResult: (param: boolean, email: string) => void;
|
|
13
13
|
smsVerificationResult: (param: boolean, phone: PhoneData) => void;
|
|
14
|
-
embeddedWalletCreated: (wallet: Wallet, verifiedCredential: JwtVerifiedCredential | undefined) => void;
|
|
14
|
+
embeddedWalletCreated: (wallet: Wallet, verifiedCredential: JwtVerifiedCredential | undefined, authToken: string | undefined) => void;
|
|
15
15
|
embeddedWalletFailed: (error: unknown) => void;
|
|
16
16
|
passkeyRecoveryCompleted: (wallet: Wallet) => void;
|
|
17
17
|
passkeyRecoveryFailed: (error: unknown) => void;
|
|
@@ -92,6 +92,11 @@ const Header = ({ onClose: handleClose, heading, projectSettings, copykey, }) =>
|
|
|
92
92
|
const { setExistentAccountData } = AccountExistsContext.useAccountExistsContext();
|
|
93
93
|
const { setSocialProvider } = SocialRedirectContext.useSocialRedirectContext();
|
|
94
94
|
const handleBackClick = React.useCallback(() => {
|
|
95
|
+
var _a;
|
|
96
|
+
if ((_a = view.events) === null || _a === void 0 ? void 0 : _a.onBackClick) {
|
|
97
|
+
view.events.onBackClick();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
95
100
|
if (view.type === 'farcaster-connect-view') {
|
|
96
101
|
setSocialProvider(undefined);
|
|
97
102
|
dynamicEvents.dynamicEvents.emit('farcasterConnectCancelled');
|
|
@@ -106,6 +111,7 @@ const Header = ({ onClose: handleClose, heading, projectSettings, copykey, }) =>
|
|
|
106
111
|
goToInitialView();
|
|
107
112
|
}, [
|
|
108
113
|
view.type,
|
|
114
|
+
view.events,
|
|
109
115
|
goToInitialView,
|
|
110
116
|
setExistentAccountData,
|
|
111
117
|
setError,
|
|
@@ -88,6 +88,11 @@ const Header = ({ onClose: handleClose, heading, projectSettings, copykey, }) =>
|
|
|
88
88
|
const { setExistentAccountData } = useAccountExistsContext();
|
|
89
89
|
const { setSocialProvider } = useSocialRedirectContext();
|
|
90
90
|
const handleBackClick = useCallback(() => {
|
|
91
|
+
var _a;
|
|
92
|
+
if ((_a = view.events) === null || _a === void 0 ? void 0 : _a.onBackClick) {
|
|
93
|
+
view.events.onBackClick();
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
91
96
|
if (view.type === 'farcaster-connect-view') {
|
|
92
97
|
setSocialProvider(undefined);
|
|
93
98
|
dynamicEvents.emit('farcasterConnectCancelled');
|
|
@@ -102,6 +107,7 @@ const Header = ({ onClose: handleClose, heading, projectSettings, copykey, }) =>
|
|
|
102
107
|
goToInitialView();
|
|
103
108
|
}, [
|
|
104
109
|
view.type,
|
|
110
|
+
view.events,
|
|
105
111
|
goToInitialView,
|
|
106
112
|
setExistentAccountData,
|
|
107
113
|
setError,
|
|
@@ -868,6 +868,48 @@ const translation = {
|
|
|
868
868
|
continue: 'Continue',
|
|
869
869
|
},
|
|
870
870
|
},
|
|
871
|
+
/**
|
|
872
|
+
* @description copy keys for merge user accounts view
|
|
873
|
+
* @default
|
|
874
|
+
* {
|
|
875
|
+
confirm_button: 'Merge accounts',
|
|
876
|
+
errors: {
|
|
877
|
+
merge_error: 'Something went wrong, please try again.',
|
|
878
|
+
},
|
|
879
|
+
same_wallet: {
|
|
880
|
+
content: 'Your wallet is currently used by 2 different accounts.',
|
|
881
|
+
title: 'Same wallet in use',
|
|
882
|
+
},
|
|
883
|
+
}
|
|
884
|
+
*/
|
|
885
|
+
dyn_merge_user_accounts: {
|
|
886
|
+
confirm_button: 'Merge accounts',
|
|
887
|
+
errors: {
|
|
888
|
+
merge_error: 'Something went wrong, please try again.',
|
|
889
|
+
},
|
|
890
|
+
same_wallet: {
|
|
891
|
+
content: 'Your wallet is currently used by 2 different accounts.',
|
|
892
|
+
title: 'Same wallet in use',
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
/**
|
|
896
|
+
* @description copy keys for merge user accounts conflicts view
|
|
897
|
+
* @default
|
|
898
|
+
* {
|
|
899
|
+
confirm_button: 'Confirm & Merge',
|
|
900
|
+
errors: {
|
|
901
|
+
merge_error: 'Something went wrong, please try again.',
|
|
902
|
+
},
|
|
903
|
+
title: 'Confirm your preferences',
|
|
904
|
+
}
|
|
905
|
+
*/
|
|
906
|
+
dyn_merge_user_accounts_conflicts: {
|
|
907
|
+
confirm_button: 'Confirm & Merge',
|
|
908
|
+
errors: {
|
|
909
|
+
merge_error: 'Something went wrong, please try again.',
|
|
910
|
+
},
|
|
911
|
+
title: 'Confirm your preferences',
|
|
912
|
+
},
|
|
871
913
|
/**
|
|
872
914
|
* @description copy keys for merge user accounts view when using email associated to a different account
|
|
873
915
|
* @default
|
|
@@ -880,7 +922,6 @@ const translation = {
|
|
|
880
922
|
existing_account: 'An account already exists that uses',
|
|
881
923
|
existing_account_trail: 'email.',
|
|
882
924
|
title: 'Would you like to link this wallet to this existing account?',
|
|
883
|
-
},
|
|
884
925
|
}
|
|
885
926
|
*/
|
|
886
927
|
dyn_merge_user_accounts_with_same_email: {
|
|
@@ -1110,7 +1151,7 @@ const translation = {
|
|
|
1110
1151
|
'Don’t get locked out if you delete your passkey or lose your device.',
|
|
1111
1152
|
input_label: 'Enter your email',
|
|
1112
1153
|
title: 'Add a recovery email',
|
|
1113
|
-
confirm_button: '
|
|
1154
|
+
confirm_button: 'Confirm with a passkey',
|
|
1114
1155
|
skip_button: 'Skip for now',
|
|
1115
1156
|
success_message: 'Recovery email added!',
|
|
1116
1157
|
},
|
|
@@ -1141,7 +1182,7 @@ const translation = {
|
|
|
1141
1182
|
description: 'Don’t get locked out if you delete your passkey or lose your device.',
|
|
1142
1183
|
input_label: 'Enter your email',
|
|
1143
1184
|
title: 'Add a recovery email',
|
|
1144
|
-
confirm_button: '
|
|
1185
|
+
confirm_button: 'Confirm with a passkey',
|
|
1145
1186
|
skip_button: 'Skip for now',
|
|
1146
1187
|
success_message: 'Recovery email added!',
|
|
1147
1188
|
},
|
|
@@ -864,6 +864,48 @@ export declare const translation: {
|
|
|
864
864
|
continue: string;
|
|
865
865
|
};
|
|
866
866
|
};
|
|
867
|
+
/**
|
|
868
|
+
* @description copy keys for merge user accounts view
|
|
869
|
+
* @default
|
|
870
|
+
* {
|
|
871
|
+
confirm_button: 'Merge accounts',
|
|
872
|
+
errors: {
|
|
873
|
+
merge_error: 'Something went wrong, please try again.',
|
|
874
|
+
},
|
|
875
|
+
same_wallet: {
|
|
876
|
+
content: 'Your wallet is currently used by 2 different accounts.',
|
|
877
|
+
title: 'Same wallet in use',
|
|
878
|
+
},
|
|
879
|
+
}
|
|
880
|
+
*/
|
|
881
|
+
dyn_merge_user_accounts: {
|
|
882
|
+
confirm_button: string;
|
|
883
|
+
errors: {
|
|
884
|
+
merge_error: string;
|
|
885
|
+
};
|
|
886
|
+
same_wallet: {
|
|
887
|
+
content: string;
|
|
888
|
+
title: string;
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
/**
|
|
892
|
+
* @description copy keys for merge user accounts conflicts view
|
|
893
|
+
* @default
|
|
894
|
+
* {
|
|
895
|
+
confirm_button: 'Confirm & Merge',
|
|
896
|
+
errors: {
|
|
897
|
+
merge_error: 'Something went wrong, please try again.',
|
|
898
|
+
},
|
|
899
|
+
title: 'Confirm your preferences',
|
|
900
|
+
}
|
|
901
|
+
*/
|
|
902
|
+
dyn_merge_user_accounts_conflicts: {
|
|
903
|
+
confirm_button: string;
|
|
904
|
+
errors: {
|
|
905
|
+
merge_error: string;
|
|
906
|
+
};
|
|
907
|
+
title: string;
|
|
908
|
+
};
|
|
867
909
|
/**
|
|
868
910
|
* @description copy keys for merge user accounts view when using email associated to a different account
|
|
869
911
|
* @default
|
|
@@ -876,7 +918,6 @@ export declare const translation: {
|
|
|
876
918
|
existing_account: 'An account already exists that uses',
|
|
877
919
|
existing_account_trail: 'email.',
|
|
878
920
|
title: 'Would you like to link this wallet to this existing account?',
|
|
879
|
-
},
|
|
880
921
|
}
|
|
881
922
|
*/
|
|
882
923
|
dyn_merge_user_accounts_with_same_email: {
|
|
@@ -1106,7 +1147,7 @@ export declare const translation: {
|
|
|
1106
1147
|
'Don’t get locked out if you delete your passkey or lose your device.',
|
|
1107
1148
|
input_label: 'Enter your email',
|
|
1108
1149
|
title: 'Add a recovery email',
|
|
1109
|
-
confirm_button: '
|
|
1150
|
+
confirm_button: 'Confirm with a passkey',
|
|
1110
1151
|
skip_button: 'Skip for now',
|
|
1111
1152
|
success_message: 'Recovery email added!',
|
|
1112
1153
|
},
|
|
@@ -864,6 +864,48 @@ const translation = {
|
|
|
864
864
|
continue: 'Continue',
|
|
865
865
|
},
|
|
866
866
|
},
|
|
867
|
+
/**
|
|
868
|
+
* @description copy keys for merge user accounts view
|
|
869
|
+
* @default
|
|
870
|
+
* {
|
|
871
|
+
confirm_button: 'Merge accounts',
|
|
872
|
+
errors: {
|
|
873
|
+
merge_error: 'Something went wrong, please try again.',
|
|
874
|
+
},
|
|
875
|
+
same_wallet: {
|
|
876
|
+
content: 'Your wallet is currently used by 2 different accounts.',
|
|
877
|
+
title: 'Same wallet in use',
|
|
878
|
+
},
|
|
879
|
+
}
|
|
880
|
+
*/
|
|
881
|
+
dyn_merge_user_accounts: {
|
|
882
|
+
confirm_button: 'Merge accounts',
|
|
883
|
+
errors: {
|
|
884
|
+
merge_error: 'Something went wrong, please try again.',
|
|
885
|
+
},
|
|
886
|
+
same_wallet: {
|
|
887
|
+
content: 'Your wallet is currently used by 2 different accounts.',
|
|
888
|
+
title: 'Same wallet in use',
|
|
889
|
+
},
|
|
890
|
+
},
|
|
891
|
+
/**
|
|
892
|
+
* @description copy keys for merge user accounts conflicts view
|
|
893
|
+
* @default
|
|
894
|
+
* {
|
|
895
|
+
confirm_button: 'Confirm & Merge',
|
|
896
|
+
errors: {
|
|
897
|
+
merge_error: 'Something went wrong, please try again.',
|
|
898
|
+
},
|
|
899
|
+
title: 'Confirm your preferences',
|
|
900
|
+
}
|
|
901
|
+
*/
|
|
902
|
+
dyn_merge_user_accounts_conflicts: {
|
|
903
|
+
confirm_button: 'Confirm & Merge',
|
|
904
|
+
errors: {
|
|
905
|
+
merge_error: 'Something went wrong, please try again.',
|
|
906
|
+
},
|
|
907
|
+
title: 'Confirm your preferences',
|
|
908
|
+
},
|
|
867
909
|
/**
|
|
868
910
|
* @description copy keys for merge user accounts view when using email associated to a different account
|
|
869
911
|
* @default
|
|
@@ -876,7 +918,6 @@ const translation = {
|
|
|
876
918
|
existing_account: 'An account already exists that uses',
|
|
877
919
|
existing_account_trail: 'email.',
|
|
878
920
|
title: 'Would you like to link this wallet to this existing account?',
|
|
879
|
-
},
|
|
880
921
|
}
|
|
881
922
|
*/
|
|
882
923
|
dyn_merge_user_accounts_with_same_email: {
|
|
@@ -1106,7 +1147,7 @@ const translation = {
|
|
|
1106
1147
|
'Don’t get locked out if you delete your passkey or lose your device.',
|
|
1107
1148
|
input_label: 'Enter your email',
|
|
1108
1149
|
title: 'Add a recovery email',
|
|
1109
|
-
confirm_button: '
|
|
1150
|
+
confirm_button: 'Confirm with a passkey',
|
|
1110
1151
|
skip_button: 'Skip for now',
|
|
1111
1152
|
success_message: 'Recovery email added!',
|
|
1112
1153
|
},
|
|
@@ -1137,7 +1178,7 @@ const translation = {
|
|
|
1137
1178
|
description: 'Don’t get locked out if you delete your passkey or lose your device.',
|
|
1138
1179
|
input_label: 'Enter your email',
|
|
1139
1180
|
title: 'Add a recovery email',
|
|
1140
|
-
confirm_button: '
|
|
1181
|
+
confirm_button: 'Confirm with a passkey',
|
|
1141
1182
|
skip_button: 'Skip for now',
|
|
1142
1183
|
success_message: 'Recovery email added!',
|
|
1143
1184
|
},
|
|
@@ -22,6 +22,7 @@ export type DynamicEventsCallbacks = {
|
|
|
22
22
|
export type OnAuthSuccess = (params: {
|
|
23
23
|
authToken: string;
|
|
24
24
|
handleLogOut: () => Promise<void>;
|
|
25
|
+
minAuthToken: string;
|
|
25
26
|
isAuthenticated: boolean;
|
|
26
27
|
primaryWallet: Wallet | null;
|
|
27
28
|
user: UserProfile;
|
|
@@ -46,4 +47,4 @@ destination: {
|
|
|
46
47
|
value: PhoneData;
|
|
47
48
|
}) => void;
|
|
48
49
|
export type OnUserProfileUpdate = (user: UserProfile) => void;
|
|
49
|
-
export type OnEmbeddedWalletCreated = (verifiedCredential: JwtVerifiedCredential | undefined) => void;
|
|
50
|
+
export type OnEmbeddedWalletCreated = (verifiedCredential: JwtVerifiedCredential | undefined, authToken: string | undefined) => void;
|