@funkit/connect 3.0.2 → 3.0.3

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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 3.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - bf61cb4: feat(connect): show powered by tagline based on feature flag
8
+ - 9eed208: fix: custom chains do not show up well in chain modal
9
+ - Updated dependencies [1836ec2]
10
+ - @funkit/api-base@1.1.0
11
+ - @funkit/core@2.1.5
12
+ - @funkit/wagmi-tools@3.0.7
13
+
3
14
  ## 3.0.2
4
15
 
5
16
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  en_US_default
4
4
  } from "./chunk-FRCBBARC.js";
5
- import {
6
- lightTheme
7
- } from "./chunk-76VEFMWE.js";
8
5
  import {
9
6
  darkTheme
10
7
  } from "./chunk-EUSK63OY.js";
8
+ import {
9
+ lightTheme
10
+ } from "./chunk-76VEFMWE.js";
11
11
  import "./chunk-HFT6OV3T.js";
12
12
 
13
13
  // src/components/Dialog/DialogContent.css.ts
@@ -2113,9 +2113,12 @@ var topSectionDynamicPadding = "n5qwi0";
2113
2113
  var FunBottomBar = ({
2114
2114
  topSection = null,
2115
2115
  actionButtonProps,
2116
- bottomSection = /* @__PURE__ */ React20.createElement(FunPoweredTagline, null)
2116
+ bottomSection
2117
2117
  }) => {
2118
- return /* @__PURE__ */ React20.createElement(Box, null, /* @__PURE__ */ React20.createElement(Box, { className: topSectionDynamicPadding }, topSection), /* @__PURE__ */ React20.createElement(Box, null, /* @__PURE__ */ React20.createElement(FunButton, { ...actionButtonProps })), /* @__PURE__ */ React20.createElement(Box, { paddingTop: "8" }, bottomSection));
2118
+ const showTagline = flags.getBool("show_powered_tagline" /* ShowPoweredTagline */, false);
2119
+ const defaultBottomSection = showTagline ? /* @__PURE__ */ React20.createElement(FunPoweredTagline, null) : void 0;
2120
+ const bottomSectionComponent = bottomSection ?? defaultBottomSection;
2121
+ return /* @__PURE__ */ React20.createElement(Box, null, /* @__PURE__ */ React20.createElement(Box, { className: topSectionDynamicPadding }, topSection), /* @__PURE__ */ React20.createElement(Box, null, /* @__PURE__ */ React20.createElement(FunButton, { ...actionButtonProps })), bottomSectionComponent && /* @__PURE__ */ React20.createElement(Box, { paddingTop: "8" }, bottomSectionComponent));
2119
2122
  };
2120
2123
 
2121
2124
  // src/components/FunButton/FunBackButton.tsx
