@funkit/connect 1.1.2 → 1.1.4

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,22 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 1.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [bb74a26]
8
+ - @funkit/shared@0.0.3
9
+
10
+ ## 1.1.3
11
+
12
+ ### Patch Changes
13
+
14
+ - a6ea41f: feat (connect): update transaction summary design to not have collapsable button on chain if chains are the same.
15
+ - Updated dependencies [8a67135]
16
+ - @funkit/core@1.0.13
17
+ - @funkit/shared@0.0.2
18
+ - @funkit/wagmi-tools@1.0.15
19
+
3
20
  ## 1.1.2
4
21
 
5
22
  ### Patch Changes
package/dist/index.js CHANGED
@@ -7899,15 +7899,19 @@ function PaymentRouteLineItem({
7899
7899
  sourceChainId,
7900
7900
  destinationChainId
7901
7901
  }) {
7902
+ const isSameChain = useMemo18(
7903
+ () => destinationChainId === sourceChainId,
7904
+ [destinationChainId, sourceChainId]
7905
+ );
7902
7906
  const [isExpanded, setIsExpanded] = useState21(false);
7903
7907
  const toggle = () => setIsExpanded(!isExpanded);
7904
7908
  return /* @__PURE__ */ React77.createElement(Box, {
7905
7909
  width: "full"
7906
7910
  }, /* @__PURE__ */ React77.createElement(FunTxSummaryLineItemCollapsibleTrigger, {
7907
- isDisabled: isLoading,
7911
+ isDisabled: isSameChain || isLoading,
7908
7912
  onClick: toggle
7909
7913
  }, /* @__PURE__ */ React77.createElement(FunTxSummaryLineItemKeyText, {
7910
- text: "Payment Route"
7914
+ text: `Payment ${isSameChain ? "Token" : "Route"}`
7911
7915
  }), isLoading ? /* @__PURE__ */ React77.createElement(Box, {
7912
7916
  color: "modalTextSecondary"
7913
7917
  }, /* @__PURE__ */ React77.createElement(SpinnerIcon, {
@@ -7931,7 +7935,7 @@ function PaymentRouteLineItem({
7931
7935
  color: "modalText",
7932
7936
  size: "12",
7933
7937
  style: { textAlign: "end" }
7934
- }, paymentTokenString), isExpanded ? /* @__PURE__ */ React77.createElement(FunUpArrow, null) : /* @__PURE__ */ React77.createElement(FunDownArrow, null))), /* @__PURE__ */ React77.createElement(FunTxSummaryCollapsibleBox, {
7938
+ }, paymentTokenString), isSameChain ? null : isExpanded ? /* @__PURE__ */ React77.createElement(FunUpArrow, null) : /* @__PURE__ */ React77.createElement(FunDownArrow, null))), !isSameChain && /* @__PURE__ */ React77.createElement(FunTxSummaryCollapsibleBox, {
7935
7939
  isExpanded
7936
7940
  }, /* @__PURE__ */ React77.createElement(FunTxSummaryLineItem, null, /* @__PURE__ */ React77.createElement(FunTxSummaryLineItemKeyText, {
7937
7941
  text: "Source Chain"
@@ -16959,7 +16963,7 @@ function setFunkitConnectVersion({ version }) {
16959
16963
  localStorage.setItem(storageKey6, version);
16960
16964
  }
16961
16965
  function getCurrentSdkVersion() {
16962
- return "1.1.2";
16966
+ return "1.1.4";
16963
16967
  }
16964
16968
  function useFingerprint() {
16965
16969
  const fingerprint = useCallback33(() => {
@@ -1,76 +1,73 @@
1
1
  "use client";
2
- import {
3
- zealWallet
4
- } from "./chunk-DPXMP5KS.js";
5
2
  import {
6
3
  zerionWallet
7
4
  } from "./chunk-7CQPABJG.js";
8
5
  import {
9
- xdefiWallet
10
- } from "./chunk-L734HTUS.js";
6
+ zealWallet
7
+ } from "./chunk-DPXMP5KS.js";
11
8
  import {
12
- subWallet
13
- } from "./chunk-ZBAQFL6G.js";
9
+ walletConnectWallet
10
+ } from "./chunk-ASPRR7T3.js";
14
11
  import {
15
- tahoWallet
16
- } from "./chunk-H76YCX2M.js";
12
+ safeheronWallet
13
+ } from "./chunk-63NPZXAL.js";
17
14
  import {
18
- tokenPocketWallet
19
- } from "./chunk-2UXZAUWT.js";
15
+ talismanWallet
16
+ } from "./chunk-H273OTQA.js";
20
17
  import {
21
18
  tokenaryWallet
22
19
  } from "./chunk-ENZLEAG2.js";
23
20
  import {
24
- talismanWallet
25
- } from "./chunk-H273OTQA.js";
26
- import {
27
- trustWallet
28
- } from "./chunk-Z2DGDHHZ.js";
21
+ tahoWallet
22
+ } from "./chunk-H76YCX2M.js";
29
23
  import {
30
24
  uniswapWallet
31
25
  } from "./chunk-XRSY4JVH.js";
32
26
  import {
33
- walletConnectWallet
34
- } from "./chunk-ASPRR7T3.js";
35
- import {
36
- phantomWallet
37
- } from "./chunk-KGBLSE7L.js";
38
- import {
39
- rabbyWallet
40
- } from "./chunk-XPEBP6XV.js";
27
+ trustWallet
28
+ } from "./chunk-Z2DGDHHZ.js";
41
29
  import {
42
- rainbowWallet
43
- } from "./chunk-O5NKWWEG.js";
30
+ tokenPocketWallet
31
+ } from "./chunk-2UXZAUWT.js";
44
32
  import {
45
- ramperWallet
46
- } from "./chunk-ZOL6ZMTJ.js";
33
+ xdefiWallet
34
+ } from "./chunk-L734HTUS.js";
47
35
  import {
48
36
  roninWallet
49
37
  } from "./chunk-LVRXH33E.js";
38
+ import {
39
+ oneKeyWallet
40
+ } from "./chunk-4WOV4ITL.js";
41
+ import {
42
+ imTokenWallet
43
+ } from "./chunk-5MVV7OVS.js";
44
+ import {
45
+ rabbyWallet
46
+ } from "./chunk-XPEBP6XV.js";
50
47
  import {
51
48
  safeWallet
52
49
  } from "./chunk-D3DCQ72J.js";
53
50
  import {
54
- safeheronWallet
55
- } from "./chunk-63NPZXAL.js";
51
+ ramperWallet
52
+ } from "./chunk-ZOL6ZMTJ.js";
56
53
  import {
57
54
  safepalWallet
58
55
  } from "./chunk-SYELB4QO.js";
