@superlogic/spree-pay 0.1.25 → 0.1.26
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/index.cjs +7 -1
- package/build/index.js +10 -4
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -43,6 +43,9 @@ var import_react18 = require("react");
|
|
|
43
43
|
var import_nice_modal_react7 = __toESM(require("@ebay/nice-modal-react"), 1);
|
|
44
44
|
var import_swr5 = require("swr");
|
|
45
45
|
|
|
46
|
+
// package.json
|
|
47
|
+
var version = "0.1.26";
|
|
48
|
+
|
|
46
49
|
// src/context/SpreePayActionsContext.tsx
|
|
47
50
|
var import_react = require("react");
|
|
48
51
|
|
|
@@ -3259,7 +3262,7 @@ var CryptoWrapper = () => {
|
|
|
3259
3262
|
appName: spreePayConfig.rainbowAppName,
|
|
3260
3263
|
projectId: spreePayConfig.rainbowProjectId,
|
|
3261
3264
|
chains: [import_chains.base],
|
|
3262
|
-
ssr:
|
|
3265
|
+
ssr: false
|
|
3263
3266
|
});
|
|
3264
3267
|
}, [spreePayConfig]);
|
|
3265
3268
|
if (!config) return null;
|
|
@@ -3453,6 +3456,9 @@ var SpreePayInner = () => {
|
|
|
3453
3456
|
const el = rootRef.current.querySelector(":scope > .sl-spreepay__portal");
|
|
3454
3457
|
setPortalEl(el ?? null);
|
|
3455
3458
|
}, []);
|
|
3459
|
+
(0, import_react18.useEffect)(() => {
|
|
3460
|
+
console.log(`[spree-pay] v${version}`);
|
|
3461
|
+
}, []);
|
|
3456
3462
|
const { env } = useSpreePayEnv();
|
|
3457
3463
|
const { staticConfig, appProps } = useStaticConfig();
|
|
3458
3464
|
const tenantId = env?.tenantId || "bookit";
|
package/build/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
// src/SpreePay.tsx
|
|
2
|
-
import { useLayoutEffect as useLayoutEffect3, useMemo as useMemo10, useRef as useRef7, useState as useState14 } from "react";
|
|
2
|
+
import { useEffect as useEffect11, useLayoutEffect as useLayoutEffect3, useMemo as useMemo10, useRef as useRef7, useState as useState14 } from "react";
|
|
3
3
|
import NiceModal7 from "@ebay/nice-modal-react";
|
|
4
4
|
import { SWRConfig } from "swr";
|
|
5
5
|
|
|
6
|
+
// package.json
|
|
7
|
+
var version = "0.1.26";
|
|
8
|
+
|
|
6
9
|
// src/context/SpreePayActionsContext.tsx
|
|
7
10
|
import { createContext, useCallback, useContext, useRef, useState } from "react";
|
|
8
11
|
|
|
@@ -3219,7 +3222,7 @@ var CryptoWrapper = () => {
|
|
|
3219
3222
|
appName: spreePayConfig.rainbowAppName,
|
|
3220
3223
|
projectId: spreePayConfig.rainbowProjectId,
|
|
3221
3224
|
chains: [base],
|
|
3222
|
-
ssr:
|
|
3225
|
+
ssr: false
|
|
3223
3226
|
});
|
|
3224
3227
|
}, [spreePayConfig]);
|
|
3225
3228
|
if (!config) return null;
|
|
@@ -3413,6 +3416,9 @@ var SpreePayInner = () => {
|
|
|
3413
3416
|
const el = rootRef.current.querySelector(":scope > .sl-spreepay__portal");
|
|
3414
3417
|
setPortalEl(el ?? null);
|
|
3415
3418
|
}, []);
|
|
3419
|
+
useEffect11(() => {
|
|
3420
|
+
console.log(`[spree-pay] v${version}`);
|
|
3421
|
+
}, []);
|
|
3416
3422
|
const { env } = useSpreePayEnv();
|
|
3417
3423
|
const { staticConfig, appProps } = useStaticConfig();
|
|
3418
3424
|
const tenantId = env?.tenantId || "bookit";
|
|
@@ -3463,9 +3469,9 @@ var SpreePay = (props) => {
|
|
|
3463
3469
|
};
|
|
3464
3470
|
|
|
3465
3471
|
// src/hooks/useCapture3DS.ts
|
|
3466
|
-
import { useEffect as
|
|
3472
|
+
import { useEffect as useEffect12 } from "react";
|
|
3467
3473
|
var useCapture3DS = (searchParams) => {
|
|
3468
|
-
|
|
3474
|
+
useEffect12(() => {
|
|
3469
3475
|
if (typeof window !== "undefined" && window.parent && searchParams?.paymentIntent) {
|
|
3470
3476
|
window.parent.SP_EVENT_BUS?.emit("paymentIntent", { paymentIntent: searchParams.paymentIntent });
|
|
3471
3477
|
}
|