@funkit/connect 8.2.1-next.0 → 8.2.1-next.2

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 (28) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/{chunk-MGQZMUZ2.js → chunk-BP7VOYBS.js} +9 -0
  3. package/dist/{chunk-OTMBU2BL.js → chunk-KKGSXLMH.js} +5 -1
  4. package/dist/{chunk-FBCU3TQA.js → chunk-MYPFORR2.js} +5 -1
  5. package/dist/clients/fanatics.css +3862 -3481
  6. package/dist/clients/fanatics.js +247 -3
  7. package/dist/components/AsyncImage/useAsyncImage.d.ts +2 -0
  8. package/dist/components/Box/Box.d.ts +28 -28
  9. package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryBottomBar.d.ts +10 -0
  10. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  11. package/dist/components/TransactionStatus/AnimatedSpinner/AnimatedSpinner.d.ts +10 -0
  12. package/dist/components/TransactionStatus/AnimatedSpinner/AnimatedSpinnerLoading.d.ts +6 -0
  13. package/dist/css/sprinkles.css.d.ts +52 -28
  14. package/dist/hooks/useCheckoutTimeEstimate.d.ts +1 -1
  15. package/dist/index.css +3862 -3481
  16. package/dist/index.js +2578 -2362
  17. package/dist/modals/CheckoutModal/{SelectAsset.d.ts → SelectAsset/SelectAsset.d.ts} +3 -3
  18. package/dist/modals/CheckoutModal/SelectAsset/SelectAssetInfoSection.d.ts +12 -0
  19. package/dist/modals/CheckoutModal/SelectAsset/SelectAssetList.d.ts +24 -0
  20. package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -1
  21. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -1
  22. package/dist/providers/FunkitConfigContext.d.ts +8 -0
  23. package/dist/providers/FunkitThemeProvider.d.ts +36 -0
  24. package/dist/themes/baseTheme.js +1 -1
  25. package/dist/themes/darkTheme.js +2 -2
  26. package/dist/themes/lightTheme.js +2 -2
  27. package/dist/wallets/walletConnectors/index.js +26 -26
  28. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { TransferTokenDefault } from '../../hooks/useTokenChain';
3
- import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '../../domains/paymentMethods';
4
- import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
2
+ import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '../../../domains/paymentMethods';
3
+ import type { TransferTokenDefault } from '../../../hooks/useTokenChain';
4
+ import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
5
5
  export type SelectAssetState = CheckoutModalCommonState & {
6
6
  paymentMethodInfo: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
7
7
  };
@@ -0,0 +1,12 @@
1
+ import { type FC } from 'react';
2
+ import type { PaymentMethodInfo } from '../../../domains/paymentMethods';
3
+ import type { TransferTokenDefault } from '../../../hooks/useTokenChain';
4
+ interface SelectAssetInfoSectionProps {
5
+ totalBalance: number;
6
+ paymentMethodInfo: PaymentMethodInfo;
7
+ onTokenTransfer: (transferToken: TransferTokenDefault) => void;
8
+ onSelectSource: () => void;
9
+ isSourceNavWidgetEnabled: boolean;
10
+ }
11
+ export declare const SelectAssetInfoSection: FC<SelectAssetInfoSectionProps>;
12
+ export {};
@@ -0,0 +1,24 @@
1
+ import { type FC } from 'react';
2
+ import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
3
+ import type { AssetHoldingsItem } from '../../../domains/wallet';
4
+ interface AssetOption {
5
+ asset: AssetHoldingsItem;
6
+ badgeText: string;
7
+ isDisabled: boolean;
8
+ isUserSelected: boolean;
9
+ priority: number;
10
+ minUsdRequired?: number;
11
+ }
12
+ interface SelectAssetListProps {
13
+ isLoading: boolean;
14
+ assetOptions: AssetOption[];
15
+ selectedChainTokenSymbol: string | undefined;
16
+ paymentMethodInfo: PaymentMethodInfo;
17
+ navigateOnAssetClick: boolean;
18
+ onBalanceTopUpSwitch?: () => void;
19
+ onClose?: () => void;
20
+ onAssetSelect: (chainSymbolKey: string) => void;
21
+ onContinueWithToken: () => void;
22
+ }
23
+ export declare const SelectAssetList: FC<SelectAssetListProps>;
24
+ export {};
@@ -19,7 +19,7 @@ import { type LoadingAccountNext, type LoadingAccountState } from './LoadingAcco
19
19
  import { type MeldCurrencySelectNext, type MeldCurrencySelectState } from './MeldCurrencySelect/MeldCurrencySelect';