59
56
  import {
60
- ledgerWallet
61
- } from "./chunk-Y6VY6E3L.js";
57
+ subWallet
58
+ } from "./chunk-ZBAQFL6G.js";
62
59
  import {
63
- metaMaskWallet
64
- } from "./chunk-3WZRNEZH.js";
60
+ injectedWallet
61
+ } from "./chunk-KIHCNUU3.js";
65
62
  import {
66
- mewWallet
67
- } from "./chunk-PWYTDYBE.js";
63
+ okxWallet
64
+ } from "./chunk-NGXIHASN.js";
68
65
  import {
69
66
  oktoWallet
70
67
  } from "./chunk-WKHTUEF5.js";
71
68
  import {
72
- okxWallet
73
- } from "./chunk-NGXIHASN.js";
69
+ metaMaskWallet
70
+ } from "./chunk-3WZRNEZH.js";
74
71
  import {
75
72
  omniWallet
76
73
  } from "./chunk-SVN7OEQR.js";
@@ -78,38 +75,38 @@ import {
78
75
  oneInchWallet
79
76
  } from "./chunk-LCPIZUR3.js";
80
77
  import {
81
- oneKeyWallet
82
- } from "./chunk-4WOV4ITL.js";
78
+ phantomWallet
79
+ } from "./chunk-KGBLSE7L.js";
83
80
  import {
84
- foxWallet
85
- } from "./chunk-Q4RLUJJD.js";
81
+ rainbowWallet
82
+ } from "./chunk-O5NKWWEG.js";
86
83
  import {
87
84
  frameWallet
88
85
  } from "./chunk-XXFJVY73.js";
89
86
  import {
90
87
  frontierWallet
91
88
  } from "./chunk-AM4SSLAP.js";
89
+ import {
90
+ foxWallet
91
+ } from "./chunk-Q4RLUJJD.js";
92
92
  import {
93
93
  gateWallet
94
94
  } from "./chunk-V45EXW7A.js";
95
95
  import {
96
- imTokenWallet
97
- } from "./chunk-5MVV7OVS.js";
98
- import {
99
- injectedWallet
100
- } from "./chunk-KIHCNUU3.js";
96
+ ledgerWallet
97
+ } from "./chunk-Y6VY6E3L.js";
101
98
  import {
102
99
  kresusWallet
103
100
  } from "./chunk-X6T3CICZ.js";
104
101
  import {
105
- bybitWallet
106
- } from "./chunk-ZUAHWUEL.js";
102
+ mewWallet
103
+ } from "./chunk-PWYTDYBE.js";
104
+ import {
105
+ braveWallet
106
+ } from "./chunk-ABYQAXUX.js";
107
107
  import {
108
108
  clvWallet
109
109
  } from "./chunk-MIWCKFYE.js";
110
- import {
111
- coin98Wallet
112
- } from "./chunk-4FQLUQNA.js";
113
110
  import {
114
111
  coreWallet
115
112
  } from "./chunk-JLQ5HJYV.js";
