@dynamic-labs/sdk-react-core 3.1.0 → 3.1.2

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 (41) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/package.cjs +1 -1
  3. package/package.js +1 -1
  4. package/package.json +11 -11
  5. package/src/lib/components/QRCode/QRCode.cjs +2 -2
  6. package/src/lib/components/QRCode/QRCode.js +2 -2
  7. package/src/lib/context/ViewContext/types/index.d.ts +1 -1
  8. package/src/lib/data/api/transactions/blockaid.cjs +23 -0
  9. package/src/lib/data/api/transactions/blockaid.js +19 -0
  10. package/src/lib/locale/en/translation.cjs +35 -1
  11. package/src/lib/locale/en/translation.d.ts +34 -0
  12. package/src/lib/locale/en/translation.js +35 -1
  13. package/src/lib/shared/assets/caution-triangle.cjs +54 -0
  14. package/src/lib/shared/assets/caution-triangle.js +30 -0
  15. package/src/lib/shared/assets/exclamation-circle.cjs +54 -0
  16. package/src/lib/shared/assets/exclamation-circle.js +30 -0
  17. package/src/lib/shared/assets/exclamation.cjs +52 -0
  18. package/src/lib/shared/assets/exclamation.js +28 -0
  19. package/src/lib/shared/assets/index.d.ts +5 -0
  20. package/src/lib/shared/assets/warning-orange.cjs +54 -0
  21. package/src/lib/shared/assets/warning-orange.js +30 -0
  22. package/src/lib/shared/assets/warning-red.cjs +54 -0
  23. package/src/lib/shared/assets/warning-red.js +30 -0
  24. package/src/lib/styles/index.shadow.cjs +1 -1
  25. package/src/lib/styles/index.shadow.js +1 -1
  26. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.cjs +1 -0
  27. package/src/lib/utils/hooks/useAuthLayoutChecks/useAuthLayoutChecks.js +1 -0
  28. package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.cjs +8 -1
  29. package/src/lib/utils/hooks/useResetCookieLocalStorage/useResetCookieLocalStorage.js +8 -1
  30. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +148 -114
  31. package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +151 -117
  32. package/src/lib/views/GlobalWalletMaliciousView/GlobalWalletMaliciousView.cjs +139 -0
  33. package/src/lib/views/GlobalWalletMaliciousView/GlobalWalletMaliciousView.d.ts +11 -0
  34. package/src/lib/views/GlobalWalletMaliciousView/GlobalWalletMaliciousView.js +134 -0
  35. package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.cjs +1 -1
  36. package/src/lib/views/MfaChooseDeviceView/MfaChooseDeviceView.js +1 -1
  37. package/src/lib/views/viewToComponentMap.cjs +2 -0
  38. package/src/lib/views/viewToComponentMap.d.ts +1 -0
  39. package/src/lib/views/viewToComponentMap.js +2 -0
  40. package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.cjs +31 -8
  41. package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.js +31 -8
package/CHANGELOG.md CHANGED
@@ -1,4 +1,27 @@
1
1
 
