@funkit/connect 9.3.0 → 9.3.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.
@@ -87,6 +87,8 @@ export interface FunkitUiCustomizationsConfig {
87
87
  alignTitle?: 'left' | 'center';
88
88
  /** Always shows checkout modal top divider even if content cannot scroll - defaults to `false` */
89
89
  alwaysShowTopDivider?: boolean;
90
+ /** Whether to show modal title in topbars - defaults to true */
91
+ showModalTitle?: boolean;
90
92
  /** Whether to show CTA in uppercase - defaults to false */
91
93
  callToActionsUppercase?: boolean;
92
94
  /** Whether to enable compact list style for option boxes - defaults to false */
@@ -152,6 +154,10 @@ export interface FunkitUiCustomizationsConfig {
152
154
  /** Function that returns a custom React component to render before other UIs in the transfer crypto screen */
153
155
  customTopComponent?: () => ReactNode;
154
156
  };
157
+ withdrawalScreen?: {
158
+ /** Function that returns a custom React component to render before other UIs in the withdrawal amount screen */
159
+ customTopComponent?: () => ReactNode;
160
+ };
155
161
  selectBrokerageScreen?: {
156
162
  /** Function that returns a custom React component to render before other UIs in the select brokerage screen */
157
163
  customTopComponent?: () => ReactNode;
@@ -217,6 +223,7 @@ export type FunkitUiCustomizationsConfigInternal = Required<FunkitUiCustomizatio
217
223
  inputAmountScreen: Required<FunkitUiCustomizationsConfig['inputAmountScreen'] & {}>;
218
224
  selectAssetScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['selectAssetScreen']>;
219
225
  transferCryptoScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['transferCryptoScreen']>;
226
+ withdrawalScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['withdrawalScreen']>;
220
227
  selectBrokerageScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['selectBrokerageScreen']>;
221
228
  connectExchangeScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['connectExchangeScreen']>;
222
229
  sourceChangeScreen: RequiredExceptCustomComponents<FunkitUiCustomizationsConfig['sourceChangeScreen']> & {
@@ -145,7 +145,6 @@ export declare const useActiveTheme: () => {
145
145
  selectedDropdownItemBackground: string;
146
146
  alwaysVisibleLabelBackgroundHover: string;
147
147
  selectedDropdownItemText: string;
148
- dropdownLabelColor: string;
149
148
  copyButtonBackgroundBase: string;
150
149
  copyButtonBackgroundHover: string;
151
150
  copyButtonBackgroundActive: string;
@@ -164,6 +163,9 @@ export declare const useActiveTheme: () => {
164
163
  counterRingColor: string;
165
164
  cryptoCashToggleContainerBorderColor: string;
166
165
  cryptoCashToggleBackground: string;
166
+ withdrawalYouWillReceiveLabel: string;
167
+ withdrawalYouWillReceiveValueCrypto: string;
168
+ withdrawalYouWillReceiveValueUsd: string;
167
169
  };
168
170
  dimensions: {
169
171
  connectExchangeIconSize: string;
@@ -206,20 +208,24 @@ export declare const useActiveTheme: () => {
206
208
  heavy: string;
207
209
  cryptoCashToggle: string;
208
210
  inputAmount: string;
211
+ inputLabel: string;
212
+ inputValue: string;
209
213
  modalTopbarTitle: string;
210
214
  modalBottomBarButtonText: string;
211
215
  paymentMethodItemSubtitle: string;
212
216
  paymentMethodItemTitle: string;
213
217
  selectAssetItemSubtitle: string;
214
218
  selectAssetItemTitle: string;
215
- transferTokenLabelFontWeight: string;
219
+ sourceListSectionLabelFontWeight: string;
216
220
  txBreakdown: string;
217
221
  txStatusDescription: string;
218
222
  txStatusTitle: string;
219
223
  txSummaryLabel: string;
220
224
  txSummaryValue: string;
221
- sourceListSectionLabelFontWeight: string;
222
225
  formOfPaymentsListSectionLabelFontWeight: string;
226
+ withdrawalYouWillReceiveLabel: string;
227
+ withdrawalYouWillReceiveValueCrypto: string;
228
+ withdrawalYouWillReceiveValueUsd: string;
223
229
  };
224
230
  fontSize: {
225
231
  '10': {
@@ -298,6 +304,14 @@ export declare const useActiveTheme: () => {
298
304
  fontSize: string;
299
305
  lineHeight: string;
300
306
  };
307
+ inputLabel: {
308
+ fontSize: string;
309
+ lineHeight: string;
310
+ };
311
+ inputValue: {
312
+ fontSize: string;
313
+ lineHeight: string;
314
+ };
301
315
  modalTopbarSubtitle: {
302
316
  fontSize: string;
303
317
  lineHeight: string;
@@ -346,15 +360,15 @@ export declare const useActiveTheme: () => {
346
360
  fontSize: string;
347
361
  lineHeight: string;
348
362
  };
349
- youPayYouReceivePrimaryFontSize: {
363
+ withdrawalYouWillReceive: {
350
364
  fontSize: string;
351
365
  lineHeight: string;
352
366
  };
353
- youPayYouReceiveSecondaryFontSize: {
367
+ youPayYouReceivePrimaryFontSize: {
354
368
  fontSize: string;
355
369
  lineHeight: string;
356
370
  };
357
- transferTokenLabelFontSize: {
371
+ youPayYouReceiveSecondaryFontSize: {
358
372
  fontSize: string;
359
373
  lineHeight: string;
360
374
  };
@@ -449,11 +463,11 @@ export declare const useActiveTheme: () => {
449
463
  cryptoCashToggleMarginTop: string;
450
464
  cryptoCashToggleTabPaddingY: string;
451
465
  modalBaseHorizontalPadding: string;
466
+ modalBottomBarButtonPaddingY: string;
452
467
  modalBottomHorizontalPadding: string;
453
468
  modalPaddingBottomUpper: string;
454
469
  modalPaddingBottomLower: string;
455
470
  modalTopBarVerticalTextSpacing: string;
456
- modalBottomBarButtonPaddingY: string;
457
471
  selectAssetItemPaddingX: string;
458
472
  selectAssetItemPaddingY: string;
459
473
  selectAssetItemTextGap: string;
@@ -467,6 +481,7 @@ export declare const useActiveTheme: () => {
467
481
  txSummaryDividerMarginX: string;
468
482
  txSummaryDividerMarginY: string;
469
483
  verticalSectionGap: string;
484
+ withdrawalModalPaddingTop: string;
470
485
  youPayYouReceivePaddingLeft: string;
471
486
  youPayYouReceivePaddingRight: string;
472
487
  youPayYouReceivePaddingY: string;
@@ -619,7 +634,6 @@ export declare const useActiveTheme: () => {
619
634
  selectedDropdownItemBackground: string;
620
635
  alwaysVisibleLabelBackgroundHover: string;
621
636
  selectedDropdownItemText: string;
622
- dropdownLabelColor: string;
623
637
  copyButtonBackgroundBase: string;
624
638
  copyButtonBackgroundHover: string;
625
639
  copyButtonBackgroundActive: string;
@@ -638,6 +652,9 @@ export declare const useActiveTheme: () => {
638
652
  counterRingColor: string;
639
653
  cryptoCashToggleContainerBorderColor: string;
640
654
  cryptoCashToggleBackground: string;
655
+ withdrawalYouWillReceiveLabel: string;
656
+ withdrawalYouWillReceiveValueCrypto: string;
657
+ withdrawalYouWillReceiveValueUsd: string;
641
658
  };
642
659
  dimensions: {
643
660
  connectExchangeIconSize: string;
@@ -680,20 +697,24 @@ export declare const useActiveTheme: () => {
680
697
  heavy: string;
681
698
  cryptoCashToggle: string;
682
699
  inputAmount: string;
700
+ inputLabel: string;
701
+ inputValue: string;
683
702
  modalTopbarTitle: string;
684
703
  modalBottomBarButtonText: string;
685
704
  paymentMethodItemSubtitle: string;
686
705
  paymentMethodItemTitle: string;
687
706
  selectAssetItemSubtitle: string;
688
707
  selectAssetItemTitle: string;
689
- transferTokenLabelFontWeight: string;
708
+ sourceListSectionLabelFontWeight: string;
690
709
  txBreakdown: string;
691
710
  txStatusDescription: string;
692
711
  txStatusTitle: string;
693
712
  txSummaryLabel: string;
694
713
  txSummaryValue: string;
695
- sourceListSectionLabelFontWeight: string;
696
714
  formOfPaymentsListSectionLabelFontWeight: string;
715
+ withdrawalYouWillReceiveLabel: string;
716
+ withdrawalYouWillReceiveValueCrypto: string;
717
+ withdrawalYouWillReceiveValueUsd: string;
697
718
  };
698
719
  fontSize: {
699
720
  '10': {
@@ -772,6 +793,14 @@ export declare const useActiveTheme: () => {
772
793
  fontSize: string;
773
794
  lineHeight: string;
774
795
  };
796
+ inputLabel: {
797
+ fontSize: string;
798
+ lineHeight: string;
799
+ };
800
+ inputValue: {
801
+ fontSize: string;
802
+ lineHeight: string;
803
+ };
775
804
  modalTopbarSubtitle: {
776
805
  fontSize: string;
777
806
  lineHeight: string;
@@ -820,15 +849,15 @@ export declare const useActiveTheme: () => {
820
849
  fontSize: string;
821
850
  lineHeight: string;
822
851
  };
823
- youPayYouReceivePrimaryFontSize: {
852
+ withdrawalYouWillReceive: {
824
853
  fontSize: string;
825
854
  lineHeight: string;
826
855
  };
827
- youPayYouReceiveSecondaryFontSize: {
856
+ youPayYouReceivePrimaryFontSize: {
828
857
  fontSize: string;
829
858
  lineHeight: string;
830
859
  };
831
- transferTokenLabelFontSize: {
860
+ youPayYouReceiveSecondaryFontSize: {
832
861
  fontSize: string;
833
862
  lineHeight: string;
834
863
  };
@@ -923,11 +952,11 @@ export declare const useActiveTheme: () => {
923
952
  cryptoCashToggleMarginTop: string;
924
953
  cryptoCashToggleTabPaddingY: string;
925
954
  modalBaseHorizontalPadding: string;
955
+ modalBottomBarButtonPaddingY: string;
926
956
  modalBottomHorizontalPadding: string;
927
957
  modalPaddingBottomUpper: string;
928
958
  modalPaddingBottomLower: string;
929
959
  modalTopBarVerticalTextSpacing: string;
930
- modalBottomBarButtonPaddingY: string;
931
960
  selectAssetItemPaddingX: string;
932
961
  selectAssetItemPaddingY: string;
933
962
  selectAssetItemTextGap: string;
@@ -941,6 +970,7 @@ export declare const useActiveTheme: () => {
941
970
  txSummaryDividerMarginX: string;
942
971
  txSummaryDividerMarginY: string;
943
972
  verticalSectionGap: string;
973
+ withdrawalModalPaddingTop: string;
944
974
  youPayYouReceivePaddingLeft: string;
945
975
  youPayYouReceivePaddingRight: string;
946
976
  youPayYouReceivePaddingY: string;
@@ -1091,7 +1121,6 @@ export declare const useActiveTheme: () => {
1091
1121
  selectedDropdownItemBackground: string;
1092
1122
  alwaysVisibleLabelBackgroundHover: string;
1093
1123
  selectedDropdownItemText: string;
1094
- dropdownLabelColor: string;
1095
1124
  copyButtonBackgroundBase: string;
1096
1125
  copyButtonBackgroundHover: string;
1097
1126
  copyButtonBackgroundActive: string;
@@ -1110,6 +1139,9 @@ export declare const useActiveTheme: () => {
1110
1139
  counterRingColor: string;
1111
1140
  cryptoCashToggleContainerBorderColor: string;
1112
1141
  cryptoCashToggleBackground: string;
1142
+ withdrawalYouWillReceiveLabel: string;
1143
+ withdrawalYouWillReceiveValueCrypto: string;
1144
+ withdrawalYouWillReceiveValueUsd: string;
1113
1145
  };
1114
1146
  dimensions: {
1115
1147
  connectExchangeIconSize: string;
@@ -1152,20 +1184,24 @@ export declare const useActiveTheme: () => {
1152
1184
  heavy: string;
1153
1185
  cryptoCashToggle: string;
1154
1186
  inputAmount: string;
1187
+ inputLabel: string;
1188
+ inputValue: string;
1155
1189
  modalTopbarTitle: string;
1156
1190
  modalBottomBarButtonText: string;
1157
1191
  paymentMethodItemSubtitle: string;
1158
1192
  paymentMethodItemTitle: string;
1159
1193
  selectAssetItemSubtitle: string;
1160
1194
  selectAssetItemTitle: string;
1161
- transferTokenLabelFontWeight: string;
1195
+ sourceListSectionLabelFontWeight: string;
1162
1196
  txBreakdown: string;
1163
1197
  txStatusDescription: string;
1164
1198
  txStatusTitle: string;
1165
1199
  txSummaryLabel: string;
1166
1200
  txSummaryValue: string;
1167
- sourceListSectionLabelFontWeight: string;
1168
1201
  formOfPaymentsListSectionLabelFontWeight: string;
1202
+ withdrawalYouWillReceiveLabel: string;
1203
+ withdrawalYouWillReceiveValueCrypto: string;
1204
+ withdrawalYouWillReceiveValueUsd: string;
1169
1205
  };
1170
1206
  fontSize: {
1171
1207
  '10': {
@@ -1244,6 +1280,14 @@ export declare const useActiveTheme: () => {
1244
1280
  fontSize: string;
1245
1281
  lineHeight: string;
1246
1282
  };
1283
+ inputLabel: {
1284
+ fontSize: string;
1285
+ lineHeight: string;
1286
+ };
1287
+ inputValue: {
1288
+ fontSize: string;
1289
+ lineHeight: string;
1290
+ };
1247
1291
  modalTopbarSubtitle: {
1248
1292
  fontSize: string;
1249
1293
  lineHeight: string;
@@ -1292,15 +1336,15 @@ export declare const useActiveTheme: () => {
1292
1336
  fontSize: string;
1293
1337
  lineHeight: string;
1294
1338
  };
1295
- youPayYouReceivePrimaryFontSize: {
1339
+ withdrawalYouWillReceive: {
1296
1340
  fontSize: string;
1297
1341
  lineHeight: string;
1298
1342
  };
1299
- youPayYouReceiveSecondaryFontSize: {
1343
+ youPayYouReceivePrimaryFontSize: {
1300
1344
  fontSize: string;
1301
1345
  lineHeight: string;
1302
1346
  };
1303
- transferTokenLabelFontSize: {
1347
+ youPayYouReceiveSecondaryFontSize: {
1304
1348
  fontSize: string;
1305
1349
  lineHeight: string;
1306
1350
  };
@@ -1395,11 +1439,11 @@ export declare const useActiveTheme: () => {
1395
1439
  cryptoCashToggleMarginTop: string;
1396
1440
  cryptoCashToggleTabPaddingY: string;
1397
1441
  modalBaseHorizontalPadding: string;
1442
+ modalBottomBarButtonPaddingY: string;
1398
1443
  modalBottomHorizontalPadding: string;
1399
1444
  modalPaddingBottomUpper: string;
1400
1445
  modalPaddingBottomLower: string;
1401
1446
  modalTopBarVerticalTextSpacing: string;
1402
- modalBottomBarButtonPaddingY: string;
1403
1447
  selectAssetItemPaddingX: string;
1404
1448
  selectAssetItemPaddingY: string;
1405
1449
  selectAssetItemTextGap: string;
@@ -1413,6 +1457,7 @@ export declare const useActiveTheme: () => {
1413
1457
  txSummaryDividerMarginX: string;
1414
1458
  txSummaryDividerMarginY: string;
1415
1459
  verticalSectionGap: string;
1460
+ withdrawalModalPaddingTop: string;
1416
1461
  youPayYouReceivePaddingLeft: string;
1417
1462
  youPayYouReceivePaddingRight: string;
1418
1463
  youPayYouReceivePaddingY: string;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  baseTheme,
4
4
  systemFontStack
5
- } from "../chunk-TWG76V3I.js";
5
+ } from "../chunk-JKGPN2BQ.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-NKJYA7IM.js";
5
- import "../chunk-TWG76V3I.js";
4
+ } from "../chunk-WXEL44DS.js";
5
+ import "../chunk-JKGPN2BQ.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-FHIMKOGH.js";
5
- import "../chunk-TWG76V3I.js";
4
+ } from "../chunk-VIJQ5A6W.js";
5
+ import "../chunk-JKGPN2BQ.js";
6
6
  export {
7
7
  lightTheme
8
8
  };
@@ -1,6 +1,5 @@
1
1
  import { type SavedFormOfPayment, type SwappedFormOfPayment } from '@funkit/api-base';
2
2
  import type { ThemeVars } from '../css/sprinkles.css';
3
- import type { ThemeColorScheme } from '../providers/FunkitThemeProvider';
4
3
  /**
5
4
  * Ref: https://www.notion.so/Fun-Parameter-Styling-Guide-312966ea6e398011bbc6c14e976e281d#63dcdd77ea2d488084a980cda4c63d08
6
5
  */
@@ -41,5 +40,5 @@ export declare function buildSwappedTheme(theme: ThemeVars & {
41
40
  primary?: string;
42
41
  secondary?: string;
43
42
  };
44
- }, themeColorScheme: ThemeColorScheme): SwappedTheme;
43
+ }, isDarkMode: boolean): SwappedTheme;
45
44
  export declare function buildSwappedThemeQueryParams(activeTheme: ThemeVars): Record<string, string>;
@@ -8,12 +8,12 @@ import {
8
8
  import {
9
9
  tahoWallet
10
10
  } from "./chunk-4BMUFNMT.js";
11
- import {
12
- talismanWallet
13
- } from "./chunk-6MFOL6EB.js";
14
11
  import {
15
12
  tokenPocketWallet
16
13
  } from "./chunk-4C7ER452.js";
14
+ import {
15
+ talismanWallet
16
+ } from "./chunk-6MFOL6EB.js";
17
17
  import {
18
18
  tokenaryWallet
19
19
  } from "./chunk-34LO6Q7A.js";
@@ -38,18 +38,18 @@ import {
38
38
  import {
39
39
  ramperWallet
40
40
  } from "./chunk-R4S234FL.js";
41
- import {
42
- roninWallet
43
- } from "./chunk-PKMAPNN6.js";
44
41
  import {
45
42
  safeWallet
46
43
  } from "./chunk-YKVWTGU7.js";
47
44
  import {
48
- safeheronWallet
49
- } from "./chunk-4R4AARTG.js";
45
+ roninWallet
46
+ } from "./chunk-PKMAPNN6.js";
50
47
  import {
51
48
  safepalWallet
52
49
  } from "./chunk-IICWJWGZ.js";
50
+ import {
51
+ safeheronWallet
52
+ } from "./chunk-4R4AARTG.js";
53
53
  import {
54
54
  subWallet
55
55
  } from "./chunk-XBLHZICW.js";
@@ -80,73 +80,73 @@ import {
80
80
  import {
81
81
  foxWallet
82
82
  } from "./chunk-53VYSPXK.js";
83
- import {
84
- frameWallet
85
- } from "./chunk-WDTNOIMF.js";
86
83
  import {
87
84
  frontierWallet
88
85
  } from "./chunk-CJJT7LMT.js";
86
+ import {
87
+ frameWallet
88
+ } from "./chunk-WDTNOIMF.js";
89
89
  import {
90
90
  gateWallet
91
91
  } from "./chunk-7OARWILZ.js";
92
92
  import {
93
93
  imTokenWallet
94
94
  } from "./chunk-IUVO4IN3.js";
95
- import {
96
- kresusWallet
97
- } from "./chunk-G4V5B6YC.js";
98
95
  import {
99
96
  injectedWallet
100
97
  } from "./chunk-W6MXINYY.js";
101
98
  import {
102
99
  ledgerWallet
103
100
  } from "./chunk-WKCCLGHJ.js";
101
+ import {
102
+ kresusWallet
103
+ } from "./chunk-G4V5B6YC.js";
104
104
  import {
105
105
  clvWallet
106
106
  } from "./chunk-GVOQTORD.js";
107
- import {
108
- argentWallet
109
- } from "./chunk-VUOAIUZE.js";
110
107
  import {
111
108
  coin98Wallet
112
109
  } from "./chunk-6YO27XOM.js";
110
+ import {
111
+ bybitWallet
112
+ } from "./chunk-6UCI7GM6.js";
113
113
  import {
114
114
  coinbaseWallet
115
115
  } from "./chunk-RZXMOPIV.js";
116
116
  import {
117
117
  coreWallet
118
118
  } from "./chunk-GH4M6FTK.js";
119
- import {
120
- dawnWallet
121
- } from "./chunk-TFVCCI2D.js";
122
119
  import {
123
120
  desigWallet
124
121
  } from "./chunk-JYVLYSH3.js";
122
+ import {
123
+ dawnWallet
124
+ } from "./chunk-TFVCCI2D.js";
125
125
  import {
126
126
  enkryptWallet
127
127
  } from "./chunk-W6TXXLCO.js";
128
+ import {
129
+ argentWallet
130
+ } from "./chunk-VUOAIUZE.js";
128
131
  import {
129
132
  bifrostWallet
130
133
  } from "./chunk-EKJHJFRN.js";
131
134
  import {
132
- bitskiWallet
133
- } from "./chunk-A7FNGC4A.js";
135
+ bitgetWallet
136
+ } from "./chunk-HOPH3TQ3.js";
134
137
  import {
135
138
  bitverseWallet
136
139
  } from "./chunk-GROWFRGP.js";
140
+ import {
141
+ bitskiWallet
142
+ } from "./chunk-A7FNGC4A.js";
137
143
  import {
138
144
  bloomWallet
139
145
  } from "./chunk-UB2SSFH7.js";
140
- import {
141
- bitgetWallet
142
- } from "./chunk-HOPH3TQ3.js";
146
+ import "./chunk-MAPXJUOO.js";
143
147
  import {
144
148
  braveWallet
145
149
  } from "./chunk-ZRNBHLUU.js";
146
- import {
147
- bybitWallet
148
- } from "./chunk-6UCI7GM6.js";
149
- import "./chunk-MAPXJUOO.js";
150
150
  import "./chunk-BAVE62IL.js";
151
151
  import "./chunk-KV4HGYM3.js";
152
152
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "9.3.0",
3
+ "version": "9.3.1",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -85,6 +85,7 @@
85
85
  "@bluvo/sdk-ts": "2.1.3",
86
86
  "@datadog/browser-logs": "5.22.0",
87
87
  "@number-flow/react": "^0.5.5",
88
+ "@radix-ui/react-dropdown-menu": "^2.1.7",
88
89
  "@radix-ui/react-tooltip": "^1.2.0",
89
90
  "@solana/addresses": "^2.1.0",
90
91
  "@statsig/react-bindings": "^3.25.4",
@@ -102,7 +103,7 @@
102
103
  "ua-parser-js": "^1.0.37",
103
104
  "use-debounce": "^10.0.5",
104
105
  "uuid": "^9.0.1",
105
- "@funkit/api-base": "3.0.1",
106
+ "@funkit/api-base": "3.0.2",
106
107
  "@funkit/chains": "1.1.0",
107
108
  "@funkit/fun-relay": "2.6.3",
108
109
  "@funkit/utils": "1.2.4"