@charisol/plexo-sdk 1.0.37 → 1.0.38
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-BHUlR0D2.js → compiler-BSPA3AY-.js} +169 -174
- package/dist/compiler.js +1 -1
- package/dist/compilerClient.js +81 -67
- package/dist/iconSvgStatic-JHlo_YyU.js +14986 -0
- package/dist/index.js +44085 -4457
- package/dist/utilities/iconSvgStatic.d.ts +21 -0
- package/dist/utilities/plexoBuilderRuntime.d.ts +1 -1
- package/package.json +2 -1
- package/dist/elementResolvers-qyNepC_f.js +0 -39752
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a raw, user/AI-supplied icon name (any case/separator style) directly against
|
|
3
|
+
* lucide-static's own key space -- deliberately separate from resolveLucideIconKey, which
|
|
4
|
+
* resolves against lucide-react's PascalCase export names for the canvas's live React
|
|
5
|
+
* rendering. The two packages don't share an identical key set (a handful of icons were
|
|
6
|
+
* renamed between them, e.g. old "XCircle" vs current "CircleX" ordering), so this falls
|
|
7
|
+
* back to an alnum-only match the same way resolveLucideIconKey does for its own key space.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveStaticIconKey(rawName: string | undefined): string;
|
|
10
|
+
/**
|
|
11
|
+
* Renders a lucide icon straight to an SVG string from lucide-static's raw node data --
|
|
12
|
+
* no React involved. compiler.ts/compilerClient.ts previously did this via
|
|
13
|
+
* renderToStaticMarkup(React.createElement(...)) against the full lucide-react component
|
|
14
|
+
* set, which is fatal inside a Next.js App Router Route Handler: Route Handlers resolve
|
|
15
|
+
* `react` under the "react-server" condition, whose build has no createContext, and
|
|
16
|
+
* lucide-react's shared Icon wrapper calls createContext at module-load time regardless of
|
|
17
|
+
* which single icon is actually used -- so merely importing it crashed the whole module
|
|
18
|
+
* graph the moment any Route Handler imported these compiler files (confirmed against both
|
|
19
|
+
* this endpoint and the existing /api/v1/publish route, which hit the identical crash).
|
|
20
|
+
*/
|
|
21
|
+
export declare function renderIconSvg(rawName: string | undefined, size: number, color: string): string;
|
|
@@ -16,7 +16,7 @@ interface RuntimeArgs {
|
|
|
16
16
|
export declare const usePlexoBuilderRuntime: ({ apiKey, mode, onSave, isSavingLayout, setIsSavingLayout, normalizeTemplateWithDefaults, templateId, allowPublishLandingPage: _allowPublishLandingPage, }: RuntimeArgs) => {
|
|
17
17
|
sensors: import("@dnd-kit/core").SensorDescriptor<import("@dnd-kit/core").SensorOptions>[];
|
|
18
18
|
getJson: () => TemplateJSON;
|
|
19
|
-
exportDesign: (
|
|
19
|
+
exportDesign: (targetType?: PlexoTargetType) => Promise<{
|
|
20
20
|
json: TemplateJSON;
|
|
21
21
|
html: string;
|
|
22
22
|
}>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charisol/plexo-sdk",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.38",
|
|
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",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@dnd-kit/utilities": "^3.2.2",
|
|
59
59
|
"isomorphic-dompurify": "^3.19.0",
|
|
60
60
|
"lucide-react": "^1.25.0",
|
|
61
|
+
"lucide-static": "^1.25.0",
|
|
61
62
|
"react": "^19.2.7",
|
|
62
63
|
"react-dom": "^19.2.7",
|
|
63
64
|
"zod": "^4.4.3",
|