2
+ ### [3.1.2](https://github.com/dynamic-labs/DynamicAuth/compare/v3.1.1...v3.1.2) (2024-09-23)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * issue where builtin stream module was a dependency ([#6985](https://github.com/dynamic-labs/DynamicAuth/issues/6985)) ([5ac1f6c](https://github.com/dynamic-labs/DynamicAuth/commit/5ac1f6c7b96f773d5f2f1899748c2a7fc84235ec))
8
+
9
+ ### [3.1.1](https://github.com/dynamic-labs/DynamicAuth/compare/v3.1.0...v3.1.1) (2024-09-20)
10
+
11
+
12
+ ### Features
13
+
14
+ * blockaid website scanning for global connectivity ([#6874](https://github.com/dynamic-labs/DynamicAuth/issues/6874)) ([#6960](https://github.com/dynamic-labs/DynamicAuth/issues/6960)) ([67ac487](https://github.com/dynamic-labs/DynamicAuth/commit/67ac487ce4123cd99ce532ca7d238ee8059bcf8b))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * dont verify all signatures for solana embedded ([#6958](https://github.com/dynamic-labs/DynamicAuth/issues/6958)) ([5d8ac6e](https://github.com/dynamic-labs/DynamicAuth/commit/5d8ac6ebb2cbf46dfaef7f2cef9f90f1294fb8e2)), closes [#6953](https://github.com/dynamic-labs/DynamicAuth/issues/6953)
20
+ * magic eden wallet transactions ([#6946](https://github.com/dynamic-labs/DynamicAuth/issues/6946)) ([#6967](https://github.com/dynamic-labs/DynamicAuth/issues/6967)) ([6e474f7](https://github.com/dynamic-labs/DynamicAuth/commit/6e474f76acfea34eb80a97daca06ea5df526797e))
21
+ * populate error variable when user closes oauth window for useSocialAccounts ([#6952](https://github.com/dynamic-labs/DynamicAuth/issues/6952)) ([#6970](https://github.com/dynamic-labs/DynamicAuth/issues/6970)) ([dca6aa5](https://github.com/dynamic-labs/DynamicAuth/commit/dca6aa5c795c62b39c6b78fc6a1515c1bfe1ba07))
22
+ * prevent calling refresh after logout ([#6948](https://github.com/dynamic-labs/DynamicAuth/issues/6948)) ([#6971](https://github.com/dynamic-labs/DynamicAuth/issues/6971)) ([6bd8a03](https://github.com/dynamic-labs/DynamicAuth/commit/6bd8a0359f5207ceabdd29ff21787140d4ca5234))
23
+ * qrcode for mfa in dark mode ([#6961](https://github.com/dynamic-labs/DynamicAuth/issues/6961)) ([#6969](https://github.com/dynamic-labs/DynamicAuth/issues/6969)) ([fb0cdc7](https://github.com/dynamic-labs/DynamicAuth/commit/fb0cdc7c9de225ae5279546f291df9677d7668f7))
24
+
2
25
  ## [3.1.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.3...v3.1.0) (2024-09-19)
3
26
 
4
27
 
package/package.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "3.1.0";
6
+ var version = "3.1.2";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.0.529",
9
9
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- var version = "3.1.0";
2
+ var version = "3.1.2";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.0.529",
5
5
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -17,16 +17,16 @@
17
17
  "react-i18next": "13.5.0",
18
18
  "yup": "0.32.11",
19
19
  "react-international-phone": "4.2.5",
20
- "@dynamic-labs/iconic": "3.1.0",
21
- "@dynamic-labs/logger": "3.1.0",
22
- "@dynamic-labs/message-transport": "3.1.0",
23
- "@dynamic-labs/multi-wallet": "3.1.0",
24
- "@dynamic-labs/rpc-providers": "3.1.0",
25
- "@dynamic-labs/store": "3.1.0",
26
- "@dynamic-labs/types": "3.1.0",
27
- "@dynamic-labs/utils": "3.1.0",
28
- "@dynamic-labs/wallet-book": "3.1.0",
29
- "@dynamic-labs/wallet-connector-core": "3.1.0",
20
+ "@dynamic-labs/iconic": "3.1.2",
21
+ "@dynamic-labs/logger": "3.1.2",
22
+ "@dynamic-labs/message-transport": "3.1.2",
23
+ "@dynamic-labs/multi-wallet": "3.1.2",
24
+ "@dynamic-labs/rpc-providers": "3.1.2",
25
+ "@dynamic-labs/store": "3.1.2",
26
+ "@dynamic-labs/types": "3.1.2",
27
+ "@dynamic-labs/utils": "3.1.2",
28
+ "@dynamic-labs/wallet-book": "3.1.2",
29
+ "@dynamic-labs/wallet-connector-core": "3.1.2",
30
30
  "eventemitter3": "5.0.1"
31
31
  },
32
32
  "devDependencies": {
@@ -103,7 +103,7 @@ const generateMatrix = (value, errorCorrectionLevel) => {
103
103
  ? rows.push([key])
104
104
  : rows[rows.length - 1].push(key)) && rows, []);
105
105
  };
106
- const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor, walletKey = undefined, showQrCodeImage, }) => {
106
+ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor = 'currentColor', walletKey = undefined, showQrCodeImage, }) => {
107
107
  const { data } = usePromise.usePromise(() => QRCodeUtil__default["default"].toDataURL(value));
108
108
  const dots = React.useMemo(() => {
109
109
  const dots = [];
@@ -118,7 +118,7 @@ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, va
118
118
  const x1 = (matrix.length - 7) * cellSize * x;
119
119
  const y1 = (matrix.length - 7) * cellSize * y;
120
120
  for (let i = 0; i < 3; i++) {
121
- dots.push(jsxRuntime.jsx("rect", { fill: i % 2 !== 0 ? 'currentColor' : accentColor, height: cellSize * (7 - i * 2), rx: i === 0 ? 10 : i === 1 ? 7 : 20, ry: i === 0 ? 10 : i === 1 ? 7 : 20, width: cellSize * (7 - i * 2), x: x1 + cellSize * i, y: y1 + cellSize * i }, `corner-square-${x}-${y}-${i}`));
121
+ dots.push(jsxRuntime.jsx("rect", { "data-key": `corner-square-${x}-${y}-${i}`, fill: i % 2 !== 0 ? 'var(--background)' : accentColor, height: cellSize * (7 - i * 2), rx: i === 0 ? 10 : i === 1 ? 7 : 20, ry: i === 0 ? 10 : i === 1 ? 7 : 20, width: cellSize * (7 - i * 2), x: x1 + cellSize * i, y: y1 + cellSize * i }, `corner-square-${x}-${y}-${i}`));
122
122
  }
123
123
  });
124
124
  const clearArenaSize = Math.floor((logoSize * 1.5) / cellSize);
@@ -95,7 +95,7 @@ const generateMatrix = (value, errorCorrectionLevel) => {
95
95
  ? rows.push([key])
96
96
  : rows[rows.length - 1].push(key)) && rows, []);
97
97
  };
98
- const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor, walletKey = undefined, showQrCodeImage, }) => {
98
+ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, value, accentColor = 'currentColor', walletKey = undefined, showQrCodeImage, }) => {
99
99
  const { data } = usePromise(() => QRCodeUtil.toDataURL(value));
100
100
  const dots = useMemo(() => {
101
101
  const dots = [];
@@ -110,7 +110,7 @@ const QRCode = ({ ecl = 'M', Icon, logoMargin = 0, logoSize = 40, size = 250, va
110
110
  const x1 = (matrix.length - 7) * cellSize * x;
111
111
  const y1 = (matrix.length - 7) * cellSize * y;
112
112
  for (let i = 0; i < 3; i++) {
113
- dots.push(jsx("rect", { fill: i % 2 !== 0 ? 'currentColor' : accentColor, height: cellSize * (7 - i * 2), rx: i === 0 ? 10 : i === 1 ? 7 : 20, ry: i === 0 ? 10 : i === 1 ? 7 : 20, width: cellSize * (7 - i * 2), x: x1 + cellSize * i, y: y1 + cellSize * i }, `corner-square-${x}-${y}-${i}`));
113
+ dots.push(jsx("rect", { "data-key": `corner-square-${x}-${y}-${i}`, fill: i % 2 !== 0 ? 'var(--background)' : accentColor, height: cellSize * (7 - i * 2), rx: i === 0 ? 10 : i === 1 ? 7 : 20, ry: i === 0 ? 10 : i === 1 ? 7 : 20, width: cellSize * (7 - i * 2), x: x1 + cellSize * i, y: y1 + cellSize * i }, `corner-square-${x}-${y}-${i}`));
114
114
  }
115
115
  });
116
116
  const clearArenaSize = Math.floor((logoSize * 1.5) / cellSize);
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { viewToComponentMap } from '../../../views/viewToComponentMap';
3
- export type ViewType = 'access-blocked' | 'select-hardware-wallet' | 'captcha' | 'chainalysis-blocked-wallet' | 'collect-user-data' | 'collect-user-data-login-no-wallet' | 'login-with-email-or-wallet-full-wallet-list' | 'login-with-email-or-wallet' | 'login-with-wallet-only' | 'login-with-email-verification' | 'login-with-sms-verification' | 'network-not-supported' | 'network-not-supported-manual' | 'no-access' | 'no-qr-not-installed' | 'pending-connect' | 'pending-signature-without-back-button' | 'pending-signature' | 'qr-code' | 'verify-email' | 'verify-sms' | 'wallet-connect-mobile-wallets-list' | 'wallet-list' | 'sandbox-maximum-threshold-reached' | 'multi-wallet-wallet-list' | 'wallet-sign' | 'wallet-used' | 'wallet-group' | 'select-wallet-in-wallet-group' | 'wait-for-email-confirmation-view' | 'email-wallet-otp-verification-view' | 'social-redirect-view' | 'wallet-locked-view' | 'social-wrong-account' | 'gate-blocked-wallet' | 'bridge-welcome' | 'bridge-summary' | 'bridge-next-wallet-connection' | 'account-exists' | 'merge-user-accounts' | 'merge-user-accounts-conflicts' | 'merge-user-accounts-with-same-email' | 'mfa-choose-device' | 'mfa-recovery' | 'mfa-secure-device' | 'mfa-secure-device-help' | 'mfa-verification' | 'mfa-display-backup-codes' | 'wallet-cannot-be-transferred' | 'passkey-intro' | 'passkey-recovery-add-email' | 'global-wallet-confirm' | 'global-wallet-info' | 'passkey-recovery-start' | 'passkey-recovery-bundle' | 'passkey-recovery-complete' | 'passkey-new-domain-detected' | 'embedded-reveal-view' | 'embedded-reveal-account-view' | 'embedded-wallet-auth-choice' | 'rename-passkey' | 'wallet-redirect-view' | 'create-password-view' | 'wallet-claim-intro' | 'farcaster-connect-view';
3
+ export type ViewType = 'access-blocked' | 'select-hardware-wallet' | 'captcha' | 'chainalysis-blocked-wallet' | 'collect-user-data' | 'collect-user-data-login-no-wallet' | 'login-with-email-or-wallet-full-wallet-list' | 'login-with-email-or-wallet' | 'login-with-wallet-only' | 'login-with-email-verification' | 'login-with-sms-verification' | 'network-not-supported' | 'network-not-supported-manual' | 'no-access' | 'no-qr-not-installed' | 'pending-connect' | 'pending-signature-without-back-button' | 'pending-signature' | 'qr-code' | 'verify-email' | 'verify-sms' | 'wallet-connect-mobile-wallets-list' | 'wallet-list' | 'sandbox-maximum-threshold-reached' | 'multi-wallet-wallet-list' | 'wallet-sign' | 'wallet-used' | 'wallet-group' | 'select-wallet-in-wallet-group' | 'wait-for-email-confirmation-view' | 'email-wallet-otp-verification-view' | 'social-redirect-view' | 'wallet-locked-view' | 'social-wrong-account' | 'gate-blocked-wallet' | 'bridge-welcome' | 'bridge-summary' | 'bridge-next-wallet-connection' | 'account-exists' | 'merge-user-accounts' | 'merge-user-accounts-conflicts' | 'merge-user-accounts-with-same-email' | 'mfa-choose-device' | 'mfa-recovery' | 'mfa-secure-device' | 'mfa-secure-device-help' | 'mfa-verification' | 'mfa-display-backup-codes' | 'wallet-cannot-be-transferred' | 'passkey-intro' | 'passkey-recovery-add-email' | 'global-wallet-confirm' | 'global-wallet-malicious' | 'global-wallet-info' | 'passkey-recovery-start' | 'passkey-recovery-bundle' | 'passkey-recovery-complete' | 'passkey-new-domain-detected' | 'embedded-reveal-view' | 'embedded-reveal-account-view' | 'embedded-wallet-auth-choice' | 'rename-passkey' | 'wallet-redirect-view' | 'create-password-view' | 'wallet-claim-intro' | 'farcaster-connect-view';
4
4
  export type ViewMapConstraint = Record<ViewType, FC<any>>;
5
5
  type ComponentProps<T extends FC<any>> = T extends FC<infer P> ? P : never;
6
6
  export type ViewMap = typeof viewToComponentMap;
@@ -0,0 +1,23 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var _tslib = require('../../../../../_virtual/_tslib.cjs');
7
+ var api = require('../api.cjs');
8
+
9
+ const isMaliciousUrl = (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ environmentId, url, }) {
10
+ try {
11
+ const request = {
12
+ environmentId,
13
+ scanWebsiteUrlRequest: { url },
14
+ };
15
+ const data = yield api.sdkApi().scanUrl(request);
16
+ return data.isMalicious;
17
+ }
18
+ catch (error) {
19
+ return undefined;
20
+ }
21
+ });
22
+
23
+ exports.isMaliciousUrl = isMaliciousUrl;
@@ -0,0 +1,19 @@
1
+ 'use client'
2
+ import { __awaiter } from '../../../../../_virtual/_tslib.js';
3
+ import { sdkApi } from '../api.js';
4
+
5
+ const isMaliciousUrl = (_a) => __awaiter(void 0, [_a], void 0, function* ({ environmentId, url, }) {
6
+ try {
7
+ const request = {
8
+ environmentId,
9
+ scanWebsiteUrlRequest: { url },
10
+ };
11
+ const data = yield sdkApi().scanUrl(request);
12
+ return data.isMalicious;
13
+ }
14
+ catch (error) {
15
+ return undefined;
16
+ }
17
+ });
18
+
19
+ export { isMaliciousUrl };
@@ -908,6 +908,24 @@ const translation = {
908
908
  },
909
909
  learn_more: 'Learn more about global wallets',
910
910
  },
911
+ malicious_site: {
912
+ certain: {
913
+ title: 'Malicious app detected!',
914
+ subtitle_header: 'Risk of losing funds',
915
+ subtitle_text:
916
+ 'The site is known to exploit and or take assets from connected wallets.',
917
+ go_back: 'Cancel',
918
+ proceed: 'Proceed',
919
+ },
920
+ unknown: {
921
+ title: 'Site verification did not run.',
922
+ subtitle_header: 'Double check the app',
923
+ subtitle_text:
924
+ 'We were unable to verify the vailidity of the app at this time.',
925
+ go_back: 'Cancel',
926
+ proceed: 'Proceed',
927
+ },
928
+ },
911
929
  },
