@funkit/connect 9.18.0 → 9.19.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 (63) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/{chunk-O35RTEEF.js → chunk-6K4U3Z4Z.js} +3 -0
  3. package/dist/{chunk-C2DLTEP2.js → chunk-NBECXHBY.js} +1 -1
  4. package/dist/{chunk-PPNE44RL.js → chunk-PFIXC5YK.js} +1 -1
  5. package/dist/clients/chunk-TFZV2HO4.js +290 -0
  6. package/dist/clients/chunk-UUHGOBKZ.js +51 -0
  7. package/dist/clients/fanatics.css +4729 -4699
  8. package/dist/clients/fanatics.js +3 -3
  9. package/dist/clients/lighter.css +4729 -4699
  10. package/dist/clients/lighter.js +2 -2
  11. package/dist/clients/polymarket.js +17 -36
  12. package/dist/clients/rolly.d.ts +13 -11
  13. package/dist/clients/rolly.js +17 -17
  14. package/dist/components/Box/Box.d.ts +18 -18
  15. package/dist/components/Dialog/DialogContent.css.d.ts +1 -0
  16. package/dist/components/Icons/CoinsIcon.d.ts +3 -1
  17. package/dist/components/PaddedScrollableArea/PaddedScrollableArea.d.ts +1 -2
  18. package/dist/consts/customers.d.ts +13 -0
  19. package/dist/consts/funkit.d.ts +2 -0
  20. package/dist/consts/polymarket.d.ts +9 -0
  21. package/dist/css/sprinkles.css.d.ts +22 -18
  22. package/dist/domains/checkoutNotifications.d.ts +1 -46
  23. package/dist/domains/paymentMethods.d.ts +10 -20
  24. package/dist/domains/swapped.d.ts +2 -21
  25. package/dist/hooks/queries/useWithdrawalQuote.d.ts +3 -1
  26. package/dist/hooks/queries/useWithdrawalRisk.d.ts +1 -1
  27. package/dist/hooks/statsig/useDynamicConfig.d.ts +2 -5
  28. package/dist/hooks/statsig/useExperiment.d.ts +1 -33
  29. package/dist/hooks/statsig/useFeatureGate.d.ts +1 -4
  30. package/dist/hooks/useCheckoutTransferInit.d.ts +2 -17
  31. package/dist/hooks/useTokenTransfer.d.ts +3 -8
  32. package/dist/hooks/useUDAParams.d.ts +2 -10
  33. package/dist/index.css +4860 -4816
  34. package/dist/index.js +1500 -3305
  35. package/dist/modals/CheckoutModal/InputAmount/QuickOptions.d.ts +1 -0
  36. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +25 -1
  37. package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +17 -0
  38. package/dist/modals/WithdrawalModal/ErrorMessage.d.ts +7 -1
  39. package/dist/providers/FunkitThemeProvider.d.ts +6 -0
  40. package/dist/providers/ModalSizeContext.d.ts +1 -0
  41. package/dist/providers/SwappedProvider.d.ts +1 -1
  42. package/dist/themes/baseTheme.js +1 -1
  43. package/dist/themes/darkTheme.js +2 -2
  44. package/dist/themes/lightTheme.js +2 -2
  45. package/dist/transports/iframeSwappedTransport.d.ts +1 -1
  46. package/dist/utils/address.d.ts +1 -14
  47. package/dist/utils/consts.d.ts +1 -2
  48. package/dist/utils/datadogBrowserLogsTransport.d.ts +1 -1
  49. package/dist/utils/directExecution.d.ts +1 -34
  50. package/dist/utils/funLogger.d.ts +1 -51
  51. package/dist/utils/getExchangeRate.d.ts +1 -4
  52. package/dist/utils/statsig/checkFeatureGate.d.ts +1 -1
  53. package/dist/utils/swapped.d.ts +5 -43
  54. package/dist/utils/transfer.d.ts +1 -10
  55. package/dist/wallets/walletConnectors/index.js +35 -35
  56. package/package.json +4 -3
  57. package/dist/__generated__/default_configs.d.ts +0 -901
  58. package/dist/__generated__/default_feature_gates.d.ts +0 -20
  59. package/dist/clients/chunk-3QHYYLVM.js +0 -240
  60. package/dist/clients/chunk-JOBMGIG4.js +0 -290
  61. package/dist/interfaces/logTransport.d.ts +0 -51
  62. package/dist/interfaces/swapped-transport.d.ts +0 -78
  63. package/dist/utils/flags/resolver.d.ts +0 -34
