coinley-pay 0.56.0 → 0.57.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.
- package/dist/{CoinleyPayment-D8RFAoLv.js → CoinleyPayment-CvhX-WMY.js} +14 -14
- package/dist/{appKitEVM-CHDlhhVF.js → appKitEVM-BAdtRD8N.js} +2 -2
- package/dist/{appKitSolana-B-2MO2dc.js → appKitSolana-PRcbceg-.js} +2 -2
- package/dist/coinley-vanilla.min.js +1 -1
- package/dist/{index-vyOEi34n.js → index-BEoyCZfx.js} +3 -3
- package/dist/{index-DL3QwNBL.js → index-M3kJQHOT.js} +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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-M3kJQHOT.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";
|
|
@@ -21126,7 +21126,7 @@ const WalletSelector = ({
|
|
|
21126
21126
|
try {
|
|
21127
21127
|
setAppKitError(null);
|
|
21128
21128
|
setWalletConnectAddress(solanaAccountState.address);
|
|
21129
|
-
const { createWalletConnectAdapter } = await import("./appKitSolana-
|
|
21129
|
+
const { createWalletConnectAdapter } = await import("./appKitSolana-PRcbceg-.js");
|
|
21130
21130
|
const adapter = createWalletConnectAdapter(solanaAccountState.address);
|
|
21131
21131
|
await solanaWallet.connectWalletConnect(adapter, solanaAccountState.address);
|
|
21132
21132
|
console.log("✅ WalletConnect synced with SDK");
|
|
@@ -21231,7 +21231,7 @@ const WalletSelector = ({
|
|
|
21231
21231
|
setAppKitLoading(true);
|
|
21232
21232
|
setAppKitError(null);
|
|
21233
21233
|
try {
|
|
21234
|
-
const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-
|
|
21234
|
+
const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-BAdtRD8N.js");
|
|
21235
21235
|
await initializeAppKitEVM(wagmiConfig);
|
|
21236
21236
|
await openAppKitModal();
|
|
21237
21237
|
} catch (error) {
|
|
@@ -21251,7 +21251,7 @@ const WalletSelector = ({
|
|
|
21251
21251
|
setAppKitError(null);
|
|
21252
21252
|
try {
|
|
21253
21253
|
console.log("📦 Loading AppKit Solana module...");
|
|
21254
|
-
const { initializeAppKitSolana } = await import("./appKitSolana-
|
|
21254
|
+
const { initializeAppKitSolana } = await import("./appKitSolana-PRcbceg-.js");
|
|
21255
21255
|
console.log("✅ Module loaded, initializing...");
|
|
21256
21256
|
const modal = await initializeAppKitSolana(solanaWallet);
|
|
21257
21257
|
console.log("✅ AppKit Solana initialized successfully");
|
|
@@ -27093,7 +27093,7 @@ const CoinleyPaymentInternal = ({
|
|
|
27093
27093
|
className: "h-8 w-full rounded-lg border border-[#E5E7EB] bg-white px-3 text-xs text-[#1F2430] outline-none placeholder:text-[#A9ABB2] focus:border-[#B49AF0]"
|
|
27094
27094
|
}
|
|
27095
27095
|
) }),
|
|
27096
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-
|
|
27096
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: visibleWalletNetworkOptions.length > 0 ? visibleWalletNetworkOptions.map((network) => /* @__PURE__ */ jsxs(
|
|
27097
27097
|
"button",
|
|
27098
27098
|
{
|
|
27099
27099
|
type: "button",
|
|
@@ -27103,7 +27103,7 @@ const CoinleyPaymentInternal = ({
|
|
|
27103
27103
|
setPaymentData(null);
|
|
27104
27104
|
setWalletNetworkSearch("");
|
|
27105
27105
|
},
|
|
27106
|
-
className: "flex min-h-10 items-center gap-2 rounded-xl bg-[#FAFAFB] px-3 py-2 text-left text-sm text-[#1F2430] transition-colors hover:bg-purple-50",
|
|
27106
|
+
className: "flex min-h-10 min-w-0 items-center gap-2 rounded-xl bg-[#FAFAFB] px-3 py-2 text-left text-sm text-[#1F2430] transition-colors hover:bg-purple-50",
|
|
27107
27107
|
children: [
|
|
27108
27108
|
/* @__PURE__ */ jsx(
|
|
27109
27109
|
"img",
|
|
@@ -27177,7 +27177,7 @@ const CoinleyPaymentInternal = ({
|
|
|
27177
27177
|
className: "mb-2 h-8 w-full rounded-lg border border-[#E5E7EB] bg-white px-3 text-xs text-[#1F2430] outline-none placeholder:text-[#A9ABB2] focus:border-[#B49AF0]"
|
|
27178
27178
|
}
|
|
27179
27179
|
),
|
|
27180
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-
|
|
27180
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: visibleWalletTokens.length > 0 ? visibleWalletTokens.map((token) => /* @__PURE__ */ jsxs(
|
|
27181
27181
|
"button",
|
|
27182
27182
|
{
|
|
27183
27183
|
type: "button",
|
|
@@ -27186,7 +27186,7 @@ const CoinleyPaymentInternal = ({
|
|
|
27186
27186
|
setTokenSearch("");
|
|
27187
27187
|
setPaymentData(null);
|
|
27188
27188
|
},
|
|
27189
|
-
className: "flex min-h-10 items-center gap-2 rounded-xl bg-[#FAFAFB] px-3 py-2 text-left text-sm text-[#1F2430] transition-colors hover:bg-purple-50",
|
|
27189
|
+
className: "flex min-h-10 min-w-0 items-center gap-2 rounded-xl bg-[#FAFAFB] px-3 py-2 text-left text-sm text-[#1F2430] transition-colors hover:bg-purple-50",
|
|
27190
27190
|
children: [
|
|
27191
27191
|
/* @__PURE__ */ jsx(
|
|
27192
27192
|
"img",
|
|
@@ -27275,13 +27275,13 @@ const CoinleyPaymentInternal = ({
|
|
|
27275
27275
|
}
|
|
27276
27276
|
}),
|
|
27277
27277
|
/* @__PURE__ */ jsx("p", { className: "mb-2 text-xs font-medium text-[#1F2430]", children: "Please select your wallet app" }),
|
|
27278
|
-
/* @__PURE__ */ jsx("div", { className: "mb-3 grid grid-cols-
|
|
27278
|
+
/* @__PURE__ */ jsx("div", { className: "mb-3 grid grid-cols-3 gap-1.5", children: qrWalletOptions.map((wallet) => /* @__PURE__ */ jsxs(
|
|
27279
27279
|
"button",
|
|
27280
27280
|
{
|
|
27281
27281
|
type: "button",
|
|
27282
27282
|
onClick: () => handleQrWalletSelect(wallet.id),
|
|
27283
27283
|
disabled: !selectedNetwork || !selectedToken || qrLoading || isConverting,
|
|
27284
|
-
className: `relative flex
|
|
27284
|
+
className: `relative flex h-[76px] min-w-0 flex-col items-start justify-between rounded-lg border bg-[#FAFAFB] px-2.5 py-3 text-left transition-colors ${preferredWallet === wallet.id ? "border-[#7042D2] bg-[#FBF8FF]" : "border-[#EEF0F4] hover:border-[#C9B8F6]"} disabled:cursor-not-allowed disabled:opacity-60`,
|
|
27285
27285
|
children: [
|
|
27286
27286
|
preferredWallet === wallet.id && qrWalletChoiceConfirmed && /* @__PURE__ */ jsx("span", { className: "absolute right-[-5px] top-[-6px] flex h-4 w-4 items-center justify-center rounded-full border border-[#7042D2] bg-white text-[#7042D2]", children: /* @__PURE__ */ jsx("svg", { className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M5 13l4 4L19 7" }) }) }),
|
|
27287
27287
|
/* @__PURE__ */ jsx(
|
|
@@ -27295,7 +27295,7 @@ const CoinleyPaymentInternal = ({
|
|
|
27295
27295
|
}
|
|
27296
27296
|
}
|
|
27297
27297
|
),
|
|
27298
|
-
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate text-
|
|
27298
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 max-w-full truncate text-[13px] font-medium text-[#111827]", children: wallet.name })
|
|
27299
27299
|
]
|
|
27300
27300
|
},
|
|
27301
27301
|
wallet.id
|
|
@@ -27671,7 +27671,7 @@ const CoinleyPaymentInternal = ({
|
|
|
27671
27671
|
}
|
|
27672
27672
|
),
|
|
27673
27673
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: selectedNetwork.name })
|
|
27674
|
-
] }) : /* @__PURE__ */ jsx("div", { className: "grid grid-cols-
|
|
27674
|
+
] }) : /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: merchantFilteredNetworks.map((network) => /* @__PURE__ */ jsxs(
|
|
27675
27675
|
"button",
|
|
27676
27676
|
{
|
|
27677
27677
|
onClick: () => handleNetworkSelect(network),
|
|
@@ -27720,7 +27720,7 @@ const CoinleyPaymentInternal = ({
|
|
|
27720
27720
|
className: "w-full mb-3 px-3 py-2 text-sm border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-[#7042D2] focus:border-transparent"
|
|
27721
27721
|
}
|
|
27722
27722
|
),
|
|
27723
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-
|
|
27723
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: availableTokens.filter((t) => {
|
|
27724
27724
|
var _a3;
|
|
27725
27725
|
return !tokenSearch || t.symbol.toLowerCase().includes(tokenSearch.toLowerCase()) || ((_a3 = t.name) == null ? void 0 : _a3.toLowerCase().includes(tokenSearch.toLowerCase()));
|
|
27726
27726
|
}).map((token) => /* @__PURE__ */ jsxs(
|
|
@@ -28132,4 +28132,4 @@ export {
|
|
|
28132
28132
|
chainTransports as c,
|
|
28133
28133
|
isFeatureEnabled as i
|
|
28134
28134
|
};
|
|
28135
|
-
//# sourceMappingURL=CoinleyPayment-
|
|
28135
|
+
//# sourceMappingURL=CoinleyPayment-CvhX-WMY.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-
|
|
1
|
+
import { i as isFeatureEnabled, F as FEATURES, c as chainTransports, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-CvhX-WMY.js";
|
|
2
2
|
const logo = "https://coinley.io/logo.png";
|
|
3
3
|
let appKitInstance = null;
|
|
4
4
|
let isInitializing = false;
|
|
@@ -113,4 +113,4 @@ export {
|
|
|
113
113
|
initializeAppKitEVM,
|
|
114
114
|
openAppKitModal
|
|
115
115
|
};
|
|
116
|
-
//# sourceMappingURL=appKitEVM-
|
|
116
|
+
//# sourceMappingURL=appKitEVM-BAdtRD8N.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FEATURES, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-
|
|
1
|
+
import { F as FEATURES, W as WALLETCONNECT_PROJECT_ID } from "./CoinleyPayment-CvhX-WMY.js";
|
|
2
2
|
const logo = "https://coinley.io/logo.png";
|
|
3
3
|
let appKitInstance = null;
|
|
4
4
|
let isInitializing = false;
|
|
@@ -243,4 +243,4 @@ export {
|
|
|
243
243
|
disconnectWalletConnect,
|
|
244
244
|
initializeAppKitSolana
|
|
245
245
|
};
|
|
246
|
-
//# sourceMappingURL=appKitSolana-
|
|
246
|
+
//# sourceMappingURL=appKitSolana-PRcbceg-.js.map
|