pagepilot-visual-editor 1.0.8 → 1.0.10

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 (64) hide show
  1. package/README.md +105 -1
  2. package/dist/blocks-internal/block-button/src/index.d.ts +10 -10
  3. package/dist/blocks-internal/block-columns-container/src/index.d.ts +3 -3
  4. package/dist/blocks-internal/block-container/src/index.d.ts +8 -8
  5. package/dist/blocks-internal/block-grid/src/index.d.ts +1 -1
  6. package/dist/blocks-internal/block-heading/src/index.d.ts +7 -7
  7. package/dist/blocks-internal/block-html/src/index.d.ts +2 -2
  8. package/dist/blocks-internal/block-iframe/src/index.d.ts +2 -2
  9. package/dist/blocks-internal/block-image/src/index.d.ts +3 -3
  10. package/dist/blocks-internal/block-list/src/index.d.ts +6 -6
  11. package/dist/blocks-internal/block-logo/src/index.d.ts +2 -2
  12. package/dist/blocks-internal/block-stepper/src/index.d.ts +5 -5
  13. package/dist/blocks-internal/block-text/src/index.d.ts +4 -4
  14. package/dist/blocks-internal/block-video/src/index.d.ts +3 -3
  15. package/dist/blocks-internal/block-youtube-url/src/index.d.ts +3 -3
  16. package/dist/editor/renderSections.d.ts +2 -0
  17. package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
  18. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +2 -14
  19. package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
  20. package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
  21. package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +8 -8
  22. package/dist/editor-sample/documents/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
  23. package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +3 -3
  24. package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
  25. package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +3 -3
  26. package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +2 -2
  27. package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +2 -2
  28. package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
  29. package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +2 -2
  30. package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +3 -3
  31. package/dist/editor-sample/documents/editor/EditorContext.d.ts +2 -2
  32. package/dist/editor-sample/documents/editor/core.d.ts +85 -85
  33. package/dist/editor-sample/documents/editor/templateVariables.d.ts +4 -75
  34. package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +3 -3
  35. package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +2 -2
  36. package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +3 -3
  37. package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +8 -8
  38. package/dist/email-builder-core/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
  39. package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +5 -5
  40. package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
  41. package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +2 -2
  42. package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
  43. package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +3 -3
  44. package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +2 -2
  45. package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +4 -4
  46. package/dist/email-builder-core/blocks/Pagination/PaginationPropsSchema.d.ts +5 -5
  47. package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
  48. package/dist/email-builder-core/blocks/Rating/RatingPropsSchema.d.ts +2 -2
  49. package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +2 -2
  50. package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +2 -2
  51. package/dist/index.cjs +225 -221
  52. package/dist/index.d.ts +2 -0
  53. package/dist/index.js +15913 -15530
  54. package/dist/render-core/collectSubtreeIds.d.ts +1 -0
  55. package/dist/render-core/combineSections.d.ts +37 -0
  56. package/dist/render-core/stubs/editorContext.d.ts +10 -0
  57. package/dist/render-core/stubs/usePreviewScreen.d.ts +7 -0
  58. package/dist/render-core/templateBaking.d.ts +35 -0
  59. package/dist/render-core/templateEnvelope.d.ts +11 -0
  60. package/dist/render.cjs +726 -0
  61. package/dist/render.d.ts +4 -0
  62. package/dist/render.js +15085 -0
  63. package/dist/renderToStaticHtml.d.ts +107 -0
  64. package/package.json +11 -3
@@ -67,18 +67,18 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
67
67
  vertical: "vertical";
68
68
  }>>>;
69
69
  contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
70
- bottom: "bottom";
71
70
  top: "top";
71
+ bottom: "bottom";
72
72
  middle: "middle";
73
73
  }>>>;
74
74
  contentAlignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
75
- bottom: "bottom";
76
75
  top: "top";
76
+ bottom: "bottom";
77
77
  middle: "middle";
78
78
  }>>>;
79
79
  contentAlignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
80
- bottom: "bottom";
81
80
  top: "top";
81
+ bottom: "bottom";
82
82
  middle: "middle";
83
83
  }>>>;
84
84
  }, z.core.$strip>>>;
