@fluent.xyz/connect 0.3.2 → 0.4.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.
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,9 @@
1
+ import { Buffer } from 'buffer';
2
+
3
+ // src/polyfills/buffer.ts
4
+ var globalWithBuffer = globalThis;
5
+ if (globalWithBuffer.Buffer === void 0) {
6
+ globalWithBuffer.Buffer = Buffer;
7
+ }
8
+ //# sourceMappingURL=buffer.js.map
9
+ //# sourceMappingURL=buffer.js.map
@@ -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.2",
3
+ "version": "0.4.1",
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",
@@ -45,7 +47,8 @@
45
47
  "files": [
46
48
  "dist",
47
49
  "LICENSE",
48
- "README.md"
50
+ "README.md",
51
+ "INTEGRATION.md"
49
52
  ],
50
53
  "scripts": {
51
54
  "build": "pnpm run build:js && pnpm run build:css",
@@ -74,12 +77,15 @@
74
77
  "dependencies": {
75
78
  "@base-ui/react": "^1.6.0",
76
79
  "@privy-io/react-auth": "^2.21.0",
80
+ "@rainbow-me/rainbowkit": "2.2.8",
77
81
  "@reown/appkit": "1.8.20",
78
82
  "@reown/appkit-adapter-wagmi": "1.8.20",
79
83
  "@swapper-finance/deposit-sdk": "^0.2.12",
84
+ "@wagmi/core": "2.22.1",
80
85
  "@zerodev/ecdsa-validator": "^5.4.5",
81
86
  "@zerodev/permissions": "^5.6.3",
82
87
  "@zerodev/sdk": "^5.5.10",
88
+ "buffer": "^6.0.3",
83
89
  "class-variance-authority": "^0.7.1",
84
90
  "clsx": "^2.1.1",
85
91
  "lucide-react": "^1.23.0",
@@ -97,14 +103,18 @@
97
103
  "@swapper-finance/deposit-sdk": "^0.2.12",
98
104
  "@tailwindcss/cli": "^4.3.2",
99
105
  "@tanstack/react-query": "^5.90.11",
106
+ "@testing-library/dom": "^10",
107
+ "@testing-library/react": "^16",
100
108
  "@types/react": "^18.3.23",
101
109
  "@types/react-dom": "^18.3.7",
102
110
  "@zerodev/ecdsa-validator": "^5.4.5",
103
111
  "@zerodev/permissions": "^5.6.3",
104
112
  "@zerodev/sdk": "^5.5.10",
113
+ "jsdom": "^30",
105
114
  "publint": "^0.3.15",
106
115
  "react": "^18.3.1",
107
116
  "react-dom": "^18.3.1",
117
+ "react-test-renderer": "18.3.1",
108
118
  "tailwindcss": "^4.3.2",
109
119
  "tsup": "^8.5.0",
110
120
  "tw-animate-css": "^1.4.0",