@dynamic-labs/sdk-react-core 2.1.0-alpha.18 → 2.1.0-alpha.19

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 (93) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.cjs +2 -2
  3. package/package.js +2 -2
  4. package/package.json +13 -13
  5. package/src/lib/components/MfaRecoveryIcon/MfaRecoveryIcon.cjs +15 -0
  6. package/src/lib/components/MfaRecoveryIcon/MfaRecoveryIcon.d.ts +2 -0
  7. package/src/lib/components/MfaRecoveryIcon/MfaRecoveryIcon.js +11 -0
  8. package/src/lib/components/MfaRecoveryIcon/index.d.ts +1 -0
  9. package/src/lib/components/Portal/Portal.cjs +0 -1
  10. package/src/lib/components/Portal/Portal.js +0 -1
  11. package/src/lib/components/SocialSignIn/SocialSignIn.cjs +5 -2
  12. package/src/lib/components/SocialSignIn/SocialSignIn.js +5 -2
  13. package/src/lib/components/UserProfile/parts/UserProfileField/UserProfileField.d.ts +1 -1
  14. package/src/lib/components/index.d.ts +1 -0
  15. package/src/lib/context/DynamicContext/DynamicContext.cjs +1 -1
  16. package/src/lib/context/DynamicContext/DynamicContext.js +1 -1
  17. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.cjs +4 -5
  18. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.d.ts +3 -2
  19. package/src/lib/context/DynamicContext/hooks/useNameService/useNameService.js +4 -5
  20. package/src/lib/context/PasskeyContext/PasskeyContext.cjs +1 -1
  21. package/src/lib/context/PasskeyContext/PasskeyContext.js +2 -2
  22. package/src/lib/context/ViewContext/types/index.d.ts +1 -1
  23. package/src/lib/data/api/api.cjs +2 -2
  24. package/src/lib/data/api/api.js +2 -2
  25. package/src/lib/data/api/user/user.cjs +3 -0
  26. package/src/lib/data/api/user/user.js +4 -1
  27. package/src/lib/locale/en/translation.cjs +38 -21
  28. package/src/lib/locale/en/translation.d.ts +38 -21
  29. package/src/lib/locale/en/translation.js +38 -21
  30. package/src/lib/modals/SignMessageConfirmationModal/getProperErrorMessage.cjs +19 -2
  31. package/src/lib/modals/SignMessageConfirmationModal/getProperErrorMessage.js +19 -2
  32. package/src/lib/shared/assets/index.d.ts +1 -0
  33. package/src/lib/shared/assets/mfa-recovery-icon.cjs +54 -0
  34. package/src/lib/shared/assets/mfa-recovery-icon.js +30 -0
  35. package/src/lib/shared/utils/functions/lastAuthenticatedAccount/index.d.ts +2 -2
  36. package/src/lib/styles/index.shadow.cjs +1 -1
  37. package/src/lib/styles/index.shadow.js +1 -1
  38. package/src/lib/utils/functions/createUserProfile/createUserProfile.cjs +1 -1
  39. package/src/lib/utils/functions/createUserProfile/createUserProfile.d.ts +2 -1
  40. package/src/lib/utils/functions/createUserProfile/createUserProfile.js +1 -1
  41. package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/getEnabledSocialSignInProvidersAsProviderEnum.cjs +21 -0
  42. package/src/lib/utils/functions/getEnabledSocialSignInProvidersAsProviderEnum/getEnabledSocialSignInProvidersAsProviderEnum.js +17 -0
  43. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.cjs +6 -3
  44. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.d.ts +2 -1
  45. package/src/lib/utils/functions/getUserProfileFields/getUserProfileFields.js +7 -4
  46. package/src/lib/utils/functions/validateMfaRecoveryCode/index.d.ts +1 -0
  47. package/src/lib/utils/functions/validateMfaRecoveryCode/validateMfaRecoveryCode.cjs +11 -0
  48. package/src/lib/utils/functions/validateMfaRecoveryCode/validateMfaRecoveryCode.d.ts +1 -0
  49. package/src/lib/utils/functions/validateMfaRecoveryCode/validateMfaRecoveryCode.js +7 -0
  50. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +5 -3
  51. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +5 -3
  52. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.cjs +8 -0
  53. package/src/lib/utils/hooks/useDynamicLayoutData/useDynamicLayoutData.js +8 -0
  54. package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.cjs +10 -1
  55. package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.d.ts +5 -0
  56. package/src/lib/utils/hooks/useDynamicModals/useDynamicModals.js +10 -1
  57. package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.cjs +1 -0
  58. package/src/lib/utils/hooks/useKYCFlag/useKYCFlag.js +1 -0
  59. package/src/lib/utils/hooks/useMfaModals/index.d.ts +1 -0
  60. package/src/lib/utils/hooks/useMfaModals/useMfaModals.cjs +131 -0
  61. package/src/lib/utils/hooks/useMfaModals/useMfaModals.d.ts +8 -0
  62. package/src/lib/utils/hooks/useMfaModals/useMfaModals.js +127 -0
  63. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +24 -3
  64. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.d.ts +1 -0
  65. package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +24 -3
  66. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +8 -4
  67. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.d.ts +3 -3
  68. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +8 -4
  69. package/src/lib/utils/hooks/useUserAuth/useUserAuth.cjs +9 -2
  70. package/src/lib/utils/hooks/useUserAuth/useUserAuth.js +10 -3
  71. package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.cjs +7 -2
  72. package/src/lib/utils/hooks/useUserUpdateRequest/useUpdateUser/useUpdateUser.js +7 -2
  73. package/src/lib/views/EmailVerification/EmailVerification.cjs +1 -10
  74. package/src/lib/views/EmailVerification/EmailVerification.js +1 -10
  75. package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.cjs +1 -1
  76. package/src/lib/views/FarcasterQrCodeView/FarcasterQrCodeView.js +1 -1
  77. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.cjs +5 -2
  78. package/src/lib/views/LoginView/sections/SocialSignInSection/DynamicSocialSignIn/DynamicSocialSignIn.js +5 -2
  79. package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +116 -0
  80. package/src/lib/views/MfaRecoveryView/MfaRecoveryView.d.ts +2 -0
  81. package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +112 -0
  82. package/src/lib/views/MfaRecoveryView/index.d.ts +1 -0
  83. package/src/lib/views/viewToComponentMap.cjs +2 -2
  84. package/src/lib/views/viewToComponentMap.d.ts +2 -2
  85. package/src/lib/views/viewToComponentMap.js +2 -2
  86. package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.cjs +5 -1
  87. package/src/lib/widgets/DynamicBridgeWidget/views/ProfileView/ProfileView.js +5 -1
  88. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.cjs +3 -3
  89. package/src/lib/widgets/DynamicWidget/prompts/PendingConnectionModal/PendingConnectionModal.js +3 -3
  90. package/src/lib/views/EmailUpdate/EmailUpdate.cjs +0 -131
  91. package/src/lib/views/EmailUpdate/EmailUpdate.d.ts +0 -2
  92. package/src/lib/views/EmailUpdate/EmailUpdate.js +0 -127
  93. package/src/lib/views/EmailUpdate/index.d.ts +0 -1
