@meshsdk/react 1.9.0-beta.10 → 1.9.0-beta.12
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 +8 -5
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -5
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -24374,7 +24374,8 @@ function ScreenMain({
|
|
|
24374
24374
|
persist,
|
|
24375
24375
|
cardanoPeerConnect,
|
|
24376
24376
|
burnerWallet,
|
|
24377
|
-
webauthn
|
|
24377
|
+
webauthn,
|
|
24378
|
+
showDownload
|
|
24378
24379
|
}) {
|
|
24379
24380
|
const wallets = useWalletList({ injectFn });
|
|
24380
24381
|
const { connect: connect2 } = useWallet();
|
|
@@ -24421,7 +24422,7 @@ function ScreenMain({
|
|
|
24421
24422
|
}
|
|
24422
24423
|
}
|
|
24423
24424
|
),
|
|
24424
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
24425
|
+
showDownload && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
24425
24426
|
WalletIcon,
|
|
24426
24427
|
{
|
|
24427
24428
|
iconReactNode: IconDownload(),
|
|
@@ -24630,7 +24631,8 @@ var CardanoWallet = ({
|
|
|
24630
24631
|
injectFn = void 0,
|
|
24631
24632
|
cardanoPeerConnect = void 0,
|
|
24632
24633
|
burnerWallet = void 0,
|
|
24633
|
-
webauthn = void 0
|
|
24634
|
+
webauthn = void 0,
|
|
24635
|
+
showDownload = true
|
|
24634
24636
|
}) => {
|
|
24635
24637
|
const [open, setOpen] = (0, import_react13.useState)(false);
|
|
24636
24638
|
const [screen, setScreen] = (0, import_react13.useState)("main");
|
|
@@ -24644,7 +24646,7 @@ var CardanoWallet = ({
|
|
|
24644
24646
|
}
|
|
24645
24647
|
}, [connected, wallet]);
|
|
24646
24648
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Dialog, { open, onOpenChange: setOpen, children: [
|
|
24647
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: isDark ? "mesh-dark" : "", children: !connected ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "outline", children: label }) }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ConnectedButton, {}) }),
|
|
24649
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: isDark ? "mesh-dark" : "", children: !connected ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DialogTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "outline", className: isDark ? "mesh-dark" : "", children: label }) }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ConnectedButton, {}) }),
|
|
24648
24650
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
24649
24651
|
DialogContent,
|
|
24650
24652
|
{
|
|
@@ -24662,7 +24664,8 @@ var CardanoWallet = ({
|
|
|
24662
24664
|
persist,
|
|
24663
24665
|
cardanoPeerConnect: cardanoPeerConnect != void 0,
|
|
24664
24666
|
burnerWallet: burnerWallet != void 0,
|
|
24665
|
-
webauthn: webauthn != void 0
|
|
24667
|
+
webauthn: webauthn != void 0,
|
|
24668
|
+
showDownload
|
|
24666
24669
|
}
|
|
24667
24670
|
),
|
|
24668
24671
|
screen == "p2p" && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
package/dist/index.d.cts
CHANGED
|
@@ -26,8 +26,9 @@ interface ButtonProps$1 {
|
|
|
26
26
|
provider: IFetcher & ISubmitter;
|
|
27
27
|
url: string;
|
|
28
28
|
};
|
|
29
|
+
showDownload?: boolean;
|
|
29
30
|
}
|
|
30
|
-
declare const CardanoWallet: ({ label, onConnected, isDark, persist, extensions, injectFn, cardanoPeerConnect, burnerWallet, webauthn, }: ButtonProps$1) => react_jsx_runtime.JSX.Element;
|
|
31
|
+
declare const CardanoWallet: ({ label, onConnected, isDark, persist, extensions, injectFn, cardanoPeerConnect, burnerWallet, webauthn, showDownload, }: ButtonProps$1) => react_jsx_runtime.JSX.Element;
|
|
31
32
|
|
|
32
33
|
declare enum WalletState {
|
|
33
34
|
NOT_CONNECTED = "NOT_CONNECTED",
|
package/dist/index.d.ts
CHANGED
|
@@ -26,8 +26,9 @@ interface ButtonProps$1 {
|
|
|
26
26
|
provider: IFetcher & ISubmitter;
|
|
27
27
|
url: string;
|
|
28
28
|
};
|
|
29
|
+
showDownload?: boolean;
|
|
29
30
|
}
|
|
30
|
-
declare const CardanoWallet: ({ label, onConnected, isDark, persist, extensions, injectFn, cardanoPeerConnect, burnerWallet, webauthn, }: ButtonProps$1) => react_jsx_runtime.JSX.Element;
|
|
31
|
+
declare const CardanoWallet: ({ label, onConnected, isDark, persist, extensions, injectFn, cardanoPeerConnect, burnerWallet, webauthn, showDownload, }: ButtonProps$1) => react_jsx_runtime.JSX.Element;
|
|
31
32
|
|
|
32
33
|
declare enum WalletState {
|
|
33
34
|
NOT_CONNECTED = "NOT_CONNECTED",
|
package/dist/index.js
CHANGED
|
@@ -24353,7 +24353,8 @@ function ScreenMain({
|
|
|
24353
24353
|
persist,
|
|
24354
24354
|
cardanoPeerConnect,
|
|
24355
24355
|
burnerWallet,
|
|
24356
|
-
webauthn
|
|
24356
|
+
webauthn,
|
|
24357
|
+
showDownload
|
|
24357
24358
|
}) {
|
|
24358
24359
|
const wallets = useWalletList({ injectFn });
|
|
24359
24360
|
const { connect: connect2 } = useWallet();
|
|
@@ -24400,7 +24401,7 @@ function ScreenMain({
|
|
|
24400
24401
|
}
|
|
24401
24402
|
}
|
|
24402
24403
|
),
|
|
24403
|
-
/* @__PURE__ */ jsx14(
|
|
24404
|
+
showDownload && /* @__PURE__ */ jsx14(
|
|
24404
24405
|
WalletIcon,
|
|
24405
24406
|
{
|
|
24406
24407
|
iconReactNode: IconDownload(),
|
|
@@ -24609,7 +24610,8 @@ var CardanoWallet = ({
|
|
|
24609
24610
|
injectFn = void 0,
|
|
24610
24611
|
cardanoPeerConnect = void 0,
|
|
24611
24612
|
burnerWallet = void 0,
|
|
24612
|
-
webauthn = void 0
|
|
24613
|
+
webauthn = void 0,
|
|
24614
|
+
showDownload = true
|
|
24613
24615
|
}) => {
|
|
24614
24616
|
const [open, setOpen] = useState12(false);
|
|
24615
24617
|
const [screen, setScreen] = useState12("main");
|
|
@@ -24623,7 +24625,7 @@ var CardanoWallet = ({
|
|
|
24623
24625
|
}
|
|
24624
24626
|
}, [connected, wallet]);
|
|
24625
24627
|
return /* @__PURE__ */ jsxs13(Dialog, { open, onOpenChange: setOpen, children: [
|
|
24626
|
-
/* @__PURE__ */ jsx19("div", { className: isDark ? "mesh-dark" : "", children: !connected ? /* @__PURE__ */ jsx19(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx19(Button, { variant: "outline", children: label }) }) : /* @__PURE__ */ jsx19(ConnectedButton, {}) }),
|
|
24628
|
+
/* @__PURE__ */ jsx19("div", { className: isDark ? "mesh-dark" : "", children: !connected ? /* @__PURE__ */ jsx19(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx19(Button, { variant: "outline", className: isDark ? "mesh-dark" : "", children: label }) }) : /* @__PURE__ */ jsx19(ConnectedButton, {}) }),
|
|
24627
24629
|
/* @__PURE__ */ jsxs13(
|
|
24628
24630
|
DialogContent,
|
|
24629
24631
|
{
|
|
@@ -24641,7 +24643,8 @@ var CardanoWallet = ({
|
|
|
24641
24643
|
persist,
|
|
24642
24644
|
cardanoPeerConnect: cardanoPeerConnect != void 0,
|
|
24643
24645
|
burnerWallet: burnerWallet != void 0,
|
|
24644
|
-
webauthn: webauthn != void 0
|
|
24646
|
+
webauthn: webauthn != void 0,
|
|
24647
|
+
showDownload
|
|
24645
24648
|
}
|
|
24646
24649
|
),
|
|
24647
24650
|
screen == "p2p" && /* @__PURE__ */ jsx19(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/react",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.12",
|
|
4
4
|
"description": "React component library - https://meshjs.dev/react",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@fabianbormann/cardano-peer-connect": "^1.2.18",
|
|
33
|
-
"@meshsdk/common": "1.9.0-beta.
|
|
34
|
-
"@meshsdk/transaction": "1.9.0-beta.
|
|
35
|
-
"@meshsdk/wallet": "1.9.0-beta.
|
|
33
|
+
"@meshsdk/common": "1.9.0-beta.12",
|
|
34
|
+
"@meshsdk/transaction": "1.9.0-beta.12",
|
|
35
|
+
"@meshsdk/wallet": "1.9.0-beta.12",
|
|
36
36
|
"@radix-ui/react-dialog": "^1.1.2",
|
|
37
37
|
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
|
38
38
|
"@radix-ui/react-icons": "^1.3.2",
|