pagepilot-visual-editor 1.0.22 → 1.0.24
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/editor-sample/App/InspectorDrawer/LayoutPanel/TemplatePreviewDialog.d.ts +3 -1
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +14 -0
- package/dist/{index-CBV0OBIn.cjs → index-DC6qaxfh.cjs} +254 -254
- package/dist/{index-B9YsgzOW.cjs → index-DUfdBPwm.cjs} +1 -1
- package/dist/{index-BvcNuk4o.js → index-QDgGEZCN.js} +1 -1
- package/dist/{index-CoVzUwpq.js → index-n8k3yknQ.js} +25068 -24456
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{xlsx-De8vBGSZ.cjs → xlsx-pI-7Dj2H.cjs} +1 -1
- package/dist/{xlsx-AjpNHkyW.js → xlsx-rO__5tF8.js} +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,9 @@ export interface TemplatePreviewDialogProps {
|
|
|
8
8
|
loading: boolean;
|
|
9
9
|
styleLoading: boolean;
|
|
10
10
|
appendLoading: boolean;
|
|
11
|
+
onChangeTemplate?: (id: string) => void;
|
|
12
|
+
changeLoading?: boolean;
|
|
11
13
|
/** True when the template is gated to a plan the tenant doesn't have. */
|
|
12
14
|
locked?: boolean;
|
|
13
15
|
}
|
|
14
|
-
export default function TemplatePreviewDialog({ open, template, onClose, onUse, onUseStyles, onAppend, loading, styleLoading, appendLoading, locked, }: TemplatePreviewDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default function TemplatePreviewDialog({ open, template, onClose, onUse, onUseStyles, onAppend, loading, styleLoading, appendLoading, onChangeTemplate, changeLoading, locked, }: TemplatePreviewDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -69,6 +69,20 @@ export declare function applyIndividualBlockTemplate(configuration: any, documen
|
|
|
69
69
|
idMapping: Record<string, string>;
|
|
70
70
|
} | null;
|
|
71
71
|
export declare function applyTemplateStylesOnly(configuration: any, document: any, resetDocument: (doc: any) => void): void;
|
|
72
|
+
/**
|
|
73
|
+
* "Change template": apply the incoming template's styling — both the root
|
|
74
|
+
* canvas AND every individual block — while leaving user content and
|
|
75
|
+
* structure exactly as they were. Root overlay mirrors
|
|
76
|
+
* `applyTemplateStylesOnly`; per-block overlay pairs each user block with a
|
|
77
|
+
* same-typed donor from the new template in document order.
|
|
78
|
+
*/
|
|
79
|
+
export declare function applyChangeTemplate(configuration: any, document: any, resetDocument: (doc: any) => void): void;
|
|
80
|
+
/**
|
|
81
|
+
* Sidebar-side counterpart to `applyChangeTemplate`. Retains user's existing
|
|
82
|
+
* form fields verbatim; appends any incoming template fields the user
|
|
83
|
+
* doesn't already have (with prefilled defaults). Nothing is deleted.
|
|
84
|
+
*/
|
|
85
|
+
export declare function mergeTemplateFormFieldsPreservingValues(templateRecord: any): void;
|
|
72
86
|
/**
|
|
73
87
|
* "Add this section" for full-document templates — append every block from
|
|
74
88
|
* the template to the current document with all block ids regenerated (so
|