@funkit/connect 11.3.0 → 11.4.1

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 (71) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/clients/{chunk-DGBIV3ZS.js → chunk-B7UU2ETA.js} +0 -13
  3. package/dist/clients/{chunk-L2XMI4EX.js → chunk-BB5FHA47.js} +13 -12
  4. package/dist/clients/chunk-MSLPLXR2.js +30 -0
  5. package/dist/clients/{chunk-QQEGNLGD.js → chunk-TYG42JRZ.js} +4 -4
  6. package/dist/clients/{chunk-46L2KJJ4.js → chunk-UMU5S2WF.js} +34 -43
  7. package/dist/clients/internal/nado/withdrawalCallback.js +4 -11
  8. package/dist/clients/internal/nado/withdrawalConfig.d.ts +3 -1
  9. package/dist/clients/internal/nado/withdrawalConfig.js +2 -3
  10. package/dist/clients/internal/nado/withdrawalErrors.d.ts +6 -10
  11. package/dist/clients/internal/nado/withdrawalErrors.js +1 -2
  12. package/dist/clients/internal/nado/withdrawalForm.css +44 -36
  13. package/dist/clients/internal/nado/withdrawalForm.d.ts +1 -1
  14. package/dist/clients/internal/nado/withdrawalForm.js +20 -73
  15. package/dist/clients/internal/nado/withdrawalStatus.js +4 -8
  16. package/dist/clients/lighter.css +44 -36
  17. package/dist/clients/lighter.d.ts +0 -31
  18. package/dist/clients/lighter.js +10 -102
  19. package/dist/clients/nado.d.ts +3 -1
  20. package/dist/clients/nado.js +8 -15
  21. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +47 -39
  22. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +4 -4
  23. package/dist/clients/polymarket/index.css +47 -39
  24. package/dist/clients/polymarket/index.js +9 -9
  25. package/dist/components/Dropdown/BaseDropdown.css.d.ts +1 -0
  26. package/dist/components/Dropdown/BaseDropdown.d.ts +0 -1
  27. package/dist/domains/checkout.d.ts +6 -1
  28. package/dist/hooks/track/analytics/events.d.ts +19 -9
  29. package/dist/hooks/track/analytics/resolveExecutionProgressContext.d.ts +1 -0
  30. package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +11 -3
  31. package/dist/hooks/track/analytics/useTrackExecutionProgressEvents.d.ts +3 -33
  32. package/dist/hooks/track/useTrackV2.d.ts +2 -0
  33. package/dist/hooks/useAssetPrice.d.ts +1 -6
  34. package/dist/hooks/useBluvo.d.ts +7 -2
  35. package/dist/index.css +44 -36
  36. package/dist/index.js +922 -1205
  37. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +5 -11
  38. package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -1
  39. package/dist/providers/FunkitStatsigProvider.d.ts +1 -1
  40. package/dist/utils/withdrawal.d.ts +1 -21
  41. package/dist/wallets/walletConnectors/index.js +32 -32
  42. package/package.json +6 -6
  43. package/dist/clients/chunk-2576N7PQ.js +0 -44
  44. package/dist/clients/chunk-3P2C436B.js +0 -20
  45. package/dist/clients/chunk-63XTVHO3.js +0 -19
  46. package/dist/clients/chunk-6T6URLBM.js +0 -33
  47. package/dist/clients/chunk-FM7SFGAV.js +0 -106
  48. package/dist/clients/chunk-JFDRLSYM.js +0 -42
  49. package/dist/clients/chunk-TZGKB6WY.js +0 -160
  50. package/dist/clients/chunk-VIAEAD75.js +0 -61
  51. package/dist/clients/chunk-WZRW6WUM.js +0 -112
  52. package/dist/clients/chunk-Z7HTQFEO.js +0 -69
  53. package/dist/clients/internal/nado/consts.d.ts +0 -22
  54. package/dist/clients/internal/nado/consts.js +0 -15
  55. package/dist/clients/internal/nado/encoding.d.ts +0 -25
  56. package/dist/clients/internal/nado/encoding.js +0 -11
  57. package/dist/clients/internal/nado/errors.d.ts +0 -68
  58. package/dist/clients/internal/nado/errors.js +0 -19
  59. package/dist/clients/internal/nado/fetch.d.ts +0 -15
  60. package/dist/clients/internal/nado/fetch.js +0 -9
  61. package/dist/clients/internal/nado/gateway.d.ts +0 -61
  62. package/dist/clients/internal/nado/gateway.js +0 -17
  63. package/dist/clients/internal/nado/hooks.d.ts +0 -208
  64. package/dist/clients/internal/nado/hooks.js +0 -21
  65. package/dist/clients/internal/nado/indexer.d.ts +0 -43
  66. package/dist/clients/internal/nado/indexer.js +0 -13
  67. package/dist/clients/internal/nado/typedData.d.ts +0 -80
  68. package/dist/clients/internal/nado/typedData.js +0 -10
  69. package/dist/clients/internal/nado/withdrawalTypes.d.ts +0 -49
  70. package/dist/clients/internal/nado/withdrawalTypes.js +0 -1
  71. package/dist/utils/safeBigInt.d.ts +0 -5
@@ -16834,19 +16834,42 @@
16834
16834
  overflow: hidden;
16835
16835
  }
16836
16836
 
