@dynamic-labs/sdk-react-core 3.0.0-alpha.5 → 3.0.0-alpha.7

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 (108) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/package.cjs +2 -2
  3. package/package.js +2 -2
  4. package/package.json +11 -11
  5. package/src/index.cjs +7 -1
  6. package/src/index.d.ts +3 -1
  7. package/src/index.js +4 -1
  8. package/src/lib/Main.cjs +1 -0
  9. package/src/lib/Main.js +1 -0
  10. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.cjs +2 -1
  11. package/src/lib/components/NetworkPicker/components/EvmNetworkControl/EvmNetworkControl.js +2 -1
  12. package/src/lib/components/QRCode/QRCode.d.ts +15 -0
  13. package/src/lib/context/DynamicContext/DynamicContext.cjs +15 -9
  14. package/src/lib/context/DynamicContext/DynamicContext.js +15 -9
  15. package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +17 -8
  16. package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +17 -8
  17. package/src/lib/context/DynamicContext/types/index.d.ts +4 -2
  18. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.cjs +3 -67
  19. package/src/lib/context/DynamicContext/useCustomerCallbacks/useCustomerCallbacks.js +3 -67
  20. package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.cjs +3 -2
  21. package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.d.ts +1 -1
  22. package/src/lib/context/DynamicContext/useDynamicContext/useDynamicContext.js +3 -2
  23. package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.cjs +128 -0
  24. package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.d.ts +6 -0
  25. package/src/lib/context/WidgetRegistry/WidgetRegistryContextProvider.js +122 -0
  26. package/src/lib/context/WidgetRegistry/index.d.ts +1 -0
  27. package/src/lib/data/api/externalAuth/externalAuth.d.ts +5 -0
  28. package/src/lib/data/api/externalAuth/index.d.ts +1 -0
  29. package/src/lib/data/api/index.d.ts +1 -0
  30. package/src/lib/data/api/wallets/wallets.cjs +2 -1
  31. package/src/lib/data/api/wallets/wallets.d.ts +2 -1
  32. package/src/lib/data/api/wallets/wallets.js +2 -1
  33. package/src/lib/events/auth.d.ts +1 -0
  34. package/src/lib/events/dynamicEvents.d.ts +2 -1
  35. package/src/lib/events/embeddedWallet.d.ts +1 -1
  36. package/src/lib/events/multiWallet.d.ts +5 -0
  37. package/src/lib/locale/en/translation.cjs +4 -4
  38. package/src/lib/locale/en/translation.d.ts +2 -2
  39. package/src/lib/locale/en/translation.js +4 -4
  40. package/src/lib/shared/types/dynamicEventsCallbacks.d.ts +1 -3
  41. package/src/lib/styles/index.shadow.cjs +1 -1
  42. package/src/lib/styles/index.shadow.js +1 -1
  43. package/src/lib/utils/functions/index.d.ts +1 -0
  44. package/src/lib/utils/functions/logVerboseTroubleshootingMessage/index.d.ts +1 -0
  45. package/src/lib/utils/functions/logVerboseTroubleshootingMessage/logVerboseTroubleshootingMessage.cjs +28 -0
  46. package/src/lib/utils/functions/logVerboseTroubleshootingMessage/logVerboseTroubleshootingMessage.d.ts +1 -0
  47. package/src/lib/utils/functions/logVerboseTroubleshootingMessage/logVerboseTroubleshootingMessage.js +24 -0
  48. package/src/lib/utils/functions/walletListBuilder/walletListBuilder.cjs +2 -1
  49. package/src/lib/utils/functions/walletListBuilder/walletListBuilder.js +2 -1
  50. package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.cjs +20 -0
  51. package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.d.ts +2 -2
  52. package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.js +20 -1
  53. package/src/lib/utils/hooks/index.d.ts +2 -0
  54. package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.cjs +1 -2
  55. package/src/lib/utils/hooks/useCreateDynamicEmbeddedWalletMutation/useCreateDynamicEmbeddedWalletMutation.js +1 -2
  56. package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +6 -4
  57. package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +6 -4
  58. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.cjs +1 -2
  59. package/src/lib/utils/hooks/useEmbeddedWallet/useMPCEmbeddedWallet/useCoinbaseMPC/useCoinbaseMPC.js +1 -2
  60. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.cjs +1 -2
  61. package/src/lib/utils/hooks/useEmbeddedWallet/useSecureEnclaveEmbeddedWallet/useTurnkey/useTurnkey.js +1 -2
  62. package/src/lib/utils/hooks/useExternalAuth/index.d.ts +1 -0
  63. package/src/lib/utils/hooks/useExternalAuth/useExternalAuth.d.ts +9 -0
  64. package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.cjs +4 -7
  65. package/src/lib/utils/hooks/useHandleUnlinkWallet/useHandleUnlinkWallet.js +4 -7
  66. package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.cjs +6 -2
  67. package/src/lib/utils/hooks/useMergeUserAccounts/useMergeUserAccounts.js +6 -2
  68. package/src/lib/utils/hooks/useRefreshUser/index.d.ts +1 -0
  69. package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.cjs +90 -0
  70. package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.d.ts +8 -0
  71. package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.js +86 -0
  72. package/src/lib/utils/hooks/useSwitchNetwork/index.d.ts +1 -0
  73. package/src/lib/utils/hooks/useSwitchNetwork/useSwitchNetwork.cjs +26 -0
  74. package/src/lib/utils/hooks/useSwitchNetwork/useSwitchNetwork.d.ts +5 -0
  75. package/src/lib/utils/hooks/useSwitchNetwork/useSwitchNetwork.js +22 -0
  76. package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs +1 -1
  77. package/src/lib/utils/hooks/useSwitchWallet/useSwitchWallet.js +1 -1
  78. package/src/lib/utils/hooks/useUserAuth/useUserAuth.cjs +4 -1
  79. package/src/lib/utils/hooks/useUserAuth/useUserAuth.js +4 -1
  80. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.cjs +7 -6
  81. package/src/lib/utils/hooks/useWalletConnectors/useWalletConnectors.js +7 -6
  82. package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.cjs +1 -1
  83. package/src/lib/utils/hooks/useWalletConnectors/utils/findWallet/findWallet.js +1 -1
  84. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +44 -27
  85. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +45 -28
  86. package/src/lib/views/EmailVerification/EmailVerification.cjs +8 -5
  87. package/src/lib/views/EmailVerification/EmailVerification.js +8 -5
  88. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.cjs +4 -14
  89. package/src/lib/views/MergeUserAccountsView/MergeUserAccountsView.js +5 -15
  90. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +3 -1
  91. package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +3 -1
  92. package/src/lib/views/WalletList/WalletList.cjs +1 -3
  93. package/src/lib/views/WalletList/WalletList.js +1 -3
  94. package/src/lib/views/WalletList/hooks/useTabState.cjs +6 -81
  95. package/src/lib/views/WalletList/hooks/useTabState.d.ts +6 -3
  96. package/src/lib/views/WalletList/hooks/useTabState.js +6 -81
  97. package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.cjs +5 -5
  98. package/src/lib/widgets/DynamicMultiWalletPromptsWidget/DynamicMultiWalletPromptsWidget.js +5 -5
  99. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.cjs +4 -1
  100. package/src/lib/widgets/DynamicWidget/components/DynamicUserProfile/DynamicUserProfile.js +4 -1
  101. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +2 -2
  102. package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +2 -2
  103. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.cjs +1 -1
  104. package/src/lib/widgets/DynamicWidget/prompts/PrimaryNotConnectedModal/PrimaryNotConnectedModal.js +1 -1
  105. package/src/lib/views/WalletList/utils/getInitialTabIndex/getInitialTabIndex.cjs +0 -22
  106. package/src/lib/views/WalletList/utils/getInitialTabIndex/getInitialTabIndex.d.ts +0 -2
  107. package/src/lib/views/WalletList/utils/getInitialTabIndex/getInitialTabIndex.js +0 -18
  108. package/src/lib/views/WalletList/utils/getInitialTabIndex/index.d.ts +0 -1
