@cedros/pay-react 1.1.23 → 1.1.24
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/{AISettingsSection-DpMIk431.mjs → AISettingsSection-Dw0ZlxMf.mjs} +2 -2
- package/dist/{AISettingsSection-DAztmwnN.js → AISettingsSection-IXS1Wt_1.js} +1 -1
- package/dist/{AutosaveIndicator-BRCqAWqP.mjs → AutosaveIndicator-BJsg_kFZ.mjs} +1 -1
- package/dist/{AutosaveIndicator-BnQkKxzr.js → AutosaveIndicator-CY_YHM1D.js} +1 -1
- package/dist/{CedrosContext-BlArEF7k.mjs → CedrosContext-DQUbL8yP.mjs} +17 -17
- package/dist/{CryptoButton-CREryx1l.mjs → CryptoButton-D1BCZBk4.mjs} +51 -51
- package/dist/{FAQSection-yw64HLy3.js → FAQSection-BmgmzDN5.js} +1 -1
- package/dist/{FAQSection-Ruzs7a-0.mjs → FAQSection-C78MnK4k.mjs} +1 -1
- package/dist/{MessagingSection-Dp_SaXsv.js → MessagingSection-CWLZcg11.js} +1 -1
- package/dist/{MessagingSection-BLRjfBQT.mjs → MessagingSection-De3t8bSI.mjs} +2 -2
- package/dist/{OrdersSection-C2dyWqrR.js → OrdersSection-BKOxsZw0.js} +1 -1
- package/dist/{OrdersSection-l-MtP9EN.mjs → OrdersSection-_xKVzjSZ.mjs} +1 -1
- package/dist/{PaymentSettingsSection-C5bhLgU7.js → PaymentSettingsSection-BTEn9Dxb.js} +1 -1
- package/dist/{PaymentSettingsSection-Bbq93UtC.mjs → PaymentSettingsSection-KjU_dN_d.mjs} +1 -1
- package/dist/{SettingsSection-DorqCFXE.mjs → SettingsSection-8QHZB59k.mjs} +1 -1
- package/dist/{SettingsSection-D_pKPRrP.js → SettingsSection-cKF0tLnS.js} +1 -1
- package/dist/{SingleCategorySettings-BAND8Zkw.mjs → SingleCategorySettings--LK0TZW0.mjs} +3 -3
- package/dist/{SingleCategorySettings-Cg-zuJfr.js → SingleCategorySettings-CRXTMTo5.js} +1 -1
- package/dist/{StorefrontSection-QZPEZ6Lz.js → StorefrontSection-C9DzCmOf.js} +1 -1
- package/dist/{StorefrontSection-FSOxBclu.mjs → StorefrontSection-CeCpr8hn.mjs} +2 -2
- package/dist/{SubscriptionsSection-C4TDXCX2.mjs → SubscriptionsSection-C2xk8ApF.mjs} +1 -1
- package/dist/{SubscriptionsSection-DYr99VzB.js → SubscriptionsSection-Dn5SY6S_.js} +1 -1
- package/dist/{Token22Section-D3nnUyim.js → Token22Section-DUUl59dZ.js} +1 -1
- package/dist/{Token22Section-Cmn2lKcd.mjs → Token22Section-HygkDNtL.mjs} +2 -2
- package/dist/{WalletManager-peBN6RDH.mjs → WalletManager-CXvQ0Zu9.mjs} +1 -1
- package/dist/{bn-CHdpZHQm.mjs → bn-Bv2sKQMU.mjs} +1 -1
- package/dist/{bn-RbgIlcHc.js → bn-CHyy7EgJ.js} +1 -1
- package/dist/crypto-only.js +1 -1
- package/dist/crypto-only.mjs +7 -7
- package/dist/{index-CKNB7XsA.mjs → index-BHF82XBB.mjs} +625 -625
- package/dist/{index-vEe2Y39x.js → index-OaWkrl0G.js} +8 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{sections-Cklkxd85.js → sections-8e5Y3ukY.js} +1 -1
- package/dist/sections-C1rb9YRh.mjs +9 -0
- package/dist/stripe-only.mjs +2 -2
- package/dist/{styles-2VMpwuaI.mjs → styles-Ag-7ZvAB.mjs} +46 -46
- package/dist/testing/index.mjs +1 -1
- package/dist/{walletPool-DgQsh7Se.mjs → walletPool-C_0P4mTw.mjs} +1 -1
- package/package.json +6 -1
- package/dist/sections-Dt6vxDU4.mjs +0 -8
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./styles-21F1-oqx.js"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./styles-21F1-oqx.js"),r=require("./index-OaWkrl0G.js"),t=require("./CedrosContext-7dwmEeUY.js");exports.CEDROS_EVENTS=e.CEDROS_EVENTS;exports.CSP_PRESETS=e.CSP_PRESETS;exports.CedrosPay=e.CedrosPay;exports.CreditsButton=e.CreditsButton;exports.CreditsSubscribeButton=e.CreditsSubscribeButton;exports.PaymentMethodBadge=e.PaymentMethodBadge;exports.PaymentModal=e.PaymentModal;exports.ProductPrice=e.ProductPrice;exports.PurchaseButton=e.PurchaseButton;exports.RPC_PROVIDERS=e.RPC_PROVIDERS;exports.SECURITY_RECOMMENDATIONS=e.SECURITY_RECOMMENDATIONS;exports.StripeButton=e.StripeButton;exports.SubscribeButton=e.SubscribeButton;exports.SubscriptionManagementPanel=e.SubscriptionManagementPanel;exports.calculateDiscountPercentage=e.calculateDiscountPercentage;exports.createTranslator=e.createTranslator;exports.detectLocale=e.detectLocale;exports.emitPaymentError=e.emitPaymentError;exports.emitPaymentProcessing=e.emitPaymentProcessing;exports.emitPaymentStart=e.emitPaymentStart;exports.emitPaymentSuccess=e.emitPaymentSuccess;exports.emitWalletConnect=e.emitWalletConnect;exports.emitWalletConnected=e.emitWalletConnected;exports.emitWalletError=e.emitWalletError;exports.formatCSP=e.formatCSP;exports.formatCouponCodes=e.formatCouponCodes;exports.generateCSP=e.generateCSP;exports.generateCSPDirectives=e.generateCSPDirectives;exports.getAvailableLocales=e.getAvailableLocales;exports.getLocalizedError=e.getLocalizedError;exports.getUserErrorMessage=e.getUserErrorMessage;exports.isRetryableError=e.isRetryableError;exports.loadLocale=e.loadLocale;exports.logSecurityReport=e.logSecurityReport;exports.parseCouponCodes=e.parseCouponCodes;exports.stackCheckoutCoupons=e.stackCheckoutCoupons;exports.useCreditsPayment=e.useCreditsPayment;exports.useCreditsSubscription=e.useCreditsSubscription;exports.useLocalizedError=e.useLocalizedError;exports.usePaymentMode=e.usePaymentMode;exports.useStripeCheckout=e.useStripeCheckout;exports.useSubscription=e.useSubscription;exports.useSubscriptionManagement=e.useSubscriptionManagement;exports.useTranslation=e.useTranslation;exports.validateSecurity=e.validateSecurity;exports.CEDROS_PAY_GROUPS=r.CEDROS_PAY_GROUPS;exports.CEDROS_PAY_SECTIONS=r.CEDROS_PAY_SECTIONS;exports.CEDROS_PAY_SECTION_IDS=r.CEDROS_PAY_SECTION_IDS;exports.CedrosPayAdminDashboard=r.CedrosPayAdminDashboard;exports.CreditsBalance=r.CreditsBalance;exports.cedrosPayPlugin=r.cedrosPayPlugin;exports.ecommerce=r.index;exports.useCreditsBalance=r.useCreditsBalance;exports.CIRCUIT_BREAKER_PRESETS=t.CIRCUIT_BREAKER_PRESETS;exports.CedrosProvider=t.CedrosProvider;exports.CircuitBreakerOpenError=t.CircuitBreakerOpenError;exports.CircuitState=t.CircuitState;exports.ERROR_CATEGORIES=t.ERROR_CATEGORIES;exports.LogLevel=t.LogLevel;exports.Logger=t.Logger;exports.RATE_LIMITER_PRESETS=t.RATE_LIMITER_PRESETS;exports.RETRY_PRESETS=t.RETRY_PRESETS;exports.createCircuitBreaker=t.createCircuitBreaker;exports.createLogger=t.createLogger;exports.createRateLimiter=t.createRateLimiter;exports.getLogger=t.getLogger;exports.retryWithBackoff=t.retryWithBackoff;exports.useCedrosContext=t.useCedrosContext;exports.useCedrosTheme=t.useCedrosTheme;exports.validateConfig=t.validateConfig;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { C as s, a as t, b as r, c as o, d as i, P as c, e as n, f as C, g as u, R as S, S as E, h as P, i as d, j as R, k as l, l as m, m as g, n as T, o as _, p, q as y, r as b, s as L, t as O, u as B, v as I, w as D, x as f, y as A, z as M, A as h, B as v, D as k, E as N, F as x, G as Y, H as U, I as W, J as z, K as G, L as j, M as K, N as V, O as q, Q as w } from "./styles-Ag-7ZvAB.mjs";
|
|
2
|
+
import { C as H, a as J, b as Q, c as X, d as Z, e as $, i as aa, u as ea } from "./index-BHF82XBB.mjs";
|
|
3
|
+
import { C as ta, a as ra, b as oa, c as ia, E as ca, L as na, d as Ca, R as ua, e as Sa, f as Ea, g as Pa, h as da, i as Ra, r as la, u as ma, j as ga, v as Ta } from "./CedrosContext-DQUbL8yP.mjs";
|
|
4
4
|
export {
|
|
5
5
|
s as CEDROS_EVENTS,
|
|
6
6
|
H as CEDROS_PAY_GROUPS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-OaWkrl0G.js");exports.CouponsSection=t.CouponsSection;exports.ProductsSection=t.ProductsSection;exports.RefundsSection=t.RefundsSection;exports.SettingsSection=t.SettingsSection;exports.TransactionsSection=t.TransactionsSection;
|
package/dist/stripe-only.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { C as s, a as t, b as r, c as o, d as i, P as n, e as c, f as u, g as C, R as E, S, h as P, i as l, j as R, k as d, l as m, m as g, n as p, o as T, p as y, q as L, r as b, s as B, t as M, u as _, v as f, w as I, x as h, y as v, z as O, A as k, B as A, D, E as x, F as N, G as W, H as z, I as U, J as j, K as G, L as K, M as V, N as Y, O as q, Q as w } from "./styles-Ag-7ZvAB.mjs";
|
|
2
|
+
import { C as H, a as J, b as Q, c as X, E as Z, L as $, d as ee, R as ae, e as se, f as te, g as re, h as oe, i as ie, r as ne, u as ce, j as ue, v as Ce } from "./CedrosContext-DQUbL8yP.mjs";
|
|
3
3
|
export {
|
|
4
4
|
s as CEDROS_EVENTS,
|
|
5
5
|
H as CIRCUIT_BREAKER_PRESETS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as j, P as ke, u as re, o as be,
|
|
1
|
+
import { i as j, P as ke, u as re, o as be, j as V, m as pe } from "./CedrosContext-DQUbL8yP.mjs";
|
|
2
2
|
import { jsxs as S, jsx as f, Fragment as me } from "react/jsx-runtime";
|
|
3
3
|
import q, { useState as Q, useRef as X, useCallback as I, useMemo as F, useEffect as te } from "react";
|
|
4
4
|
function xt(e) {
|
|
@@ -858,7 +858,7 @@ function Te({
|
|
|
858
858
|
] });
|
|
859
859
|
}
|
|
860
860
|
const tt = q.lazy(
|
|
861
|
-
() => import("./CryptoButton-
|
|
861
|
+
() => import("./CryptoButton-D1BCZBk4.mjs").then((e) => e.a).then((e) => ({ default: e.CryptoButton }))
|
|
862
862
|
), rt = ({
|
|
863
863
|
isOpen: e,
|
|
864
864
|
onClose: t,
|
|
@@ -1171,7 +1171,7 @@ function at({
|
|
|
1171
1171
|
return /* @__PURE__ */ f(s, { endpoint: e, children: /* @__PURE__ */ f(u, { wallets: t, autoConnect: !1, children: r }) });
|
|
1172
1172
|
}
|
|
1173
1173
|
const it = q.lazy(
|
|
1174
|
-
() => import("./CryptoButton-
|
|
1174
|
+
() => import("./CryptoButton-D1BCZBk4.mjs").then((e) => e.a).then((e) => ({ default: e.CryptoButton }))
|
|
1175
1175
|
);
|
|
1176
1176
|
function qt(e) {
|
|
1177
1177
|
const { resource: t, items: r, checkout: n = {}, display: s = {}, callbacks: u = {}, advanced: g = {} } = e, { config: b, walletPool: h } = re(), c = V(), { isCartMode: a } = he(t, r), o = s.showCrypto ?? !0, d = q.useMemo(() => ({
|
|
@@ -2526,53 +2526,53 @@ const Qt = {
|
|
|
2526
2526
|
NO_SRI: "Do NOT use SRI hashes for Stripe.js - use CSP instead"
|
|
2527
2527
|
};
|
|
2528
2528
|
export {
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2529
|
+
Nt as A,
|
|
2530
|
+
Tt as B,
|
|
2531
|
+
J as C,
|
|
2532
|
+
Je as D,
|
|
2533
|
+
Yt as E,
|
|
2534
|
+
xt as F,
|
|
2535
|
+
_t as G,
|
|
2536
|
+
et as H,
|
|
2537
|
+
lt as I,
|
|
2538
|
+
At as J,
|
|
2539
|
+
he as K,
|
|
2540
|
+
Ie as L,
|
|
2541
|
+
ct as M,
|
|
2542
|
+
ut as N,
|
|
2543
2543
|
ne as O,
|
|
2544
|
-
|
|
2545
|
-
|
|
2544
|
+
Ut as P,
|
|
2545
|
+
Ht as Q,
|
|
2546
2546
|
jt as R,
|
|
2547
|
-
|
|
2547
|
+
Qt as S,
|
|
2548
2548
|
Ce as T,
|
|
2549
2549
|
ge as U,
|
|
2550
2550
|
se as V,
|
|
2551
2551
|
He as W,
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2552
|
+
Bt as a,
|
|
2553
|
+
qt as b,
|
|
2554
|
+
Te as c,
|
|
2555
|
+
Ft as d,
|
|
2556
|
+
rt as e,
|
|
2557
|
+
zt as f,
|
|
2558
|
+
nt as g,
|
|
2559
|
+
Me as h,
|
|
2560
|
+
Ot as i,
|
|
2561
|
+
Wt as j,
|
|
2562
|
+
kt as k,
|
|
2563
|
+
Ze as l,
|
|
2564
|
+
Xe as m,
|
|
2565
|
+
Y as n,
|
|
2566
|
+
ae as o,
|
|
2567
|
+
oe as p,
|
|
2568
|
+
ie as q,
|
|
2569
|
+
Rt as r,
|
|
2570
|
+
It as s,
|
|
2571
|
+
Mt as t,
|
|
2572
|
+
Ge as u,
|
|
2573
|
+
Et as v,
|
|
2574
|
+
Dt as w,
|
|
2575
|
+
Ve as x,
|
|
2576
|
+
Lt as y,
|
|
2577
|
+
$t as z
|
|
2578
2578
|
};
|
package/dist/testing/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedros/pay-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.24",
|
|
4
4
|
"description": "React frontend library for Cedros Pay - unified Stripe and Solana x402 payments",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -172,5 +172,10 @@
|
|
|
172
172
|
"build-storybook": "storybook build",
|
|
173
173
|
"prepublishOnly": "npm run lint && npm run type-check && npm test && npm run build",
|
|
174
174
|
"prepare": "husky"
|
|
175
|
+
},
|
|
176
|
+
"overrides": {
|
|
177
|
+
"elliptic": "npm:@soatok/elliptic-to-noble@9999.0.0",
|
|
178
|
+
"minimatch": "^10.2.3",
|
|
179
|
+
"lodash": "^4.17.23"
|
|
175
180
|
}
|
|
176
181
|
}
|