@neowhale/storefront 0.2.56 → 0.2.57
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/landing.global.js +26 -3
- package/dist/react/index.cjs +26 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +26 -3
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/landing.global.js
CHANGED
|
@@ -1207,7 +1207,7 @@ var WhaleStorefront = (function (exports) {
|
|
|
1207
1207
|
fontFamily: "inherit",
|
|
1208
1208
|
transition: "border-color 0.2s"
|
|
1209
1209
|
};
|
|
1210
|
-
if (status === "success") return /* @__PURE__ */ jsx(SuccessState, { theme, heading: serverMessage?.heading || successHeading, message: serverMessage?.message || successMessage, couponCode: c.coupon_code });
|
|
1210
|
+
if (status === "success") return /* @__PURE__ */ jsx(SuccessState, { theme, heading: serverMessage?.heading || successHeading, message: serverMessage?.message || successMessage, couponCode: c.coupon_code, ctaText: c.success_cta_text, ctaUrl: c.success_cta_url });
|
|
1211
1211
|
return /* @__PURE__ */ jsx("div", { style: { padding: "3.5rem 1.5rem", maxWidth: 560, margin: "0 auto" }, children: [
|
|
1212
1212
|
/* @__PURE__ */ jsx("style", { children: `@keyframes lc-spin { to { transform: rotate(360deg) } }` }),
|
|
1213
1213
|
/* @__PURE__ */ jsx("div", { style: { background: theme.surface, border: `1px solid ${theme.fg}12`, padding: "clamp(2rem, 6vw, 3rem)" }, children: [
|
|
@@ -1291,7 +1291,7 @@ var WhaleStorefront = (function (exports) {
|
|
|
1291
1291
|
] })
|
|
1292
1292
|
] });
|
|
1293
1293
|
}
|
|
1294
|
-
function SuccessState({ theme, heading, message, couponCode }) {
|
|
1294
|
+
function SuccessState({ theme, heading, message, couponCode, ctaText, ctaUrl }) {
|
|
1295
1295
|
return /* @__PURE__ */ jsx("div", { style: { padding: "3.5rem 1.5rem", maxWidth: 560, margin: "0 auto" }, children: /* @__PURE__ */ jsx("div", { style: { background: theme.surface, border: `1px solid ${theme.fg}12`, padding: "clamp(2rem, 6vw, 3rem)", textAlign: "center" }, children: [
|
|
1296
1296
|
/* @__PURE__ */ jsx("h2", { style: {
|
|
1297
1297
|
fontSize: "clamp(1.5rem, 5vw, 2rem)",
|
|
@@ -1313,7 +1313,30 @@ var WhaleStorefront = (function (exports) {
|
|
|
1313
1313
|
fontFamily: "monospace",
|
|
1314
1314
|
letterSpacing: "0.12em",
|
|
1315
1315
|
color: theme.accent
|
|
1316
|
-
}, children: couponCode })
|
|
1316
|
+
}, children: couponCode }),
|
|
1317
|
+
/* @__PURE__ */ jsx(
|
|
1318
|
+
"button",
|
|
1319
|
+
{
|
|
1320
|
+
onClick: () => {
|
|
1321
|
+
window.location.href = ctaUrl || "/shop";
|
|
1322
|
+
},
|
|
1323
|
+
style: {
|
|
1324
|
+
marginTop: "1.5rem",
|
|
1325
|
+
width: "100%",
|
|
1326
|
+
padding: "0.875rem",
|
|
1327
|
+
background: theme.accent,
|
|
1328
|
+
color: "#fff",
|
|
1329
|
+
border: "none",
|
|
1330
|
+
fontSize: "0.85rem",
|
|
1331
|
+
fontWeight: 500,
|
|
1332
|
+
cursor: "pointer",
|
|
1333
|
+
letterSpacing: "0.08em",
|
|
1334
|
+
textTransform: "uppercase",
|
|
1335
|
+
fontFamily: "inherit"
|
|
1336
|
+
},
|
|
1337
|
+
children: ctaText || "shop now"
|
|
1338
|
+
}
|
|
1339
|
+
)
|
|
1317
1340
|
] }) });
|
|
1318
1341
|
}
|
|
1319
1342
|
|
package/dist/react/index.cjs
CHANGED
|
@@ -2942,7 +2942,7 @@ function LeadCaptureSection({ section, data, theme, onEvent }) {
|
|
|
2942
2942
|
fontFamily: "inherit",
|
|
2943
2943
|
transition: "border-color 0.2s"
|
|
2944
2944
|
};
|
|
2945
|
-
if (status === "success") return /* @__PURE__ */ jsxRuntime.jsx(SuccessState, { theme, heading: serverMessage?.heading || successHeading, message: serverMessage?.message || successMessage, couponCode: c.coupon_code });
|
|
2945
|
+
if (status === "success") return /* @__PURE__ */ jsxRuntime.jsx(SuccessState, { theme, heading: serverMessage?.heading || successHeading, message: serverMessage?.message || successMessage, couponCode: c.coupon_code, ctaText: c.success_cta_text, ctaUrl: c.success_cta_url });
|
|
2946
2946
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { padding: "3.5rem 1.5rem", maxWidth: 560, margin: "0 auto" }, children: [
|
|
2947
2947
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: `@keyframes lc-spin { to { transform: rotate(360deg) } }` }),
|
|
2948
2948
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { background: theme.surface, border: `1px solid ${theme.fg}12`, padding: "clamp(2rem, 6vw, 3rem)" }, children: [
|
|
@@ -3026,7 +3026,7 @@ function LeadCaptureSection({ section, data, theme, onEvent }) {
|
|
|
3026
3026
|
] })
|
|
3027
3027
|
] });
|
|
3028
3028
|
}
|
|
3029
|
-
function SuccessState({ theme, heading, message, couponCode }) {
|
|
3029
|
+
function SuccessState({ theme, heading, message, couponCode, ctaText, ctaUrl }) {
|
|
3030
3030
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "3.5rem 1.5rem", maxWidth: 560, margin: "0 auto" }, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { background: theme.surface, border: `1px solid ${theme.fg}12`, padding: "clamp(2rem, 6vw, 3rem)", textAlign: "center" }, children: [
|
|
3031
3031
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: {
|
|
3032
3032
|
fontSize: "clamp(1.5rem, 5vw, 2rem)",
|
|
@@ -3048,7 +3048,30 @@ function SuccessState({ theme, heading, message, couponCode }) {
|
|
|
3048
3048
|
fontFamily: "monospace",
|
|
3049
3049
|
letterSpacing: "0.12em",
|
|
3050
3050
|
color: theme.accent
|
|
3051
|
-
}, children: couponCode })
|
|
3051
|
+
}, children: couponCode }),
|
|
3052
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3053
|
+
"button",
|
|
3054
|
+
{
|
|
3055
|
+
onClick: () => {
|
|
3056
|
+
window.location.href = ctaUrl || "/shop";
|
|
3057
|
+
},
|
|
3058
|
+
style: {
|
|
3059
|
+
marginTop: "1.5rem",
|
|
3060
|
+
width: "100%",
|
|
3061
|
+
padding: "0.875rem",
|
|
3062
|
+
background: theme.accent,
|
|
3063
|
+
color: "#fff",
|
|
3064
|
+
border: "none",
|
|
3065
|
+
fontSize: "0.85rem",
|
|
3066
|
+
fontWeight: 500,
|
|
3067
|
+
cursor: "pointer",
|
|
3068
|
+
letterSpacing: "0.08em",
|
|
3069
|
+
textTransform: "uppercase",
|
|
3070
|
+
fontFamily: "inherit"
|
|
3071
|
+
},
|
|
3072
|
+
children: ctaText || "shop now"
|
|
3073
|
+
}
|
|
3074
|
+
)
|
|
3052
3075
|
] }) });
|
|
3053
3076
|
}
|
|
3054
3077
|
var GOOGLE_G_LG = '<svg width="28" height="28" viewBox="0 0 48 48"><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="#FBBC05" d="M10.53 28.59a14.5 14.5 0 010-9.18l-7.98-6.19a24.03 24.03 0 000 21.56l7.98-6.19z"/><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/></svg>';
|