@funkit/connect 8.3.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 (58) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/__generated__/default_configs.d.ts +63 -0
  3. package/dist/{chunk-A24XIU2M.js → chunk-UE3P6YHW.js} +14 -0
  4. package/dist/{chunk-CMS4F5PL.js → chunk-XX5CVGHN.js} +3 -2
  5. package/dist/{chunk-GRQP5R23.js → chunk-YUWSE22N.js} +3 -2
  6. package/dist/clients/fanatics.css +3956 -3651
  7. package/dist/clients/fanatics.js +35 -6
  8. package/dist/components/Box/Box.d.ts +45 -45
  9. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryBottomBar.d.ts +1 -0
  10. package/dist/components/FunCheckoutHistory/useCustomStatusAnimationAboveTopbar.d.ts +1 -3
  11. package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +3 -1
  12. package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
  13. package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +1 -0
  14. package/dist/components/FunPaymentMethodItem/FunPaymentMethodItemSkeleton.d.ts +2 -0
  15. package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -0
  16. package/dist/components/Icons/AcrossIcon.d.ts +4 -0
  17. package/dist/components/Tabs/Tabs.d.ts +1 -0
  18. package/dist/consts/customers.d.ts +1 -1
  19. package/dist/css/sprinkles.css.d.ts +87 -45
  20. package/dist/domains/meld.d.ts +0 -6
  21. package/dist/hooks/queries/useFops.d.ts +17 -0
  22. package/dist/hooks/track/CheckoutModalEvent.d.ts +7 -0
  23. package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -0
  24. package/dist/hooks/useStepQueryReadiness.d.ts +32 -0
  25. package/dist/index.css +3976 -3665
  26. package/dist/index.js +3643 -2985
  27. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -0
  28. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +2 -1
  29. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
  30. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
  31. package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +11 -0
  32. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +5 -1
  33. package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +10 -0
  34. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +10 -0
  35. package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +4 -0
  36. package/dist/modals/CheckoutModal/SourceChange/{DefaultSourceList.d.ts → SourceList.d.ts} +3 -3
  37. package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +2 -1
  38. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +16 -0
  39. package/dist/modals/CheckoutModal/SwappedIframe/index.d.ts +1 -0
  40. package/dist/modals/CheckoutModal/stepTransition.d.ts +7 -0
  41. package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
  42. package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -0
  43. package/dist/providers/FunkitConfigContext.d.ts +2 -0
  44. package/dist/providers/FunkitThemeProvider.d.ts +63 -0
  45. package/dist/themes/baseTheme.js +1 -1
  46. package/dist/themes/darkTheme.js +2 -2
  47. package/dist/themes/lightTheme.js +2 -2
  48. package/dist/utils/across.d.ts +5 -0
  49. package/dist/utils/depositCutoff.d.ts +9 -0
  50. package/dist/utils/directExecution.d.ts +16 -0
  51. package/dist/utils/flags/config.d.ts +2 -2
  52. package/dist/utils/lighter.d.ts +1 -3
  53. package/dist/utils/sanitizeHtml.d.ts +7 -0
  54. package/dist/utils/sanitizeUrl.d.ts +10 -0
  55. package/dist/utils/tokenIconUrl.d.ts +1 -1
  56. package/dist/wallets/walletConnectors/index.js +13 -13
  57. package/package.json +4 -4
  58. package/dist/modals/CheckoutModal/SourceChange/FanaticsSourceList.d.ts +0 -15
package/CHANGELOG.md CHANGED
@@ -1,5 +1,66 @@
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
+
55
+ ## 8.3.1-next.0
56
+
57
+ ### Patch Changes
58
+
59
+ - addf363: feat(connect): add AZTEC token support for Lighter exchange
60
+ - fdefe58: feat(connect): update lighter utils to use dynamic target id for dynamic target assets
61
+ - Updated dependencies [addf363]
62
+ - @funkit/fun-relay@2.4.1-next.0
63
+
3
64
  ## 8.3.0
4
65
 
5
66
  ### Minor Changes
@@ -242,6 +242,23 @@ declare const _default: {
242
242
  readonly path: "FUN_MAINNET_DEPOSIT";
243
243
  };
244
244
  }];
