@unifold/ui-react 0.1.29 → 0.1.31

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 CHANGED
@@ -1437,6 +1437,10 @@ function useDepositPolling({
1437
1437
  const execution = executionToShow;
1438
1438
  const previousStatus = trackedExecutionsRef.current.get(execution.id);
1439
1439
  trackedExecutionsRef.current.set(execution.id, execution.status);
1440
+ const executionCreatedAt = execution.created_at ? new Date(execution.created_at) : null;
1441
+ if (!executionCreatedAt || executionCreatedAt < modalOpenedAtRef.current) {
1442
+ return;
1443
+ }
1440
1444
  setExecutions((prev) => {
1441
1445
  const existingIndex = prev.findIndex((e) => e.id === execution.id);
1442
1446
  if (existingIndex >= 0) {
@@ -7962,7 +7966,7 @@ function TransferCryptoSingleInput({
7962
7966
  ] })
7963
7967
  ] })
7964
7968
  ] }),
7965
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7969
+ wallets && wallets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
7966
7970
  DepositPollingUi,
7967
7971
  {
7968
7972
  depositConfirmationMode,
@@ -8560,7 +8564,7 @@ function TransferCryptoDoubleInput({
8560
8564
  ] })
8561
8565
  ] })
8562
8566
  ] }),
8563
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
8567
+ wallets && wallets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
8564
8568
  DepositPollingUi,
8565
8569
  {
8566
8570
  depositConfirmationMode,
package/dist/index.mjs CHANGED
@@ -1363,6 +1363,10 @@ function useDepositPolling({
1363
1363
  const execution = executionToShow;
1364
1364
  const previousStatus = trackedExecutionsRef.current.get(execution.id);
1365
1365
  trackedExecutionsRef.current.set(execution.id, execution.status);
1366
+ const executionCreatedAt = execution.created_at ? new Date(execution.created_at) : null;
1367
+ if (!executionCreatedAt || executionCreatedAt < modalOpenedAtRef.current) {
1368
+ return;
1369
+ }
1366
1370
  setExecutions((prev) => {
1367
1371
  const existingIndex = prev.findIndex((e) => e.id === execution.id);
1368
1372
  if (existingIndex >= 0) {
@@ -7923,7 +7927,7 @@ function TransferCryptoSingleInput({
7923
7927
  ] })
7924
7928
  ] })
7925
7929
  ] }),
7926
- /* @__PURE__ */ jsx39(
7930
+ wallets && wallets.length > 0 && /* @__PURE__ */ jsx39(
7927
7931
  DepositPollingUi,
7928
7932
  {
7929
7933
  depositConfirmationMode,
@@ -8534,7 +8538,7 @@ function TransferCryptoDoubleInput({
8534
8538
  ] })
8535
8539
  ] })
8536
8540
  ] }),
8537
- /* @__PURE__ */ jsx41(
8541
+ wallets && wallets.length > 0 && /* @__PURE__ */ jsx41(
8538
8542
  DepositPollingUi,
8539
8543
  {
8540
8544
  depositConfirmationMode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifold/ui-react",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "description": "Unifold UI React - Deposit and onramp components for React applications",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -22,8 +22,7 @@
22
22
  "react": "^18.2.0 || ^19.0.0",
23
23
  "react-dom": "^18.2.0 || ^19.0.0",
24
24
  "@solana/web3.js": "^1.87.0",
25
- "@solana/spl-token": "^0.3.8",
26
- "@tanstack/react-query": "^5.0.0"
25
+ "@solana/spl-token": "^0.3.8"
27
26
  },
28
27
  "peerDependenciesMeta": {
29
28
  "@solana/web3.js": {
@@ -38,17 +37,17 @@
38
37
  "@radix-ui/react-select": "^2.0.0",
39
38
  "@radix-ui/react-slot": "^1.0.2",
40
39
  "@radix-ui/react-tooltip": "^1.0.7",
40
+ "@tanstack/react-query": "^5.90.11",
41
41
  "class-variance-authority": "^0.7.0",
42
42
  "clsx": "^2.0.0",
43
43
  "lucide-react": "^0.454.0",
44
44
  "qr-code-styling": "^1.6.0-rc.1",
45
45
  "tailwind-merge": "^2.0.0",
46
- "@unifold/core": "0.1.29"
46
+ "@unifold/core": "0.1.31"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@solana/spl-token": "^0.3.8",
50
50
  "@solana/web3.js": "^1.87.0",
51
- "@tanstack/react-query": "^5.90.11",
52
51
  "@types/react": "^19.0.0",
53
52
  "@types/react-dom": "^19.0.0",
54
53
  "autoprefixer": "^10.4.16",