coinley-pay 0.24.0 → 0.26.0

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.
@@ -5,7 +5,7 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
5
5
  import { useState, useRef, useEffect, useCallback, useMemo } from "react";
6
6
  import { useConnect, useAccount, useSwitchChain, useSendTransaction, useWaitForTransactionReceipt, WagmiProvider, useDisconnect } from "wagmi";
7
7
  import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
8
- import { s as sdkAnalytics, c as clarityAnalytics, d as dist, a as Buffer2, B as Buffer$1, g as getCurrencyInfo, p as prefetchRates, i as isSupportedCurrency, b as convertToUSD, f as formatCurrency } from "./index-BuM1IGbr.js";
8
+ import { s as sdkAnalytics, c as clarityAnalytics, d as dist, a as Buffer2, B as Buffer$1, g as getCurrencyInfo, p as prefetchRates, i as isSupportedCurrency, b as convertToUSD, f as formatCurrency } from "./index-MRszoy4w.js";
9
9
  import { createConfig, fallback, http, getAccount as getAccount$1, getWalletClient, simulateContract, writeContract, readContract, waitForTransactionReceipt, estimateFeesPerGas as estimateFeesPerGas$1 } from "@wagmi/core";
10
10
  import { injected, metaMask, coinbaseWallet, walletConnect } from "@wagmi/connectors";
11
11
  import { defineChain as defineChain$1, erc20Abi, http as http$1, createPublicClient, fallback as fallback$1 } from "viem";
