@funkit/connect 9.4.1 → 9.4.3

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 (48) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/__generated__/default_configs.d.ts +222 -12
  3. package/dist/__generated__/default_feature_gates.d.ts +1 -0
  4. package/dist/{chunk-BSF2AKBC.js → chunk-O35RTEEF.js} +1 -1
  5. package/dist/{chunk-IZC4ZKKQ.js → chunk-S65TG73G.js} +1 -1
  6. package/dist/{chunk-DBRUJYOQ.js → chunk-VLAOBEJN.js} +1 -1
  7. package/dist/clients/fanatics.css +4572 -4545
  8. package/dist/clients/fanatics.js +2 -2
  9. package/dist/components/Box/Box.d.ts +15 -15
  10. package/dist/components/Dropdown/BaseDropdown.css.d.ts +0 -2
  11. package/dist/components/Dropdown/BaseDropdown.d.ts +1 -0
  12. package/dist/components/Dropdown/ChainDropdown.d.ts +5 -2
  13. package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +7 -1
  14. package/dist/components/Dropdown/TokenDropdown.d.ts +3 -1
  15. package/dist/components/ModalHeightAnimationLayer/WithdrawalModalHeightAnimationWrapper.d.ts +1 -1
  16. package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +1 -1
  17. package/dist/css/sprinkles.css.d.ts +15 -15
  18. package/dist/hooks/statsig/useFeatureGate.d.ts +3 -6
  19. package/dist/hooks/useBluvo.d.ts +1215 -5
  20. package/dist/hooks/useSupportedAssets.d.ts +9 -0
  21. package/dist/hooks/{useTokenChain.d.ts → useTokenAndChainDropdown.d.ts} +8 -2
  22. package/dist/hooks/useTokenTransfer.d.ts +1 -0
  23. package/dist/hooks/useTokenTransferConfig.d.ts +2 -0
  24. package/dist/index.css +4611 -4582
  25. package/dist/index.js +1926 -1088
  26. package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +1 -1
  27. package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +1 -1
  28. package/dist/modals/CheckoutModal/SelectAsset/SelectAssetInfoSection.d.ts +1 -1
  29. package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsListLoading.d.ts +6 -0
  30. package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +6 -0
  31. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +3 -1
  32. package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
  33. package/dist/modals/CheckoutModal/stepTransition.d.ts +4 -1
  34. package/dist/themes/baseTheme.js +1 -1
  35. package/dist/themes/darkTheme.js +2 -2
  36. package/dist/themes/lightTheme.js +2 -2
  37. package/dist/utils/bluvo.d.ts +99 -1
  38. package/dist/utils/swapped.d.ts +1 -0
  39. package/dist/utils/tokenTransfer/disabledList.d.ts +14 -0
  40. package/dist/utils/tokenTransfer/types.d.ts +26 -0
  41. package/dist/wallets/walletConnectors/index.js +46 -46
  42. package/package.json +10 -10
  43. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/WithdrawalCallbackSuccess.d.ts +0 -0
  44. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/WithdrawalContent.d.ts +0 -0
  45. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/WithdrawalModal.d.ts +0 -0
  46. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/WithdrawalSuccess.d.ts +0 -0
  47. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/types.d.ts +0 -0
  48. /package/dist/modals/{WithdrwalModal → WithdrawalModal}/useWithdrawal.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 9.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 6a14554: fix: swapped theme variable mapping