@@ -67,24 +67,24 @@ declare const ContainerPropsSchema: z.ZodObject<{
67
67
  heightMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
68
68
  overflow: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
69
69
  alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
70
- center: "center";
71
- left: "left";
72
70
  right: "right";
71
+ left: "left";
72
+ center: "center";
73
73
  }>>>;
74
74
  alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
75
- center: "center";
76
- left: "left";
77
75
  right: "right";
76
+ left: "left";
77
+ center: "center";
78
78
  }>>>;
79
79
  alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
80
- center: "center";
81
- left: "left";
82
80
  right: "right";
81
+ left: "left";
82
+ center: "center";
83
83
  }>>>;
84
84
  tag: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
85
+ div: "div";
85
86
  article: "article";
86
87
  aside: "aside";
87
- div: "div";
88
88
  footer: "footer";
89
89
  header: "header";
90
90
  main: "main";
@@ -96,8 +96,8 @@ declare const ContainerPropsSchema: z.ZodObject<{
96
96
  showLink: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
97
97
  linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
98
98
  linkTarget: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
99
- _blank: "_blank";
100
99
  _self: "_self";
100
+ _blank: "_blank";
101
101
  }>>>;
102
102
  }, z.core.$strip>>>;
103
103
  }, z.core.$strip>;
@@ -18,9 +18,9 @@ declare const DemoPropsSchema: z.ZodObject<{
18
18
  left: z.ZodNumber;
19
19
  }, z.core.$strip>>>;
20
20
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
21
- center: "center";
22
- left: "left";
23
21
  right: "right";
22
+ left: "left";
23
+ center: "center";
24
24
  }>>>;
25
25
  }, z.core.$strip>>>;
26
26
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -165,11 +165,11 @@ declare const EmailLayoutPropsSchema: z.ZodObject<{
165
165
  }, z.core.$strip>>>;
166
166
  behaviour: z.ZodNullable<z.ZodOptional<z.ZodObject<{
167
167
  position: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
168
- center: "center";
168
+ top: "top";
169
169
  bottom: "bottom";
170
- left: "left";
171
170
  right: "right";
172
- top: "top";
171
+ left: "left";
172
+ center: "center";
173
173
  "top-left": "top-left";
174
174
  "top-right": "top-right";
175
175
  "bottom-right": "bottom-right";
@@ -10,9 +10,9 @@ declare const FormsPropsSchema: z.ZodObject<{
10
10
  heightTablet: z.ZodOptional<z.ZodString>;
11
11
  heightMobile: z.ZodOptional<z.ZodString>;
12
12
  alignment: z.ZodDefault<z.ZodEnum<{
13
- center: "center";
14
- left: "left";
15
13
  right: "right";
14
+ left: "left";
15
+ center: "center";
16
16
  }>>;
17
17
  }, z.core.$strip>>>;
18
18
  }, z.core.$strip>;
@@ -39,14 +39,14 @@ declare const GridPropsSchema: z.ZodObject<{
39
39
  columnsCountTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
40
40
  columnsCountMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
41
41
  contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
42
- bottom: "bottom";
43
42
  top: "top";
43
+ bottom: "bottom";
44
44
  middle: "middle";
45
45
  }>>>;
46
46
  horizontalAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
47
- center: "center";
48
- left: "left";
49
47
  right: "right";
48
+ left: "left";
49
+ center: "center";
50
50
  }>>>;
51
51
  repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
52
52
  columnsCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -31,8 +31,8 @@ declare const MarqueePropsSchema: z.ZodObject<{
31
31
  }, z.core.$strip>>>;
32
32
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
33
33
  direction: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
34
- left: "left";
35
34
  right: "right";
35
+ left: "left";
36
36
  up: "up";
37
37
  down: "down";
38
38
  }>>>;
@@ -41,8 +41,8 @@ declare const MarqueePropsSchema: z.ZodObject<{
41
41
  repeat: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
42
42
  fadeEdges: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
43
43
  verticalAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
44
- bottom: "bottom";
45
44
  top: "top";
45
+ bottom: "bottom";
46
46
  middle: "middle";
47
47
  }>>>;
48
48
  items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4,9 +4,9 @@ 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
12
  horizontal: "horizontal";
@@ -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;
@@ -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;