pagepilot-visual-editor 1.0.7 → 1.0.9

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.
Files changed (96) hide show
  1. package/README.md +304 -17
  2. package/dist/blocks-internal/block-button/src/index.d.ts +15 -9
  3. package/dist/blocks-internal/block-button-group/src/index.d.ts +6 -6
  4. package/dist/blocks-internal/block-columns-container/src/index.d.ts +3 -3
  5. package/dist/blocks-internal/block-container/src/index.d.ts +11 -11
  6. package/dist/blocks-internal/block-grid/src/index.d.ts +1 -1
  7. package/dist/blocks-internal/block-heading/src/index.d.ts +11 -5
  8. package/dist/blocks-internal/block-html/src/index.d.ts +2 -2
  9. package/dist/blocks-internal/block-iframe/src/index.d.ts +2 -2
  10. package/dist/blocks-internal/block-image/src/index.d.ts +3 -3
  11. package/dist/blocks-internal/block-list/src/index.d.ts +90 -0
  12. package/dist/blocks-internal/block-logo/src/index.d.ts +2 -2
  13. package/dist/blocks-internal/block-stepper/src/index.d.ts +10 -4
  14. package/dist/blocks-internal/block-text/src/index.d.ts +9 -3
  15. package/dist/blocks-internal/block-video/src/index.d.ts +3 -3
  16. package/dist/blocks-internal/block-youtube-url/src/index.d.ts +3 -3
  17. package/dist/editor/Shell.d.ts +1 -1
  18. package/dist/editor/Topbar.d.ts +5 -1
  19. package/dist/editor/blockToggles.d.ts +1 -1
  20. package/dist/editor/publish/PagePublishDialog.d.ts +7 -0
  21. package/dist/editor/renderSections.d.ts +68 -0
  22. package/dist/editor/types.d.ts +28 -0
  23. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AppBannerPickerSidebarPanel.d.ts +7 -0
  24. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FaqPickerSidebarPanel.d.ts +7 -0
  25. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ListSidebarPanel.d.ts +7 -0
  26. package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
  27. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/TemplatesList.d.ts +19 -4
  28. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +25 -0
  29. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/UpgradeDialogView.d.ts +1 -0
  30. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +15 -0
  31. package/dist/editor-sample/App/InspectorDrawer/useLayerNode.d.ts +1 -2
  32. package/dist/editor-sample/App/TemplatePanel/minimap/MiniMap.d.ts +6 -0
  33. package/dist/editor-sample/App/TemplatePanel/minimap/MiniMapFrame.d.ts +17 -0
  34. package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapSync.d.ts +24 -0
  35. package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapThumbnail.d.ts +8 -0
  36. package/dist/editor-sample/App/hooks/useAutosave.d.ts +10 -0
  37. package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
  38. package/dist/editor-sample/documents/blocks/Accordion/AccordionPropsSchema.d.ts +6 -0
  39. package/dist/editor-sample/documents/blocks/AppBannerPicker/AppBannerEditor.d.ts +7 -0
  40. package/dist/editor-sample/documents/blocks/AppBannerPicker/AppBannerPropsSchema.d.ts +6 -0
  41. package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
  42. package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
  43. package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +11 -11
  44. package/dist/editor-sample/documents/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
  45. package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +3 -3
  46. package/dist/editor-sample/documents/blocks/FaqPicker/FaqEditor.d.ts +7 -0
  47. package/dist/editor-sample/documents/blocks/FaqPicker/FaqPickerPropsSchema.d.ts +6 -0
  48. package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
  49. package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +3 -3
  50. package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +6 -1
  51. package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +2 -2
  52. package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
  53. package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +8 -2
  54. package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
  55. package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +6 -0
  56. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/index.d.ts +4 -1
  57. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +3 -2
  58. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/useCanvasDrop.d.ts +14 -8
  59. package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +1 -0
  60. package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +2 -2
  61. package/dist/editor-sample/documents/editor/EditorBlock.d.ts +6 -2
  62. package/dist/editor-sample/documents/editor/EditorContext.d.ts +15 -1
  63. package/dist/editor-sample/documents/editor/core.d.ts +246 -85
  64. package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +21 -3
  65. package/dist/email-builder-core/blocks/Accordion/AccordionPropsSchema.d.ts +6 -0
  66. package/dist/email-builder-core/blocks/AppBannerPicker/AppBannerPropsSchema.d.ts +6 -0
  67. package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
  68. package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +8 -2
  69. package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
  70. package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +11 -11
  71. package/dist/email-builder-core/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
  72. package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +5 -5
  73. package/dist/email-builder-core/blocks/FaqPicker/FaqPickerPropsSchema.d.ts +6 -0
  74. package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +5 -5
  75. package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
  76. package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +3 -3
  77. package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +6 -1
  78. package/dist/email-builder-core/blocks/Marquee/marqueeMotion.d.ts +3 -1
  79. package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +4 -4
  80. package/dist/email-builder-core/blocks/Pagination/PaginationPropsSchema.d.ts +5 -5
  81. package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
  82. package/dist/email-builder-core/blocks/Rating/RatingPropsSchema.d.ts +8 -2
  83. package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +12 -2
  84. package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +8 -2
  85. package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
  86. package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +6 -0
  87. package/dist/email-builder-core/blocks/helpers/blockStyleHelpers.d.ts +1 -0
  88. package/dist/email-builder-core/renderers/pageScripts.d.ts +8 -0
  89. package/dist/host-stubs/i18n.d.ts +1 -1
  90. package/dist/host-stubs/style/menu.styled.d.ts +7 -1
  91. package/dist/host-stubs/view/shared/modals/PopupConfirm.d.ts +8 -6
  92. package/dist/index.cjs +273 -268
  93. package/dist/index.d.ts +2 -0
  94. package/dist/index.js +33402 -30448
  95. package/dist/renderToStaticHtml.d.ts +107 -0
  96. package/package.json +11 -10
