@unifold/connect-react 0.1.29 → 0.1.30
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 +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +6 -7
package/dist/index.js
CHANGED
|
@@ -12146,6 +12146,10 @@ function useDepositPolling({
|
|
|
12146
12146
|
const execution = executionToShow;
|
|
12147
12147
|
const previousStatus = trackedExecutionsRef.current.get(execution.id);
|
|
12148
12148
|
trackedExecutionsRef.current.set(execution.id, execution.status);
|
|
12149
|
+
const executionCreatedAt = execution.created_at ? new Date(execution.created_at) : null;
|
|
12150
|
+
if (!executionCreatedAt || executionCreatedAt < modalOpenedAtRef.current) {
|
|
12151
|
+
return;
|
|
12152
|
+
}
|
|
12149
12153
|
setExecutions((prev) => {
|
|
12150
12154
|
const existingIndex = prev.findIndex((e) => e.id === execution.id);
|
|
12151
12155
|
if (existingIndex >= 0) {
|
|
@@ -18460,7 +18464,7 @@ function TransferCryptoSingleInput({
|
|
|
18460
18464
|
] })
|
|
18461
18465
|
] })
|
|
18462
18466
|
] }),
|
|
18463
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
18467
|
+
wallets && wallets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
18464
18468
|
DepositPollingUi,
|
|
18465
18469
|
{
|
|
18466
18470
|
depositConfirmationMode,
|
|
@@ -19043,7 +19047,7 @@ function TransferCryptoDoubleInput({
|
|
|
19043
19047
|
] })
|
|
19044
19048
|
] })
|
|
19045
19049
|
] }),
|
|
19046
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
19050
|
+
wallets && wallets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
19047
19051
|
DepositPollingUi,
|
|
19048
19052
|
{
|
|
19049
19053
|
depositConfirmationMode,
|
package/dist/index.mjs
CHANGED
|
@@ -12120,6 +12120,10 @@ function useDepositPolling({
|
|
|
12120
12120
|
const execution = executionToShow;
|
|
12121
12121
|
const previousStatus = trackedExecutionsRef.current.get(execution.id);
|
|
12122
12122
|
trackedExecutionsRef.current.set(execution.id, execution.status);
|
|
12123
|
+
const executionCreatedAt = execution.created_at ? new Date(execution.created_at) : null;
|
|
12124
|
+
if (!executionCreatedAt || executionCreatedAt < modalOpenedAtRef.current) {
|
|
12125
|
+
return;
|
|
12126
|
+
}
|
|
12123
12127
|
setExecutions((prev) => {
|
|
12124
12128
|
const existingIndex = prev.findIndex((e) => e.id === execution.id);
|
|
12125
12129
|
if (existingIndex >= 0) {
|
|
@@ -18434,7 +18438,7 @@ function TransferCryptoSingleInput({
|
|
|
18434
18438
|
] })
|
|
18435
18439
|
] })
|
|
18436
18440
|
] }),
|
|
18437
|
-
/* @__PURE__ */ jsx39(
|
|
18441
|
+
wallets && wallets.length > 0 && /* @__PURE__ */ jsx39(
|
|
18438
18442
|
DepositPollingUi,
|
|
18439
18443
|
{
|
|
18440
18444
|
depositConfirmationMode,
|
|
@@ -19017,7 +19021,7 @@ function TransferCryptoDoubleInput({
|
|
|
19017
19021
|
] })
|
|
19018
19022
|
] })
|
|
19019
19023
|
] }),
|
|
19020
|
-
/* @__PURE__ */ jsx41(
|
|
19024
|
+
wallets && wallets.length > 0 && /* @__PURE__ */ jsx41(
|
|
19021
19025
|
DepositPollingUi,
|
|
19022
19026
|
{
|
|
19023
19027
|
depositConfirmationMode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifold/connect-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
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,16 +21,15 @@
|
|
|
21
21
|
],
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^18.2.0 || ^19.0.0",
|
|
24
|
-
"react-dom": "^18.2.0 || ^19.0.0"
|
|
25
|
-
"@tanstack/react-query": "^5.0.0"
|
|
24
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
26
25
|
},
|
|
27
26
|
"dependencies": {
|
|
28
|
-
"@
|
|
29
|
-
"@unifold/
|
|
30
|
-
"@unifold/react-provider": "0.1.
|
|
27
|
+
"@tanstack/react-query": "^5.90.11",
|
|
28
|
+
"@unifold/core": "0.1.30",
|
|
29
|
+
"@unifold/react-provider": "0.1.30",
|
|
30
|
+
"@unifold/ui-react": "0.1.30"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tanstack/react-query": "^5.90.11",
|
|
34
33
|
"@types/react": "^19.0.0",
|
|
35
34
|
"@types/react-dom": "^19.0.0",
|
|
36
35
|
"tsup": "^8.0.0",
|