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
@@ -38,22 +38,22 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
38
38
  BEBAS_NEUE: "BEBAS_NEUE";
39
39
  }>>>;
40
40
  fontWeight: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
41
- bold: "bold";
42
- normal: "normal";
43
41
  400: "400";
44
42
  500: "500";
45
43
  600: "600";
46
44
  700: "700";
45
+ normal: "normal";
46
+ bold: "bold";
47
47
  }>>>;
48
48
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
49
- center: "center";
50
- left: "left";
51
49
  right: "right";
50
+ left: "left";
51
+ center: "center";
52
52
  }>>>;
53
53
  buttonTextAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
54
- center: "center";
55
- left: "left";
56
54
  right: "right";
55
+ left: "left";
56
+ center: "center";
57
57
  }>>>;
58
58
  padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
59
59
  top: z.ZodNumber;
@@ -111,20 +111,20 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
111
111
  widthMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
112
112
  size: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
113
113
  small: "small";
114
- large: "large";
115
114
  medium: "medium";
115
+ large: "large";
116
116
  "x-small": "x-small";
117
117
  }>>>;
118
118
  sizeTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
119
119
  small: "small";
120
- large: "large";
121
120
  medium: "medium";
121
+ large: "large";
122
122
  "x-small": "x-small";
123
123
  }>>>;
124
124
  sizeMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
125
125
  small: "small";
126
- large: "large";
127
126
  medium: "medium";
127
+ large: "large";
128
128
  "x-small": "x-small";
129
129
  }>>>;
130
130
  text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -143,8 +143,8 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
143
143
  iconEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
144
144
  iconName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
145
145
  iconAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
146
- left: "left";
147
146
  right: "right";
147
+ left: "left";
148
148
  }>>>;
149
149
  ariaLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
150
150
  goToStep: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -219,24 +219,24 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
219
219
  heightMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
220
220
  overflow: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
221
221
  alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
222
- center: "center";
223
- left: "left";
224
222
  right: "right";
223
+ left: "left";
224
+ center: "center";
225
225
  }>>>;
226
226
  alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
227
- center: "center";
228
- left: "left";
229
227
  right: "right";
228
+ left: "left";
229
+ center: "center";
230
230
  }>>>;
231
231
  alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
232
- center: "center";
233
- left: "left";
234
232
  right: "right";
233
+ left: "left";
234
+ center: "center";
235
235
  }>>>;
236
236
  tag: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
237
+ div: "div";
237
238
  article: "article";
238
239
  aside: "aside";
239
- div: "div";
240
240
  footer: "footer";
241
241
  header: "header";
242
242
  main: "main";
@@ -248,8 +248,8 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
248
248
  showLink: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
249
249
  linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
250
250
  linkTarget: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
251
- _blank: "_blank";
252
251
  _self: "_self";
252
+ _blank: "_blank";
253
253
  }>>>;
254
254
  }, z.core.$strip>>>;
255
255
  }, z.core.$strip>;
@@ -328,9 +328,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
328
328
  cardFontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
329
329
  cardFontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
330
330
  cardTextAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
331
- center: "center";
332
- left: "left";
333
331
  right: "right";
332
+ left: "left";
333
+ center: "center";
334
334
  }>>>;
335
335
  cardHoverBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
336
336
  cardHoverShadow: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -487,9 +487,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
487
487
  fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
488
488
  fontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
489
489
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
490
- center: "center";
491
- left: "left";
492
490
  right: "right";
491
+ left: "left";
492
+ center: "center";
493
493
  }>>>;
494
494
  padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
495
495
  top: z.ZodNumber;
@@ -542,8 +542,8 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
542
542
  }, z.core.$strip>>>;
543
543
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
544
544
  direction: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
545
- left: "left";
546
545
  right: "right";
546
+ left: "left";
547
547
  up: "up";
548
548
  down: "down";
549
549
  }>>>;
@@ -552,8 +552,8 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
552
552
  repeat: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
