@superlogic/spree-pay 0.2.1 → 0.2.2
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/build/{CryptoComTab-WWW23OV5.js → CryptoComTab-7DN7HG7M.js} +2 -2
- package/build/{CryptoTab-HISSGXAC.js → CryptoTab-Z46HR527.js} +2 -2
- package/build/{chunk-2V675UEC.js → chunk-4BDR3N7M.js} +1 -1
- package/build/{chunk-RQX2IOTB.js → chunk-KPMIOTDR.js} +2 -2
- package/build/{chunk-FGNS5H2Q.js → chunk-NQAB4YTR.js} +1 -1
- package/build/index.cjs +3 -3
- package/build/index.css +3 -0
- package/build/index.js +6 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Iframe3ds
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4BDR3N7M.js";
|
|
4
4
|
import {
|
|
5
5
|
InfoBanner,
|
|
6
6
|
Legal,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useSpreePayRegister,
|
|
13
13
|
useSpreePaymentMethod,
|
|
14
14
|
useStaticConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KPMIOTDR.js";
|
|
16
16
|
|
|
17
17
|
// src/components/CryptoComTab/CryptoComTab.tsx
|
|
18
18
|
import { useCallback, useEffect } from "react";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CheckoutButton,
|
|
3
3
|
PointsSwitch,
|
|
4
4
|
cn as cn2
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NQAB4YTR.js";
|
|
6
6
|
import {
|
|
7
7
|
Dialog,
|
|
8
8
|
DialogContent,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
useSpreePayConfig,
|
|
17
17
|
useSpreePayRegister,
|
|
18
18
|
useSpreePaymentMethod
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KPMIOTDR.js";
|
|
20
20
|
|
|
21
21
|
// src/components/CryptoTab/Crypto/CryptoWrapper.tsx
|
|
22
22
|
import { useMemo as useMemo2 } from "react";
|
|
@@ -9,7 +9,7 @@ var PaymentType = /* @__PURE__ */ ((PaymentType2) => {
|
|
|
9
9
|
})(PaymentType || {});
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
|
-
var version = "0.2.
|
|
12
|
+
var version = "0.2.2";
|
|
13
13
|
|
|
14
14
|
// src/utils/logger.ts
|
|
15
15
|
var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
|
|
@@ -534,7 +534,7 @@ var InfoBanner = (props) => {
|
|
|
534
534
|
/* @__PURE__ */ jsx3(
|
|
535
535
|
"p",
|
|
536
536
|
{
|
|
537
|
-
className: "text-[14px] leading-5 text-(--primary) [&_a]:underline",
|
|
537
|
+
className: "break-anywhere text-[14px] leading-5 text-(--primary) [&_a]:underline",
|
|
538
538
|
dangerouslySetInnerHTML: { __html: xss(message) }
|
|
539
539
|
}
|
|
540
540
|
)
|
package/build/index.cjs
CHANGED
|
@@ -68,7 +68,7 @@ var init_payments = __esm({
|
|
|
68
68
|
var version;
|
|
69
69
|
var init_package = __esm({
|
|
70
70
|
"package.json"() {
|
|
71
|
-
version = "0.2.
|
|
71
|
+
version = "0.2.2";
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
|
|
@@ -1119,7 +1119,7 @@ var init_InfoBanner = __esm({
|
|
|
1119
1119
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1120
1120
|
"p",
|
|
1121
1121
|
{
|
|
1122
|
-
className: "text-[14px] leading-5 text-(--primary) [&_a]:underline",
|
|
1122
|
+
className: "break-anywhere text-[14px] leading-5 text-(--primary) [&_a]:underline",
|
|
1123
1123
|
dangerouslySetInnerHTML: { __html: (0, import_xss.default)(message) }
|
|
1124
1124
|
}
|
|
1125
1125
|
)
|
|
@@ -4679,7 +4679,7 @@ var TabButtons = (props) => {
|
|
|
4679
4679
|
onChange({ type, method: null });
|
|
4680
4680
|
}
|
|
4681
4681
|
};
|
|
4682
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex w-full gap-4 overflow-x-
|
|
4682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex w-full gap-4 overflow-x-auto px-5 py-2 md:px-7", children: [
|
|
4683
4683
|
configIsLoading && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "h-[74px] w-[180px] animate-pulse rounded-md bg-(--s-primary)" }),
|
|
4684
4684
|
spreePayConfig?.creditCard.enabled && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(TabButton, { onClick: handleChange("CREDIT_CARD" /* CREDIT_CARD */), isActive: value === "CREDIT_CARD" /* CREDIT_CARD */, children: [
|
|
4685
4685
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", className: "size-8", viewBox: "0 0 32 32", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
package/build/index.css
CHANGED
package/build/index.js
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getSplitAmount,
|
|
9
9
|
getTransactionFee,
|
|
10
10
|
useSlapiBalance
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NQAB4YTR.js";
|
|
12
12
|
import {
|
|
13
13
|
Iframe3ds
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4BDR3N7M.js";
|
|
15
15
|
import {
|
|
16
16
|
InfoBanner,
|
|
17
17
|
LogLevel,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
useSpreePayRegister,
|
|
32
32
|
useSpreePaymentMethod,
|
|
33
33
|
useStaticConfig
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KPMIOTDR.js";
|
|
35
35
|
|
|
36
36
|
// src/SpreePay.tsx
|
|
37
37
|
import { useCallback as useCallback7, useEffect as useEffect8, useMemo as useMemo7, useState as useState10 } from "react";
|
|
@@ -2144,7 +2144,7 @@ var TabButtons = (props) => {
|
|
|
2144
2144
|
onChange({ type, method: null });
|
|
2145
2145
|
}
|
|
2146
2146
|
};
|
|
2147
|
-
return /* @__PURE__ */ jsxs10("div", { className: "flex w-full gap-4 overflow-x-
|
|
2147
|
+
return /* @__PURE__ */ jsxs10("div", { className: "flex w-full gap-4 overflow-x-auto px-5 py-2 md:px-7", children: [
|
|
2148
2148
|
configIsLoading && /* @__PURE__ */ jsx17("div", { className: "h-[74px] w-[180px] animate-pulse rounded-md bg-(--s-primary)" }),
|
|
2149
2149
|
spreePayConfig?.creditCard.enabled && /* @__PURE__ */ jsxs10(TabButton, { onClick: handleChange("CREDIT_CARD" /* CREDIT_CARD */), isActive: value === "CREDIT_CARD" /* CREDIT_CARD */, children: [
|
|
2150
2150
|
/* @__PURE__ */ jsx17("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", className: "size-8", viewBox: "0 0 32 32", children: /* @__PURE__ */ jsx17(
|
|
@@ -2190,9 +2190,9 @@ var TabButtons = (props) => {
|
|
|
2190
2190
|
|
|
2191
2191
|
// src/SpreePayContent.tsx
|
|
2192
2192
|
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2193
|
-
var CryptoTab = lazy(() => import("./CryptoTab-
|
|
2193
|
+
var CryptoTab = lazy(() => import("./CryptoTab-Z46HR527.js").then((module) => ({ default: module.CryptoTab })));
|
|
2194
2194
|
var CryptoComTab = lazy(
|
|
2195
|
-
() => import("./CryptoComTab-
|
|
2195
|
+
() => import("./CryptoComTab-7DN7HG7M.js").then((module) => ({ default: module.CryptoComTab }))
|
|
2196
2196
|
);
|
|
2197
2197
|
var TabLoadingFallback = () => /* @__PURE__ */ jsx18("div", { className: "flex items-center justify-center px-5 py-8 md:px-7", children: /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center gap-3", children: [
|
|
2198
2198
|
/* @__PURE__ */ jsx18("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-(--border-component-specific-card) border-t-(--brand-primary)" }),
|