@openfort/react 0.0.26 → 0.0.28

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 (134) hide show
  1. package/LICENSE +25 -0
  2. package/README.md +5 -17
  3. package/build/assets/chains.d.ts +0 -8
  4. package/build/assets/icons.d.ts +0 -9
  5. package/build/assets/logos.d.ts +0 -83
  6. package/build/components/BalanceButton/index.d.ts +2 -4
  7. package/build/components/Common/Alert/index.d.ts +1 -1
  8. package/build/components/Common/Avatar/index.d.ts +1 -1
  9. package/build/components/Common/BrowserIcon/index.d.ts +1 -1
  10. package/build/components/Common/Button/index.d.ts +2 -2
  11. package/build/components/Common/Button/types.d.ts +1 -1
  12. package/build/components/Common/Chain/index.d.ts +1 -1
  13. package/build/components/Common/ChainSelect/index.d.ts +1 -1
  14. package/build/components/Common/ChainSelectDropdown/index.d.ts +1 -1
  15. package/build/components/Common/ChainSelectList/index.d.ts +1 -1
  16. package/build/components/Common/ConnectorList/styles.d.ts +0 -1
  17. package/build/components/Common/CopyToClipboard/CopyToClipboardIcon.d.ts +1 -1
  18. package/build/components/Common/CopyToClipboard/index.d.ts +1 -1
  19. package/build/components/Common/CustomQRCode/QRCode.d.ts +1 -1
  20. package/build/components/Common/CustomQRCode/index.d.ts +2 -2
  21. package/build/components/Common/CustomQRCode/styles.d.ts +0 -1
  22. package/build/components/Common/CustomQRCode/types.d.ts +1 -1
  23. package/build/components/Common/FitText/index.d.ts +1 -1
  24. package/build/components/Common/Input/index.d.ts +1 -1
  25. package/build/components/Common/Input/types.d.ts +1 -1
  26. package/build/components/Common/Modal/index.d.ts +4 -4
  27. package/build/components/Common/Modal/styles.d.ts +0 -5
  28. package/build/components/Common/PoweredByFooter/index.d.ts +0 -1
  29. package/build/components/Common/ScrollArea/index.d.ts +1 -1
  30. package/build/components/Common/SquircleSpinner/index.d.ts +1 -1
  31. package/build/components/Common/ThemedButton/index.d.ts +2 -3
  32. package/build/components/Common/Tooltip/index.d.ts +2 -2
  33. package/build/components/Common/Tooltip/styles.d.ts +1 -1
  34. package/build/components/ConnectButton/index.d.ts +3 -3
  35. package/build/components/ConnectButton/styles.d.ts +0 -1
  36. package/build/components/ConnectKitThemeProvider/ConnectKitThemeProvider.d.ts +1 -1
  37. package/build/components/ConnectModal/ConnectWithInjector/CircleSpinner/index.d.ts +1 -1
  38. package/build/components/ConnectModal/ConnectWithInjector/index.d.ts +2 -2
  39. package/build/components/ConnectModal/ConnectWithMobile.d.ts +1 -1
  40. package/build/components/ConnectModal/ConnectWithOAuth.d.ts +1 -1
  41. package/build/components/ConnectModal/index.d.ts +1 -1
  42. package/build/components/FloatingGraphic/index.d.ts +2 -3
  43. package/build/components/Openfort/OpenfortProvider.d.ts +4 -4
  44. package/build/components/Openfort/context.d.ts +8 -8
  45. package/build/components/Openfort/types.d.ts +6 -9
  46. package/build/components/Pages/About/graphics.d.ts +1 -1
  47. package/build/components/Pages/About/index.d.ts +1 -1
  48. package/build/components/Pages/Connectors/index.d.ts +1 -1
  49. package/build/components/Pages/EmailLogin/index.d.ts +1 -1
  50. package/build/components/Pages/EmailVerification/index.d.ts +1 -1
  51. package/build/components/Pages/ForgotPassword/index.d.ts +1 -1
  52. package/build/components/Pages/LinkEmail/index.d.ts +1 -1
  53. package/build/components/Pages/Loading/index.d.ts +1 -1
  54. package/build/components/Pages/MobileConnectors/index.d.ts +1 -1
  55. package/build/components/Pages/Onboarding/index.d.ts +1 -1
  56. package/build/components/Pages/Profile/index.d.ts +1 -1
  57. package/build/components/Pages/Providers/index.d.ts +2 -2
  58. package/build/components/Pages/Recover/index.d.ts +1 -1
  59. package/build/components/Pages/SoicalProviders/index.d.ts +1 -1
  60. package/build/components/Pages/SwitchNetworks/index.d.ts +1 -1
  61. package/build/components/PasswordStrength/PasswordStrengthIndicator.d.ts +1 -1
  62. package/build/components/PasswordStrength/password-utility.d.ts +2 -52
  63. package/build/components/contexts/web3/index.d.ts +2 -2
  64. package/build/constants/chainConfigs.d.ts +1 -1
  65. package/build/defaultConfig.d.ts +2 -3
  66. package/build/defaultConnectors.d.ts +2 -2
  67. package/build/hooks/openfort/auth/status.d.ts +2 -2
  68. package/build/hooks/openfort/auth/useAuthCallback.d.ts +16 -9
  69. package/build/hooks/openfort/auth/useConnectToWalletPostAuth.d.ts +2 -2
  70. package/build/hooks/openfort/auth/useEmailAuth.d.ts +13 -12
  71. package/build/hooks/openfort/auth/useGuestAuth.d.ts +7 -6
  72. package/build/hooks/openfort/auth/useOAuth.d.ts +9 -9
  73. package/build/hooks/openfort/auth/useSignOut.d.ts +1 -1
  74. package/build/hooks/openfort/auth/useWalletAuth.d.ts +2 -2
  75. package/build/hooks/openfort/hookConsistency.d.ts +1 -1
  76. package/build/hooks/openfort/use7702Authorization.d.ts +2 -1
  77. package/build/hooks/openfort/useConnectWithSiwe.d.ts +3 -1
  78. package/build/hooks/openfort/useProviders.d.ts +1 -1
  79. package/build/hooks/openfort/useWallets.d.ts +9 -16
  80. package/build/hooks/useChains.d.ts +1 -1
  81. package/build/hooks/useConnect.d.ts +11 -105
  82. package/build/hooks/useConnectCallback.d.ts +2 -2
  83. package/build/hooks/useConnectors.d.ts +0 -3
  84. package/build/hooks/useEnsFallbackConfig.d.ts +42 -2
  85. package/build/hooks/useFitText.d.ts +2 -2
  86. package/build/hooks/useGoogleFont.d.ts +1 -2
  87. package/build/hooks/useLocales.d.ts +1 -1
  88. package/build/hooks/useWalletConnectModal.d.ts +5 -1
  89. package/build/index.d.ts +20 -19
  90. package/build/index.es.js +12819 -13088
  91. package/build/index.es.js.map +1 -1
  92. package/build/localizations/locales/ar-AE.d.ts +1 -1
  93. package/build/localizations/locales/ca-AD.d.ts +1 -1
  94. package/build/localizations/locales/ee-EE.d.ts +1 -1
  95. package/build/localizations/locales/es-ES.d.ts +1 -1
  96. package/build/localizations/locales/fa-IR.d.ts +1 -1
  97. package/build/localizations/locales/fr-FR.d.ts +1 -1
  98. package/build/localizations/locales/index.d.ts +1 -1
  99. package/build/localizations/locales/ja-JP.d.ts +1 -1
  100. package/build/localizations/locales/pt-BR.d.ts +1 -1
  101. package/build/localizations/locales/ru-RU.d.ts +1 -1
  102. package/build/localizations/locales/tr-TR.d.ts +1 -1
  103. package/build/localizations/locales/vi-VN.d.ts +1 -1
  104. package/build/localizations/locales/zh-CN.d.ts +1 -1
  105. package/build/openfort/CoreOpenfortProvider.d.ts +7 -5
  106. package/build/openfort/context.d.ts +1 -1
  107. package/build/openfort/core/client.d.ts +1 -15
  108. package/build/openfort/core/index.d.ts +1 -1
  109. package/build/openfort/useOpenfort.d.ts +1 -1
  110. package/build/styles/index.d.ts +1 -1
  111. package/build/types.d.ts +3 -3
  112. package/build/utils/index.d.ts +1 -7
  113. package/build/utils/logger.d.ts +2 -2
  114. package/build/utils/oauthErrorHandler.d.ts +0 -1
  115. package/build/utils/p3.d.ts +0 -1
  116. package/build/utils/wallets.d.ts +0 -16
  117. package/build/version.d.ts +1 -1
  118. package/build/wallets/index.d.ts +1 -1
  119. package/build/wallets/useWallets.d.ts +2 -2
  120. package/package.json +16 -18
  121. package/build/components/Common/DynamicContainer/index.d.ts +0 -7
  122. package/build/components/Common/LazyImage/index.d.ts +0 -8
  123. package/build/components/Common/Logo/index.d.ts +0 -8
  124. package/build/components/Common/Logo/styles.d.ts +0 -6
  125. package/build/components/NetworkButton/index.d.ts +0 -8
  126. package/build/components/Pages/Connectors/styles.d.ts +0 -10
  127. package/build/components/Pages/SoicalProviders/styles.d.ts +0 -3
  128. package/build/defaultTransports.d.ts +0 -38
  129. package/build/hooks/connectors/useCoinbaseWalletUri.d.ts +0 -0
  130. package/build/hooks/openfort/auth/useThirdPartyAuth.d.ts +0 -1
  131. package/build/hooks/useLocalStorage.d.ts +0 -7
  132. package/build/styles/defaultTheme.d.ts +0 -3
  133. package/build/styles/types.d.ts +0 -80
  134. package/build/utils/localstorage.d.ts +0 -68
