@charisol/plexo-sdk 1.1.14 → 1.1.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.
- package/dist/{compiler-1K7XytEa.js → compiler-TjBEKCfw.js} +1 -1
- package/dist/compiler.js +1 -1
- package/dist/compilerClient.js +1 -1
- package/dist/components/icons.d.ts +65 -66
- package/dist/{iconSvgStatic-CUYMC8Am.js → iconSvgStatic-CA1z-vnh.js} +9 -9
- package/dist/index.js +4963 -4954
- package/dist/utilities/elementResolvers.d.ts +16 -4
- package/dist/utilities/strataTokenMapping.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, b as t, c as n, d as r, f as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, v as h } from "./iconSvgStatic-
|
|
1
|
+
import { a as e, b as t, c as n, d as r, f as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, v as h } from "./iconSvgStatic-CA1z-vnh.js";
|
|
2
2
|
//#region src/utilities/playground.constants.ts
|
|
3
3
|
var g = (e) => `https://picsum.photos/seed/${encodeURIComponent(e)}/1200/800`, _ = [
|
|
4
4
|
{
|
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-TjBEKCfw.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, b as t, d as n, f as r, h as i, l as a, m as o, p as s, t as c, v as l } from "./iconSvgStatic-
|
|
1
|
+
import { a as e, b as t, d as n, f as r, h as i, l as a, m as o, p as s, t as c, v as l } from "./iconSvgStatic-CA1z-vnh.js";
|
|
2
2
|
//#region src/utilities/compilerClient.ts
|
|
3
3
|
var u = "https://cdn.jsdelivr.net/npm/@charisol/plexo-sdk@latest/dist/social-icons", d = /* @__PURE__ */ new Set([
|
|
4
4
|
"selectable",
|
|
@@ -1,70 +1,69 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export declare const normalizeSocialProvider: (provider: string) => string;
|
|
3
|
-
export declare const renderSocialIcon: (provider: string, className?: string) =>
|
|
2
|
+
export declare const renderSocialIcon: (provider: string, className?: string) => import("react").JSX.Element;
|
|
4
3
|
export declare const isElementHiddenForView: (attrs: Record<string, any>, deviceView: "desktop" | "tablet" | "mobile" | "custom") => boolean;
|
|
5
4
|
export declare const ICONS: {
|
|
6
|
-
heading:
|
|
7
|
-
paragraph:
|
|
8
|
-
button:
|
|
9
|
-
image:
|
|
10
|
-
divider:
|
|
11
|
-
spacer:
|
|
12
|
-
carousel:
|
|
13
|
-
video:
|
|
14
|
-
social:
|
|
15
|
-
menu:
|
|
16
|
-
html:
|
|
17
|
-
table:
|
|
18
|
-
timer:
|
|
19
|
-
form:
|
|
20
|
-
accordion:
|
|
21
|
-
columns:
|
|
22
|
-
icon:
|
|
23
|
-
row1:
|
|
24
|
-
row2:
|
|
25
|
-
row3:
|
|
26
|
-
contentTab:
|
|
27
|
-
blocksTab:
|
|
28
|
-
bodyTab:
|
|
29
|
-
imagesTab:
|
|
30
|
-
uploadsTab:
|
|
31
|
-
auditTab:
|
|
32
|
-
designTab:
|
|
33
|
-
jsonTab:
|
|
34
|
-
htmlTab:
|
|
35
|
-
plainTab:
|
|
36
|
-
desktop:
|
|
37
|
-
tablet:
|
|
38
|
-
mobile:
|
|
39
|
-
custom:
|
|
40
|
-
trash:
|
|
41
|
-
copy:
|
|
42
|
-
close:
|
|
43
|
-
undo:
|
|
44
|
-
redo:
|
|
45
|
-
eye:
|
|
46
|
-
chevronDown:
|
|
47
|
-
chevronUp:
|
|
48
|
-
alignLeft:
|
|
49
|
-
alignCenter:
|
|
50
|
-
alignRight:
|
|
51
|
-
alignJustify:
|
|
52
|
-
chevron:
|
|
53
|
-
sun:
|
|
54
|
-
moon:
|
|
55
|
-
search:
|
|
56
|
-
alertCircle:
|
|
57
|
-
arrowRight:
|
|
58
|
-
link:
|
|
59
|
-
accessibility:
|
|
60
|
-
settings:
|
|
61
|
-
strataTab:
|
|
62
|
-
blogTitle:
|
|
63
|
-
blogContent:
|
|
64
|
-
blogFeaturedImage:
|
|
65
|
-
blogDate:
|
|
66
|
-
blogAuthor:
|
|
67
|
-
blogCategories:
|
|
68
|
-
blogComments:
|
|
69
|
-
blogPostList:
|
|
5
|
+
heading: import("react").JSX.Element;
|
|
6
|
+
paragraph: import("react").JSX.Element;
|
|
7
|
+
button: import("react").JSX.Element;
|
|
8
|
+
image: import("react").JSX.Element;
|
|
9
|
+
divider: import("react").JSX.Element;
|
|
10
|
+
spacer: import("react").JSX.Element;
|
|
11
|
+
carousel: import("react").JSX.Element;
|
|
12
|
+
video: import("react").JSX.Element;
|
|
13
|
+
social: import("react").JSX.Element;
|
|
14
|
+
menu: import("react").JSX.Element;
|
|
15
|
+
html: import("react").JSX.Element;
|
|
16
|
+
table: import("react").JSX.Element;
|
|
17
|
+
timer: import("react").JSX.Element;
|
|
18
|
+
form: import("react").JSX.Element;
|
|
19
|
+
accordion: import("react").JSX.Element;
|
|
20
|
+
columns: import("react").JSX.Element;
|
|
21
|
+
icon: import("react").JSX.Element;
|
|
22
|
+
row1: import("react").JSX.Element;
|
|
23
|
+
row2: import("react").JSX.Element;
|
|
24
|
+
row3: import("react").JSX.Element;
|
|
25
|
+
contentTab: import("react").JSX.Element;
|
|
26
|
+
blocksTab: import("react").JSX.Element;
|
|
27
|
+
bodyTab: import("react").JSX.Element;
|
|
28
|
+
imagesTab: import("react").JSX.Element;
|
|
29
|
+
uploadsTab: import("react").JSX.Element;
|
|
30
|
+
auditTab: import("react").JSX.Element;
|
|
31
|
+
designTab: import("react").JSX.Element;
|
|
32
|
+
jsonTab: import("react").JSX.Element;
|
|
33
|
+
htmlTab: import("react").JSX.Element;
|
|
34
|
+
plainTab: import("react").JSX.Element;
|
|
35
|
+
desktop: import("react").JSX.Element;
|
|
36
|
+
tablet: import("react").JSX.Element;
|
|
37
|
+
mobile: import("react").JSX.Element;
|
|
38
|
+
custom: import("react").JSX.Element;
|
|
39
|
+
trash: import("react").JSX.Element;
|
|
40
|
+
copy: import("react").JSX.Element;
|
|
41
|
+
close: import("react").JSX.Element;
|
|
42
|
+
undo: import("react").JSX.Element;
|
|
43
|
+
redo: import("react").JSX.Element;
|
|
44
|
+
eye: import("react").JSX.Element;
|
|
45
|
+
chevronDown: import("react").JSX.Element;
|
|
46
|
+
chevronUp: import("react").JSX.Element;
|
|
47
|
+
alignLeft: import("react").JSX.Element;
|
|
48
|
+
alignCenter: import("react").JSX.Element;
|
|
49
|
+
alignRight: import("react").JSX.Element;
|
|
50
|
+
alignJustify: import("react").JSX.Element;
|
|
51
|
+
chevron: import("react").JSX.Element;
|
|
52
|
+
sun: import("react").JSX.Element;
|
|
53
|
+
moon: import("react").JSX.Element;
|
|
54
|
+
search: import("react").JSX.Element;
|
|
55
|
+
alertCircle: import("react").JSX.Element;
|
|
56
|
+
arrowRight: import("react").JSX.Element;
|
|
57
|
+
link: import("react").JSX.Element;
|
|
58
|
+
accessibility: import("react").JSX.Element;
|
|
59
|
+
settings: import("react").JSX.Element;
|
|
60
|
+
strataTab: import("react").JSX.Element;
|
|
61
|
+
blogTitle: import("react").JSX.Element;
|
|
62
|
+
blogContent: import("react").JSX.Element;
|
|
63
|
+
blogFeaturedImage: import("react").JSX.Element;
|
|
64
|
+
blogDate: import("react").JSX.Element;
|
|
65
|
+
blogAuthor: import("react").JSX.Element;
|
|
66
|
+
blogCategories: import("react").JSX.Element;
|
|
67
|
+
blogComments: import("react").JSX.Element;
|
|
68
|
+
blogPostList: import("react").JSX.Element;
|
|
70
69
|
};
|
|
@@ -220,17 +220,17 @@ function i(e) {
|
|
|
220
220
|
//#endregion
|
|
221
221
|
//#region src/utilities/elementResolvers.ts
|
|
222
222
|
var a = (e) => e === "twitter" ? "x" : e, o = (e, t = "currentColor") => `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="${n[a(e)]?.path || "M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}"/></svg>`;
|
|
223
|
-
function s(e) {
|
|
224
|
-
let
|
|
225
|
-
return
|
|
226
|
-
let
|
|
223
|
+
function s(e, t) {
|
|
224
|
+
let n = e.attributes || {}, r = e.style || {}, o = Array.isArray(n.links) ? n.links : [], s = n.colorMode === "branded", c = s || !!t?.forceBrandedColor;
|
|
225
|
+
return o.filter((e) => e && typeof e == "object").map((e) => {
|
|
226
|
+
let t = a(String(e.provider || ""));
|
|
227
227
|
return {
|
|
228
|
-
provider:
|
|
228
|
+
provider: t,
|
|
229
229
|
url: typeof e.url == "string" && e.url.trim() ? e.url : "#",
|
|
230
|
-
color:
|
|
231
|
-
backgroundColor:
|
|
232
|
-
size: e.size ||
|
|
233
|
-
iconType: (e.iconType ||
|
|
230
|
+
color: c ? i(t) : e.color || r.iconColor || "#475569",
|
|
231
|
+
backgroundColor: s ? "transparent" : e.backgroundColor || r.iconBackgroundColor || "#f8fafc",
|
|
232
|
+
size: e.size || r.iconSize || "36px",
|
|
233
|
+
iconType: (e.iconType || n.iconType) === "square" ? "square" : "circle"
|
|
234
234
|
};
|
|
235
235
|
});
|
|
236
236
|
}
|