@omnisat/lasereyes 0.0.65 → 0.0.66

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
@@ -352,7 +352,7 @@ var createConfig = (config) => {
352
352
  };
353
353
 
354
354
  // src/providers/LaserEyesProvider.tsx
355
- var import_react = require("react");
355
+ var import_react = _toESM(require("react"));
356
356
  var bitcoin2 = __toESM(require("bitcoinjs-lib"));
357
357
 
358
358
  // src/consts/settings.ts
@@ -423,7 +423,7 @@ var initialWalletContext = {
423
423
  };
424
424
 
425
425
  // src/providers/LaserEyesProvider.tsx
426
- var import_usehooks_ts = require("usehooks-ts");
426
+ var import_usehooks_ts = _toESM(require("usehooks-ts"));
427
427
 
428
428
  // src/lib/helpers.ts
429
429
  var bitcoin = __toESM(require("bitcoinjs-lib"));
@@ -600,10 +600,10 @@ function delay(ms) {
600
600
  }
601
601
 
602
602
  // src/providers/LaserEyesProvider.tsx
603
- var import_sats_connect = require("sats-connect");
604
- var import_address = require("bitcoinjs-lib/src/address");
603
+ var import_sats_connect = _toESM(require("sats-connect"));
604
+ var import_address = _toESM(require("bitcoinjs-lib/src/address"));
605
605
  var import_axios2 = __toESM(require("axios"));
606
- var import_jsx_runtime = require("react/jsx-runtime");
606
+ var import_jsx_runtime = _toESM(require("react/jsx-runtime"));
607
607
  var LaserEyesContext = (0, import_react.createContext)(initialWalletContext);
