@funkit/connect 9.17.0 → 9.19.0
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 +52 -0
- package/dist/__generated__/default_configs.d.ts +42 -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-GSK3TMI5.js +290 -0
- package/dist/clients/fanatics.css +4729 -4699
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/lighter.css +4729 -4699
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/polymarket.js +14 -13
- package/dist/clients/rolly.d.ts +13 -11
- package/dist/clients/rolly.js +17 -17
- package/dist/components/AnimatedDollarValue/AnimatedDollarValue.d.ts +1 -1
- 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/Icons/StatusIcons.d.ts +1 -1
- package/dist/components/PaddedScrollableArea/PaddedScrollableArea.d.ts +1 -2
- package/dist/css/sprinkles.css.d.ts +22 -18
- package/dist/domains/checkoutErrors.d.ts +22 -0
- package/dist/domains/checkoutNotifications.d.ts +1 -46
- package/dist/domains/dynamicRouting.d.ts +24 -0
- package/dist/domains/paymentMethods.d.ts +2 -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/index.css +4859 -4813
- package/dist/index.d.ts +1 -1
- package/dist/index.js +811 -1035
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -22
- package/dist/modals/CheckoutModal/InputAmount/useAaveNativeSupply.d.ts +6 -2
- package/dist/modals/WithdrawalModal/ErrorMessage.d.ts +8 -2
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/index.d.ts +2 -6
- package/dist/providers/FunkitCheckoutContext/types.d.ts +14 -2
- package/dist/providers/FunkitThemeProvider.d.ts +6 -0
- package/dist/providers/ModalSizeContext.d.ts +1 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/address.d.ts +1 -14
- package/dist/utils/directExecution.d.ts +1 -34
- package/dist/utils/getExchangeRate.d.ts +1 -4
- package/dist/utils/swapped.d.ts +3 -41
- package/dist/utils/transfer.d.ts +1 -10
- package/dist/wagmi/actions.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +31 -31
- package/package.json +12 -11
- package/dist/clients/chunk-JOBMGIG4.js +0 -290
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 9.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 84050ab: feat: integrate btc lightning notifications
|
|
8
|
+
- e8925a0: feat(connect): move Rolly deposits from mainnet USDT to Arbitrum USDT0
|
|
9
|
+
|
|
10
|
+
Renames `MAINNET_USDT` → `ARBITRUM_USDT0` and `VAULT_DEPOSITOR_MAINNET` → `VAULT_DEPOSITOR_ARBITRUM` in `@funkit/connect/clients/rolly`; `createRollyDepositActions` gains an optional `tokenAddress` param
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 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.
|
|
15
|
+
- 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.
|
|
16
|
+
- b5f5962: test(connect): add payment method component coverage
|
|
17
|
+
- e2bca7f: test(connect): test WithdrawalContent component
|
|
18
|
+
- 52419bb: fix: lightning payment source label
|
|
19
|
+
- 83f787c: fix(connect): add hoverWithParentInput to tertiary buttons
|
|
20
|
+
- 7a34bed: fix(connect): use forwardRef in PaddedScrollableArea
|
|
21
|
+
- f233d6b: expand withdrawal recipient risk screening
|
|
22
|
+
- ce279f9: Withdrawal risk screening now fails closed: the submit CTA and quoting require a clean risk result
|
|
23
|
+
- feb855e: feat(connect): add topbar title font-family variable
|
|
24
|
+
- Updated dependencies [b9acb14]
|
|
25
|
+
- Updated dependencies [8c17c3a]
|
|
26
|
+
- Updated dependencies [0bb4c5f]
|
|
27
|
+
- Updated dependencies [feb855e]
|
|
28
|
+
- Updated dependencies [84050ab]
|
|
29
|
+
- Updated dependencies [f1e9ee3]
|
|
30
|
+
- Updated dependencies [1d0d838]
|
|
31
|
+
- @funkit/chains@2.0.0
|
|
32
|
+
- @funkit/connect-core@0.2.0
|
|
33
|
+
- @funkit/api-base@4.5.0
|
|
34
|
+
|
|
35
|
+
## 9.18.0
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- 8baaa78: Pass the active `dynamicRoutingId` to dynamic `modalTitle` resolvers. The `modalTitle` callback now receives a `ModalTitleContext` (`TokenInfo` + optional `dynamicRoutingId`) instead of just `TokenInfo`, so integrators can key the checkout title by route/action — not only the target token address. This is required when two routes share a target token (e.g. Lighter USDC perps vs spot, which both deposit mainnet USDC for new users). The change is backwards compatible: existing `(asset: TokenInfo) => string` resolvers remain assignable. The `ModalTitleContext` type is now exported from the package root so integrators can annotate their resolver.
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- deefef3: Aave native supply USDT zero-reset now reads allowance via the public client (not the wallet client) and waits for the `approve(0)` receipt before the SDK's `approve(amount)`, avoiding nonce collisions on `latest`-based RPCs.
|
|
44
|
+
- c5c0183: Translate Aave native-supply wallet errors into human-readable messages
|
|
45
|
+
- 98b196e: fix(connect): make the post-checkout "Add to wallet" chip readable in dark mode by deriving its background from the `modalBackground` theme token via `color-mix()` (with an opaque fallback) instead of a hardcoded translucent white.
|
|
46
|
+
- 0f4c245: fix: adjust lightning qrcode scannability
|
|
47
|
+
- 30a626e: Freeze the amount input while an Aave native-supply transaction is confirming
|
|
48
|
+
- e42f6b0: feat: add min limit for btc lightning path on input screen
|
|
49
|
+
- b10dd58: test(connect): test useMinDeposit
|
|
50
|
+
- dd1c42b: chore: sort named import members via oxlint sort-imports
|
|
51
|
+
- 453c797: test(connect): test WithdrawAmountInput
|
|
52
|
+
- Updated dependencies [8baaa78]
|
|
53
|
+
- @funkit/fun-relay@2.8.0
|
|
54
|
+
|
|
3
55
|
## 9.17.0
|
|
4
56
|
|
|
5
57
|
### Minor Changes
|
|
@@ -120,6 +120,31 @@ declare const _default: {
|
|
|
120
120
|
readonly path: "RL_TRANSFER";
|
|
121
121
|
};
|
|
122
122
|
}];
|
|
123
|
+
}, {
|
|
124
|
+
readonly routeId: "LIGHTER_USDC_SPOT";
|
|
125
|
+
readonly rules: readonly [{
|
|
126
|
+
readonly when: {
|
|
127
|
+
readonly chainId: "1";
|
|
128
|
+
readonly tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
129
|
+
};
|
|
130
|
+
readonly use: {
|
|
131
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
132
|
+
readonly badge: "NATIVE";
|
|
133
|
+
};
|
|
134
|
+
}, {
|
|
135
|
+
readonly when: {
|
|
136
|
+
readonly chainId: "1";
|
|
137
|
+
readonly tokenAddress: "*";
|
|
138
|
+
};
|
|
139
|
+
readonly use: {
|
|
140
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
141
|
+
};
|
|
142
|
+
}, {
|
|
143
|
+
readonly when: "*";
|
|
144
|
+
readonly use: {
|
|
145
|
+
readonly path: "RL_TRANSFER";
|
|
146
|
+
};
|
|
147
|
+
}];
|
|
123
148
|
}, {
|
|
124
149
|
readonly routeId: "LIGHTER_USDC_PERPS_NEW_USER";
|
|
125
150
|
readonly rules: readonly [{
|
|
@@ -137,6 +162,23 @@ declare const _default: {
|
|
|
137
162
|
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
138
163
|
};
|
|
139
164
|
}];
|
|
165
|
+
}, {
|
|
166
|
+
readonly routeId: "LIGHTER_USDC_SPOT_NEW_USER";
|
|
167
|
+
readonly rules: readonly [{
|
|
168
|
+
readonly when: {
|
|
169
|
+
readonly chainId: "1";
|
|
170
|
+
readonly tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
171
|
+
};
|
|
172
|
+
readonly use: {
|
|
173
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
174
|
+
readonly badge: "NATIVE";
|
|
175
|
+
};
|
|
176
|
+
}, {
|
|
177
|
+
readonly when: "*";
|
|
178
|
+
readonly use: {
|
|
179
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
180
|
+
};
|
|
181
|
+
}];
|
|
140
182
|
}, {
|
|
141
183
|
readonly routeId: "LIGHTER_ETH_SPOT_NEW_USER";
|
|
142
184
|
readonly rules: readonly [{
|
|
@@ -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",
|