@meshsdk/react 1.9.0-beta.50 → 1.9.0-beta.52
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 +180 -116
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +165 -101
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -23633,6 +23633,7 @@ var useWalletStore = () => {
|
|
|
23633
23633
|
const [web3UserData, setWeb3UserData] = useState(
|
|
23634
23634
|
void 0
|
|
23635
23635
|
);
|
|
23636
|
+
const [connectedBitcoinWallet, setConnectedBitcoinWallet] = useState({});
|
|
23636
23637
|
const connectWallet = useCallback(
|
|
23637
23638
|
async (walletName, persist) => {
|
|
23638
23639
|
setConnectingWallet(true);
|
|
@@ -23683,6 +23684,14 @@ var useWalletStore = () => {
|
|
|
23683
23684
|
},
|
|
23684
23685
|
[]
|
|
23685
23686
|
);
|
|
23687
|
+
const setBitcoinWallet = useCallback(
|
|
23688
|
+
async (walletInstance, walletName) => {
|
|
23689
|
+
setConnectedBitcoinWallet(walletInstance);
|
|
23690
|
+
setConnectedWalletName(walletName);
|
|
23691
|
+
setState("CONNECTED" /* CONNECTED */);
|
|
23692
|
+
},
|
|
23693
|
+
[]
|
|
23694
|
+
);
|
|
23686
23695
|
const setPersist = useCallback((persist) => {
|
|
23687
23696
|
setPersistSession(persist);
|
|
23688
23697
|
}, []);
|
|
@@ -23694,9 +23703,13 @@ var useWalletStore = () => {
|
|
|
23694
23703
|
address2 = await connectedWalletInstance.getChangeAddress();
|
|
23695
23704
|
setAddress(address2);
|
|
23696
23705
|
}
|
|
23706
|
+
if (Object.keys(connectedBitcoinWallet).length > 0 && address.length === 0) {
|
|
23707
|
+
let address2 = await connectedBitcoinWallet.getChangeAddress();
|
|
23708
|
+
setAddress(address2);
|
|
23709
|
+
}
|
|
23697
23710
|
}
|
|
23698
23711
|
load();
|
|
23699
|
-
}, [connectedWalletInstance]);
|
|
23712
|
+
}, [connectedWalletInstance, connectedBitcoinWallet]);
|
|
23700
23713
|
useEffect(() => {
|
|
23701
23714
|
const persist = localStorage.getItem(localstoragePersist);
|
|
23702
23715
|
if (persistSession && persist) {
|
|
@@ -23725,11 +23738,13 @@ var useWalletStore = () => {
|
|
|
23725
23738
|
return {
|
|
23726
23739
|
hasConnectedWallet: INITIAL_STATE.walletName !== connectedWalletName,
|
|
23727
23740
|
connectedWalletInstance,
|
|
23741
|
+
connectedBitcoinWallet,
|
|
23728
23742
|
connectedWalletName,
|
|
23729
23743
|
connectingWallet,
|
|
23730
23744
|
connectWallet,
|
|
23731
23745
|
disconnect,
|
|
23732
23746
|
setWallet,
|
|
23747
|
+
setBitcoinWallet,
|
|
23733
23748
|
setPersist,
|
|
23734
23749
|
setWeb3Services,
|
|
23735
23750
|
web3UserData,
|
|
@@ -23742,6 +23757,7 @@ var useWalletStore = () => {
|
|
|
23742
23757
|
var WalletContext = createContext({
|
|
23743
23758
|
hasConnectedWallet: false,
|
|
23744
23759
|
connectedWalletInstance: INITIAL_STATE.walletInstance,
|
|
23760
|
+
connectedBitcoinWallet: {},
|
|
23745
23761
|
connectedWalletName: INITIAL_STATE.walletName,
|
|
23746
23762
|
connectingWallet: false,
|
|
23747
23763
|
connectWallet: async () => {
|
|
@@ -23750,6 +23766,8 @@ var WalletContext = createContext({
|
|
|
23750
23766
|
},
|
|
23751
23767
|
setWallet: async () => {
|
|
23752
23768
|
},
|
|
23769
|
+
setBitcoinWallet: async () => {
|
|
23770
|
+
},
|
|
23753
23771
|
setPersist: () => {
|
|
23754
23772
|
},
|
|
23755
23773
|
setWeb3Services: () => {
|
|
@@ -23877,6 +23895,7 @@ var useWallet = () => {
|
|
|
23877
23895
|
connectWallet,
|
|
23878
23896
|
disconnect,
|
|
23879
23897
|
setWallet,
|
|
23898
|
+
setBitcoinWallet,
|
|
23880
23899
|
setPersist,
|
|
23881
23900
|
setWeb3Services,
|
|
23882
23901
|
web3UserData,
|
|
@@ -23898,6 +23917,7 @@ var useWallet = () => {
|
|
|
23898
23917
|
connect: connectWallet,
|
|
23899
23918
|
disconnect,
|
|
23900
23919
|
setWallet,
|
|
23920
|
+
setBitcoinWallet,
|
|
23901
23921
|
setPersist,
|
|
23902
23922
|
setWeb3Services,
|
|
23903
23923
|
web3UserData,
|
|
@@ -24215,8 +24235,38 @@ function ScreenBurner({
|
|
|
24215
24235
|
] }) });
|
|
24216
24236
|
}
|
|
24217
24237
|
|
|
24238
|
+
// src/cardano-wallet/screen-main.tsx
|
|
24239
|
+
import { BrowserWallet as BrowserWallet3 } from "@meshsdk/bitcoin";
|
|
24240
|
+
|
|
24241
|
+
// src/common/icons/icon-bitcoin.tsx
|
|
24242
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
24243
|
+
function IconBitcoin() {
|
|
24244
|
+
return /* @__PURE__ */ jsx8(
|
|
24245
|
+
"svg",
|
|
24246
|
+
{
|
|
24247
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24248
|
+
width: "24",
|
|
24249
|
+
height: "24",
|
|
24250
|
+
viewBox: "0 0 24 24",
|
|
24251
|
+
fill: "none",
|
|
24252
|
+
stroke: "currentColor",
|
|
24253
|
+
"stroke-width": "2",
|
|
24254
|
+
"stroke-linecap": "round",
|
|
24255
|
+
"stroke-linejoin": "round",
|
|
24256
|
+
style: {
|
|
24257
|
+
color: "#CC9900",
|
|
24258
|
+
width: "24px",
|
|
24259
|
+
height: "24px",
|
|
24260
|
+
strokeWidth: "1px"
|
|
24261
|
+
},
|
|
24262
|
+
className: "hover:mesh-fill-white",
|
|
24263
|
+
children: /* @__PURE__ */ jsx8("path", { d: "M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727" })
|
|
24264
|
+
}
|
|
24265
|
+
);
|
|
24266
|
+
}
|
|
24267
|
+
|
|
24218
24268
|
// src/common/icons/icon-book-dashed.tsx
|
|
24219
|
-
import { jsx as
|
|
24269
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
24220
24270
|
function IconBookDashed() {
|
|
24221
24271
|
return /* @__PURE__ */ jsxs5(
|
|
24222
24272
|
"svg",
|
|
@@ -24238,24 +24288,24 @@ function IconBookDashed() {
|
|
|
24238
24288
|
},
|
|
24239
24289
|
className: "hover:mesh-fill-white",
|
|
24240
24290
|
children: [
|
|
24241
|
-
/* @__PURE__ */
|
|
24242
|
-
/* @__PURE__ */
|
|
24243
|
-
/* @__PURE__ */
|
|
24244
|
-
/* @__PURE__ */
|
|
24245
|
-
/* @__PURE__ */
|
|
24246
|
-
/* @__PURE__ */
|
|
24247
|
-
/* @__PURE__ */
|
|
24248
|
-
/* @__PURE__ */
|
|
24249
|
-
/* @__PURE__ */
|
|
24250
|
-
/* @__PURE__ */
|
|
24251
|
-
/* @__PURE__ */
|
|
24291
|
+
/* @__PURE__ */ jsx9("path", { d: "M12 17h2" }),
|
|
24292
|
+
/* @__PURE__ */ jsx9("path", { d: "M12 22h2" }),
|
|
24293
|
+
/* @__PURE__ */ jsx9("path", { d: "M12 2h2" }),
|
|
24294
|
+
/* @__PURE__ */ jsx9("path", { d: "M18 22h1a1 1 0 0 0 1-1" }),
|
|
24295
|
+
/* @__PURE__ */ jsx9("path", { d: "M18 2h1a1 1 0 0 1 1 1v1" }),
|
|
24296
|
+
/* @__PURE__ */ jsx9("path", { d: "M20 15v2h-2" }),
|
|
24297
|
+
/* @__PURE__ */ jsx9("path", { d: "M20 8v3" }),
|
|
24298
|
+
/* @__PURE__ */ jsx9("path", { d: "M4 11V9" }),
|
|
24299
|
+
/* @__PURE__ */ jsx9("path", { d: "M4 19.5V15" }),
|
|
24300
|
+
/* @__PURE__ */ jsx9("path", { d: "M4 5v-.5A2.5 2.5 0 0 1 6.5 2H8" }),
|
|
24301
|
+
/* @__PURE__ */ jsx9("path", { d: "M8 22H6.5a1 1 0 0 1 0-5H8" })
|
|
24252
24302
|
]
|
|
24253
24303
|
}
|
|
24254
24304
|
);
|
|
24255
24305
|
}
|
|
24256
24306
|
|
|
24257
24307
|
// src/common/icons/icon-download.tsx
|
|
24258
|
-
import { jsx as
|
|
24308
|
+
import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
24259
24309
|
function IconDownload() {
|
|
24260
24310
|
return /* @__PURE__ */ jsxs6(
|
|
24261
24311
|
"svg",
|
|
@@ -24276,16 +24326,16 @@ function IconDownload() {
|
|
|
24276
24326
|
strokeWidth: "1px"
|
|
24277
24327
|
},
|
|
24278
24328
|
children: [
|
|
24279
|
-
/* @__PURE__ */
|
|
24280
|
-
/* @__PURE__ */
|
|
24281
|
-
/* @__PURE__ */
|
|
24329
|
+
/* @__PURE__ */ jsx10("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
24330
|
+
/* @__PURE__ */ jsx10("polyline", { points: "7 10 12 15 17 10" }),
|
|
24331
|
+
/* @__PURE__ */ jsx10("line", { x1: "12", x2: "12", y1: "15", y2: "3" })
|
|
24282
24332
|
]
|
|
24283
24333
|
}
|
|
24284
24334
|
);
|
|
24285
24335
|
}
|
|
24286
24336
|
|
|
24287
24337
|
// src/common/icons/icon-fingerprint.tsx
|
|
24288
|
-
import { jsx as
|
|
24338
|
+
import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
24289
24339
|
function IconFingerprint() {
|
|
24290
24340
|
return /* @__PURE__ */ jsxs7(
|
|
24291
24341
|
"svg",
|
|
@@ -24307,22 +24357,22 @@ function IconFingerprint() {
|
|
|
24307
24357
|
},
|
|
24308
24358
|
className: "hover:mesh-fill-white",
|
|
24309
24359
|
children: [
|
|
24310
|
-
/* @__PURE__ */
|
|
24311
|
-
/* @__PURE__ */
|
|
24312
|
-
/* @__PURE__ */
|
|
24313
|
-
/* @__PURE__ */
|
|
24314
|
-
/* @__PURE__ */
|
|
24315
|
-
/* @__PURE__ */
|
|
24316
|
-
/* @__PURE__ */
|
|
24317
|
-
/* @__PURE__ */
|
|
24318
|
-
/* @__PURE__ */
|
|
24360
|
+
/* @__PURE__ */ jsx11("path", { d: "M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4" }),
|
|
24361
|
+
/* @__PURE__ */ jsx11("path", { d: "M14 13.12c0 2.38 0 6.38-1 8.88" }),
|
|
24362
|
+
/* @__PURE__ */ jsx11("path", { d: "M17.29 21.02c.12-.6.43-2.3.5-3.02" }),
|
|
24363
|
+
/* @__PURE__ */ jsx11("path", { d: "M2 12a10 10 0 0 1 18-6" }),
|
|
24364
|
+
/* @__PURE__ */ jsx11("path", { d: "M2 16h.01" }),
|
|
24365
|
+
/* @__PURE__ */ jsx11("path", { d: "M21.8 16c.2-2 .131-5.354 0-6" }),
|
|
24366
|
+
/* @__PURE__ */ jsx11("path", { d: "M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2" }),
|
|
24367
|
+
/* @__PURE__ */ jsx11("path", { d: "M8.65 22c.21-.66.45-1.32.57-2" }),
|
|
24368
|
+
/* @__PURE__ */ jsx11("path", { d: "M9 6.8a6 6 0 0 1 9 5.2v2" })
|
|
24319
24369
|
]
|
|
24320
24370
|
}
|
|
24321
24371
|
);
|
|
24322
24372
|
}
|
|
24323
24373
|
|
|
24324
24374
|
// src/common/icons/icon-monitor-smartphone.tsx
|
|
24325
|
-
import { jsx as
|
|
24375
|
+
import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
24326
24376
|
function IconMonitorSmartphone() {
|
|
24327
24377
|
return /* @__PURE__ */ jsxs8(
|
|
24328
24378
|
"svg",
|
|
@@ -24343,10 +24393,10 @@ function IconMonitorSmartphone() {
|
|
|
24343
24393
|
strokeWidth: "1px"
|
|
24344
24394
|
},
|
|
24345
24395
|
children: [
|
|
24346
|
-
/* @__PURE__ */
|
|
24347
|
-
/* @__PURE__ */
|
|
24348
|
-
/* @__PURE__ */
|
|
24349
|
-
/* @__PURE__ */
|
|
24396
|
+
/* @__PURE__ */ jsx12("path", { d: "M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8" }),
|
|
24397
|
+
/* @__PURE__ */ jsx12("path", { d: "M10 19v-3.96 3.15" }),
|
|
24398
|
+
/* @__PURE__ */ jsx12("path", { d: "M7 19h5" }),
|
|
24399
|
+
/* @__PURE__ */ jsx12("rect", { width: "6", height: "10", x: "16", y: "12", rx: "2" })
|
|
24350
24400
|
]
|
|
24351
24401
|
}
|
|
24352
24402
|
);
|
|
@@ -24355,11 +24405,11 @@ function IconMonitorSmartphone() {
|
|
|
24355
24405
|
// src/common/tooltip.tsx
|
|
24356
24406
|
import * as React4 from "react";
|
|
24357
24407
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
24358
|
-
import { jsx as
|
|
24408
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
24359
24409
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
24360
24410
|
var Tooltip = TooltipPrimitive.Root;
|
|
24361
24411
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
24362
|
-
var TooltipContent = React4.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */
|
|
24412
|
+
var TooltipContent = React4.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
24363
24413
|
TooltipPrimitive.Content,
|
|
24364
24414
|
{
|
|
24365
24415
|
ref,
|
|
@@ -24374,7 +24424,7 @@ var TooltipContent = React4.forwardRef(({ className, sideOffset = 4, ...props },
|
|
|
24374
24424
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
24375
24425
|
|
|
24376
24426
|
// src/cardano-wallet/wallet-icon.tsx
|
|
24377
|
-
import { jsx as
|
|
24427
|
+
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
24378
24428
|
function WalletIcon({
|
|
24379
24429
|
icon,
|
|
24380
24430
|
name,
|
|
@@ -24383,20 +24433,20 @@ function WalletIcon({
|
|
|
24383
24433
|
loading = false
|
|
24384
24434
|
}) {
|
|
24385
24435
|
return /* @__PURE__ */ jsxs9(Tooltip, { delayDuration: 0, defaultOpen: false, children: [
|
|
24386
|
-
/* @__PURE__ */
|
|
24436
|
+
/* @__PURE__ */ jsx14(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs9(
|
|
24387
24437
|
"button",
|
|
24388
24438
|
{
|
|
24389
24439
|
className: "mesh-flex mesh-items-center mesh-justify-center mesh-rounded-lg mesh-w-10 mesh-h-10 mesh-bg-neutral-50 mesh-border mesh-border-zinc-700 hover:mesh-border-zinc-200 mesh-cursor-pointer",
|
|
24390
24440
|
onClick: action,
|
|
24391
24441
|
disabled: loading,
|
|
24392
24442
|
children: [
|
|
24393
|
-
icon && !loading && /* @__PURE__ */
|
|
24443
|
+
icon && !loading && /* @__PURE__ */ jsx14("img", { src: icon, alt: name, className: "mesh-w-8 mesh-h-8" }),
|
|
24394
24444
|
!loading && iconReactNode && iconReactNode,
|
|
24395
|
-
loading && /* @__PURE__ */
|
|
24445
|
+
loading && /* @__PURE__ */ jsx14("span", { className: "text-black", children: "..." })
|
|
24396
24446
|
]
|
|
24397
24447
|
}
|
|
24398
24448
|
) }),
|
|
24399
|
-
/* @__PURE__ */
|
|
24449
|
+
/* @__PURE__ */ jsx14(TooltipContent, { children: /* @__PURE__ */ jsx14("p", { children: name }) })
|
|
24400
24450
|
] });
|
|
24401
24451
|
}
|
|
24402
24452
|
|
|
@@ -24407,9 +24457,9 @@ import {
|
|
|
24407
24457
|
} from "@meshsdk/web3-sdk";
|
|
24408
24458
|
|
|
24409
24459
|
// src/common/icons/icon-discord.tsx
|
|
24410
|
-
import { jsx as
|
|
24460
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
24411
24461
|
function IconDiscord() {
|
|
24412
|
-
return /* @__PURE__ */
|
|
24462
|
+
return /* @__PURE__ */ jsx15(
|
|
24413
24463
|
"svg",
|
|
24414
24464
|
{
|
|
24415
24465
|
viewBox: "0 0 20 20",
|
|
@@ -24418,7 +24468,7 @@ function IconDiscord() {
|
|
|
24418
24468
|
width: "24px",
|
|
24419
24469
|
height: "24px"
|
|
24420
24470
|
},
|
|
24421
|
-
children: /* @__PURE__ */
|
|
24471
|
+
children: /* @__PURE__ */ jsx15(
|
|
24422
24472
|
"path",
|
|
24423
24473
|
{
|
|
24424
24474
|
d: "M16.238 4.515a14.842 14.842 0 0 0-3.664-1.136.055.055 0 0 0-.059.027 10.35 10.35 0 0 0-.456.938 13.702 13.702 0 0 0-4.115 0 9.479 9.479 0 0 0-.464-.938.058.058 0 0 0-.058-.027c-1.266.218-2.497.6-3.664 1.136a.052.052 0 0 0-.024.02C1.4 8.023.76 11.424 1.074 14.782a.062.062 0 0 0 .024.042 14.923 14.923 0 0 0 4.494 2.272.058.058 0 0 0 .064-.02c.346-.473.654-.972.92-1.496a.057.057 0 0 0-.032-.08 9.83 9.83 0 0 1-1.404-.669.058.058 0 0 1-.029-.046.058.058 0 0 1 .023-.05c.094-.07.189-.144.279-.218a.056.056 0 0 1 .058-.008c2.946 1.345 6.135 1.345 9.046 0a.056.056 0 0 1 .059.007c.09.074.184.149.28.22a.058.058 0 0 1 .023.049.059.059 0 0 1-.028.046 9.224 9.224 0 0 1-1.405.669.058.058 0 0 0-.033.033.056.056 0 0 0 .002.047c.27.523.58 1.022.92 1.495a.056.056 0 0 0 .062.021 14.878 14.878 0 0 0 4.502-2.272.055.055 0 0 0 .016-.018.056.056 0 0 0 .008-.023c.375-3.883-.63-7.256-2.662-10.246a.046.046 0 0 0-.023-.021Zm-9.223 8.221c-.887 0-1.618-.814-1.618-1.814s.717-1.814 1.618-1.814c.908 0 1.632.821 1.618 1.814 0 1-.717 1.814-1.618 1.814Zm5.981 0c-.887 0-1.618-.814-1.618-1.814s.717-1.814 1.618-1.814c.908 0 1.632.821 1.618 1.814 0 1-.71 1.814-1.618 1.814Z",
|
|
@@ -24430,7 +24480,7 @@ function IconDiscord() {
|
|
|
24430
24480
|
}
|
|
24431
24481
|
|
|
24432
24482
|
// src/common/icons/icon-google.tsx
|
|
24433
|
-
import { jsx as
|
|
24483
|
+
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
24434
24484
|
function IconGoogle() {
|
|
24435
24485
|
return /* @__PURE__ */ jsxs10(
|
|
24436
24486
|
"svg",
|
|
@@ -24443,28 +24493,28 @@ function IconGoogle() {
|
|
|
24443
24493
|
height: "24px"
|
|
24444
24494
|
},
|
|
24445
24495
|
children: [
|
|
24446
|
-
/* @__PURE__ */
|
|
24496
|
+
/* @__PURE__ */ jsx16(
|
|
24447
24497
|
"path",
|
|
24448
24498
|
{
|
|
24449
24499
|
d: "M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",
|
|
24450
24500
|
fill: "#4285F4"
|
|
24451
24501
|
}
|
|
24452
24502
|
),
|
|
24453
|
-
/* @__PURE__ */
|
|
24503
|
+
/* @__PURE__ */ jsx16(
|
|
24454
24504
|
"path",
|
|
24455
24505
|
{
|
|
24456
24506
|
d: "M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",
|
|
24457
24507
|
fill: "#34A853"
|
|
24458
24508
|
}
|
|
24459
24509
|
),
|
|
24460
|
-
/* @__PURE__ */
|
|
24510
|
+
/* @__PURE__ */ jsx16(
|
|
24461
24511
|
"path",
|
|
24462
24512
|
{
|
|
24463
24513
|
d: "M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",
|
|
24464
24514
|
fill: "#FBBC05"
|
|
24465
24515
|
}
|
|
24466
24516
|
),
|
|
24467
|
-
/* @__PURE__ */
|
|
24517
|
+
/* @__PURE__ */ jsx16(
|
|
24468
24518
|
"path",
|
|
24469
24519
|
{
|
|
24470
24520
|
d: "M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",
|
|
@@ -24477,9 +24527,9 @@ function IconGoogle() {
|
|
|
24477
24527
|
}
|
|
24478
24528
|
|
|
24479
24529
|
// src/common/icons/icon-twitter.tsx
|
|
24480
|
-
import { jsx as
|
|
24530
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
24481
24531
|
function IconTwitter() {
|
|
24482
|
-
return /* @__PURE__ */
|
|
24532
|
+
return /* @__PURE__ */ jsx17(
|
|
24483
24533
|
"svg",
|
|
24484
24534
|
{
|
|
24485
24535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -24489,13 +24539,13 @@ function IconTwitter() {
|
|
|
24489
24539
|
width: "24px",
|
|
24490
24540
|
height: "24px"
|
|
24491
24541
|
},
|
|
24492
|
-
children: /* @__PURE__ */
|
|
24542
|
+
children: /* @__PURE__ */ jsx17("path", { d: "M14.095479,10.316482L22.286354,1h-1.940718l-7.115352,8.087682L7.551414,1H1l8.589488,12.231093L1,23h1.940717 l7.509372-8.542861L16.448587,23H23L14.095479,10.316482z M11.436522,13.338465l-0.871624-1.218704l-6.924311-9.68815h2.981339 l5.58978,7.82155l0.867949,1.218704l7.26506,10.166271h-2.981339L11.436522,13.338465z" })
|
|
24493
24543
|
}
|
|
24494
24544
|
);
|
|
24495
24545
|
}
|
|
24496
24546
|
|
|
24497
24547
|
// src/cardano-wallet/web3-services.tsx
|
|
24498
|
-
import { Fragment as Fragment3, jsx as
|
|
24548
|
+
import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
24499
24549
|
function Web3Services({
|
|
24500
24550
|
options,
|
|
24501
24551
|
setOpen,
|
|
@@ -24528,7 +24578,7 @@ function Web3Services({
|
|
|
24528
24578
|
setOpen(false);
|
|
24529
24579
|
}
|
|
24530
24580
|
return /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
24531
|
-
/* @__PURE__ */
|
|
24581
|
+
/* @__PURE__ */ jsx18(
|
|
24532
24582
|
WalletIcon,
|
|
24533
24583
|
{
|
|
24534
24584
|
iconReactNode: IconGoogle(),
|
|
@@ -24537,7 +24587,7 @@ function Web3Services({
|
|
|
24537
24587
|
loading
|
|
24538
24588
|
}
|
|
24539
24589
|
),
|
|
24540
|
-
/* @__PURE__ */
|
|
24590
|
+
/* @__PURE__ */ jsx18(
|
|
24541
24591
|
WalletIcon,
|
|
24542
24592
|
{
|
|
24543
24593
|
iconReactNode: IconDiscord(),
|
|
@@ -24546,7 +24596,7 @@ function Web3Services({
|
|
|
24546
24596
|
loading
|
|
24547
24597
|
}
|
|
24548
24598
|
),
|
|
24549
|
-
/* @__PURE__ */
|
|
24599
|
+
/* @__PURE__ */ jsx18(
|
|
24550
24600
|
WalletIcon,
|
|
24551
24601
|
{
|
|
24552
24602
|
iconReactNode: IconTwitter(),
|
|
@@ -24559,7 +24609,7 @@ function Web3Services({
|
|
|
24559
24609
|
}
|
|
24560
24610
|
|
|
24561
24611
|
// src/cardano-wallet/screen-main.tsx
|
|
24562
|
-
import { jsx as
|
|
24612
|
+
import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
24563
24613
|
function ScreenMain({
|
|
24564
24614
|
injectFn,
|
|
24565
24615
|
setOpen,
|
|
@@ -24572,9 +24622,9 @@ function ScreenMain({
|
|
|
24572
24622
|
web3Services
|
|
24573
24623
|
}) {
|
|
24574
24624
|
const wallets = useWalletList({ injectFn });
|
|
24575
|
-
const { connect: connect2 } = useWallet();
|
|
24576
|
-
return /* @__PURE__ */
|
|
24577
|
-
wallets.map((wallet, index) => /* @__PURE__ */
|
|
24625
|
+
const { connect: connect2, setBitcoinWallet } = useWallet();
|
|
24626
|
+
return /* @__PURE__ */ jsx19(TooltipProvider, { children: /* @__PURE__ */ jsxs12("div", { className: "mesh-grid mesh-gap-4 mesh-py-4 mesh-grid-cols-5 mesh-place-items-center mesh-gap-y-8", children: [
|
|
24627
|
+
wallets.map((wallet, index) => /* @__PURE__ */ jsx19(
|
|
24578
24628
|
WalletIcon,
|
|
24579
24629
|
{
|
|
24580
24630
|
icon: wallet.icon,
|
|
@@ -24586,7 +24636,7 @@ function ScreenMain({
|
|
|
24586
24636
|
},
|
|
24587
24637
|
index
|
|
24588
24638
|
)),
|
|
24589
|
-
web3Services && /* @__PURE__ */
|
|
24639
|
+
web3Services && /* @__PURE__ */ jsx19(
|
|
24590
24640
|
Web3Services,
|
|
24591
24641
|
{
|
|
24592
24642
|
options: web3Services,
|
|
@@ -24594,7 +24644,7 @@ function ScreenMain({
|
|
|
24594
24644
|
persist
|
|
24595
24645
|
}
|
|
24596
24646
|
),
|
|
24597
|
-
webauthn && /* @__PURE__ */
|
|
24647
|
+
webauthn && /* @__PURE__ */ jsx19(
|
|
24598
24648
|
WalletIcon,
|
|
24599
24649
|
{
|
|
24600
24650
|
iconReactNode: IconFingerprint(),
|
|
@@ -24604,7 +24654,7 @@ function ScreenMain({
|
|
|
24604
24654
|
}
|
|
24605
24655
|
}
|
|
24606
24656
|
),
|
|
24607
|
-
cardanoPeerConnect && /* @__PURE__ */
|
|
24657
|
+
cardanoPeerConnect && /* @__PURE__ */ jsx19(
|
|
24608
24658
|
WalletIcon,
|
|
24609
24659
|
{
|
|
24610
24660
|
iconReactNode: IconMonitorSmartphone(),
|
|
@@ -24614,7 +24664,7 @@ function ScreenMain({
|
|
|
24614
24664
|
}
|
|
24615
24665
|
}
|
|
24616
24666
|
),
|
|
24617
|
-
burnerWallet && /* @__PURE__ */
|
|
24667
|
+
burnerWallet && /* @__PURE__ */ jsx19(
|
|
24618
24668
|
WalletIcon,
|
|
24619
24669
|
{
|
|
24620
24670
|
iconReactNode: IconBookDashed(),
|
|
@@ -24624,7 +24674,7 @@ function ScreenMain({
|
|
|
24624
24674
|
}
|
|
24625
24675
|
}
|
|
24626
24676
|
),
|
|
24627
|
-
showDownload && /* @__PURE__ */
|
|
24677
|
+
showDownload && /* @__PURE__ */ jsx19(
|
|
24628
24678
|
WalletIcon,
|
|
24629
24679
|
{
|
|
24630
24680
|
iconReactNode: IconDownload(),
|
|
@@ -24636,6 +24686,20 @@ function ScreenMain({
|
|
|
24636
24686
|
);
|
|
24637
24687
|
}
|
|
24638
24688
|
}
|
|
24689
|
+
),
|
|
24690
|
+
/* @__PURE__ */ jsx19(
|
|
24691
|
+
WalletIcon,
|
|
24692
|
+
{
|
|
24693
|
+
iconReactNode: IconBitcoin(),
|
|
24694
|
+
name: "Bitcoin",
|
|
24695
|
+
action: async () => {
|
|
24696
|
+
const wallet = await BrowserWallet3.enable(
|
|
24697
|
+
"Mesh SDK want to connect"
|
|
24698
|
+
);
|
|
24699
|
+
setBitcoinWallet(wallet, "Bitcoin");
|
|
24700
|
+
setOpen(false);
|
|
24701
|
+
}
|
|
24702
|
+
}
|
|
24639
24703
|
)
|
|
24640
24704
|
] }) });
|
|
24641
24705
|
}
|
|
@@ -24643,7 +24707,7 @@ function ScreenMain({
|
|
|
24643
24707
|
// src/cardano-wallet/screen-p2p.tsx
|
|
24644
24708
|
var import_cardano_peer_connect = __toESM(require_dist(), 1);
|
|
24645
24709
|
import { useEffect as useEffect9, useRef as useRef2, useState as useState11 } from "react";
|
|
24646
|
-
import { jsx as
|
|
24710
|
+
import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
24647
24711
|
function ScreenP2P({
|
|
24648
24712
|
cardanoPeerConnect,
|
|
24649
24713
|
setOpen
|
|
@@ -24688,8 +24752,8 @@ function ScreenP2P({
|
|
|
24688
24752
|
}
|
|
24689
24753
|
}, []);
|
|
24690
24754
|
return /* @__PURE__ */ jsxs13("div", { className: "mesh-flex mesh-flex-col mesh-items-center mesh-justify-center", children: [
|
|
24691
|
-
/* @__PURE__ */
|
|
24692
|
-
/* @__PURE__ */
|
|
24755
|
+
/* @__PURE__ */ jsx20("div", { style: { marginTop: 16, marginBottom: 16 }, ref: qrCodeField }),
|
|
24756
|
+
/* @__PURE__ */ jsx20(
|
|
24693
24757
|
Button,
|
|
24694
24758
|
{
|
|
24695
24759
|
variant: "outline",
|
|
@@ -24709,10 +24773,10 @@ import { connect, MeshWallet as MeshWallet2 } from "@meshsdk/wallet";
|
|
|
24709
24773
|
|
|
24710
24774
|
// src/common/input.tsx
|
|
24711
24775
|
import * as React5 from "react";
|
|
24712
|
-
import { jsx as
|
|
24776
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
24713
24777
|
var Input = React5.forwardRef(
|
|
24714
24778
|
({ className, type, ...props }, ref) => {
|
|
24715
|
-
return /* @__PURE__ */
|
|
24779
|
+
return /* @__PURE__ */ jsx21(
|
|
24716
24780
|
"input",
|
|
24717
24781
|
{
|
|
24718
24782
|
type,
|
|
@@ -24732,11 +24796,11 @@ Input.displayName = "Input";
|
|
|
24732
24796
|
import * as React6 from "react";
|
|
24733
24797
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
24734
24798
|
import { cva as cva2 } from "class-variance-authority";
|
|
24735
|
-
import { jsx as
|
|
24799
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
24736
24800
|
var labelVariants = cva2(
|
|
24737
24801
|
"mesh-text-sm mesh-font-medium mesh-leading-none peer-disabled:mesh-cursor-not-allowed peer-disabled:mesh-opacity-70"
|
|
24738
24802
|
);
|
|
24739
|
-
var Label2 = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
24803
|
+
var Label2 = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
24740
24804
|
LabelPrimitive.Root,
|
|
24741
24805
|
{
|
|
24742
24806
|
ref,
|
|
@@ -24747,7 +24811,7 @@ var Label2 = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
24747
24811
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
|
24748
24812
|
|
|
24749
24813
|
// src/cardano-wallet/screen-webauthn.tsx
|
|
24750
|
-
import { Fragment as Fragment4, jsx as
|
|
24814
|
+
import { Fragment as Fragment4, jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
24751
24815
|
function ScreenWebauthn({
|
|
24752
24816
|
url,
|
|
24753
24817
|
networkId,
|
|
@@ -24781,10 +24845,10 @@ function ScreenWebauthn({
|
|
|
24781
24845
|
createWallet(res.wallet.bech32PrivateKey);
|
|
24782
24846
|
}
|
|
24783
24847
|
}
|
|
24784
|
-
return /* @__PURE__ */
|
|
24848
|
+
return /* @__PURE__ */ jsx23("div", { className: "mesh-flex mesh-flex-row mesh-flex-gap-4 mesh-items-center mesh-justify-center", children: loading ? /* @__PURE__ */ jsx23(Fragment4, { children: "Connecting wallet..." }) : /* @__PURE__ */ jsx23(Fragment4, { children: /* @__PURE__ */ jsxs14("div", { className: "mesh-flex mesh-flex-col mesh-gap-6 mesh-w-full mesh-mx-8", children: [
|
|
24785
24849
|
/* @__PURE__ */ jsxs14("div", { className: "mesh-grid mesh-gap-2", children: [
|
|
24786
|
-
/* @__PURE__ */
|
|
24787
|
-
/* @__PURE__ */
|
|
24850
|
+
/* @__PURE__ */ jsx23(Label2, { htmlFor: "username", children: "Username" }),
|
|
24851
|
+
/* @__PURE__ */ jsx23(
|
|
24788
24852
|
Input,
|
|
24789
24853
|
{
|
|
24790
24854
|
id: "username",
|
|
@@ -24794,11 +24858,11 @@ function ScreenWebauthn({
|
|
|
24794
24858
|
onChange: (e2) => setUserName(e2.target.value)
|
|
24795
24859
|
}
|
|
24796
24860
|
),
|
|
24797
|
-
/* @__PURE__ */
|
|
24861
|
+
/* @__PURE__ */ jsx23("p", { className: "mesh-text-gray-500 mesh-text-xs", children: "Unique to the application you are connecting." })
|
|
24798
24862
|
] }),
|
|
24799
24863
|
/* @__PURE__ */ jsxs14("div", { className: "mesh-grid mesh-gap-2", children: [
|
|
24800
|
-
/* @__PURE__ */
|
|
24801
|
-
/* @__PURE__ */
|
|
24864
|
+
/* @__PURE__ */ jsx23("div", { className: "mesh-flex mesh-items-center", children: /* @__PURE__ */ jsx23(Label2, { htmlFor: "password", children: "Unique Code" }) }),
|
|
24865
|
+
/* @__PURE__ */ jsx23(
|
|
24802
24866
|
Input,
|
|
24803
24867
|
{
|
|
24804
24868
|
id: "password",
|
|
@@ -24808,9 +24872,9 @@ function ScreenWebauthn({
|
|
|
24808
24872
|
onChange: (e2) => setPassword(e2.target.value)
|
|
24809
24873
|
}
|
|
24810
24874
|
),
|
|
24811
|
-
/* @__PURE__ */
|
|
24875
|
+
/* @__PURE__ */ jsx23("p", { className: "mesh-text-gray-500 mesh-text-xs", children: "Additional security to derive your wallet." })
|
|
24812
24876
|
] }),
|
|
24813
|
-
/* @__PURE__ */
|
|
24877
|
+
/* @__PURE__ */ jsx23(
|
|
24814
24878
|
Button,
|
|
24815
24879
|
{
|
|
24816
24880
|
className: "mesh-w-full",
|
|
@@ -24823,7 +24887,7 @@ function ScreenWebauthn({
|
|
|
24823
24887
|
}
|
|
24824
24888
|
|
|
24825
24889
|
// src/cardano-wallet/index.tsx
|
|
24826
|
-
import { jsx as
|
|
24890
|
+
import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
24827
24891
|
var CardanoWallet = ({
|
|
24828
24892
|
label = "Connect Wallet",
|
|
24829
24893
|
onConnected = void 0,
|
|
@@ -24849,15 +24913,15 @@ var CardanoWallet = ({
|
|
|
24849
24913
|
}
|
|
24850
24914
|
}, [connected, wallet]);
|
|
24851
24915
|
return /* @__PURE__ */ jsxs15(Dialog, { open, onOpenChange: setOpen, children: [
|
|
24852
|
-
/* @__PURE__ */
|
|
24916
|
+
/* @__PURE__ */ jsx24("div", { className: isDark ? "mesh-dark" : "", children: !connected ? /* @__PURE__ */ jsx24(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx24(Button, { variant: "outline", className: isDark ? "mesh-dark" : "", children: label }) }) : /* @__PURE__ */ jsx24(ConnectedButton, {}) }),
|
|
24853
24917
|
/* @__PURE__ */ jsxs15(
|
|
24854
24918
|
DialogContent,
|
|
24855
24919
|
{
|
|
24856
24920
|
className: "sm:mesh-max-w-[425px] mesh-dark",
|
|
24857
24921
|
onOpenAutoFocus: (event) => event.preventDefault(),
|
|
24858
24922
|
children: [
|
|
24859
|
-
/* @__PURE__ */
|
|
24860
|
-
screen == "main" && /* @__PURE__ */
|
|
24923
|
+
/* @__PURE__ */ jsx24(Header, { screen, setScreen }),
|
|
24924
|
+
screen == "main" && /* @__PURE__ */ jsx24(
|
|
24861
24925
|
ScreenMain,
|
|
24862
24926
|
{
|
|
24863
24927
|
injectFn,
|
|
@@ -24871,14 +24935,14 @@ var CardanoWallet = ({
|
|
|
24871
24935
|
web3Services
|
|
24872
24936
|
}
|
|
24873
24937
|
),
|
|
24874
|
-
screen == "p2p" && /* @__PURE__ */
|
|
24938
|
+
screen == "p2p" && /* @__PURE__ */ jsx24(
|
|
24875
24939
|
ScreenP2P,
|
|
24876
24940
|
{
|
|
24877
24941
|
cardanoPeerConnect,
|
|
24878
24942
|
setOpen
|
|
24879
24943
|
}
|
|
24880
24944
|
),
|
|
24881
|
-
screen == "burner" && burnerWallet && /* @__PURE__ */
|
|
24945
|
+
screen == "burner" && burnerWallet && /* @__PURE__ */ jsx24(
|
|
24882
24946
|
ScreenBurner,
|
|
24883
24947
|
{
|
|
24884
24948
|
networkId: burnerWallet.networkId,
|
|
@@ -24886,7 +24950,7 @@ var CardanoWallet = ({
|
|
|
24886
24950
|
setOpen
|
|
24887
24951
|
}
|
|
24888
24952
|
),
|
|
24889
|
-
screen == "webauthn" && webauthn && /* @__PURE__ */
|
|
24953
|
+
screen == "webauthn" && webauthn && /* @__PURE__ */ jsx24(
|
|
24890
24954
|
ScreenWebauthn,
|
|
24891
24955
|
{
|
|
24892
24956
|
url: webauthn.url,
|
|
@@ -24895,7 +24959,7 @@ var CardanoWallet = ({
|
|
|
24895
24959
|
setOpen
|
|
24896
24960
|
}
|
|
24897
24961
|
),
|
|
24898
|
-
/* @__PURE__ */
|
|
24962
|
+
/* @__PURE__ */ jsx24(Footer, {})
|
|
24899
24963
|
]
|
|
24900
24964
|
}
|
|
24901
24965
|
)
|
|
@@ -24907,23 +24971,23 @@ function Header({
|
|
|
24907
24971
|
}) {
|
|
24908
24972
|
return /* @__PURE__ */ jsxs15(DialogHeader, { children: [
|
|
24909
24973
|
/* @__PURE__ */ jsxs15(DialogTitle, { className: "mesh-flex mesh-justify-between", children: [
|
|
24910
|
-
screen != "main" ? /* @__PURE__ */
|
|
24911
|
-
/* @__PURE__ */
|
|
24912
|
-
/* @__PURE__ */
|
|
24974
|
+
screen != "main" ? /* @__PURE__ */ jsx24("button", { onClick: () => setScreen("main"), children: /* @__PURE__ */ jsx24(IconChevronRight, {}) }) : /* @__PURE__ */ jsx24("span", { style: { width: "24px" } }),
|
|
24975
|
+
/* @__PURE__ */ jsx24("span", { children: screens[screen].title }),
|
|
24976
|
+
/* @__PURE__ */ jsx24("span", { style: { width: "24px" } })
|
|
24913
24977
|
] }),
|
|
24914
|
-
/* @__PURE__ */
|
|
24978
|
+
/* @__PURE__ */ jsx24(DialogDescription, { children: screens[screen].subtitle && screens[screen].subtitle })
|
|
24915
24979
|
] });
|
|
24916
24980
|
}
|
|
24917
24981
|
function Footer() {
|
|
24918
|
-
return /* @__PURE__ */
|
|
24982
|
+
return /* @__PURE__ */ jsx24(DialogFooter, { className: "mesh-justify-center mesh-text-sm", children: /* @__PURE__ */ jsxs15(
|
|
24919
24983
|
"a",
|
|
24920
24984
|
{
|
|
24921
24985
|
href: "https://meshjs.dev/",
|
|
24922
24986
|
target: "_blank",
|
|
24923
24987
|
className: "mesh-grow mesh-flex mesh-gap-1 mesh-items-center mesh-justify-center mesh-text-zinc-500 hover:mesh-text-white mesh-fill-zinc-500 hover:mesh-fill-white",
|
|
24924
24988
|
children: [
|
|
24925
|
-
/* @__PURE__ */
|
|
24926
|
-
/* @__PURE__ */
|
|
24989
|
+
/* @__PURE__ */ jsx24("span", { className: "", children: "Powered by" }),
|
|
24990
|
+
/* @__PURE__ */ jsx24(
|
|
24927
24991
|
"svg",
|
|
24928
24992
|
{
|
|
24929
24993
|
width: 24,
|
|
@@ -24931,30 +24995,30 @@ function Footer() {
|
|
|
24931
24995
|
enableBackground: "new 0 0 300 200",
|
|
24932
24996
|
viewBox: "0 0 300 200",
|
|
24933
24997
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24934
|
-
children: /* @__PURE__ */
|
|
24998
|
+
children: /* @__PURE__ */ jsx24("path", { d: "m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z" })
|
|
24935
24999
|
}
|
|
24936
25000
|
),
|
|
24937
|
-
/* @__PURE__ */
|
|
25001
|
+
/* @__PURE__ */ jsx24("span", { className: "", children: "Mesh SDK" })
|
|
24938
25002
|
]
|
|
24939
25003
|
}
|
|
24940
25004
|
) });
|
|
24941
25005
|
}
|
|
24942
25006
|
|
|
24943
25007
|
// src/mesh-badge/mesh-logo.tsx
|
|
24944
|
-
import { jsx as
|
|
24945
|
-
var MeshLogo = () => /* @__PURE__ */
|
|
25008
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
25009
|
+
var MeshLogo = () => /* @__PURE__ */ jsx25(
|
|
24946
25010
|
"svg",
|
|
24947
25011
|
{
|
|
24948
25012
|
className: "mesh-h-16 mesh-p-2",
|
|
24949
25013
|
fill: "currentColor",
|
|
24950
25014
|
viewBox: "0 0 300 200",
|
|
24951
25015
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24952
|
-
children: /* @__PURE__ */
|
|
25016
|
+
children: /* @__PURE__ */ jsx25("path", { d: "m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z" })
|
|
24953
25017
|
}
|
|
24954
25018
|
);
|
|
24955
25019
|
|
|
24956
25020
|
// src/mesh-badge/index.tsx
|
|
24957
|
-
import { jsx as
|
|
25021
|
+
import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
24958
25022
|
var MeshBadge = ({ isDark = false }) => /* @__PURE__ */ jsxs16(
|
|
24959
25023
|
"a",
|
|
24960
25024
|
{
|
|
@@ -24967,7 +25031,7 @@ var MeshBadge = ({ isDark = false }) => /* @__PURE__ */ jsxs16(
|
|
|
24967
25031
|
rel: "noopener noreferrer",
|
|
24968
25032
|
target: "_blank",
|
|
24969
25033
|
children: [
|
|
24970
|
-
/* @__PURE__ */
|
|
25034
|
+
/* @__PURE__ */ jsx26(MeshLogo, {}),
|
|
24971
25035
|
"Mesh"
|
|
24972
25036
|
]
|
|
24973
25037
|
}
|