@@ -117,14 +114,17 @@ import {
117
114
  coinbaseWallet
118
115
  } from "./chunk-XBUTWYE4.js";
119
116
  import {
120
- dawnWallet
121
- } from "./chunk-4XQDKOGF.js";
117
+ coin98Wallet
118
+ } from "./chunk-4FQLUQNA.js";
122
119
  import {
123
120
  desigWallet
124
121
  } from "./chunk-P4JLZ42R.js";
125
122
  import {
126
123
  enkryptWallet
127
124
  } from "./chunk-FLY7F4XA.js";
125
+ import {
126
+ dawnWallet
127
+ } from "./chunk-4XQDKOGF.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-NZ5G23JP.js";
@@ -132,22 +132,22 @@ import {
132
132
  bifrostWallet
133
133
  } from "./chunk-6LTLPR2Q.js";
134
134
  import {
135
- bitgetWallet
136
- } from "./chunk-ZNXQ4V6G.js";
137
- import {
138
- bitskiWallet
139
- } from "./chunk-C67TQJ6W.js";
135
+ bloomWallet
136
+ } from "./chunk-NTGZF5BY.js";
140
137
  import {
141
138
  bitverseWallet
142
139
  } from "./chunk-NL4I7WOT.js";
143
140
  import {
144
- bloomWallet
145
- } from "./chunk-NTGZF5BY.js";
141
+ bitskiWallet
142
+ } from "./chunk-C67TQJ6W.js";
143
+ import {
144
+ bitgetWallet
145
+ } from "./chunk-ZNXQ4V6G.js";
146
146
  import "./chunk-ZOLACFTK.js";
147
- import "./chunk-ZDU3JFGR.js";
148
147
  import {
149
- braveWallet
150
- } from "./chunk-ABYQAXUX.js";
148
+ bybitWallet
149
+ } from "./chunk-ZUAHWUEL.js";
150
+ import "./chunk-ZDU3JFGR.js";
151
151
  import "./chunk-QII6PY2D.js";
152
152
  export {
153
153
  argentWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -25,18 +25,6 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "scripts": {
29
- "build": "node build.js && pnpm typecheck",
30
- "build:watch": "node build.js --watch",
31
- "dev": "pnpm build:watch & pnpm typegen:watch",
32
- "prepare": "MINIFY_CSS=true pnpm build",
33
- "prebuild": "pnpm typegen",
34
- "typecheck": "pnpm tsc --noEmit",
35
- "typegen": "tsc --emitDeclarationOnly || true",
36
- "typegen:watch": "tsc --emitDeclarationOnly --watch",
37
- "lint": "eslint \"**/*.{ts,tsx,js,jsx}\"",
38
- "lint:fix": "eslint \"**/*.{ts,tsx,js,jsx}\" --fix"
39
- },
40
28
  "keywords": [
41
29
  "ens",
42
30
  "ethereum",
@@ -73,8 +61,6 @@
73
61
  },
74
62
  "dependencies": {
75
63
  "@datadog/browser-logs": "^5.12.0",
76
- "@funkit/core": "^1.0.12",
77
- "@funkit/wagmi-tools": "^1.0.14",
78
64
  "@meshconnect/web-link-sdk": "^2.0.1",
79
65
  "@moonpay/moonpay-react": "^1.6.1",
80
66
  "@privy-io/js-sdk-core": "^0.18.1",
@@ -88,12 +74,26 @@
88
74
  "qrcode": "1.5.3",
89
75
  "react-remove-scroll": "2.5.7",
90
76
  "ua-parser-js": "^1.0.37",
91
- "uuid": "^9.0.1"
77
+ "uuid": "^9.0.1",
78
+ "@funkit/core": "1.0.13",
79
+ "@funkit/wagmi-tools": "1.0.15",
80
+ "@funkit/shared": "0.0.3"
92
81
  },
93
82
  "repository": {
94
83
  "type": "git",
95
84
  "url": "git+https://github.com/fun-xyz/funkit.git",
96
85
  "directory": "packages/connect"
97
86
  },
98
- "homepage": "https://github.com/fun-xyz/funkit/tree/main/packages/connect"
99
- }
87
+ "homepage": "https://github.com/fun-xyz/funkit/tree/main/packages/connect",
88
+ "scripts": {
89
+ "build": "node build.js && pnpm typecheck",
90
+ "build:watch": "node build.js --watch",
91
+ "dev": "pnpm build:watch & pnpm typegen:watch",
92
+ "prebuild": "pnpm typegen",
93
+ "typecheck": "pnpm tsc --noEmit",
94
+ "typegen": "tsc --emitDeclarationOnly || true",
95
+ "typegen:watch": "tsc --emitDeclarationOnly --watch",
96
+ "lint": "eslint \"**/*.{ts,tsx,js,jsx}\"",
97
+ "lint:fix": "eslint \"**/*.{ts,tsx,js,jsx}\" --fix"
98
+ }
99
+ }