@funkit/connect 7.1.0-next.16 → 7.1.0-next.18

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 (45) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/__generated__/default_configs.d.ts +117 -12
  3. package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -1
  4. package/dist/hooks/usePaymentSources.d.ts +1 -0
  5. package/dist/index.js +369 -83
  6. package/dist/utils/flags/config.d.ts +2 -2
  7. package/dist/utils/lighter.d.ts +5 -0
  8. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  9. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  10. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  11. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  12. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  13. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/index.js +28 -28
  18. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  27. package/package.json +3 -3
  28. package/dist/wallets/walletConnectors/{chunk-FT5BX7TL.js → chunk-2E4PDCEJ.js} +3 -3
  29. package/dist/wallets/walletConnectors/{chunk-LGT6IAXI.js → chunk-47QF6EET.js} +3 -3
  30. package/dist/wallets/walletConnectors/{chunk-5AV2NSL3.js → chunk-5EAOMOTO.js} +3 -3
  31. package/dist/wallets/walletConnectors/{chunk-4SC3PZVM.js → chunk-77UTBHGP.js} +3 -3
  32. package/dist/wallets/walletConnectors/{chunk-GXTI2PZD.js → chunk-CZYUE3AR.js} +3 -3
  33. package/dist/wallets/walletConnectors/{chunk-O6YFVGVQ.js → chunk-FA5DTT5R.js} +3 -3
  34. package/dist/wallets/walletConnectors/{chunk-PRGCIJ7Y.js → chunk-HPHADOYD.js} +3 -3
  35. package/dist/wallets/walletConnectors/{chunk-GEMN6DM5.js → chunk-JFHP4YJG.js} +3 -3
  36. package/dist/wallets/walletConnectors/{chunk-75A4Q5E5.js → chunk-MRRZOQGZ.js} +3 -3
  37. package/dist/wallets/walletConnectors/{chunk-6677RKVT.js → chunk-R6Y36CMA.js} +3 -3
  38. package/dist/wallets/walletConnectors/{chunk-5FWURLPF.js → chunk-RA7MCWF4.js} +3 -3
  39. package/dist/wallets/walletConnectors/{chunk-TLOROKED.js → chunk-RLRQYUYC.js} +3 -3
  40. package/dist/wallets/walletConnectors/{chunk-3ZWIUCOI.js → chunk-T5KHVUFR.js} +3 -3
  41. package/dist/wallets/walletConnectors/{chunk-ENLR4LXN.js → chunk-U5QP7MI5.js} +3 -3
  42. package/dist/wallets/walletConnectors/{chunk-OCM5YHT5.js → chunk-UOTQQJJD.js} +3 -3
  43. package/dist/wallets/walletConnectors/{chunk-RNIMZDHW.js → chunk-VYNVAGSV.js} +3 -3
  44. package/dist/wallets/walletConnectors/{chunk-N7475PGA.js → chunk-W7Y6I22Y.js} +3 -3
  45. package/dist/wallets/walletConnectors/{chunk-WNQ3NPHX.js → chunk-YLJDPTYF.js} +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 7.1.0-next.18
4
+
5
+ ### Patch Changes
6
+
7
+ - e2b103e: Unified checkout item display logic to use same itemName derivation for both arbitrary action checkouts and basic buy checkouts
8
+
9
+ ## 7.1.0-next.17
10
+
11
+ ### Patch Changes
12
+
13
+ - a979216: remove target asset check in lighter
14
+ - 52406e3: feat(connect,fun-relay): add new lighter spot assets
15
+ - 57356c6: feat(connect): add SKY asset
16
+ - 2f57830: feat: implemented revoke/reset approval mechanics for tokens with non-standard approval implementation
17
+ - ab9c1e9: chore: update assets
18
+ - d7c0812: feat(connect): show payment sources in disabled state w/coming soon badge for unsupported target assets
19
+ - Updated dependencies [320236b]
20
+ - Updated dependencies [52406e3]
21
+ - Updated dependencies [2f57830]
22
+ - Updated dependencies [ab9c1e9]
23
+ - Updated dependencies [d4b9ea5]
24
+ - @funkit/fun-relay@2.2.0-next.6
25
+
3
26
  ## 7.1.0-next.16
