droplinked-web3-ui 0.0.9 → 0.0.10
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.cjs +2 -2
- package/dist/index.js +53 -42
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75398,45 +75398,72 @@ appDevelopment && usePaymentUiStore.subscribe((n, t) => {
|
|
|
75398
75398
|
nextState: n
|
|
75399
75399
|
});
|
|
75400
75400
|
});
|
|
75401
|
-
const DropWeb3Context = createContext$2(null)
|
|
75401
|
+
const DropWeb3Context = createContext$2(null), useClaimNftStore = create((n) => ({
|
|
75402
|
+
orderId: "",
|
|
75403
|
+
skuId: "",
|
|
75404
|
+
onError: () => {
|
|
75405
|
+
},
|
|
75406
|
+
onMainProcessSuccess: () => {
|
|
75407
|
+
},
|
|
75408
|
+
buttonText: "Claim NFT",
|
|
75409
|
+
isButtonDisabled: !1,
|
|
75410
|
+
currentDescription: "",
|
|
75411
|
+
currentError: "",
|
|
75412
|
+
currentErrorDescription: "",
|
|
75413
|
+
setClaimNftData: (t) => n((c) => ({
|
|
75414
|
+
...c,
|
|
75415
|
+
...t
|
|
75416
|
+
}))
|
|
75417
|
+
}));
|
|
75402
75418
|
function DropWeb3Provider(n) {
|
|
75403
|
-
const t = compilerRuntimeExports.c(
|
|
75419
|
+
const t = compilerRuntimeExports.c(14), {
|
|
75404
75420
|
children: c
|
|
75405
75421
|
} = n, {
|
|
75406
75422
|
setPaymentUiData: ie,
|
|
75407
75423
|
onError: se
|
|
75408
|
-
} = usePaymentUiStore()
|
|
75409
|
-
|
|
75410
|
-
|
|
75411
|
-
|
|
75424
|
+
} = usePaymentUiStore(), {
|
|
75425
|
+
setClaimNftData: ae,
|
|
75426
|
+
onError: ue,
|
|
75427
|
+
skuId: de
|
|
75428
|
+
} = useClaimNftStore();
|
|
75429
|
+
let be;
|
|
75430
|
+
t[0] !== ue || t[1] !== se || t[2] !== ae || t[3] !== ie || t[4] !== de ? (be = new DropWeb3(appDevelopment ? Network.TESTNET : Network.MAINNET, {
|
|
75431
|
+
async changeStep(ze) {
|
|
75412
75432
|
ie({
|
|
75413
|
-
currentDescription:
|
|
75433
|
+
currentDescription: ze
|
|
75434
|
+
}), de && ae({
|
|
75435
|
+
currentDescription: ze
|
|
75414
75436
|
});
|
|
75415
75437
|
},
|
|
75416
|
-
async error(
|
|
75438
|
+
async error(ze, He) {
|
|
75417
75439
|
ie({
|
|
75418
|
-
currentError:
|
|
75419
|
-
currentErrorDescription:
|
|
75420
|
-
}),
|
|
75421
|
-
|
|
75422
|
-
|
|
75440
|
+
currentError: ze,
|
|
75441
|
+
currentErrorDescription: He
|
|
75442
|
+
}), de && (ae({
|
|
75443
|
+
currentError: ze,
|
|
75444
|
+
currentErrorDescription: He
|
|
75445
|
+
}), ue(ze)), se(ze);
|
|
75446
|
+
},
|
|
75447
|
+
async success(ze) {
|
|
75423
75448
|
ie({
|
|
75424
|
-
currentDescription:
|
|
75449
|
+
currentDescription: ze
|
|
75450
|
+
}), de && ae({
|
|
75451
|
+
currentDescription: ze
|
|
75425
75452
|
});
|
|
75426
75453
|
},
|
|
75427
75454
|
name: "custom-stepizer"
|
|
75428
|
-
}), t[0] =
|
|
75429
|
-
const
|
|
75430
|
-
let de;
|
|
75431
|
-
t[3] !== ue ? (de = ue.getProvider(), t[3] = ue, t[4] = de) : de = t[4];
|
|
75432
|
-
const be = de;
|
|
75433
|
-
let me;
|
|
75434
|
-
t[5] !== be || t[6] !== ue ? (me = {
|
|
75435
|
-
web3: ue,
|
|
75436
|
-
provider: be
|
|
75437
|
-
}, t[5] = be, t[6] = ue, t[7] = me) : me = t[7];
|
|
75455
|
+
}), t[0] = ue, t[1] = se, t[2] = ae, t[3] = ie, t[4] = de, t[5] = be) : be = t[5];
|
|
75456
|
+
const me = be;
|
|
75438
75457
|
let we;
|
|
75439
|
-
|
|
75458
|
+
t[6] !== me ? (we = me.getProvider(), t[6] = me, t[7] = we) : we = t[7];
|
|
75459
|
+
const Te = we;
|
|
75460
|
+
let Ne;
|
|
75461
|
+
t[8] !== Te || t[9] !== me ? (Ne = {
|
|
75462
|
+
web3: me,
|
|
75463
|
+
provider: Te
|
|
75464
|
+
}, t[8] = Te, t[9] = me, t[10] = Ne) : Ne = t[10];
|
|
75465
|
+
let qe;
|
|
75466
|
+
return t[11] !== c || t[12] !== Ne ? (qe = /* @__PURE__ */ jsxRuntimeExports.jsx(DropWeb3Context.Provider, { value: Ne, children: c }), t[11] = c, t[12] = Ne, t[13] = qe) : qe = t[13], qe;
|
|
75440
75467
|
}
|
|
75441
75468
|
const IconCoins = (n) => {
|
|
75442
75469
|
const t = compilerRuntimeExports.c(3);
|
|
@@ -106911,23 +106938,7 @@ function DroplinkedWeb3Ui(n) {
|
|
|
106911
106938
|
let ie;
|
|
106912
106939
|
return t[2] !== c ? (ie = /* @__PURE__ */ jsxRuntimeExports.jsx(Dn, { system: an, children: /* @__PURE__ */ jsxRuntimeExports.jsx(QueryClientProvider, { client: queryClient$1, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PaymentUi, { ...c }) }) }), t[2] = c, t[3] = ie) : ie = t[3], ie;
|
|
106913
106940
|
}
|
|
106914
|
-
const
|
|
106915
|
-
orderId: "",
|
|
106916
|
-
skuId: "",
|
|
106917
|
-
onError: () => {
|
|
106918
|
-
},
|
|
106919
|
-
onMainProcessSuccess: () => {
|
|
106920
|
-
},
|
|
106921
|
-
buttonText: "Claim NFT",
|
|
106922
|
-
isButtonDisabled: !1,
|
|
106923
|
-
currentDescription: "",
|
|
106924
|
-
currentError: "",
|
|
106925
|
-
currentErrorDescription: "",
|
|
106926
|
-
setClaimNftData: (t) => n((c) => ({
|
|
106927
|
-
...c,
|
|
106928
|
-
...t
|
|
106929
|
-
}))
|
|
106930
|
-
})), getStatusTitle = (n, t) => {
|
|
106941
|
+
const getStatusTitle = (n, t) => {
|
|
106931
106942
|
switch (t) {
|
|
106932
106943
|
case "loading":
|
|
106933
106944
|
return "Opening Wallet and Claiming NFT...";
|