912
930
  */
913
931
  global_wallet: {
@@ -939,6 +957,22 @@ const translation = {
939
957
  },
940
958
  learn_more: 'Learn more about global wallets',
941
959
  },
960
+ malicious_site: {
961
+ certain: {
962
+ title: 'Malicious app detected!',
963
+ subtitle_header: 'Risk of losing funds',
964
+ subtitle_text: 'The site is known to exploit and or take assets from connected wallets.',
965
+ go_back: 'Cancel',
966
+ proceed: 'Proceed',
967
+ },
968
+ unknown: {
969
+ title: 'Site verification did not run.',
970
+ subtitle_header: 'Double check the app',
971
+ subtitle_text: 'We were unable to verify the vailidity of the app at this time.',
972
+ go_back: 'Cancel',
973
+ proceed: 'Proceed',
974
+ },
975
+ },
942
976
  },
943
977
  /**
944
978
  * @description copy keys for mfa management view
@@ -1747,7 +1781,7 @@ const translation = {
1747
1781
  insufficient_funds: 'Insufficient funds due to gas price increase from estimate. Please add {{amountLeft}} {{currencySymbol}} to continue.',
1748
1782
  insufficient_gas_funds: 'Insufficient gas funds. Please add {{amountLeft}} {{currencySymbol}} to continue.',
1749
1783
  failed_simulation: 'Unable to simulate transaction, funds may be lost if submitted.',
1750
- not_enough_solana: 'Insufficient funds to process this transaction',
1784
+ not_enough_solana: 'Insufficient funds, your SOL balance after the transaction must be at least 0.001.',
1751
1785
  },
1752
1786
  error_message: {
1753
1787
  gas_not_sponsored: 'The gas fee has increased. Confirm if you still want to complete this transaction.',
@@ -904,6 +904,24 @@ export declare const translation: {
904
904
  },
905
905
  learn_more: 'Learn more about global wallets',
906
906
  },
907
+ malicious_site: {
908
+ certain: {
909
+ title: 'Malicious app detected!',
910
+ subtitle_header: 'Risk of losing funds',
911
+ subtitle_text:
912
+ 'The site is known to exploit and or take assets from connected wallets.',
913
+ go_back: 'Cancel',
914
+ proceed: 'Proceed',
915
+ },
916
+ unknown: {
917
+ title: 'Site verification did not run.',
918
+ subtitle_header: 'Double check the app',
919
+ subtitle_text:
920
+ 'We were unable to verify the vailidity of the app at this time.',
921
+ go_back: 'Cancel',
922
+ proceed: 'Proceed',
923
+ },
924
+ },
907
925
  },
908
926
  */
