stablezact-pay 0.66.0 → 0.68.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-BA2ym_mw.js → CoinleyPayment-C6ChHSdL.js} +48 -5
- package/dist/{appKitEVM--bpTC7Do.js → appKitEVM-BKw-NMzs.js} +2 -2
- package/dist/{appKitSolana-DUo_eFgJ.js → appKitSolana-BUMkrcwF.js} +2 -2
- package/dist/coinley-vanilla.min.js +1 -1
- package/dist/{index-DYkC2Bui.js → index-CW1p6ar4.js} +3 -3
- package/dist/{index-BTn5xw-W.js → index-DF6Gn171.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 +4 -15
|
@@ -6,7 +6,7 @@ import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
|
6
6
|
import ReactDOM, { createPortal } from "react-dom";
|
|
7
7
|
import { useConnect, useAccount, useSwitchChain, useSendTransaction, useWaitForTransactionReceipt, WagmiProvider, useDisconnect } from "wagmi";
|
|
8
8
|
import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
|
|
9
|
-
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-
|
|
9
|
+
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-CW1p6ar4.js";
|
|
10
10
|
import { createConfig, fallback, http, getAccount as getAccount$1, getWalletClient, simulateContract, writeContract, readContract, waitForTransactionReceipt, estimateFeesPerGas as estimateFeesPerGas$1 } from "@wagmi/core";
|
|
11
11
|
import { injected, metaMask, coinbaseWallet, walletConnect } from "@wagmi/connectors";
|
|
12
12
|
import { defineChain as defineChain$1, erc20Abi, http as http$1, createPublicClient, fallback as fallback$1 } from "viem";
|
|
@@ -23641,7 +23641,7 @@ const WalletSelector = ({
|
|
|
23641
23641
|
try {
|
|
23642
23642
|
setAppKitError(null);
|
|
23643
23643
|
setWalletConnectAddress(solanaAccountState.address);
|
|
23644
|
-
const { createWalletConnectAdapter } = await import("./appKitSolana-
|
|
23644
|
+
const { createWalletConnectAdapter } = await import("./appKitSolana-BUMkrcwF.js");
|
|
23645
23645
|
const adapter = createWalletConnectAdapter(solanaAccountState.address);
|
|
23646
23646
|
await solanaWallet.connectWalletConnect(adapter, solanaAccountState.address);
|
|
23647
23647
|
console.log("✅ WalletConnect synced with SDK");
|
|
@@ -23746,7 +23746,7 @@ const WalletSelector = ({
|
|
|
23746
23746
|
setAppKitLoading(true);
|
|
23747
23747
|
setAppKitError(null);
|
|
23748
23748
|
try {
|
|
23749
|
-
const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM
|
|
23749
|
+
const { initializeAppKitEVM, openAppKitModal } = await import("./appKitEVM-BKw-NMzs.js");
|
|
23750
23750
|
await initializeAppKitEVM(wagmiConfig);
|
|
23751
23751
|
await openAppKitModal();
|
|
23752
23752
|
} catch (error) {
|
|
@@ -23766,7 +23766,7 @@ const WalletSelector = ({
|
|
|
23766
23766
|
setAppKitError(null);
|
|
23767
23767
|
try {
|
|
23768
23768
|
console.log("📦 Loading AppKit Solana module...");
|
|
23769
|
-
const { initializeAppKitSolana } = await import("./appKitSolana-
|
|
23769
|
+
const { initializeAppKitSolana } = await import("./appKitSolana-BUMkrcwF.js");
|
|
23770
23770
|
console.log("✅ Module loaded, initializing...");
|
|
23771
23771
|
const modal = await initializeAppKitSolana(solanaWallet);
|
|
23772
23772
|
console.log("✅ AppKit Solana initialized successfully");
|
|
@@ -29258,6 +29258,49 @@ const CoinleyPaymentInternal = ({
|
|
|
29258
29258
|
return `${hash.slice(0, 7)}...${hash.slice(-8)}`;
|
|
29259
29259
|
};
|
|
29260
29260
|
if (!isOpen) return null;
|
|
29261
|
+
if (refundRequestStatus === "pending") {
|
|
29262
|
+
return renderInPortal(
|
|
29263
|
+
/* @__PURE__ */ jsxs("div", { id: SDK_ROOT_ID, className: `${SDK_ROOT_CLASS} fixed inset-0 z-50`, style: { fontFamily: FONT_FAMILY }, children: [
|
|
29264
|
+
/* @__PURE__ */ jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50", onClick: onClose }),
|
|
29265
|
+
/* @__PURE__ */ jsx("div", { className: isMobile ? "fixed inset-0 flex items-end" : "fixed inset-0 flex items-center justify-center p-4", style: { zIndex: 51 }, children: /* @__PURE__ */ jsxs("div", { className: isMobile ? "coinley-mobile-sheet relative flex w-full max-h-[92dvh] flex-col overflow-hidden rounded-t-[24px] bg-white px-5 pb-6 pt-7 shadow-2xl animate-slide-up-sheet" : "relative flex h-auto min-h-[540px] w-[430px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-[28px] bg-white px-5 pb-5 pt-7 shadow-2xl", children: [
|
|
29266
|
+
/* @__PURE__ */ jsx(
|
|
29267
|
+
"button",
|
|
29268
|
+
{
|
|
29269
|
+
type: "button",
|
|
29270
|
+
onClick: onClose,
|
|
29271
|
+
className: "absolute right-4 top-5 flex h-8 w-8 items-center justify-center rounded-full text-[#111827] transition-colors hover:bg-gray-100",
|
|
29272
|
+
"aria-label": "Close payment modal",
|
|
29273
|
+
children: /* @__PURE__ */ jsx("svg", { className: "h-5 w-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
|
|
29274
|
+
}
|
|
29275
|
+
),
|
|
29276
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col pt-6", children: [
|
|
29277
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col items-center justify-center text-center", children: [
|
|
29278
|
+
/* @__PURE__ */ jsx("div", { className: "mb-5 flex h-[72px] w-[72px] items-center justify-center rounded-full bg-[#DDF8E7]", children: /* @__PURE__ */ jsx("div", { className: "flex h-14 w-14 items-center justify-center rounded-full bg-[#22C55E] 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: 3, d: "M5 13l4 4L19 7" }) }) }) }),
|
|
29279
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-base font-bold text-[#111827]", children: "Refund request received" }),
|
|
29280
|
+
/* @__PURE__ */ jsx("p", { className: "text-[17px] leading-6 text-[#111827]", children: "Your refund is being processed automatically." }),
|
|
29281
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-[17px] leading-6 text-[#A9ABB2]", children: "You can safely close the modal" })
|
|
29282
|
+
] }),
|
|
29283
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-8 border-t border-[#EEF0F4] pt-4", children: [
|
|
29284
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
29285
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-[#8B8E98]", children: "Status" }),
|
|
29286
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-[#111827]", children: "Processing" })
|
|
29287
|
+
] }),
|
|
29288
|
+
/* @__PURE__ */ jsx("p", { className: "mt-2 text-xs text-[#9CA0A8]", children: "Typically takes about 5 - 10 minutes." })
|
|
29289
|
+
] }),
|
|
29290
|
+
/* @__PURE__ */ jsx(
|
|
29291
|
+
"button",
|
|
29292
|
+
{
|
|
29293
|
+
type: "button",
|
|
29294
|
+
onClick: onClose,
|
|
29295
|
+
className: "mt-5 h-[52px] w-full rounded-xl bg-[#7042D2] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#5b34b1]",
|
|
29296
|
+
children: "Close"
|
|
29297
|
+
}
|
|
29298
|
+
)
|
|
29299
|
+
] })
|
|
29300
|
+
] }) })
|
|
29301
|
+
] })
|
|
29302
|
+
);
|
|
29303
|
+
}
|
|
29261
29304
|
if (currentStep === PAYMENT_STEPS.PROCESSING) {
|
|
29262
29305
|
return renderInPortal(
|
|
29263
29306
|
/* @__PURE__ */ jsxs("div", { id: SDK_ROOT_ID, className: `${SDK_ROOT_CLASS} fixed inset-0 z-50`, style: { fontFamily: FONT_FAMILY }, children: [
|
|
@@ -31102,4 +31145,4 @@ export {
|
|
|
31102
31145
|
chainTransports as c,
|
|
31103
31146
|
isFeatureEnabled as i
|
|
31104
31147
|
};
|
|
31105
|
-
//# sourceMappingURL=CoinleyPayment-
|
|
31148
|
+
//# sourceMappingURL=CoinleyPayment-C6ChHSdL.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-C6ChHSdL.js";
|
|
2
2
|
const logo = "https://coinley.io/logo.png";
|
|
3
3
|
let appKitInstance = null;
|
|
4
4
|
let isInitializing = false;
|
|
@@ -135,4 +135,4 @@ export {
|
|
|
135
135
|
openAppKitModal,
|
|
136
136
|
resetAppKitInstance
|
|
137
137
|
};
|
|
138
|
-
//# sourceMappingURL=appKitEVM
|
|
138
|
+
//# sourceMappingURL=appKitEVM-BKw-NMzs.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-C6ChHSdL.js";
|
|
2
2
|
const logo = "https://coinley.io/logo.png";
|
|
3
3
|
let appKitInstance = null;
|
|
4
4
|
let isInitializing = false;
|
|
@@ -306,4 +306,4 @@ export {
|
|
|
306
306
|
openAppKitModalSolana,
|
|
307
307
|
resetAppKitInstanceSolana
|
|
308
308
|
};
|
|
309
|
-
//# sourceMappingURL=appKitSolana-
|
|
309
|
+
//# sourceMappingURL=appKitSolana-BUMkrcwF.js.map
|