pagepilot-visual-editor 1.0.9 → 1.0.11
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 +16 -1
- package/dist/blocks-internal/block-button/src/index.d.ts +44 -10
- package/dist/blocks-internal/block-button-group/src/index.d.ts +6 -6
- package/dist/blocks-internal/block-columns-container/src/index.d.ts +6 -6
- package/dist/blocks-internal/block-container/src/index.d.ts +34 -8
- package/dist/blocks-internal/block-grid/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +8 -7
- 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 +62 -3
- package/dist/blocks-internal/block-list/src/index.d.ts +5 -5
- package/dist/blocks-internal/block-logo/src/index.d.ts +43 -2
- package/dist/blocks-internal/block-stepper/src/index.d.ts +4 -4
- package/dist/blocks-internal/block-text/src/index.d.ts +5 -4
- 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/renderSections.d.ts +2 -68
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +3 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +1 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/AnimationSection.d.ts +18 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BoxShadowControls.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +16 -0
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +2 -39
- package/dist/editor-sample/App/TemplatePanel/minimap/MiniMapFrame.d.ts +4 -2
- package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Avatar/AvatarPropsSchema.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
- package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +6 -6
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +53 -8
- 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/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 +2 -2
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +4 -3
- package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/Timer/variants/DigitalFlipView.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/TStyle.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/helpers/responsiveStyle.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +3 -3
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +3 -3
- package/dist/editor-sample/documents/editor/core.d.ts +266 -94
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +4 -75
- package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
- package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +6 -6
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +53 -8
- 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/EmailLayout/EmailLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +7 -0
- 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 +2 -2
- package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +6 -6
- package/dist/email-builder-core/blocks/MenuPicker/MenuReader.d.ts +7 -1
- 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 +2 -2
- package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +1 -0
- package/dist/email-builder-core/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
- package/dist/email-builder-core/blocks/Timer/variants/DigitalFlipView.d.ts +2 -1
- package/dist/email-builder-core/blocks/animationSchema.d.ts +32 -0
- package/dist/email-builder-core/blocks/boxShadowSchema.d.ts +23 -0
- package/dist/email-builder-core/blocks/hoverEffectSchema.d.ts +20 -0
- package/dist/email-builder-core/helpers/templateVariables.d.ts +2 -14
- package/dist/email-builder-core/renderers/animationCss.d.ts +18 -0
- package/dist/email-builder-core/renderers/pageScripts.d.ts +10 -0
- package/dist/host-stubs/style/menu.styled.d.ts +10 -1
- package/dist/index.cjs +394 -244
- package/dist/index.js +27144 -25729
- package/dist/render-core/collectSubtreeIds.d.ts +1 -0
- package/dist/render-core/combineSections.d.ts +37 -0
- package/dist/render-core/stubs/editorContext.d.ts +10 -0
- package/dist/render-core/stubs/usePreviewScreen.d.ts +7 -0
- package/dist/render-core/templateBaking.d.ts +35 -0
- package/dist/render-core/templateEnvelope.d.ts +11 -0
- package/dist/render.cjs +873 -0
- package/dist/render.d.ts +4 -0
- package/dist/render.js +15409 -0
- package/dist/renderToStaticHtml.d.ts +1 -1
- package/package.json +11 -3
|
@@ -4,13 +4,13 @@ declare const MenuPropsSchema: z.ZodObject<{
|
|
|
4
4
|
useCustomMenu: z.ZodDefault<z.ZodBoolean>;
|
|
5
5
|
stickyNav: z.ZodDefault<z.ZodBoolean>;
|
|
6
6
|
position: z.ZodDefault<z.ZodEnum<{
|
|
7
|
-
center: "center";
|
|
8
|
-
left: "left";
|
|
9
7
|
right: "right";
|
|
8
|
+
left: "left";
|
|
9
|
+
center: "center";
|
|
10
10
|
}>>;
|
|
11
11
|
orientation: z.ZodDefault<z.ZodEnum<{
|
|
12
|
-
horizontal: "horizontal";
|
|
13
12
|
vertical: "vertical";
|
|
13
|
+
horizontal: "horizontal";
|
|
14
14
|
}>>;
|
|
15
15
|
menuItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>>;
|
|
16
16
|
startChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -23,6 +23,7 @@ declare const MenuPropsSchema: z.ZodObject<{
|
|
|
23
23
|
}>>;
|
|
24
24
|
backgroundColor: z.ZodDefault<z.ZodString>;
|
|
25
25
|
textColor: z.ZodDefault<z.ZodString>;
|
|
26
|
+
burgerDropdownBackgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
27
|
fontSize: z.ZodDefault<z.ZodString>;
|
|
27
28
|
fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
29
|
fontWeight: z.ZodDefault<z.ZodString>;
|
package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts
CHANGED
|
@@ -34,9 +34,9 @@ declare const PricingAccordionPropsSchema: z.ZodObject<{
|
|
|
34
34
|
cardFontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
35
|
cardFontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
36
|
cardTextAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
37
|
-
center: "center";
|
|
38
|
-
left: "left";
|
|
39
37
|
right: "right";
|
|
38
|
+
left: "left";
|
|
39
|
+
center: "center";
|
|
40
40
|
}>>>;
|
|
41
41
|
cardHoverBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
42
|
cardHoverShadow: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -10,9 +10,9 @@ declare const RatingPropsSchema: z.ZodObject<{
|
|
|
10
10
|
fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
11
|
fontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
12
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
13
|
-
center: "center";
|
|
14
|
-
left: "left";
|
|
15
13
|
right: "right";
|
|
14
|
+
left: "left";
|
|
15
|
+
center: "center";
|
|
16
16
|
}>>>;
|
|
17
17
|
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
18
18
|
top: z.ZodNumber;
|
|
@@ -43,16 +43,16 @@ declare const TabsBlockPropsSchema: z.ZodObject<{
|
|
|
43
43
|
}, z.core.$strip>>>;
|
|
44
44
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
45
45
|
orientation: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
46
|
-
horizontal: "horizontal";
|
|
47
46
|
vertical: "vertical";
|
|
47
|
+
horizontal: "horizontal";
|
|
48
48
|
}>>>;
|
|
49
49
|
orientationTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
50
|
-
horizontal: "horizontal";
|
|
51
50
|
vertical: "vertical";
|
|
51
|
+
horizontal: "horizontal";
|
|
52
52
|
}>>>;
|
|
53
53
|
orientationMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
54
|
-
horizontal: "horizontal";
|
|
55
54
|
vertical: "vertical";
|
|
55
|
+
horizontal: "horizontal";
|
|
56
56
|
}>>>;
|
|
57
57
|
behavior: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
58
58
|
showSelectedSection: "showSelectedSection";
|
|
@@ -4,6 +4,7 @@ declare const TimerPropsSchema: z.ZodObject<{
|
|
|
4
4
|
backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
5
|
textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
6
|
accentColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
numberColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
8
|
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
9
|
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
9
10
|
topLeft: z.ZodNumber;
|
|
@@ -4,6 +4,7 @@ type Props = {
|
|
|
4
4
|
showLabels: boolean;
|
|
5
5
|
accentColor?: string | null;
|
|
6
6
|
textColor?: string | null;
|
|
7
|
+
numberColor?: string | null;
|
|
7
8
|
};
|
|
8
|
-
export default function CircularProgressView({ parts, showLabels, accentColor, textColor }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default function CircularProgressView({ parts, showLabels, accentColor, textColor, numberColor }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -4,6 +4,7 @@ type Props = {
|
|
|
4
4
|
showLabels: boolean;
|
|
5
5
|
accentColor?: string | null;
|
|
6
6
|
textColor?: string | null;
|
|
7
|
+
numberColor?: string | null;
|
|
7
8
|
};
|
|
8
|
-
export default function DigitalFlipView({ parts, showLabels, accentColor, textColor }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default function DigitalFlipView({ parts, showLabels, accentColor, textColor, numberColor }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -44,7 +44,7 @@ export declare const RESPONSIVE_PROP_KEYS: readonly ["contentAlignment", "horizo
|
|
|
44
44
|
* {@link nativeKeysForBlock} to get the right set for a block type — never test
|
|
45
45
|
* against this flat list directly.
|
|
46
46
|
*/
|
|
47
|
-
export declare const NATIVE_DEVICE_PROP_KEYS: readonly ["columnsCount", "columnsCountTablet", "columnsCountMobile", "rowsCount", "rowsCountTablet", "rowsCountMobile", "columnsGap", "columnsGapTablet", "columnsGapMobile", "rowsGap", "desktopLayout", "tabletLayout", "mobileLayout", "columnShrink", "columnShrinkTablet", "columnShrinkMobile", "columnsDirection", "columnsDirectionTablet", "columnsDirectionMobile", "widthType", "widthTypeTablet", "widthTypeMobile", "size", "sizeTablet", "sizeMobile", "fixedWidths", "fixedWidthsTablet", "fixedWidthsMobile", "contentAlignmentTablet", "contentAlignmentMobile", "slidesPerView", "slidesPerViewTablet", "slidesPerViewMobile", "width", "widthTablet", "widthMobile", "height", "heightTablet", "heightMobile", "url", "urlTablet", "urlMobile", "iconName", "iconNameTablet", "iconNameMobile", "iconFillColor", "iconFillColorTablet", "iconFillColorMobile", "orientation", "orientationTablet", "orientationMobile", "direction", "directionTablet", "directionMobile", "alignmentTablet", "alignmentMobile", "rotation", "rotationTablet", "rotationMobile"];
|
|
47
|
+
export declare const NATIVE_DEVICE_PROP_KEYS: readonly ["columnsCount", "columnsCountTablet", "columnsCountMobile", "rowsCount", "rowsCountTablet", "rowsCountMobile", "columnsGap", "columnsGapTablet", "columnsGapMobile", "rowsGap", "desktopLayout", "tabletLayout", "mobileLayout", "columnShrink", "columnShrinkTablet", "columnShrinkMobile", "columnsDirection", "columnsDirectionTablet", "columnsDirectionMobile", "widthType", "widthTypeTablet", "widthTypeMobile", "size", "sizeTablet", "sizeMobile", "fixedWidths", "fixedWidthsTablet", "fixedWidthsMobile", "contentAlignmentTablet", "contentAlignmentMobile", "slidesPerView", "slidesPerViewTablet", "slidesPerViewMobile", "width", "widthTablet", "widthMobile", "height", "heightTablet", "heightMobile", "url", "urlTablet", "urlMobile", "iconName", "iconNameTablet", "iconNameMobile", "iconFillColor", "iconFillColorTablet", "iconFillColorMobile", "orientation", "orientationTablet", "orientationMobile", "direction", "directionTablet", "directionMobile", "alignmentTablet", "alignmentMobile", "rotation", "rotationTablet", "rotationMobile", "burgerDropdownBackgroundColor"];
|
|
48
48
|
/**
|
|
49
49
|
* The native per-device prop keys that apply to `blockType`. Unambiguous keys
|
|
50
50
|
* are always native; ambiguous ones only for the block types that actually
|
|
@@ -32,13 +32,13 @@ export declare function zFontFamily(): z.ZodEnum<{
|
|
|
32
32
|
BEBAS_NEUE: "BEBAS_NEUE";
|
|
33
33
|
}>;
|
|
34
34
|
export declare function zFontWeight(): z.ZodEnum<{
|
|
35
|
-
bold: "bold";
|
|
36
35
|
normal: "normal";
|
|
36
|
+
bold: "bold";
|
|
37
37
|
}>;
|
|
38
38
|
export declare function zTextAlign(): z.ZodEnum<{
|
|
39
|
-
center: "center";
|
|
40
|
-
left: "left";
|
|
41
39
|
right: "right";
|
|
40
|
+
left: "left";
|
|
41
|
+
center: "center";
|
|
42
42
|
}>;
|
|
43
43
|
export declare function zPadding(): z.ZodObject<{
|
|
44
44
|
top: z.ZodNumber;
|
|
@@ -112,7 +112,7 @@ export declare function useSelectedBlockId(): string;
|
|
|
112
112
|
* re-renders A and B, not every other block on the canvas.
|
|
113
113
|
*/
|
|
114
114
|
export declare function useIsBlockSelected(id: string): boolean;
|
|
115
|
-
export declare function useSelectedScreenSize(): "
|
|
115
|
+
export declare function useSelectedScreenSize(): "mobile" | "tablet" | "desktop";
|
|
116
116
|
export declare function useZoomLevel(): number;
|
|
117
117
|
/**
|
|
118
118
|
* View-only state — deliberately does NOT go through pushToUndoStack, so
|
|
@@ -125,7 +125,7 @@ export declare function resetZoom(): void;
|
|
|
125
125
|
export declare function useMinimapVisible(): boolean;
|
|
126
126
|
export declare function toggleMinimapVisible(): void;
|
|
127
127
|
/** Which device's properties the sidebar is currently editing (see ResponsiveDeviceTabs). */
|
|
128
|
-
export declare function useSidebarEditingDevice(): "
|
|
128
|
+
export declare function useSidebarEditingDevice(): "mobile" | "tablet" | "desktop";
|
|
129
129
|
export declare function setSidebarEditingDevice(sidebarEditingDevice: TValue['sidebarEditingDevice']): void;
|
|
130
130
|
export declare function useSelectedMainTab(): "html" | "editor" | "preview" | "json";
|
|
131
131
|
export declare function useActiveStepIndex(): number;
|
|
@@ -172,7 +172,7 @@ type SetActiveStepIndexOptions = {
|
|
|
172
172
|
};
|
|
173
173
|
export declare function setActiveStepIndex(activeStepIndex: number, options?: SetActiveStepIndexOptions): void;
|
|
174
174
|
export declare function setSelectedMainTab(selectedMainTab: TValue['selectedMainTab']): void;
|
|
175
|
-
export declare function useSelectedSidebarTab(): "
|
|
175
|
+
export declare function useSelectedSidebarTab(): "layout" | "background" | "behaviour" | "block-configuration" | "styles" | "settings" | "page-pilot-ai" | "layers" | "brand" | "seo" | "variables" | "research";
|
|
176
176
|
export declare function useInspectorDrawerOpen(): boolean;
|
|
177
177
|
export declare function useSamplesDrawerOpen(): boolean;
|
|
178
178
|
export declare function useInlineEditingEnabled(): boolean;
|