909
927
  global_wallet: {
@@ -935,6 +953,22 @@ export declare const translation: {
935
953
  };
936
954
  learn_more: string;
937
955
  };
956
+ malicious_site: {
957
+ certain: {
958
+ title: string;
959
+ subtitle_header: string;
960
+ subtitle_text: string;
961
+ go_back: string;
962
+ proceed: string;
963
+ };
964
+ unknown: {
965
+ title: string;
966
+ subtitle_header: string;
967
+ subtitle_text: string;
968
+ go_back: string;
969
+ proceed: string;
970
+ };
971
+ };
938
972
  };
939
973
  /**
940
974
  * @description copy keys for mfa management view
@@ -904,6 +904,24 @@ const translation = {
904
904
  },
905
905
  learn_more: 'Learn more about global wallets',
906
906
  },
907
+ malicious_site: {
908
+ certain: {
909
+ title: 'Malicious app detected!',
910
+ subtitle_header: 'Risk of losing funds',
911
+ subtitle_text:
912
+ 'The site is known to exploit and or take assets from connected wallets.',
913
+ go_back: 'Cancel',
914
+ proceed: 'Proceed',
915
+ },
916
+ unknown: {
917
+ title: 'Site verification did not run.',
918
+ subtitle_header: 'Double check the app',
919
+ subtitle_text:
920
+ 'We were unable to verify the vailidity of the app at this time.',
921
+ go_back: 'Cancel',
922
+ proceed: 'Proceed',
923
+ },
924
+ },
907
925
  },
908
926
  */
