@dynamic-labs/sdk-react-core 1.0.2 → 1.0.3
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 +15 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +13 -13
- package/src/lib/components/Alert/Alert.types.d.ts +2 -1
- package/src/lib/components/Button/Button.cjs +2 -2
- package/src/lib/components/Button/Button.d.ts +2 -1
- package/src/lib/components/Button/Button.js +2 -2
- package/src/lib/components/CopyButton/CopyButton.d.ts +2 -1
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.cjs +2 -2
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.d.ts +3 -2
- package/src/lib/components/DynamicConnectButton/DynamicConnectButton.js +2 -2
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.cjs +1 -1
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.d.ts +2 -1
- package/src/lib/components/DynamicConnectButton/components/ConnectButton.js +1 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.cjs +2 -2
- package/src/lib/components/ErrorContainer/ErrorContainer.d.ts +2 -1
- package/src/lib/components/ErrorContainer/ErrorContainer.js +2 -2
- package/src/lib/components/Input/Input.types.d.ts +2 -1
- package/src/lib/components/ListTile/ListTile.cjs +1 -1
- package/src/lib/components/ListTile/ListTile.js +1 -1
- package/src/lib/components/ListTile/ListTile.types.d.ts +2 -1
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.cjs +9 -5
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.d.ts +1 -1
- package/src/lib/components/ModalHeaderBanner/ModalHeaderBanner.js +9 -5
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +3 -3
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +3 -3
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.cjs +1 -1
- package/src/lib/components/NetworkPicker/components/UnsupportedNetwork/UnsupportedNetwork.js +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.cjs +7 -6
- package/src/lib/components/OTPVerificationView/OTPVerificationView.d.ts +1 -1
- package/src/lib/components/OTPVerificationView/OTPVerificationView.js +7 -6
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs +1 -1
- package/src/lib/components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js +1 -1
- package/src/lib/components/Search/Search.cjs +1 -1
- package/src/lib/components/Search/Search.d.ts +2 -1
- package/src/lib/components/Search/Search.js +1 -1
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.cjs +2 -2
- package/src/lib/components/SecureTurnkeyWalletCard/SecureTurnkeyWalletCard.js +2 -2
- package/src/lib/components/SendBalanceForm/SendBalanceForm.cjs +3 -3
- package/src/lib/components/SendBalanceForm/SendBalanceForm.js +3 -3
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/SendBalancePageLayout.js +1 -1
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.cjs +1 -1
- package/src/lib/components/SendBalancePageLayout/components/TokenBalanceCard/TokenBalanceCard.js +1 -1
- package/src/lib/components/TextButton/TextButton.d.ts +2 -1
- package/src/lib/components/Tooltip/Tooltip.cjs +2 -2
- package/src/lib/components/Tooltip/Tooltip.d.ts +2 -1
- package/src/lib/components/Tooltip/Tooltip.js +2 -2
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +3 -3
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.d.ts +2 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +3 -3
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.cjs +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.d.ts +2 -1
- package/src/lib/components/TransactionConfirmationPageLayout/components/TransactionRow/TransactionRow.js +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +1 -1
- package/src/lib/components/Typography/Typography.types.d.ts +2 -1
- package/src/lib/components/UserProfile/UserProfile.cjs +2 -2
- package/src/lib/components/UserProfile/UserProfile.d.ts +1 -0
- package/src/lib/components/UserProfile/UserProfile.js +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.cjs +2 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +3 -2
- package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.js +2 -2
- package/src/lib/context/DynamicContext/DynamicContext.cjs +3 -2
- package/src/lib/context/DynamicContext/DynamicContext.js +3 -2
- package/src/lib/data/api.cjs +0 -13
- package/src/lib/data/api.d.ts +1 -2
- package/src/lib/data/api.js +1 -13
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/DynamicAuthLayout.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/Header/header.cjs +2 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.d.ts +2 -2
- package/src/lib/layout/DynamicAuthLayout/Header/header.js +2 -2
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/HelpHeader/HelpHeader.js +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.cjs +1 -1
- package/src/lib/layout/DynamicAuthLayout/HelpContent/PasskeyInfoHelper/PasskeyInfoHelper.js +1 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.cjs +2 -2
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.d.ts +2 -1
- package/src/lib/layouts/BridgeWelcomeLayout/BridgeWelcomeLayout.js +2 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.cjs +2 -2
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.d.ts +2 -1
- package/src/lib/layouts/ConnectedWalletsListLayout/ConnectedWalletsListLayout.js +2 -2
- package/src/lib/locale/en/translation.cjs +124 -1
- package/src/lib/locale/en/translation.d.ts +124 -1
- package/src/lib/locale/en/translation.js +124 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +1 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +1 -1
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.cjs +2 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.js +2 -2
- package/src/lib/modals/TransactionConfirmationModal/TransactionConfirmationModal.types.d.ts +2 -1
- package/src/lib/shared/types/index.d.ts +3 -0
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.cjs +28 -1
- package/src/lib/utils/hooks/authenticationHooks/useEmailVerificationRequest/useEmailVerificationRequest.js +28 -1
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +2 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.d.ts +1 -0
- package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +2 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +51 -7
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.d.ts +3 -0
- package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +51 -7
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +3 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +3 -0
- package/src/lib/utils/hooks/useProcessNetworkConfigurations/index.d.ts +1 -0
- package/src/lib/utils/hooks/{useFetchNetworkConfigurations/useFetchNetworkConfigurations.cjs → useProcessNetworkConfigurations/useProcessNetworkConfigurations.cjs} +53 -67
- package/src/lib/utils/hooks/{useFetchNetworkConfigurations/useFetchNetworkConfigurations.d.ts → useProcessNetworkConfigurations/useProcessNetworkConfigurations.d.ts} +3 -2
- package/src/lib/utils/hooks/{useFetchNetworkConfigurations/useFetchNetworkConfigurations.js → useProcessNetworkConfigurations/useProcessNetworkConfigurations.js} +53 -67
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +20 -14
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +20 -14
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +26 -4
- package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +26 -4
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +1 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +1 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.cjs +1 -1
- package/src/lib/views/AccountExistsView/AccountExistsView.js +1 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.cjs +1 -1
- package/src/lib/views/BridgeSummaryView/BridgeSummaryView.js +1 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.cjs +1 -1
- package/src/lib/views/BridgeWelcomeView/BridgeWelcomeView.js +1 -1
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.cjs +3 -2
- package/src/lib/views/CaptchaVerifyUser/CaptchaVerifyUser.js +3 -2
- package/src/lib/views/CollectUserDataView/CollectUserDataView.cjs +4 -4
- package/src/lib/views/CollectUserDataView/CollectUserDataView.js +4 -4
- package/src/lib/views/CollectUserDataView/UserDataFields/index.cjs +9 -8
- package/src/lib/views/CollectUserDataView/UserDataFields/index.js +9 -8
- package/src/lib/views/CollectUserDataView/useFields.cjs +11 -0
- package/src/lib/views/CollectUserDataView/useFields.d.ts +11 -0
- package/src/lib/views/CollectUserDataView/useFields.js +11 -0
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.cjs +3 -3
- package/src/lib/views/CollectUserDataViewLoginWithEmail/CollectUserDataViewLoginWithEmail.js +3 -3
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.cjs +1 -1
- package/src/lib/views/EmailConfirmationWaitingView/EmailConfirmationWaitingView.js +1 -1
- package/src/lib/views/EmailUpdate/EmailUpdate.cjs +2 -2
- package/src/lib/views/EmailUpdate/EmailUpdate.js +2 -2
- package/src/lib/views/EmailVerification/EmailVerification.cjs +35 -24
- package/src/lib/views/EmailVerification/EmailVerification.js +35 -24
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.cjs +2 -3
- package/src/lib/views/EmailWalletOTPVerificationView/EmailWalletOTPVerificationView.js +2 -3
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.cjs +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.d.ts +3 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/ListItemButton/ListItemButton.js +2 -2
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSignInSection.js +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.cjs +1 -1
- package/src/lib/views/LoginView/sections/WalletSignInSection/WalletSimpleSignIn/WalletSimpleSignIn.js +1 -1
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +3 -3
- package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +3 -3
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.cjs +2 -2
- package/src/lib/views/NetworkNotSupported/NetworkNotSupported.js +2 -2
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.cjs +3 -1
- package/src/lib/views/NetworkNotSupportedSwitchManual/NetworkNotSupportedSwitchManual.js +3 -1
- package/src/lib/views/NoAccess/NoAccess.cjs +1 -1
- package/src/lib/views/NoAccess/NoAccess.js +1 -1
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.cjs +6 -2
- package/src/lib/views/NoQrNotInstalledView/NoQrNotInstalledView.js +6 -2
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.cjs +10 -5
- package/src/lib/views/NoQrNotInstalledView/WalletHelpLink.js +10 -5
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.cjs +3 -3
- package/src/lib/views/Passkey/PasskeyIntroView/PasskeyIntroView.js +3 -3
- package/src/lib/views/PendingConnectView/PendingConnectView.cjs +7 -4
- package/src/lib/views/PendingConnectView/PendingConnectView.js +7 -4
- package/src/lib/views/PendingSignatureView/PendingSignatureView.cjs +8 -5
- package/src/lib/views/PendingSignatureView/PendingSignatureView.js +8 -5
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.cjs +11 -8
- package/src/lib/views/QrCodeView/QrCodeContainer/QrCodeContainer.js +11 -8
- package/src/lib/views/SendBalanceView/SendBalanceView.cjs +1 -1
- package/src/lib/views/SendBalanceView/SendBalanceView.js +1 -1
- package/src/lib/views/SendBalanceView/components/TransactionStage/TransactionStage.d.ts +2 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.cjs +1 -1
- package/src/lib/views/SocialRedirectView/SocialRedirectView.js +1 -1
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.cjs +4 -3
- package/src/lib/views/SocialWrongAccountView/SocialWrongAccountView.js +4 -3
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +8 -6
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.d.ts +2 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +8 -6
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.cjs +1 -1
- package/src/lib/views/WalletCannotBeTransferredView/WalletCannotBeTransferredView.js +1 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.cjs +1 -1
- package/src/lib/views/WalletList/SearchNotFoundMessage/SearchNotFoundMessage.js +1 -1
- package/src/lib/views/WalletList/WalletList.cjs +6 -9
- package/src/lib/views/WalletList/WalletList.js +6 -9
- package/src/lib/views/WalletLockedView/WalletLockedView.cjs +3 -2
- package/src/lib/views/WalletLockedView/WalletLockedView.js +3 -2
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +4 -3
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +4 -3
- package/src/lib/views/WalletUsedView/WalletUsedView.cjs +1 -1
- package/src/lib/views/WalletUsedView/WalletUsedView.js +1 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/DynamicWidget.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/ActiveWalletInformation/ActiveWalletInformation.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.cjs +5 -3
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetWallets/DynamicWidgetWallets.js +5 -3
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.d.ts +3 -2
- package/src/lib/widgets/DynamicWidget/components/EmptyWallets/EmptyWallets.js +2 -2
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/ManagePasskeysWidgetView.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js +1 -1
- package/src/lib/utils/hooks/useFetchNetworkConfigurations/index.d.ts +0 -1
- /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/index.d.ts +0 -0
- /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.cjs +0 -0
- /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.d.ts +0 -0
- /package/src/lib/utils/hooks/{useFetchNetworkConfigurations → useProcessNetworkConfigurations}/utils/mergeCustomerEvmNetworksWithServerNetworks/mergeCustomerEvmNetworksWithServerNetworks.js +0 -0
|
@@ -53,6 +53,18 @@ export declare const translation: {
|
|
|
53
53
|
title: string;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* @description copy keys for Dynamic Captcha
|
|
58
|
+
* @default
|
|
59
|
+
* {
|
|
60
|
+
verify_user_subtitle: 'We need to quickly verify you’re human before we proceed.',
|
|
61
|
+
verify_user_title: "Let's verify you're human",
|
|
62
|
+
}
|
|
63
|
+
*/
|
|
64
|
+
dyn_captcha: {
|
|
65
|
+
verify_user_subtitle: string;
|
|
66
|
+
verify_user_title: string;
|
|
67
|
+
};
|
|
56
68
|
/**
|
|
57
69
|
* @description copy keys for chainalysis blocked wallet view
|
|
58
70
|
* @default
|
|
@@ -113,6 +125,8 @@ export declare const translation: {
|
|
|
113
125
|
error_message: 'This network is not available, please update.',
|
|
114
126
|
title: 'Update Network',
|
|
115
127
|
},
|
|
128
|
+
update_email_tooltip:
|
|
129
|
+
'This email is tied to your wallet so cannot be updated',
|
|
116
130
|
}
|
|
117
131
|
*/
|
|
118
132
|
dyn_collect_user_data: {
|
|
@@ -162,6 +176,7 @@ export declare const translation: {
|
|
|
162
176
|
error_message: string;
|
|
163
177
|
title: string;
|
|
164
178
|
};
|
|
179
|
+
update_email_tooltip: string;
|
|
165
180
|
};
|
|
166
181
|
/**
|
|
167
182
|
* @description copy keys for email verification view after email logging in with magiclink
|
|
@@ -265,6 +280,12 @@ export declare const translation: {
|
|
|
265
280
|
wallet_list: {
|
|
266
281
|
button_only: 'Continue with a wallet',
|
|
267
282
|
},
|
|
283
|
+
wrong_social_account: {
|
|
284
|
+
retry_button: 'Try again',
|
|
285
|
+
retry_title: 'Please connect with: ',
|
|
286
|
+
subtitle: 'You must connect with the same account you originally signed in with.',
|
|
287
|
+
title: 'Whoops. Wrong Account',
|
|
288
|
+
},
|
|
268
289
|
}
|
|
269
290
|
*/
|
|
270
291
|
dyn_login: {
|
|
@@ -310,6 +331,12 @@ export declare const translation: {
|
|
|
310
331
|
wallet_list: {
|
|
311
332
|
button_only: string;
|
|
312
333
|
};
|
|
334
|
+
wrong_social_account: {
|
|
335
|
+
retry_button: string;
|
|
336
|
+
retry_title: string;
|
|
337
|
+
subtitle: string;
|
|
338
|
+
title: string;
|
|
339
|
+
};
|
|
313
340
|
};
|
|
314
341
|
/**
|
|
315
342
|
* @description copy keys for Dynamic manage passkeys view which are used inside dynamic widget
|
|
@@ -351,14 +378,21 @@ export declare const translation: {
|
|
|
351
378
|
* {
|
|
352
379
|
cancel_button: "No, I'll use a different email",
|
|
353
380
|
confirm_button: 'Yes, link to existing account',
|
|
381
|
+
errors: {
|
|
382
|
+
merge_error: 'Something went wrong, please try again.',
|
|
383
|
+
},
|
|
354
384
|
existing_account: 'An account already exists that uses',
|
|
355
385
|
existing_account_trail: 'email.',
|
|
356
386
|
title: 'Would you like to link this wallet to this existing account?',
|
|
387
|
+
},
|
|
357
388
|
}
|
|
358
389
|
*/
|
|
359
390
|
dyn_merge_user_accounts: {
|
|
360
391
|
cancel_button: string;
|
|
361
392
|
confirm_button: string;
|
|
393
|
+
errors: {
|
|
394
|
+
merge_error: string;
|
|
395
|
+
};
|
|
362
396
|
existing_account: string;
|
|
363
397
|
existing_account_trail: string;
|
|
364
398
|
title: string;
|
|
@@ -466,6 +500,7 @@ export declare const translation: {
|
|
|
466
500
|
confirm_code: 'Confirm verification code',
|
|
467
501
|
hang_tight: 'Hang tight while we get things ready for you',
|
|
468
502
|
verification_succeeded: 'Verification code confirmed',
|
|
503
|
+
title: 'Confirm verification code',
|
|
469
504
|
}
|
|
470
505
|
*/
|
|
471
506
|
dyn_otp_verification: {
|
|
@@ -474,6 +509,7 @@ export declare const translation: {
|
|
|
474
509
|
confirm_code: string;
|
|
475
510
|
hang_tight: string;
|
|
476
511
|
verification_succeeded: string;
|
|
512
|
+
title: string;
|
|
477
513
|
};
|
|
478
514
|
/**
|
|
479
515
|
* @description copy key for passkey created success banner
|
|
@@ -550,7 +586,7 @@ export declare const translation: {
|
|
|
550
586
|
'To complete this process, ensure you are using the same device/browser.',
|
|
551
587
|
start_button: 'Send me an email',
|
|
552
588
|
title: 'Initiate Request',
|
|
553
|
-
}
|
|
589
|
+
},
|
|
554
590
|
}
|
|
555
591
|
*/
|
|
556
592
|
dyn_passkey_recovery: {
|
|
@@ -574,6 +610,80 @@ export declare const translation: {
|
|
|
574
610
|
title: string;
|
|
575
611
|
};
|
|
576
612
|
};
|
|
613
|
+
/**
|
|
614
|
+
* @description copy keys for Dynamic pending wallet connection
|
|
615
|
+
* @default
|
|
616
|
+
* {
|
|
617
|
+
mobile: 'Click connect in your mobile wallet',
|
|
618
|
+
computer: 'Click connect in your wallet popup',
|
|
619
|
+
}
|
|
620
|
+
*/
|
|
621
|
+
dyn_pending_connection: {
|
|
622
|
+
mobile: string;
|
|
623
|
+
computer: string;
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* @description copy keys for Dynamic pending signature, we have overrides for phantom ledger which does not support message signing.
|
|
627
|
+
* @default
|
|
628
|
+
* {
|
|
629
|
+
click_to_sign: 'Click to Sign',
|
|
630
|
+
note: 'Note: ',
|
|
631
|
+
phantom_ledger_sign: "Click sign in your wallet to confirm you own this wallet (this doesn't cost gas).",
|
|
632
|
+
phantom_ledger_warning: "Ledger with Phantom doesn't support message signing. When logging in, a small fee (which should not apply) may appear. See below to learn more.",
|
|
633
|
+
regular_sign_description: 'Click sign-in in your wallet to confirm you own this wallet.',
|
|
634
|
+
}
|
|
635
|
+
*/
|
|
636
|
+
dyn_pending_signature: {
|
|
637
|
+
click_to_sign: string;
|
|
638
|
+
note: string;
|
|
639
|
+
phantom_ledger_sign: string;
|
|
640
|
+
phantom_ledger_warning: string;
|
|
641
|
+
regular_sign_description: string;
|
|
642
|
+
};
|
|
643
|
+
/**
|
|
644
|
+
* @description copy keys for Dynamic QR code Wallet Connection Pop-Up
|
|
645
|
+
* @default
|
|
646
|
+
* {
|
|
647
|
+
copy_button: 'Copy QR URI',
|
|
648
|
+
open_button: 'Open {{wallet}} App',
|
|
649
|
+
scan_title: "Scan this QR code from your mobile wallet or phone's camera to connect.",
|
|
650
|
+
wallet_not_installed: {
|
|
651
|
+
browser_install: 'Install {{browser}} extension',
|
|
652
|
+
install: 'Install {{wallet}} extension to connect',
|
|
653
|
+
refresh: 'Refresh the page once installed',
|
|
654
|
+
select: 'Select from your preferred options below:',
|
|
655
|
+
},
|
|
656
|
+
}
|
|
657
|
+
*/
|
|
658
|
+
dyn_qr_code: {
|
|
659
|
+
copy_button: string;
|
|
660
|
+
open_button: string;
|
|
661
|
+
scan_title: string;
|
|
662
|
+
wallet_not_installed: {
|
|
663
|
+
browser_install: string;
|
|
664
|
+
install: string;
|
|
665
|
+
refresh: string;
|
|
666
|
+
select: string;
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
* @description copy keys for Dynamic wallet locked/disconnected
|
|
671
|
+
* @default
|
|
672
|
+
* {
|
|
673
|
+
connect_continue: 'Connect your wallet to continue',
|
|
674
|
+
title: 'Welcome back',
|
|
675
|
+
subtitle: "We couldn't connect to your wallet. Click connect to retry the connection ",
|
|
676
|
+
connect: 'Connect wallet',
|
|
677
|
+
logout: 'Log out',
|
|
678
|
+
}
|
|
679
|
+
*/
|
|
680
|
+
dyn_wallet_locked: {
|
|
681
|
+
connect_continue: string;
|
|
682
|
+
title: string;
|
|
683
|
+
subtitle: string;
|
|
684
|
+
connect: string;
|
|
685
|
+
logout: string;
|
|
686
|
+
};
|
|
577
687
|
/**
|
|
578
688
|
* @description copy keys for passkeys creation flow for existent embedded wallets
|
|
579
689
|
* @default
|
|
@@ -858,6 +968,7 @@ export declare const translation: {
|
|
|
858
968
|
warning: 'Linking your wallet to this account will unlink it from its previously associated account',
|
|
859
969
|
},
|
|
860
970
|
log_out_button: 'Log out',
|
|
971
|
+
title: 'Transfer this wallet?'
|
|
861
972
|
}
|
|
862
973
|
*/
|
|
863
974
|
dyn_wallet_link: {
|
|
@@ -873,6 +984,7 @@ export declare const translation: {
|
|
|
873
984
|
warning: string;
|
|
874
985
|
};
|
|
875
986
|
log_out_button: string;
|
|
987
|
+
title: string;
|
|
876
988
|
};
|
|
877
989
|
/**
|
|
878
990
|
* @description copy keys for connecting wallets list view
|
|
@@ -925,12 +1037,21 @@ export declare const translation: {
|
|
|
925
1037
|
* @default
|
|
926
1038
|
* {
|
|
927
1039
|
sign: {
|
|
1040
|
+
spinner: {
|
|
1041
|
+
cancel: 'Cancel',
|
|
1042
|
+
confirm_transfer:
|
|
1043
|
+
'Sign the message to confirm transferring this wallet to this account.',
|
|
1044
|
+
},
|
|
928
1045
|
title: 'Sign to confirm transfer',
|
|
929
1046
|
},
|
|
930
1047
|
}
|
|
931
1048
|
*/
|
|
932
1049
|
dyn_wallet_transfer: {
|
|
933
1050
|
sign: {
|
|
1051
|
+
spinner: {
|
|
1052
|
+
cancel: string;
|
|
1053
|
+
confirm_transfer: string;
|
|
1054
|
+
};
|
|
934
1055
|
title: string;
|
|
935
1056
|
};
|
|
936
1057
|
};
|
|
@@ -947,5 +1068,7 @@ export declare const translation: {
|
|
|
947
1068
|
connect: string;
|
|
948
1069
|
empty_wallets: string;
|
|
949
1070
|
other_wallets: string;
|
|
1071
|
+
empty_wallets_action_link: string;
|
|
1072
|
+
empty_wallets_action_connect: string;
|
|
950
1073
|
};
|
|
951
1074
|
};
|
|
@@ -54,6 +54,18 @@ const translation = {
|
|
|
54
54
|
title: 'Connect to {{appName}}',
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
|
+
/**
|
|
58
|
+
* @description copy keys for Dynamic Captcha
|
|
59
|
+
* @default
|
|
60
|
+
* {
|
|
61
|
+
verify_user_subtitle: 'We need to quickly verify you’re human before we proceed.',
|
|
62
|
+
verify_user_title: "Let's verify you're human",
|
|
63
|
+
}
|
|
64
|
+
*/
|
|
65
|
+
dyn_captcha: {
|
|
66
|
+
verify_user_subtitle: 'We need to quickly verify you’re human before we proceed.',
|
|
67
|
+
verify_user_title: "Let's verify you're human",
|
|
68
|
+
},
|
|
57
69
|
/**
|
|
58
70
|
* @description copy keys for chainalysis blocked wallet view
|
|
59
71
|
* @default
|
|
@@ -114,6 +126,8 @@ const translation = {
|
|
|
114
126
|
error_message: 'This network is not available, please update.',
|
|
115
127
|
title: 'Update Network',
|
|
116
128
|
},
|
|
129
|
+
update_email_tooltip:
|
|
130
|
+
'This email is tied to your wallet so cannot be updated',
|
|
117
131
|
}
|
|
118
132
|
*/
|
|
119
133
|
dyn_collect_user_data: {
|
|
@@ -163,6 +177,7 @@ const translation = {
|
|
|
163
177
|
error_message: 'This network is not available, please update.',
|
|
164
178
|
title: 'Update Network',
|
|
165
179
|
},
|
|
180
|
+
update_email_tooltip: 'This email is tied to your wallet so cannot be updated',
|
|
166
181
|
},
|
|
167
182
|
/**
|
|
168
183
|
* @description copy keys for email verification view after email logging in with magiclink
|
|
@@ -266,6 +281,12 @@ const translation = {
|
|
|
266
281
|
wallet_list: {
|
|
267
282
|
button_only: 'Continue with a wallet',
|
|
268
283
|
},
|
|
284
|
+
wrong_social_account: {
|
|
285
|
+
retry_button: 'Try again',
|
|
286
|
+
retry_title: 'Please connect with: ',
|
|
287
|
+
subtitle: 'You must connect with the same account you originally signed in with.',
|
|
288
|
+
title: 'Whoops. Wrong Account',
|
|
289
|
+
},
|
|
269
290
|
}
|
|
270
291
|
*/
|
|
271
292
|
dyn_login: {
|
|
@@ -311,6 +332,12 @@ const translation = {
|
|
|
311
332
|
wallet_list: {
|
|
312
333
|
button_only: 'Continue with a wallet',
|
|
313
334
|
},
|
|
335
|
+
wrong_social_account: {
|
|
336
|
+
retry_button: 'Try again',
|
|
337
|
+
retry_title: 'Please connect with: ',
|
|
338
|
+
subtitle: 'You must connect with the same account you originally signed in with.',
|
|
339
|
+
title: 'Whoops. Wrong Account',
|
|
340
|
+
},
|
|
314
341
|
},
|
|
315
342
|
/**
|
|
316
343
|
* @description copy keys for Dynamic manage passkeys view which are used inside dynamic widget
|
|
@@ -352,14 +379,21 @@ const translation = {
|
|
|
352
379
|
* {
|
|
353
380
|
cancel_button: "No, I'll use a different email",
|
|
354
381
|
confirm_button: 'Yes, link to existing account',
|
|
382
|
+
errors: {
|
|
383
|
+
merge_error: 'Something went wrong, please try again.',
|
|
384
|
+
},
|
|
355
385
|
existing_account: 'An account already exists that uses',
|
|
356
386
|
existing_account_trail: 'email.',
|
|
357
387
|
title: 'Would you like to link this wallet to this existing account?',
|
|
388
|
+
},
|
|
358
389
|
}
|
|
359
390
|
*/
|
|
360
391
|
dyn_merge_user_accounts: {
|
|
361
392
|
cancel_button: "No, I'll use a different email",
|
|
362
393
|
confirm_button: 'Yes, link to existing account',
|
|
394
|
+
errors: {
|
|
395
|
+
merge_error: 'Something went wrong, please try again.',
|
|
396
|
+
},
|
|
363
397
|
existing_account: 'An account already exists that uses',
|
|
364
398
|
existing_account_trail: 'email.',
|
|
365
399
|
title: 'Would you like to link this wallet to this existing account?',
|
|
@@ -467,6 +501,7 @@ const translation = {
|
|
|
467
501
|
confirm_code: 'Confirm verification code',
|
|
468
502
|
hang_tight: 'Hang tight while we get things ready for you',
|
|
469
503
|
verification_succeeded: 'Verification code confirmed',
|
|
504
|
+
title: 'Confirm verification code',
|
|
470
505
|
}
|
|
471
506
|
*/
|
|
472
507
|
dyn_otp_verification: {
|
|
@@ -475,6 +510,7 @@ const translation = {
|
|
|
475
510
|
confirm_code: 'Confirm verification code',
|
|
476
511
|
hang_tight: 'Hang tight while we get things ready for you',
|
|
477
512
|
verification_succeeded: 'Verification code confirmed',
|
|
513
|
+
title: 'Confirm verification code',
|
|
478
514
|
},
|
|
479
515
|
/**
|
|
480
516
|
* @description copy key for passkey created success banner
|
|
@@ -551,7 +587,7 @@ const translation = {
|
|
|
551
587
|
'To complete this process, ensure you are using the same device/browser.',
|
|
552
588
|
start_button: 'Send me an email',
|
|
553
589
|
title: 'Initiate Request',
|
|
554
|
-
}
|
|
590
|
+
},
|
|
555
591
|
}
|
|
556
592
|
*/
|
|
557
593
|
dyn_passkey_recovery: {
|
|
@@ -575,6 +611,80 @@ const translation = {
|
|
|
575
611
|
title: 'Initiate Request',
|
|
576
612
|
},
|
|
577
613
|
},
|
|
614
|
+
/**
|
|
615
|
+
* @description copy keys for Dynamic pending wallet connection
|
|
616
|
+
* @default
|
|
617
|
+
* {
|
|
618
|
+
mobile: 'Click connect in your mobile wallet',
|
|
619
|
+
computer: 'Click connect in your wallet popup',
|
|
620
|
+
}
|
|
621
|
+
*/
|
|
622
|
+
dyn_pending_connection: {
|
|
623
|
+
mobile: 'Click connect in your mobile wallet',
|
|
624
|
+
computer: 'Click connect in your wallet popup',
|
|
625
|
+
},
|
|
626
|
+
/**
|
|
627
|
+
* @description copy keys for Dynamic pending signature, we have overrides for phantom ledger which does not support message signing.
|
|
628
|
+
* @default
|
|
629
|
+
* {
|
|
630
|
+
click_to_sign: 'Click to Sign',
|
|
631
|
+
note: 'Note: ',
|
|
632
|
+
phantom_ledger_sign: "Click sign in your wallet to confirm you own this wallet (this doesn't cost gas).",
|
|
633
|
+
phantom_ledger_warning: "Ledger with Phantom doesn't support message signing. When logging in, a small fee (which should not apply) may appear. See below to learn more.",
|
|
634
|
+
regular_sign_description: 'Click sign-in in your wallet to confirm you own this wallet.',
|
|
635
|
+
}
|
|
636
|
+
*/
|
|
637
|
+
dyn_pending_signature: {
|
|
638
|
+
click_to_sign: 'Click to Sign',
|
|
639
|
+
note: 'Note: ',
|
|
640
|
+
phantom_ledger_sign: "Click sign in your wallet to confirm you own this wallet (this doesn't cost gas).",
|
|
641
|
+
phantom_ledger_warning: "Ledger with Phantom doesn't support message signing. When logging in, a small fee (which should not apply) may appear. See below to learn more.",
|
|
642
|
+
regular_sign_description: 'Click sign-in in your wallet to confirm you own this wallet.',
|
|
643
|
+
},
|
|
644
|
+
/**
|
|
645
|
+
* @description copy keys for Dynamic QR code Wallet Connection Pop-Up
|
|
646
|
+
* @default
|
|
647
|
+
* {
|
|
648
|
+
copy_button: 'Copy QR URI',
|
|
649
|
+
open_button: 'Open {{wallet}} App',
|
|
650
|
+
scan_title: "Scan this QR code from your mobile wallet or phone's camera to connect.",
|
|
651
|
+
wallet_not_installed: {
|
|
652
|
+
browser_install: 'Install {{browser}} extension',
|
|
653
|
+
install: 'Install {{wallet}} extension to connect',
|
|
654
|
+
refresh: 'Refresh the page once installed',
|
|
655
|
+
select: 'Select from your preferred options below:',
|
|
656
|
+
},
|
|
657
|
+
}
|
|
658
|
+
*/
|
|
659
|
+
dyn_qr_code: {
|
|
660
|
+
copy_button: 'Copy QR URI',
|
|
661
|
+
open_button: 'Open {{wallet}} App',
|
|
662
|
+
scan_title: "Scan this QR code from your mobile wallet or phone's camera to connect.",
|
|
663
|
+
wallet_not_installed: {
|
|
664
|
+
browser_install: 'Install {{browser}} extension',
|
|
665
|
+
install: 'Install {{wallet}} extension to connect',
|
|
666
|
+
refresh: 'Refresh the page once installed',
|
|
667
|
+
select: 'Select from your preferred options below:',
|
|
668
|
+
},
|
|
669
|
+
},
|
|
670
|
+
/**
|
|
671
|
+
* @description copy keys for Dynamic wallet locked/disconnected
|
|
672
|
+
* @default
|
|
673
|
+
* {
|
|
674
|
+
connect_continue: 'Connect your wallet to continue',
|
|
675
|
+
title: 'Welcome back',
|
|
676
|
+
subtitle: "We couldn't connect to your wallet. Click connect to retry the connection ",
|
|
677
|
+
connect: 'Connect wallet',
|
|
678
|
+
logout: 'Log out',
|
|
679
|
+
}
|
|
680
|
+
*/
|
|
681
|
+
dyn_wallet_locked: {
|
|
682
|
+
connect_continue: 'Connect your wallet to continue',
|
|
683
|
+
title: 'Welcome back',
|
|
684
|
+
subtitle: "We couldn't connect to your wallet. Click connect to retry the connection ",
|
|
685
|
+
connect: 'Connect wallet',
|
|
686
|
+
logout: 'Log out',
|
|
687
|
+
},
|
|
578
688
|
/**
|
|
579
689
|
* @description copy keys for passkeys creation flow for existent embedded wallets
|
|
580
690
|
* @default
|
|
@@ -859,6 +969,7 @@ const translation = {
|
|
|
859
969
|
warning: 'Linking your wallet to this account will unlink it from its previously associated account',
|
|
860
970
|
},
|
|
861
971
|
log_out_button: 'Log out',
|
|
972
|
+
title: 'Transfer this wallet?'
|
|
862
973
|
}
|
|
863
974
|
*/
|
|
864
975
|
dyn_wallet_link: {
|
|
@@ -874,6 +985,7 @@ const translation = {
|
|
|
874
985
|
warning: 'Linking your wallet to this account will unlink it from its previously associated account',
|
|
875
986
|
},
|
|
876
987
|
log_out_button: 'Log out',
|
|
988
|
+
title: 'Transfer this wallet?',
|
|
877
989
|
},
|
|
878
990
|
/**
|
|
879
991
|
* @description copy keys for connecting wallets list view
|
|
@@ -926,12 +1038,21 @@ const translation = {
|
|
|
926
1038
|
* @default
|
|
927
1039
|
* {
|
|
928
1040
|
sign: {
|
|
1041
|
+
spinner: {
|
|
1042
|
+
cancel: 'Cancel',
|
|
1043
|
+
confirm_transfer:
|
|
1044
|
+
'Sign the message to confirm transferring this wallet to this account.',
|
|
1045
|
+
},
|
|
929
1046
|
title: 'Sign to confirm transfer',
|
|
930
1047
|
},
|
|
931
1048
|
}
|
|
932
1049
|
*/
|
|
933
1050
|
dyn_wallet_transfer: {
|
|
934
1051
|
sign: {
|
|
1052
|
+
spinner: {
|
|
1053
|
+
cancel: 'Cancel',
|
|
1054
|
+
confirm_transfer: 'Sign the message to confirm transferring this wallet to this account.',
|
|
1055
|
+
},
|
|
935
1056
|
title: 'Sign to confirm transfer',
|
|
936
1057
|
},
|
|
937
1058
|
},
|
|
@@ -948,6 +1069,8 @@ const translation = {
|
|
|
948
1069
|
connect: 'Connect your wallet',
|
|
949
1070
|
empty_wallets: '{{action}} additional wallets to see them here.',
|
|
950
1071
|
other_wallets: 'My other wallets',
|
|
1072
|
+
empty_wallets_action_link: 'Link',
|
|
1073
|
+
empty_wallets_action_connect: 'Connect',
|
|
951
1074
|
},
|
|
952
1075
|
};
|
|
953
1076
|
|
|
@@ -105,7 +105,7 @@ const SignMessageConfirmationModal = ({ appLogoUrl, appName, appOrigin, message,
|
|
|
105
105
|
const closeButton = (jsxRuntime.jsx(IconButton.IconButton, { type: 'button', onClick: handleOnReject, "data-testid": 'close', disabled: isLoading, children: jsxRuntime.jsx(close.ReactComponent, {}) }));
|
|
106
106
|
return (jsxRuntime.jsx(Portal.Portal, { handleClose: handleOnReject, isShown: show, zIndex: index.authModalZIndex, withBackdrop: true, elementId: 'dynamic-sign-message', transitionEvents: {
|
|
107
107
|
onUnmount: handleOnModalUnmount,
|
|
108
|
-
}, children: jsxRuntime.jsx(Modal.Modal, { children: jsxRuntime.jsxs(ModalCard.ModalCard, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, alignContent: 'bottom', children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: (props) => (jsxRuntime.jsx(Icon.Icon, { color: 'brand-primary', children: jsxRuntime.jsx(signCircle.ReactComponent, Object.assign({}, props)) })), iconSize: 64, isSpinning: true }) }), jsxRuntime.jsx(PasskeyCreatedSuccessBanner.PasskeyCreatedSuccessBanner, {}), jsxRuntime.jsxs("div", { className: 'sign-message-confirmation__body', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'sign-message-confirmation__title', children: t('dyn_sign_message.title') }), jsxRuntime.jsx(AnimatePresence.AnimatePresence, { animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}), children: signMessageError && (jsxRuntime.jsx("div", { className: 'sign-message-confirmation__error', children: jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: getProperErrorMessage.getProperErrorMessage(signMessageError) }) })) }), jsxRuntime.jsxs("div", { className: 'sign-message-confirmation__message-container', children: [jsxRuntime.jsx(AppOriginTile.AppOriginTile, { appLogoUrl: appLogoUrl, appName: appName, appOrigin: appOrigin }), jsxRuntime.jsx("div", { className: 'sign-message-confirmation__message', children: jsxRuntime.jsx(SignMessagePreview.SignMessagePreview, { message: message.toString() }) })] }), jsxRuntime.jsx(SecureTurnkeyWalletCard.SecureTurnkeyWalletCard, { className: 'sign-message-confirmation__secure-wallet' }), jsxRuntime.jsxs("div", { className: 'sign-message-confirmation__actions', children: [jsxRuntime.jsx(Button.Button, { buttonVariant: 'secondary', onClick: handleOnReject, expanded: true, buttonPadding: 'large', disabled: isLoading, children: t('dyn_sign_message.cancel_button') }), jsxRuntime.jsx(Button.Button, { buttonVariant: 'primary', buttonPadding: 'large', onClick: () => confirm(), expanded: true, disabled: isTurnkeyWalletWithoutAuthenticator, loading: isLoading, children: t('dyn_sign_message.sign_button') })] }), jsxRuntime.jsx(NeedHelpSection.NeedHelpSection, {}), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, {})] })] }) }) }));
|
|
108
|
+
}, children: jsxRuntime.jsx(Modal.Modal, { children: jsxRuntime.jsxs(ModalCard.ModalCard, { children: [jsxRuntime.jsx(ModalHeader.ModalHeader, { trailing: closeButton, alignContent: 'bottom', children: jsxRuntime.jsx(IconWithSpinner.IconWithSpinner, { Icon: (props) => (jsxRuntime.jsx(Icon.Icon, { color: 'brand-primary', children: jsxRuntime.jsx(signCircle.ReactComponent, Object.assign({}, props)) })), iconSize: 64, isSpinning: true }) }), jsxRuntime.jsx(PasskeyCreatedSuccessBanner.PasskeyCreatedSuccessBanner, {}), jsxRuntime.jsxs("div", { className: 'sign-message-confirmation__body', children: [jsxRuntime.jsx(Typography.Typography, { variant: 'title', color: 'primary', className: 'sign-message-confirmation__title', copykey: 'dyn_sign_message.title', children: t('dyn_sign_message.title') }), jsxRuntime.jsx(AnimatePresence.AnimatePresence, { animationComponent: jsxRuntime.jsx(VerticalDrawerTransition.VerticalDrawerTransition, {}), children: signMessageError && (jsxRuntime.jsx("div", { className: 'sign-message-confirmation__error', children: jsxRuntime.jsx(ErrorContainer.ErrorContainer, { children: getProperErrorMessage.getProperErrorMessage(signMessageError) }) })) }), jsxRuntime.jsxs("div", { className: 'sign-message-confirmation__message-container', children: [jsxRuntime.jsx(AppOriginTile.AppOriginTile, { appLogoUrl: appLogoUrl, appName: appName, appOrigin: appOrigin }), jsxRuntime.jsx("div", { className: 'sign-message-confirmation__message', children: jsxRuntime.jsx(SignMessagePreview.SignMessagePreview, { message: message.toString() }) })] }), jsxRuntime.jsx(SecureTurnkeyWalletCard.SecureTurnkeyWalletCard, { className: 'sign-message-confirmation__secure-wallet' }), jsxRuntime.jsxs("div", { className: 'sign-message-confirmation__actions', children: [jsxRuntime.jsx(Button.Button, { buttonVariant: 'secondary', onClick: handleOnReject, expanded: true, buttonPadding: 'large', disabled: isLoading, copykey: 'dyn_sign_message.cancel_button', children: t('dyn_sign_message.cancel_button') }), jsxRuntime.jsx(Button.Button, { buttonVariant: 'primary', buttonPadding: 'large', onClick: () => confirm(), expanded: true, disabled: isTurnkeyWalletWithoutAuthenticator, loading: isLoading, copykey: 'dyn_sign_message.sign_button', children: t('dyn_sign_message.sign_button') })] }), jsxRuntime.jsx(NeedHelpSection.NeedHelpSection, {}), jsxRuntime.jsx(PoweredByDynamic.PoweredByDynamic, {})] })] }) }) }));
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
exports.SignMessageConfirmationModal = SignMessageConfirmationModal;
|
|
@@ -101,7 +101,7 @@ const SignMessageConfirmationModal = ({ appLogoUrl, appName, appOrigin, message,
|
|
|
101
101
|
const closeButton = (jsx(IconButton, { type: 'button', onClick: handleOnReject, "data-testid": 'close', disabled: isLoading, children: jsx(SvgClose, {}) }));
|
|
102
102
|
return (jsx(Portal, { handleClose: handleOnReject, isShown: show, zIndex: authModalZIndex, withBackdrop: true, elementId: 'dynamic-sign-message', transitionEvents: {
|
|
103
103
|
onUnmount: handleOnModalUnmount,
|
|
104
|
-
}, children: jsx(Modal, { children: jsxs(ModalCard, { children: [jsx(ModalHeader, { trailing: closeButton, alignContent: 'bottom', children: jsx(IconWithSpinner, { Icon: (props) => (jsx(Icon, { color: 'brand-primary', children: jsx(SvgSignCircle, Object.assign({}, props)) })), iconSize: 64, isSpinning: true }) }), jsx(PasskeyCreatedSuccessBanner, {}), jsxs("div", { className: 'sign-message-confirmation__body', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'sign-message-confirmation__title', children: t('dyn_sign_message.title') }), jsx(AnimatePresence, { animationComponent: jsx(VerticalDrawerTransition, {}), children: signMessageError && (jsx("div", { className: 'sign-message-confirmation__error', children: jsx(ErrorContainer, { children: getProperErrorMessage(signMessageError) }) })) }), jsxs("div", { className: 'sign-message-confirmation__message-container', children: [jsx(AppOriginTile, { appLogoUrl: appLogoUrl, appName: appName, appOrigin: appOrigin }), jsx("div", { className: 'sign-message-confirmation__message', children: jsx(SignMessagePreview, { message: message.toString() }) })] }), jsx(SecureTurnkeyWalletCard, { className: 'sign-message-confirmation__secure-wallet' }), jsxs("div", { className: 'sign-message-confirmation__actions', children: [jsx(Button, { buttonVariant: 'secondary', onClick: handleOnReject, expanded: true, buttonPadding: 'large', disabled: isLoading, children: t('dyn_sign_message.cancel_button') }), jsx(Button, { buttonVariant: 'primary', buttonPadding: 'large', onClick: () => confirm(), expanded: true, disabled: isTurnkeyWalletWithoutAuthenticator, loading: isLoading, children: t('dyn_sign_message.sign_button') })] }), jsx(NeedHelpSection, {}), jsx(PoweredByDynamic, {})] })] }) }) }));
|
|
104
|
+
}, children: jsx(Modal, { children: jsxs(ModalCard, { children: [jsx(ModalHeader, { trailing: closeButton, alignContent: 'bottom', children: jsx(IconWithSpinner, { Icon: (props) => (jsx(Icon, { color: 'brand-primary', children: jsx(SvgSignCircle, Object.assign({}, props)) })), iconSize: 64, isSpinning: true }) }), jsx(PasskeyCreatedSuccessBanner, {}), jsxs("div", { className: 'sign-message-confirmation__body', children: [jsx(Typography, { variant: 'title', color: 'primary', className: 'sign-message-confirmation__title', copykey: 'dyn_sign_message.title', children: t('dyn_sign_message.title') }), jsx(AnimatePresence, { animationComponent: jsx(VerticalDrawerTransition, {}), children: signMessageError && (jsx("div", { className: 'sign-message-confirmation__error', children: jsx(ErrorContainer, { children: getProperErrorMessage(signMessageError) }) })) }), jsxs("div", { className: 'sign-message-confirmation__message-container', children: [jsx(AppOriginTile, { appLogoUrl: appLogoUrl, appName: appName, appOrigin: appOrigin }), jsx("div", { className: 'sign-message-confirmation__message', children: jsx(SignMessagePreview, { message: message.toString() }) })] }), jsx(SecureTurnkeyWalletCard, { className: 'sign-message-confirmation__secure-wallet' }), jsxs("div", { className: 'sign-message-confirmation__actions', children: [jsx(Button, { buttonVariant: 'secondary', onClick: handleOnReject, expanded: true, buttonPadding: 'large', disabled: isLoading, copykey: 'dyn_sign_message.cancel_button', children: t('dyn_sign_message.cancel_button') }), jsx(Button, { buttonVariant: 'primary', buttonPadding: 'large', onClick: () => confirm(), expanded: true, disabled: isTurnkeyWalletWithoutAuthenticator, loading: isLoading, copykey: 'dyn_sign_message.sign_button', children: t('dyn_sign_message.sign_button') })] }), jsx(NeedHelpSection, {}), jsx(PoweredByDynamic, {})] })] }) }) }));
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
export { SignMessageConfirmationModal };
|
|
@@ -64,7 +64,7 @@ require('../../components/Popper/Popper/Popper.cjs');
|
|
|
64
64
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
65
65
|
var Portal = require('../../components/Portal/Portal.cjs');
|
|
66
66
|
|
|
67
|
-
const TransactionConfirmationModal = ({ title, handler, onReject, onTransactionResponseSuccess, transaction, provider, walletConnector, }) => {
|
|
67
|
+
const TransactionConfirmationModal = ({ title, handler, onReject, onTransactionResponseSuccess, transaction, provider, walletConnector, copykey, }) => {
|
|
68
68
|
usePreventPageScroll.usePreventPageScroll(true);
|
|
69
69
|
const [show, setShow] = React.useState(true);
|
|
70
70
|
const errorRef = React.useRef(null);
|
|
@@ -87,7 +87,7 @@ const TransactionConfirmationModal = ({ title, handler, onReject, onTransactionR
|
|
|
87
87
|
}, [onTransactionResponseSuccess, onReject]);
|
|
88
88
|
return (jsxRuntime.jsx(Portal.Portal, { handleClose: closeModal, isShown: show, zIndex: index.authModalZIndex, withBackdrop: true, elementId: 'dynamic-send-transaction', transitionEvents: {
|
|
89
89
|
onUnmount: handleOnModalUnmount,
|
|
90
|
-
}, children: jsxRuntime.jsx(Modal.Modal, { children: jsxRuntime.jsx(ModalCard.ModalCard, { children: jsxRuntime.jsx(TransactionConfirmationView.TransactionConfirmationView, { provider: provider, transaction: transactionWithGasPrice, title: title, mutation: () => sendTransactionWithAutoNonce.sendTransactionWithAutoNonce(walletConnector, transactionWithGasPrice, handler), onClickClose: closeModal, onError: (error) => (errorRef.current = error), displayPoweredByDynamicFooter: true, onSuccess: (transactionResponse) => {
|
|
90
|
+
}, children: jsxRuntime.jsx(Modal.Modal, { children: jsxRuntime.jsx(ModalCard.ModalCard, { children: jsxRuntime.jsx(TransactionConfirmationView.TransactionConfirmationView, { provider: provider, transaction: transactionWithGasPrice, title: title, copykey: copykey, mutation: () => sendTransactionWithAutoNonce.sendTransactionWithAutoNonce(walletConnector, transactionWithGasPrice, handler), onClickClose: closeModal, onError: (error) => (errorRef.current = error), displayPoweredByDynamicFooter: true, onSuccess: (transactionResponse) => {
|
|
91
91
|
errorRef.current = null;
|
|
92
92
|
transactionResponseRef.current = transactionResponse;
|
|
93
93
|
closeModal();
|
|
@@ -60,7 +60,7 @@ import '../../components/Popper/Popper/Popper.js';
|
|
|
60
60
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
61
61
|
import { Portal } from '../../components/Portal/Portal.js';
|
|
62
62
|
|
|
63
|
-
const TransactionConfirmationModal = ({ title, handler, onReject, onTransactionResponseSuccess, transaction, provider, walletConnector, }) => {
|
|
63
|
+
const TransactionConfirmationModal = ({ title, handler, onReject, onTransactionResponseSuccess, transaction, provider, walletConnector, copykey, }) => {
|
|
64
64
|
usePreventPageScroll(true);
|
|
65
65
|
const [show, setShow] = useState(true);
|
|
66
66
|
const errorRef = useRef(null);
|
|
@@ -83,7 +83,7 @@ const TransactionConfirmationModal = ({ title, handler, onReject, onTransactionR
|
|
|
83
83
|
}, [onTransactionResponseSuccess, onReject]);
|
|
84
84
|
return (jsx(Portal, { handleClose: closeModal, isShown: show, zIndex: authModalZIndex, withBackdrop: true, elementId: 'dynamic-send-transaction', transitionEvents: {
|
|
85
85
|
onUnmount: handleOnModalUnmount,
|
|
86
|
-
}, children: jsx(Modal, { children: jsx(ModalCard, { children: jsx(TransactionConfirmationView, { provider: provider, transaction: transactionWithGasPrice, title: title, mutation: () => sendTransactionWithAutoNonce(walletConnector, transactionWithGasPrice, handler), onClickClose: closeModal, onError: (error) => (errorRef.current = error), displayPoweredByDynamicFooter: true, onSuccess: (transactionResponse) => {
|
|
86
|
+
}, children: jsx(Modal, { children: jsx(ModalCard, { children: jsx(TransactionConfirmationView, { provider: provider, transaction: transactionWithGasPrice, title: title, copykey: copykey, mutation: () => sendTransactionWithAutoNonce(walletConnector, transactionWithGasPrice, handler), onClickClose: closeModal, onError: (error) => (errorRef.current = error), displayPoweredByDynamicFooter: true, onSuccess: (transactionResponse) => {
|
|
87
87
|
errorRef.current = null;
|
|
88
88
|
transactionResponseRef.current = transactionResponse;
|
|
89
89
|
closeModal();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { Address, PublicClient, TransactionRequest } from 'viem';
|
|
3
3
|
import { WalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
4
|
+
import { CopyKey } from '../../shared';
|
|
4
5
|
export type TransactionConfirmationModalProps = {
|
|
5
6
|
handler: (transaction: TransactionRequest) => Promise<Address>;
|
|
6
7
|
onReject: (error: unknown) => void;
|
|
@@ -9,5 +10,5 @@ export type TransactionConfirmationModalProps = {
|
|
|
9
10
|
transaction: TransactionRequest;
|
|
10
11
|
provider: PublicClient;
|
|
11
12
|
walletConnector: WalletConnector;
|
|
12
|
-
};
|
|
13
|
+
} & CopyKey;
|
|
13
14
|
export type TransactionConfirmationModalComponent = FC<TransactionConfirmationModalProps>;
|
|
@@ -8,14 +8,31 @@ var useInternalDynamicContext = require('../../../../context/DynamicContext/useI
|
|
|
8
8
|
var api = require('../../../../data/api.cjs');
|
|
9
9
|
var useUpdateUserProfileByJWTCallback = require('../../useUpdateUserProfileByJWTCallback/useUpdateUserProfileByJWTCallback.cjs');
|
|
10
10
|
var EmailVerificationContext = require('../../../../context/EmailVerificationContext/EmailVerificationContext.cjs');
|
|
11
|
+
require('@dynamic-labs/sdk-api');
|
|
12
|
+
require('../../../../shared/logger.cjs');
|
|
13
|
+
require('@dynamic-labs/iconic');
|
|
14
|
+
require('@dynamic-labs/wallet-connector-core');
|
|
15
|
+
require('react/jsx-runtime');
|
|
16
|
+
require('../../../../context/ViewContext/ViewContext.cjs');
|
|
17
|
+
require('@dynamic-labs/wallet-book');
|
|
18
|
+
require('../../../constants/colors.cjs');
|
|
19
|
+
require('../../../../shared/utils/classes/storage/localStorage.cjs');
|
|
20
|
+
require('viem');
|
|
21
|
+
require('@dynamic-labs/utils');
|
|
22
|
+
require('../../../../shared/consts/index.cjs');
|
|
23
|
+
require('@dynamic-labs/multi-wallet');
|
|
24
|
+
var isTurnkeyEnabled = require('../../../functions/isTurnkeyEnabled/isTurnkeyEnabled.cjs');
|
|
11
25
|
|
|
12
26
|
// Hook exposed to the public as a scoped function in useUserUpdateRequest result
|
|
13
27
|
const useEmailVerificationRequest = () => {
|
|
14
|
-
|
|
28
|
+
var _a;
|
|
29
|
+
const { onboardingOnlyJwt, authToken, environmentId, projectSettings, primaryWallet, } = useInternalDynamicContext.useInternalDynamicContext();
|
|
15
30
|
const jwtToken = onboardingOnlyJwt || authToken;
|
|
31
|
+
const isTurnkeyProviderEnabled = isTurnkeyEnabled.isTurnkeyEnabled(projectSettings);
|
|
16
32
|
const { updateUserProfileByJWT } = useUpdateUserProfileByJWTCallback.useUpdateUserProfileByJWTCallback();
|
|
17
33
|
const { verificationUUID: emailVerificationContextVerificationUUID } = EmailVerificationContext.useEmailVerificationContext();
|
|
18
34
|
const verifyEmail = React.useCallback((verificationToken, verificationUUID) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
+
var _b;
|
|
19
36
|
if (!jwtToken)
|
|
20
37
|
throw new Error('No JWT token provided');
|
|
21
38
|
// VerificationUUID is saved in the context in case the view changes
|
|
@@ -27,12 +44,22 @@ const useEmailVerificationRequest = () => {
|
|
|
27
44
|
verificationToken,
|
|
28
45
|
verificationUUID: String(verificationUUID || emailVerificationContextVerificationUUID),
|
|
29
46
|
}, jwtToken);
|
|
47
|
+
if (isTurnkeyProviderEnabled &&
|
|
48
|
+
((_b = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _b === void 0 ? void 0 : _b.automaticEmbeddedWalletCreation) &&
|
|
49
|
+
!primaryWallet) {
|
|
50
|
+
// Don't create the user right now
|
|
51
|
+
// It will be done after the wallet creation
|
|
52
|
+
return verifyEmailResponse;
|
|
53
|
+
}
|
|
30
54
|
yield updateUserProfileByJWT(verifyEmailResponse.jwt);
|
|
31
55
|
return verifyEmailResponse;
|
|
32
56
|
}), [
|
|
33
57
|
emailVerificationContextVerificationUUID,
|
|
34
58
|
environmentId,
|
|
59
|
+
isTurnkeyProviderEnabled,
|
|
35
60
|
jwtToken,
|
|
61
|
+
primaryWallet,
|
|
62
|
+
(_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.sdk) === null || _a === void 0 ? void 0 : _a.automaticEmbeddedWalletCreation,
|
|
36
63
|
updateUserProfileByJWT,
|
|
37
64
|
]);
|
|
38
65
|
return { verifyEmail };
|