@@ -8230,7 +8233,9 @@ function ChainLineItem({
8230
8233
  gap = "12",
8231
8234
  hideChainName = false
8232
8235
  }) {
8233
- const chainItem = chainMetadataById[chainId];
8236
+ const enabledChainMap = useFunkitConnectChainsById();
8237
+ const enabledChainItem = enabledChainMap?.[chainId];
8238
+ const chainItem = chainMetadataById[chainId] || enabledChainItem;
8234
8239
  if (!chainItem) return null;
8235
8240
  return /* @__PURE__ */ React69.createElement(
8236
8241
  Box,
@@ -8241,7 +8246,7 @@ function ChainLineItem({
8241
8246
  gap,
8242
8247
  height: chainIconSize
8243
8248
  },
8244
- chainItem.iconUrl && /* @__PURE__ */ React69.createElement(Box, { height: "full" }, /* @__PURE__ */ React69.createElement(
8249
+ /* @__PURE__ */ React69.createElement(Box, { height: "full" }, /* @__PURE__ */ React69.createElement(
8245
8250
  AsyncImage,
8246
8251
  {
8247
8252
  alt: chainItem.name,
@@ -14772,7 +14777,9 @@ function FunCheckoutConfirmationStep({
14772
14777
  const depositToken = checkoutItem?.selectedSourceAssetInfo.symbol || "";
14773
14778
  const sourceChainName = chainMetadataById[checkoutItem?.selectedSourceAssetInfo.chainId || ""].name;
14774
14779
  const toChainName = chainMetadataById[checkoutItem?.initSettings.config.targetChain || ""].name;
14775
- return `This transaction occurs in two steps. MoonPay powers only your purchase of ${depositToken} (${sourceChainName}) which Fun.xyz then converts to ${finalConvertedAssetName} (${toChainName}).`;
14780
+ const areTokensEqual = depositToken === finalConvertedAssetName && sourceChainName === toChainName;
14781
+ const tokenActionDescription = areTokensEqual ? "processes for your checkout" : `converts to ${finalConvertedAssetName} (${toChainName})`;
14782
+ return `This transaction occurs in two steps. MoonPay powers only your purchase of ${depositToken} (${sourceChainName}) which Fun.xyz then ${tokenActionDescription}.`;
14776
14783
  }, [checkoutItem]);
14777
14784
  return /* @__PURE__ */ React156.createElement(Box, { className: animateContentInClass }, /* @__PURE__ */ React156.createElement(Box, { display: "flex", flexDirection: "column", gap: "18" }, /* @__PURE__ */ React156.createElement(
14778
14785
  CheckoutPrimaryInfo,
@@ -2,48 +2,51 @@
2
2
  import {
3
3
  uniswapWallet
4
4
  } from "./chunk-QFRZGNNV.js";
5
- import {
6
- zerionWallet
7
- } from "./chunk-DBP432DI.js";
8
5
  import {
9
6
  zealWallet
10
7
  } from "./chunk-BUUV6BS4.js";
11
8
  import {
12
- safeheronWallet
13
- } from "./chunk-FCIRHRFH.js";
9
+ zerionWallet
10
+ } from "./chunk-DBP432DI.js";
14
11
  import {
15
- tahoWallet
16
- } from "./chunk-6AYBA6IH.js";
12
+ safepalWallet
13
+ } from "./chunk-AKAT37SI.js";
17
14
  import {
18
15
  tokenPocketWallet
19
16
  } from "./chunk-ISJYPD3T.js";
20
17
  import {
21
- subWallet
22
- } from "./chunk-N3ELQYCY.js";
18
+ talismanWallet
19
+ } from "./chunk-OTXHQMSG.js";
23
20
  import {
24
21
  tokenaryWallet
25
22
  } from "./chunk-FAYEL4JP.js";
23
+ import {
24
+ trustWallet
25
+ } from "./chunk-X45WXZDO.js";
26
+ import {
27
+ tahoWallet
28
+ } from "./chunk-6AYBA6IH.js";
26
29
  import {
27
30
  walletConnectWallet
28
31
  } from "./chunk-OFU3PEVT.js";
29
32
  import {
30
33
  xdefiWallet
31
34
  } from "./chunk-RVIZMVFR.js";
32
- import {
33
- trustWallet
34
- } from "./chunk-X45WXZDO.js";
35
35
  import {
36
36
  phantomWallet
37
37
  } from "./chunk-KEVUI6AA.js";
38
38
  import {
39
39
  ramperWallet
40
40
  } from "./chunk-TKXQYHWJ.js";
41
+ import {
42
+ oneKeyWallet
43
+ } from "./chunk-ZP2SV6KN.js";
41
44
  import {
42
45
  rainbowWallet
43
46
  } from "./chunk-OHJBALD3.js";
44
47
  import {
45
- rabbyWallet
46
- } from "./chunk-H5LLXNOI.js";
48
+ safeheronWallet
49
+ } from "./chunk-FCIRHRFH.js";
47
50
  import {
48
51
  safeWallet
49
52
  } from "./chunk-Z2QCE6O6.js";
@@ -51,41 +54,38 @@ import {
51
54
  roninWallet
52
55
  } from "./chunk-63YLN6R5.js";
53
56
  import {
54
- safepalWallet
55
- } from "./chunk-AKAT37SI.js";
57
+ subWallet
58
+ } from "./chunk-N3ELQYCY.js";
56
59
  import {
57
- talismanWallet
58
- } from "./chunk-OTXHQMSG.js";
60
+ ledgerWallet
61
+ } from "./chunk-ZMHCZCGS.js";
59
62
  import {
60
- imTokenWallet
61
- } from "./chunk-BMJOLT2N.js";
63
+ mewWallet
64
+ } from "./chunk-CVYXTHZ6.js";
62
65
  import {
63
66
  metaMaskWallet
64
67
  } from "./chunk-ODRDT73B.js";
65
68
  import {
66
- mewWallet
67
- } from "./chunk-CVYXTHZ6.js";
69
+ oktoWallet
70
+ } from "./chunk-MBQTOALG.js";
68
71
  import {
69
72
  omniWallet
70
73
  } from "./chunk-II6YBG2B.js";
71
- import {
72
- oktoWallet
73
- } from "./chunk-MBQTOALG.js";
74
74
  import {
75
75
  okxWallet
76
76
  } from "./chunk-5HXH52SO.js";
77
77
  import {
78
- oneKeyWallet
79
- } from "./chunk-ZP2SV6KN.js";
78
+ rabbyWallet
79
+ } from "./chunk-H5LLXNOI.js";
80
80
  import {
81
81
  oneInchWallet
82
82
  } from "./chunk-I7MKK24W.js";
83
- import {
84
- frontierWallet
85
- } from "./chunk-LCOUKF2U.js";
86
83
  import {
87
84
  foxWallet
88
85
  } from "./chunk-WAOREEBE.js";
86
+ import {
87
+ frontierWallet
88
+ } from "./chunk-LCOUKF2U.js";
89
89
  import {
90
90
  frameWallet
91
91
  } from "./chunk-KPVNJO3R.js";
@@ -93,14 +93,20 @@ import {
93
93
  gateWallet
94
94
  } from "./chunk-YIJ5ULO3.js";
95
95
  import {
96
- ledgerWallet
97
- } from "./chunk-ZMHCZCGS.js";
96
+ imTokenWallet
97
+ } from "./chunk-BMJOLT2N.js";
98
98
  import {
99
99
  injectedWallet
100
100
  } from "./chunk-E5NYR4SS.js";
101
101
  import {
102
102
  kresusWallet
103
103
  } from "./chunk-QQJKQCII.js";
104
+ import {
105
+ bybitWallet
106
+ } from "./chunk-3AZNOY75.js";
107
+ import {
108
+ coin98Wallet
109
+ } from "./chunk-ZXGMW3OS.js";
104
110
  import {
105
111
  clvWallet
106
112
  } from "./chunk-UHHA5V52.js";
@@ -108,42 +114,36 @@ import {
108
114
  coinbaseWallet
109
115
  } from "./chunk-PNEDRY6O.js";
110
116
  import {
111
- bybitWallet
112
- } from "./chunk-3AZNOY75.js";
113
- import {
114
- desigWallet
115
- } from "./chunk-44CHUPEQ.js";
116
- import {
117
- coin98Wallet
118
- } from "./chunk-ZXGMW3OS.js";
117
+ coreWallet
118
+ } from "./chunk-MOOW2AOC.js";
119
119
  import {
120
120
  dawnWallet
121
121
  } from "./chunk-KCTWDMQP.js";
