@funkit/connect 8.3.1-next.0 → 8.4.0-next.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 (100) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/{chunk-5JRQC2VM.js → chunk-UE3P6YHW.js} +13 -0
  3. package/dist/{chunk-CUWQELX3.js → chunk-XX5CVGHN.js} +3 -2
  4. package/dist/{chunk-VWSYBHAK.js → chunk-YUWSE22N.js} +3 -2
  5. package/dist/clients/fanatics.css +3956 -3651
  6. package/dist/clients/fanatics.js +35 -6
  7. package/dist/components/Box/Box.d.ts +45 -45
  8. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryBottomBar.d.ts +1 -0
  9. package/dist/components/FunCheckoutHistory/useCustomStatusAnimationAboveTopbar.d.ts +1 -3
  10. package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +3 -1
  11. package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
  12. package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +1 -0
  13. package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -0
  14. package/dist/components/Tabs/Tabs.d.ts +1 -0
  15. package/dist/consts/customers.d.ts +1 -1
  16. package/dist/css/sprinkles.css.d.ts +87 -45
  17. package/dist/domains/meld.d.ts +0 -6
  18. package/dist/hooks/queries/useFops.d.ts +4 -2
  19. package/dist/hooks/track/CheckoutModalEvent.d.ts +7 -0
  20. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -0
  21. package/dist/hooks/useStepQueryReadiness.d.ts +32 -0
  22. package/dist/index.css +3981 -3670
  23. package/dist/index.js +3566 -2930
  24. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -0
  25. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +2 -1
  26. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
  27. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
  28. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +5 -1
  29. package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +10 -0
  30. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +10 -0
  31. package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +4 -0
  32. package/dist/modals/CheckoutModal/SourceChange/{DefaultSourceList.d.ts → SourceList.d.ts} +3 -3
  33. package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +2 -1
  34. package/dist/modals/CheckoutModal/stepTransition.d.ts +7 -0
  35. package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
  36. package/dist/providers/FunkitConfigContext.d.ts +2 -0
  37. package/dist/providers/FunkitThemeProvider.d.ts +63 -0
  38. package/dist/themes/baseTheme.js +1 -1
  39. package/dist/themes/darkTheme.js +2 -2
  40. package/dist/themes/lightTheme.js +2 -2
  41. package/dist/utils/across.d.ts +5 -0
  42. package/dist/utils/depositCutoff.d.ts +9 -0
  43. package/dist/utils/directExecution.d.ts +16 -0
  44. package/dist/utils/flags/config.d.ts +2 -2
  45. package/dist/utils/lighter.d.ts +1 -1
  46. package/dist/utils/sanitizeHtml.d.ts +7 -0
  47. package/dist/utils/sanitizeUrl.d.ts +10 -0
  48. package/dist/utils/tokenIconUrl.d.ts +1 -1
  49. package/dist/wallets/walletConnectors/index.js +18 -18
  50. package/package.json +4 -4
  51. package/dist/atoms/activeCheckout.d.ts +0 -183
  52. package/dist/atoms/activeWithdrawal.d.ts +0 -21
  53. package/dist/atoms/bridgeProviders/acrossAdapter.d.ts +0 -109
  54. package/dist/atoms/bridgeProviders/index.d.ts +0 -25
  55. package/dist/atoms/bridgeProviders/registry.d.ts +0 -12
  56. package/dist/atoms/bridgeProviders/relayAdapter.d.ts +0 -60
  57. package/dist/atoms/bridgeProviders/types.d.ts +0 -182
  58. package/dist/atoms/checkoutProgress.d.ts +0 -22
  59. package/dist/atoms/directExecution.d.ts +0 -70
  60. package/dist/atoms/funkitCheckout.d.ts +0 -18
  61. package/dist/atoms/funkitProvider/index.d.ts +0 -24
  62. package/dist/atoms/generalWallet.d.ts +0 -45
  63. package/dist/atoms/i18n.d.ts +0 -6
  64. package/dist/atoms/modalState.d.ts +0 -30
  65. package/dist/atoms/quote.d.ts +0 -98
  66. package/dist/atoms/stepTransition.d.ts +0 -6
  67. package/dist/atoms/store.d.ts +0 -1
  68. package/dist/atoms/track/index.d.ts +0 -10
  69. package/dist/atoms/utils.d.ts +0 -2
  70. package/dist/atoms/wagmi.d.ts +0 -4
  71. package/dist/atoms/walletClient.d.ts +0 -15391
  72. package/dist/chunk-A24XIU2M.js +0 -299
  73. package/dist/chunk-CMS4F5PL.js +0 -209
  74. package/dist/chunk-FBCU3TQA.js +0 -204
  75. package/dist/chunk-GRQP5R23.js +0 -209
  76. package/dist/chunk-MGQZMUZ2.js +0 -288
  77. package/dist/chunk-OTMBU2BL.js +0 -204
  78. package/dist/domains/across.d.ts +0 -29
  79. package/dist/domains/track.d.ts +0 -14
  80. package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +0 -2
  81. package/dist/modals/CheckoutModal/SelectAsset.d.ts +0 -14
  82. package/dist/modals/CheckoutModal/SourceChange/FanaticsSourceList.d.ts +0 -15
  83. package/dist/wallets/walletConnectors/chunk-3ZWIUCOI.js +0 -96
  84. package/dist/wallets/walletConnectors/chunk-4SC3PZVM.js +0 -70
  85. package/dist/wallets/walletConnectors/chunk-5AV2NSL3.js +0 -98
  86. package/dist/wallets/walletConnectors/chunk-5FWURLPF.js +0 -218
  87. package/dist/wallets/walletConnectors/chunk-6677RKVT.js +0 -69
  88. package/dist/wallets/walletConnectors/chunk-75A4Q5E5.js +0 -92
  89. package/dist/wallets/walletConnectors/chunk-ENLR4LXN.js +0 -94
  90. package/dist/wallets/walletConnectors/chunk-FT5BX7TL.js +0 -103
  91. package/dist/wallets/walletConnectors/chunk-GEMN6DM5.js +0 -106
  92. package/dist/wallets/walletConnectors/chunk-GXTI2PZD.js +0 -100
  93. package/dist/wallets/walletConnectors/chunk-LGT6IAXI.js +0 -93
  94. package/dist/wallets/walletConnectors/chunk-N7475PGA.js +0 -110
  95. package/dist/wallets/walletConnectors/chunk-O6YFVGVQ.js +0 -99
  96. package/dist/wallets/walletConnectors/chunk-OCM5YHT5.js +0 -92
  97. package/dist/wallets/walletConnectors/chunk-PRGCIJ7Y.js +0 -87
  98. package/dist/wallets/walletConnectors/chunk-RNIMZDHW.js +0 -95
  99. package/dist/wallets/walletConnectors/chunk-TLOROKED.js +0 -96
  100. package/dist/wallets/walletConnectors/chunk-WNQ3NPHX.js +0 -66
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 8.4.0-next.1
4
+
5
+ ### Minor Changes
6
+
7
+ - ba04b38: Add Global Compute customer and enable brokerage features by default
8
+
9
+ ### Patch Changes
10
+
11
+ - e756825: feat(connect): show Across icon and label in selected route when Across is enabled
12
+ - 04f8d12: feat(connect): treat Across (CCTP) routes as slow deposits with 1-2 min time estimate
13
+ - b3589c1: embed theme params in the fops request for swapped
14
+ - bc5436e: change final buttons on fanatics
15
+ - 2ccdc83: refactor: reorder meld options
16
+ - c6fc3e7: fix: iframe postMessage origin validation
17
+ - a7ca00e: fix(connect): fix fanatics font size
18
+ - 8cb1965: chore: sanitize htmls
19
+ - 0e6d9bd: feat(connect): map skeleton heights to actual font sizes in FunPaymentMethodItemSkeleton
20
+ - 4fe1634: implement swapped iframe integration
21
+ - bd51750: feat(connect): make CryptoCashToggle styles theme configurable
22
+ - a61d9e5: fix(connect): redirect completion tx explorer to Lighter for L1 deposits
23
+ - 3c36d53: Fix stale withdrawal quote reuse across consecutive withdrawals by resetting checkout ID on "New Withdrawal"
24
+ - f1b51e0: feat(connect): max height on mobile
25
+ - 12e06a2: feat(connect): ability to update source change layout via ui config
26
+ - 6e9ec49: feat(connect): add theme level configs to source list section labels
27
+ - 7ebf0ca: fix(connect): add i18n for Across and LayerZero time estimate strings
28
+ - a615907: feat(connect): improve metric collection for analytics events
29
+ - 729eb2b: fix: adjust Across bridge time estimates and fix Lighter explorer link
30
+ - 712bacc: refactor(connect): reorder SourceChange component hooks and variables for readability
31
+ - aeb52c7: fix(connect): skip broken Polygon default viem RPC
32
+ - 28eb98c: misc fixes
33
+ - e13fffb: feat(connect): update fanatics padding for close and action button
34
+ - 8840aa9: feat: add dynamic s3 icon fallback
35
+ - 4fc223a: extra bottom padding removed for swapped iframe
36
+ - a653ae3: fix(connect): increase flag fetch timeout to 10s
37
+ - 2ac1d6d: refactor(connect): extract completion tx resolution into utility function
38
+ - 644c1ad: Remove dangerouslySetInnerHTML from InfoBanner and strip HTML from usdceWarning translations.
39
+ - 28eb98c: refactor(connect): rename isLighterNativeFlow to isLighterSlowDeposit and extract delayed cutoff utility
40
+ - 64f367d: feat(connect): handle withdrawal rate limit errors
41
+ - 7e19469: chore(connect): silence statsig warnings
42
+ - 508713c: fix(connect): update transaction status padding for fanatics
43
+ - 126661c: feat(connect): add page readiness tracking for checkout steps
44
+ - d4d38db: feat(connect): add source change initial loader
45
+ - Updated dependencies [ba04b38]
46
+ - Updated dependencies [b3589c1]
47
+ - Updated dependencies [4fe1634]
48
+ - Updated dependencies [4fe1634]
49
+ - Updated dependencies [8aa93f1]
50
+ - Updated dependencies [3b1c2c0]
51
+ - @funkit/api-base@2.2.0-next.0
52
+ - @funkit/utils@1.2.1-next.0
53
+ - @funkit/fun-relay@2.4.1-next.1
54
+
3
55
  ## 8.3.1-next.0