4
27
 
5
28
  ### Patch Changes
@@ -137,6 +137,91 @@ declare const _default: {
137
137
  readonly path: "FUN_MAINNET_DEPOSIT";
138
138
  };
139
139
  }];
140
+ }, {
141
+ readonly routeId: "LIGHTER_LINK_SPOT_NEW_USER";
142
+ readonly rules: readonly [{
143
+ readonly when: {
144
+ readonly chainId: "1";
145
+ readonly tokenAddress: "0x514910771AF9Ca656af840dff83E8264EcF986CA";
146
+ };
147
+ readonly use: {
148
+ readonly path: "FUN_MAINNET_DEPOSIT";
149
+ readonly badge: "NATIVE";
150
+ };
151
+ }, {
152
+ readonly when: "*";
153
+ readonly use: {
154
+ readonly path: "FUN_MAINNET_DEPOSIT";
155
+ };
156
+ }];
157
+ }, {
158
+ readonly routeId: "LIGHTER_UNI_SPOT_NEW_USER";
159
+ readonly rules: readonly [{
160
+ readonly when: {
161
+ readonly chainId: "1";
162
+ readonly tokenAddress: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984";
163
+ };
164
+ readonly use: {
165
+ readonly path: "FUN_MAINNET_DEPOSIT";
166
+ readonly badge: "NATIVE";
167
+ };
168
+ }, {
169
+ readonly when: "*";
170
+ readonly use: {
171
+ readonly path: "FUN_MAINNET_DEPOSIT";
172
+ };
173
+ }];
174
+ }, {
175
+ readonly routeId: "LIGHTER_AAVE_SPOT_NEW_USER";
176
+ readonly rules: readonly [{
177
+ readonly when: {
178
+ readonly chainId: "1";
179
+ readonly tokenAddress: "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9";
180
+ };
181
+ readonly use: {
182
+ readonly path: "FUN_MAINNET_DEPOSIT";
183
+ readonly badge: "NATIVE";
184
+ };
185
+ }, {
186
+ readonly when: "*";
187
+ readonly use: {
188
+ readonly path: "FUN_MAINNET_DEPOSIT";
189
+ };
190
+ }];
191
+ }, {
192
+ readonly routeId: "LIGHTER_SKY_SPOT_NEW_USER";
193
+ readonly rules: readonly [{
194
+ readonly when: {
195
+ readonly chainId: "1";
196
+ readonly tokenAddress: "0x56072C95FAA701256059aa122697B133aDEd9279";
197
+ };
198
+ readonly use: {
199
+ readonly path: "FUN_MAINNET_DEPOSIT";
200
+ readonly badge: "NATIVE";
201
+ };
202
+ }, {
203
+ readonly when: "*";
204
+ readonly use: {
205
+ readonly path: "FUN_MAINNET_DEPOSIT";
206
+ };
207
+ }];
208
+ }, {
209
+ readonly routeId: "LIGHTER_LDO_SPOT_NEW_USER";
210
+ readonly rules: readonly [{
211
+ readonly when: {
212
+ readonly chainId: "1";
213
+ readonly tokenAddress: "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32";
214
+ };
215
+ readonly use: {
216
+ readonly path: "FUN_MAINNET_DEPOSIT";
217
+ readonly badge: "NATIVE";
218
+ };
219
+ }, {
220
+ readonly when: "*";
221
+ readonly use: {
222
+ readonly path: "FUN_MAINNET_DEPOSIT";
223
+ };
224
+ }];
140
225
  }];
141
226
  };