@@ -372,7 +372,6 @@ export declare const translation: {
372
372
 
373
373
  email: {
374
374
  title: 'Confirm your email',
375
- edit: 'Edit email',
376
375
  complete:
377
376
  'Verification complete, the email is now verified to this account.',
378
377
  },
@@ -396,7 +395,6 @@ export declare const translation: {
396
395
  hang_tight: string;
397
396
  email: {
398
397
  title: string;
399
- edit: string;
400
398
  complete: string;
401
399
  };
402
400
  phone_number: {
@@ -568,11 +566,6 @@ export declare const translation: {
568
566
  email_form: {
569
567
  invalid_email: 'Invalid or incorrect email. Did you mistype it?',
570
568
  },
571
- phone_number_form: {
572
- invalid_phone: 'Invalid or incorrect number. Did you mistype it?',
573
- invalid_sms_verification:
574
- 'Invalid or incorrect number. Did you mistype it?',
575
- },
576
569
  pending_connect: {
577
570
  title: 'Connecting a wallet',
578
571
  },
@@ -582,6 +575,11 @@ export declare const translation: {
582
575
  pending_signature_without_back_button: {
583
576
  title: 'Signing a wallet',
584
577
  },
578
+ phone_number_form: {
579
+ invalid_phone: 'Invalid or incorrect number. Did you mistype it?',
580
+ invalid_sms_verification:
581
+ 'Invalid or incorrect number. Did you mistype it?',
582
+ },
585
583
  qr_code: {
586
584
  title: 'Connecting a wallet',
587
585
  },
@@ -590,22 +588,25 @@ export declare const translation: {
590
588
  qr_code: {
591
589
  title: 'Connect',
592
590
  },
591
+ select_wallet_in_wallet_group: {
592
+ title: 'Select'
593
+ },
593
594
  separators: {
594
595
  default: 'OR',
595
596
  },
596
597
  sign_wallet: {
597
598
  title: 'Sign',
598
599
  },
599
- title: {
600
- all: 'Log in or sign up',
601
- all_wallet_list: 'Select your wallet',
602
- wallet_only: 'Select your wallet',
600
+ social: {
601
+ button_label: 'Continue with {{provider}}',
603
602
  },
604
603
  wallet_group: {
605
604
  title: 'Select Chain',
606
605
  },
607
- select_wallet_in_wallet_group: {
608
- title: 'Select'
606
+ title: {
607
+ all: 'Log in or sign up',
608
+ all_wallet_list: 'Select your wallet',
609
+ wallet_only: 'Select your wallet',
609
610
  },
610
611
  wallet_list: {
611
612
  button_only: 'Continue with a wallet',
@@ -641,11 +642,6 @@ export declare const translation: {
641
642
  email_form: {
642
643
  invalid_email: string;
643
644
  };
644
- phone_number_form: {
645
- invalid_phone: string;
646
- invalid_sms_verification: string;
647
- too_many_sms_verification_attempts: string;
648
- };
649
645
  pending_connect: {
650
646
  title: string;
651
647
  };
@@ -655,6 +651,11 @@ export declare const translation: {
655
651
  pending_signature_without_back_button: {
656
652
  title: string;
657
653
  };
654
+ phone_number_form: {
655
+ invalid_phone: string;
656
+ invalid_sms_verification: string;
657
+ too_many_sms_verification_attempts: string;
658
+ };
658
659
  qr_code: {
659
660
  title: string;
660
661
  };
@@ -669,6 +670,12 @@ export declare const translation: {
669
670
  sign_wallet: {
670
671
  title: string;
671
672
  };
673
+ select_wallet_in_wallet_group: {
674
+ title: string;
675
+ };
676
+ social: {
677
+ button_label: string;
678
+ };
672
679
  title: {
673
680
  all: string;
674
681
  all_wallet_list: string;
@@ -677,9 +684,6 @@ export declare const translation: {
677
684
  wallet_group: {
678
685
  title: string;
679
686
  };
680
- select_wallet_in_wallet_group: {
681
- title: string;
682
- };
683
687
  wallet_list: {
684
688
  button_only: string;
685
689
  };
@@ -891,6 +895,19 @@ export declare const translation: {
891
895
  body: string;
892
896
  continue: string;
893
897
  };
898
+ recovery_view: {
899
+ title: string;
900
+ body: string;
901
+ input_label: string;
902
+ button_label: string;
903
+ get_help: {
904
+ description: string;
905
+ button_label: string;
906
+ };
907
+ helper: {
908
+ title: string;
909
+ };
910
+ };
894
911
  };
895
912
  /**
896
913
  * @description copy keys for merge user accounts view
@@ -374,7 +374,6 @@ const translation = {
374
374
 
375
375
  email: {
376
376
  title: 'Confirm your email',
377
- edit: 'Edit email',
378
377
  complete:
379
378
  'Verification complete, the email is now verified to this account.',
380
379
  },
@@ -398,7 +397,6 @@ const translation = {
398
397
  hang_tight: 'Hang tight while we get things ready for you',
399
398
  email: {
400
399
  title: 'Confirm your email',
401
- edit: 'Edit email',
402
400
  complete: 'Verification complete, the email is now verified to this account.',
403
401
  },
404
402
  phone_number: {
@@ -570,11 +568,6 @@ const translation = {
570
568
  email_form: {
571
569
  invalid_email: 'Invalid or incorrect email. Did you mistype it?',
572
570
  },
573
- phone_number_form: {
574
- invalid_phone: 'Invalid or incorrect number. Did you mistype it?',
575
- invalid_sms_verification:
576
- 'Invalid or incorrect number. Did you mistype it?',
577
- },
578
571
  pending_connect: {
579
572
  title: 'Connecting a wallet',
580
573
  },
@@ -584,6 +577,11 @@ const translation = {
584
577
  pending_signature_without_back_button: {
585
578
  title: 'Signing a wallet',
586
579
  },
580
+ phone_number_form: {
581
+ invalid_phone: 'Invalid or incorrect number. Did you mistype it?',
582
+ invalid_sms_verification:
583
+ 'Invalid or incorrect number. Did you mistype it?',
584
+ },
587
585
  qr_code: {
588
586
  title: 'Connecting a wallet',
589
587
  },
@@ -592,22 +590,25 @@ const translation = {
592
590
  qr_code: {
593
591
  title: 'Connect',
594
592
  },
593
+ select_wallet_in_wallet_group: {
594
+ title: 'Select'
595
+ },
595
596
  separators: {
596
597
  default: 'OR',
597
598
  },
598
599
  sign_wallet: {
599
600
  title: 'Sign',
600
601
  },
601
- title: {
602
- all: 'Log in or sign up',
603
- all_wallet_list: 'Select your wallet',
604
- wallet_only: 'Select your wallet',
602
+ social: {
603
+ button_label: 'Continue with {{provider}}',
605
604
  },
606
605
  wallet_group: {
607
606
  title: 'Select Chain',
608
607
  },
609
- select_wallet_in_wallet_group: {
610
- title: 'Select'
608
+ title: {
609
+ all: 'Log in or sign up',
610
+ all_wallet_list: 'Select your wallet',
611
+ wallet_only: 'Select your wallet',
611
612
  },
612
613
  wallet_list: {
613
614
  button_only: 'Continue with a wallet',
@@ -643,11 +644,6 @@ const translation = {
643
644
  email_form: {
644
645
  invalid_email: 'Invalid or incorrect email. Did you mistype it?',
645
646
  },
646
- phone_number_form: {
647
- invalid_phone: 'Invalid or incorrect number. Did you mistype it?',
648
- invalid_sms_verification: 'The code you entered is incorrect. Please try again.',
649
- too_many_sms_verification_attempts: 'Too many verification attempts, please try again later.',
650
- },
651
647
  pending_connect: {
652
648
  title: 'Connecting a wallet',
653
649
  },
@@ -657,6 +653,11 @@ const translation = {
657
653
  pending_signature_without_back_button: {
658
654
  title: 'Signing a wallet',
659
655
  },
656
+ phone_number_form: {
657
+ invalid_phone: 'Invalid or incorrect number. Did you mistype it?',
658
+ invalid_sms_verification: 'The code you entered is incorrect. Please try again.',
659
+ too_many_sms_verification_attempts: 'Too many verification attempts, please try again later.',
660
+ },
660
661
  qr_code: {
661
662
  title: 'Connecting a wallet',
662
663
  },
@@ -671,6 +672,12 @@ const translation = {
671
672
  sign_wallet: {
672
673
  title: 'Sign',
673
674
  },
675
+ select_wallet_in_wallet_group: {
676
+ title: 'Select',
677
+ },
678
+ social: {
679
+ button_label: 'Continue with {{provider}}',
680
+ },
674
681
  title: {
675
682
  all: 'Log in or sign up',
676
683
  all_wallet_list: 'Select your wallet',
@@ -679,9 +686,6 @@ const translation = {
679
686
  wallet_group: {
680
687
  title: 'Select Chain',
681
688
  },
682
- select_wallet_in_wallet_group: {
683
- title: 'Select',
684
- },
685
689
  wallet_list: {
686
690
  button_only: 'Continue with a wallet',
687
691
  },
@@ -891,6 +895,19 @@ const translation = {
891
895
  body: 'Setup a new sign-in method in your authenticator app',
892
896
  continue: 'Continue',
893
897
  },
898
+ recovery_view: {
899
+ title: 'Enter your backup code',
900
+ body: 'Your backup code is the 24 character code you received when you activated two step authentication',
901
+ input_label: 'Enter back up code',
902
+ button_label: 'Continue',
903
+ get_help: {
904
+ description: 'Missing your back up codes?',
905
+ button_label: 'Get Help',
906
+ },
907
+ helper: {
908
+ title: 'Mfa Recovery Help',
909
+ },
910
+ },
894
911
  },
895
912
  /**
896
913
  * @description copy keys for merge user accounts view
@@ -10,6 +10,10 @@ const TurnkeyErrorMap = {
10
10
  5: 'Invalid Passkey signature. Select the passkey for this account and device.',
11
11
  7: 'The code is invalid or expired.',
12
12
  };
13
+ const reactNativePasskeyErrors = {
14
+ RequestFailed: 'Request failed. Please try again.',
15
+ UserCancelled: TurnkeyErrorMap[0],
16
+ };
13
17
  const DOMExceptionErrorMap = {
14
18
  NotAllowedError: 'Request Cancelled. Select a device or password manager to set up a passkey.',
15
19
  };
@@ -24,12 +28,25 @@ const getProperErrorMessage = (originalError) => {
24
28
  if (originalError instanceof DOMException) {
25
29
  return DOMExceptionErrorMap[originalError.name] || 'Something went wrong';
26
30
  }
27
- if ('cause' in originalError && ((_a = originalError === null || originalError === void 0 ? void 0 : originalError.cause) === null || _a === void 0 ? void 0 : _a.code) !== undefined) {
28
- return TurnkeyErrorMap[originalError.cause.code];
31
+ if ('cause' in originalError) {
32
+ if (((_a = originalError === null || originalError === void 0 ? void 0 : originalError.cause) === null || _a === void 0 ? void 0 : _a.code) !== undefined) {
33
+ return TurnkeyErrorMap[originalError.cause.code];
34
+ }
35
+ if (originalError.cause &&
36
+ 'error' in originalError.cause &&
37
+ typeof originalError.cause.error === 'string' &&
38
+ reactNativePasskeyErrors[originalError.cause.error]) {
39
+ return reactNativePasskeyErrors[originalError.cause.error];
40
+ }
29
41
  }
30
42
  if ('code' in originalError && originalError.code) {
31
43
  return TurnkeyErrorMap[originalError.code];
32
44
  }
45
+ if ('error' in originalError &&
46
+ typeof originalError.error === 'string' &&
47
+ reactNativePasskeyErrors[originalError.error]) {
48
+ return reactNativePasskeyErrors[originalError.error];
49
+ }
33
50
  return 'Something went wrong';
34
51
  };
35
52
 
@@ -6,6 +6,10 @@ const TurnkeyErrorMap = {
6
6
  5: 'Invalid Passkey signature. Select the passkey for this account and device.',
7
7
  7: 'The code is invalid or expired.',
8
8
  };
9
+ const reactNativePasskeyErrors = {
10
+ RequestFailed: 'Request failed. Please try again.',
11
+ UserCancelled: TurnkeyErrorMap[0],
12
+ };
9
13
  const DOMExceptionErrorMap = {
10
14
  NotAllowedError: 'Request Cancelled. Select a device or password manager to set up a passkey.',
11
15
  };
@@ -20,12 +24,25 @@ const getProperErrorMessage = (originalError) => {
20
24
  if (originalError instanceof DOMException) {
21
25
  return DOMExceptionErrorMap[originalError.name] || 'Something went wrong';
22
26
  }
23
- if ('cause' in originalError && ((_a = originalError === null || originalError === void 0 ? void 0 : originalError.cause) === null || _a === void 0 ? void 0 : _a.code) !== undefined) {
24
- return TurnkeyErrorMap[originalError.cause.code];
27
+ if ('cause' in originalError) {
28
+ if (((_a = originalError === null || originalError === void 0 ? void 0 : originalError.cause) === null || _a === void 0 ? void 0 : _a.code) !== undefined) {
29
+ return TurnkeyErrorMap[originalError.cause.code];
30
+ }
31
+ if (originalError.cause &&
32
+ 'error' in originalError.cause &&
33
+ typeof originalError.cause.error === 'string' &&
34
+ reactNativePasskeyErrors[originalError.cause.error]) {
35
+ return reactNativePasskeyErrors[originalError.cause.error];
36
+ }
25
37
  }
26
38
  if ('code' in originalError && originalError.code) {
27
39
  return TurnkeyErrorMap[originalError.code];
28
40
  }
41
+ if ('error' in originalError &&
42
+ typeof originalError.error === 'string' &&
43
+ reactNativePasskeyErrors[originalError.error]) {
44
+ return reactNativePasskeyErrors[originalError.error];
45
+ }
29
46
  return 'Something went wrong';
30
47
  };
31
48
 
@@ -78,3 +78,4 @@ export { ReactComponent as WalletConnectLogo } from './wallet-connect-logo.svg';
78
78
  export { ReactComponent as WalletOutlineIcon } from './wallet-outline.svg';
79
79
  export { ReactComponent as WalletV2Icon } from './wallet-v2.svg';
80
80
  export { ReactComponent as WorkSuitcaseIcon } from './work-suitcase.svg';
81
+ export { ReactComponent as MfaRecoveryIcon } from './mfa-recovery-icon.svg';
@@ -0,0 +1,54 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var React = require('react');
7
+
8
+ function _interopNamespace(e) {
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n["default"] = e;
23
+ return Object.freeze(n);
24
+ }
25
+
26
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
27
+
28
+ var _path;
29
+ var _excluded = ["title", "titleId"];
30
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
32
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
33
+ var SvgMfaRecoveryIcon = function SvgMfaRecoveryIcon(_ref) {
34
+ var title = _ref.title,
35
+ titleId = _ref.titleId,
36
+ props = _objectWithoutProperties(_ref, _excluded);
37
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
38
+ width: 65,
39
+ height: 64,
40
+ viewBox: "0 0 65 64",
41
+ fill: "none",
42
+ xmlns: "http://www.w3.org/2000/svg",
43
+ "aria-labelledby": titleId
44
+ }, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
45
+ id: titleId
46
+ }, title) : null, _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
47
+ fillRule: "evenodd",
48
+ clipRule: "evenodd",
49
+ d: "M32.5 64c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32C14.827 0 .5 14.327.5 32c0 17.673 14.327 32 32 32Zm-9.322-18.117a1.828 1.828 0 1 0 3.613.568l1.152-7.457h7.144l-1.1 6.89a1.828 1.828 0 1 0 3.612.567l1.153-7.457h3.504a1.691 1.691 0 0 0 0-3.383h-2.948l1.16-7.222h3.597a1.691 1.691 0 0 0 0-3.383h-3.087l1.1-6.89a1.829 1.829 0 1 0-3.612-.567l-1.153 7.457H30.17l1.1-6.89a1.828 1.828 0 1 0-3.613-.567l-1.152 7.457h-3.458a1.691 1.691 0 0 0 0 3.383h2.901l-1.16 7.222h-3.597a1.691 1.691 0 0 0 0 3.383h3.087l-1.1 6.89Zm12.42-10.272H28.5l1.16-7.222h7.097l-1.16 7.222Z",
50
+ fill: "#4779FF"
51
+ })));
52
+ };
53
+
54
+ exports.ReactComponent = SvgMfaRecoveryIcon;
@@ -0,0 +1,30 @@
1
+ 'use client'
2
+ import * as React from 'react';
3
+
4
+ var _path;
5
+ var _excluded = ["title", "titleId"];
6
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9
+ var SvgMfaRecoveryIcon = function SvgMfaRecoveryIcon(_ref) {
10
+ var title = _ref.title,
11
+ titleId = _ref.titleId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ width: 65,
15
+ height: 64,
16
+ viewBox: "0 0 65 64",
17
+ fill: "none",
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ "aria-labelledby": titleId
20
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
21
+ id: titleId
22
+ }, title) : null, _path || (_path = /*#__PURE__*/React.createElement("path", {
23
+ fillRule: "evenodd",
24
+ clipRule: "evenodd",
25
+ d: "M32.5 64c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32C14.827 0 .5 14.327.5 32c0 17.673 14.327 32 32 32Zm-9.322-18.117a1.828 1.828 0 1 0 3.613.568l1.152-7.457h7.144l-1.1 6.89a1.828 1.828 0 1 0 3.612.567l1.153-7.457h3.504a1.691 1.691 0 0 0 0-3.383h-2.948l1.16-7.222h3.597a1.691 1.691 0 0 0 0-3.383h-3.087l1.1-6.89a1.829 1.829 0 1 0-3.612-.567l-1.153 7.457H30.17l1.1-6.89a1.828 1.828 0 1 0-3.613-.567l-1.152 7.457h-3.458a1.691 1.691 0 0 0 0 3.383h2.901l-1.16 7.222h-3.597a1.691 1.691 0 0 0 0 3.383h3.087l-1.1 6.89Zm12.42-10.272H28.5l1.16-7.222h7.097l-1.16 7.222Z",
26
+ fill: "#4779FF"
27
+ })));
28
+ };
29
+
30
+ export { SvgMfaRecoveryIcon as ReactComponent };
@@ -1,3 +1,3 @@
1
- import { DynamicJwt, JwtVerifiedCredential } from '@dynamic-labs/sdk-api-core';
1
+ import { DynamicJwt, JwtVerifiedCredential, SdkUser } from '@dynamic-labs/sdk-api-core';
2
2
  import { UserProfile } from '@dynamic-labs/types';
3
- export declare const lastAuthenticatedAccount: (dynamicJwtOrUser: DynamicJwt | UserProfile) => JwtVerifiedCredential | undefined;
3
+ export declare const lastAuthenticatedAccount: (dynamicJwtOrUser: DynamicJwt | UserProfile | SdkUser) => JwtVerifiedCredential | undefined;