@charisol/plexo-sdk 2.0.23 → 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.
@@ -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], i = e === "signupForm" ? { [r.attr]: !0 } : { [r.attr]: "true" }, a = (e) => r.uses.includes(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';
@@ -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--XVVNQh9.js";
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-strata.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { n as e, r as t, t as n } from "./brandGuide-DgoZ7spo.js";
2
- import { a as r, c as i, d as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f, u as p } from "./client-B1Crj0DN.js";
2
+ import { a as r, c as i, d as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f, u as p } from "./client-DUSU8g5z.js";
3
3
  export { f as StrataError, d as applySync, i as baseOf, n as brandCss, e as brandGuidelines, t as brandScss, c as componentFromStrata, u as createStrataClient, s as hasAnything, l as planAutoUpdate, p as planSync, o as projectFromStrata, a as summarize, r as tokenFromStrata };