@@ -0,0 +1,122 @@
1
+ 'use client'
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { createContext, useState, useCallback, useContext, useRef, useEffect } from 'react';
4
+ import '@dynamic-labs/wallet-connector-core';
5
+ import '@dynamic-labs/sdk-api-core';
6
+ import '../../utils/constants/values.js';
7
+ import '@dynamic-labs/utils';
8
+ import '../../../../_virtual/_tslib.js';
9
+ import '@dynamic-labs/multi-wallet';
10
+ import '../../shared/logger.js';
11
+ import '@dynamic-labs/iconic';
12
+ import '../ViewContext/ViewContext.js';
13
+ import '@dynamic-labs/wallet-book';
14
+ import '../../utils/constants/colors.js';
15
+ import '../../shared/utils/classes/storage/localStorage.js';
16
+ import '../../shared/utils/classes/storage/sessionStorage.js';
17
+ import '../../shared/consts/index.js';
18
+ import 'react-international-phone';
19
+ import '../../config/ApiEndpoint.js';
20
+ import '@dynamic-labs/store';
21
+ import '../../locale/locale.js';
22
+ import { randomString } from '../../utils/functions/randomString/randomString.js';
23
+ import '../../events/dynamicEvents.js';
24
+ import '../DynamicContext/DynamicContext.js';
25
+ import '../CaptchaContext/CaptchaContext.js';
26
+ import '../ErrorContext/ErrorContext.js';
27
+ import '../AccessDeniedContext/AccessDeniedContext.js';
28
+ import '../AccountExistsContext/AccountExistsContext.js';
29
+ import '../UserWalletsContext/UserWalletsContext.js';
30
+ import '../VerificationContext/VerificationContext.js';
31
+ import 'react-dom';
32
+ import '../WalletContext/WalletContext.js';
33
+ import '../ThemeContext/ThemeContext.js';
34
+ import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.js';
35
+ import '@dynamic-labs/types';
36
+ import '../LoadingContext/LoadingContext.js';
37
+ import 'yup';
38
+ import '../MockContext/MockContext.js';
39
+ import '../../views/CollectUserDataView/useFields.js';
40
+ import '../FieldsStateContext/FieldsStateContext.js';
41
+ import '../UserFieldEditorContext/UserFieldEditorContext.js';
42
+ import '@dynamic-labs/rpc-providers';
43
+ import 'react-i18next';
44
+ import '../../components/Accordion/components/AccordionItem/AccordionItem.js';
45
+ import '../../components/Alert/Alert.js';
46
+ import '../../components/ShadowDOM/ShadowDOM.js';
47
+ import '../../components/IconButton/IconButton.js';
48
+ import '../../components/InlineWidget/InlineWidget.js';
49
+ import '../../components/Input/Input.js';
50
+ import '../../components/IsBrowser/IsBrowser.js';
51
+ import '../../components/MenuList/Dropdown/Dropdown.js';
52
+ import '../../components/Transition/ZoomTransition/ZoomTransition.js';
53
+ import '../../components/Transition/SlideInUpTransition/SlideInUpTransition.js';
54
+ import '../../components/Transition/OpacityTransition/OpacityTransition.js';
55
+ import '../../components/OverlayCard/OverlayCardTarget/OverlayCardTarget.js';
56
+ import '../../components/PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
57
+ import '../../components/Popper/Popper/Popper.js';
58
+ import '../../components/Popper/PopperContext/PopperContext.js';
59
+ import 'react-focus-lock';
60
+ import 'qrcode';
61
+ import 'formik';
62
+ import '../../views/WalletList/WalletList.js';
63
+ import '../SocialRedirectContext/SocialRedirectContext.js';
64
+ import '../../widgets/DynamicBridgeWidget/views/WalletsView/components/SecondaryWallets/SecondaryWallets.js';
65
+ import '@hcaptcha/react-hcaptcha';
66
+ import '../FooterAnimationContext/index.js';
67
+ import '../WalletGroupContext/WalletGroupContext.js';
68
+ import '../MfaSettingsContext/MfaSettingsContext.js';
69
+ import '../IpConfigurationContext/IpConfigurationContext.js';
70
+ import '../PasskeyContext/PasskeyContext.js';
71
+ import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
72
+ import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
73
+ import '../../views/TransactionConfirmationView/helpers/transactionErrorMessage.js';
74
+ import '../../widgets/DynamicWidget/views/ManagePasskeysWidgetView/PasskeyCard/PasskeyCard.js';
75
+
76
+ const widgetRegistryContext = createContext(null);
77
+ const WidgetRegistryContextProvider = ({ children, }) => {
78
+ const [registry, setRegistry] = useState({});
79
+ const registerId = useCallback((widgetId, widgetType) => {
80
+ setRegistry((prevRegistry) => (Object.assign(Object.assign({}, prevRegistry), { [widgetId]: {
81
+ type: widgetType,
82
+ } })));
83
+ }, [setRegistry]);
84
+ const removeId = useCallback((widgetId) => {
85
+ setRegistry((prevRegistry) => {
86
+ const newRegistry = Object.assign({}, prevRegistry);
87
+ delete newRegistry[widgetId];
88
+ return newRegistry;
89
+ });
90
+ }, [setRegistry]);
91
+ const checkWidgetPresence = useCallback((widgetType) => Object.values(registry).some((widget) => widget.type === widgetType), [registry]);
92
+ return (jsx(widgetRegistryContext.Provider, { value: { checkWidgetPresence, registerId, removeId }, children: children }));
93
+ };
94
+ const useWidgetRegistry = () => {
95
+ const context = useContext(widgetRegistryContext);
96
+ if (context === null) {
97
+ throw new Error('usage of useWidgetRegistry not wrapped in `WidgetRegistryContextProvider`.');
98
+ }
99
+ return context;
100
+ };
101
+ const useRegisterWidget = (widgetType, enabled = true) => {
102
+ const idRef = useRef(randomString(8));
103
+ const { registerId, removeId } = useWidgetRegistry();
104
+ useEffect(() => {
105
+ if (enabled === false) {
106
+ return;
107
+ }
108
+ registerId(idRef.current, widgetType);
109
+ return () => {
110
+ // This is disabled because eslint think we are using state value
111
+ // but this is fine because it is a ref
112
+ // eslint-disable-next-line react-hooks/exhaustive-deps
113
+ removeId(idRef.current);
114
+ };
115
+ }, [widgetType, enabled, registerId, removeId]);
116
+ };
117
+ const useWidgetRegistryCheck = (widgetType) => {
118
+ const { checkWidgetPresence } = useWidgetRegistry();
119
+ return checkWidgetPresence(widgetType);
120
+ };
121
+
122
+ export { WidgetRegistryContextProvider, useRegisterWidget, useWidgetRegistryCheck };
@@ -0,0 +1 @@
1
+ export { WidgetRegistryContextProvider, useRegisterWidget, useWidgetRegistryCheck, } from './WidgetRegistryContextProvider';
@@ -0,0 +1,5 @@
1
+ import { UserProfile } from '../../../..';
2
+ export declare const externalAuthSignin: ({ environmentId, externalJwt, }: {
3
+ environmentId: string;
4
+ externalJwt?: string;
5
+ }) => Promise<UserProfile | undefined>;
@@ -0,0 +1 @@
1
+ export * from './externalAuth';
@@ -1,5 +1,6 @@
1
1
  export * from './email';