8
+ - e739676: fix: show correct loading state for cash tab
9
+
10
+ ## 9.4.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 6ba7d50: feat(connect): migrate TokenTransferSourceChainsAndAssets flag to statsig
15
+ - 0ddaf2e: feat: add fop min limit
16
+ - a8bf211: feat(connect): improve swapped error screen
17
+ - 156e238: chore: remove unused api and tests
18
+ - 5fdb061: adjust default payment amount skeleton height
19
+ - c7ac6cb: chore(connect): fix tsconfig
20
+ - 5864c70: rename internal package's typo
21
+ - c824e9b: source select screen skeletons updated to fit lighter
22
+ - ca36ea4: fix(connect): token dropdown groups
23
+ - d9d62d1: Upgrade @bluvo/react and @bluvo/sdk-ts to 3.0.0-beta.1 and fix brokerage type forwarding
24
+ - 4209131: feat(connect): remove dropdown fade-out workaround
25
+ - Updated dependencies [6ba7d50]
26
+ - Updated dependencies [0ddaf2e]
27
+ - Updated dependencies [156e238]
28
+ - Updated dependencies [c7ac6cb]
29
+ - Updated dependencies [867e355]
30
+ - Updated dependencies [d9d62d1]
31
+ - @funkit/utils@1.2.6
32
+ - @funkit/api-base@3.0.4
33
+ - @funkit/fun-relay@2.6.5
34
+ - @funkit/chains@1.1.2
35
+
3
36
  ## 9.4.1
4
37
 
5
38
  ### Patch Changes
@@ -58,6 +58,9 @@ declare const _default: {
58
58
  readonly chainIdList: readonly [];
59
59
  };
60
60
  };