608
608
  var useLaserEyes = () => {
609
609
  return (0, import_react.useContext)(LaserEyesContext);
@@ -1471,7 +1471,8 @@ var LaserEyesProvider = ({
1471
1471
  if (!library)
1472
1472
  throw new Error("Library not found");
1473
1473
  if (provider === UNISAT) {
1474
- const txId = yield library == null ? void 0 : library.sendBitcoin(to, amount);
1474
+ const lib = window.unisat;
1475
+ const txId = yield lib == null ? void 0 : lib.sendBitcoin(to, amount);
1475
1476
  if (!txId)
1476
1477
  throw new Error("Transaction failed");
1477
1478
  return txId;
@@ -1558,7 +1559,8 @@ var LaserEyesProvider = ({
1558
1559
  }
1559
1560
  }
1560
1561
  } else if (provider === WIZZ) {
1561
- const txId = yield library == null ? void 0 : library.sendBitcoin(to, amount);
1562
+ const lib = window.unisat;
1563
+ const txId = yield lib == null ? void 0 : lib.sendBitcoin(to, amount);
1562
1564
  if (txId) {
1563
1565
  return txId;
1564
1566
  } else {
@@ -2036,7 +2038,7 @@ var LaserEyesProvider = ({
2036
2038
  };
2037
2039
 
2038
2040
  // src/icons/oyl.tsx
2039
- var import_jsx_runtime2 = require("react/jsx-runtime");
2041
+ var import_jsx_runtime2 = _toESM(require("react/jsx-runtime"));
2040
2042
  var OylLogo = (_a) => {
2041
2043
  var _b = _a, {
2042
2044
  size = 42,
@@ -2116,7 +2118,7 @@ var OylLogo = (_a) => {
2116
2118
  };
2117
2119
 
2118
2120
  // src/icons/leather.tsx
2119
- var import_jsx_runtime3 = require("react/jsx-runtime");
2121
+ var import_jsx_runtime3 = _toESM(require("react/jsx-runtime"));
2120
2122
  var LeatherLogo = (_a) => {
2121
2123
  var _b = _a, {
2122
2124
  size = 42,
@@ -2176,7 +2178,7 @@ var LeatherLogo = (_a) => {
2176
2178
  };
2177
2179
 
2178
2180
  // src/icons/phantom.tsx
2179
- var import_jsx_runtime4 = require("react/jsx-runtime");
2181
+ var import_jsx_runtime4 = _toESM(require("react/jsx-runtime"));
2180
2182
  var PhantomLogo = (_a) => {
2181
2183
  var _b = _a, {
2182
2184
  size = 42,
@@ -2258,7 +2260,7 @@ var PhantomLogo = (_a) => {
2258
2260
  };
2259
2261
 
2260
2262
  // src/icons/xverse.tsx
2261
- var import_jsx_runtime5 = require("react/jsx-runtime");
2263
+ var import_jsx_runtime5 = _toESM(require("react/jsx-runtime"));
2262
2264
  var XverseLogo = (_a) => {
2263
2265
  var _b = _a, {
2264
2266
  size = 42,
@@ -2310,7 +2312,7 @@ var XverseLogo = (_a) => {
2310
2312
  };
2311
2313
 
2312
2314
  // src/icons/unisat.tsx
2313
- var import_jsx_runtime6 = require("react/jsx-runtime");
2315
+ var import_jsx_runtime6 = _toESM(require("react/jsx-runtime"));
2314
2316
  var UnisatLogo = (_a) => {
2315
2317
  var _b = _a, {
2316
2318
  size = 42,
@@ -2422,7 +2424,7 @@ var UnisatLogo = (_a) => {
2422
2424
  };
2423
2425
 
2424
2426
  // src/icons/wizz.tsx
2425
- var import_jsx_runtime7 = require("react/jsx-runtime");
2427
+ var import_jsx_runtime7 = _toESM(require("react/jsx-runtime"));
2426
2428
  var WizzLogo = (_a) => {
2427
2429
  var _b = _a, {
2428
2430
  size = 42,
@@ -2493,7 +2495,7 @@ var WizzLogo = (_a) => {
2493
2495
  };
2494
2496
 
2495
2497
  // src/icons/okx.tsx
2496
- var import_jsx_runtime8 = require("react/jsx-runtime");
2498
+ var import_jsx_runtime8 = _toESM(require("react/jsx-runtime"));
2497
2499
  var OkxLogo = (_a) => {
2498
2500
  var _b = _a, {
2499
2501
  size = 42,
@@ -2535,7 +2537,7 @@ var OkxLogo = (_a) => {
2535
2537
  };
2536
2538
 
2537
2539
  // src/icons/magiceden.tsx
2538
- var import_jsx_runtime9 = require("react/jsx-runtime");
2540
+ var import_jsx_runtime9 = _toESM(require("react/jsx-runtime"));
2539
2541
  var MagicEdenLogo = (_a) => {
2540
2542
  var _b = _a, {
2541
2543
  size = 42,
@@ -2608,7 +2610,7 @@ var MagicEdenLogo = (_a) => {
2608
2610
  };
2609
2611
 
2610
2612
  // src/icons/walletIcon.tsx
2611
- var import_jsx_runtime10 = require("react/jsx-runtime");
2613
+ var import_jsx_runtime10 = _toESM(require("react/jsx-runtime"));
2612
2614
  var WalletIcon = ({
2613
2615
  size,
2614
2616
  className,
package/dist/index.mjs CHANGED
@@ -1376,7 +1376,8 @@ var LaserEyesProvider = ({
1376
1376
  if (!library)
1377
1377
  throw new Error("Library not found");
1378
1378
  if (provider === UNISAT) {
1379
- const txId = yield library == null ? void 0 : library.sendBitcoin(to, amount);
1379
+ const lib = window.unisat;
1380
+ const txId = yield lib == null ? void 0 : lib.sendBitcoin(to, amount);
1380
1381
  if (!txId)
1381
1382
  throw new Error("Transaction failed");
1382
1383
  return txId;
@@ -1463,7 +1464,8 @@ var LaserEyesProvider = ({
1463
1464
  }
1464
1465
  }
1465
1466
  } else if (provider === WIZZ) {
1466
- const txId = yield library == null ? void 0 : library.sendBitcoin(to, amount);
1467
+ const lib = window.unisat;
1468
+ const txId = yield lib == null ? void 0 : lib.sendBitcoin(to, amount);
1467
1469
  if (txId) {
1468
1470
  return txId;
1469
1471
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnisat/lasereyes",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "sideEffects": false,
5
5
  "private": false,
6
6
  "license": "MIT",