@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.
- package/CHANGELOG.md +56 -0
- package/dist/{chunk-O35RTEEF.js → chunk-6K4U3Z4Z.js} +3 -0
- package/dist/{chunk-C2DLTEP2.js → chunk-NBECXHBY.js} +1 -1
- package/dist/{chunk-PPNE44RL.js → chunk-PFIXC5YK.js} +1 -1
- package/dist/clients/chunk-TFZV2HO4.js +290 -0
- package/dist/clients/chunk-UUHGOBKZ.js +51 -0
- package/dist/clients/fanatics.css +4729 -4699
- package/dist/clients/fanatics.js +3 -3
- package/dist/clients/lighter.css +4729 -4699
- package/dist/clients/lighter.js +2 -2
- package/dist/clients/polymarket.js +17 -36
- package/dist/clients/rolly.d.ts +13 -11
- package/dist/clients/rolly.js +17 -17
- package/dist/components/Box/Box.d.ts +18 -18
- package/dist/components/Dialog/DialogContent.css.d.ts +1 -0
- package/dist/components/Icons/CoinsIcon.d.ts +3 -1
- package/dist/components/PaddedScrollableArea/PaddedScrollableArea.d.ts +1 -2
- package/dist/consts/customers.d.ts +13 -0
- package/dist/consts/funkit.d.ts +2 -0
- package/dist/consts/polymarket.d.ts +9 -0
- package/dist/css/sprinkles.css.d.ts +22 -18
- package/dist/domains/checkoutNotifications.d.ts +1 -46
- package/dist/domains/paymentMethods.d.ts +10 -20
- package/dist/domains/swapped.d.ts +2 -21
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +3 -1
- package/dist/hooks/queries/useWithdrawalRisk.d.ts +1 -1
- package/dist/hooks/statsig/useDynamicConfig.d.ts +2 -5
- package/dist/hooks/statsig/useExperiment.d.ts +1 -33
- package/dist/hooks/statsig/useFeatureGate.d.ts +1 -4
- package/dist/hooks/useCheckoutTransferInit.d.ts +2 -17
- package/dist/hooks/useTokenTransfer.d.ts +3 -8
- package/dist/hooks/useUDAParams.d.ts +2 -10
- package/dist/index.css +4860 -4816
- package/dist/index.js +1500 -3305
- package/dist/modals/CheckoutModal/InputAmount/QuickOptions.d.ts +1 -0
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +25 -1
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +17 -0
- package/dist/modals/WithdrawalModal/ErrorMessage.d.ts +7 -1
- package/dist/providers/FunkitThemeProvider.d.ts +6 -0
- package/dist/providers/ModalSizeContext.d.ts +1 -0
- package/dist/providers/SwappedProvider.d.ts +1 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/transports/iframeSwappedTransport.d.ts +1 -1
- package/dist/utils/address.d.ts +1 -14
- package/dist/utils/consts.d.ts +1 -2
- package/dist/utils/datadogBrowserLogsTransport.d.ts +1 -1
- package/dist/utils/directExecution.d.ts +1 -34
- package/dist/utils/funLogger.d.ts +1 -51
- package/dist/utils/getExchangeRate.d.ts +1 -4
- package/dist/utils/statsig/checkFeatureGate.d.ts +1 -1
- package/dist/utils/swapped.d.ts +5 -43
- package/dist/utils/transfer.d.ts +1 -10
- package/dist/wallets/walletConnectors/index.js +35 -35
- package/package.json +4 -3
- package/dist/__generated__/default_configs.d.ts +0 -901
- package/dist/__generated__/default_feature_gates.d.ts +0 -20
- package/dist/clients/chunk-3QHYYLVM.js +0 -240
- package/dist/clients/chunk-JOBMGIG4.js +0 -290
- package/dist/interfaces/logTransport.d.ts +0 -51
- package/dist/interfaces/swapped-transport.d.ts +0 -78
- 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",
|