@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.
Files changed (54) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +11 -11
  5. package/src/index.d.ts +1 -0
  6. package/src/lib/components/NeedHelpSection/NeedHelpSection.cjs +32 -31
  7. package/src/lib/components/NeedHelpSection/NeedHelpSection.d.ts +2 -1
  8. package/src/lib/components/NeedHelpSection/NeedHelpSection.js +34 -33
  9. package/src/lib/components/SupportLinks/SupportLinks.cjs +24 -0
  10. package/src/lib/components/SupportLinks/SupportLinks.d.ts +6 -0
  11. package/src/lib/components/SupportLinks/SupportLinks.js +20 -0
  12. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +3 -2
  13. package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +3 -2
  14. package/src/lib/components/TransactionConfirmationPageLayout/utils.cjs +6 -2
  15. package/src/lib/components/TransactionConfirmationPageLayout/utils.js +6 -2
  16. package/src/lib/context/DynamicContext/DynamicContext.cjs +2 -0
  17. package/src/lib/context/DynamicContext/DynamicContext.js +2 -0
  18. package/src/lib/events/dynamicEvents.cjs +4 -0
  19. package/src/lib/events/dynamicEvents.d.ts +2 -2
  20. package/src/lib/events/dynamicEvents.js +4 -0
  21. package/src/lib/events/index.d.ts +1 -0
  22. package/src/lib/events/wallets.d.ts +25 -0
  23. package/src/lib/locale/en/translation.cjs +3 -2
  24. package/src/lib/locale/en/translation.d.ts +1 -0
  25. package/src/lib/locale/en/translation.js +3 -2
  26. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +3 -1
  27. package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +3 -1
  28. package/src/lib/shared/types/embeddedWallets.d.ts +7 -1
  29. package/src/lib/styles/index.shadow.cjs +1 -1
  30. package/src/lib/styles/index.shadow.js +1 -1
  31. package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.d.ts +1 -1
  32. package/src/lib/utils/hooks/index.d.ts +1 -0
  33. package/src/lib/utils/hooks/useAggregateWalletEvents/index.d.ts +1 -0
  34. package/src/lib/utils/hooks/useAggregateWalletEvents/useAggregateWalletEvents.cjs +56 -0
  35. package/src/lib/utils/hooks/useAggregateWalletEvents/useAggregateWalletEvents.d.ts +2 -0
  36. package/src/lib/utils/hooks/useAggregateWalletEvents/useAggregateWalletEvents.js +52 -0
  37. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.cjs +3 -1
  38. package/src/lib/utils/hooks/usePasskeyRecovery/usePasskeyRecovery.js +3 -1
  39. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.cjs +3 -0
  40. package/src/lib/utils/hooks/useWalletEventListeners/useWalletEventListeners.js +3 -0
  41. package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +4 -3
  42. package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +4 -3
  43. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.cjs +14 -4
  44. package/src/lib/views/Passkey/EmbeddedAuthChoice/EmbeddedAuthChoice.js +14 -4
  45. package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.cjs +1 -1
  46. package/src/lib/views/Passkey/EmbeddedAuthChoiceCards/EmbeddedAuthChoiceCards.js +1 -1
  47. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.cjs +11 -3
  48. package/src/lib/views/Passkey/PasskeyRecovery/BundleValidation/PasskeyBundleRecovery.js +11 -3
  49. package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.cjs +3 -3
  50. package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.d.ts +4 -1
  51. package/src/lib/views/Passkey/PasskeyRecovery/CompleteRecovery/PasskeyCompleteRecovery.js +3 -3
  52. package/src/lib/views/viewToComponentMap.d.ts +1 -1
  53. package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +3 -1
  54. 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: 'Problem Signing?',
1232
+ info: 'Need Help?',
1233
1233
  contact_support: 'Contact support',
1234
1234
  divider: 'or',
1235
- help_button: 'go here.',
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', 'signMessage');
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', 'signMessage');
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 EmbeddedWalletCurrentAction = 'signMessage' | 'sendTransaction' | 'helpSession' | 'signTransaction' | 'reveal';
6
+ export type EmbeddedWalletCurrentActionSettings = {
7
+ goBack?: () => void;
8
+ };
9
+ export type EmbeddedWalletCurrentAction = {
10
+ type: 'signMessage' | 'sendTransaction' | 'helpSession' | 'signTransaction' | 'reveal';
11
+ settings?: EmbeddedWalletCurrentActionSettings;
12
+ };