553
553
  fadeEdges: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
554
554
  verticalAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
555
- bottom: "bottom";
556
555
  top: "top";
556
+ bottom: "bottom";
557
557
  middle: "middle";
558
558
  }>>>;
559
559
  items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -629,9 +629,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
629
629
  rowsGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
630
630
  controlGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
631
631
  controlAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
632
- center: "center";
633
- left: "left";
634
632
  right: "right";
633
+ left: "left";
634
+ center: "center";
635
635
  "space-between": "space-between";
636
636
  }>>>;
637
637
  buttonSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -661,14 +661,14 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
661
661
  rowsCountTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
662
662
  rowsCountMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
663
663
  contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
664
- bottom: "bottom";
665
664
  top: "top";
665
+ bottom: "bottom";
666
666
  middle: "middle";
667
667
  }>>>;
668
668
  horizontalAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
669
- center: "center";
670
- left: "left";
671
669
  right: "right";
670
+ left: "left";
671
+ center: "center";
672
672
  }>>>;
673
673
  cellsPerPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
674
674
  repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -701,9 +701,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
701
701
  left: z.ZodNumber;
702
702
  }, z.core.$strip>>>;
703
703
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
704
- center: "center";
705
- left: "left";
706
704
  right: "right";
705
+ left: "left";
706
+ center: "center";
707
707
  }>>>;
708
708
  fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
709
709
  fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -743,9 +743,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
743
743
  left: z.ZodNumber;
744
744
  }, z.core.$strip>>>;
745
745
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
746
- center: "center";
747
- left: "left";
748
746
  right: "right";
747
+ left: "left";
748
+ center: "center";
749
749
  }>>>;
750
750
  }, z.core.$strip>>>;
751
751
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -763,9 +763,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
763
763
  useCustomMenu: z.ZodDefault<z.ZodBoolean>;
764
764
  stickyNav: z.ZodDefault<z.ZodBoolean>;
765
765
  position: z.ZodDefault<z.ZodEnum<{
766
- center: "center";
767
- left: "left";
768
766
  right: "right";
767
+ left: "left";
768
+ center: "center";
769
769
  }>>;
770
770
  orientation: z.ZodDefault<z.ZodEnum<{
771
771
  horizontal: "horizontal";
@@ -811,9 +811,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
811
811
  heightTablet: z.ZodOptional<z.ZodString>;
812
812
  heightMobile: z.ZodOptional<z.ZodString>;
813
813
  alignment: z.ZodDefault<z.ZodEnum<{
814
- center: "center";
815
- left: "left";
816
814
  right: "right";
815
+ left: "left";
816
+ center: "center";
817
817
  }>>;
818
818
  }, z.core.$strip>>>;
819
819
  }, z.core.$strip>;
@@ -919,18 +919,18 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
919
919
  vertical: "vertical";
920
920
  }>>>;
921
921
  contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
922
- bottom: "bottom";
923
922
  top: "top";
923
+ bottom: "bottom";
924
924
  middle: "middle";
925
925
  }>>>;
926
926
  contentAlignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
927
- bottom: "bottom";
928
927
  top: "top";
928
+ bottom: "bottom";
929
929
  middle: "middle";
930
930
  }>>>;
931
931
  contentAlignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
932
- bottom: "bottom";
933
932
  top: "top";
933
+ bottom: "bottom";
934
934
  middle: "middle";
935
935
  }>>>;
936
936
  }, z.core.$strip>>>;
@@ -989,9 +989,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
989
989
  }, z.core.$strip>>>>;
990
990
  align: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
991
991
  center: "center";
992
- stretch: "stretch";
993
- "flex-end": "flex-end";
994
992
  "flex-start": "flex-start";
993
+ "flex-end": "flex-end";
994
+ stretch: "stretch";
995
995
  }>>>;
996
996
  reverseColumns: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
997
997
  repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -1037,14 +1037,14 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1037
1037
  columnsCountTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1038
