@deframe-sdk/components 0.1.59 → 0.1.60
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 +25 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5245,7 +5245,7 @@ var SwapSignatureWarningViewSimple = ({
|
|
|
5245
5245
|
useEffect(() => {
|
|
5246
5246
|
const timer = setTimeout(() => {
|
|
5247
5247
|
onCancel == null ? void 0 : onCancel();
|
|
5248
|
-
},
|
|
5248
|
+
}, 2e3);
|
|
5249
5249
|
return () => clearTimeout(timer);
|
|
5250
5250
|
}, [onCancel]);
|
|
5251
5251
|
return /* @__PURE__ */ jsxs(
|
|
@@ -5437,7 +5437,12 @@ function SuccessIcon() {
|
|
|
5437
5437
|
}
|
|
5438
5438
|
);
|
|
5439
5439
|
}
|
|
5440
|
-
var SwapSuccessViewSimple = ({ labels }) => {
|
|
5440
|
+
var SwapSuccessViewSimple = ({ labels, onClose }) => {
|
|
5441
|
+
React6__default.useEffect(() => {
|
|
5442
|
+
if (!onClose) return;
|
|
5443
|
+
const timer = setTimeout(onClose, 2e3);
|
|
5444
|
+
return () => clearTimeout(timer);
|
|
5445
|
+
}, [onClose]);
|
|
5441
5446
|
return /* @__PURE__ */ jsxs(
|
|
5442
5447
|
"div",
|
|
5443
5448
|
{
|
|
@@ -5639,8 +5644,14 @@ function ErrorIcon() {
|
|
|
5639
5644
|
}
|
|
5640
5645
|
var SwapTransactionFailedViewSimple = ({
|
|
5641
5646
|
errorTitle,
|
|
5642
|
-
errorDescription
|
|
5647
|
+
errorDescription,
|
|
5648
|
+
onBack
|
|
5643
5649
|
}) => {
|
|
5650
|
+
React6__default.useEffect(() => {
|
|
5651
|
+
if (!onBack) return;
|
|
5652
|
+
const timer = setTimeout(onBack, 2e3);
|
|
5653
|
+
return () => clearTimeout(timer);
|
|
5654
|
+
}, [onBack]);
|
|
5644
5655
|
return /* @__PURE__ */ jsxs(
|
|
5645
5656
|
"div",
|
|
5646
5657
|
{
|
|
@@ -13398,7 +13409,7 @@ var EarnDepositSuccessSimpleView = ({
|
|
|
13398
13409
|
}) => {
|
|
13399
13410
|
React6__default.useEffect(() => {
|
|
13400
13411
|
if (!onClose) return;
|
|
13401
|
-
const timer = setTimeout(onClose,
|
|
13412
|
+
const timer = setTimeout(onClose, 2e3);
|
|
13402
13413
|
return () => clearTimeout(timer);
|
|
13403
13414
|
}, [onClose]);
|
|
13404
13415
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "earn-deposit-success-simple-view", children: /* @__PURE__ */ jsx(
|
|
@@ -13488,7 +13499,7 @@ var EarnDepositWarningSimpleView = ({
|
|
|
13488
13499
|
}) => {
|
|
13489
13500
|
React6__default.useEffect(() => {
|
|
13490
13501
|
if (!onBack) return;
|
|
13491
|
-
const timer = setTimeout(onBack,
|
|
13502
|
+
const timer = setTimeout(onBack, 2e3);
|
|
13492
13503
|
return () => clearTimeout(timer);
|
|
13493
13504
|
}, [onBack]);
|
|
13494
13505
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "earn-deposit-warning-simple-view", children: /* @__PURE__ */ jsx(
|
|
@@ -13580,7 +13591,7 @@ var EarnDepositFailedSimpleView = ({
|
|
|
13580
13591
|
}) => {
|
|
13581
13592
|
React6__default.useEffect(() => {
|
|
13582
13593
|
if (!onBack) return;
|
|
13583
|
-
const timer = setTimeout(onBack,
|
|
13594
|
+
const timer = setTimeout(onBack, 2e3);
|
|
13584
13595
|
return () => clearTimeout(timer);
|
|
13585
13596
|
}, [onBack]);
|
|
13586
13597
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "earn-deposit-failed-simple-view", children: /* @__PURE__ */ jsx(
|
|
@@ -13766,7 +13777,7 @@ var EarnWithdrawSuccessSimpleView = ({
|
|
|
13766
13777
|
}) => {
|
|
13767
13778
|
React6__default.useEffect(() => {
|
|
13768
13779
|
if (!onClose) return;
|
|
13769
|
-
const timer = setTimeout(onClose,
|
|
13780
|
+
const timer = setTimeout(onClose, 2e3);
|
|
13770
13781
|
return () => clearTimeout(timer);
|
|
13771
13782
|
}, [onClose]);
|
|
13772
13783
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "earn-withdraw-success-simple-view", children: /* @__PURE__ */ jsx(
|
|
@@ -13856,7 +13867,7 @@ var EarnWithdrawWarningSimpleView = ({
|
|
|
13856
13867
|
}) => {
|
|
13857
13868
|
React6__default.useEffect(() => {
|
|
13858
13869
|
if (!onBack) return;
|
|
13859
|
-
const timer = setTimeout(onBack,
|
|
13870
|
+
const timer = setTimeout(onBack, 2e3);
|
|
13860
13871
|
return () => clearTimeout(timer);
|
|
13861
13872
|
}, [onBack]);
|
|
13862
13873
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "earn-withdraw-warning-simple-view", children: /* @__PURE__ */ jsx(
|
|
@@ -13948,7 +13959,7 @@ var EarnWithdrawFailedSimpleView = ({
|
|
|
13948
13959
|
}) => {
|
|
13949
13960
|
React6__default.useEffect(() => {
|
|
13950
13961
|
if (!onBack) return;
|
|
13951
|
-
const timer = setTimeout(onBack,
|
|
13962
|
+
const timer = setTimeout(onBack, 2e3);
|
|
13952
13963
|
return () => clearTimeout(timer);
|
|
13953
13964
|
}, [onBack]);
|
|
13954
13965
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "earn-withdraw-failed-simple-view", children: /* @__PURE__ */ jsx(
|
|
@@ -14669,7 +14680,7 @@ var OnchainDepositSuccessSimpleView = ({
|
|
|
14669
14680
|
}) => {
|
|
14670
14681
|
React6.useEffect(() => {
|
|
14671
14682
|
if (!onClose) return;
|
|
14672
|
-
const timer = setTimeout(onClose,
|
|
14683
|
+
const timer = setTimeout(onClose, 2e3);
|
|
14673
14684
|
return () => clearTimeout(timer);
|
|
14674
14685
|
}, [onClose]);
|
|
14675
14686
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "onchain-deposit-success-simple-view", children: /* @__PURE__ */ jsx(
|
|
@@ -15582,7 +15593,7 @@ var OnchainWithdrawSuccessSimpleView = ({
|
|
|
15582
15593
|
}) => {
|
|
15583
15594
|
React6.useEffect(() => {
|
|
15584
15595
|
if (!onClose) return;
|
|
15585
|
-
const timer = setTimeout(onClose,
|
|
15596
|
+
const timer = setTimeout(onClose, 2e3);
|
|
15586
15597
|
return () => clearTimeout(timer);
|
|
15587
15598
|
}, [onClose]);
|
|
15588
15599
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "onchain-withdraw-success-simple-view", children: /* @__PURE__ */ jsx(
|
|
@@ -16062,7 +16073,7 @@ var OnchainWithdrawSignatureWarningSimpleView = ({
|
|
|
16062
16073
|
}) => {
|
|
16063
16074
|
React6.useEffect(() => {
|
|
16064
16075
|
if (!onCancel) return;
|
|
16065
|
-
const timer = setTimeout(onCancel,
|
|
16076
|
+
const timer = setTimeout(onCancel, 2e3);
|
|
16066
16077
|
return () => clearTimeout(timer);
|
|
16067
16078
|
}, [onCancel]);
|
|
16068
16079
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "onchain-withdraw-signature-warning-simple-view", children: /* @__PURE__ */ jsx(
|
|
@@ -17013,7 +17024,7 @@ var OnrampSuccessSimpleView = ({
|
|
|
17013
17024
|
}) => {
|
|
17014
17025
|
React6.useEffect(() => {
|
|
17015
17026
|
if (!onGoToDashboard) return;
|
|
17016
|
-
const timer = setTimeout(onGoToDashboard,
|
|
17027
|
+
const timer = setTimeout(onGoToDashboard, 2e3);
|
|
17017
17028
|
return () => clearTimeout(timer);
|
|
17018
17029
|
}, [onGoToDashboard]);
|
|
17019
17030
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "onramp-success-simple-view", children: /* @__PURE__ */ jsx(
|
|
@@ -18011,7 +18022,7 @@ var OfframpSuccessSimpleView = ({
|
|
|
18011
18022
|
}) => {
|
|
18012
18023
|
React6.useEffect(() => {
|
|
18013
18024
|
if (!onClose) return;
|
|
18014
|
-
const timer = setTimeout(onClose,
|
|
18025
|
+
const timer = setTimeout(onClose, 2e3);
|
|
18015
18026
|
return () => clearTimeout(timer);
|
|
18016
18027
|
}, [onClose]);
|
|
18017
18028
|
return /* @__PURE__ */ jsx("div", { "data-test-id": "offramp-success-simple-view", children: /* @__PURE__ */ jsx(
|