@aurora-is-near/intents-swap-widget 3.15.2 → 3.16.0

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 (165) hide show
  1. package/dist/components/TokenIcon.d.ts +5 -12
  2. package/dist/components/TokenIcon.js +34 -32
  3. package/dist/components/TokenIcon.js.map +1 -1
  4. package/dist/{config-CJfcVohD.js → config-DQMHUj5z.js} +678 -681
  5. package/dist/config-DQMHUj5z.js.map +1 -0
  6. package/dist/config.d.ts +1 -1
  7. package/dist/config.js +1 -1
  8. package/dist/constants/chains.d.ts +0 -1
  9. package/dist/constants/chains.js +44 -65
  10. package/dist/constants/chains.js.map +1 -1
  11. package/dist/constants/tokens.d.ts +1 -1
  12. package/dist/constants/tokens.js +3 -50
  13. package/dist/constants/tokens.js.map +1 -1
  14. package/dist/errors.js +1 -1
  15. package/dist/ext/alchemy/index.js +1 -1
  16. package/dist/ext/index.js +1 -1
  17. package/dist/features/BalanceRpcLoader/TokenBalanceLoader.js +1 -1
  18. package/dist/features/BalanceRpcLoader/index.js +1 -1
  19. package/dist/features/BalanceRpcLoader/useTokenBalanceRpc.js +1 -1
  20. package/dist/features/ChainsDropdown/index.js +32 -32
  21. package/dist/features/ChainsDropdown/index.js.map +1 -1
  22. package/dist/features/DepositMethodSwitcher.js +1 -1
  23. package/dist/features/ErrorBoundary.js +1 -1
  24. package/dist/features/ExternalDeposit.js +1 -1
  25. package/dist/features/SendAddress/index.js +1 -1
  26. package/dist/features/SendAddress/useNotification.js +1 -1
  27. package/dist/features/SubmitButton/index.js +1 -1
  28. package/dist/features/SuccessScreen/index.js +1 -1
  29. package/dist/features/SwapDirectionSwitcher.js +1 -1
  30. package/dist/features/SwapQuote/SwapQuote.js +1 -1
  31. package/dist/features/SwapQuote/index.js +1 -1
  32. package/dist/features/TokenInput/TokenInput.js +1 -1
  33. package/dist/features/TokenInput/TokenInputEmpty.js +1 -1
  34. package/dist/features/TokenInput/TokenInputSource.js +1 -1
  35. package/dist/features/TokenInput/TokenInputTarget.js +1 -1
  36. package/dist/features/TokenInput/WalletBalance.js +1 -1
  37. package/dist/features/TokenInput/hooks/index.js +1 -1
  38. package/dist/features/TokenInput/hooks/useTokenInputBalance.js +1 -1
  39. package/dist/features/TokenInput/index.js +1 -1
  40. package/dist/features/TokensList/TokenItem.js +1 -1
  41. package/dist/features/TokensList/TokensList.js +1 -1
  42. package/dist/features/TokensList/index.js +1 -1
  43. package/dist/features/TokensModal.js +1 -1
  44. package/dist/features/WalletCompatibilityCheck/WalletCompatibilityModal.js +1 -1
  45. package/dist/features/WalletCompatibilityCheck/index.js +1 -1
  46. package/dist/features/index.js +1 -1
  47. package/dist/hooks/index.js +1 -1
  48. package/dist/hooks/useAllTokens.js +1 -1
  49. package/dist/hooks/useChains.js +1 -1
  50. package/dist/hooks/useCompatibilityCheck.js +1 -1
  51. package/dist/hooks/useDefaultToken.js +1 -1
  52. package/dist/hooks/useExternalDepositStatus/index.js +1 -1
  53. package/dist/hooks/useExternalDepositStatus/usePoaExternalDepositStatus.js +1 -1
  54. package/dist/hooks/useIntentsBalance.js +1 -1
  55. package/dist/hooks/useIsCompatibilityCheckRequired.js +1 -1
  56. package/dist/hooks/useMakeDepositAddress.js +1 -1
  57. package/dist/hooks/useMakeIntentsTransfer.js +1 -1
  58. package/dist/hooks/useMakeNEARFtTransferCall.js +1 -1
  59. package/dist/hooks/useMakeQuote.js +1 -1
  60. package/dist/hooks/useMakeQuoteTransfer.js +1 -1
  61. package/dist/hooks/useMakeTransfer.js +1 -1
  62. package/dist/hooks/useMergedBalance.js +1 -1
  63. package/dist/hooks/useSwitchChain.js +1 -1
  64. package/dist/hooks/useTheme.js +1 -1
  65. package/dist/hooks/useTokenInputPair.js +1 -1
  66. package/dist/hooks/useTokens.js +2 -2
  67. package/dist/hooks/useTokensFiltered.js +1 -1
  68. package/dist/hooks/useTokensIntentsUnique.js +1 -1
  69. package/dist/icons/index.d.ts +4 -0
  70. package/dist/icons/index.js +392 -0
  71. package/dist/icons/index.js.map +1 -0
  72. package/dist/index.js +1 -1
  73. package/dist/machine/effects/index.js +1 -1
  74. package/dist/machine/effects/useAlchemyBalanceEffect.js +1 -1
  75. package/dist/machine/effects/useBalancesUpdateEffect.js +1 -1
  76. package/dist/machine/effects/useMakeQuoteEffect.js +1 -1
  77. package/dist/machine/effects/useSelectedTokensEffect.d.ts +0 -2
  78. package/dist/machine/effects/useSelectedTokensEffect.js +1 -1
  79. package/dist/machine/effects/useSetTokenBalanceEffect.js +1 -1
  80. package/dist/machine/effects/useSetTokenIntentsTargetEffect.js +1 -1
  81. package/dist/machine/effects/useWalletConnEffect.js +1 -1
  82. package/dist/machine/events/index.js +1 -1
  83. package/dist/machine/events/tokenSelect.js +1 -1
  84. package/dist/machine/events/validateInputAndMoveTo.js +1 -1
  85. package/dist/machine/events/validateInputs.js +1 -1
  86. package/dist/machine/index.js +1 -1
  87. package/dist/machine/snap.d.ts +0 -18
  88. package/dist/machine/snap.js +1 -1
  89. package/dist/machine/subscriptions/checkers/isSendAddressAsConnected.js +1 -1
  90. package/dist/machine/subscriptions/index.js +1 -1
  91. package/dist/styles.css +1 -1
  92. package/dist/tailwind.css +0 -4
  93. package/dist/theme/ThemeProvider.js +1 -1
  94. package/dist/theme.css +5 -4
  95. package/dist/types/chain.d.ts +0 -1
  96. package/dist/types/config.d.ts +1 -1
  97. package/dist/types/token.d.ts +0 -1
  98. package/dist/utils/intents/signers/near.js +1 -1
  99. package/dist/utils/intents/signers/privy.js +1 -1
  100. package/dist/utils/near/getNearNep141StorageBalance.js +1 -1
  101. package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +3 -3
  102. package/dist/widgets/WidgetDeposit/WidgetDepositContent.js.map +1 -1
  103. package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.js +1 -1
  104. package/dist/widgets/WidgetSwap/WidgetSwapContent.js +1 -1
  105. package/dist/widgets/WidgetSwap/WidgetSwapSkeleton.js +1 -1
  106. package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +1 -1
  107. package/dist/widgets/WidgetWithdraw/WidgetWithdrawSkeleton.js +1 -1
  108. package/package.json +1 -1
  109. package/src/components/TokenIcon.tsx +35 -38
  110. package/src/config.tsx +0 -2
  111. package/src/constants/chains.ts +0 -23
  112. package/src/constants/tokens.ts +1 -48
  113. package/src/features/ChainsDropdown/index.tsx +5 -5
  114. package/src/features/TokenInput/TokenInput.tsx +1 -1
  115. package/src/features/TokensList/TokenItem.tsx +1 -1
  116. package/src/hooks/useTokens.ts +1 -8
  117. package/src/icons/abg.svg +11 -0
  118. package/src/icons/arb.svg +22 -0
  119. package/src/icons/aster.svg +1 -0
  120. package/src/icons/aurora.svg +14 -0
  121. package/src/icons/avax.svg +12 -0
  122. package/src/icons/base.svg +11 -0
  123. package/src/icons/bera.svg +20 -0
  124. package/src/icons/bsc.svg +14 -0
  125. package/src/icons/btc.svg +11 -0
  126. package/src/icons/cardano.svg +40 -0
  127. package/src/icons/doge.svg +15 -0
  128. package/src/icons/eth.svg +16 -0
  129. package/src/icons/frax.svg +26 -0
  130. package/src/icons/gnear.svg +1 -0
  131. package/src/icons/gnosis.svg +16 -0
  132. package/src/icons/index.tsx +111 -0
  133. package/src/icons/itlx.svg +12 -0
  134. package/src/icons/jambo.svg +10 -0
  135. package/src/icons/knc.svg +1 -0
  136. package/src/icons/loud.svg +7 -0
  137. package/src/icons/ltc.svg +1 -0
  138. package/src/icons/mon.svg +1 -0
  139. package/src/icons/mpdao.svg +1 -0
  140. package/src/icons/near.svg +16 -0
  141. package/src/icons/noear.svg +10 -0
  142. package/src/icons/op.svg +12 -0
  143. package/src/icons/pol.svg +11 -0
  144. package/src/icons/public.svg +1 -0
  145. package/src/icons/purge.svg +10 -0
  146. package/src/icons/rhea.svg +10 -0
  147. package/src/icons/sol.svg +21 -0
  148. package/src/icons/sui.svg +16 -0
  149. package/src/icons/ton.svg +11 -0
  150. package/src/icons/tron.svg +11 -0
  151. package/src/icons/unknown.svg +4 -0
  152. package/src/icons/usd1.svg +10 -0
  153. package/src/icons/usdf.svg +10 -0
  154. package/src/icons/wif.svg +10 -0
  155. package/src/icons/xdai.svg +22 -0
  156. package/src/icons/xrp.svg +17 -0
  157. package/src/icons/zec.svg +16 -0
  158. package/src/tailwind.css +0 -4
  159. package/src/theme/ThemeProvider.tsx +3 -1
  160. package/src/theme.css +5 -4
  161. package/src/types/chain.ts +0 -1
  162. package/src/types/config.ts +1 -1
  163. package/src/types/token.ts +0 -1
  164. package/src/widgets/WidgetDeposit/WidgetDepositContent.tsx +1 -1
  165. package/dist/config-CJfcVohD.js.map +0 -1
