@superlogic/spree-pay 0.4.11 → 0.4.12

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Iframe3ds
3
- } from "./chunk-VDX65MBD.js";
3
+ } from "./chunk-JXZZJ7NS.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-NAY4SEME.js";
15
+ } from "./chunk-WRFG6YIS.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-WHTBHEIN.js";
5
+ } from "./chunk-RORSHUSF.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-NAY4SEME.js";
19
+ } from "./chunk-WRFG6YIS.js";
20
20
 
21
21
  // src/components/CryptoTab/Crypto/CryptoWrapper.tsx
22
22
  import { useMemo as useMemo2 } from "react";
@@ -3,7 +3,7 @@ import {
3
3
  DialogContent,
4
4
  DialogDescription,
5
5
  DialogTitle
6
- } from "./chunk-NAY4SEME.js";
6
+ } from "./chunk-WRFG6YIS.js";
7
7
 
8
8
  // src/modals/Iframe3ds.tsx
9
9
  import { useEffect } from "react";
@@ -37,7 +37,7 @@ var Iframe3ds = NiceModal.create(({ url }) => {
37
37
  modal.reject();
38
38
  modal.remove();
39
39
  };
40
- return /* @__PURE__ */ jsx(Dialog, { open: modal.visible, onOpenChange: handleClose, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-h-[600px] w-full max-w-[680px] p-0", children: [
40
+ return /* @__PURE__ */ jsx(Dialog, { open: modal.visible, onOpenChange: handleClose, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-h-[90dvh] w-full max-w-[680px] overflow-hidden p-0", children: [
41
41
  /* @__PURE__ */ jsx(DialogTitle, { className: "sr-only", children: "Payment Verification" }),
42
42
  /* @__PURE__ */ jsx(DialogDescription, { className: "sr-only", children: "Complete 3D Secure verification to finalize your payment" }),
43
43
  /* @__PURE__ */ jsx(
@@ -45,8 +45,8 @@ var Iframe3ds = NiceModal.create(({ url }) => {
45
45
  {
46
46
  src: url,
47
47
  id: "3ds-iframe",
48
- title: "Payment Verificatio",
49
- className: "h-[731px] w-full rounded-lg border-0"
48
+ title: "Payment Verification",
49
+ className: "h-[731px] max-h-[90dvh] w-full rounded-lg border-0"
50
50
  }
51
51
  )
52
52
  ] }) });
@@ -6,7 +6,7 @@ import {
6
6
  useSpreePayEnv,
7
7
  useSpreePaymentMethod,
8
8
  useStaticConfig
9
- } from "./chunk-NAY4SEME.js";
9
+ } from "./chunk-WRFG6YIS.js";
10
10
 
11
11
  // src/components/common/PointsSwitch.tsx
12
12
  import { useId } from "react";
@@ -10,7 +10,7 @@ var PaymentType = /* @__PURE__ */ ((PaymentType2) => {
10
10
  })(PaymentType || {});
11
11
 
12
12
  // package.json
13
- var version = "0.4.11";
13
+ var version = "0.4.12";
14
14
 
15
15
  // src/utils/logger.ts
16
16
  var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
package/build/index.cjs CHANGED
@@ -69,7 +69,7 @@ var init_payments = __esm({
69
69
  var version;
70
70
  var init_package = __esm({
71
71
  "package.json"() {
72
- version = "0.4.11";
72
+ version = "0.4.12";
73
73
  }
74
74
  });
75
75
 
@@ -595,7 +595,7 @@ var init_Iframe3ds = __esm({
595
595
  modal.reject();
596
596
  modal.remove();
597
597
  };
598
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Dialog, { open: modal.visible, onOpenChange: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(DialogContent, { className: "max-h-[600px] w-full max-w-[680px] p-0", children: [
598
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Dialog, { open: modal.visible, onOpenChange: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(DialogContent, { className: "max-h-[90dvh] w-full max-w-[680px] overflow-hidden p-0", children: [
599
599
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DialogTitle, { className: "sr-only", children: "Payment Verification" }),
600
600
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DialogDescription, { className: "sr-only", children: "Complete 3D Secure verification to finalize your payment" }),
601
601
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
@@ -603,8 +603,8 @@ var init_Iframe3ds = __esm({
603
603
  {
604
604
  src: url,
605
605
  id: "3ds-iframe",
606
- title: "Payment Verificatio",
607
- className: "h-[731px] w-full rounded-lg border-0"
606
+ title: "Payment Verification",
607
+ className: "h-[731px] max-h-[90dvh] w-full rounded-lg border-0"
608
608
  }
609
609
  )
610
610
  ] }) });
package/build/index.css CHANGED
@@ -430,12 +430,12 @@
430
430
  .sl-spreepay .max-h-\[40vh\] {
431
431
  max-height: 40vh;
432
432
  }
433
+ .sl-spreepay .max-h-\[90dvh\] {
434
+ max-height: 90dvh;
435
+ }
433
436
  .sl-spreepay .max-h-\[90vh\] {
434
437
  max-height: 90vh;
435
438
  }
436
- .sl-spreepay .max-h-\[600px\] {
437
- max-height: 600px;
438
- }
439
439
  .sl-spreepay .min-h-11 {
440
440
  min-height: calc(var(--spacing) * 11);
441
441
  }
package/build/index.js CHANGED
@@ -8,10 +8,10 @@ import {
8
8
  getSplitAmount,
9
9
  getTransactionFee,
10
10
  useSlapiBalance
11
- } from "./chunk-WHTBHEIN.js";
11
+ } from "./chunk-RORSHUSF.js";
12
12
  import {
13
13
  Iframe3ds
14
- } from "./chunk-VDX65MBD.js";
14
+ } from "./chunk-JXZZJ7NS.js";
15
15
  import {
16
16
  InfoBanner,
17
17
  LogLevel,
@@ -32,7 +32,7 @@ import {
32
32
  useSpreePayRegister,
33
33
  useSpreePaymentMethod,
34
34
  useStaticConfig
35
- } from "./chunk-NAY4SEME.js";
35
+ } from "./chunk-WRFG6YIS.js";
36
36
 
37
37
  // src/SpreePay.tsx
38
38
  import { useCallback as useCallback8, useEffect as useEffect7, useMemo as useMemo9, useState as useState12 } from "react";
@@ -2260,9 +2260,9 @@ var TabButtons = (props) => {
2260
2260
 
2261
2261
  // src/SpreePayContent.tsx
2262
2262
  import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
2263
- var CryptoTab = lazy(() => import("./CryptoTab-4WXYLS43.js").then((module) => ({ default: module.CryptoTab })));
2263
+ var CryptoTab = lazy(() => import("./CryptoTab-57MMM4AG.js").then((module) => ({ default: module.CryptoTab })));
2264
2264
  var CryptoComTab = lazy(
2265
- () => import("./CryptoComTab-OCWI7MFM.js").then((module) => ({ default: module.CryptoComTab }))
2265
+ () => import("./CryptoComTab-DAKL7IZF.js").then((module) => ({ default: module.CryptoComTab }))
2266
2266
  );
2267
2267
  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: [
2268
2268
  /* @__PURE__ */ jsx18("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-(--border-component-specific-card) border-t-(--brand-primary)" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superlogic/spree-pay",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "description": "Spree-pay React component and utilities",
5
5
  "private": false,
6
6
  "type": "module",