1038
  columnsCountMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1039
1039
  contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1040
- bottom: "bottom";
1041
1040
  top: "top";
1041
+ bottom: "bottom";
1042
1042
  middle: "middle";
1043
1043
  }>>>;
1044
1044
  horizontalAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1045
- center: "center";
1046
- left: "left";
1047
1045
  right: "right";
1046
+ left: "left";
1047
+ center: "center";
1048
1048
  }>>>;
1049
1049
  repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1050
1050
  columnsCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -1112,8 +1112,8 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1112
1112
  h6: "h6";
1113
1113
  }>>>;
1114
1114
  linkType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1115
- text: "text";
1116
1115
  link: "link";
1116
+ text: "text";
1117
1117
  }>>>;
1118
1118
  url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1119
1119
  openInNewTab: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -1156,12 +1156,12 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1156
1156
  }>>>;
1157
1157
  fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1158
1158
  fontWeight: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1159
- bold: "bold";
1160
- normal: "normal";
1161
1159
  400: "400";
1162
1160
  500: "500";
1163
1161
  600: "600";
1164
1162
  700: "700";
1163
+ normal: "normal";
1164
+ bold: "bold";
1165
1165
  }>>>;
1166
1166
  fontStyle: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1167
1167
  normal: "normal";
@@ -1169,14 +1169,14 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1169
1169
  }>>>;
1170
1170
  textDecoration: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1171
1171
  none: "none";
1172
- "line-through": "line-through";
1173
1172
  underline: "underline";
1173
+ "line-through": "line-through";
1174
1174
  "underline line-through": "underline line-through";
1175
1175
  }>>>;
1176
1176
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1177
- center: "center";
1178
- left: "left";
1179
1177
  right: "right";
1178
+ left: "left";
1179
+ center: "center";
1180
1180
  }>>>;
1181
1181
  padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1182
1182
  top: z.ZodNumber;
@@ -1229,9 +1229,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1229
1229
  }>>>;
1230
1230
  fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1231
1231
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1232
- center: "center";
1233
- left: "left";
1234
1232
  right: "right";
1233
+ left: "left";
1234
+ center: "center";
1235
1235
  }>>>;
1236
1236
  padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1237
1237
  top: z.ZodNumber;
@@ -1260,9 +1260,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1260
1260
  }, z.core.$strip>>>;
1261
1261
  backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>>;
1262
1262
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1263
- center: "center";
1264
- left: "left";
1265
1263
  right: "right";
1264
+ left: "left";
1265
+ center: "center";
1266
1266
  }>>>;
1267
1267
  }, z.core.$strip>>>;
1268
1268
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1288,8 +1288,8 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1288
1288
  decorative: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1289
1289
  linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1290
1290
  contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1291
- bottom: "bottom";
1292
1291
  top: "top";
1292
+ bottom: "bottom";
1293
1293
  middle: "middle";
1294
1294
  }>>>;
1295
1295
  borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -1322,9 +1322,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1322
1322
  }, z.core.$strip>>>;
1323
1323
  backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>>;
1324
1324
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1325
- center: "center";
1326
- left: "left";
1327
1325
  right: "right";
1326
+ left: "left";
1327
+ center: "center";
1328
1328
  }>>>;
1329
1329
  }, z.core.$strip>>>;
1330
1330
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1371,9 +1371,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1371
1371
  left: z.ZodNumber;
1372
1372
  }, z.core.$strip>>>;
1373
1373
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1374
- center: "center";
1375
- left: "left";
1376
1374
  right: "right";
1375
+ left: "left";
1376
+ center: "center";
1377
1377
  }>>>;
1378
1378
  }, z.core.$strip>>>;
1379
1379
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1403,9 +1403,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1403
1403
  left: z.ZodNumber;
1404
1404
  }, z.core.$strip>>>;
1405
1405
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1406
- center: "center";
1407
- left: "left";
1408
1406
  right: "right";