20
20
  import { type MeldQuotesNext, type MeldQuotesState } from './MeldQuotes/MeldQuotes';
21
21
  import { type MeldRedirectNext, type MeldRedirectState } from './MeldRedirect/MeldRedirect';
22
- import { type SelectAssetNext, type SelectAssetState } from './SelectAsset';
22
+ import { type SelectAssetNext, type SelectAssetState } from './SelectAsset/SelectAsset';
23
23
  import { type SourceChangeNext, type SourceChangeState } from './SourceChange/SourceChange';
24
24
  import { type TransferTokenNext, type TransferTokenState } from './TransferToken/TransferToken';
25
25
  import { type FiatAccountDetailNext, type FiatAccountDetailState } from './VirtualFiatAccount/FiatAccountDetail';
@@ -1,2 +1,2 @@
1
1
  export declare const baseStyles: string;
2
- export declare const homeCheckoutDisplayRowStyle: Record<"defaultBorder" | "defaultBackground" | "hoverBackground", string>;
2
+ export declare const homeCheckoutDisplayRowStyle: Record<"hoverBackground" | "defaultBorder" | "defaultBackground", string>;
@@ -119,11 +119,19 @@ export interface FunkitUiCustomizationsConfig {
119
119
  showTokenAmount?: boolean;
120
120
  /** Instead of showing the dollar value centered, show it left-aligned with "Deposit" label - defaults to false */
121
121
  showLeftAlignedDollarValueWithLabel?: boolean;
122
+ /** Whether to show "Instant" instead of "< 1 min" for time estimates under 1 minute - defaults to false */
123
+ showInstantTimeEstimate?: boolean;
122
124
  /**
123
125
  * Config for "Selected Route" row. When defined, the row is shown.
124
126
  * Omit to hide the selected route row (default).
125
127
  */
126
128
  selectedRouteConfig?: FunkitUiSelectedRouteConfig;
129
+ /**
130
+ * How to indicate the current step during transaction progress.
131
+ * - "spinner": show the animated spinner (default)
132
+ * - "textual": show a textual "1 of 2" step indicator instead
133
+ */
134
+ stepIndicatorType?: 'spinner' | 'textual';
127
135
  };
