@fluent.xyz/connect 0.3.1 → 0.4.0
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/README.md +11 -1
- package/dist/fluent-connect.css +1 -1
- package/dist/index.d.ts +485 -31
- package/dist/index.js +7137 -2101
- package/dist/index.js.map +1 -1
- package/dist/polyfills/buffer.d.ts +2 -0
- package/dist/polyfills/buffer.js +9 -0
- package/dist/polyfills/buffer.js.map +1 -0
- package/package.json +11 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/polyfills/buffer.ts"],"names":[],"mappings":";;;AAeA,IAAM,gBAAA,GAAmB,UAAA;AAIzB,IAAI,gBAAA,CAAiB,WAAW,MAAA,EAAW;AACzC,EAAA,gBAAA,CAAiB,MAAA,GAAS,MAAA;AAC5B","file":"buffer.js","sourcesContent":["import { Buffer } from \"buffer\";\n\n/**\n * Privy's embedded wallet calls `Buffer.from(...)` while signing, and a browser has no\n * `Buffer`: without this module the first signature fails with Privy's\n * `BUFFER_NOT_DEFINED`. The SDK provides the global so host apps need no polyfill of\n * their own.\n *\n * An existing `Buffer` is never replaced. The host app may have polyfilled it already,\n * and two implementations in one page are worse than either one.\n *\n * The assignment below is this module's whole purpose, so the module must survive a\n * consumer's production tree-shaking: it is listed in the package's `sideEffects` and\n * `tsup.config.ts` keeps it a live `import` in `dist/index.js` rather than inlining it.\n */\nconst globalWithBuffer = globalThis as typeof globalThis & {\n Buffer?: typeof Buffer;\n};\n\nif (globalWithBuffer.Buffer === undefined) {\n globalWithBuffer.Buffer = Buffer;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluent.xyz/connect",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Fluent Connect React widget \u2014 Privy login, ZeroDev smart account, batch operations, and wallet UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
"registry": "https://registry.npmjs.org/"
|
|
30
30
|
},
|
|
31
31
|
"sideEffects": [
|
|
32
|
-
"**/*.css"
|
|
32
|
+
"**/*.css",
|
|
33
|
+
"./dist/polyfills/buffer.js",
|
|
34
|
+
"./src/polyfills/buffer.ts"
|
|
33
35
|
],
|
|
34
36
|
"main": "./dist/index.js",
|
|
35
37
|
"module": "./dist/index.js",
|
|
@@ -74,12 +76,14 @@
|
|
|
74
76
|
"dependencies": {
|
|
75
77
|
"@base-ui/react": "^1.6.0",
|
|
76
78
|
"@privy-io/react-auth": "^2.21.0",
|
|
79
|
+
"@rainbow-me/rainbowkit": "2.2.8",
|
|
77
80
|
"@reown/appkit": "1.8.20",
|
|
78
81
|
"@reown/appkit-adapter-wagmi": "1.8.20",
|
|
79
82
|
"@swapper-finance/deposit-sdk": "^0.2.12",
|
|
80
83
|
"@zerodev/ecdsa-validator": "^5.4.5",
|
|
81
84
|
"@zerodev/permissions": "^5.6.3",
|
|
82
85
|
"@zerodev/sdk": "^5.5.10",
|
|
86
|
+
"buffer": "^6.0.3",
|
|
83
87
|
"class-variance-authority": "^0.7.1",
|
|
84
88
|
"clsx": "^2.1.1",
|
|
85
89
|
"lucide-react": "^1.23.0",
|
|
@@ -97,14 +101,19 @@
|
|
|
97
101
|
"@swapper-finance/deposit-sdk": "^0.2.12",
|
|
98
102
|
"@tailwindcss/cli": "^4.3.2",
|
|
99
103
|
"@tanstack/react-query": "^5.90.11",
|
|
104
|
+
"@testing-library/dom": "^10",
|
|
105
|
+
"@testing-library/react": "^16",
|
|
100
106
|
"@types/react": "^18.3.23",
|
|
101
107
|
"@types/react-dom": "^18.3.7",
|
|
108
|
+
"@wagmi/core": "2.22.1",
|
|
102
109
|
"@zerodev/ecdsa-validator": "^5.4.5",
|
|
103
110
|
"@zerodev/permissions": "^5.6.3",
|
|
104
111
|
"@zerodev/sdk": "^5.5.10",
|
|
112
|
+
"jsdom": "^30",
|
|
105
113
|
"publint": "^0.3.15",
|
|
106
114
|
"react": "^18.3.1",
|
|
107
115
|
"react-dom": "^18.3.1",
|
|
116
|
+
"react-test-renderer": "18.3.1",
|
|
108
117
|
"tailwindcss": "^4.3.2",
|
|
109
118
|
"tsup": "^8.5.0",
|
|
110
119
|
"tw-animate-css": "^1.4.0",
|