909
927
  global_wallet: {
@@ -935,6 +953,22 @@ const translation = {
935
953
  },
936
954
  learn_more: 'Learn more about global wallets',
937
955
  },
956
+ malicious_site: {
957
+ certain: {
958
+ title: 'Malicious app detected!',
959
+ subtitle_header: 'Risk of losing funds',
960
+ subtitle_text: 'The site is known to exploit and or take assets from connected wallets.',
961
+ go_back: 'Cancel',
962
+ proceed: 'Proceed',
963
+ },
964
+ unknown: {
965
+ title: 'Site verification did not run.',
966
+ subtitle_header: 'Double check the app',
967
+ subtitle_text: 'We were unable to verify the vailidity of the app at this time.',
968
+ go_back: 'Cancel',
969
+ proceed: 'Proceed',
970
+ },
971
+ },
938
972
  },
939
973
  /**
940
974
  * @description copy keys for mfa management view
@@ -1743,7 +1777,7 @@ const translation = {
1743
1777
  insufficient_funds: 'Insufficient funds due to gas price increase from estimate. Please add {{amountLeft}} {{currencySymbol}} to continue.',
1744
1778
  insufficient_gas_funds: 'Insufficient gas funds. Please add {{amountLeft}} {{currencySymbol}} to continue.',
1745
1779
  failed_simulation: 'Unable to simulate transaction, funds may be lost if submitted.',
1746
- not_enough_solana: 'Insufficient funds to process this transaction',
1780
+ not_enough_solana: 'Insufficient funds, your SOL balance after the transaction must be at least 0.001.',
1747
1781
  },
1748
1782
  error_message: {
1749
1783
  gas_not_sponsored: 'The gas fee has increased. Confirm if you still want to complete this transaction.',
@@ -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 SvgCautionTriangle = function SvgCautionTriangle(_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: 17,
39
+ height: 16,
40
+ viewBox: "0 0 17 16",
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: "M6.335 1.917c.962-1.667 3.368-1.667 4.33 0l5.774 10c.962 1.666-.241 3.75-2.166 3.75H2.726c-1.924 0-3.127-2.084-2.165-3.75l5.774-10Zm2.887.833a.833.833 0 0 0-1.444 0l-5.773 10A.833.833 0 0 0 2.726 14h11.547a.833.833 0 0 0 .722-1.25l-5.773-10ZM8.5 5.667c.46 0 .833.373.833.833v1.667a.833.833 0 0 1-1.666 0V6.5c0-.46.373-.833.833-.833ZM7.667 11.5c0-.46.373-.833.833-.833h.008a.833.833 0 1 1 0 1.666H8.5a.833.833 0 0 1-.833-.833Z",
50
+ fill: "#DD8500"
51
+ })));
52
+ };
53
+
54
+ exports.ReactComponent = SvgCautionTriangle;
@@ -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 SvgCautionTriangle = function SvgCautionTriangle(_ref) {
10
+ var title = _ref.title,
11
+ titleId = _ref.titleId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ width: 17,
15
+ height: 16,
16
+ viewBox: "0 0 17 16",
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: "M6.335 1.917c.962-1.667 3.368-1.667 4.33 0l5.774 10c.962 1.666-.241 3.75-2.166 3.75H2.726c-1.924 0-3.127-2.084-2.165-3.75l5.774-10Zm2.887.833a.833.833 0 0 0-1.444 0l-5.773 10A.833.833 0 0 0 2.726 14h11.547a.833.833 0 0 0 .722-1.25l-5.773-10ZM8.5 5.667c.46 0 .833.373.833.833v1.667a.833.833 0 0 1-1.666 0V6.5c0-.46.373-.833.833-.833ZM7.667 11.5c0-.46.373-.833.833-.833h.008a.833.833 0 1 1 0 1.666H8.5a.833.833 0 0 1-.833-.833Z",
26
+ fill: "#DD8500"
27
+ })));
28
+ };
29
+
30
+ export { SvgCautionTriangle as ReactComponent };
@@ -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 SvgExclamationCircle = function SvgExclamationCircle(_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: 17,
39
+ height: 18,
40
+ viewBox: "0 0 17 18",
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: "M8.5 2.333a6.667 6.667 0 1 0 0 13.334 6.667 6.667 0 0 0 0-13.334ZM.167 9a8.333 8.333 0 1 1 16.666 0A8.333 8.333 0 0 1 .167 9ZM8.5 4.833c.46 0 .833.373.833.834V9a.833.833 0 1 1-1.667 0V5.667c0-.46.374-.834.834-.834Zm-.833 7.5c0-.46.373-.833.833-.833h.008a.833.833 0 0 1 0 1.667H8.5a.833.833 0 0 1-.833-.834Z",
50
+ fill: "#FF4646"
51
+ })));
52
+ };
53
+
54
+ exports.ReactComponent = SvgExclamationCircle;
@@ -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 SvgExclamationCircle = function SvgExclamationCircle(_ref) {
10
+ var title = _ref.title,
11
+ titleId = _ref.titleId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ width: 17,
15
+ height: 18,
16
+ viewBox: "0 0 17 18",
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: "M8.5 2.333a6.667 6.667 0 1 0 0 13.334 6.667 6.667 0 0 0 0-13.334ZM.167 9a8.333 8.333 0 1 1 16.666 0A8.333 8.333 0 0 1 .167 9ZM8.5 4.833c.46 0 .833.373.833.834V9a.833.833 0 1 1-1.667 0V5.667c0-.46.374-.834.834-.834Zm-.833 7.5c0-.46.373-.833.833-.833h.008a.833.833 0 0 1 0 1.667H8.5a.833.833 0 0 1-.833-.834Z",
26
+ fill: "#FF4646"
27
+ })));
28
+ };
29
+
30
+ export { SvgExclamationCircle as ReactComponent };
@@ -0,0 +1,52 @@
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 SvgExclamation = function SvgExclamation(_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: 7,
39
+ height: 32,
40
+ viewBox: "0 0 7 32",
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
+ d: "M6.4 3.2a3.2 3.2 0 0 0-6.4 0V16a3.2 3.2 0 0 0 6.4 0V3.2ZM3.2 25.6a3.2 3.2 0 0 0 0 6.4h.032a3.2 3.2 0 0 0 0-6.4H3.2Z",
48
+ fill: "#F9F9FB"
49
+ })));
50
+ };
51
+
52
+ exports.ReactComponent = SvgExclamation;
@@ -0,0 +1,28 @@
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 SvgExclamation = function SvgExclamation(_ref) {
10
+ var title = _ref.title,
11
+ titleId = _ref.titleId,
12
+ props = _objectWithoutProperties(_ref, _excluded);
13
+ return /*#__PURE__*/React.createElement("svg", _extends({
14
+ width: 7,
15
+ height: 32,
16
+ viewBox: "0 0 7 32",
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
+ d: "M6.4 3.2a3.2 3.2 0 0 0-6.4 0V16a3.2 3.2 0 0 0 6.4 0V3.2ZM3.2 25.6a3.2 3.2 0 0 0 0 6.4h.032a3.2 3.2 0 0 0 0-6.4H3.2Z",
24
+ fill: "#F9F9FB"
25
+ })));
26
+ };
27
+
28
+ export { SvgExclamation as ReactComponent };
@@ -13,7 +13,10 @@ export { ReactComponent as AtIcon } from './at.svg';
13
13
  export { ReactComponent as CheckCircleIcon } from './check-circle.svg';
