@funkit/connect 13.1.1 → 13.3.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 +94 -0
- package/dist/{chunk-53FF4ZHH.js → chunk-SJ7E3DKC.js} +6 -0
- package/dist/{chunk-2RND3WWH.js → chunk-V4VFNIG4.js} +6 -0
- package/dist/clients/aave.d.ts +1 -1
- package/dist/clients/{chunk-44LV4GCX.js → chunk-2INCUCQQ.js} +1 -0
- package/dist/clients/chunk-6JL6PF5P.js +22 -0
- package/dist/clients/chunk-747THMHY.js +185 -0
- package/dist/clients/{chunk-Q4JGDB4L.js → chunk-BMU5EYUJ.js} +8 -24
- package/dist/clients/{chunk-T6YNXIOS.js → chunk-HBW7AZUH.js} +7 -5
- package/dist/clients/{chunk-ZBBYOJWK.js → chunk-KDZFZETH.js} +176 -0
- package/dist/clients/{chunk-D6EY2WW4.js → chunk-PVBHWD47.js} +1 -1
- package/dist/clients/chunk-RNTQ7KEL.js +76 -0
- package/dist/clients/{chunk-ZEXIDBIZ.js → chunk-RTHDOT5K.js} +1 -1
- package/dist/clients/{chunk-AJGDTTRJ.js → chunk-SKYQYPX5.js} +58 -2
- package/dist/clients/{chunk-NNMZMHO6.js → chunk-Z6FHIDTD.js} +5 -5
- package/dist/clients/fanatics.css +3136 -2947
- package/dist/clients/fanatics.js +1 -1
- package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +12 -77
- package/dist/clients/internal/nado/withdrawalStatus.css +18233 -0
- package/dist/clients/internal/nado/withdrawalStatus.js +218 -20
- package/dist/clients/lighter.css +3519 -2947
- package/dist/clients/lighter.js +5 -7
- package/dist/clients/mallard.d.ts +24 -3
- package/dist/clients/mallard.js +7 -3
- package/dist/clients/nado.js +4 -4
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +4 -3
- package/dist/clients/polymarket/index.js +9 -7
- package/dist/clients/polymarket/polymarket.js +6 -4
- package/dist/components/Box/Box.d.ts +18 -18
- package/dist/components/Dropdown/BaseDropdownItem.d.ts +1 -1
- package/dist/components/FunAsset/FunAssetItem.d.ts +3 -1
- package/dist/components/FunBadge/FunBadge.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -3
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -3
- package/dist/components/ModalErrorState/ModalErrorState.d.ts +2 -3
- package/dist/consts/customers.d.ts +1 -1
- package/dist/consts/polymarket.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +24 -18
- package/dist/domains/clientMetadata.d.ts +2 -1
- package/dist/domains/convert/hostTimeout.d.ts +1 -1
- package/dist/domains/destinationAssetBalance.d.ts +1 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -3
- package/dist/hooks/statsig/index.d.ts +1 -0
- package/dist/hooks/track/analytics/mappers.d.ts +11 -1
- package/dist/hooks/track/analytics/swappedErrorCode.d.ts +1 -0
- package/dist/hooks/track/analytics/useTrackErrorShown.d.ts +2 -3
- package/dist/hooks/useConvertBalances.d.ts +6 -1
- package/dist/hooks/useFunkitMaxCheckoutUsdInfo.d.ts +3 -3
- package/dist/hooks/useHostDepositSettlement.d.ts +12 -0
- package/dist/hooks/useModalStateValueWithProp.d.ts +1 -1
- package/dist/hooks/useRefreshBalancesOnDeposit.d.ts +20 -0
- package/dist/index.css +3519 -2947
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6179 -3864
- package/dist/interfaces/solanaWallet.d.ts +2 -2
- package/dist/modals/CheckoutModal/FiatV2/FiatV2Step.d.ts +19 -0
- package/dist/modals/CheckoutModal/FiatV2/fiatV2DepositInputs.d.ts +38 -0
- package/dist/modals/CheckoutModal/FiatV2/fiatV2PaymentSelectionEffects.d.ts +26 -0
- package/dist/modals/CheckoutModal/FiatV2/useFiatV2DepositInputs.d.ts +6 -0
- package/dist/modals/CheckoutModal/FiatV2/useFiatV2PaymentSelectionHost.d.ts +22 -0
- package/dist/modals/CheckoutModal/FiatV2/useFiatV2Text.d.ts +7 -0
- package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +3 -1
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +3 -3
- package/dist/modals/CheckoutModal/SourceChange/AddCardItem.d.ts +9 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +5 -0
- package/dist/modals/CheckoutModal/SourceChange/fiatV2Reroute.d.ts +24 -0
- package/dist/modals/CheckoutModal/SourceChange/useAddCardRow.d.ts +13 -0
- package/dist/modals/CheckoutModal/SourceChange/useFiatV2Entry.d.ts +21 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +3 -0
- package/dist/modals/PolymarketPerpsTransfer/TransferActionButton.d.ts +5 -5
- package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +2 -3
- package/dist/providers/FunSessionContext.d.ts +20 -0
- package/dist/providers/FunkitCheckoutContext/index.d.ts +7 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +30 -0
- package/dist/providers/FunkitProvider.d.ts +7 -0
- package/dist/providers/FunkitQuoteContext.track.d.ts +2 -3
- package/dist/providers/FunkitThemeProvider.d.ts +9 -0
- package/dist/shadow-css.js +1 -1
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/checkout.d.ts +2 -2
- package/dist/utils/localStorageFunSessionStorage.d.ts +9 -0
- package/dist/v2/components/PrimaryButton.css.d.ts +5 -0
- package/dist/v2/components/PrimaryButton.d.ts +16 -0
- package/dist/v2/components/Sheet.css.d.ts +13 -0
- package/dist/v2/components/Sheet.d.ts +23 -0
- package/dist/v2/components/Spinner.css.d.ts +2 -0
- package/dist/v2/components/Spinner.d.ts +6 -0
- package/dist/v2/flows/fiat/FiatDepositGate.d.ts +20 -0
- package/dist/v2/flows/fiat/FiatScreenPicker.d.ts +37 -0
- package/dist/v2/flows/funLogin/FunLoginScreenPicker.d.ts +30 -0
- package/dist/v2/screens/amount/AmountDisplay.css.d.ts +5 -0
- package/dist/v2/screens/amount/AmountDisplay.d.ts +15 -0
- package/dist/v2/screens/amount/AmountScreen.css.d.ts +2 -0
- package/dist/v2/screens/amount/AmountScreen.d.ts +37 -0
- package/dist/v2/screens/amount/PresetButton.css.d.ts +1 -0
- package/dist/v2/screens/amount/PresetButton.d.ts +9 -0
- package/dist/v2/screens/amount/fittedText/useFittedText.d.ts +19 -0
- package/dist/v2/screens/amount/fittedText/useIsomorphicEffect.d.ts +2 -0
- package/dist/v2/screens/amount/fittedText/useTextMeasurer.d.ts +3 -0
- package/dist/v2/screens/amount/typedAmount/amountText.d.ts +37 -0
- package/dist/v2/screens/amount/typedAmount/attachInputNormalization.d.ts +1 -0
- package/dist/v2/screens/fiat/FiatPlaceholderScreen.d.ts +9 -0
- package/dist/v2/screens/funLogin/FunLoginCodeScreen.d.ts +35 -0
- package/dist/v2/screens/funLogin/FunLoginEmailScreen.d.ts +26 -0
- package/dist/v2/screens/funLogin/FunLoginScreen.css.d.ts +20 -0
- package/dist/v2/screens/funLogin/looksLikeEmail.d.ts +5 -0
- package/dist/v2/theme/colors.d.ts +28 -0
- package/dist/v2/theme/fonts.d.ts +9 -0
- package/dist/v2/theme/radii.d.ts +6 -0
- package/dist/wallets/walletConnectors/index.js +39 -39
- package/package.json +4 -4
- package/dist/clients/chunk-JXTKKLVA.js +0 -185
- package/dist/clients/chunk-PZSKO3BJ.js +0 -60
- package/dist/components/FunPayments/icons/coinbase.d.ts +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,99 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 13.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9638535: Add `funSessionStorage` to `FunkitProvider`, which sets where a buyer's Fun login is kept between visits; it defaults to `localStorage`.
|
|
8
|
+
- b8920f7: Add `signOut` to `useFunkitCheckout`, which ends the buyer's Fun email login on the server and in storage.
|
|
9
|
+
- a778bfa: Deposit configs can set a check that accepts or rejects a delivered deposit before it shows as successful.
|
|
10
|
+
- c05a656: Expose `nativeBadgeBackground`, `nativeBadgeBorder`, and `nativeBadgeText` theme color tokens for styling the asset list's Native badge.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 8d1c3ee: Add the Web V2 deposit's strings in every language; nothing renders them yet.
|
|
15
|
+
- c5af9d5: Behind the `enable-web-fiat-deposit-flow` gate, the Apple Pay row opens the Web V2 deposit instead of Swapped's; nothing changes with the gate off.
|
|
16
|
+
- 9638535: Add the internal Web V2 Fun login flow; nothing renders it yet.
|
|
17
|
+
- c7d6e3f: Add the internal Web V2 step that asks for Fun login at Continue; nothing renders it yet.
|
|
18
|
+
- 9638535: Add internal Web V2 Fun login screens; nothing renders them yet.
|
|
19
|
+
- 220bf18: Document Fun login on web and the Web V2 deposit mount; no code changes.
|
|
20
|
+
- a9fc1d2: Removed an unused internal icon file; nothing visible changes.
|
|
21
|
+
- 9babbed: Internal groundwork with no consumer-facing change.
|
|
22
|
+
- b69bb2e: Add the Web V2 deposit amount screen (not yet reachable).
|
|
23
|
+
- 9638535: Internal: the Web V2 deposit amount screen can be driven by the fiat deposit session; nothing mounts it yet.
|
|
24
|
+
- d88b76b: Internal groundwork with no consumer-facing change.
|
|
25
|
+
- 7004d6d: Internal groundwork with no consumer-facing change.
|
|
26
|
+
- e65bd58: Internal groundwork with no consumer-facing change.
|
|
27
|
+
- Updated dependencies [4fa9e2e]
|
|
28
|
+
- Updated dependencies [5b9c0c2]
|
|
29
|
+
- Updated dependencies [18afaf4]
|
|
30
|
+
- Updated dependencies [5b9c0c2]
|
|
31
|
+
- Updated dependencies [dcc0ccb]
|
|
32
|
+
- Updated dependencies [18afaf4]
|
|
33
|
+
- Updated dependencies [9638535]
|
|
34
|
+
- Updated dependencies [42710ef]
|
|
35
|
+
- Updated dependencies [9638535]
|
|
36
|
+
- Updated dependencies [6b2adb0]
|
|
37
|
+
- Updated dependencies [c7d6e3f]
|
|
38
|
+
- Updated dependencies [9638535]
|
|
39
|
+
- Updated dependencies [9638535]
|
|
40
|
+
- Updated dependencies [9638535]
|
|
41
|
+
- Updated dependencies [220bf18]
|
|
42
|
+
- Updated dependencies [24029ac]
|
|
43
|
+
- Updated dependencies [93ccb16]
|
|
44
|
+
- Updated dependencies [32f3c13]
|
|
45
|
+
- Updated dependencies [9638535]
|
|
46
|
+
- Updated dependencies [9638535]
|
|
47
|
+
- @funkit/connect-core@17.2.0
|
|
48
|
+
- @funkit/api-base@11.0.0
|
|
49
|
+
- @funkit/utils@5.1.3
|
|
50
|
+
|
|
51
|
+
## 13.2.0
|
|
52
|
+
|
|
53
|
+
### Minor Changes
|
|
54
|
+
|
|
55
|
+
- 23488c3: Mallard deposit configs can set a maximum deposit amount.
|
|
56
|
+
- 7415bd7: Add a gated "Add a card" row to the checkout picker that opens the new web fiat deposit flow.
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- e6d36b4: Use American spelling in comments, docs and test titles; no behavior change
|
|
61
|
+
- a16d619: Refresh Convert and deposit destination balances after a deposit or conversion completes.
|
|
62
|
+
- 92087b8: Convert no longer sends a quote request with a stale amount.
|
|
63
|
+
- 23488c3: When a limit changes the starting amount, the token amount now follows it instead of keeping the configured target amount.
|
|
64
|
+
- 467566c: The gated FiatV2 deposit step now opens on card entry.
|
|
65
|
+
- 95bd504: Categorize recognized Swapped payment failures with stable analytics error codes.
|
|
66
|
+
- Updated dependencies [d9e94a2]
|
|
67
|
+
- Updated dependencies [cc02a32]
|
|
68
|
+
- Updated dependencies [e6d36b4]
|
|
69
|
+
- Updated dependencies [23488c3]
|
|
70
|
+
- Updated dependencies [237a4fd]
|
|
71
|
+
- Updated dependencies [c98a9dd]
|
|
72
|
+
- Updated dependencies [d18f3b6]
|
|
73
|
+
- Updated dependencies [185d42d]
|
|
74
|
+
- Updated dependencies [b04bda5]
|
|
75
|
+
- Updated dependencies [42aefcc]
|
|
76
|
+
- Updated dependencies [4f86e84]
|
|
77
|
+
- Updated dependencies [93d8e79]
|
|
78
|
+
- Updated dependencies [1dbd787]
|
|
79
|
+
- Updated dependencies [fcae59b]
|
|
80
|
+
- Updated dependencies [edfce1a]
|
|
81
|
+
- Updated dependencies [c3381da]
|
|
82
|
+
- Updated dependencies [5ce3f30]
|
|
83
|
+
- Updated dependencies [abec6e3]
|
|
84
|
+
- Updated dependencies [dbe5758]
|
|
85
|
+
- Updated dependencies [a8dd627]
|
|
86
|
+
- Updated dependencies [f19b360]
|
|
87
|
+
- Updated dependencies [85ca13d]
|
|
88
|
+
- Updated dependencies [2adb0f2]
|
|
89
|
+
- Updated dependencies [f874e72]
|
|
90
|
+
- Updated dependencies [3bf6603]
|
|
91
|
+
- Updated dependencies [af75d9a]
|
|
92
|
+
- Updated dependencies [af75d9a]
|
|
93
|
+
- Updated dependencies [6d54660]
|
|
94
|
+
- @funkit/connect-core@17.1.0
|
|
95
|
+
- @funkit/api-base@10.5.0
|
|
96
|
+
|
|
3
97
|
## 13.1.1
|
|
4
98
|
|
|
5
99
|
### Patch Changes
|
|
@@ -189,6 +189,12 @@ var darkTheme = ({
|
|
|
189
189
|
// 100% buttonTextPrimary
|
|
190
190
|
// Override colors
|
|
191
191
|
...customColors || {},
|
|
192
|
+
// Native badge defaults fall back to the generic badge tokens (offBackground,
|
|
193
|
+
// generalBorder, secondaryText) so existing themes render identically unless
|
|
194
|
+
// they explicitly override nativeBadge*.
|
|
195
|
+
nativeBadgeBackground: customColors?.nativeBadgeBackground ?? customColors?.offBackground ?? "#1F1F1F",
|
|
196
|
+
nativeBadgeBorder: customColors?.nativeBadgeBorder ?? customColors?.generalBorder ?? "#292929",
|
|
197
|
+
nativeBadgeText: customColors?.nativeBadgeText ?? customColors?.secondaryText ?? "#8C8C8C",
|
|
192
198
|
// option Boxes
|
|
193
199
|
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
|
|
194
200
|
// keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
|
|
@@ -189,6 +189,12 @@ var lightTheme = ({
|
|
|
189
189
|
// 100% buttonTextPrimary
|
|
190
190
|
// Override colors
|
|
191
191
|
...customColors || {},
|
|
192
|
+
// Native badge defaults fall back to the generic badge tokens (offBackground,
|
|
193
|
+
// generalBorder, secondaryText) so existing themes render identically unless
|
|
194
|
+
// they explicitly override nativeBadge*.
|
|
195
|
+
nativeBadgeBackground: customColors?.nativeBadgeBackground ?? customColors?.offBackground ?? "#F7F7F7",
|
|
196
|
+
nativeBadgeBorder: customColors?.nativeBadgeBorder ?? customColors?.generalBorder ?? "#F7F7F7",
|
|
197
|
+
nativeBadgeText: customColors?.nativeBadgeText ?? customColors?.secondaryText ?? "#737373",
|
|
192
198
|
// option Boxes
|
|
193
199
|
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
194
200
|
// keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
|
package/dist/clients/aave.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { type Address } from 'viem';
|
|
17
17
|
import type { FunkitCheckoutActionParams, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext/types';
|
|
18
|
-
/** Action type
|
|
18
|
+
/** Action type signaling an Aave v3 Core supply, executed server-side after a UDA deposit lands. */
|
|
19
19
|
export declare const AAVE_SUPPLY_ACTION_TYPE = "AAVE_SUPPLY";
|
|
20
20
|
/** Returns true if Fun has a VaultDepositor deployment on `chainId` ready to route Aave supplies. */
|
|
21
21
|
export declare function isAaveSupplySupported(chainId: number): boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/consts/polymarket.ts
|
|
4
|
+
import { getAddress } from "viem";
|
|
5
|
+
var POLYMARKET_PUSD_ADDRESS = getAddress(
|
|
6
|
+
"0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"
|
|
7
|
+
);
|
|
8
|
+
var POLYMARKET_PREDICTIONS_ROUTING_ID = "POLYMARKET_PREDICTIONS";
|
|
9
|
+
var POLYMARKET_PERPS_ROUTING_ID = "POLYMARKET_PERPS";
|
|
10
|
+
var POLYGON_USDCE = "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174";
|
|
11
|
+
var PUSD_TOKEN = {
|
|
12
|
+
address: POLYMARKET_PUSD_ADDRESS,
|
|
13
|
+
symbol: "pUSD",
|
|
14
|
+
iconSrc: "https://sdk-cdn.fun.xyz/images/pusd.svg"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
POLYMARKET_PREDICTIONS_ROUTING_ID,
|
|
19
|
+
POLYMARKET_PERPS_ROUTING_ID,
|
|
20
|
+
POLYGON_USDCE,
|
|
21
|
+
PUSD_TOKEN
|
|
22
|
+
};
|