@@ -1,68 +0,0 @@
1
- /**
2
- * LocalStorage helper functions to save and retrieve data on a per-app basis.
3
- *
4
- * Use these utilities to manage recently connected wallets, transactions, and other session data.
5
- */
6
- /**
7
- * Persists an array of values to `localStorage` under the provided key.
8
- *
9
- * @param storageKey - Identifier used to store the serialised data.
10
- * @param data - Items to persist.
11
- * @returns The data that was successfully stored, or an empty array when storage fails.
12
- *
13
- * @example
14
- * ```ts
15
- * save('openfort:recent-wallets', ['0x1234']);
16
- * ```
17
- */
18
- export declare const save: (storageKey: string, data: any[]) => any;
19
- /**
20
- * Reads and deserialises items from `localStorage`.
21
- *
22
- * @param storageKey - Identifier used when the data was stored.
23
- * @returns The stored array, or an empty array if the key is missing or the payload is invalid.
24
- *
25
- * @example
26
- * ```ts
27
- * const wallets = get('openfort:recent-wallets');
28
- * ```
29
- */
30
- export declare const get: (storageKey: string) => any;
31
- /**
32
- * Adds a new item to the stored array and records metadata for future removal.
33
- *
34
- * @param storageKey - Identifier used for the stored array.
35
- * @param item - Item to persist.
36
- * @returns The updated stored array.
37
- *
38
- * @example
39
- * ```ts
40
- * add('openfort:recent-wallets', { address: '0x1234' });
41
- * ```
42
- */
43
- export declare const add: (storageKey: string, item: any) => any;
44
- /**
45
- * Removes an existing item from the stored array.
46
- *
47
- * @param storageKey - Identifier used for the stored array.
48
- * @param item - Item to remove. The object's `ckStoreKey` is used to identify entries.
49
- * @returns The updated stored array.
50
- *
51
- * @example
52
- * ```ts
53
- * remove('openfort:recent-wallets', wallet);
54
- * ```
55
- */
56
- export declare const remove: (storageKey: string, item: any) => any;
57
- /**
58
- * Clears all stored items for the provided key.
59
- *
60
- * @param storageKey - Identifier used for the stored array.
61
- * @returns An empty array once the items have been removed.
62
- *
63
- * @example
64
- * ```ts
65
- * clear('openfort:recent-wallets');
66
- * ```
67
- */
68
- export declare const clear: (storageKey: string) => any;