@unifold/connect-react 0.1.30 → 0.1.32
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/dist/index.js +11 -2
- package/dist/index.mjs +11 -2
- package/package.json +11 -5
package/dist/index.js
CHANGED
|
@@ -6064,7 +6064,13 @@ var import_react9 = require("react");
|
|
|
6064
6064
|
|
|
6065
6065
|
// ../core/dist/index.mjs
|
|
6066
6066
|
var import_react_query2 = require("@tanstack/react-query");
|
|
6067
|
-
var API_BASE_URL =
|
|
6067
|
+
var API_BASE_URL = (() => {
|
|
6068
|
+
try {
|
|
6069
|
+
return process.env.NEXT_PUBLIC_API_BASE_URL || "https://api.unifold.io";
|
|
6070
|
+
} catch {
|
|
6071
|
+
return "https://api.unifold.io";
|
|
6072
|
+
}
|
|
6073
|
+
})();
|
|
6068
6074
|
var DEFAULT_PUBLISHABLE_KEY = "pk_test_123";
|
|
6069
6075
|
var DEFAULT_CONFIG = {};
|
|
6070
6076
|
function setApiConfig(config) {
|
|
@@ -20214,7 +20220,10 @@ function BrowserWalletModal({
|
|
|
20214
20220
|
},
|
|
20215
20221
|
publishableKey
|
|
20216
20222
|
);
|
|
20217
|
-
const { VersionedTransaction } = await import(
|
|
20223
|
+
const { VersionedTransaction } = await import(
|
|
20224
|
+
/* @vite-ignore */
|
|
20225
|
+
"@solana/web3.js"
|
|
20226
|
+
);
|
|
20218
20227
|
const binaryString = atob(buildResponse.transaction);
|
|
20219
20228
|
const bytes = new Uint8Array(binaryString.length);
|
|
20220
20229
|
for (let i = 0; i < binaryString.length; i++) {
|
package/dist/index.mjs
CHANGED
|
@@ -6038,7 +6038,13 @@ import { useState as useState92, useEffect as useEffect52, useRef as useRef22 }
|
|
|
6038
6038
|
|
|
6039
6039
|
// ../core/dist/index.mjs
|
|
6040
6040
|
import { useQuery } from "@tanstack/react-query";
|
|
6041
|
-
var API_BASE_URL =
|
|
6041
|
+
var API_BASE_URL = (() => {
|
|
6042
|
+
try {
|
|
6043
|
+
return process.env.NEXT_PUBLIC_API_BASE_URL || "https://api.unifold.io";
|
|
6044
|
+
} catch {
|
|
6045
|
+
return "https://api.unifold.io";
|
|
6046
|
+
}
|
|
6047
|
+
})();
|
|
6042
6048
|
var DEFAULT_PUBLISHABLE_KEY = "pk_test_123";
|
|
6043
6049
|
var DEFAULT_CONFIG = {};
|
|
6044
6050
|
function setApiConfig(config) {
|
|
@@ -20188,7 +20194,10 @@ function BrowserWalletModal({
|
|
|
20188
20194
|
},
|
|
20189
20195
|
publishableKey
|
|
20190
20196
|
);
|
|
20191
|
-
const { VersionedTransaction } = await import(
|
|
20197
|
+
const { VersionedTransaction } = await import(
|
|
20198
|
+
/* @vite-ignore */
|
|
20199
|
+
"@solana/web3.js"
|
|
20200
|
+
);
|
|
20192
20201
|
const binaryString = atob(buildResponse.transaction);
|
|
20193
20202
|
const bytes = new Uint8Array(binaryString.length);
|
|
20194
20203
|
for (let i = 0; i < binaryString.length; i++) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifold/connect-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"description": "Unifold Connect React - Complete React SDK with UI components for crypto deposits",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -21,13 +21,19 @@
|
|
|
21
21
|
],
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^18.2.0 || ^19.0.0",
|
|
24
|
-
"react-dom": "^18.2.0 || ^19.0.0"
|
|
24
|
+
"react-dom": "^18.2.0 || ^19.0.0",
|
|
25
|
+
"@solana/web3.js": "^1.87.0"
|
|
26
|
+
},
|
|
27
|
+
"peerDependenciesMeta": {
|
|
28
|
+
"@solana/web3.js": {
|
|
29
|
+
"optional": true
|
|
30
|
+
}
|
|
25
31
|
},
|
|
26
32
|
"dependencies": {
|
|
27
33
|
"@tanstack/react-query": "^5.90.11",
|
|
28
|
-
"@unifold/core": "0.1.
|
|
29
|
-
"@unifold/react-provider": "0.1.
|
|
30
|
-
"@unifold/ui-react": "0.1.
|
|
34
|
+
"@unifold/core": "0.1.32",
|
|
35
|
+
"@unifold/react-provider": "0.1.32",
|
|
36
|
+
"@unifold/ui-react": "0.1.32"
|
|
31
37
|
},
|
|
32
38
|
"devDependencies": {
|
|
33
39
|
"@types/react": "^19.0.0",
|