2
2
  export * from './embeddedWallets';
3
+ export * from './externalAuth';
3
4
  export * from './mfa';
4
5
  export * from './oauth';
5
6
  export * from './onramp';
@@ -76,7 +76,7 @@ const linkWallet = (environmentId_1, _b) => _tslib.__awaiter(void 0, [environmen
76
76
  throw new utils.DynamicError(data.error);
77
77
  }
78
78
  });
79
- const unlinkWallet = (_c) => _tslib.__awaiter(void 0, [_c], void 0, function* ({ environmentId, primaryWalletId, walletId, }) {
79
+ const unlinkWallet = (_c) => _tslib.__awaiter(void 0, [_c], void 0, function* ({ environmentId, primaryWalletId, walletId, onSuccess, }) {
80
80
  try {
81
81
  const response = yield api.sdkApi().verifyUnlink({
82
82
  environmentId,
@@ -85,6 +85,7 @@ const unlinkWallet = (_c) => _tslib.__awaiter(void 0, [_c], void 0, function* ({
85
85
  walletId,
86
86
  },
87
87
  });
88
+ onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
88
89
  const user = storeAuthTokenAndUser.storeAuthTokenAndUser(response);
89
90
  return user;
90
91
  }
@@ -6,10 +6,11 @@ export declare const storeSelectedWallet: ({ environmentId, walletId, }: {
6
6
  walletId: string;
7
7
  }) => Promise<UserProfile | undefined>;
8
8
  export declare const linkWallet: (environmentId: string, { messageToSign, network, signedMessage, publicWalletAddress, chain, walletName, walletProvider, additionalWalletAddresses, backup, password, passwordSource, }: VerifyWallet) => Promise<VerifyResponse | undefined>;
9
- export declare const unlinkWallet: ({ environmentId, primaryWalletId, walletId, }: {
9
+ export declare const unlinkWallet: ({ environmentId, primaryWalletId, walletId, onSuccess, }: {
10
10
  environmentId: string;
11
11
  primaryWalletId: string | undefined;
12
12
  walletId: string;
13
+ onSuccess?: () => void;
13
14
  }) => Promise<UserProfile | undefined>;
14
15
  export declare const transferWallet: (environmentId: string, { network, messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, skipEmptyAccountCheck, }: VerifyWallet) => Promise<UserProfile | undefined>;
15
16
  export declare const verifyWallet: (environmentId: string, { messageToSign, signedMessage, publicWalletAddress, chain, walletName, walletProvider, captchaToken, network, oauth, additionalWalletAddresses, }: VerifyWallet) => Promise<VerifyResponse | undefined>;
@@ -72,7 +72,7 @@ const linkWallet = (environmentId_1, _b) => __awaiter(void 0, [environmentId_1,
72
72
  throw new DynamicError(data.error);
73
73
  }
74
74
  });
75
- const unlinkWallet = (_c) => __awaiter(void 0, [_c], void 0, function* ({ environmentId, primaryWalletId, walletId, }) {
75
+ const unlinkWallet = (_c) => __awaiter(void 0, [_c], void 0, function* ({ environmentId, primaryWalletId, walletId, onSuccess, }) {
76
76
  try {
77
77
  const response = yield sdkApi().verifyUnlink({
78
78
  environmentId,
@@ -81,6 +81,7 @@ const unlinkWallet = (_c) => __awaiter(void 0, [_c], void 0, function* ({ enviro
81
81
  walletId,
82
82
  },
83
83
  });
84
+ onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
84
85
  const user = storeAuthTokenAndUser(response);
85
86
  return user;
86
87
  }
@@ -10,6 +10,7 @@ type AuthEventPayloadOptionMap = {
10
10
  sms: AuthOptions['sms']['phone'];
11
11
  email: AuthOptions['email']['email'];
12
12
  social: AuthOptions['social']['provider'];
13
+ externalAuth: AuthOptions['externalAuth']['externalUserId'];
13
14
  };
14
15
  /** Payload of auth events that provide insight into which auth method was selected */
15
16
  export type AuthEventPayload = {
@@ -6,7 +6,8 @@ import { PasskeyEvents } from './passkey';
6
6
  import { SocialEvents } from './social';
7
7
  import { UIEvents } from './ui';
8
8
  import { WalletEvents } from './wallets';
9
+ import { MultiWalletInternalEvents } from './multiWallet';
9
10
  /** Maps internal event names to their listeners */
10
- export type DynamicEvents = AuthEvents & UIEvents & OTPEvents & WalletEvents & PasskeyEvents & SocialEvents & EmbeddedWalletEvents;
11
+ export type DynamicEvents = AuthEvents & UIEvents & OTPEvents & WalletEvents & PasskeyEvents & SocialEvents & EmbeddedWalletEvents & MultiWalletInternalEvents;
11
12
  export declare const dynamicEvents: EventEmitter<DynamicEvents, any>;
12
13
  export type DynamicEventEmitter = typeof dynamicEvents;
@@ -2,7 +2,7 @@ import { JwtVerifiedCredential } from '@dynamic-labs/sdk-api-core';
2
2
  import { Wallet } from '../shared/types/wallets';
3
3
  import { UserProfile } from '../..';
4
4
  export type EmbeddedWalletEvents = {
5
- embeddedWalletCreated: (wallet: Wallet, verifiedCredential: JwtVerifiedCredential | undefined, authToken: string | undefined, user: UserProfile | undefined) => void;
5
+ embeddedWalletCreated: (wallet: Wallet, verifiedCredential: JwtVerifiedCredential | undefined, user: UserProfile | undefined) => void;
6
6
  embeddedWalletFailed: (error: unknown) => void;
7
7
  embeddedWalletRevealCompleted: (wallet: Wallet) => void;
8
8
  embeddedWalletRevealFailed: (error: unknown) => void;
@@ -0,0 +1,5 @@
1
+ export type MultiWalletInternalEvents = {
2
+ triggerComputePrimaryWalletMultiWalletStateFromAccounts: (props: {
3
+ accounts: string[];
4
+ }) => void;
5
+ };
@@ -1768,8 +1768,8 @@ const translation = {
1768
1768
  search: {
1769
1769
  label: 'Search through {{numberOfWallets}} wallets...',
1770
1770
  not_found: {
1771
- description: 'Try searching for a different wallet',
1772
- title: 'No wallet found.',
1771
+ description: 'The wallet you’re looking for may not be available, or linking more than one of these wallets might not be possible.',
1772
+ title: 'Wallet not available',
1773
1773
  },
1774
1774
  },
1775
1775
  title: {
@@ -1790,8 +1790,8 @@ const translation = {
1790
1790
  search: {
1791
1791
  label: 'Search through {{numberOfWallets}} wallets...',
1792
1792
  not_found: {
1793
- description: 'Try searching for a different wallet',
1794
- title: 'No wallet found.',
1793
+ description: 'The wallet you’re looking for may not be available, or linking more than one of these wallets might not be possible.',
1794
+ title: 'Wallet not available',
1795
1795
  },
1796
1796
  },
1797
1797
  title: {
@@ -1764,8 +1764,8 @@ export declare const translation: {
1764
1764
  search: {
1765
1765
  label: 'Search through {{numberOfWallets}} wallets...',
1766
1766
  not_found: {
1767
- description: 'Try searching for a different wallet',
1768
- title: 'No wallet found.',
1767
+ description: 'The wallet you’re looking for may not be available, or linking more than one of these wallets might not be possible.',
1768
+ title: 'Wallet not available',
1769
1769
  },
1770
1770
  },
1771
1771
  title: {
@@ -1764,8 +1764,8 @@ const translation = {
1764
1764
  search: {
1765
1765
  label: 'Search through {{numberOfWallets}} wallets...',
1766
1766
  not_found: {
1767
- description: 'Try searching for a different wallet',
1768
- title: 'No wallet found.',
1767
+ description: 'The wallet you’re looking for may not be available, or linking more than one of these wallets might not be possible.',
1768
+ title: 'Wallet not available',
1769
1769
  },
1770
1770
  },
1771
1771
  title: {
@@ -1786,8 +1786,8 @@ const translation = {
1786
1786
  search: {
1787
1787
  label: 'Search through {{numberOfWallets}} wallets...',
1788
1788
  not_found: {
1789
- description: 'Try searching for a different wallet',
1790
- title: 'No wallet found.',
1789
+ description: 'The wallet you’re looking for may not be available, or linking more than one of these wallets might not be possible.',
1790
+ title: 'Wallet not available',
1791
1791
  },
1792
1792
  },
1793
1793
  title: {
@@ -31,9 +31,7 @@ export type DynamicEventsCallbacks = {
31
31
  onAuthInit?: (data: AuthEventPayload) => void;
32
32
  };
33
33
  export type OnAuthSuccess = (params: {
34
- authToken: string;
35
34
  handleLogOut: () => Promise<void>;
36
- minAuthToken: string;
37
35
  isAuthenticated: boolean;
38
36
  primaryWallet: Wallet | null;
39
37
  user: UserProfile;
@@ -58,4 +56,4 @@ destination: {
58
56
  value: PhoneData;
59
57
  }) => void;
60
58
  export type OnUserProfileUpdate = (user: UserProfile) => void;
61
- export type OnEmbeddedWalletCreated = (verifiedCredential: JwtVerifiedCredential | undefined, authToken: string | undefined, user: UserProfile | undefined) => void;
59
+ export type OnEmbeddedWalletCreated = (verifiedCredential: JwtVerifiedCredential | undefined, user: UserProfile | undefined) => void;