@@ -4,9 +4,13 @@ type EditorBlockProps = {
4
4
  id: string;
5
5
  };
6
6
  /**
7
+ * Loads a single block by id from the editor store and renders it. Subscribes
8
+ * only to that block, so sibling edits don't re-render this subtree — the
9
+ * per-block reference stays stable across setDocument calls that didn't
10
+ * change this block (see _shallowBlockEqual in EditorContext).
7
11
  *
8
- * @param id - Block id
9
- * @returns EditorBlock component that loads data from the EditorDocumentContext
12
+ * Memoized by id React.memo + a stable id prop skips unchanged subtrees
13
+ * entirely during diff.
10
14
  */
11
15
  declare function EditorBlock({ id }: EditorBlockProps): import("react/jsx-runtime").JSX.Element;
12
16
  declare const _default: React.MemoExoticComponent<typeof EditorBlock>;
@@ -7,6 +7,8 @@ type TValue = {
7
7
  selectedSidebarTab: 'block-configuration' | 'styles' | 'behaviour' | 'layout' | 'settings' | 'background' | 'page-pilot-ai' | 'layers' | 'brand' | 'seo' | 'variables' | 'research';
8
8
  selectedMainTab: 'editor' | 'preview' | 'json' | 'html';
9
9
  selectedScreenSize: 'desktop' | 'mobile' | 'tablet';
10
+ zoomLevel: number;
11
+ minimapVisible: boolean;
10
12
  /**
11
13
  * Which device the responsive sidebar tabs are currently authoring
12
14
  * for. Independent of `selectedScreenSize` (the top-toolbar preview
@@ -111,6 +113,17 @@ export declare function useSelectedBlockId(): string;
111
113
  */
112
114
  export declare function useIsBlockSelected(id: string): boolean;
113
115
  export declare function useSelectedScreenSize(): "tablet" | "mobile" | "desktop";
116
+ export declare function useZoomLevel(): number;
117
+ /**
118
+ * View-only state — deliberately does NOT go through pushToUndoStack, so
119
+ * zooming never shows up in Undo/Redo. Clamped to [ZOOM_MIN, ZOOM_MAX].
120
+ */
121
+ export declare function setZoomLevel(zoomLevel: number): void;
122
+ export declare function zoomIn(): void;
123
+ export declare function zoomOut(): void;
124
+ export declare function resetZoom(): void;
125
+ export declare function useMinimapVisible(): boolean;
126
+ export declare function toggleMinimapVisible(): void;
114
127
  /** Which device's properties the sidebar is currently editing (see ResponsiveDeviceTabs). */
115
128
  export declare function useSidebarEditingDevice(): "tablet" | "mobile" | "desktop";
116
129
  export declare function setSidebarEditingDevice(sidebarEditingDevice: TValue['sidebarEditingDevice']): void;
@@ -159,7 +172,7 @@ type SetActiveStepIndexOptions = {
159
172
  };
160
173
  export declare function setActiveStepIndex(activeStepIndex: number, options?: SetActiveStepIndexOptions): void;
161
174
  export declare function setSelectedMainTab(selectedMainTab: TValue['selectedMainTab']): void;
162
- export declare function useSelectedSidebarTab(): "layout" | "behaviour" | "block-configuration" | "styles" | "settings" | "background" | "page-pilot-ai" | "layers" | "brand" | "seo" | "variables" | "research";
175
+ export declare function useSelectedSidebarTab(): "background" | "layout" | "behaviour" | "block-configuration" | "styles" | "settings" | "page-pilot-ai" | "layers" | "brand" | "seo" | "variables" | "research";
163
176
  export declare function useInspectorDrawerOpen(): boolean;
164
177
  export declare function useSamplesDrawerOpen(): boolean;
165
178
  export declare function useInlineEditingEnabled(): boolean;
@@ -175,6 +188,7 @@ export declare function useHoveredBlockId(): string;
175
188
  */
176
189
  export declare function useIsBlockHovered(id: string): boolean;
177
190
  export declare function setHoveredBlockId(hoveredBlockId: string | null): void;
191
+ export declare function getHoveredBlockId(): string | null;
178
192
  export declare function useCopiedBlock(): {
179
193
  rootBlockId: string;
180
194
  blocks: Record<string, any>;