@funkit/connect 1.1.2 → 1.1.5

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,29 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 1.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 82e2501: chore: upgrade privy sdk deps & adapt to breaking changes
8
+ - 610e8f1: fix: remove funkit/shared deps
9
+
10
+ ## 1.1.4
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [bb74a26]
15
+ - @funkit/shared@0.0.3
16
+
17
+ ## 1.1.3
18
+
19
+ ### Patch Changes
20
+
21
+ - a6ea41f: feat (connect): update transaction summary design to not have collapsable button on chain if chains are the same.
22
+ - Updated dependencies [8a67135]
23
+ - @funkit/core@1.0.13
24
+ - @funkit/shared@0.0.2
25
+ - @funkit/wagmi-tools@1.0.15
26
+
3
27
  ## 1.1.2
4
28
 
5
29
  ### 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"
@@ -15201,7 +15205,8 @@ var FunkitWeb2Provider = ({
15201
15205
  if (isNotNullish(embeddedWallet)) {
15202
15206
  return await privy.embeddedWallet.getProvider(embeddedWallet);
15203
15207
  } else {
15204
- return await privy.embeddedWallet.create();
15208
+ const { provider } = await privy.embeddedWallet.create();
15209
+ return provider;
15205
15210
  }
15206
15211
  } catch (e) {
15207
15212
  logger.error("getPrivyUserEmbeddedWallet:error", e);
@@ -16959,7 +16964,7 @@ function setFunkitConnectVersion({ version }) {
16959
16964
  localStorage.setItem(storageKey6, version);
16960
16965
  }
16961
16966
  function getCurrentSdkVersion() {
16962
- return "1.1.2";
16967
+ return "1.1.5";
16963
16968
  }
16964
16969
  function useFingerprint() {
16965
16970
  const fingerprint = useCallback33(() => {
@@ -1,139 +1,139 @@
1
1
  "use client";
2
2
  import {
3
- zealWallet
4
- } from "./chunk-DPXMP5KS.js";
5
- import {
6
- zerionWallet
7
- } from "./chunk-7CQPABJG.js";
3
+ rabbyWallet
4
+ } from "./chunk-XPEBP6XV.js";
8
5
  import {
9
6
  xdefiWallet
10
7
  } from "./chunk-L734HTUS.js";
11
8
  import {
12
- subWallet
13
- } from "./chunk-ZBAQFL6G.js";
14
- import {
15
- tahoWallet
16
- } from "./chunk-H76YCX2M.js";
17
- import {
18
- tokenPocketWallet
19
- } from "./chunk-2UXZAUWT.js";
20
- import {
21
- tokenaryWallet
22
- } from "./chunk-ENZLEAG2.js";
9
+ walletConnectWallet
10
+ } from "./chunk-ASPRR7T3.js";
23
11
  import {
24
12
  talismanWallet
25
13
  } from "./chunk-H273OTQA.js";
14
+ import {
15
+ oneInchWallet
16
+ } from "./chunk-LCPIZUR3.js";
26
17
  import {
27
18
  trustWallet
28
19
  } from "./chunk-Z2DGDHHZ.js";
29
20
  import {
30
- uniswapWallet
31
- } from "./chunk-XRSY4JVH.js";
21
+ tokenaryWallet
22
+ } from "./chunk-ENZLEAG2.js";
32
23
  import {
33
- walletConnectWallet
34
- } from "./chunk-ASPRR7T3.js";
24
+ tokenPocketWallet
25
+ } from "./chunk-2UXZAUWT.js";
35
26
  import {
36
- phantomWallet
37
- } from "./chunk-KGBLSE7L.js";
27
+ uniswapWallet
28
+ } from "./chunk-XRSY4JVH.js";
38
29
  import {
39
- rabbyWallet
40
- } from "./chunk-XPEBP6XV.js";
30
+ zealWallet
31
+ } from "./chunk-DPXMP5KS.js";
41
32
  import {
42
- rainbowWallet
43
- } from "./chunk-O5NKWWEG.js";
33
+ zerionWallet
34
+ } from "./chunk-7CQPABJG.js";
44
35
  import {
45
36
  ramperWallet
46
37
  } from "./chunk-ZOL6ZMTJ.js";
47
38
  import {
48
39
  roninWallet
49
40
  } from "./chunk-LVRXH33E.js";
41
+ import {
42
+ safeheronWallet
43
+ } from "./chunk-63NPZXAL.js";
50
44
  import {
51
45
  safeWallet
52
46
  } from "./chunk-D3DCQ72J.js";
53
47
  import {
54
- safeheronWallet
55
- } from "./chunk-63NPZXAL.js";
48
+ rainbowWallet
49
+ } from "./chunk-O5NKWWEG.js";
56
50
  import {
57
51
  safepalWallet
58
52
  } from "./chunk-SYELB4QO.js";
59
53
  import {
60
- ledgerWallet
61
- } from "./chunk-Y6VY6E3L.js";
54
+ subWallet
55
+ } from "./chunk-ZBAQFL6G.js";
62
56
  import {
63
- metaMaskWallet
64
- } from "./chunk-3WZRNEZH.js";
57
+ tahoWallet
58
+ } from "./chunk-H76YCX2M.js";
65
59
  import {
66
60
  mewWallet
67
61
  } from "./chunk-PWYTDYBE.js";
