pagepilot-visual-editor 1.0.23 → 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.
@@ -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