@charisol/plexo-sdk 1.4.39 → 1.4.41
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/index.js +13431 -17791
- package/dist/plexo-sdk.css +1 -1
- package/dist/toReact-BBzjWoFG.js +595 -0
- package/dist/v2/ai/commands.d.ts +616 -0
- package/dist/v2/ai/dispatch.d.ts +24 -0
- package/dist/v2/ai/nodeSchema.d.ts +196 -0
- package/dist/v2/brand/BrandColorSwatches.d.ts +4 -0
- package/dist/v2/brand/BrandPanel.d.ts +4 -0
- package/dist/v2/brand/ChangeSetGallery.d.ts +10 -0
- package/dist/v2/brand/StyleSetEditor.d.ts +22 -0
- package/dist/v2/canvas/CatalogDragContext.d.ts +27 -0
- package/dist/v2/canvas/ContextMenuContext.d.ts +16 -0
- package/dist/v2/canvas/DeviceModeContext.d.ts +20 -0
- package/dist/v2/canvas/DragEngineContext.d.ts +13 -0
- package/dist/v2/canvas/LayoutGuideContext.d.ts +22 -0
- package/dist/v2/canvas/PreviewModeContext.d.ts +15 -0
- package/dist/v2/canvas/SidebarContext.d.ts +21 -0
- package/dist/v2/canvas/StylePainterContext.d.ts +19 -0
- package/dist/v2/canvas/WorkspaceThemeContext.d.ts +19 -0
- package/dist/v2/canvas/aiTextTransforms.d.ts +24 -0
- package/dist/v2/canvas/animationPresets.d.ts +12 -0
- package/dist/v2/canvas/constants.d.ts +6 -0
- package/dist/v2/canvas/layoutRoles.d.ts +12 -0
- package/dist/v2/canvas/modelRect.d.ts +4 -0
- package/dist/v2/canvas/rectMath.d.ts +34 -0
- package/dist/v2/canvas/reorderMath.d.ts +8 -0
- package/dist/v2/canvas/resizeMath.d.ts +16 -0
- package/dist/v2/canvas/resolveBoxStyle.d.ts +12 -0
- package/dist/v2/canvas/resolveTargetSection.d.ts +10 -0
- package/dist/v2/canvas/sectionDividerShapes.d.ts +12 -0
- package/dist/v2/canvas/snapping.d.ts +28 -0
- package/dist/v2/canvas/useAlignNode.d.ts +10 -0
- package/dist/v2/canvas/useClipboardKeyBinding.d.ts +7 -0
- package/dist/v2/canvas/useDeleteKeyBinding.d.ts +3 -0
- package/dist/v2/canvas/useDragEngine.d.ts +44 -0
- package/dist/v2/canvas/useDraggableNode.d.ts +30 -0
- package/dist/v2/canvas/useInlineTextEdit.d.ts +29 -0
- package/dist/v2/canvas/usePointerEngine.d.ts +22 -0
- package/dist/v2/canvas/useResizeHandle.d.ts +12 -0
- package/dist/v2/canvas/useResolvedTextStyles.d.ts +13 -0
- package/dist/v2/canvas/useSelectionRects.d.ts +13 -0
- package/dist/v2/canvas/useUndoRedoKeyBinding.d.ts +8 -0
- package/dist/v2/catalog/elementCatalog.d.ts +31 -0
- package/dist/v2/catalog/imagePreset.d.ts +7 -0
- package/dist/v2/compile/index.d.ts +15 -0
- package/dist/v2/compile/toReact.d.ts +32 -0
- package/dist/v2/components/AdornmentLayer.d.ts +20 -0
- package/dist/v2/components/AskSolPanel.d.ts +19 -0
- package/dist/v2/components/CatalogDragGhost.d.ts +6 -0
- package/dist/v2/components/CellBoundary.d.ts +14 -0
- package/dist/v2/components/CenterCanvas.d.ts +3 -0
- package/dist/v2/components/ContentTabPanel.d.ts +12 -0
- package/dist/v2/components/ContextMenu.d.ts +5 -0
- package/dist/v2/components/ContextualToolbar.d.ts +25 -0
- package/dist/v2/components/ImagesTabPanel.d.ts +15 -0
- package/dist/v2/components/LayoutGuidePanel.d.ts +10 -0
- package/dist/v2/components/ManageLayersPanel.d.ts +13 -0
- package/dist/v2/components/NodeRenderer.d.ts +8 -0
- package/dist/v2/components/PreviewOverlay.d.ts +11 -0
- package/dist/v2/components/ResizeHandle.d.ts +6 -0
- package/dist/v2/components/RightRail.d.ts +13 -0
- package/dist/v2/components/SectionDividerOverlay.d.ts +8 -0
- package/dist/v2/components/SectionEdgeAddZone.d.ts +17 -0
- package/dist/v2/components/SectionGridOverlay.d.ts +10 -0
- package/dist/v2/components/SectionNamePill.d.ts +6 -0
- package/dist/v2/components/SectionNode.d.ts +5 -0
- package/dist/v2/components/SectionSideRail.d.ts +17 -0
- package/dist/v2/components/SelectionToolbar.d.ts +11 -0
- package/dist/v2/components/StylePainterToast.d.ts +5 -0
- package/dist/v2/components/V2Canvas.d.ts +56 -0
- package/dist/v2/components/nodes/ButtonNode.d.ts +4 -0
- package/dist/v2/components/nodes/ContainerNode.d.ts +11 -0
- package/dist/v2/components/nodes/EmbedNode.d.ts +4 -0
- package/dist/v2/components/nodes/ImageNode.d.ts +4 -0
- package/dist/v2/components/nodes/InputNode.d.ts +4 -0
- package/dist/v2/components/nodes/MenuNode.d.ts +18 -0
- package/dist/v2/components/nodes/TextNode.d.ts +4 -0
- package/dist/v2/index.d.ts +12 -0
- package/dist/v2/inspector/AiQuickEditPanel.d.ts +12 -0
- package/dist/v2/inspector/AnimationPanel.d.ts +11 -0
- package/dist/v2/inspector/DesignAccordions.d.ts +7 -0
- package/dist/v2/inspector/FieldRenderer.d.ts +9 -0
- package/dist/v2/inspector/IconPopoverButton.d.ts +9 -0
- package/dist/v2/inspector/MenuIconPanel.d.ts +7 -0
- package/dist/v2/inspector/MenuManagePanel.d.ts +8 -0
- package/dist/v2/inspector/Popover.d.ts +21 -0
- package/dist/v2/inspector/SectionDividerPanel.d.ts +9 -0
- package/dist/v2/inspector/fieldStyles.d.ts +15 -0
- package/dist/v2/inspector/fields/ColorField.d.ts +7 -0
- package/dist/v2/inspector/fields/NumberField.d.ts +7 -0
- package/dist/v2/inspector/fields/SelectField.d.ts +7 -0
- package/dist/v2/inspector/fields/TextField.d.ts +7 -0
- package/dist/v2/inspector/fields/TextStyleField.d.ts +11 -0
- package/dist/v2/inspector/fields/TextareaField.d.ts +7 -0
- package/dist/v2/inspector/schema.d.ts +25 -0
- package/dist/v2/inspector/useFieldCommit.d.ts +12 -0
- package/dist/v2/store/brandDefaults.d.ts +4 -0
- package/dist/v2/store/brandTypes.d.ts +40 -0
- package/dist/v2/store/cloneSubtree.d.ts +12 -0
- package/dist/v2/store/createBrandStore.d.ts +2 -0
- package/dist/v2/store/createCanvasStore.d.ts +2 -0
- package/dist/v2/store/seed.d.ts +17 -0
- package/dist/v2/store/types.d.ts +163 -0
- package/dist/v2/ui/theme.d.ts +85 -0
- package/dist/v2-compile.js +9 -0
- package/dist/v2.js +8508 -0
- package/dist/zoom-in-DL4pfiLG.js +4461 -0
- package/package.json +11 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
/** The inline custom-property declarations for one theme mode — spread onto the
|
|
3
|
+
* editor's root element (V2Canvas.tsx) to actually switch the chrome's palette. */
|
|
4
|
+
export declare function getThemeStyle(dark: boolean): React.CSSProperties;
|
|
5
|
+
export declare const color: {
|
|
6
|
+
readonly bg: string;
|
|
7
|
+
readonly bgSubtle: string;
|
|
8
|
+
readonly bgMuted: string;
|
|
9
|
+
readonly bgHover: string;
|
|
10
|
+
readonly border: string;
|
|
11
|
+
readonly borderStrong: string;
|
|
12
|
+
readonly text: string;
|
|
13
|
+
readonly textMuted: string;
|
|
14
|
+
readonly textFaint: string;
|
|
15
|
+
readonly accent: "#5b48ee";
|
|
16
|
+
readonly accentHover: "#4c3bd6";
|
|
17
|
+
readonly accentBg: string;
|
|
18
|
+
readonly accentText: "#8b7cf6";
|
|
19
|
+
readonly accentBorder: string;
|
|
20
|
+
readonly danger: "#e11d48";
|
|
21
|
+
readonly dangerBg: string;
|
|
22
|
+
readonly guide: "#ec4899";
|
|
23
|
+
readonly shadow: "0 1px 2px rgba(0,0,0,0.06), 0 1px 1px rgba(0,0,0,0.04)";
|
|
24
|
+
readonly shadowStrong: "0 12px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08)";
|
|
25
|
+
};
|
|
26
|
+
/** Strict 4px base grid — every gap/padding/margin in the editor's chrome should be one
|
|
27
|
+
* of these, never a bespoke number picked to "look about right" in one spot. */
|
|
28
|
+
export declare const space: {
|
|
29
|
+
readonly xxs: 2;
|
|
30
|
+
readonly xs: 4;
|
|
31
|
+
readonly sm: 8;
|
|
32
|
+
readonly md: 12;
|
|
33
|
+
readonly lg: 16;
|
|
34
|
+
readonly xl: 20;
|
|
35
|
+
readonly xxl: 28;
|
|
36
|
+
readonly xxxl: 40;
|
|
37
|
+
};
|
|
38
|
+
export declare const radius: {
|
|
39
|
+
readonly sm: 6;
|
|
40
|
+
readonly md: 8;
|
|
41
|
+
readonly lg: 12;
|
|
42
|
+
readonly xl: 16;
|
|
43
|
+
readonly pill: 999;
|
|
44
|
+
};
|
|
45
|
+
/** Inter, loaded once by the dev playground host (src/v2/dev/PlaygroundHost.tsx) — never
|
|
46
|
+
* injected by a component itself, and never part of the published package's own CSS.
|
|
47
|
+
* Falls back to the platform's own UI font stack if the stylesheet hasn't loaded yet or
|
|
48
|
+
* a host embeds these components without the dev harness. */
|
|
49
|
+
export declare const fontFamily = "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
50
|
+
/** One real type scale (size + matching line-height + weight), not per-component
|
|
51
|
+
* guesses. `label` is the workhorse size for buttons/inputs/menu items. */
|
|
52
|
+
export declare const font: {
|
|
53
|
+
readonly family: "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif";
|
|
54
|
+
readonly size: {
|
|
55
|
+
readonly xs: 11;
|
|
56
|
+
readonly sm: 12;
|
|
57
|
+
readonly label: 13;
|
|
58
|
+
readonly md: 14;
|
|
59
|
+
readonly lg: 16;
|
|
60
|
+
readonly xl: 20;
|
|
61
|
+
readonly xxl: 26;
|
|
62
|
+
};
|
|
63
|
+
readonly lineHeight: {
|
|
64
|
+
readonly tight: 1.2;
|
|
65
|
+
readonly normal: 1.45;
|
|
66
|
+
};
|
|
67
|
+
readonly weight: {
|
|
68
|
+
readonly regular: 400;
|
|
69
|
+
readonly medium: 500;
|
|
70
|
+
readonly semibold: 600;
|
|
71
|
+
readonly bold: 700;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
/** Applied once at the editor's root (V2Canvas.tsx) so every descendant inherits the
|
|
75
|
+
* same font instead of each component re-declaring it. */
|
|
76
|
+
export declare const rootTypographyStyle: React.CSSProperties;
|
|
77
|
+
/** A section-header label used throughout the Inspector/panels ("LAYOUT", "TEXT", …). */
|
|
78
|
+
export declare const sectionLabelStyle: React.CSSProperties;
|
|
79
|
+
export declare const panelInputStyle: React.CSSProperties;
|
|
80
|
+
/** Standard icon-button size across toolbars/menus/panels — one number, not
|
|
81
|
+
* 28/30/32/36 depending on which file you're reading. */
|
|
82
|
+
export declare const iconButtonSize = 34;
|
|
83
|
+
/** Shared chrome-surface treatment for floating panels/popovers/modals — the "premium"
|
|
84
|
+
* feel comes as much from this repeating consistently as from any single value in it. */
|
|
85
|
+
export declare const panelSurfaceStyle: React.CSSProperties;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { c as e, f as t, l as n, n as r, r as i, t as a, u as o } from "./toReact-BBzjWoFG.js";
|
|
2
|
+
//#region src/v2/compile/index.ts
|
|
3
|
+
function s(e = o, t) {
|
|
4
|
+
let n = e.find((e) => e.id === t) ?? e[0], r = {};
|
|
5
|
+
for (let e of n?.slots ?? []) r[e.id] = e.styles;
|
|
6
|
+
return r;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as DEFAULT_BOX_SETS, n as DEFAULT_BUTTON_SETS, o as DEFAULT_TEXT_STYLE_SETS, a as DESIGN_WIDTH, t as buildSeedNodes, r as compilePageToReact, i as componentNameFor, s as textStyleSlots };
|