122
122
  import {
123
- coreWallet
124
- } from "./chunk-MOOW2AOC.js";
123
+ desigWallet
124
+ } from "./chunk-44CHUPEQ.js";
125
125
  import {
126
126
  enkryptWallet
127
127
  } from "./chunk-JJ4DXD7R.js";
128
- import {
129
- bloomWallet
130
- } from "./chunk-J64P6XK3.js";
131
128
  import {
132
129
  bifrostWallet
133
130
  } from "./chunk-KL5Z3XHJ.js";
131
+ import {
132
+ bitgetWallet
133
+ } from "./chunk-IEVZW3XR.js";
134
134
  import {
135
135
  argentWallet
136
136
  } from "./chunk-ZHFISYEQ.js";
137
137
  import {
138
138
  bitskiWallet
139
139
  } from "./chunk-OCCT5PIN.js";
140
- import {
141
- bitgetWallet
142
- } from "./chunk-IEVZW3XR.js";
143
- import "./chunk-RETKWSKD.js";
144
140
  import {
145
141
  bitverseWallet
146
142
  } from "./chunk-BQEOIDHP.js";
143
+ import {
144
+ bloomWallet
145
+ } from "./chunk-J64P6XK3.js";
146
+ import "./chunk-RETKWSKD.js";
147
147
  import "./chunk-23WIEY36.js";
148
148
  import {
149
149
  braveWallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -79,9 +79,9 @@
79
79
  "react-virtuoso": "4.10.1",
80
80
  "ua-parser-js": "^1.0.37",
81
81
  "uuid": "^9.0.1",
82
- "@funkit/core": "2.1.4",
83
- "@funkit/api-base": "1.0.3",
84
- "@funkit/wagmi-tools": "3.0.6"
82
+ "@funkit/api-base": "1.1.0",
83
+ "@funkit/core": "2.1.5",
84
+ "@funkit/wagmi-tools": "3.0.7"
85
85
  },
86
86
  "repository": {
87
87
  "type": "git",