61
+ readonly disabletokentransferchainsandassets: {
62
+ readonly value: {};
63
+ };
61
64
  readonly dynamicrouting: {
62
65
  readonly value: readonly [{
63
66
  readonly routeId: "LIGHTER_ETH_SPOT";
@@ -307,6 +310,24 @@ declare const _default: {
307
310
  };
308
311
  readonly foppriority: {
309
312
  readonly variants: readonly [{
313
+ readonly condition: {
314
+ readonly type: "country";
315
+ readonly countryCodes: readonly ["AD", "AE", "AM", "AT", "AU", "AW", "AZ", "CH", "CZ", "DE", "DK", "DM", "GA", "GB", "GG", "GL", "GP", "HU", "IE", "IT", "JE", "KN", "KW", "LU", "ME", "NL", "OM", "PG", "PL", "QA", "SA", "SE", "TW", "US", "UZ", "ZA"];
316
+ };
317
+ readonly value: readonly ["APPLE_PAY", "CARDS", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
318
+ }, {
319
+ readonly condition: {
320
+ readonly type: "country";
321
+ readonly countryCodes: readonly ["AR", "GH", "KE"];
322
+ };
323
+ readonly value: readonly ["ASTROPAY", "CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
324
+ }, {
325
+ readonly condition: {
326
+ readonly type: "country";
327
+ readonly countryCodes: readonly ["LK", "MO", "SR", "TM", "VU", "IN"];
328
+ };
329
+ readonly value: readonly ["GOOGLE_PAY", "CARDS", "APPLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
330
+ }, {
310
331
  readonly condition: {
311
332
  readonly type: "country";
312
333
  readonly countryCodes: readonly ["BR"];
@@ -315,9 +336,51 @@ declare const _default: {
315
336
  }, {
316
337
  readonly condition: {
317
338
  readonly type: "country";
318
- readonly countryCodes: readonly ["IN"];
339
+ readonly countryCodes: readonly ["CA"];
340
+ };
341
+ readonly value: readonly ["INTERAC", "CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
342
+ }, {
343
+ readonly condition: {
344
+ readonly type: "country";
345
+ readonly countryCodes: readonly ["ID"];
346
+ };
347
+ readonly value: readonly ["GOPAY", "CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
348
+ }, {
349
+ readonly condition: {
350
+ readonly type: "country";
351
+ readonly countryCodes: readonly ["MY"];
319
352
  };
320
- readonly value: readonly ["GOOGLE_PAY", "APPLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL", "CARDS"];
353
+ readonly value: readonly ["TOUCHNGO", "CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
354
+ }, {
355
+ readonly condition: {
356
+ readonly type: "country";
357
+ readonly countryCodes: readonly ["NO"];
358
+ };
359
+ readonly value: readonly ["VIPPS", "CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
360
+ }, {
361
+ readonly condition: {
362
+ readonly type: "country";
363
+ readonly countryCodes: readonly ["PH"];
364
+ };
365
+ readonly value: readonly ["GCASH", "CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
366
+ }, {
367
+ readonly condition: {
368
+ readonly type: "country";
369
+ readonly countryCodes: readonly ["TH"];
370
+ };
371
+ readonly value: readonly ["PROMPTPAY", "CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
372
+ }, {
373
+ readonly condition: {
374
+ readonly type: "country";
375
+ readonly countryCodes: readonly ["VN"];
376
+ };
377
+ readonly value: readonly ["VIETQR", "CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
378
+ }, {
379
+ readonly condition: {
380
+ readonly type: "country";
381
+ readonly countryCodes: readonly ["ZM"];
382
+ };
383
+ readonly value: readonly ["MOBILE_MONEY", "CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
321
384
  }];
322
385
  readonly value: readonly ["CARDS", "APPLE_PAY", "GOOGLE_PAY", "REVOLUT_PAY", "PAYPAL", "BANK_TRANSFER", "PIX", "SKRILL"];
323
386
  };
@@ -432,17 +495,164 @@ declare const _default: {
432
495
  readonly popular: readonly [];
433
496
  };
434
497
  };
435
- readonly tokentransfertest: {
498
+ readonly tokentransferconfig: {
436
499
  readonly value: {
437
- readonly chains: {
438
- readonly '1': readonly ["0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0x6b175474e89094c44da98b954eedeac495271d0f", "0xdac17f958d2ee523a2206206994597c13d831ec7", "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"];
439
- readonly '137': readonly ["0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", "0x2791bca1f2de4661ed88a30c99a7a9449aa84174"];
440
- readonly '1151111081099710': readonly ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"];
441
- };
442
- readonly defaultChainId: 137;
443
- readonly defaultTokens: readonly [];
444
- readonly badges: {};
445
- readonly chainSortOrder: readonly ["1", "1151111081099710", "56", "8453", "137", "42161", "10"];
500
+ readonly priorityTokens: readonly [];
501
+ readonly chains: readonly [{
502
+ readonly chainId: 137;
503
+ readonly isDefault: true;
504
+ readonly assets: readonly [{
505
+ readonly address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359";
506
+ }, {
507
+ readonly address: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
508
+ }, {
509
+ readonly address: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F";
510
+ }, {
511
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
512
+ }, {
513
+ readonly address: "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063";
514
+ }, {
515
+ readonly address: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619";
516
+ }];
517
+ }, {
518
+ readonly chainId: 1;
519
+ readonly assets: readonly [{
520
+ readonly address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
521
+ }, {
522
+ readonly address: "0x6B175474E89094C44Da98b954EedeAC495271d0F";
523
+ }, {
524
+ readonly address: "0xdAC17F958D2ee523a2206206994597C13D831ec7";
525
+ }, {
526
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
527
+ }, {
528
+ readonly address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
529
+ }, {
530
+ readonly address: "0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6";
531
+ }, {
532
+ readonly address: "0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0";
533
+ }, {
534
+ readonly address: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf";
535
+ }, {
536
+ readonly address: "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3";
537
+ }];
538
+ }, {
539
+ readonly chainId: 1151111081099710;
540
+ readonly assets: readonly [{
541
+ readonly address: "11111111111111111111111111111111";
542
+ }, {
543
+ readonly address: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
544
+ }, {
545
+ readonly address: "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB";
546
+ }, {
547
+ readonly address: "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN";
548
+ }, {
549
+ readonly address: "DEkqHyPN7GMRJ5cArtQFAWefqbZb33Hyf6s5iCwjEonT";
550
+ }];
551
+ }, {
552
+ readonly chainId: 56;
553
+ readonly assets: readonly [{
554
+ readonly address: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d";
555
+ }, {
556
+ readonly address: "0x55d398326f99059fF775485246999027B3197955";
557
+ }, {
558
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
559
+ }, {
560
+ readonly address: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
561
+ }, {
562
+ readonly address: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8";
563
+ }, {
564
+ readonly address: "0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3";
565
+ }, {
566
+ readonly address: "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56";
567
+ }, {
568
+ readonly address: "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c";
569
+ }, {
570
+ readonly address: "0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34";
571
+ }];
572
+ }, {
573
+ readonly chainId: 8453;
574
+ readonly assets: readonly [{
575
+ readonly address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
576
+ }, {
577
+ readonly address: "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2";
578
+ }, {
579
+ readonly address: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb";
580
+ }, {
581
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
582
+ }, {
583
+ readonly address: "0x4200000000000000000000000000000000000006";
584
+ }, {
585
+ readonly address: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf";
586
+ }, {
587
+ readonly address: "0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34";
588
+ }];
589
+ }, {
590
+ readonly chainId: 42161;
591
+ readonly assets: readonly [{
592
+ readonly address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
593
+ }, {
594
+ readonly address: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9";
595
+ }, {
596
+ readonly address: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1";
597
+ }, {
598
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
599
+ }, {
600
+ readonly address: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1";
601
+ }, {
602
+ readonly address: "0x912CE59144191C1204E64559FE8253a0e49E6548";
603
+ }, {
604
+ readonly address: "0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34";
605
+ }];
606
+ }, {
607
+ readonly chainId: 8253038;
608
+ readonly assets: readonly [{
609
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
610
+ }];
611
+ }, {
612
+ readonly chainId: 10;
613
+ readonly assets: readonly [{
614
+ readonly address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85";
615
+ }, {
616
+ readonly address: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58";
617
+ }, {
618
+ readonly address: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1";
619
+ }, {
620
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
621
+ }, {
622
+ readonly address: "0x4200000000000000000000000000000000000006";
623
+ }, {
624
+ readonly address: "0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34";
625
+ }];
626
+ }, {
627
+ readonly chainId: 999;
628
+ readonly assets: readonly [{
629
+ readonly address: "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
630
+ }, {
631
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
632
+ }, {
633
+ readonly address: "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb";
634
+ }, {
635
+ readonly address: "0x9FDBdA0A5e284c32744D2f17Ee5c74B284993463";
636
+ }, {
637
+ readonly address: "0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34";
638
+ }];
639
+ }, {
640
+ readonly chainId: 2741;
641
+ readonly assets: readonly [{
642
+ readonly address: "0x84A71ccD554Cc1b02749b35d22F684CC8ec987e1";
643
+ }, {
644
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
645
+ }, {
646
+ readonly address: "0x3439153EB7AF838Ad19d56E1571FBD09333C2809";
647
+ }, {
648
+ readonly address: "0x0709F39376dEEe2A2dfC94A58EdEb2Eb9DF012bD";
649
+ }];
650
+ }, {
651
+ readonly chainId: 5064014;
652
+ readonly assets: readonly [{
653
+ readonly address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
654
+ }];
655
+ }];
446
656
  };
447
657
  };
448
658
  readonly tokentransfertokengroups: {
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  readonly 'exact-in': false;
3
+ readonly 'new-token-transfer-config': false;
3
4
  readonly 'test-testing-gate': false;
4
5
  };
5
6
  export default _default;
@@ -181,7 +181,7 @@ var baseTheme = ({
181
181
  modalTopBarHeight: "56px",
182
182
  modalTopbarIconSize: "16px",
183
183
  modalTopbarIconWrapperSize: "32px",
184
- paymentAmountSkeletonBlockHeight: "10px",
184
+ paymentAmountSkeletonBlockHeight: "14px",
185
185
  paymentAmountSkeletonBlockWidth: "93px",
186
186
  paymentAmountSkeletonCircleSize: "15px",
187
187
  paymentMethodItemIconSize: "20px",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-BSF2AKBC.js";
4
+ } from "./chunk-O35RTEEF.js";
5
5
 
6
6
  // src/themes/darkTheme.ts
7
7
  var accentColors = {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-BSF2AKBC.js";
4
+ } from "./chunk-O35RTEEF.js";
5
5
 
6
6
  // src/themes/lightTheme.ts
7
7
  var accentColors = {