@charisol/plexo-sdk 1.1.12 → 1.1.14
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-Bxo7wIKY.js → compiler-1K7XytEa.js} +129 -151
- package/dist/compiler.js +1 -1
- package/dist/compilerClient.js +94 -72
- package/dist/{iconSvgStatic-D5PrYZfC.js → iconSvgStatic-CUYMC8Am.js} +247 -145
- package/dist/index.js +19 -4
- package/dist/social-icons/applemusic.png +0 -0
- package/dist/social-icons/applepodcasts.png +0 -0
- package/dist/social-icons/behance.png +0 -0
- package/dist/social-icons/bluesky.png +0 -0
- package/dist/social-icons/buymeacoffee.png +0 -0
- package/dist/social-icons/clubhouse.png +0 -0
- package/dist/social-icons/discord.png +0 -0
- package/dist/social-icons/dribbble.png +0 -0
- package/dist/social-icons/facebook.png +0 -0
- package/dist/social-icons/fallback.png +0 -0
- package/dist/social-icons/goodreads.png +0 -0
- package/dist/social-icons/instagram.png +0 -0
- package/dist/social-icons/kakaotalk.png +0 -0
- package/dist/social-icons/kofi.png +0 -0
- package/dist/social-icons/line.png +0 -0
- package/dist/social-icons/linkedin.png +0 -0
- package/dist/social-icons/mastodon.png +0 -0
- package/dist/social-icons/messenger.png +0 -0
- package/dist/social-icons/patreon.png +0 -0
- package/dist/social-icons/pinterest.png +0 -0
- package/dist/social-icons/producthunt.png +0 -0
- package/dist/social-icons/quora.png +0 -0
- package/dist/social-icons/reddit.png +0 -0
- package/dist/social-icons/signal.png +0 -0
- package/dist/social-icons/snapchat.png +0 -0
- package/dist/social-icons/soundcloud.png +0 -0
- package/dist/social-icons/spotify.png +0 -0
- package/dist/social-icons/substack.png +0 -0
- package/dist/social-icons/telegram.png +0 -0
- package/dist/social-icons/threads.png +0 -0
- package/dist/social-icons/tiktok.png +0 -0
- package/dist/social-icons/tripadvisor.png +0 -0
- package/dist/social-icons/tumblr.png +0 -0
- package/dist/social-icons/twitch.png +0 -0
- package/dist/social-icons/viber.png +0 -0
- package/dist/social-icons/vimeo.png +0 -0
- package/dist/social-icons/vk.png +0 -0
- package/dist/social-icons/wechat.png +0 -0
- package/dist/social-icons/whatsapp.png +0 -0
- package/dist/social-icons/x.png +0 -0
- package/dist/social-icons/yelp.png +0 -0
- package/dist/social-icons/youtube.png +0 -0
- package/dist/utilities/playground.constants.d.ts +1 -0
- package/dist/utilities/socialBrandIcons.d.ts +9 -6
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, b as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, o as u, p as d, r as f, s as p, u as m, v as h, x as g, y as _ } from "./iconSvgStatic-
|
|
2
|
-
import { _ as v, a as y, b, c as x, d as S, f as C, g as w, h as T, i as E, m as D, n as ee, o as te, p as ne, r as re, u as ie, x as ae, y as oe } from "./compiler-
|
|
1
|
+
import { a as e, b as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, o as u, p as d, r as f, s as p, u as m, v as h, x as g, y as _ } from "./iconSvgStatic-CUYMC8Am.js";
|
|
2
|
+
import { _ as v, a as y, b, c as x, d as S, f as C, g as w, h as T, i as E, m as D, n as ee, o as te, p as ne, r as re, u as ie, x as ae, y as oe } from "./compiler-1K7XytEa.js";
|
|
3
3
|
import { parseJsonToTargetFormat as se } from "./compilerClient.js";
|
|
4
4
|
import O, { createContext as ce, createElement as le, forwardRef as ue, useCallback as de, useContext as fe, useEffect as k, useImperativeHandle as pe, useMemo as me, useRef as A, useState as j } from "react";
|
|
5
5
|
import { DndContext as he, DragOverlay as M, PointerSensor as ge, TouchSensor as N, pointerWithin as _e, rectIntersection as ve, useDraggable as ye, useDroppable as be, useSensor as xe, useSensors as Se } from "@dnd-kit/core";
|
|
@@ -53979,14 +53979,17 @@ var IU = ({ value: e, onChange: t, sitePages: n }) => {
|
|
|
53979
53979
|
parentColId: i
|
|
53980
53980
|
},
|
|
53981
53981
|
disabled: s
|
|
53982
|
-
}), f = a === e.id, p = t(e), m = l === "tablet" ? "tablet" : l === "mobile" ? "mobile" : null, h = m === "tablet" ? e.stylesTablet : m === "mobile" ? e.stylesMobile : void 0, g = S(e.styles, h, m), _ = g.display, v = _ === "flex" || _ === "block" || _ === "inline-flex", y = v ? "h-full" : "flex flex-col
|
|
53982
|
+
}), f = a === e.id, p = t(e), m = l === "tablet" ? "tablet" : l === "mobile" ? "mobile" : null, h = m === "tablet" ? e.stylesTablet : m === "mobile" ? e.stylesMobile : void 0, g = S(e.styles, h, m), _ = g.display, v = _ === "flex" || _ === "block" || _ === "inline-flex", y = v ? "h-full" : "flex flex-col h-full", b = v ? {
|
|
53983
53983
|
display: _,
|
|
53984
53984
|
flexDirection: g.flexDirection,
|
|
53985
53985
|
flexWrap: g.flexWrap,
|
|
53986
53986
|
gap: g.gap ?? "10px",
|
|
53987
53987
|
alignItems: g.alignItems,
|
|
53988
53988
|
justifyContent: g.justifyContent || "flex-start"
|
|
53989
|
-
} : {
|
|
53989
|
+
} : {
|
|
53990
|
+
justifyContent: g.justifyContent || "flex-start",
|
|
53991
|
+
gap: g.gap || "16px"
|
|
53992
|
+
};
|
|
53990
53993
|
return /* @__PURE__ */ I("div", {
|
|
53991
53994
|
ref: u,
|
|
53992
53995
|
id: e.id,
|
|
@@ -58861,6 +58864,18 @@ var JW = (e) => ({ body: {
|
|
|
58861
58864
|
}, e.label))
|
|
58862
58865
|
})]
|
|
58863
58866
|
}),
|
|
58867
|
+
q.display !== "flex" && /* @__PURE__ */ F(xW, {
|
|
58868
|
+
label: "Element Spacing",
|
|
58869
|
+
value: q.gap || "16px",
|
|
58870
|
+
units: [
|
|
58871
|
+
"px",
|
|
58872
|
+
"rem",
|
|
58873
|
+
"%"
|
|
58874
|
+
],
|
|
58875
|
+
min: 0,
|
|
58876
|
+
max: 200,
|
|
58877
|
+
onChange: (e) => G("gap", e)
|
|
58878
|
+
}),
|
|
58864
58879
|
q.display === "flex" && /* @__PURE__ */ I(P, { children: [
|
|
58865
58880
|
/* @__PURE__ */ F(xW, {
|
|
58866
58881
|
label: "Gap",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -11,6 +11,7 @@ export declare const CUSTOM_DEVICE_PRESETS: Array<{
|
|
|
11
11
|
category: 'desktop' | 'tablet' | 'mobile';
|
|
12
12
|
}>;
|
|
13
13
|
export declare const LAPTOP_BASELINE_WIDTH = 1280;
|
|
14
|
+
/** Derived from SOCIAL_BRAND_ICONS (single source of truth) rather than duplicated here, so the icon picker's list and label always match whatever providers are actually renderable. */
|
|
14
15
|
export declare const SOCIAL_OPTIONS: Array<{
|
|
15
16
|
id: string;
|
|
16
17
|
label: string;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
export interface SocialBrandIcon {
|
|
2
|
-
/** SVG path data on a 24x24 viewBox
|
|
2
|
+
/** SVG path data on a 24x24 viewBox. */
|
|
3
3
|
path: string;
|
|
4
4
|
/** Official brand color as a `#rrggbb` hex string. */
|
|
5
5
|
color: string;
|
|
6
|
+
/** Human-readable display name for icon pickers. */
|
|
7
|
+
label: string;
|
|
6
8
|
}
|
|
7
9
|
/**
|
|
8
|
-
* The
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* The full picker set (playground.constants.ts's SOCIAL_OPTIONS derives its labels from this),
|
|
11
|
+
* each mapped to its actual brand mark and current official brand color -- shared by icons.tsx
|
|
12
|
+
* (canvas/builder UI), elementResolvers.ts (compiler.ts/compilerClient.ts's publish-time
|
|
13
|
+
* rendering), and scripts/generate-social-icon-pngs.ts (the static PNGs compilerClient.ts's
|
|
14
|
+
* email target serves from jsDelivr, since Gmail supports neither inline <svg> nor any
|
|
15
|
+
* data:-URI image regardless of format -- see that script's own header comment).
|
|
13
16
|
*/
|
|
14
17
|
export declare const SOCIAL_BRAND_ICONS: Record<string, SocialBrandIcon>;
|
|
15
18
|
/** A generic dot, matching the existing fallback for a provider outside the fixed set above. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charisol/plexo-sdk",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.14",
|
|
5
5
|
"description": "Plexo visual email and landing page builder SDK — drag-and-drop template editor with AI integration.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"email-builder",
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"test": "vitest run",
|
|
51
51
|
"build": "vite build && tsc -p tsconfig.lib.json",
|
|
52
52
|
"lint": "oxlint",
|
|
53
|
-
"preview": "vite preview"
|
|
53
|
+
"preview": "vite preview",
|
|
54
|
+
"generate:social-icon-pngs": "tsx scripts/generate-social-icon-pngs.ts"
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"@dnd-kit/core": "^6.3.1",
|
|
@@ -61,7 +62,6 @@
|
|
|
61
62
|
"lucide-static": "^1.25.0",
|
|
62
63
|
"react": "^19.2.7",
|
|
63
64
|
"react-dom": "^19.2.7",
|
|
64
|
-
"simple-icons": "^16.28.0",
|
|
65
65
|
"zod": "^4.4.3",
|
|
66
66
|
"zustand": "^5.0.14"
|
|
67
67
|
},
|
|
@@ -77,7 +77,10 @@
|
|
|
77
77
|
"oxlint": "^1.71.0",
|
|
78
78
|
"postcss": "^8.5.19",
|
|
79
79
|
"postcss-prefix-selector": "^2.1.1",
|
|
80
|
+
"sharp": "^0.34.5",
|
|
81
|
+
"simple-icons": "^16.28.0",
|
|
80
82
|
"tailwindcss": "^4.3.3",
|
|
83
|
+
"tsx": "^4.20.6",
|
|
81
84
|
"typescript": "~6.0.2",
|
|
82
85
|
"vite": "^8.1.1",
|
|
83
86
|
"vitest": "^4.1.10"
|