@@ -0,0 +1,17 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_182_4)">
3
+ <path d="M28 0H0V28H28V0Z" fill="white"/>
4
+ <mask id="mask0_182_4" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="7" width="16" height="14">
5
+ <path d="M21.87 7.55H6.12V20.44H21.87V7.55Z" fill="white"/>
6
+ </mask>
7
+ <g mask="url(#mask0_182_4)">
8
+ <path d="M19.57 7.55H21.85L17.11 12.18C15.39 13.86 12.61 13.86 10.9 12.18L6.15999 7.55H8.43999L12.04 11.07C12.56 11.58 13.27 11.87 14.01 11.87C14.75 11.87 15.45 11.58 15.98 11.07L19.58 7.55H19.57Z" fill="#23292F"/>
9
+ <path d="M8.39999 20.44H6.12L10.89 15.78C12.61 14.1 15.39 14.1 17.1 15.78L21.87 20.44H19.59L15.96 16.89C15.44 16.38 14.73 16.09 13.99 16.09C13.25 16.09 12.55 16.38 12.02 16.89L8.39 20.44H8.39999Z" fill="#23292F"/>
10
+ </g>
11
+ </g>
12
+ <defs>
13
+ <clipPath id="clip0_182_4">
14
+ <rect width="28" height="28" fill="white"/>
15
+ </clipPath>
16
+ </defs>
17
+ </svg>
@@ -0,0 +1,16 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_182_8)">
3
+ <path d="M28 0H0V28H28V0Z" fill="#F4B728"/>
4
+ <mask id="mask0_182_8" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="28" height="28">
5
+ <path d="M21 0H7C3.13401 0 0 3.13401 0 7V21C0 24.866 3.13401 28 7 28H21C24.866 28 28 24.866 28 21V7C28 3.13401 24.866 0 21 0Z" fill="white"/>
6
+ </mask>
7
+ <g mask="url(#mask0_182_8)">
8
+ <path d="M15.17 22.84V20.49H18.99V17.67H13.07L18.99 9.63V7.5H15.17V5.15H12.82V7.5H9.01V10.33H14.92L9.01 18.36V20.49H12.82V22.84H15.17Z" fill="white"/>
9
+ </g>
10
+ </g>
11
+ <defs>
12
+ <clipPath id="clip0_182_8">
13
+ <rect width="28" height="28" fill="white"/>
14
+ </clipPath>
15
+ </defs>
16
+ </svg>
package/src/tailwind.css CHANGED
@@ -74,10 +74,6 @@
74
74
  }