1407
+ left: "left";
1408
+ center: "center";
1409
1409
  }>>>;
1410
1410
  }, z.core.$strip>>>;
1411
1411
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1454,17 +1454,17 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1454
1454
  BEBAS_NEUE: "BEBAS_NEUE";
1455
1455
  }>>>;
1456
1456
  fontWeight: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1457
- bold: "bold";
1458
- normal: "normal";
1459
1457
  400: "400";
1460
1458
  500: "500";
1461
1459
  600: "600";
1462
1460
  700: "700";
1461
+ normal: "normal";
1462
+ bold: "bold";
1463
1463
  }>>>;
1464
1464
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1465
- center: "center";
1466
- left: "left";
1467
1465
  right: "right";
1466
+ left: "left";
1467
+ center: "center";
1468
1468
  }>>>;
1469
1469
  padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1470
1470
  top: z.ZodNumber;
@@ -1653,11 +1653,11 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1653
1653
  }, z.core.$strip>>>;
1654
1654
  behaviour: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1655
1655
  position: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1656
- center: "center";
1656
+ top: "top";
1657
1657
  bottom: "bottom";
1658
- left: "left";
1659
1658
  right: "right";
1660
- top: "top";
1659
+ left: "left";
1660
+ center: "center";
1661
1661
  "top-left": "top-left";
1662
1662
  "top-right": "top-right";
1663
1663
  "bottom-right": "bottom-right";
@@ -1698,9 +1698,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1698
1698
  left: z.ZodNumber;
1699
1699
  }, z.core.$strip>>>;
1700
1700
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1701
- center: "center";
1702
- left: "left";
1703
1701
  right: "right";
1702
+ left: "left";
1703
+ center: "center";
1704
1704
  }>>>;
1705
1705
  }, z.core.$strip>>>;
1706
1706
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1735,9 +1735,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1735
1735
  left: z.ZodNumber;
1736
1736
  }, z.core.$strip>>>;
1737
1737
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1738
- center: "center";
1739
- left: "left";
1740
1738
  right: "right";
1739
+ left: "left";
1740
+ center: "center";
1741
1741
  }>>>;
1742
1742
  }, z.core.$strip>>>;
1743
1743
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -1771,11 +1771,11 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1771
1771
  left: z.ZodNumber;
1772
1772
  }, z.core.$strip>>>;
1773
1773
  icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1774
- info: "info";
1775
1774
  accessibility: "accessibility";
1776
1775
  "universal-access": "universal-access";
1777
1776
  person: "person";
1778
1777
  eye: "eye";
1778
+ info: "info";
1779
1779
  }>>>;
1780
1780
  features: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1781
1781
  contrast: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -1795,9 +1795,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1795
1795
  style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1796
1796
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
1797
1797
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1798
- center: "center";
1799
- left: "left";
1800
1798
  right: "right";
1799
+ left: "left";
1800
+ center: "center";
1801
1801
  }>>>;
1802
1802
  padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1803
1803
  top: z.ZodNumber;
@@ -1814,9 +1814,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1814
1814
  }, z.core.$strip>>>;
1815
1815
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1816
1816
  stepperType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1817
- both: "both";
1818
- dots: "dots";
1819
1817
  numeric: "numeric";
1818
+ dots: "dots";
1819
+ both: "both";
1820
1820
  }>>>;
1821
1821
  totalDots: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1822
1822
  activeIndex: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -1827,8 +1827,8 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1827
1827
  numericColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
1828
1828
  numericFontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1829
1829
  numericPosition: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1830
- left: "left";
1831
1830
  right: "right";
1831
+ left: "left";
1832
1832
  above: "above";
1833
1833
  below: "below";
1834
1834
  }>>>;
@@ -1839,9 +1839,9 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1839
1839
  color: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
1840
1840
  backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
1841
1841
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1842
- center: "center";
1843
- left: "left";
1844
1842
  right: "right";
1843
+ left: "left";
1844
+ center: "center";
1845
1845
  }>>>;