142
227
  readonly enablebitcoin: {
@@ -146,6 +231,13 @@ declare const _default: {
146
231
  readonly value: false;
147
232
  };
148
233
  readonly enablefiatdeposit: {
234
+ readonly variants: readonly [{
235
+ readonly condition: {
236
+ readonly type: "country";
237
+ readonly countryCodes: readonly ["US"];
238
+ };
239
+ readonly value: false;
240
+ }];
149
241
  readonly value: true;
150
242
  };
151
243
  readonly enablemeldpayment: {
@@ -154,18 +246,6 @@ declare const _default: {
154
246
  readonly enabletokentransfer: {
155
247
  readonly value: true;
156
248
  };
157
- readonly enabletokentransfertest: {
158
- readonly variants: readonly [{
159
- readonly conditions: {
160
- readonly all: readonly [{
161
- readonly type: "allowedCountries";
162
- readonly countries: readonly ["SG", "DE"];
163
- }];
164
- };
165
- readonly value: true;
166
- }];
167
- readonly value: false;
168
- };
169
249
  readonly ismexico: {
170
250
  readonly value: {
171
251
  readonly mexico: false;
@@ -193,6 +273,31 @@ declare const _default: {
193
273
  readonly SGD: readonly [130, 645, 1285];
194
274
  };
195
275
  };
276
+ readonly mintokentransfervalue: {
277
+ readonly variants: readonly [{
278
+ readonly condition: {
279
+ readonly type: "country";
280
+ readonly countryCodes: readonly ["CA"];
281
+ };
282
+ readonly value: {
283
+ readonly mainnet: 15;
284
+ readonly nonMainnet: 3;
285
+ };
286
+ }, {
287
+ readonly condition: {
288
+ readonly type: "country";
289
+ readonly countryCodes: readonly ["AU"];
290
+ };
291
+ readonly value: {
292
+ readonly mainnet: 15;
293
+ readonly nonMainnet: 3;
294
+ };
295
+ }];
296
+ readonly value: {
297
+ readonly mainnet: 10;
298
+ readonly nonMainnet: 2.5;
299
+ };
300
+ };
196
301
  readonly showinfobanner: {
197
302
  readonly value: {
198
303
  readonly message: "";
@@ -3,12 +3,14 @@ import type { DynamicTargetAssetCandidate } from '../../providers/FunkitCheckout
3
3
  import { type BaseDropdownProps } from './BaseDropdown';
4
4
  interface ReceiveTokenDropdownProps {
5
5
  chainId: number;
6
+ displayedChainId?: number;
6
7
  tokens: DynamicTargetAssetCandidate[];
7
8
  onTokenSelected: (token: DynamicTargetAssetCandidate) => void;
8
9
  selectedToken?: string;
9
10
  label?: string;
10
11
  activeItemLabel?: string;
11
12
  activeItemProps?: BaseDropdownProps['activeItemProps'];
13
+ maxDropdownHeight?: BaseDropdownProps['maxDropdownHeight'];
12
14
  }
13
- export declare const ReceiveTokenDropdown: ({ tokens, chainId, selectedToken, onTokenSelected, label, activeItemLabel, activeItemProps, }: ReceiveTokenDropdownProps) => React.JSX.Element;
15
+ export declare const ReceiveTokenDropdown: ({ tokens, chainId, selectedToken, onTokenSelected, label, activeItemLabel, activeItemProps, maxDropdownHeight, displayedChainId, }: ReceiveTokenDropdownProps) => React.JSX.Element;
14
16
  export {};
@@ -11,4 +11,5 @@ export declare function usePaymentMethodEnablement({ checkoutConfig, }: {
11
11
  export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, checkoutConfig?: FunkitCheckoutConfig) => {
12
12
  preferred: PaymentMethod[] | (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
13
13
  moreSources: PaymentMethod[];
14
+ comingSoon: PaymentMethod[];
14
15
  };