245
+ }, {
246
+ readonly routeId: "LIGHTER_AZTEC_SPOT_NEW_USER";
247
+ readonly rules: readonly [{
248
+ readonly when: {
249
+ readonly chainId: "1";
250
+ readonly tokenAddress: "0xA27EC0006e59f245217Ff08CD52A7E8b169E62D2";
251
+ };
252
+ readonly use: {
253
+ readonly path: "FUN_MAINNET_DEPOSIT";
254
+ readonly badge: "NATIVE";
255
+ };
256
+ }, {
257
+ readonly when: "*";
258
+ readonly use: {
259
+ readonly path: "FUN_MAINNET_DEPOSIT";
260
+ };
261
+ }];
245
262
  }];
246
263
  };
247
264
  readonly enablebitcoin: {
@@ -331,6 +348,41 @@ declare const _default: {
331
348
  readonly nonMainnet: 2.5;
332
349
  };
333
350
  };
351
+ readonly relaybypasssourcechainsandassets: {
352
+ readonly value: {
353
+ readonly '1': readonly ["*"];
354
+ readonly '10': readonly ["*"];
355
+ readonly '56': readonly ["*"];
356
+ readonly '137': readonly ["*"];
357
+ readonly '143': readonly ["*"];
358
+ readonly '999': readonly ["*"];
359
+ readonly '2741': readonly ["*"];
360
+ readonly '8453': readonly ["*"];
361
+ readonly '42161': readonly ["*"];
362
+ readonly '747474': readonly ["*"];
363
+ readonly '5064014': readonly ["*"];
364
+ readonly '8253038': readonly ["*"];
365
+ };
366
+ };
367
+ readonly relaybypasstargetchainsandassets: {
368
+ readonly value: {
369
+ readonly '1': readonly ["*"];
370
+ readonly '10': readonly ["*"];
371
+ readonly '56': readonly ["*"];
372
+ readonly '137': readonly ["*"];
373
+ readonly '143': readonly ["*"];
374
+ readonly '999': readonly ["*"];
375
+ readonly '1337': readonly ["*"];
376
+ readonly '2741': readonly ["*"];
377
+ readonly '8453': readonly ["*"];
378
+ readonly '42161': readonly ["*"];
379
+ readonly '747474': readonly ["*"];
380
+ readonly '3586256': readonly ["*"];
381
+ readonly '5064014': readonly ["*"];
382
+ readonly '8253038': readonly ["*"];
383
+ readonly '1151111081099710': readonly ["*"];
384
+ };
385
+ };
334
386
  readonly showinfobanner: {
335
387
  readonly value: {
336
388
  readonly message: "";
@@ -344,6 +396,17 @@ declare const _default: {
344
396
  readonly supportedexchangesv2: {
345
397
  readonly value: readonly [];
346
398
  };
399
+ readonly tokentransferchaingroups: {
400
+ readonly value: {
401
+ readonly popular: readonly [1151111081099710, 1, 728126428];
402
+ };
403
+ };
404
+ readonly tokentransfertokengroups: {
405
+ readonly value: {
406
+ readonly popular: readonly [];
407
+ readonly stablecoins: readonly ["BUSD", "DAI", "USDC", "USDC.e", "USDe", "USDT"];
408
+ };
409
+ };
347
410
  readonly uda_params: {
348
411
  readonly value: readonly [{
349
412
  readonly dynamicRoutingId: "LIGHTER_ETH_SPOT";
@@ -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,13 +266,19 @@ 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",
281
+ modalBottomBarButtonPaddingY: "0px",
270
282
  modalBottomHorizontalPadding: "12px",
271
283
  modalPaddingBottomUpper: "16px",
272
284
  modalPaddingBottomLower: "16px",
@@ -283,6 +295,8 @@ var baseTheme = ({
283
295
  txSummaryLineItemPadding: "0px",
284
296
  txSummaryDividerMarginX: "12px",
285
297
  txSummaryDividerMarginY: "12px",
298
+ youPayYouReceivePaddingLeft: "12px",
299
+ youPayYouReceivePaddingRight: "16px",
286
300
  youPayYouReceivePaddingY: "8px",
287
301
  ...customSpacings
288
302
  },
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-A24XIU2M.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-A24XIU2M.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)",