14
14
  export { ReactComponent as CheckConnectionIcon } from './check-connection.svg';
15
15
  export { ReactComponent as CheckIcon } from './check.svg';
16
+ export { ReactComponent as ExclamationIcon } from './exclamation.svg';
17
+ export { ReactComponent as ExclamationCircleIcon } from './exclamation-circle.svg';
16
18
  export { ReactComponent as ChevronDownIcon } from './chevron-down.svg';
19
+ export { ReactComponent as CautionTriangleIcon } from './caution-triangle.svg';
17
20
  export { ReactComponent as ChevronLeftIcon } from './chevron-left.svg';
18
21
  export { ReactComponent as CircleLockerIcon } from './circle-locker.svg';
19
22
  export { ReactComponent as CheckBlueIcon } from './check-blue.svg';
@@ -34,6 +37,8 @@ export { ReactComponent as ExternalLinkIcon } from './externalLink.svg';
34
37
  export { ReactComponent as EyeOffIcon } from './eye-off-icon.svg';
35
38
  export { ReactComponent as ArrowCircleRight } from './arrow-circle-right.svg';
36
39
  export { ReactComponent as FaceIdIcon } from './face-id.svg';
40
+ export { ReactComponent as WarningRedIcon } from './warning-red.svg';
41
+ export { ReactComponent as WarningOrangeIcon } from './warning-orange.svg';
37
42
  export { ReactComponent as GlobalWalletIcon } from './global-wallet-icon.svg';
38
43
  export { ReactComponent as EyeIcon } from './footer-eye-icon.svg';
39
44
  export { ReactComponent as GasIcon } from './footer-gas-icon.svg';