@funkit/connect 10.2.0 → 10.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 +40 -0
- package/dist/{chunk-36KVHK22.js → chunk-L67HP4HQ.js} +1 -1
- package/dist/clients/{chunk-ZAXSDMDU.js → chunk-3STGJU6Z.js} +2 -2
- package/dist/clients/chunk-HOORQPSY.js +4660 -0
- package/dist/clients/{chunk-E3USJY7A.js → chunk-RWCJ4XGX.js} +5 -3
- package/dist/clients/fanatics.js +1 -1
- package/dist/clients/lighter.css +12 -1
- package/dist/clients/lighter.js +2 -3
- package/dist/clients/mallard.js +1 -1
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +12 -1
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +3 -3
- package/dist/clients/polymarket/index.css +12 -1
- package/dist/clients/polymarket/index.js +3 -3
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/hooks.d.ts +1 -2
- package/dist/components/FunInput/FunInput.d.ts +2 -0
- package/dist/components/FunkitTrans.d.ts +14 -0
- package/dist/hooks/useFunkitTranslation.d.ts +3 -1
- package/dist/hooks/usePaymentMethodTabs.d.ts +4 -1
- package/dist/hooks/useSkipSwappedPreload.d.ts +7 -0
- package/dist/hooks/useSwappedPreload.d.ts +10 -1
- package/dist/index.css +12 -1
- package/dist/index.js +15525 -15538
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.css.d.ts +1 -0
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +6 -2
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +26 -0
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalComplete.d.ts +15 -1
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.d.ts +12 -1
- package/dist/modals/CheckoutModal/isWithdrawalStep.d.ts +24 -0
- package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +15 -1
- package/dist/modals/WithdrawalModal/WithdrawalMethodSelect.d.ts +5 -1
- package/dist/providers/FunkitCheckoutContext/index.d.ts +15 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +8 -0
- package/dist/providers/FunkitI18nProvider.d.ts +6 -2
- package/dist/themes/darkTheme.js +1 -1
- package/dist/wallets/walletConnectors/index.js +19 -19
- package/package.json +5 -4
- package/dist/clients/chunk-STLOQEN7.js +0 -11
- package/dist/components/FunInput/FunTextAreaInput.css.d.ts +0 -1
- package/dist/components/FunInput/FunTextAreaInput.d.ts +0 -3
- package/dist/components/Icons/AcornsIcon.d.ts +0 -4
- package/dist/components/Icons/AlpacaIcon.d.ts +0 -4
- package/dist/components/Icons/BitFlyerIcon.d.ts +0 -4
- package/dist/components/Icons/BitfinexIcon.d.ts +0 -4
- package/dist/components/Icons/BitstampIcon.d.ts +0 -4
- package/dist/components/Icons/BrokerageIcon.d.ts +0 -4
- package/dist/components/Icons/CexloIcon.d.ts +0 -4
- package/dist/components/Icons/CoinlistIcon.d.ts +0 -4
- package/dist/components/Icons/CryptoComIcon.d.ts +0 -4
- package/dist/components/Icons/CryptoIcon.d.ts +0 -2
- package/dist/components/Icons/DeviceConfirmationIcon.d.ts +0 -2
- package/dist/components/Icons/EmailConfirmationIcon.d.ts +0 -2
- package/dist/components/Icons/EtoroIcon.d.ts +0 -4
- package/dist/components/Icons/EtradeIcon.d.ts +0 -4
- package/dist/components/Icons/HuobiIcon.d.ts +0 -4
- package/dist/components/Icons/KucoinIcon.d.ts +0 -4
- package/dist/components/Icons/LightningBoltIcon.d.ts +0 -4
- package/dist/components/Icons/LockIcon.d.ts +0 -4
- package/dist/components/Icons/MailIcon.d.ts +0 -6
- package/dist/components/Icons/New/LinkExternalIcon.d.ts +0 -4
- package/dist/components/Icons/New/MessageIcon.d.ts +0 -2
- package/dist/components/Icons/OkcoinIcon.d.ts +0 -4
- package/dist/components/Icons/OkxIcon.d.ts +0 -4
- package/dist/components/Icons/PublicIcon.d.ts +0 -4
- package/dist/components/Icons/RobinhoodIcon.d.ts +0 -4
- package/dist/components/Icons/SocialMediaIcons.d.ts +0 -13
- package/dist/components/Icons/SocialsIcon.d.ts +0 -2
- package/dist/components/Icons/StashIcon.d.ts +0 -4
- package/dist/components/Icons/WeBullIcon.d.ts +0 -4
- package/dist/components/Icons/WhitelistIcon.d.ts +0 -2
- package/dist/hooks/useIsUsUser.d.ts +0 -1
- package/dist/utils/privyHelper.d.ts +0 -3
- package/dist/utils/safeJSON.d.ts +0 -5
- package/dist/utils/swappedRouteOverride.d.ts +0 -27
- package/dist/utils/tokenTransfer/disabledList.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 10.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6d44b6d: Fix react-i18next context takeover: FunkitProvider no longer wraps host children in an I18nextProvider; funkit components bind funkit's private i18n instance explicitly.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 3a15d08: fix(connect): protect checkout amount input font-size from host page overrides
|
|
12
|
+
- 4363863: fix(connect): allow custom dark inputBackground
|
|
13
|
+
- 4363863: refactor(connect): read cashier withdrawComplete config from seeded modal state
|
|
14
|
+
- 4363863: fix(connect): harden Swapped preload against tab-switch race
|
|
15
|
+
- 4363863: feat(connect): wire cashier withdraw tab to enter-amount step
|
|
16
|
+
- 4363863: fix(connect): complete cashier withdrawal flow
|
|
17
|
+
- 4363863: feat(connect): fill cashier withdrawal enter-amount step
|
|
18
|
+
- 4363863: feat(connect): cashier withdrawal convert/revert lifecycle
|
|
19
|
+
- 0d78595: Remove dead code: unused internal hooks/utils (`useIsUsUser`, `privyHelper`, `safeJSON`, `tokenTransfer/disabledList` shim), the unused `FunTextAreaInput` component, and 30 story-only icon components. Internal-only removals — nothing was reachable through the package's public exports.
|
|
20
|
+
- 659bf2d: Extract the cashier withdrawal-step condition into a pure isWithdrawalStep helper
|
|
21
|
+
- 4363863: feat(connect): support cashier flow without swapped withdrawals
|
|
22
|
+
- 8e03a99: Remove 40 unused translation keys from all locale files. Every removed key was verified to have zero references across the entire monorepo (not just connect src). The 21 other keys flagged by `find-unused-i18n-keys.mjs` are false positives with verified usages (ternary-selected keys, usages in `@funkit/connect-core`, and typed `labelKey` props) and were kept.
|
|
23
|
+
- 4363863: feat(connect): hide fops list sections in cashier withdraw tab
|
|
24
|
+
- 4363863: feat(connect): update cashier tab wordings
|
|
25
|
+
|
|
26
|
+
## 10.2.1
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- 4f0f4a0: Consolidate the Swapped withdrawal source-override helper: import `findSwappedSourceOverride` / `SwappedSourceRouteOverride` from `@funkit/connect-core` instead of the web-local `utils/swappedRouteOverride`, which is removed (single source of truth shared with connect-rn).
|
|
31
|
+
- 99ca98d: Fix a concurrent-render livelock that stalled host-app navigation for guest
|
|
32
|
+
(disconnected) users. Two idle-mounted components (`useCheckoutDirectExecution` and
|
|
33
|
+
`ConnectModal`) subscribed to wagmi `account.status`, which flips repeatedly during
|
|
34
|
+
`reconnect()` under `ssr: false` and aborted in-flight React route transitions. Both
|
|
35
|
+
now read account state lazily at call time instead of subscribing.
|
|
36
|
+
- 89e29b3: Tag the Statsig user with `custom.sdkType` (`react-native` / `web`) so a config shared across SDKs can be scoped per-SDK via a per-customer targeting rule.
|
|
37
|
+
- 39d8ddb: Add unit test coverage for withdrawal config type guards, source-token balance guard, and amount-conversion edge cases. Test-only; no runtime change.
|
|
38
|
+
- Updated dependencies [b2abbb5]
|
|
39
|
+
- Updated dependencies [b8a3f1e]
|
|
40
|
+
- Updated dependencies [4f0f4a0]
|
|
41
|
+
- @funkit/connect-core@2.0.0
|
|
42
|
+
|
|
3
43
|
## 10.2.0
|
|
4
44
|
|
|
5
45
|
### Minor Changes
|
|
@@ -85,7 +85,7 @@ var darkTheme = ({
|
|
|
85
85
|
alwaysVisibleLabelBackgroundHover: "transparent",
|
|
86
86
|
// input
|
|
87
87
|
inputLabel: customColors?.primaryText ?? "#FFF",
|
|
88
|
-
inputBackground: "#000000",
|
|
88
|
+
inputBackground: customColors?.inputBackground ?? "#000000",
|
|
89
89
|
inputBackgroundHover: customColors?.offBackground ?? "#1F1F1F",
|
|
90
90
|
inputBorderBase: "#333333",
|
|
91
91
|
inputBorderHover: "#525252",
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
FunInput,
|
|
4
4
|
FunSkeletonBlock,
|
|
5
5
|
TooltipAnchorRefContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RWCJ4XGX.js";
|
|
7
7
|
import {
|
|
8
8
|
Box,
|
|
9
9
|
Text,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-LUHEVXPD.js";
|
|
12
12
|
import {
|
|
13
13
|
useFunkitTranslation
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HOORQPSY.js";
|
|
15
15
|
import {
|
|
16
16
|
POLYMARKET_PERPS_ROUTING_ID,
|
|
17
17
|
POLYMARKET_PREDICTIONS_ROUTING_ID
|