1846
1846
  fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1847
1847
  fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1862,19 +1862,19 @@ export declare const EditorBlock: ({ type, data }: import('@usewaypoint/document
1862
1862
  }, z.core.$strip>>>;
1863
1863
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1864
1864
  listType: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1865
- ordered: "ordered";
1866
1865
  unordered: "unordered";
1866
+ ordered: "ordered";
1867
1867
  }>>>;
1868
1868
  marker: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
1869
- circle: "circle";
1869
+ check: "check";
1870
1870
  none: "none";
1871
+ circle: "circle";
1871
1872
  square: "square";
1872
- check: "check";
1873
+ decimal: "decimal";
1873
1874
  disc: "disc";
1874
1875
  dash: "dash";
1875
1876
  arrow: "arrow";
1876
1877
  cross: "cross";
1877
- decimal: "decimal";
1878
1878
  "decimal-zero": "decimal-zero";
1879
1879
  "lower-alpha": "lower-alpha";
1880
1880
  "upper-alpha": "upper-alpha";
@@ -1,75 +1,9 @@
1
1
  import { TEditorConfiguration } from './core';
2
- /**
3
- * The kinds of single-value template field. `array` is repeatable and handled
4
- * separately. `text` / `textarea` substitute as plain strings, `number` as a
5
- * numeric string, `image` as an image URL (used in Image/Avatar/Logo blocks).
6
- */
7
- export type TemplateScalarType = 'text' | 'textarea' | 'number' | 'image';
8
- export type TemplateFormType = TemplateScalarType | 'array';
2
+ import { TemplateFormField } from '../../../render-core/templateBaking';
3
+ export { bakeTemplateValues, substituteBlockText, applyVariables, buildRepeatRowIndex, getTemplateForms, getTextFieldsForType, } from '../../../render-core/templateBaking';
4
+ export type { TemplateScalarType, TemplateFormType, TemplateItemFieldDef, TemplateArrayRow, TemplateFormField, } from '../../../render-core/templateBaking';
9
5
  /** All scalar types — used by both top-level fields and array sub-fields. */
