@charisol/plexo-sdk 2.0.24 → 2.0.25
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/{v1--XVVNQh9.js → v1-DzPIZH4r.js} +34 -5
- package/dist/v2/data/insertableComponents.d.ts +1 -1
- package/dist/v2/render/dynamicBlocks.d.ts +6 -2
- package/dist/v2/render/elementProps.d.ts +1 -1
- package/dist/v2/types/editor.d.ts +1 -1
- package/dist/v2-compile.js +1 -1
- package/dist/v2.js +86 -5
- package/package.json +1 -1
|
@@ -6351,7 +6351,8 @@ var Dt = (e, t = "x") => (typeof e == "string" ? e.replace(/[^A-Za-z0-9_-]/g, "-
|
|
|
6351
6351
|
"checkout",
|
|
6352
6352
|
"orderConfirmation",
|
|
6353
6353
|
"orderTracking",
|
|
6354
|
-
"signupForm"
|
|
6354
|
+
"signupForm",
|
|
6355
|
+
"contentList"
|
|
6355
6356
|
], jt = (e) => At.includes(e), Mt = (e, t, n, ...r) => ({
|
|
6356
6357
|
...A(e, { class: t }, ...r),
|
|
6357
6358
|
style: n
|
|
@@ -6522,6 +6523,19 @@ var Dt = (e, t = "x") => (typeof e == "string" ? e.replace(/[^A-Za-z0-9_-]/g, "-
|
|
|
6522
6523
|
uses: ["mode"],
|
|
6523
6524
|
sample: () => [Lt("Order number"), Pt("Track order")]
|
|
6524
6525
|
},
|
|
6526
|
+
contentList: {
|
|
6527
|
+
group: "Content",
|
|
6528
|
+
attr: "data-plexo-content",
|
|
6529
|
+
label: "Content list",
|
|
6530
|
+
note: "What you post under Content appears here: videos, stories, events and more.",
|
|
6531
|
+
uses: [
|
|
6532
|
+
"contentType",
|
|
6533
|
+
"layout",
|
|
6534
|
+
"limit",
|
|
6535
|
+
"itemsPerRow"
|
|
6536
|
+
],
|
|
6537
|
+
sample: (e) => e.layout === "events" ? [0, 1].map(() => A("div", { class: "plx-dyn-row" }, Nt("1 / 1"), A("div", { class: "plx-dyn-stack" }, P("60%", !0), P("100%"), P("35%")))) : It(Ot(e.itemsPerRow, 1, 4, 3))
|
|
6538
|
+
},
|
|
6525
6539
|
signupForm: {
|
|
6526
6540
|
group: "Funnel",
|
|
6527
6541
|
attr: "data-plexo-lms-signup",
|
|
@@ -6542,6 +6556,11 @@ function Ut(e) {
|
|
|
6542
6556
|
storeMode: !0,
|
|
6543
6557
|
itemsPerRow: 3
|
|
6544
6558
|
};
|
|
6559
|
+
case "contentList": return {
|
|
6560
|
+
contentType: "videos",
|
|
6561
|
+
layout: "gallery",
|
|
6562
|
+
itemsPerRow: 3
|
|
6563
|
+
};
|
|
6545
6564
|
case "blogDate":
|
|
6546
6565
|
case "blogAuthor":
|
|
6547
6566
|
case "blogCategories": return { prefix: "" };
|
|
@@ -6556,7 +6575,14 @@ var Wt = (e, t = 200) => typeof e == "string" && e.trim() ? e.trim().slice(0, t)
|
|
|
6556
6575
|
return Number.isFinite(n) && n >= 1 ? String(Math.min(t, Math.round(n))) : void 0;
|
|
6557
6576
|
};
|
|
6558
6577
|
function qt(e, t, n) {
|
|
6559
|
-
let r = zt[e]
|
|
6578
|
+
let r = zt[e];
|
|
6579
|
+
if (e === "contentList") return {
|
|
6580
|
+
"data-plexo-content": Gt(t.contentType)?.toLowerCase() ?? "videos",
|
|
6581
|
+
"data-plexo-content-layout": Gt(t.layout),
|
|
6582
|
+
"data-plexo-content-limit": Kt(t.limit, 96),
|
|
6583
|
+
"data-plexo-content-columns": Kt(t.itemsPerRow, 4)
|
|
6584
|
+
};
|
|
6585
|
+
let i = e === "signupForm" ? { [r.attr]: !0 } : { [r.attr]: "true" }, a = (e) => r.uses.includes(e);
|
|
6560
6586
|
return e === "signupForm" ? (i["data-plexo-template-id"] = Gt(t.templateId) ?? Gt(n.templateId), i) : (a("prefix") && (i["data-plexo-blog-prefix"] = Wt(t.prefix, 80)), a("productId") && (i["data-plexo-product-id"] = Gt(t.productId)), a("serviceId") && (i["data-plexo-service-id"] = Gt(t.serviceId)), a("mode") && (i["data-plexo-commerce-mode"] = Gt(t.mode)), a("storeMode") && t.storeMode === !1 && (i["data-plexo-commerce-store-mode"] = "false"), a("limit") && (i["data-plexo-commerce-limit"] = Kt(t.limit, 96)), a("category") && (i["data-plexo-commerce-category"] = Wt(t.category, 100)), a("sort") && (i["data-plexo-commerce-sort"] = Wt(t.sort, 100)), a("itemsPerRow") && (i["data-plexo-commerce-items-per-row"] = Kt(t.itemsPerRow, 6)), a("itemsPerPage") && (i["data-plexo-commerce-items-per-page"] = Kt(t.itemsPerPage, 96)), a("paginated") && t.paginated && (i["data-plexo-commerce-paginated"] = "true"), i);
|
|
6561
6587
|
}
|
|
6562
6588
|
function Jt(e, t) {
|
|
@@ -20363,7 +20389,7 @@ function Od(e, t = {}) {
|
|
|
20363
20389
|
}
|
|
20364
20390
|
//#endregion
|
|
20365
20391
|
//#region src/v2/compile/schema.ts
|
|
20366
|
-
var kd = 5e3, Ad = 40, jd = /* @__PURE__ */ "page.section.container.columns.column.heading.paragraph.button.image.badge.divider.spacer.card.icon.carousel.video.social.menu.html.table.timer.form.accordion.blogTitle.blogContent.blogFeaturedImage.blogDate.blogAuthor.blogCategories.blogComments.blogPostList.shopGrid.product.booking.cart.checkout.orderConfirmation.orderTracking.signupForm".split("."), Md = [
|
|
20392
|
+
var kd = 5e3, Ad = 40, jd = /* @__PURE__ */ "page.section.container.columns.column.heading.paragraph.button.image.badge.divider.spacer.card.icon.carousel.video.social.menu.html.table.timer.form.accordion.blogTitle.blogContent.blogFeaturedImage.blogDate.blogAuthor.blogCategories.blogComments.blogPostList.shopGrid.product.booking.cart.checkout.orderConfirmation.orderTracking.signupForm.contentList".split("."), Md = [
|
|
20367
20393
|
"blogTitle",
|
|
20368
20394
|
"blogContent",
|
|
20369
20395
|
"blogFeaturedImage",
|
|
@@ -20379,7 +20405,8 @@ var kd = 5e3, Ad = 40, jd = /* @__PURE__ */ "page.section.container.columns.colu
|
|
|
20379
20405
|
"checkout",
|
|
20380
20406
|
"orderConfirmation",
|
|
20381
20407
|
"orderTracking",
|
|
20382
|
-
"signupForm"
|
|
20408
|
+
"signupForm",
|
|
20409
|
+
"contentList"
|
|
20383
20410
|
], Nd = r([t().int().min(1).max(96), n().max(4)]), Pd = a({
|
|
20384
20411
|
prefix: n().max(80),
|
|
20385
20412
|
productId: n().max(100),
|
|
@@ -20392,7 +20419,9 @@ var kd = 5e3, Ad = 40, jd = /* @__PURE__ */ "page.section.container.columns.colu
|
|
|
20392
20419
|
itemsPerRow: Nd,
|
|
20393
20420
|
itemsPerPage: Nd,
|
|
20394
20421
|
paginated: i(),
|
|
20395
|
-
templateId: n().max(100)
|
|
20422
|
+
templateId: n().max(100),
|
|
20423
|
+
contentType: n().max(100),
|
|
20424
|
+
layout: n().max(40)
|
|
20396
20425
|
}).partial().passthrough(), Fd = r([
|
|
20397
20426
|
n().max(2e3),
|
|
20398
20427
|
t(),
|
|
@@ -6,7 +6,7 @@ export interface InsertableComponentItem {
|
|
|
6
6
|
name: string;
|
|
7
7
|
type: NodeType;
|
|
8
8
|
icon: string;
|
|
9
|
-
category: 'layout' | 'typography' | 'media' | 'interactive' | 'blog' | 'store' | 'funnel';
|
|
9
|
+
category: 'layout' | 'typography' | 'media' | 'interactive' | 'blog' | 'store' | 'funnel' | 'content';
|
|
10
10
|
badge?: string;
|
|
11
11
|
/** Not built yet — it would publish as an empty box, so the Add panel doesn't offer it. */
|
|
12
12
|
unavailable?: boolean;
|
|
@@ -12,7 +12,7 @@ import type { ElementContext } from './elements';
|
|
|
12
12
|
* In the editor the same block draws a labelled placeholder with sample rows, so a designer can see where it goes and how
|
|
13
13
|
* big it is without any data existing yet.
|
|
14
14
|
*/
|
|
15
|
-
export declare const DYNAMIC_ELEMENT_TYPES: readonly ["blogTitle", "blogContent", "blogFeaturedImage", "blogDate", "blogAuthor", "blogCategories", "blogComments", "blogPostList", "shopGrid", "product", "booking", "cart", "checkout", "orderConfirmation", "orderTracking", "signupForm"];
|
|
15
|
+
export declare const DYNAMIC_ELEMENT_TYPES: readonly ["blogTitle", "blogContent", "blogFeaturedImage", "blogDate", "blogAuthor", "blogCategories", "blogComments", "blogPostList", "shopGrid", "product", "booking", "cart", "checkout", "orderConfirmation", "orderTracking", "signupForm", "contentList"];
|
|
16
16
|
export type DynamicElementType = (typeof DYNAMIC_ELEMENT_TYPES)[number];
|
|
17
17
|
export declare const isDynamicElement: (t: string) => t is DynamicElementType;
|
|
18
18
|
/** Every setting a dynamic block can carry. Each type reads only the ones that apply to it (see SPECS). */
|
|
@@ -37,8 +37,12 @@ export interface DynamicProps {
|
|
|
37
37
|
paginated?: boolean;
|
|
38
38
|
/** signupForm: which funnel the form belongs to (defaults to the one being compiled). */
|
|
39
39
|
templateId?: string;
|
|
40
|
+
/** contentList: the slug of the content type to show ("videos", "stories", "happenings"…). */
|
|
41
|
+
contentType?: string;
|
|
42
|
+
/** contentList: 'gallery' | 'stories' | 'events' | 'featured' | 'list'. */
|
|
43
|
+
layout?: string;
|
|
40
44
|
}
|
|
41
|
-
type Group = 'Blog' | 'Store' | 'Funnel';
|
|
45
|
+
type Group = 'Blog' | 'Store' | 'Funnel' | 'Content';
|
|
42
46
|
export declare const dynamicLabel: (t: DynamicElementType) => string;
|
|
43
47
|
export declare const dynamicGroup: (t: DynamicElementType) => Group;
|
|
44
48
|
/** Does this type read the given setting? Drives which controls the editor shows. */
|
|
@@ -92,7 +92,7 @@ export interface IconProps {
|
|
|
92
92
|
strokeWidth?: number; /** Read aloud by screen readers; empty = decorative. */
|
|
93
93
|
label?: string;
|
|
94
94
|
}
|
|
95
|
-
export declare const RICH_ELEMENT_TYPES: readonly ["icon", "carousel", "video", "social", "menu", "html", "table", "timer", "form", "accordion", "blogTitle", "blogContent", "blogFeaturedImage", "blogDate", "blogAuthor", "blogCategories", "blogComments", "blogPostList", "shopGrid", "product", "booking", "cart", "checkout", "orderConfirmation", "orderTracking", "signupForm"];
|
|
95
|
+
export declare const RICH_ELEMENT_TYPES: readonly ["icon", "carousel", "video", "social", "menu", "html", "table", "timer", "form", "accordion", "blogTitle", "blogContent", "blogFeaturedImage", "blogDate", "blogAuthor", "blogCategories", "blogComments", "blogPostList", "shopGrid", "product", "booking", "cart", "checkout", "orderConfirmation", "orderTracking", "signupForm", "contentList"];
|
|
96
96
|
export type RichElementType = (typeof RICH_ELEMENT_TYPES)[number];
|
|
97
97
|
export declare const isRichElement: (t: NodeType) => t is RichElementType;
|
|
98
98
|
/** What a freshly added element starts with — real, editable content, never an empty box. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TextStyleId } from '../design/textStyles';
|
|
2
|
-
export type NodeType = 'page' | 'section' | 'container' | 'columns' | 'column' | 'heading' | 'paragraph' | 'button' | 'image' | 'badge' | 'divider' | 'spacer' | 'card' | 'icon' | 'carousel' | 'video' | 'social' | 'menu' | 'html' | 'table' | 'timer' | 'form' | 'accordion' | 'blogTitle' | 'blogContent' | 'blogFeaturedImage' | 'blogDate' | 'blogAuthor' | 'blogCategories' | 'blogComments' | 'blogPostList' | 'shopGrid' | 'product' | 'booking' | 'cart' | 'checkout' | 'orderConfirmation' | 'orderTracking' | 'signupForm';
|
|
2
|
+
export type NodeType = 'page' | 'section' | 'container' | 'columns' | 'column' | 'heading' | 'paragraph' | 'button' | 'image' | 'badge' | 'divider' | 'spacer' | 'card' | 'icon' | 'carousel' | 'video' | 'social' | 'menu' | 'html' | 'table' | 'timer' | 'form' | 'accordion' | 'blogTitle' | 'blogContent' | 'blogFeaturedImage' | 'blogDate' | 'blogAuthor' | 'blogCategories' | 'blogComments' | 'blogPostList' | 'shopGrid' | 'product' | 'booking' | 'cart' | 'checkout' | 'orderConfirmation' | 'orderTracking' | 'signupForm' | 'contentList';
|
|
3
3
|
export type SizingMode = 'hug' | 'fill' | 'fixed';
|
|
4
4
|
export type LayoutMode = 'flow' | 'grid' | 'free';
|
|
5
5
|
export type HorizontalConstraint = 'left' | 'right' | 'center' | 'stretch' | 'scale';
|
package/dist/v2-compile.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, An as t, At as n, C as r, Dn as i, E as a, Fn as o, Ft as ee, Ln as te, Mn as s, Mt as c, N as l, Nn as u, Nt as d, On as f, Ot as p, P as m, Pn as h, Pt as g, Tn as _, _ as v, a as y, c as b, ct as x, d as S, dt as C, f as w, g as T, gn as E, h as D, hn as O, i as k, it as A, j as ne, jn as j, jt as M, kt as N, l as P, lt as F, m as I, n as L, nt as R, o as z, ot as B, p as V, r as H, rt as U, s as W, st as G, t as K, u as q, ut as J, v as Y } from "./v1
|
|
1
|
+
import { A as e, An as t, At as n, C as r, Dn as i, E as a, Fn as o, Ft as ee, Ln as te, Mn as s, Mt as c, N as l, Nn as u, Nt as d, On as f, Ot as p, P as m, Pn as h, Pt as g, Tn as _, _ as v, a as y, c as b, ct as x, d as S, dt as C, f as w, g as T, gn as E, h as D, hn as O, i as k, it as A, j as ne, jn as j, jt as M, kt as N, l as P, lt as F, m as I, n as L, nt as R, o as z, ot as B, p as V, r as H, rt as U, s as W, st as G, t as K, u as q, ut as J, v as Y } from "./v1-DzPIZH4r.js";
|
|
2
2
|
import { a as X, i as Z } from "./brandGuide-DgoZ7spo.js";
|
|
3
3
|
//#region src/v2/compile/react.ts
|
|
4
4
|
var re = /^[A-Z][A-Za-z0-9]*$/, Q = (e) => JSON.stringify(e);
|
package/dist/v2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as o, Ct as s, D as c, Dt as l, E as u, Et as d, F as f, Ft as p, G as m, Gt as h, H as g, Ht as _, I as v, It as y, J as b, Jt as x, K as S, Kt as C, L as w, Lt as T, M as E, Mt as D, N as O, Nt as k, O as A, Ot as j, P as M, Pt as N, Q as P, Qt as F, R as ee, Rt as te, S as ne, St as re, T as I, Tt as ie, U as ae, Ut as oe, V as se, Vt as ce, W as L, Wt as le, X as ue, Xt as de, Y as fe, Yt as pe, Z as R, Zt as me, _ as he, _t as ge, a as _e, an as ve, at as ye, b as be, bt as xe, c as Se, cn as Ce, ct as we, d as Te, en as Ee, et as De, f as Oe, ft as ke, g as Ae, gt as je, h as Me, ht as Ne, i as Pe, in as Fe, it as Ie, j as Le, jt as Re, k as ze, kt as Be, l as Ve, ln as He, lt as Ue, m as We, nn as Ge, nt as Ke, o as qe, on as Je, ot as Ye, p as Xe, pt as z, q as Ze, qt as B, r as Qe, rn as V, rt as $e, s as et, sn as tt, st as nt, t as rt, tn as it, tt as at, u as ot, v as st, vt as ct, w as lt, wt as ut, x as dt, xt as ft, y as pt, yt as mt, z as ht, zt as gt } from "./InlineColorPicker-x6ODuEQD.js";
|
|
2
2
|
import { a as _t, o as vt } from "./colorUtils-BaVkGjFC.js";
|
|
3
|
-
import { $ as yt, $t as bt, A as xt, An as St, At as Ct, B as wt, Bt as Tt, C as Et, Cn as Dt, Ct as Ot, D as kt, Dn as At, Dt as jt, E as Mt, En as Nt, Et as Pt, F as Ft, Ft as It, G as Lt, Gt as Rt, H as zt, Ht as Bt, I as Vt, In as Ht, It as Ut, J as Wt, Jt as Gt, K as Kt, Kt as qt, L as Jt, Ln as Yt, Lt as Xt, M as Zt, Mn as Qt, Mt as $t, N as en, Nn as tn, Nt as nn, O as rn, On as an, Ot as on, Pn as sn, Pt as cn, Q as ln, Qt as un, R as dn, Rn as fn, Rt as pn, S as mn, Sn as hn, St as gn, T as _n, Tn as vn, Tt as yn, U as bn, Ut as xn, V as Sn, Vt as Cn, W as wn, Wt as Tn, X as En, Xt as Dn, Y as On, Yt as kn, Z as An, Zt as jn, _n as Mn, _t as Nn, an as Pn, at as Fn, b as In, bn as Ln, bt as Rn, c as zn, cn as Bn, ct as Vn, d as Hn, dn as Un, en as Wn, et as Gn, f as Kn, fn as qn, ft as Jn, g as Yn, gn as Xn, gt as Zn, h as Qn, ht as $n, in as er, it as tr, j as nr, jn as rr, jt as ir, k as ar, kn as or, kt as sr, l as cr, ln as lr, lt as ur, m as dr, mn as fr, mt as pr, n as mr, nn as hr, nt as gr, on as _r, ot as vr, p as yr, pn as br, pt as xr, q as Sr, qt as Cr, r as wr, rn as Tr, rt as Er, s as Dr, sn as Or, st as kr, t as Ar, tn as jr, tt as Mr, u as Nr, un as Pr, ut as Fr, vn as Ir, vt as Lr, w as Rr, wn as zr, wt as Br, x as Vr, xn as Hr, xt as Ur, y as Wr, yn as Gr, yt as Kr, z as qr, zt as Jr } from "./v1
|
|
3
|
+
import { $ as yt, $t as bt, A as xt, An as St, At as Ct, B as wt, Bt as Tt, C as Et, Cn as Dt, Ct as Ot, D as kt, Dn as At, Dt as jt, E as Mt, En as Nt, Et as Pt, F as Ft, Ft as It, G as Lt, Gt as Rt, H as zt, Ht as Bt, I as Vt, In as Ht, It as Ut, J as Wt, Jt as Gt, K as Kt, Kt as qt, L as Jt, Ln as Yt, Lt as Xt, M as Zt, Mn as Qt, Mt as $t, N as en, Nn as tn, Nt as nn, O as rn, On as an, Ot as on, Pn as sn, Pt as cn, Q as ln, Qt as un, R as dn, Rn as fn, Rt as pn, S as mn, Sn as hn, St as gn, T as _n, Tn as vn, Tt as yn, U as bn, Ut as xn, V as Sn, Vt as Cn, W as wn, Wt as Tn, X as En, Xt as Dn, Y as On, Yt as kn, Z as An, Zt as jn, _n as Mn, _t as Nn, an as Pn, at as Fn, b as In, bn as Ln, bt as Rn, c as zn, cn as Bn, ct as Vn, d as Hn, dn as Un, en as Wn, et as Gn, f as Kn, fn as qn, ft as Jn, g as Yn, gn as Xn, gt as Zn, h as Qn, ht as $n, in as er, it as tr, j as nr, jn as rr, jt as ir, k as ar, kn as or, kt as sr, l as cr, ln as lr, lt as ur, m as dr, mn as fr, mt as pr, n as mr, nn as hr, nt as gr, on as _r, ot as vr, p as yr, pn as br, pt as xr, q as Sr, qt as Cr, r as wr, rn as Tr, rt as Er, s as Dr, sn as Or, st as kr, t as Ar, tn as jr, tt as Mr, u as Nr, un as Pr, ut as Fr, vn as Ir, vt as Lr, w as Rr, wn as zr, wt as Br, x as Vr, xn as Hr, xt as Ur, y as Wr, yn as Gr, yt as Kr, z as qr, zt as Jr } from "./v1-DzPIZH4r.js";
|
|
4
4
|
import { A as Yr, B as Xr, C as Zr, D as Qr, E as $r, F as ei, I as ti, L as ni, M as ri, N as ii, O as ai, P as oi, R as si, S as ci, T as li, _ as ui, a as di, b as fi, c as pi, d as mi, f as hi, g as gi, h as _i, i as vi, j as yi, k as bi, l as xi, m as Si, n as Ci, o as wi, p as Ti, r as Ei, s as Di, t as Oi, u as ki, v as Ai, w as ji, x as Mi, y as Ni, z as Pi } from "./brandGuide-DgoZ7spo.js";
|
|
5
5
|
import { d as Fi, o as Ii, s as Li, t as Ri, u as zi } from "./client-DUSU8g5z.js";
|
|
6
6
|
import Bi, { createContext as Vi, forwardRef as Hi, useCallback as H, useContext as Ui, useDeferredValue as Wi, useEffect as U, useImperativeHandle as Gi, useLayoutEffect as Ki, useMemo as W, useRef as G, useState as K } from "react";
|
|
@@ -1390,7 +1390,8 @@ var ca = [
|
|
|
1390
1390
|
checkout: "CreditCard",
|
|
1391
1391
|
orderConfirmation: "PackageCheck",
|
|
1392
1392
|
orderTracking: "Truck",
|
|
1393
|
-
signupForm: "UserPlus"
|
|
1393
|
+
signupForm: "UserPlus",
|
|
1394
|
+
contentList: "LayoutGrid"
|
|
1394
1395
|
}, ua = [
|
|
1395
1396
|
"blogDate",
|
|
1396
1397
|
"blogAuthor",
|
|
@@ -3958,7 +3959,7 @@ var Ga = [
|
|
|
3958
3959
|
default:
|
|
3959
3960
|
if (br(e)) {
|
|
3960
3961
|
let t = Pr(e);
|
|
3961
|
-
return J(t === "Blog" ? ue : t === "Store" ? f : Ve, { className: "w-3 h-3 text-violet-400" });
|
|
3962
|
+
return J(t === "Blog" || t === "Content" ? ue : t === "Store" ? f : Ve, { className: "w-3 h-3 text-violet-400" });
|
|
3962
3963
|
}
|
|
3963
3964
|
return /* @__PURE__ */ J(Ne, { className: "w-3 h-3 text-px-muted" });
|
|
3964
3965
|
}
|
|
@@ -4173,7 +4174,8 @@ var Ga = [
|
|
|
4173
4174
|
"interactive",
|
|
4174
4175
|
"blog",
|
|
4175
4176
|
"store",
|
|
4176
|
-
"funnel"
|
|
4177
|
+
"funnel",
|
|
4178
|
+
"content"
|
|
4177
4179
|
].map((e) => /* @__PURE__ */ J("button", {
|
|
4178
4180
|
onClick: () => s(e),
|
|
4179
4181
|
className: `px-2 py-0.5 rounded-md capitalize whitespace-nowrap transition-colors ${o === e ? "bg-px-accent text-px-onaccent font-semibold" : "bg-px-raised2 text-gray-400 hover:text-gray-200"}`,
|
|
@@ -9007,7 +9009,8 @@ var zs = ({ node: e, preview: t }) => {
|
|
|
9007
9009
|
case "checkout":
|
|
9008
9010
|
case "orderConfirmation":
|
|
9009
9011
|
case "orderTracking":
|
|
9010
|
-
case "signupForm":
|
|
9012
|
+
case "signupForm":
|
|
9013
|
+
case "contentList": return /* @__PURE__ */ Y("div", {
|
|
9011
9014
|
id: e.id,
|
|
9012
9015
|
"data-plx-node": "",
|
|
9013
9016
|
ref: I,
|
|
@@ -11375,6 +11378,84 @@ var bc = ({ value: e, onChange: t }) => {
|
|
|
11375
11378
|
] })
|
|
11376
11379
|
]
|
|
11377
11380
|
}),
|
|
11381
|
+
e === "contentList" && /* @__PURE__ */ Y(_c, {
|
|
11382
|
+
title: "What to show",
|
|
11383
|
+
children: [
|
|
11384
|
+
/* @__PURE__ */ J(Q, {
|
|
11385
|
+
label: "Content",
|
|
11386
|
+
children: /* @__PURE__ */ J("input", {
|
|
11387
|
+
className: "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent",
|
|
11388
|
+
value: t.contentType ?? "",
|
|
11389
|
+
maxLength: 100,
|
|
11390
|
+
onChange: (e) => n({ contentType: e.target.value }),
|
|
11391
|
+
placeholder: "videos"
|
|
11392
|
+
})
|
|
11393
|
+
}),
|
|
11394
|
+
/* @__PURE__ */ J("p", {
|
|
11395
|
+
className: "text-[10px] text-px-faint pl-[72px]",
|
|
11396
|
+
children: "The name of what you post under Content: videos, stories or happenings."
|
|
11397
|
+
}),
|
|
11398
|
+
/* @__PURE__ */ J(Q, {
|
|
11399
|
+
label: "Look",
|
|
11400
|
+
children: /* @__PURE__ */ Y("select", {
|
|
11401
|
+
className: "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent",
|
|
11402
|
+
value: t.layout ?? "gallery",
|
|
11403
|
+
onChange: (e) => n({ layout: e.target.value }),
|
|
11404
|
+
children: [
|
|
11405
|
+
/* @__PURE__ */ J("option", {
|
|
11406
|
+
value: "gallery",
|
|
11407
|
+
children: "Video gallery"
|
|
11408
|
+
}),
|
|
11409
|
+
/* @__PURE__ */ J("option", {
|
|
11410
|
+
value: "stories",
|
|
11411
|
+
children: "Story cards"
|
|
11412
|
+
}),
|
|
11413
|
+
/* @__PURE__ */ J("option", {
|
|
11414
|
+
value: "events",
|
|
11415
|
+
children: "Upcoming events"
|
|
11416
|
+
}),
|
|
11417
|
+
/* @__PURE__ */ J("option", {
|
|
11418
|
+
value: "featured",
|
|
11419
|
+
children: "One featured item"
|
|
11420
|
+
}),
|
|
11421
|
+
/* @__PURE__ */ J("option", {
|
|
11422
|
+
value: "list",
|
|
11423
|
+
children: "Simple list"
|
|
11424
|
+
})
|
|
11425
|
+
]
|
|
11426
|
+
})
|
|
11427
|
+
}),
|
|
11428
|
+
(t.layout ?? "gallery") !== "featured" && (t.layout ?? "gallery") !== "events" && (t.layout ?? "gallery") !== "list" && /* @__PURE__ */ J(Q, {
|
|
11429
|
+
label: "Per row",
|
|
11430
|
+
children: /* @__PURE__ */ J("select", {
|
|
11431
|
+
className: "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent",
|
|
11432
|
+
value: String(t.itemsPerRow ?? 3),
|
|
11433
|
+
onChange: (e) => n({ itemsPerRow: Fc(e.target.value) }),
|
|
11434
|
+
children: [
|
|
11435
|
+
1,
|
|
11436
|
+
2,
|
|
11437
|
+
3,
|
|
11438
|
+
4
|
|
11439
|
+
].map((e) => /* @__PURE__ */ J("option", {
|
|
11440
|
+
value: e,
|
|
11441
|
+
children: e
|
|
11442
|
+
}, e))
|
|
11443
|
+
})
|
|
11444
|
+
}),
|
|
11445
|
+
/* @__PURE__ */ J(Q, {
|
|
11446
|
+
label: "How many",
|
|
11447
|
+
children: /* @__PURE__ */ J("input", {
|
|
11448
|
+
className: "w-full bg-px-raised border border-px-line2 rounded px-2 py-1 text-xs text-px-text placeholder-px-faint focus:outline-none focus:border-px-accent",
|
|
11449
|
+
type: "number",
|
|
11450
|
+
min: 1,
|
|
11451
|
+
max: 96,
|
|
11452
|
+
value: t.limit ?? "",
|
|
11453
|
+
onChange: (e) => n({ limit: Fc(e.target.value) }),
|
|
11454
|
+
placeholder: "All"
|
|
11455
|
+
})
|
|
11456
|
+
})
|
|
11457
|
+
]
|
|
11458
|
+
}),
|
|
11378
11459
|
e === "signupForm" && /* @__PURE__ */ Y(_c, {
|
|
11379
11460
|
title: "Connection",
|
|
11380
11461
|
children: [/* @__PURE__ */ J("p", {
|
package/package.json
CHANGED