@charisol/plexo-sdk 1.4.13 → 1.4.15

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.
@@ -698,7 +698,7 @@ var q = (g) => {
698
698
  case "order_confirmation":
699
699
  case "order_tracking": {
700
700
  let e = g.type.replace(/_([a-z])/g, (e, t) => t.toUpperCase()), t = P(_);
701
- return `<div${C} data-plexo-commerce-${e}="true"${V("data-plexo-product-id", S.productId)}${V("data-plexo-service-id", S.serviceId)}${V("data-plexo-commerce-mode", S.mode)} style="${t}"></div>`;
701
+ return `<div${C} data-plexo-commerce-${e}="true"${V("data-plexo-product-id", S.productId)}${V("data-plexo-service-id", S.serviceId)}${V("data-plexo-commerce-mode", S.mode)}${S.storeMode === !1 ? " data-plexo-commerce-store-mode=\"false\"" : ""}${V("data-plexo-commerce-limit", S.limit)}${V("data-plexo-commerce-category", S.category)}${V("data-plexo-commerce-sort", S.sort)}${V("data-plexo-commerce-items-per-row", S.itemsPerRow)}${V("data-plexo-commerce-items-per-page", S.itemsPerPage)}${S.paginated ? " data-plexo-commerce-paginated=\"true\"" : ""} style="${t}"></div>`;
702
702
  }
703
703
  case "social": {
704
704
  let e = r(g), t = _.textAlign === "center" ? "center" : _.textAlign === "right" ? "flex-end" : "flex-start";
package/dist/compiler.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./compiler-CbOB0Sbc.js";
1
+ import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./compiler-CHtTI8Yn.js";
2
2
  export { l as DEFAULT_BODY_FONT_FAMILY, a as FORM_NON_CSS_STYLE_KEYS, s as collectResponsiveRule, r as compileToHTML, e as compileToHTMLWithStrataAuto, o as compileToPlainText, c as convertSectionRowToPlexoRow, t as getFormDefaultStyle, i as getInlineStylesImportant, u as htmlToPlainText, n as injectStrataBundle };
@@ -333,7 +333,7 @@ var v = "https://cdn.jsdelivr.net/npm/@charisol/plexo-sdk@latest/dist/social-ico
333
333
  case "cart_summary":
334
334
  case "checkout_flow":
335
335
  case "order_confirmation":
336
- case "order_tracking": return `${j}<div${h}${y} data-plexo-commerce-${l.type.replace(/_([a-z])/g, (e, t) => t.toUpperCase())}="true"${p.productId ? ` data-plexo-product-id="${b(p.productId)}"` : ""}${p.serviceId ? ` data-plexo-service-id="${b(p.serviceId)}"` : ""}${p.mode ? ` data-plexo-commerce-mode="${b(p.mode)}"` : ""} style="${m}"></div>`;
336
+ case "order_tracking": return `${j}<div${h}${y} data-plexo-commerce-${l.type.replace(/_([a-z])/g, (e, t) => t.toUpperCase())}="true"${p.productId ? ` data-plexo-product-id="${b(p.productId)}"` : ""}${p.serviceId ? ` data-plexo-service-id="${b(p.serviceId)}"` : ""}${p.mode ? ` data-plexo-commerce-mode="${b(p.mode)}"` : ""}${p.storeMode === !1 ? " data-plexo-commerce-store-mode=\"false\"" : ""}${p.limit ? ` data-plexo-commerce-limit="${b(String(p.limit))}"` : ""}${p.category ? ` data-plexo-commerce-category="${b(p.category)}"` : ""}${p.sort ? ` data-plexo-commerce-sort="${b(p.sort)}"` : ""}${p.itemsPerRow ? ` data-plexo-commerce-items-per-row="${b(String(p.itemsPerRow))}"` : ""}${p.itemsPerPage ? ` data-plexo-commerce-items-per-page="${b(String(p.itemsPerPage))}"` : ""}${p.paginated ? " data-plexo-commerce-paginated=\"true\"" : ""} style="${m}"></div>`;
337
337
  default: return `${j}<div${h}${y} style="${m}">${b(p.text || "")}</div>`;
338
338
  }
339
339
  }, z = (e, t, n) => {
@@ -1,2 +1,2 @@
1
- import { t as e } from "./compilerClient-vhOvubPV.js";
1
+ import { t as e } from "./compilerClient-BIrZIgfG.js";
2
2
  export { e as parseJsonToTargetFormat };
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ /**
3
+ * Every setting the `shop_grid` marker's runtime (commerce.js's renderShopGrid) reads off
4
+ * its own data attributes -- see compiler.ts's shared commerce-marker case, which already
5
+ * passes all of these through regardless of storeMode, so no compiler change was needed
6
+ * to make this panel work. Two modes, one block (see types.ts's shop_grid comment):
7
+ * storeMode true (default) is the full searchable/filterable catalog a Shop page uses;
8
+ * false is a smaller curated shelf ("3 best sellers", say) for a marketing section.
9
+ * itemsPerRow/itemsPerPage apply in BOTH modes -- nothing here is hardcoded in the
10
+ * runtime, unlike the plain generic passthrough attrs a hand-authored page could set but
11
+ * a non-technical site owner had no UI for before this panel existed.
12
+ */
13
+ export declare const ShopGridPropertiesAccordion: React.FC<any>;