@superlogic/spree-pay 0.3.4 → 0.3.5
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-BZZUG4BL.js → CryptoComTab-P4MC2R2N.js} +2 -2
- package/build/{CryptoTab-PJIZU5AQ.js → CryptoTab-CI5C22BD.js} +2 -2
- package/build/{chunk-ER5YKU2O.js → chunk-D23MABH2.js} +1 -1
- package/build/{chunk-GO3SK2EV.js → chunk-FHY6YBXC.js} +1 -1
- package/build/{chunk-5FKBVNC4.js → chunk-KQ25SXYH.js} +1 -1
- package/build/index.cjs +4 -2
- package/build/index.js +7 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Iframe3ds
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D23MABH2.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-KQ25SXYH.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-FHY6YBXC.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-KQ25SXYH.js";
|
|
20
20
|
|
|
21
21
|
// src/components/CryptoTab/Crypto/CryptoWrapper.tsx
|
|
22
22
|
import { useMemo as useMemo2 } from "react";
|
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.3.
|
|
71
|
+
version = "0.3.5";
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
|
|
@@ -3026,8 +3026,10 @@ var useSplitCardPayments = (mode = "web2") => {
|
|
|
3026
3026
|
|
|
3027
3027
|
// src/hooks/useCards.ts
|
|
3028
3028
|
var import_swr2 = __toESM(require("swr"), 1);
|
|
3029
|
+
init_SpreePayActionsContext();
|
|
3029
3030
|
var useCards = () => {
|
|
3030
|
-
const {
|
|
3031
|
+
const { origin } = useSpreePayEnv();
|
|
3032
|
+
const { data, isLoading, mutate } = (0, import_swr2.default)(`/v1/payments/cards?origin=${origin}`);
|
|
3031
3033
|
return {
|
|
3032
3034
|
cards: data?.data.filter((c) => c.active) || [],
|
|
3033
3035
|
cardsIsLoading: isLoading,
|
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-FHY6YBXC.js";
|
|
12
12
|
import {
|
|
13
13
|
Iframe3ds
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-D23MABH2.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-KQ25SXYH.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";
|
|
@@ -538,7 +538,8 @@ var useSplitCardPayments = (mode = "web2") => {
|
|
|
538
538
|
// src/hooks/useCards.ts
|
|
539
539
|
import useSWR from "swr";
|
|
540
540
|
var useCards = () => {
|
|
541
|
-
const {
|
|
541
|
+
const { origin } = useSpreePayEnv();
|
|
542
|
+
const { data, isLoading, mutate } = useSWR(`/v1/payments/cards?origin=${origin}`);
|
|
542
543
|
return {
|
|
543
544
|
cards: data?.data.filter((c) => c.active) || [],
|
|
544
545
|
cardsIsLoading: isLoading,
|
|
@@ -2190,9 +2191,9 @@ var TabButtons = (props) => {
|
|
|
2190
2191
|
|
|
2191
2192
|
// src/SpreePayContent.tsx
|
|
2192
2193
|
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2193
|
-
var CryptoTab = lazy(() => import("./CryptoTab-
|
|
2194
|
+
var CryptoTab = lazy(() => import("./CryptoTab-CI5C22BD.js").then((module) => ({ default: module.CryptoTab })));
|
|
2194
2195
|
var CryptoComTab = lazy(
|
|
2195
|
-
() => import("./CryptoComTab-
|
|
2196
|
+
() => import("./CryptoComTab-P4MC2R2N.js").then((module) => ({ default: module.CryptoComTab }))
|
|
2196
2197
|
);
|
|
2197
2198
|
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
2199
|
/* @__PURE__ */ jsx18("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-(--border-component-specific-card) border-t-(--brand-primary)" }),
|