4
56
 
5
57
  ### Patch Changes
@@ -152,6 +152,7 @@ var baseTheme = ({
152
152
  },
153
153
  dimensions: {
154
154
  connectExchangeIconSize: "48px",
155
+ cryptoCashToggleIconSize: "20px",
155
156
  dollarValueSkeletonHeight: "60px",
156
157
  dollarValueSkeletonWidth: "160px",
157
158
  inputAmountQuickOptionButtonHeight: "36px",
@@ -161,6 +162,7 @@ var baseTheme = ({
161
162
  paymentAmountSkeletonBlockHeight: "10px",
162
163
  paymentAmountSkeletonBlockWidth: "93px",
163
164
  paymentAmountSkeletonCircleSize: "15px",
165
+ paymentMethodItemIconSize: "20px",
164
166
  selectAssetItemIconSize: "24px",
165
167
  txBreakdownSkeletonWidth: "72px",
166
168
  txSummaryLineSkeletonHeight: "14px",
@@ -192,6 +194,7 @@ var baseTheme = ({
192
194
  },
193
195
  fontWeight: {
194
196
  ...DEFAULT_FONT_WEIGHTS,
197
+ cryptoCashToggle: DEFAULT_FONT_WEIGHTS.medium,
195
198
  inputAmount: DEFAULT_FONT_WEIGHTS.medium,
196
199
  modalTopbarTitle: DEFAULT_FONT_WEIGHTS.medium,
197
200
  modalBottomBarButtonText: DEFAULT_FONT_WEIGHTS.medium,
@@ -205,11 +208,13 @@ var baseTheme = ({
205
208
  txStatusTitle: DEFAULT_FONT_WEIGHTS.medium,
206
209
  txSummaryLabel: DEFAULT_FONT_WEIGHTS.medium,
207
210
  txSummaryValue: DEFAULT_FONT_WEIGHTS.medium,
211
+ sourceListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
208
212
  ...customFontWeights
209
213
  },
210
214
  fontSize: {
211
215
  ...FONT_SIZINGS[fontSizing],
212
216
  body: FONT_SIZINGS[fontSizing][14],
217
+ cryptoCashToggle: FONT_SIZINGS[fontSizing][12],
213
218
  "header-14": { fontSize: "14px", lineHeight: "14px" },
214
219
  "header-36": { fontSize: "36px", lineHeight: "36px" },
215
220
  buttonTextPrimary: FONT_SIZINGS[fontSizing][12],
@@ -235,6 +240,7 @@ var baseTheme = ({
235
240
  depositAddressFontSize: FONT_SIZINGS[fontSizing][10],
236
241
  funFeatureListItemFontSize: FONT_SIZINGS[fontSizing][12],
237
242
  dropdownItemFontSize: FONT_SIZINGS[fontSizing][12],
243
+ sourceListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
238
244
  ...customFontSizings
239
245
  },
240
246
  radii: {
@@ -260,12 +266,17 @@ var baseTheme = ({
260
266
  borderWidths: {
261
267
  activeOptionBorderWidth: "1px",
262
268
  buttonTertiaryBorderWidth: "0px",
269
+ cryptoCashToggleContainerBorderWidth: "0px",
263
270
  txSummaryBoxBorderWidth: "1px",
264
271
  ...customBorderWidths
265
272
  },
266
273
  spacing: {
267
274
  confirmationStepMarginTop: "6px",
268
275
  confirmationStepVerticalGap: "18px",
276
+ cryptoCashToggleContainerPadding: "3px",
277
+ cryptoCashToggleMarginBottom: "16px",
278
+ cryptoCashToggleMarginTop: "24px",
279
+ cryptoCashToggleTabPaddingY: "6px",
269
280
  modalBaseHorizontalPadding: "6px",
270
281
  modalBottomBarButtonPaddingY: "0px",
271
282
  modalBottomHorizontalPadding: "12px",
@@ -284,6 +295,8 @@ var baseTheme = ({
284
295
  txSummaryLineItemPadding: "0px",
285
296
  txSummaryDividerMarginX: "12px",
286
297
  txSummaryDividerMarginY: "12px",
298
+ youPayYouReceivePaddingLeft: "12px",
299
+ youPayYouReceivePaddingRight: "16px",
287
300
  youPayYouReceivePaddingY: "8px",
288
301
  ...customSpacings
289
302
  },
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-5JRQC2VM.js";
4
+ } from "./chunk-UE3P6YHW.js";
5
5
 
6
6
  // src/themes/lightTheme.ts
7
7
  var accentColors = {
@@ -170,7 +170,8 @@ var lightTheme = ({
170
170
  dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
171
171
  txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#FFF",
172
172
  txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#F7F7F7",
173
- counterRingColor: customColors?.counterRingColor ?? accentColor
173
+ counterRingColor: customColors?.counterRingColor ?? accentColor,
174
+ cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent"
174
175
  },
175
176
  shadows: {
176
177
  connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-5JRQC2VM.js";
4
+ } from "./chunk-UE3P6YHW.js";
5
5
 
6
6
  // src/themes/darkTheme.ts
7
7
  var accentColors = {
@@ -170,7 +170,8 @@ var darkTheme = ({
170
170
  dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
171
171
  txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
172
172
  txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333",
173
- counterRingColor: customColors?.counterRingColor ?? accentColor
173
+ counterRingColor: customColors?.counterRingColor ?? accentColor,
174
+ cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent"
174
175
  },
175
176
  shadows: {
176
177
  connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",