package/CHANGELOG.md CHANGED
@@ -1,5 +1,61 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 9.19.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 879c9bb: fix: balance-less rails (Card, Bitcoin Lightning) no longer show a false "Insufficient balance.
8
+ - 29f38c1: Move the platform-agnostic `FunLogger` class and the `LogTransport` interface (`LogLevel`, `LogContext`, `LogRecord`, `TrackingConsent`) into `@funkit/connect-core`. `@funkit/connect` keeps the `logger` singleton — constructed by injecting the web-only `DatadogBrowserLogsTransport` (which owns `@datadog/browser-logs`) — and re-exports `FunLogger` so existing `~/utils/funLogger` importers are unchanged. React Native will inject its own Datadog transport into the same `FunLogger`. No public API or behavior change.
9
+ - 871af19: Move the Statsig wrapper hooks, `__generated__` fallbacks, and the variant-config resolver into `@funkit/connect-core` so web and React Native share them. `@funkit/connect` keeps re-export façades; no public API or behavior change.
10
+ - fcc566b: Move the `SwappedTransport` interface + message contract into `@funkit/connect-core` so web and React Native share the typed Swapped bridge. The DOM-bound `SwappedProvider` / iframe transport stay in `@funkit/connect` and import the contract from core; no public API or behavior change.
11
+ - 5b94ae0: Extract the platform-agnostic token-transfer param helpers into `@funkit/connect-core` (thin-core): `getCheckoutTokenTransferParams` (with the Polymarket destination-token override lifted out into an injected `targetAssetOverride` so the builder stays customer-agnostic), the `CheckoutTokenTransferConfig` + `UDAConfig` types, and `getMinTransferValueForChain` + `MinTransferConfig`. The hooks that consume them (`useCheckoutTransferInit`, `useTokenTransfer`, `useUDAParams`) stay in `@funkit/connect` — they read web providers and carry customer/i18n branches — and re-export the moved symbols as façades. Web resolves the Polymarket override via `getPolymarketPerpsTargetAssetOverride` and injects it at both call sites. No public API or behavior change.
12
+ - 3377b2f: fix(connect): fix font-variant-numeric input width calc
13
+ - 2505ed2: Lighter spot deposits now open the amount screen in token entry when paying with the same asset (including native ETH into the ETH Spot market); perps deposits and all other checkouts keep the existing fiat default.
14
+ - efa7902: feat: add btc lightning limit
15
+ - 860ca5e: test(connect): add Rolly deposit actions coverage
16
+ - 45e4d09: feat: enable bitcoin lightning quick options and default input amount
17
+ - 553aae3: feat: remove fee breakdown from lightning invoice screen
18
+ - d2d487a: feat: minor qr code optimization for btc lightning
19
+ - Updated dependencies [29f38c1]
20
+ - Updated dependencies [871af19]
21
+ - Updated dependencies [fcc566b]
22
+ - Updated dependencies [5b94ae0]
23
+ - Updated dependencies [c11cbb9]
24
+ - @funkit/connect-core@0.3.0
25
+ - @funkit/chains@2.1.0
26
+
27
+ ## 9.19.0
28
+
29
+ ### Minor Changes
30
+
31
+ - 84050ab: feat: integrate btc lightning notifications
32
+ - e8925a0: feat(connect): move Rolly deposits from mainnet USDT to Arbitrum USDT0
33
+
34
+ Renames `MAINNET_USDT` → `ARBITRUM_USDT0` and `VAULT_DEPOSITOR_MAINNET` → `VAULT_DEPOSITOR_ARBITRUM` in `@funkit/connect/clients/rolly`; `createRollyDepositActions` gains an optional `tokenAddress` param
35
+
36
+ ### Patch Changes
37
+
38
+ - 8c17c3a: Move the domain / status-derivation logic — `checkoutNotifications` (multi-step direct-execution merging + variant filters + diff), the pure half of `domains/swapped` (`FOPS_STALE_TIME`, `sortFops`, `roundFopsLimit`, `getFopsLimit`), the `PaymentMethod` enum, `utils/directExecution`, and `utils/getExchangeRate` — into `@funkit/connect-core`. `@funkit/connect` keeps re-export façades; `validateFops` stays in web until the FunLogger move. No public API or behavior change.
39
+ - 0bb4c5f: Move the pure utils (`transfer`, `address`, `swapped` pure half) into `@funkit/connect-core`; `@funkit/connect` keeps re-export façades. No public API or behavior change.
40
+ - b5f5962: test(connect): add payment method component coverage
41
+ - e2bca7f: test(connect): test WithdrawalContent component
42
+ - 52419bb: fix: lightning payment source label
43
+ - 83f787c: fix(connect): add hoverWithParentInput to tertiary buttons
44
+ - 7a34bed: fix(connect): use forwardRef in PaddedScrollableArea
45
+ - f233d6b: expand withdrawal recipient risk screening
46
+ - ce279f9: Withdrawal risk screening now fails closed: the submit CTA and quoting require a clean risk result
47
+ - feb855e: feat(connect): add topbar title font-family variable
48
+ - Updated dependencies [b9acb14]
49
+ - Updated dependencies [8c17c3a]
50
+ - Updated dependencies [0bb4c5f]
51
+ - Updated dependencies [feb855e]
52
+ - Updated dependencies [84050ab]
53
+ - Updated dependencies [f1e9ee3]
54
+ - Updated dependencies [1d0d838]
55
+ - @funkit/chains@2.0.0
56
+ - @funkit/connect-core@0.2.0
57
+ - @funkit/api-base@4.5.0
58
+
3
59
  ## 9.18.0
