@charisol/plexo-sdk 1.4.2 → 1.4.3
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/{compilerClient-iBNHz76w.js → compilerClient-BwRHkl-b.js} +35 -1
- package/dist/compilerClient.js +1 -1
- package/dist/components/editor/dnd/DragOverContext.d.ts +4 -2
- package/dist/components/editor/frame/CompiledCanvasFrame.d.ts +7 -0
- package/dist/components/editor/frame/DndOverlayNode.d.ts +5 -3
- package/dist/components/editor/frame/useFrameNodeRects.d.ts +4 -0
- package/dist/components/editor/frame/useFrameTextEditing.d.ts +7 -0
- package/dist/index.js +14480 -14172
- package/dist/store.d.ts +6 -0
- package/dist/utilities/dndCollision.d.ts +27 -0
- package/package.json +2 -1
package/dist/store.d.ts
CHANGED
|
@@ -61,6 +61,12 @@ export interface PlexoStore {
|
|
|
61
61
|
addColumnToRow: (rowId: string) => string | null;
|
|
62
62
|
deleteColumnFromRow: (columnId: string) => void;
|
|
63
63
|
duplicateColumn: (columnId: string) => void;
|
|
64
|
+
/** Moves `columnId` (found at any nesting depth) into `targetRowId`'s own columns, either
|
|
65
|
+
* immediately before `beforeColumnId` or, if omitted, at the end. Widths in both the
|
|
66
|
+
* source row (if it's not the same as the target) and the target row are redistributed
|
|
67
|
+
* evenly afterward, matching deleteColumnFromRow's own convention; a source row left with
|
|
68
|
+
* zero columns is removed entirely, same as deleteColumnFromRow. */
|
|
69
|
+
moveColumn: (columnId: string, targetRowId: string, beforeColumnId?: string) => void;
|
|
64
70
|
updateTemplateBodyStyle: (style: Record<string, any>) => void;
|
|
65
71
|
addUploadedImage: (img: {
|
|
66
72
|
id: string;
|
|
@@ -34,3 +34,30 @@ export declare function resolveDragOverEdge(args: {
|
|
|
34
34
|
height: number;
|
|
35
35
|
} | null;
|
|
36
36
|
}): DropEdge;
|
|
37
|
+
/**
|
|
38
|
+
* A pointer/mouse/touch event's clientX -- horizontal counterpart to getEventClientY, for the
|
|
39
|
+
* same reason (columns, reordered left/right, need the X axis; everything else reorders
|
|
40
|
+
* top/bottom).
|
|
41
|
+
*/
|
|
42
|
+
export declare function getEventClientX(event: Event | null | undefined): number | null;
|
|
43
|
+
/**
|
|
44
|
+
* Horizontal counterpart to resolveDragOverEdge -- columns sit side by side, not stacked, so
|
|
45
|
+
* "which half of the target is the drag on" has to compare X position, not Y. Same preference
|
|
46
|
+
* for the real pointer position over the dragged item's own translated bounding-box center,
|
|
47
|
+
* and for the same reason: a column's own center has no fixed relationship to where inside it
|
|
48
|
+
* the user happened to grab its drag handle.
|
|
49
|
+
*/
|
|
50
|
+
export declare function resolveHorizontalDragOverEdge(args: {
|
|
51
|
+
overRect: {
|
|
52
|
+
left: number;
|
|
53
|
+
width: number;
|
|
54
|
+
};
|
|
55
|
+
delta: {
|
|
56
|
+
x: number;
|
|
57
|
+
};
|
|
58
|
+
activatorEvent: Event | null | undefined;
|
|
59
|
+
activeTranslatedRect: {
|
|
60
|
+
left: number;
|
|
61
|
+
width: number;
|
|
62
|
+
} | null;
|
|
63
|
+
}): DropEdge;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charisol/plexo-sdk",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.3",
|
|
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",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"lucide-react": "^1.25.0",
|
|
71
71
|
"lucide-static": "^1.25.0",
|
|
72
72
|
"mjml-browser": "4.18.0",
|
|
73
|
+
"morphdom": "^2.7.8",
|
|
73
74
|
"react": "^19.2.7",
|
|
74
75
|
"react-dom": "^19.2.7",
|
|
75
76
|
"sanitize-html": "^2.17.7",
|