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.
- package/README.md +304 -17
- package/dist/blocks-internal/block-button/src/index.d.ts +15 -9
- package/dist/blocks-internal/block-button-group/src/index.d.ts +6 -6
- package/dist/blocks-internal/block-columns-container/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-container/src/index.d.ts +11 -11
- package/dist/blocks-internal/block-grid/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +11 -5
- package/dist/blocks-internal/block-html/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-iframe/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-image/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-list/src/index.d.ts +90 -0
- package/dist/blocks-internal/block-logo/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-stepper/src/index.d.ts +10 -4
- package/dist/blocks-internal/block-text/src/index.d.ts +9 -3
- package/dist/blocks-internal/block-video/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-youtube-url/src/index.d.ts +3 -3
- package/dist/editor/Shell.d.ts +1 -1
- package/dist/editor/Topbar.d.ts +5 -1
- package/dist/editor/blockToggles.d.ts +1 -1
- package/dist/editor/publish/PagePublishDialog.d.ts +7 -0
- package/dist/editor/renderSections.d.ts +68 -0
- package/dist/editor/types.d.ts +28 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AppBannerPickerSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FaqPickerSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ListSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/TemplatesList.d.ts +19 -4
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +25 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/UpgradeDialogView.d.ts +1 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +15 -0
- package/dist/editor-sample/App/InspectorDrawer/useLayerNode.d.ts +1 -2
- package/dist/editor-sample/App/TemplatePanel/minimap/MiniMap.d.ts +6 -0
- package/dist/editor-sample/App/TemplatePanel/minimap/MiniMapFrame.d.ts +17 -0
- package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapSync.d.ts +24 -0
- package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapThumbnail.d.ts +8 -0
- package/dist/editor-sample/App/hooks/useAutosave.d.ts +10 -0
- package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Accordion/AccordionPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/AppBannerPicker/AppBannerEditor.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/AppBannerPicker/AppBannerPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
- package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +11 -11
- package/dist/editor-sample/documents/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/FaqPicker/FaqEditor.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/FaqPicker/FaqPickerPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +6 -1
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +8 -2
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/index.d.ts +4 -1
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +3 -2
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/useCanvasDrop.d.ts +14 -8
- package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +2 -2
- package/dist/editor-sample/documents/editor/EditorBlock.d.ts +6 -2
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +15 -1
- package/dist/editor-sample/documents/editor/core.d.ts +246 -85
- package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +21 -3
- package/dist/email-builder-core/blocks/Accordion/AccordionPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/AppBannerPicker/AppBannerPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
- package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +8 -2
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +11 -11
- package/dist/email-builder-core/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/FaqPicker/FaqPickerPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +6 -1
- package/dist/email-builder-core/blocks/Marquee/marqueeMotion.d.ts +3 -1
- package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +4 -4
- package/dist/email-builder-core/blocks/Pagination/PaginationPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Rating/RatingPropsSchema.d.ts +8 -2
- package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +12 -2
- package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +8 -2
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/blocks/helpers/blockStyleHelpers.d.ts +1 -0
- package/dist/email-builder-core/renderers/pageScripts.d.ts +8 -0
- package/dist/host-stubs/i18n.d.ts +1 -1
- package/dist/host-stubs/style/menu.styled.d.ts +7 -1
- package/dist/host-stubs/view/shared/modals/PopupConfirm.d.ts +8 -6
- package/dist/index.cjs +273 -268
- package/dist/index.d.ts +2 -0
- package/dist/index.js +33402 -30448
- package/dist/renderToStaticHtml.d.ts +107 -0
- 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
|
-
*
|
|
9
|
-
*
|
|
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" | "
|
|
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>;
|