4
60
 
5
61
  ### Minor Changes
@@ -202,6 +202,7 @@ var baseTheme = ({
202
202
  dropdownGroupHeader: customFontFamily,
203
203
  header: customFontFamily,
204
204
  inputAmount: customFontFamily,
205
+ modalTopbarTitle: customFontFamily,
205
206
  txStatusDescription: customFontFamily,
206
207
  txStatusTitle: customFontFamily
207
208
  } : {
@@ -213,6 +214,7 @@ var baseTheme = ({
213
214
  dropdownGroupHeader: fontStacks[fontStack],
214
215
  header: fontStacks[fontStack],
215
216
  inputAmount: fontStacks[fontStack],
217
+ modalTopbarTitle: fontStacks[fontStack],
216
218
  txStatusDescription: fontStacks[fontStack],
217
219
  txStatusTitle: fontStacks[fontStack],
218
220
  ...customFontFamily
@@ -340,6 +342,7 @@ var baseTheme = ({
340
342
  selectBrokerageItemPaddingX: "12px",
341
343
  selectBrokerageItemPaddingY: "11px",
342
344
  selectBrokerageListGap: "0px",
345
+ walletConnectorListGap: "10px",
343
346
  txBreakdownMarginY: "18px",
344
347
  txBreakdownPaddingX: "12px",
345
348
  txSummaryBoxPaddingX: "12px",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-O35RTEEF.js";
4
+ } from "./chunk-6K4U3Z4Z.js";
5
5
 
6
6
  // src/themes/lightTheme.ts
7
7
  var accentColors = {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-O35RTEEF.js";
4
+ } from "./chunk-6K4U3Z4Z.js";
5
5
 
6
6
  // src/themes/darkTheme.ts
7
7
  var accentColors = {