62
+ import {
63
+ injectedWallet
64
+ } from "./chunk-KIHCNUU3.js";
65
+ import {
66
+ metaMaskWallet
67
+ } from "./chunk-3WZRNEZH.js";
68
68
  import {
69
69
  oktoWallet
70
70
  } from "./chunk-WKHTUEF5.js";
71
- import {
72
- okxWallet
73
- } from "./chunk-NGXIHASN.js";
74
71
  import {
75
72
  omniWallet
76
73
  } from "./chunk-SVN7OEQR.js";
77
74
  import {
78
- oneInchWallet
79
- } from "./chunk-LCPIZUR3.js";
75
+ okxWallet
76
+ } from "./chunk-NGXIHASN.js";
80
77
  import {
81
78
  oneKeyWallet
82
79
  } from "./chunk-4WOV4ITL.js";
80
+ import {
81
+ phantomWallet
82
+ } from "./chunk-KGBLSE7L.js";
83
83
  import {
84
84
  foxWallet
85
85
  } from "./chunk-Q4RLUJJD.js";
86
- import {
87
- frameWallet
88
- } from "./chunk-XXFJVY73.js";
89
86
  import {
90
87
  frontierWallet
91
88
  } from "./chunk-AM4SSLAP.js";
92
- import {
93
- gateWallet
94
- } from "./chunk-V45EXW7A.js";
95
89
  import {
96
90
  imTokenWallet
97
91
  } from "./chunk-5MVV7OVS.js";
98
92
  import {
99
- injectedWallet
100
- } from "./chunk-KIHCNUU3.js";
93
+ gateWallet
94
+ } from "./chunk-V45EXW7A.js";
101
95
  import {
102
96
  kresusWallet
103
97
  } from "./chunk-X6T3CICZ.js";
98
+ import {
99
+ ledgerWallet
100
+ } from "./chunk-Y6VY6E3L.js";
101
+ import {
102
+ coreWallet
103
+ } from "./chunk-JLQ5HJYV.js";
104
104
  import {
105
105
  bybitWallet
106
106
  } from "./chunk-ZUAHWUEL.js";
107
- import {
108
- clvWallet
109
- } from "./chunk-MIWCKFYE.js";
110
107
  import {
111
108
  coin98Wallet
112
109
  } from "./chunk-4FQLUQNA.js";
113
110
  import {
114
- coreWallet
115
- } from "./chunk-JLQ5HJYV.js";
111
+ clvWallet
112
+ } from "./chunk-MIWCKFYE.js";
116
113
  import {
117
114
  coinbaseWallet
118
115
  } from "./chunk-XBUTWYE4.js";
119
116
  import {
120
117
  dawnWallet
121
118
  } from "./chunk-4XQDKOGF.js";
119
+ import {
120
+ enkryptWallet
121
+ } from "./chunk-FLY7F4XA.js";
122
122
  import {
123
123
  desigWallet
124
124
  } from "./chunk-P4JLZ42R.js";
125
125
  import {
126
- enkryptWallet
127
- } from "./chunk-FLY7F4XA.js";
126
+ frameWallet
127
+ } from "./chunk-XXFJVY73.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-NZ5G23JP.js";
131
- import {
132
- bifrostWallet
133
- } from "./chunk-6LTLPR2Q.js";
134
131
  import {
135
132
  bitgetWallet
136
133
  } from "./chunk-ZNXQ4V6G.js";
134
+ import {
135
+ bifrostWallet
136
+ } from "./chunk-6LTLPR2Q.js";
137
137
  import {
138
138
  bitskiWallet
139
139
  } from "./chunk-C67TQJ6W.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "1.1.2",
3
+ "version": "1.1.5",
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,11 +61,9 @@
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
- "@privy-io/js-sdk-core": "^0.18.1",
66
+ "@privy-io/js-sdk-core": "^0.21.0",
81
67
  "@tanstack/react-query": "^5.28.8",
82
68
  "@types/uuid": "^9.0.8",
83
69
  "@vanilla-extract/css": "1.14.0",
@@ -88,12 +74,25 @@
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"
92
80
  },
93
81
  "repository": {
94
82
  "type": "git",
95
83
  "url": "git+https://github.com/fun-xyz/funkit.git",
96
84
  "directory": "packages/connect"
97
85
  },
98
- "homepage": "https://github.com/fun-xyz/funkit/tree/main/packages/connect"
99
- }
86
+ "homepage": "https://github.com/fun-xyz/funkit/tree/main/packages/connect",
87
+ "scripts": {
88
+ "build": "node build.js && pnpm typecheck",
89
+ "build:watch": "node build.js --watch",
90
+ "dev": "pnpm build:watch & pnpm typegen:watch",
91
+ "prebuild": "pnpm typegen",
92
+ "typecheck": "pnpm tsc --noEmit",
93
+ "typegen": "tsc --emitDeclarationOnly || true",
94
+ "typegen:watch": "tsc --emitDeclarationOnly --watch",
95
+ "lint": "eslint \"**/*.{ts,tsx,js,jsx}\"",
96
+ "lint:fix": "eslint \"**/*.{ts,tsx,js,jsx}\" --fix"
97
+ }
98
+ }