@dynamic-labs/sdk-react-core 3.9.9 → 3.9.10
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 +8 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/index.d.ts +1 -0
- package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +32 -31
- package/src/lib/components/NeedHelpSection/NeedHelpSection.d.ts +2 -1
- package/src/lib/components/NeedHelpSection/NeedHelpSection.js +34 -33
- package/src/lib/components/SupportLinks/SupportLinks.cjs +24 -0
- package/src/lib/components/SupportLinks/SupportLinks.d.ts +6 -0
- package/src/lib/components/SupportLinks/SupportLinks.js +20 -0
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +3 -2
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +3 -2
- package/src/lib/components/TransactionConfirmationPageLayout/utils.cjs +6 -2
- package/src/lib/components/TransactionConfirmationPageLayout/utils.js +6 -2
- package/src/lib/context/DynamicContext/DynamicContext.cjs +2 -0
- package/src/lib/context/DynamicContext/DynamicContext.js +2 -0
- package/src/lib/events/dynamicEvents.cjs +4 -0
- package/src/lib/events/dynamicEvents.d.ts +2 -2
- package/src/lib/events/dynamicEvents.js +4 -0
- package/src/lib/events/index.d.ts +1 -0
- package/src/lib/events/wallets.d.ts +25 -0
- package/src/lib/locale/en/translation.cjs +3 -2
- package/src/lib/locale/en/translation.d.ts +1 -0
- package/src/lib/locale/en/translation.js +3 -2
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +3 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +3 -1
- package/src/lib/shared/types/embeddedWallets.d.ts +7 -1
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.d.ts +1 -1
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useAggregateWalletEvents/index.d.ts +1 -0
- package/src/lib/utils/hooks/useAggregateWalletEvents/useAggregateWalletEvents.cjs +56 -0
- package/src/lib/utils/hooks/useAggregateWalletEvents/useAggregateWalletEvents.d.ts +2 -0
- package/src/lib/utils/hooks/useAggregateWalletEvents/useAggregateWalletEvents.js +52 -0
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +3 -1
- package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +3 -1
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +3 -0
- package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +3 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +4 -3
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +4 -3
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +14 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +14 -4
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +1 -1
- package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +1 -1
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +11 -3
- package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +11 -3
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +3 -3
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.d.ts +4 -1
- package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +3 -3
- package/src/lib/views/viewToComponentMap.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +3 -1
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +3 -1
|
@@ -1229,10 +1229,11 @@ const translation = {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
*/
|
|
1231
1231
|
dyn_need_help_section: {
|
|
1232
|
-
info: '
|
|
1232
|
+
info: 'Need Help?',
|
|
1233
1233
|
contact_support: 'Contact support',
|
|
1234
1234
|
divider: 'or',
|
|
1235
|
-
help_button: '
|
|
1235
|
+
help_button: 'Go here for support',
|
|
1236
|
+
visit_platform: 'Visit {{platform}}',
|
|
1236
1237
|
},
|
|
1237
1238
|
/**
|
|
1238
1239
|
* @description copy keys for network not supported view
|
|
@@ -154,7 +154,9 @@ const SignMessageConfirmationModal = ({ appLogoUrl, appName, message, handler, o
|
|
|
154
154
|
const isSessionKeyCompatible = (primaryWallet && walletConnectorCore.isSessionKeyCompatibleWallet(primaryWallet)) ||
|
|
155
155
|
(eoaWallet && walletConnectorCore.isSessionKeyCompatibleWallet(eoaWallet));
|
|
156
156
|
if ((yield shouldInitRecovery()) && !isSessionKeyCompatible) {
|
|
157
|
-
yield initPasskeyRecoveryProcess('email',
|
|
157
|
+
yield initPasskeyRecoveryProcess('email', {
|
|
158
|
+
type: 'signMessage',
|
|
159
|
+
});
|
|
158
160
|
}
|
|
159
161
|
if (signWithoutModal === true) {
|
|
160
162
|
onSignMessage('callHandlerOutsideModal');
|
|
@@ -150,7 +150,9 @@ const SignMessageConfirmationModal = ({ appLogoUrl, appName, message, handler, o
|
|
|
150
150
|
const isSessionKeyCompatible = (primaryWallet && isSessionKeyCompatibleWallet(primaryWallet)) ||
|
|
151
151
|
(eoaWallet && isSessionKeyCompatibleWallet(eoaWallet));
|
|
152
152
|
if ((yield shouldInitRecovery()) && !isSessionKeyCompatible) {
|
|
153
|
-
yield initPasskeyRecoveryProcess('email',
|
|
153
|
+
yield initPasskeyRecoveryProcess('email', {
|
|
154
|
+
type: 'signMessage',
|
|
155
|
+
});
|
|
154
156
|
}
|
|
155
157
|
if (signWithoutModal === true) {
|
|
156
158
|
onSignMessage('callHandlerOutsideModal');
|
|
@@ -3,4 +3,10 @@ export type EmbeddedWalletSessionSettings = {
|
|
|
3
3
|
userId: string;
|
|
4
4
|
createdAt: number;
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type EmbeddedWalletCurrentActionSettings = {
|
|
7
|
+
goBack?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type EmbeddedWalletCurrentAction = {
|
|
10
|
+
type: 'signMessage' | 'sendTransaction' | 'helpSession' | 'signTransaction' | 'reveal';
|
|
11
|
+
settings?: EmbeddedWalletCurrentActionSettings;
|
|
12
|
+
};
|