@@ -20453,7 +20453,7 @@ const PaymentStatus = ({
20453
20453
  const networkName = (selectedNetwork == null ? void 0 : selectedNetwork.name) || (selectedNetwork == null ? void 0 : selectedNetwork.displayName) || (selectedNetwork == null ? void 0 : selectedNetwork.shortName) || "Network";
20454
20454
  const explorerUrl = getExplorerUrl(transactionHash, selectedNetwork);
20455
20455
  const explorerName = getExplorerName(selectedNetwork);
20456
- return /* @__PURE__ */ jsxs("div", { className: "relative flex h-full w-full flex-col px-3 pb-0 pt-[84px]", children: [
20456
+ return /* @__PURE__ */ jsxs("div", { className: "relative flex h-full min-h-0 w-full flex-col justify-between px-3 pb-0 pt-12", children: [
20457
20457
  onClose && /* @__PURE__ */ jsx(
20458
20458
  "button",
20459
20459
  {
@@ -20465,9 +20465,9 @@ const PaymentStatus = ({
20465
20465
  }
20466
20466
  ),
20467
20467
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center text-center", children: [
20468
- /* @__PURE__ */ jsx("div", { className: "mb-3 flex h-16 w-16 items-center justify-center rounded-full bg-[#D8F8E7] p-2", children: /* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-[#0CCB63] text-white", children: /* @__PURE__ */ jsx("svg", { className: "h-6 w-6", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M5 13l4 4L19 7" }) }) }) }),
20469
- /* @__PURE__ */ jsx("h3", { className: "mb-3 text-base font-semibold text-black", children: "Payment Successful" }),
20470
- /* @__PURE__ */ jsxs("p", { className: "mb-9 text-base text-[#A9ABB2]", children: [
20468
+ /* @__PURE__ */ jsx("div", { className: "mb-2 flex h-14 w-14 items-center justify-center rounded-full bg-[#D8F8E7] p-2", children: /* @__PURE__ */ jsx("div", { className: "flex h-11 w-11 items-center justify-center rounded-full bg-[#0CCB63] text-white", children: /* @__PURE__ */ jsx("svg", { className: "h-6 w-6", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M5 13l4 4L19 7" }) }) }) }),
20469
+ /* @__PURE__ */ jsx("h3", { className: "mb-2 text-base font-semibold text-black", children: "Payment Successful" }),
20470
+ /* @__PURE__ */ jsxs("p", { className: "mb-5 text-base text-[#A9ABB2]", children: [
20471
20471
  /* @__PURE__ */ jsxs("span", { className: "font-semibold text-black", children: [
20472
20472
  "$",
20473
20473
  Number(displayAmount || 0).toFixed(2)
@@ -20485,7 +20485,7 @@ const PaymentStatus = ({
20485
20485
  {
20486
20486
  type: "button",
20487
20487
  onClick: copyTransactionHash,
20488
- className: "mb-4 flex h-11 w-full items-center justify-between rounded-lg border border-[#EEF0F4] bg-[#FAFAFB] px-3 text-left transition-colors hover:bg-gray-100",
20488
+ className: "mb-3 flex h-10 w-full items-center justify-between rounded-lg border border-[#EEF0F4] bg-[#FAFAFB] px-3 text-left transition-colors hover:bg-gray-100",
20489
20489
  children: [
20490
20490
  /* @__PURE__ */ jsx("span", { className: "font-mono text-sm font-semibold text-black", children: formatTransactionHash(transactionHash) }),
20491
20491
  /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2 text-black", children: [
@@ -20496,11 +20496,11 @@ const PaymentStatus = ({
20496
20496
  }
20497
20497
  ),
20498
20498
  /* @__PURE__ */ jsxs("div", { className: "space-y-0", children: [
20499
- /* @__PURE__ */ jsxs("div", { className: "flex h-11 items-center justify-between border-b border-[#EEF0F4]", children: [
20499
+ /* @__PURE__ */ jsxs("div", { className: "flex h-10 items-center justify-between border-b border-[#EEF0F4]", children: [
20500
20500
  /* @__PURE__ */ jsx("span", { className: "text-sm text-[#A9ABB2]", children: "Network" }),
20501
20501
  /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-black", children: networkName })
20502
20502
  ] }),
20503
- /* @__PURE__ */ jsxs("div", { className: "flex h-11 items-center justify-between border-b border-[#EEF0F4]", children: [
20503
+ /* @__PURE__ */ jsxs("div", { className: "flex h-10 items-center justify-between border-b border-[#EEF0F4]", children: [
20504
20504
  /* @__PURE__ */ jsx("span", { className: "text-sm text-[#A9ABB2]", children: "Token" }),
20505
20505
  /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-black", children: tokenSymbol })
20506
20506
  ] })
@@ -20511,7 +20511,7 @@ const PaymentStatus = ({
20511
20511
  href: explorerUrl,
20512
20512
  target: "_blank",
20513
20513
  rel: "noopener noreferrer",
20514
- className: "mt-3 flex h-[43px] w-full items-center justify-center gap-2 rounded-lg border border-[#B997FF] bg-white text-sm font-semibold text-[#7042D2] transition-colors hover:bg-purple-50",
20514
+ className: "mt-3 flex h-10 w-full items-center justify-center gap-2 rounded-lg border border-[#B997FF] bg-white text-sm font-semibold text-[#7042D2] transition-colors hover:bg-purple-50",
20515
20515
  children: [
20516
20516
  /* @__PURE__ */ jsxs("span", { children: [
20517
20517
  "View on ",
@@ -20522,7 +20522,7 @@ const PaymentStatus = ({
20522
20522
  }
20523
20523
  )
20524
20524
  ] }),
20525
- onClose && /* @__PURE__ */ jsx("div", { className: "mt-auto pt-5", children: /* @__PURE__ */ jsx(
20525
+ onClose && /* @__PURE__ */ jsx("div", { className: "pt-4", children: /* @__PURE__ */ jsx(
20526
20526
  "button",
20527
20527
  {
20528
20528
  onClick: onClose,
@@ -21120,7 +21120,7 @@ const WalletSelector = ({
21120
21120
  try {
21121
21121
  setAppKitError(null);
21122
21122
  setWalletConnectAddress(solanaAccountState.address);
21123
- const { createWalletConnectAdapter } = await import("./appKitSolana-C2Tow7WJ.js");
21123
+ const { createWalletConnectAdapter } = await import("./appKitSolana-D38g1-Lm.js");
21124
21124
  const adapter = createWalletConnectAdapter(solanaAccountState.address);
21125
21125
  await solanaWallet.connectWalletConnect(adapter, solanaAccountState.address);
21126
21126
  console.log("✅ WalletConnect synced with SDK");
@@ -21225,7 +21225,7 @@ const WalletSelector = ({
21225
21225
  setAppKitLoading(true);
21226
21226
  setAppKitError(null);
21227
21227
  try {
21228
- const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-BeGg9nUC.js");
21228
+ const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-Bu9jo5n-.js");
21229
21229
  await initializeAppKitEVM(wagmiConfig);
21230
21230
  await openAppKitModal();
21231
21231
  } catch (error) {
@@ -21245,7 +21245,7 @@ const WalletSelector = ({
21245
21245
  setAppKitError(null);
21246
21246
  try {
21247
21247
  console.log("📦 Loading AppKit Solana module...");
21248
- const { initializeAppKitSolana } = await import("./appKitSolana-C2Tow7WJ.js");
21248
+ const { initializeAppKitSolana } = await import("./appKitSolana-D38g1-Lm.js");
21249
21249
  console.log("✅ Module loaded, initializing...");
21250
21250
  const modal = await initializeAppKitSolana(solanaWallet);
21251
21251
  console.log("✅ AppKit Solana initialized successfully");
@@ -26768,4 +26768,4 @@ export {
26768
26768
  isFeatureEnabled as i,
26769
26769
  logo as l
26770
26770
  };
26771
- //# sourceMappingURL=CoinleyPayment-BNHoVBKU.js.map
26771
+ //# sourceMappingURL=CoinleyPayment-tHjB69By.js.map
@@ -1,4 +1,4 @@
1
- import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID, l as logo } from "./CoinleyPayment-BNHoVBKU.js";
1
+ import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID, l as logo } from "./CoinleyPayment-tHjB69By.js";
2
2
  let appKitInstance = null;
3
3
  let isInitializing = false;
4
4
  let initializationPromise = null;
@@ -112,4 +112,4 @@ export {
112
112
  initializeAppKitEVM,
113
113
  openAppKitModal
114
114
  };
115
- //# sourceMappingURL=appKitEVM-BeGg9nUC.js.map
115
+ //# sourceMappingURL=appKitEVM-Bu9jo5n-.js.map
@@ -1,4 +1,4 @@
1
- import { F as FEATURES, l as logo, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-BNHoVBKU.js";
1
+ import { F as FEATURES, l as logo, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-tHjB69By.js";
2
2
  let appKitInstance = null;
3
3
  let isInitializing = false;
4
4
  let initializationPromise = null;
@@ -242,4 +242,4 @@ export {
242
242
  disconnectWalletConnect,
243
243
  initializeAppKitSolana
244
244
  };
245
- //# sourceMappingURL=appKitSolana-C2Tow7WJ.js.map
245
+ //# sourceMappingURL=appKitSolana-D38g1-Lm.js.map