75
75
 
76
76
  @layer base {
77
- .sw {
78
- font-family: var(--font-family-sw);
79
- }
80
-
81
77
  .hide-scrollbar {
82
78
  -ms-overflow-style: none;
83
79
  scrollbar-width: none;
@@ -73,6 +73,8 @@ export const ThemeProvider = ({ children, theme }: ThemeProviderProps) => {
73
73
  }, [theme]);
74
74
 
75
75
  return (
76
- <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>
76
+ <ThemeContext.Provider value={value}>
77
+ <div className="sw">{children}</div>
78
+ </ThemeContext.Provider>
77
79
  );
78
80
  };
package/src/theme.css CHANGED
@@ -1,5 +1,6 @@
1
1
  :root {
2
2
  --font-family-sw: 'Inter', sans-serif;
3
+ --default-font-family: var(--font-family-sw);
3
4
 
4
5
  --r-sw-sm: 6px;
5
6
  --r-sw-md: 10px;
@@ -73,11 +74,11 @@
73
74
  }
74
75
  }
75
76
 
76
- :root {
77
- font-family: Inter, sans-serif;
78
- font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
77
+ .sw {
78
+ font-family: var(--font-family-sw);
79
+ font-feature-settings: 'liga' 1, 'calt' 1;
79
80
  }
80
81
 
81
82
  @supports (font-variation-settings: normal) {
82
- :root { font-family: InterVariable, sans-serif; }
83
+ .sw { font-family: var(--font-family-sw); }
83
84
  }
@@ -5,7 +5,6 @@ export type EvmChains = (typeof EVM_CHAINS)[number];
5
5
 
6
6
  export type Chain = {
7
7
  id: Chains;
8
- icon: string;
9
8
  label: string;
10
9
  };
11
10
 
@@ -12,7 +12,7 @@ export type IntentsAccountType = 'evm' | 'near' | 'sol';
12
12
  export type WidgetConfig = {
13
13
  // Application metadata
14
14
  appName: string;
15
- appIcon: string;
15
+ appIcon?: string;
16
16
 
17
17
  // Connected wallet
18
18
  intentsAccountType?: IntentsAccountType;
@@ -15,7 +15,6 @@ export type Token = Omit<SimpleToken, 'icon'> & {
15
15
  isIntent: boolean;
16
16
  chainName: string;
17
17
  name: string;
18
- chainIcon: string;
19
18
  };
20
19
 
21
20
  export type TokenBalance = string | 0 | undefined;
@@ -233,7 +233,7 @@ export const WidgetDepositContent = ({
233
233
  }}
234
234
  />
235
235
 
236
- <DepositMethodSwitcher className="mt-sw-md">
236
+ <DepositMethodSwitcher>
237
237
  {({ isExternal }) =>
238
238
  isExternal ? (
239
239
  <div className="gap-sw-2xl flex flex-col justify-between">