@charisol/plexo-sdk 1.1.9 → 1.1.10
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/{compiler-Dv-nnW6a.js → compiler-Bxo7wIKY.js} +4 -1
- package/dist/compiler.js +1 -1
- package/dist/compilerClient.js +1 -1
- package/dist/components/properties/accordionSections/BlogCommentsPropertiesAccordion.d.ts +14 -0
- package/dist/components/properties/accordionSections/BlogPostListPropertiesAccordion.d.ts +11 -0
- package/dist/index.js +540 -197
- package/package.json +1 -1
|
@@ -1197,7 +1197,10 @@ var Z = (t) => {
|
|
|
1197
1197
|
case "blog_author":
|
|
1198
1198
|
case "blog_categories":
|
|
1199
1199
|
case "blog_comments":
|
|
1200
|
-
case "blog_post_list":
|
|
1200
|
+
case "blog_post_list": {
|
|
1201
|
+
let e = t.type.replace(/^blog_/, "").replace(/_([a-z])/g, (e, t) => t.toUpperCase()), n = z(h);
|
|
1202
|
+
return `<div${v} data-plexo-blog-${e}="true"${G("data-plexo-blog-prefix", _.prefix)} style="${n}"></div>`;
|
|
1203
|
+
}
|
|
1201
1204
|
case "social": {
|
|
1202
1205
|
let e = i(t), n = h.textAlign === "center" ? "center" : h.textAlign === "right" ? "flex-end" : "flex-start";
|
|
1203
1206
|
return `<div${v} style="${z({
|
package/dist/compiler.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./compiler-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./compiler-Bxo7wIKY.js";
|
|
2
2
|
export { c as DEFAULT_BODY_FONT_FAMILY, i as FORM_NON_CSS_STYLE_KEYS, o as collectResponsiveRule, n as compileToHTML, e as compileToHTMLWithStrataAuto, a as compileToPlainText, s as convertSectionRowToPlexoRow, t as getFormDefaultStyle, r as getInlineStylesImportant, l as injectStrataBundle };
|
package/dist/compilerClient.js
CHANGED
|
@@ -118,7 +118,7 @@ var u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", d =
|
|
|
118
118
|
case "blog_author":
|
|
119
119
|
case "blog_categories":
|
|
120
120
|
case "blog_comments":
|
|
121
|
-
case "blog_post_list": return `${T}<div${x}${C} data-plexo-blog-${t.type.replace(/^blog_/, "").replace(/_([a-z])/g, (e, t) => t.toUpperCase())}="true" style="${b}"></div>`;
|
|
121
|
+
case "blog_post_list": return `${T}<div${x}${C} data-plexo-blog-${t.type.replace(/^blog_/, "").replace(/_([a-z])/g, (e, t) => t.toUpperCase())}="true"${f.prefix ? ` data-plexo-blog-prefix="${p(f.prefix)}"` : ""} style="${b}"></div>`;
|
|
122
122
|
default: return `${T}<div${x}${C} style="${b}">${p(f.text || "")}</div>`;
|
|
123
123
|
}
|
|
124
124
|
}, S = (e, n) => {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* blog_comments substitutes a whole comments section (existing comment list + a name/
|
|
4
|
+
* email/body form + submit button) — see lib/pub/renderComments.ts and
|
|
5
|
+
* lib/pub/blogTheme.tsx on the host. None of those pieces had any style controls at all,
|
|
6
|
+
* so the form always rendered with hardcoded light-theme colors (white inputs, no
|
|
7
|
+
* explicit text color) regardless of the surrounding layout's own background — the fix on
|
|
8
|
+
* the host side is a set of CSS custom properties (var(--plexo-comment-*, <fallback>))
|
|
9
|
+
* inherited from this marker div into every nested selector; these controls are what
|
|
10
|
+
* write those custom properties onto it, via the SAME onTransientStyleChange path every
|
|
11
|
+
* other style control uses (a "--already-kebab-case" key passes through the compiler's
|
|
12
|
+
* style serializer unchanged, so no special-casing is needed there).
|
|
13
|
+
*/
|
|
14
|
+
export declare const BlogCommentsPropertiesAccordion: React.FC<any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* blog_post_list substitutes a whole grid of post cards (title/excerpt/meta/image per
|
|
4
|
+
* post — see lib/pub/blogLayoutFragments.tsx's postCardHtml and lib/pub/blogTheme.tsx's
|
|
5
|
+
* .plexo-post-card__* rules on the host) with no style controls at all until now — same
|
|
6
|
+
* gap blog_comments had before its own color panel. Same fix: CSS custom properties
|
|
7
|
+
* (var(--plexo-postlist-*, <fallback>)) inherited from this marker div into every nested
|
|
8
|
+
* selector on the host side, written here via the same onTransientStyleChange path every
|
|
9
|
+
* other style control uses.
|
|
10
|
+
*/
|
|
11
|
+
export declare const BlogPostListPropertiesAccordion: React.FC<any>;
|