128
136
  inputAmountScreen?: {
129
137
  /** Whether to allow entering an amount of tokens, rather than only USD - defaults to true */
@@ -47,6 +47,10 @@ export declare const useActiveTheme: () => {
47
47
  heavyStroke: string;
48
48
  strokeColor: string;
49
49
  modalTopbarIcon: string;
50
+ modalTopbarIconBackground: string;
51
+ modalTopbarIconBackgroundHover: string;
52
+ modalTopbarIconBackgroundPressed: string;
53
+ modalTopbarIconStroke: string;
50
54
  primaryText: string;
51
55
  secondaryText: string;
52
56
  tertiaryText: string;
@@ -139,13 +143,21 @@ export declare const useActiveTheme: () => {
139
143
  dimensions: {
140
144
  connectExchangeIconSize: string;
141
145
  dollarValueSkeletonHeight: string;
146
+ dollarValueSkeletonWidth: string;
142
147
  inputAmountQuickOptionButtonHeight: string;
143
148
  inputAmountMinHeight: string;
144
149
  modalBottomBarButtonHeight: string;
145
150
  modalTopBarHeight: string;
151
+ paymentAmountSkeletonBlockHeight: string;
152
+ paymentAmountSkeletonBlockWidth: string;
153
+ paymentAmountSkeletonCircleSize: string;
146
154
  selectAssetItemIconSize: string;
155
+ txBreakdownSkeletonWidth: string;
156
+ txSummaryLineSkeletonHeight: string;
157
+ txSummaryLineSkeletonWidth: string;
147
158
  };
148
159
  fonts: {
160
+ amountValue: string;
149
161
  body: string;
150
162
  buttonTextPrimary: string;
151
163
  buttonTextSecondary: string;
@@ -434,6 +446,10 @@ export declare const useActiveTheme: () => {
434
446
  heavyStroke: string;
435
447
  strokeColor: string;
436
448
  modalTopbarIcon: string;
449
+ modalTopbarIconBackground: string;
450
+ modalTopbarIconBackgroundHover: string;
451
+ modalTopbarIconBackgroundPressed: string;
452
+ modalTopbarIconStroke: string;
437
453
  primaryText: string;
438
454
  secondaryText: string;
439
455
  tertiaryText: string;
@@ -526,13 +542,21 @@ export declare const useActiveTheme: () => {
526
542
  dimensions: {
527
543
  connectExchangeIconSize: string;
528
544
  dollarValueSkeletonHeight: string;
545
+ dollarValueSkeletonWidth: string;
529
546
  inputAmountQuickOptionButtonHeight: string;
530
547
  inputAmountMinHeight: string;
531
548
  modalBottomBarButtonHeight: string;
532
549
  modalTopBarHeight: string;
550
+ paymentAmountSkeletonBlockHeight: string;
551
+ paymentAmountSkeletonBlockWidth: string;
552
+ paymentAmountSkeletonCircleSize: string;
533
553
  selectAssetItemIconSize: string;
554
+ txBreakdownSkeletonWidth: string;
555
+ txSummaryLineSkeletonHeight: string;
556
+ txSummaryLineSkeletonWidth: string;
534
557
  };
535
558
  fonts: {
559
+ amountValue: string;
536
560
  body: string;
537
561
  buttonTextPrimary: string;
538
562
  buttonTextSecondary: string;
@@ -819,6 +843,10 @@ export declare const useActiveTheme: () => {
819
843
  heavyStroke: string;
820
844
  strokeColor: string;
821
845
  modalTopbarIcon: string;
846
+ modalTopbarIconBackground: string;
847
+ modalTopbarIconBackgroundHover: string;
848
+ modalTopbarIconBackgroundPressed: string;
849
+ modalTopbarIconStroke: string;
822
850
  primaryText: string;
823
851
  secondaryText: string;
824
852
  tertiaryText: string;
@@ -911,13 +939,21 @@ export declare const useActiveTheme: () => {
911
939
  dimensions: {
912
940
  connectExchangeIconSize: string;
913
941
  dollarValueSkeletonHeight: string;
942
+ dollarValueSkeletonWidth: string;
914
943
  inputAmountQuickOptionButtonHeight: string;
915
944
  inputAmountMinHeight: string;
916
945
  modalBottomBarButtonHeight: string;
917
946
  modalTopBarHeight: string;
947
+ paymentAmountSkeletonBlockHeight: string;
948
+ paymentAmountSkeletonBlockWidth: string;
949
+ paymentAmountSkeletonCircleSize: string;
918
950
  selectAssetItemIconSize: string;
951
+ txBreakdownSkeletonWidth: string;
952
+ txSummaryLineSkeletonHeight: string;
953
+ txSummaryLineSkeletonWidth: string;
919
954
  };
920
955
  fonts: {
956
+ amountValue: string;
921
957
  body: string;
922
958
  buttonTextPrimary: string;
923
959
  buttonTextSecondary: string;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  baseTheme,
4
4
  systemFontStack
5
- } from "../chunk-MGQZMUZ2.js";
5
+ } from "../chunk-BP7VOYBS.js";
6
6
  export {
7
7
  baseTheme,
8
8
  systemFontStack
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  darkTheme
4
- } from "../chunk-OTMBU2BL.js";
5
- import "../chunk-MGQZMUZ2.js";
4
+ } from "../chunk-KKGSXLMH.js";
5
+ import "../chunk-BP7VOYBS.js";
6
6
  export {
7
7
  darkTheme
8
8
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  lightTheme
4
- } from "../chunk-FBCU3TQA.js";
5
- import "../chunk-MGQZMUZ2.js";
4
+ } from "../chunk-MYPFORR2.js";
5
+ import "../chunk-BP7VOYBS.js";
6
6
  export {
7
7
  lightTheme
8
8
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- zerionWallet
4
- } from "./chunk-CZYUE3AR.js";
5
2
  import {
6
3
  zealWallet
7
4
  } from "./chunk-VU2RNIQG.js";
5
+ import {
6
+ zerionWallet
7
+ } from "./chunk-CZYUE3AR.js";
8
8
  import {
9
9
  tahoWallet
10
10
  } from "./chunk-TNZJRXUQ.js";
@@ -30,29 +30,29 @@ import {
30
30
  xdefiWallet
31
31
  } from "./chunk-TMFH6GXS.js";
32
32
  import {
33
- rabbyWallet
34
- } from "./chunk-LW6S43RE.js";
33
+ phantomWallet
34
+ } from "./chunk-3IYE623P.js";
35
35
  import {
36
36
  rainbowWallet
37
37
  } from "./chunk-77UTBHGP.js";
38
38
  import {
39
39
  ramperWallet
40
40
  } from "./chunk-FCG5Q6JX.js";
41
+ import {
42
+ safeWallet
43
+ } from "./chunk-BQQQL6UD.js";
41
44
  import {
42
45
  roninWallet
43
46
  } from "./chunk-UOTQQJJD.js";
44
47
  import {
45
- safeWallet
46
- } from "./chunk-BQQQL6UD.js";
48
+ safeheronWallet
49
+ } from "./chunk-QS2XIZEH.js";
47
50
  import {
48
51
  safepalWallet
49
52
  } from "./chunk-W7Y6I22Y.js";
50
53
  import {
51
54
  subWallet
52
55
  } from "./chunk-2E4PDCEJ.js";
53
- import {
54
- safeheronWallet
55
- } from "./chunk-QS2XIZEH.js";
56
56
  import {
57
57
  metaMaskWallet
58
58
  } from "./chunk-RA7MCWF4.js";
@@ -75,8 +75,8 @@ import {
75
75
  oneKeyWallet
76
76
  } from "./chunk-35Q4HKAM.js";
77
77
  import {
78
- phantomWallet
79
- } from "./chunk-3IYE623P.js";
78
+ rabbyWallet
79
+ } from "./chunk-LW6S43RE.js";
80
80
  import {
81
81
  foxWallet
82
82
  } from "./chunk-YLJDPTYF.js";
@@ -102,17 +102,17 @@ import {
102
102
  ledgerWallet
103
103
  } from "./chunk-BRBKM4PW.js";
104
104
  import {
105
- bitverseWallet
106
- } from "./chunk-3HZRRP4Y.js";
105
+ bybitWallet
106
+ } from "./chunk-5EAOMOTO.js";
107
107
  import {
108
108
  clvWallet
109
109
  } from "./chunk-HPHADOYD.js";
110
- import {
111
- coinbaseWallet
112
- } from "./chunk-H4IRCEZN.js";
113
110
  import {
114
111
  coin98Wallet
115
112
  } from "./chunk-RLRQYUYC.js";
113
+ import {
114
+ coinbaseWallet
115
+ } from "./chunk-H4IRCEZN.js";
116
116
  import {
117
117
  coreWallet
118
118
  } from "./chunk-VYNVAGSV.js";
@@ -128,25 +128,25 @@ import {
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
+ import {
132
+ bifrostWallet
133
+ } from "./chunk-R6Y36CMA.js";
131
134
  import {
132
135
  bitgetWallet
133
136
  } from "./chunk-FA5DTT5R.js";
134
137
  import {
135
- bifrostWallet
136
- } from "./chunk-R6Y36CMA.js";
138
+ bitskiWallet
139
+ } from "./chunk-YMUSFW44.js";
140
+ import {
141
+ bitverseWallet
142
+ } from "./chunk-3HZRRP4Y.js";
137
143
  import {
138
144
  bloomWallet
139
145
  } from "./chunk-S27IADFU.js";
146
+ import "./chunk-23WIEY36.js";
140
147
  import {
141
148
  braveWallet
142
149
  } from "./chunk-4ZXII3UA.js";
143
- import {
144
- bitskiWallet
145
- } from "./chunk-YMUSFW44.js";
146
- import {
147
- bybitWallet
148
- } from "./chunk-5EAOMOTO.js";
149
- import "./chunk-23WIEY36.js";
150
150
  import "./chunk-ARYAYQ7Z.js";
151
151
  export {
152
152
  argentWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "8.2.1-next.0",
3
+ "version": "8.2.1-next.2",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -103,10 +103,10 @@
103
103
  "ua-parser-js": "^1.0.37",
104
104
  "use-debounce": "^10.0.5",
105
105
  "uuid": "^9.0.1",
106
- "@funkit/api-base": "2.1.2-next.0",
106
+ "@funkit/api-base": "2.1.2-next.2",
107
107
  "@funkit/chains": "1.1.0",
108
108
  "@funkit/fun-relay": "2.2.3-next.0",
109
- "@funkit/utils": "1.1.24"
109
+ "@funkit/utils": "1.1.25-next.0"
110
110
  },
111
111
  "repository": {
112
112
  "type": "git",