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.
Files changed (92) hide show
  1. package/README.md +16 -1
  2. package/dist/blocks-internal/block-button/src/index.d.ts +44 -10
  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 +6 -6
  5. package/dist/blocks-internal/block-container/src/index.d.ts +34 -8
  6. package/dist/blocks-internal/block-grid/src/index.d.ts +1 -1
  7. package/dist/blocks-internal/block-heading/src/index.d.ts +8 -7
  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 +62 -3
  11. package/dist/blocks-internal/block-list/src/index.d.ts +5 -5
  12. package/dist/blocks-internal/block-logo/src/index.d.ts +43 -2
  13. package/dist/blocks-internal/block-stepper/src/index.d.ts +4 -4
  14. package/dist/blocks-internal/block-text/src/index.d.ts +5 -4
  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/renderSections.d.ts +2 -68
  18. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts +1 -1
  19. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +3 -1
  20. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +1 -0
  21. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/AnimationSection.d.ts +18 -0
  22. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BoxShadowControls.d.ts +19 -0
  23. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +16 -0
  24. package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
  25. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +2 -39
  26. package/dist/editor-sample/App/TemplatePanel/minimap/MiniMapFrame.d.ts +4 -2
  27. package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
  28. package/dist/editor-sample/documents/blocks/Avatar/AvatarPropsSchema.d.ts +3 -0
  29. package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
  30. package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +6 -6
  31. package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +53 -8
  32. package/dist/editor-sample/documents/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
  33. package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +3 -3
  34. package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
  35. package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +3 -3
  36. package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +2 -2
  37. package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +4 -3
  38. package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
  39. package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +2 -2
  40. package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +3 -3
  41. package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +1 -0
  42. package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
  43. package/dist/editor-sample/documents/blocks/Timer/variants/DigitalFlipView.d.ts +2 -1
  44. package/dist/editor-sample/documents/blocks/helpers/TStyle.d.ts +1 -0
  45. package/dist/editor-sample/documents/blocks/helpers/responsiveStyle.d.ts +1 -1
  46. package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +3 -3
  47. package/dist/editor-sample/documents/editor/EditorContext.d.ts +3 -3
  48. package/dist/editor-sample/documents/editor/core.d.ts +266 -94
  49. package/dist/editor-sample/documents/editor/templateVariables.d.ts +4 -75
  50. package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +3 -3
  51. package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
  52. package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +2 -2
  53. package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +6 -6
  54. package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +53 -8
  55. package/dist/email-builder-core/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
  56. package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +5 -5
  57. package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
  58. package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +7 -0
  59. package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
  60. package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +3 -3
  61. package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +2 -2
  62. package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +6 -6
  63. package/dist/email-builder-core/blocks/MenuPicker/MenuReader.d.ts +7 -1
  64. package/dist/email-builder-core/blocks/Pagination/PaginationPropsSchema.d.ts +5 -5
  65. package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
  66. package/dist/email-builder-core/blocks/Rating/RatingPropsSchema.d.ts +2 -2
  67. package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +2 -2
  68. package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +2 -2
  69. package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +3 -3
  70. package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +1 -0
  71. package/dist/email-builder-core/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
  72. package/dist/email-builder-core/blocks/Timer/variants/DigitalFlipView.d.ts +2 -1
  73. package/dist/email-builder-core/blocks/animationSchema.d.ts +32 -0
  74. package/dist/email-builder-core/blocks/boxShadowSchema.d.ts +23 -0
  75. package/dist/email-builder-core/blocks/hoverEffectSchema.d.ts +20 -0
  76. package/dist/email-builder-core/helpers/templateVariables.d.ts +2 -14
  77. package/dist/email-builder-core/renderers/animationCss.d.ts +18 -0
  78. package/dist/email-builder-core/renderers/pageScripts.d.ts +10 -0
  79. package/dist/host-stubs/style/menu.styled.d.ts +10 -1
  80. package/dist/index.cjs +394 -244
  81. package/dist/index.js +27144 -25729
  82. package/dist/render-core/collectSubtreeIds.d.ts +1 -0
  83. package/dist/render-core/combineSections.d.ts +37 -0
  84. package/dist/render-core/stubs/editorContext.d.ts +10 -0
  85. package/dist/render-core/stubs/usePreviewScreen.d.ts +7 -0
  86. package/dist/render-core/templateBaking.d.ts +35 -0
  87. package/dist/render-core/templateEnvelope.d.ts +11 -0
  88. package/dist/render.cjs +873 -0
  89. package/dist/render.d.ts +4 -0
  90. package/dist/render.js +15409 -0
  91. package/dist/renderToStaticHtml.d.ts +1 -1
  92. 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>;
@@ -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 {};
@@ -5,6 +5,7 @@ export type TStyle = {
5
5
  backgroundRepeat?: any;
6
6
  borderColor?: any;
7
7
  borderRadius?: any;
8
+ lineClamp?: any;
8
9
  color?: any;
9
10
  textColor?: any;
10
11
  fontFamily?: any;
@@ -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(): "tablet" | "mobile" | "desktop";
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(): "tablet" | "mobile" | "desktop";
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(): "background" | "layout" | "behaviour" | "block-configuration" | "styles" | "settings" | "page-pilot-ai" | "layers" | "brand" | "seo" | "variables" | "research";
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;