16837
- /* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdown.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9WTwW7bMAyG73kKIqcEsAIb3YpBxi5r36IYBtqiYyGqKFB03HTouw92mjQZVmAodtmNBPX_Ij9Kmx9VjPn2kEv4uQDgPUkXeDQHCzgo1wuA3AqH0KCY0TvtLUSOVC9eFpuz1lozUrPzas6HZzvncwp4-IOkmuuJs1fP0YJQQPV7qi-asNB75yheC61tqGOh2aDlqBTVwnJZX_lhkzkMOvspJwvlFAXq9DUUv-1PcU_H5NOX9DTlDba7rfAQnYXgI6GYraDzFHWlDA2r8mMBe5SVMbIzLQeWbDhRvBdOjsf47WxxNxXXBahgzAmFoq6PvfqoJIb2FDWfEAFwwtbr4bW1WXWaKQSoPpePGdqh8a1p6NmTrMrNTQFlAeWmvC2gms2fjY-OnixUv8PDTkn-nt1x1n-KTzn9l-weHCqaDh0Z5fR1qTLQ8vvVczzf_770CPRN_baPd8Q3c_FDs1y62B7z6gHFo3E-YxPInZpY2376cvM9l7vz0avHMDFpB8ksE2g1GAKP5OrFyy9ESovqPQQAAA */
16838
- [data-rk] ._1nns6ys0 {
16837
+ /* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdown.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9VVYWvbMBD9nl8hAoMEomC3XbcpFMq2f1HKOFvnRETWmdM5aTr634dlp03ahnZjH7ZPlji9d-_eneTrNe4qhhqj-pGHEC93MVM_R0plH9JHKWqgdLIzKlukvTCEWBHXRsUSPE6y-ZdP0y72MFIqz14C8xPAfEA9jK5fqshPqHiL7HUJ79D-MJrvc5_dWBDQvL7tF1FA8Gpceopox7eJvCEXBFnjBoNEowIFXBySnKdjtEGuPG31zihohbpcsWTyvgDWW2dl9RrWGL3FYu1EPx5OdNbFxsPuFcjFoCo6cRSMYvQgboOLAxFGrZy1GI6BxhRYEWMiKCkIBjFqPF4c8UERybeS-ISawVKPlQxLdsvVfr3CfnPxubnr9gWU6yVTG6xR3gUE1ksG6zDIREgVJEL1TG2AJ1rzWpfkiaOmBsN3psbSNnx9pPjWBaezvpkNMAaZLk525PkQJNS-Ju9V_jGroyrbwpW6wHuHPMnm5zOVzVQ2zy5nqh-se-2Cxbs0f8fmQSXI7_eur_Wv2ifU_Jfe9ZerAotaqLkaC7c4vj0ax8NrfwLaG_qEfurHCfBlCv5RLYcsZgVxcgPsQFsXofBo9yKmZtVduZTnsHcuOHHgO0_KliNxZ7Ro8J62aDv66xqtAzVpGCvkqBltW6LVNfVKA-k-hKHEaUrw1qvVDcLwZikFwdXQUWnbMvScqfLFs7C42oWlrtpQ9qeeOXMxOHO2b_IhuHLe65osGlURb4HtC_4ANZqnX87-7f6tJ_ifLScf_ii_AJ3ZdB5dBwAA */
16838
+ @keyframes _1nns6ys0 {
16839
+ 0% {
16840
+ opacity: 0;
16841
+ transform: scale(0.97);
16842
+ }
16843
+ 100% {
16844
+ opacity: 1;
16845
+ transform: scale(1);
16846
+ }
16847
+ }
16848
+ @keyframes _1nns6ys1 {
16849
+ 0% {
16850
+ opacity: 1;
16851
+ transform: scale(1);
16852
+ }
16853
+ 100% {
16854
+ opacity: 0;
16855
+ transform: scale(0.97);
16856
+ }
16857
+ }
16858
+ ._1nns6ys2[data-rk][data-state=closed] {
16859
+ pointer-events: none;
16860
+ }
16861
+ [data-rk] ._1nns6ys3 {
16839
16862
  overflow-y: auto;
16840
16863
  scrollbar-width: none;
16841
16864
  }
16842
- [data-rk] ._1nns6ys0::-webkit-scrollbar {
16865
+ [data-rk] ._1nns6ys3::-webkit-scrollbar {
16843
16866
  display: none;
16844
16867
  }
16845
- [data-rk] ._1nns6ys1 {
16868
+ [data-rk] ._1nns6ys4 {
16846
16869
  position: relative;
16847
16870
  overflow: hidden;
16848
16871
  }
16849
- [data-rk] ._1nns6ys1::before {
16872
+ [data-rk] ._1nns6ys4::before {
16850
16873
  content: "";
16851
16874
  position: absolute;
16852
16875
  top: 0;
@@ -16863,7 +16886,7 @@
16863
16886
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
16864
16887
  z-index: 1;
16865
16888
  }
16866
- [data-rk] ._1nns6ys1::after {
16889
+ [data-rk] ._1nns6ys4::after {
16867
16890
  content: "";
16868
16891
  position: absolute;
16869
16892
  bottom: 0;
@@ -16880,19 +16903,33 @@
16880
16903
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
16881
16904
  z-index: 1;
16882
16905
  }
16883
- [data-rk] ._1nns6ys1[data-fade-top=true]::before {
16906
+ [data-rk] ._1nns6ys4[data-fade-top=true]::before {
16884
16907
  opacity: 1;
16885
16908
  }
16886
- [data-rk] ._1nns6ys1[data-fade-bottom=true]::after {
16909
+ [data-rk] ._1nns6ys4[data-fade-bottom=true]::after {
16887
16910
  opacity: 1;
16888
16911
  }
16889
- [data-rk] ._1nns6ys3 {
16912
+ [data-rk] ._1nns6ys6 {
16890
16913
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
16891
16914
  }
16892
- [data-rk] ._1nns6ys3:has([aria-disabled=true]):hover {
16915
+ [data-rk] ._1nns6ys6:has([aria-disabled=true]):hover {
16893
16916
  background: initial;
16894
16917
  cursor: not-allowed;
16895
16918
  }
16919
+ @media (prefers-reduced-motion: no-preference) {
16920
+ ._1nns6ys2[data-rk][data-state=open] {
16921
+ animation-duration: 150ms;
16922
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
16923
+ animation-fill-mode: forwards;
16924
+ animation-name: _1nns6ys0;
16925
+ }
16926
+ ._1nns6ys2[data-rk][data-state=closed] {
16927
+ animation-duration: 150ms;
16928
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
16929
+ animation-fill-mode: forwards;
16930
+ animation-name: _1nns6ys1;
16931
+ }
16932
+ }
16896
16933
 
16897
16934
  /* vanilla-extract-css-ns:src/components/Icons/CaretDownIcon.css.ts.vanilla.css?source=QGtleWZyYW1lcyBfMWdqZGYxaTAgewogIDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlM2QoMSwwLDAsMGRlZyk7CiAgfQogIDEwMCUgewogICAgdHJhbnNmb3JtOiByb3RhdGUzZCgxLDAsMCwxODBkZWcpOwogIH0KfQpAa2V5ZnJhbWVzIF8xZ2pkZjFpMSB7CiAgMCUgewogICAgdHJhbnNmb3JtOiByb3RhdGUzZCgxLDAsMCwxODBkZWcpOwogIH0KICAxMDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlM2QoMSwwLDAsMGRlZyk7CiAgfQp9Ci5fMWdqZGYxaTIgewogIGFuaW1hdGlvbjogXzFnamRmMWkwIDI1MG1zIGN1YmljLWJlemllcigwLjI5LCAtMC4wMSwgMCwgMSkgZm9yd2FyZHM7Cn0KLl8xZ2pkZjFpMyB7CiAgYW5pbWF0aW9uOiBfMWdqZGYxaTEgMjUwbXMgY3ViaWMtYmV6aWVyKDAuMjksIC0wLjAxLCAwLCAxKSBmb3J3YXJkczsKfQ */
16898
16935
  @keyframes _1gjdf1i0 {
@@ -17506,32 +17543,3 @@
17506
17543
  [data-rk] ._1dewiqw0 {
17507
17544
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
17508
17545
  }
17509
-
17510
- /* src/components/Dropdown/BaseDropdownAnimation.css */
17511
- @keyframes funkit-dropdown-fade-in {
17512
- 0% {
17513
- opacity: 0;
17514
- transform: scale(0.97);
17515
- }
17516
- 100% {
17517
- opacity: 1;
17518
- transform: scale(1);
17519
- }
17520
- }
17521
- @keyframes funkit-dropdown-fade-out {
17522
- 0% {
17523
- opacity: 1;
17524
- transform: scale(1);
17525
- }
17526
- 100% {
17527
- opacity: 0;
17528
- transform: scale(0.97);
17529
- }
17530
- }
17531
- .funkit-dropdown-content[data-state=open] {
17532
- animation: funkit-dropdown-fade-in 150ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
17533
- }
17534
- .funkit-dropdown-content[data-state=closed] {
17535
- animation: funkit-dropdown-fade-out 150ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
17536
- pointer-events: none;
17537
- }
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import {
3
3
  PolymarketDepositAccountDropdown
4
- } from "../chunk-L2XMI4EX.js";
4
+ } from "../chunk-BB5FHA47.js";
5
5
  import "../chunk-BPDLF2R6.js";
6
- import "../chunk-Y7WLUPTX.js";
7
- import "../chunk-IYCZWLAF.js";
8
6
  import "../chunk-5MY7WMEJ.js";
9
7
  import "../chunk-FNB7OPJI.js";
10
8
  import "../chunk-6EU6CXNH.js";
11
9
  import "../chunk-UK64SY6N.js";
12
10
  import "../chunk-LUHEVXPD.js";
13
11
  import "../chunk-YUZ3B2Q3.js";
14
- import "../chunk-PENJ5JGH.js";
15
12
  import "../chunk-UPZNKPYU.js";
16
13
  import "../chunk-C45VNQXY.js";
14
+ import "../chunk-Y7WLUPTX.js";
15
+ import "../chunk-IYCZWLAF.js";
16
+ import "../chunk-PENJ5JGH.js";
17
17
  import "../chunk-AHYOV7AV.js";
18
18
  export {
19
19
  PolymarketDepositAccountDropdown
@@ -16834,19 +16834,42 @@
16834
16834
  overflow: hidden;
16835
16835
  }
16836
16836
 
16837
- /* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdown.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9WTwW7bMAyG73kKIqcEsAIb3YpBxi5r36IYBtqiYyGqKFB03HTouw92mjQZVmAodtmNBPX_Ij9Kmx9VjPn2kEv4uQDgPUkXeDQHCzgo1wuA3AqH0KCY0TvtLUSOVC9eFpuz1lozUrPzas6HZzvncwp4-IOkmuuJs1fP0YJQQPV7qi-asNB75yheC61tqGOh2aDlqBTVwnJZX_lhkzkMOvspJwvlFAXq9DUUv-1PcU_H5NOX9DTlDba7rfAQnYXgI6GYraDzFHWlDA2r8mMBe5SVMbIzLQeWbDhRvBdOjsf47WxxNxXXBahgzAmFoq6PvfqoJIb2FDWfEAFwwtbr4bW1WXWaKQSoPpePGdqh8a1p6NmTrMrNTQFlAeWmvC2gms2fjY-OnixUv8PDTkn-nt1x1n-KTzn9l-weHCqaDh0Z5fR1qTLQ8vvVczzf_770CPRN_baPd8Q3c_FDs1y62B7z6gHFo3E-YxPInZpY2376cvM9l7vz0avHMDFpB8ksE2g1GAKP5OrFyy9ESovqPQQAAA */
16838
- [data-rk] ._1nns6ys0 {
16837
+ /* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdown.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9VVYWvbMBD9nl8hAoMEomC3XbcpFMq2f1HKOFvnRETWmdM5aTr634dlp03ahnZjH7ZPlji9d-_eneTrNe4qhhqj-pGHEC93MVM_R0plH9JHKWqgdLIzKlukvTCEWBHXRsUSPE6y-ZdP0y72MFIqz14C8xPAfEA9jK5fqshPqHiL7HUJ79D-MJrvc5_dWBDQvL7tF1FA8Gpceopox7eJvCEXBFnjBoNEowIFXBySnKdjtEGuPG31zihohbpcsWTyvgDWW2dl9RrWGL3FYu1EPx5OdNbFxsPuFcjFoCo6cRSMYvQgboOLAxFGrZy1GI6BxhRYEWMiKCkIBjFqPF4c8UERybeS-ISawVKPlQxLdsvVfr3CfnPxubnr9gWU6yVTG6xR3gUE1ksG6zDIREgVJEL1TG2AJ1rzWpfkiaOmBsN3psbSNnx9pPjWBaezvpkNMAaZLk525PkQJNS-Ju9V_jGroyrbwpW6wHuHPMnm5zOVzVQ2zy5nqh-se-2Cxbs0f8fmQSXI7_eur_Wv2ifU_Jfe9ZerAotaqLkaC7c4vj0ax8NrfwLaG_qEfurHCfBlCv5RLYcsZgVxcgPsQFsXofBo9yKmZtVduZTnsHcuOHHgO0_KliNxZ7Ro8J62aDv66xqtAzVpGCvkqBltW6LVNfVKA-k-hKHEaUrw1qvVDcLwZikFwdXQUWnbMvScqfLFs7C42oWlrtpQ9qeeOXMxOHO2b_IhuHLe65osGlURb4HtC_4ANZqnX87-7f6tJ_ifLScf_ii_AJ3ZdB5dBwAA */
16838
+ @keyframes _1nns6ys0 {
16839
+ 0% {
16840
+ opacity: 0;
16841
+ transform: scale(0.97);
16842
+ }
16843
+ 100% {
16844
+ opacity: 1;
16845
+ transform: scale(1);
16846
+ }
16847
+ }
16848
+ @keyframes _1nns6ys1 {
16849
+ 0% {
16850
+ opacity: 1;
16851
+ transform: scale(1);
16852
+ }
16853
+ 100% {
16854
+ opacity: 0;
16855
+ transform: scale(0.97);
16856
+ }
16857
+ }
16858
+ ._1nns6ys2[data-rk][data-state=closed] {
16859
+ pointer-events: none;
16860
+ }
16861
+ [data-rk] ._1nns6ys3 {
16839
16862
  overflow-y: auto;
16840
16863
  scrollbar-width: none;
16841
16864
  }
16842
- [data-rk] ._1nns6ys0::-webkit-scrollbar {
16865
+ [data-rk] ._1nns6ys3::-webkit-scrollbar {
16843
16866
  display: none;
16844
16867
  }
16845
- [data-rk] ._1nns6ys1 {
16868
+ [data-rk] ._1nns6ys4 {
16846
16869
  position: relative;
16847
16870
  overflow: hidden;
16848
16871
  }
16849
- [data-rk] ._1nns6ys1::before {
16872
+ [data-rk] ._1nns6ys4::before {
16850
16873
  content: "";
16851
16874
  position: absolute;
16852
16875
  top: 0;
@@ -16863,7 +16886,7 @@
16863
16886
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
16864
16887
  z-index: 1;
16865
16888
  }
16866
- [data-rk] ._1nns6ys1::after {
16889
+ [data-rk] ._1nns6ys4::after {
16867
16890
  content: "";
16868
16891
  position: absolute;
16869
16892
  bottom: 0;
@@ -16880,19 +16903,33 @@
16880
16903
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
16881
16904
  z-index: 1;
16882
16905
  }
16883
- [data-rk] ._1nns6ys1[data-fade-top=true]::before {
16906
+ [data-rk] ._1nns6ys4[data-fade-top=true]::before {
16884
16907
  opacity: 1;
16885
16908
  }
16886
- [data-rk] ._1nns6ys1[data-fade-bottom=true]::after {
16909
+ [data-rk] ._1nns6ys4[data-fade-bottom=true]::after {
16887
16910
  opacity: 1;
16888
16911
  }
16889
- [data-rk] ._1nns6ys3 {
16912
+ [data-rk] ._1nns6ys6 {
16890
16913
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
16891
16914
  }
16892
- [data-rk] ._1nns6ys3:has([aria-disabled=true]):hover {
16915
+ [data-rk] ._1nns6ys6:has([aria-disabled=true]):hover {
16893
16916
  background: initial;
16894
16917
  cursor: not-allowed;
16895
16918
  }
16919
+ @media (prefers-reduced-motion: no-preference) {
16920
+ ._1nns6ys2[data-rk][data-state=open] {
16921
+ animation-duration: 150ms;
16922
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
16923
+ animation-fill-mode: forwards;
16924
+ animation-name: _1nns6ys0;
16925
+ }
16926
+ ._1nns6ys2[data-rk][data-state=closed] {
16927
+ animation-duration: 150ms;
16928
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
16929
+ animation-fill-mode: forwards;
16930
+ animation-name: _1nns6ys1;
16931
+ }
16932
+ }
16896
16933
 
16897
16934
  /* vanilla-extract-css-ns:src/components/Icons/CaretDownIcon.css.ts.vanilla.css?source=QGtleWZyYW1lcyBfMWdqZGYxaTAgewogIDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlM2QoMSwwLDAsMGRlZyk7CiAgfQogIDEwMCUgewogICAgdHJhbnNmb3JtOiByb3RhdGUzZCgxLDAsMCwxODBkZWcpOwogIH0KfQpAa2V5ZnJhbWVzIF8xZ2pkZjFpMSB7CiAgMCUgewogICAgdHJhbnNmb3JtOiByb3RhdGUzZCgxLDAsMCwxODBkZWcpOwogIH0KICAxMDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlM2QoMSwwLDAsMGRlZyk7CiAgfQp9Ci5fMWdqZGYxaTIgewogIGFuaW1hdGlvbjogXzFnamRmMWkwIDI1MG1zIGN1YmljLWJlemllcigwLjI5LCAtMC4wMSwgMCwgMSkgZm9yd2FyZHM7Cn0KLl8xZ2pkZjFpMyB7CiAgYW5pbWF0aW9uOiBfMWdqZGYxaTEgMjUwbXMgY3ViaWMtYmV6aWVyKDAuMjksIC0wLjAxLCAwLCAxKSBmb3J3YXJkczsKfQ */
16898
16935
  @keyframes _1gjdf1i0 {
@@ -17506,32 +17543,3 @@
17506
17543
  [data-rk] ._1dewiqw0 {
17507
17544
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
17508
17545
  }
17509
-
17510
- /* src/components/Dropdown/BaseDropdownAnimation.css */
17511
- @keyframes funkit-dropdown-fade-in {
17512
- 0% {
17513
- opacity: 0;
17514
- transform: scale(0.97);
17515
- }
17516
- 100% {
17517
- opacity: 1;
17518
- transform: scale(1);
17519
- }
17520
- }
17521
- @keyframes funkit-dropdown-fade-out {
17522
- 0% {
17523
- opacity: 1;
17524
- transform: scale(1);
17525
- }
17526
- 100% {
17527
- opacity: 0;
17528
- transform: scale(0.97);
17529
- }
17530
- }
17531
- .funkit-dropdown-content[data-state=open] {
17532
- animation: funkit-dropdown-fade-in 150ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
17533
- }
17534
- .funkit-dropdown-content[data-state=closed] {
17535
- animation: funkit-dropdown-fade-out 150ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
17536
- pointer-events: none;
17537
- }
@@ -1,8 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  PolymarketDepositAccountDropdown
4
- } from "../chunk-L2XMI4EX.js";
4
+ } from "../chunk-BB5FHA47.js";
5
5
  import "../chunk-BPDLF2R6.js";
6
+ import "../chunk-5MY7WMEJ.js";
7
+ import "../chunk-FNB7OPJI.js";
8
+ import "../chunk-6EU6CXNH.js";
9
+ import "../chunk-UK64SY6N.js";
10
+ import "../chunk-LUHEVXPD.js";
11
+ import "../chunk-YUZ3B2Q3.js";
12
+ import "../chunk-UPZNKPYU.js";
13
+ import "../chunk-C45VNQXY.js";
6
14
  import {
7
15
  POLYMARKET_PERPS_ROUTING_ID,
8
16
  POLYMARKET_PREDICTIONS_ROUTING_ID,
@@ -20,15 +28,7 @@ import {
20
28
  createPerpsGenerateActionParams,
21
29
  createPolymarketWithdrawalConfig
22
30
  } from "../chunk-IYCZWLAF.js";
23
- import "../chunk-5MY7WMEJ.js";
24
- import "../chunk-FNB7OPJI.js";
25
- import "../chunk-6EU6CXNH.js";
26
- import "../chunk-UK64SY6N.js";
27
- import "../chunk-LUHEVXPD.js";
28
- import "../chunk-YUZ3B2Q3.js";
29
31
  import "../chunk-PENJ5JGH.js";
30
- import "../chunk-UPZNKPYU.js";
31
- import "../chunk-C45VNQXY.js";
32
32
  import "../chunk-AHYOV7AV.js";
33
33
  export {
34
34
  AMOUNT_PLACEHOLDER,
@@ -1,5 +1,6 @@
1
1
  export declare const SCROLL_GRADIENT_SIZE_PX = 48;
2
2
  export declare const BORDER_RADIUS = "dropdown";
3
+ export declare const dropdownContentAnimationStyles: string;
3
4
  export declare const scrollableDropdownStyles: string;
4
5
  export declare const scrollGradientWrapperStyles: string;
5
6
  export declare const baseDropdownItemWrapperStyles: string;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type BoxProps } from '../Box/Box';
3
3
  import { type BaseActiveDropdownItemProps } from './BaseActiveDropdownItem';
4
- import './BaseDropdownAnimation.css';
5
4
  import { type BaseDropdownGroup, type BaseDropdownOption } from './BaseDropdown.utils';
6
5
  export type { BaseDropdownGroup, BaseDropdownOption, } from './BaseDropdown.utils';
7
6
  export { NO_SELECTION_VALUE } from './BaseDropdown.utils';
@@ -2,7 +2,12 @@ import type { FunAddress } from '@funkit/api-base';
2
2
  import { CheckoutRefundState, CheckoutState } from '@funkit/api-base';
3
3
  import type { GeneralWalletContextProps } from '../providers/GeneralWalletProvider';
4
4
  /** Web's entry to the shared screen: resolves the kill switch and logger. */
5
- export declare const hasRisk: (apiKey: string, walletAddress: GeneralWalletContextProps["walletAddress"], customRecipient?: FunAddress) => Promise<boolean>;
5
+ export declare const hasRisk: (apiKey: string, walletAddress: GeneralWalletContextProps["walletAddress"], customRecipient?: FunAddress,
6
+ /** Internal decimal chain ids: the wallet pays on the source chain, the recipient receives on the target chain. */
7
+ chainIds?: {
8
+ sourceChainId?: string;
9
+ targetChainId?: string;
10
+ }) => Promise<boolean>;
6
11
  export type CheckoutStatus = 'failed' | 'expired' | 'processing' | 'completed';
7
12
  type CheckoutStateBooleans = {
8
13
  isProcessing: boolean;
@@ -9,6 +9,9 @@ import type { AmountSelectionType } from '../../../modals/CheckoutModal/InputAmo
9
9
  * Every property is explicitly assigned so each emitted payload is auditable.
10
10
  */
11
11
  export declare enum AnalyticsEvent {
12
+ ACCOUNT_CONNECT_COMPLETED = "fc_account_connect_completed",
13
+ ACCOUNT_CONNECT_FAILED = "fc_account_connect_failed",
14
+ ACCOUNT_CONNECT_STARTED = "fc_account_connect_started",
12
15
  DEPOSIT_ASSET_SELECTED = "fc_deposit_asset_selected",
13
16
  DEPOSIT_AMOUNT_CONFIRMED = "fc_deposit_amount_confirmed",
14
17
  DEPOSIT_FAILED = "fc_deposit_failed",
@@ -56,6 +59,13 @@ export type PaymentMethodProperties = {
56
59
  /** Checkout provider identity; null when not applicable or authoritative. */
57
60
  provider: string | null;
58
61
  };
62
+ export type ErrorProperties = {
63
+ error_code: string | null;
64
+ error_message: string | null;
65
+ };
66
+ /** Payload specific to brokerage account connection lifecycle events. */
67
+ export type AccountConnectProperties = PaymentMethodProperties;
68
+ export type AccountConnectFailedProperties = AccountConnectProperties & ErrorProperties;
59
69
  /** Source/target/payment context shared by the deposit events. */
60
70
  export type DepositAssetContextProperties = PaymentMethodProperties & {
61
71
  source_chain: string | null;
@@ -157,6 +167,7 @@ export type DepositQuoteConfirmedProperties = DepositQuoteContextProperties;
157
167
  * quote, source asset, or broadcast hash.
158
168
  */
159
169
  export type ExecutionTransactionSnapshotProperties = DepositAssetContextProperties & VisibleQuoteFeeProperties & {
170
+ checkout_id: string;
160
171
  destination_address: string | null;
161
172
  execution_type: DirectExecutionType | null;
162
173
  sender_address: string | null;
@@ -164,6 +175,7 @@ export type ExecutionTransactionSnapshotProperties = DepositAssetContextProperti
164
175
  target_amount: string | null;
165
176
  trade_type: QuoteMode | null;
166
177
  tx_hash: string | null;
178
+ user_id?: string;
167
179
  };
168
180
  export type TransactionSubmittedProperties = ExecutionTransactionSnapshotProperties & {
169
181
  est_fulfillment_time_ms: number | null;
@@ -171,9 +183,7 @@ export type TransactionSubmittedProperties = ExecutionTransactionSnapshotPropert
171
183
  export type ExecutionSucceededProperties = ExecutionTransactionSnapshotProperties & {
172
184
  fulfillment_time_ms: number | null;
173
185
  };
174
- export type ExecutionFailedProperties = ExecutionTransactionSnapshotProperties & {
175
- error_code: string | null;
176
- };
186
+ export type ExecutionFailedProperties = ExecutionTransactionSnapshotProperties & ErrorProperties;
177
187
  export type DepositNotificationStatus = CheckoutStatus | 'delayed';
178
188
  export type DepositNotificationProperties = ExecutionTransactionSnapshotProperties & {
179
189
  status: DepositNotificationStatus;
@@ -190,6 +200,7 @@ export type ModalOpenedProperties = {
190
200
  custom_recipient: string | null;
191
201
  dynamic_routing_id: string | null;
192
202
  exchange_count: number;
203
+ flow: AnalyticsFlow;
193
204
  primary_exchange: string | null;
194
205
  primary_wallet: string | null;
195
206
  source_asset: string | null;
@@ -203,6 +214,7 @@ export type ModalOpenedProperties = {
203
214
  };
204
215
  /** Payload specific to {@link AnalyticsEvent.TAB_SWITCHED}. */
205
216
  export type TabSwitchedProperties = {
217
+ flow: AnalyticsFlow;
206
218
  from_tab: PaymentMethodType;
207
219
  /** 1-based switch ordinal for the current SourceChange visit. */
208
220
  switch_count: number;
@@ -227,6 +239,9 @@ export type DepositTransferInteractedProperties = {
227
239
  target_chain: string;
228
240
  };
229
241
  export type AnalyticsEventProperties = {
242
+ [AnalyticsEvent.ACCOUNT_CONNECT_COMPLETED]: AccountConnectProperties;
243
+ [AnalyticsEvent.ACCOUNT_CONNECT_FAILED]: AccountConnectFailedProperties;
244
+ [AnalyticsEvent.ACCOUNT_CONNECT_STARTED]: AccountConnectProperties;
230
245
  [AnalyticsEvent.DEPOSIT_ASSET_SELECTED]: DepositAssetSelectedProperties;
231
246
  [AnalyticsEvent.DEPOSIT_AMOUNT_CONFIRMED]: DepositAmountConfirmedProperties;
232
247
  [AnalyticsEvent.DEPOSIT_FAILED]: ExecutionFailedProperties;
@@ -245,9 +260,4 @@ export type AnalyticsEventProperties = {
245
260
  [AnalyticsEvent.WITHDRAWAL_SUCCEEDED]: ExecutionSucceededProperties;
246
261
  [AnalyticsEvent.WITHDRAWAL_TRANSACTION_SUBMITTED]: TransactionSubmittedProperties;
247
262
  };
248
- type AnalyticsPropertyValue = string | number | boolean | null | undefined;
249
- type AnalyticsEventShape<T extends AnalyticsEvent> = CommonProperties & AnalyticsEventProperties[T];
250
- export type AnalyticsEventPayload<T extends AnalyticsEvent> = {
251
- [K in keyof AnalyticsEventShape<T>]: AnalyticsEventShape<T>[K] extends AnalyticsPropertyValue ? AnalyticsEventShape<T>[K] : never;
252
- };
253
- export {};
263
+ export type AnalyticsEventPayload<T extends AnalyticsEvent> = CommonProperties & AnalyticsEventProperties[T];
@@ -27,6 +27,7 @@ export type ExecutionTransactionSubmittedArgs = {
27
27
  export type ExecutionProgressContext = ExecutionTransactionSubmittedArgs & {
28
28
  claimKey: string;
29
29
  errorCode: string | null;
30
+ errorMessage: string | null;
30
31
  fulfillmentTimeMs: number | null;
31
32
  isCompleted: boolean;
32
33
  isFailed: boolean;
@@ -11,6 +11,11 @@ type AssetDescriptorArgs = {
11
11
  tokenAddress: string;
12
12
  ticker: string | null;
13
13
  };
14
+ export type TrackExchangeConnectFailedArgs = {
15
+ errorCode: string | null;
16
+ errorMessage: string | null;
17
+ provider: string;
18
+ };
14
19
  export type TrackDepositAssetSelectedArgs = {
15
20
  source: AssetDescriptorArgs;
16
21
  target: AssetDescriptorArgs;
@@ -94,12 +99,15 @@ export type TrackDepositMeldQuoteDisplayedArgs = {
94
99
  * Gathers provider context and emits deposit-family analytics events.
95
100
  */
96
101
  export declare function useDepositAnalytics(): {
97
- trackDepositAssetSelected: (args: TrackDepositAssetSelectedArgs) => void;
98
102
  trackDepositAmountConfirmed: (args: TrackDepositAmountConfirmedArgs) => void;
99
- trackDepositMethodSelected: (args: TrackDepositMethodSelectedArgs) => void;
103
+ trackDepositAssetSelected: (args: TrackDepositAssetSelectedArgs) => void;
100
104
  trackDepositMeldQuoteDisplayed: ({ quote, numQuoteRefreshes }: TrackDepositMeldQuoteDisplayedArgs) => void;
101
- trackDepositQuoteDisplayed: (args: TrackDepositQuoteSnapshotArgs) => void;
105
+ trackDepositMethodSelected: (args: TrackDepositMethodSelectedArgs) => void;
102
106
  trackDepositQuoteConfirmed: (args: TrackDepositQuoteSnapshotArgs) => void;
107
+ trackDepositQuoteDisplayed: (args: TrackDepositQuoteSnapshotArgs) => void;
103
108
  trackDepositTransferInteracted: (args: TrackDepositTransferInteractedArgs) => void;
109
+ trackExchangeConnectCompleted: (provider: string) => void;
110
+ trackExchangeConnectFailed: (args: TrackExchangeConnectFailedArgs) => void;
111
+ trackExchangeConnectStarted: (provider: string) => void;
104
112
  };
105
113
  export {};
@@ -1,44 +1,14 @@
1
1
  import type { NotificationItem } from '../../../modals/CheckoutModal/TransferToken/types';
2
2
  import { type ExecutionTransactionSubmittedArgs } from './resolveExecutionProgressContext';
3
- import { type AnalyticsFlow } from './events';
3
+ import { type AnalyticsFlow, type ExecutionTransactionSnapshotProperties } from './events';
4
4
  export type TrackExecutionSucceededArgs = ExecutionTransactionSubmittedArgs & {
5
5
  fulfillmentTimeMs: number | null;
6
6
  };
7
7
  export type TrackExecutionFailedArgs = ExecutionTransactionSubmittedArgs & {
8
8
  errorCode: string | null;
9
+ errorMessage: string | null;
9
10
  };
10
- export declare function buildExecutionTransactionSnapshotProperties(args: ExecutionTransactionSubmittedArgs, connectedUserId: string | null, connectorId: string | undefined): {
11
- app_fee_pct: number | null;
12
- destination_chain_gas_usd: number | null;
13
- card_processing_fee_usd: number | null;
14
- exchange_processing_fee_usd: number | null;
15
- liquidity_provider_cost_usd: number | null;
16
- market_maker_gas_cost_usd: number | null;
17
- max_slippage_pct: number | null;
18
- moonpay_cost_usd: number | null;
19
- network_cost_usd: number | null;
20
- price_impact_pct: number | null;
21
- source_chain_gas_usd: number | null;
22
- swap_impact_pct: number | null;
23
- wallet_gas_cost_usd: number | null;
24
- checkout_id: string;
25
- destination_address: string | null;
26
- execution_type: import("@funkit/api-base").DirectExecutionType | null;
27
- sender_address: string | null;
28
- source_amount: string | null;
29
- source_chain: string | null;
30
- source_asset: string | null;
31
- source_asset_ticker: string | null;
32
- target_amount: string | null;
33
- target_chain: string;
34
- target_asset: string;
35
- target_asset_ticker: string | null;
36
- trade_type: import("../../../domains/quoteMode").QuoteMode | null;
37
- tx_hash: string | null;
38
- user_id: string | null;
39
- payment_method: string;
40
- provider: string | null;
41
- };
11
+ export declare function buildExecutionTransactionSnapshotProperties(args: ExecutionTransactionSubmittedArgs, connectorId: string | undefined): ExecutionTransactionSnapshotProperties;
42
12
  /** Builds and emits execution lifecycle events without owning any polling. */
43
13
  export declare function useTrackExecutionProgressEvents(flow: AnalyticsFlow): {
44
14
  trackExecutionFailed: (args: TrackExecutionFailedArgs, claimKey: string) => void;
@@ -0,0 +1,2 @@
1
+ import type { AnalyticsEvent, AnalyticsEventProperties, CommonProperties } from './analytics/events';
2
+ export declare function useTrackV2(): <T extends AnalyticsEvent>(event: T, buildMetadata: () => AnalyticsEventProperties[T] & Partial<CommonProperties>) => void;
@@ -1,10 +1,5 @@
1
- import { type Erc20AssetInfo, type GetAssetPriceInfoResponse } from '@funkit/api-base';
1
+ import type { Erc20AssetInfo } from '@funkit/api-base';
2
2
  import type { Address } from 'viem';
3
- export declare function getAssetPriceInfoWithFallback({ apiKey, chainId, assetTokenAddress, }: {
4
- apiKey: string;
5
- chainId: string;
6
- assetTokenAddress: Address;
7
- }): Promise<GetAssetPriceInfoResponse>;
8
3
  interface UseAssetAddressPriceParams {
9
4
  chainId: string | undefined;
10
5
  assetTokenAddress: Address | undefined;
@@ -1,4 +1,4 @@
1
- import type { WalletwithdrawquotequotationResponse as WithdrawalQuotation } from '@bluvo/sdk-ts';
1
+ import { type WalletwithdrawquotequotationResponse as WithdrawalQuotation } from '@bluvo/sdk-ts';
2
2
  import { BluvoExchangeStatus, type BluvoExchangeType } from '../consts/bluvo';
3
3
  import { type FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
4
4
  import type { FunBrokerageItemProps } from '../components/FunSelectBrokerage/FunBrokerageItem';
@@ -1526,7 +1526,12 @@ export declare const useBluvo: () => {
1526
1526
  } | {
1527
1527
  machine: import("@bluvo/sdk-ts").Machine<import("@bluvo/sdk-ts").FlowState, import("@bluvo/sdk-ts").FlowActionType>;
1528
1528
  closeOAuthWindow: () => void;
1529
- } | undefined>;
1529
+ } | {
1530
+ error: {
1531
+ code: string;
1532
+ message: string;
1533
+ };
1534
+ }>;
1530
1535
  quoteExpiresAt: number | undefined;
1531
1536
  };
1532
1537
  export {};