coinley-pay 0.0.50 → 0.0.51
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID, l as logo } from "./index-
|
|
1
|
+
import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID, l as logo } from "./index-yGuI1fTp.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-
|
|
115
|
+
//# sourceMappingURL=appKitEVM-DJPcFsu2.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FEATURES, l as logo, W as WALLETCONNECT_PROJECT_ID } from "./index-
|
|
1
|
+
import { F as FEATURES, l as logo, W as WALLETCONNECT_PROJECT_ID } from "./index-yGuI1fTp.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-
|
|
245
|
+
//# sourceMappingURL=appKitSolana-By7m4vmd.js.map
|
|
@@ -44969,7 +44969,7 @@ const WalletSelector = ({
|
|
|
44969
44969
|
try {
|
|
44970
44970
|
setAppKitError(null);
|
|
44971
44971
|
setWalletConnectAddress(solanaAccountState.address);
|
|
44972
|
-
const { createWalletConnectAdapter } = await import("./appKitSolana-
|
|
44972
|
+
const { createWalletConnectAdapter } = await import("./appKitSolana-By7m4vmd.js");
|
|
44973
44973
|
const adapter = createWalletConnectAdapter(solanaAccountState.address);
|
|
44974
44974
|
await solanaWallet.connectWalletConnect(adapter, solanaAccountState.address);
|
|
44975
44975
|
console.log("✅ WalletConnect synced with SDK");
|
|
@@ -45074,7 +45074,7 @@ const WalletSelector = ({
|
|
|
45074
45074
|
setAppKitLoading(true);
|
|
45075
45075
|
setAppKitError(null);
|
|
45076
45076
|
try {
|
|
45077
|
-
const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-
|
|
45077
|
+
const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-DJPcFsu2.js");
|
|
45078
45078
|
await initializeAppKitEVM(wagmiConfig);
|
|
45079
45079
|
await openAppKitModal();
|
|
45080
45080
|
} catch (error) {
|
|
@@ -45094,7 +45094,7 @@ const WalletSelector = ({
|
|
|
45094
45094
|
setAppKitError(null);
|
|
45095
45095
|
try {
|
|
45096
45096
|
console.log("📦 Loading AppKit Solana module...");
|
|
45097
|
-
const { initializeAppKitSolana } = await import("./appKitSolana-
|
|
45097
|
+
const { initializeAppKitSolana } = await import("./appKitSolana-By7m4vmd.js");
|
|
45098
45098
|
console.log("✅ Module loaded, initializing...");
|
|
45099
45099
|
const modal = await initializeAppKitSolana(solanaWallet);
|
|
45100
45100
|
console.log("✅ AppKit Solana initialized successfully");
|
|
@@ -47739,7 +47739,7 @@ const RedesignedCoinleyPaymentInternal = ({
|
|
|
47739
47739
|
return getSolanaRpcEndpoints();
|
|
47740
47740
|
}, [isSolana, paymentFlow.selectedNetwork, isSolanaDevnet]);
|
|
47741
47741
|
const solanaTransaction = useSolanaTransaction(solanaRpcEndpoints, solanaWallet.connectedWallet);
|
|
47742
|
-
const [activeTab, setActiveTab] = useState(PAYMENT_TABS.
|
|
47742
|
+
const [activeTab, setActiveTab] = useState(PAYMENT_TABS.TRANSFER);
|
|
47743
47743
|
const [networkSearch, setNetworkSearch] = useState("");
|
|
47744
47744
|
const [showWalletConfirm, setShowWalletConfirm] = useState(false);
|
|
47745
47745
|
const [qrCodeDataUrl, setQrCodeDataUrl] = useState("");
|
|
@@ -49395,7 +49395,7 @@ const RedesignedCoinleyPaymentInternal = ({
|
|
|
49395
49395
|
] })
|
|
49396
49396
|
] }),
|
|
49397
49397
|
!isMobile && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
49398
|
-
/* @__PURE__ */ jsxs("div", { className: "w-56 bg-gray-50 p-6 flex flex-col border-r border-gray-200", children: [
|
|
49398
|
+
!(selectedNetwork && selectedToken) && /* @__PURE__ */ jsxs("div", { className: "w-56 bg-gray-50 p-6 flex flex-col border-r border-gray-200", children: [
|
|
49399
49399
|
/* @__PURE__ */ jsx("h3", { className: "text-sm font-medium text-gray-500 mb-4", children: "Pay With :" }),
|
|
49400
49400
|
/* @__PURE__ */ jsxs(
|
|
49401
49401
|
"button",
|
|
@@ -49437,7 +49437,32 @@ const RedesignedCoinleyPaymentInternal = ({
|
|
|
49437
49437
|
/* @__PURE__ */ jsx("img", { src: logo, alt: "Coinley", className: "w-6 h-6" }),
|
|
49438
49438
|
/* @__PURE__ */ jsx("span", { className: "text-lg font-semibold text-gray-800", children: "coinley" })
|
|
49439
49439
|
] }),
|
|
49440
|
-
/* @__PURE__ */
|
|
49440
|
+
selectedNetwork && selectedToken ? /* @__PURE__ */ jsxs(
|
|
49441
|
+
"button",
|
|
49442
|
+
{
|
|
49443
|
+
onClick: () => {
|
|
49444
|
+
setSelectedNetwork(null);
|
|
49445
|
+
setSelectedToken(null);
|
|
49446
|
+
setShowWalletConfirm(false);
|
|
49447
|
+
setPaymentData((prev) => {
|
|
49448
|
+
if (!prev) return prev;
|
|
49449
|
+
return {
|
|
49450
|
+
...prev,
|
|
49451
|
+
depositAddress: null,
|
|
49452
|
+
isDepositPayment: false,
|
|
49453
|
+
expiresAt: null,
|
|
49454
|
+
requiredConfirmations: null
|
|
49455
|
+
};
|
|
49456
|
+
});
|
|
49457
|
+
setExpirationTime(null);
|
|
49458
|
+
},
|
|
49459
|
+
className: "flex items-center gap-1 px-3 py-1.5 rounded-lg text-gray-500 hover:bg-gray-100 transition-colors",
|
|
49460
|
+
children: [
|
|
49461
|
+
/* @__PURE__ */ jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 19l-7-7 7-7" }) }),
|
|
49462
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Back" })
|
|
49463
|
+
]
|
|
49464
|
+
}
|
|
49465
|
+
) : /* @__PURE__ */ jsx(
|
|
49441
49466
|
"button",
|
|
49442
49467
|
{
|
|
49443
49468
|
onClick: handleCancel,
|
|
@@ -50988,4 +51013,4 @@ export {
|
|
|
50988
51013
|
prefetchRates as t,
|
|
50989
51014
|
utils as u
|
|
50990
51015
|
};
|
|
50991
|
-
//# sourceMappingURL=index-
|
|
51016
|
+
//# sourceMappingURL=index-yGuI1fTp.js.map
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b, C, a, e, D, E, P, f, Q, R, S, T, U, V, j, m, k, n, g, h, q, r, o, p, t, s, d, u } from "./index-
|
|
1
|
+
import { b, C, a, e, D, E, P, f, Q, R, S, T, U, V, j, m, k, n, g, h, q, r, o, p, t, s, d, u } from "./index-yGuI1fTp.js";
|
|
2
2
|
export {
|
|
3
3
|
b as CoinleyCheckout,
|
|
4
4
|
C as CoinleyError,
|