10
- export declare const TEMPLATE_SCALAR_TYPES: TemplateScalarType[];
11
- export type TemplateItemFieldDef = {
12
- id: string;
13
- name: string;
14
- /** Sub-field input kind. Defaults to `text` when absent (legacy rows). */
15
- type?: TemplateScalarType;
16
- /** Author-set default value, used to prefill the row when a template is applied. */
17
- defaultValue?: string;
18
- };
19
- export type TemplateArrayRow = Record<string, string>;
20
- export type TemplateFormField = {
21
- id: string;
22
- name: string;
23
- type: TemplateFormType;
24
- value?: string | TemplateArrayRow[];
25
- defaultValue?: string;
26
- itemFields?: TemplateItemFieldDef[];
27
- sourceBlockId?: string;
28
- rowIds?: string[];
29
- /**
30
- * Set on a container-repeat array field driven from the Variables tab's
31
- * "Repeatable container" flow: the id of the Grid/FlexColumns/ColumnsContainer
32
- * whose EMPTY slots get stamped with clones of `sourceBlockId`'s subtree.
33
- * (`sourceBlockId` = the block sitting in the container's first filled slot;
34
- * `rowIds` = the stamped clones' roots, one per filled empty slot.)
35
- */
36
- containerId?: string;
37
- /**
38
- * Author flag set from "Set template details" → Template Fields: marks this
39
- * field's content as intended to be repeated once the template is applied
40
- * (e.g. across grid cells / carousel slides). Pure metadata — carried through
41
- * from the saved template record, doesn't drive any runtime behavior itself.
42
- */
43
- repeatable?: boolean;
44
- /**
45
- * The id of the block template this repeatable field is bound to — captured
46
- * when the field's block is saved via the Variables-panel "Save as New
47
- * Template" shortcut. Gives a reference to WHICH template drives this grid so
48
- * the "Change Template" flow can key-match form fields on replace, and the
49
- * Data Reference tab knows the source template.
50
- */
51
- templateId?: string;
52
- /**
53
- * "Data Reference" binding for a repeatable field: where the repetition data
54
- * comes from. `custom` = the manual rows editor (default). `api`/`menu` pull
55
- * an array of objects whose keys map to this field's sub-field ids; each
56
- * object seeds one repeated copy. `customJson` holds the pasted JSON text for
57
- * the `custom-json` source. Only meaningful when `repeatable` is set.
58
- */
59
- dataSource?: {
60
- /** `api` = fetch an array of objects from a REST endpoint. */
61
- type: 'custom' | 'custom-json' | 'api' | 'menu';
62
- /** Raw JSON text for `custom-json`. */
63
- customJson?: string;
64
- /** Endpoint URL for the `api` source. Persisted in config. */
65
- apiUrl?: string;
66
- /** HTTP method for the `api` source. Only GET works today; POST is planned. */
67
- apiMethod?: 'GET' | 'POST';
68
- /** Selected menu id for `menu`. */
69
- menuId?: string;
70
- };
71
- };
72
- export declare function buildRepeatRowIndex(document: TEditorConfiguration | null | undefined, fields: TemplateFormField[] | null | undefined): Map<string, TemplateArrayRow>;
6
+ export declare const TEMPLATE_SCALAR_TYPES: Array<'text' | 'textarea' | 'number' | 'image'>;
73
7
  /**
74
8
  * Apply `sourceHtml`'s formatting shell to `targetHtml`'s text. If the source
75
9
  * has no formatting, returns the target unchanged (keeps the copy's text as-is).
@@ -115,9 +49,4 @@ export declare function resolveEditableTokenField(rawText: string, blockId: stri
115
49
  * Returns the SAME reference when nothing changed so callers can skip a write.
116
50
  */
117
51
  export declare function pruneOrphanFormFields(document: TEditorConfiguration | null | undefined, fields: TemplateFormField[] | null | undefined): TemplateFormField[];
118
- export declare function getTextFieldsForType(type: string | undefined): string[] | undefined;
119
- export declare function getTemplateForms(document: TEditorConfiguration | null | undefined): TemplateFormField[];
120
- export declare function applyVariables(input: string | null | undefined, fields: TemplateFormField[] | null | undefined, rowContext?: TemplateArrayRow | null): string;
121
- export declare function substituteBlockText(block: any, fields: TemplateFormField[] | null | undefined, rowContext?: TemplateArrayRow | null): any;
122
- export declare function bakeTemplateValues<T extends TEditorConfiguration>(document: T, fields: TemplateFormField[] | null | undefined): T;
123
52
  export declare function withPersistedFormFields<T extends TEditorConfiguration>(document: T, fields: TemplateFormField[] | null | undefined): T;
@@ -14,9 +14,9 @@ export declare const AccessibilityToolsPropsSchema: z.ZodObject<{
14
14
  left: z.ZodNumber;
15
15
  }, z.core.$strip>>>;
16
16
  textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
17
- center: "center";
18
- left: "left";
19
17
  right: "right";
18
+ left: "left";
19
+ center: "center";
20
20
  }>>>;
21
21
  }, z.core.$strip>>>;
22
22
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -50,11 +50,11 @@ export declare const AccessibilityToolsPropsSchema: z.ZodObject<{
50
50
  left: z.ZodNumber;
51
51
  }, z.core.$strip>>>;
52
52
  icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
53
- info: "info";
54
53
  accessibility: "accessibility";
55
54
  "universal-access": "universal-access";
56
55
  person: "person";
57
56
  eye: "eye";
57
+ info: "info";
58
58
  }>>>;
59
59
  features: z.ZodNullable<z.ZodOptional<z.ZodObject<{
60
60
  contrast: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
@@ -18,9 +18,9 @@ export declare const CalendlyPropsSchema: 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<{