pagepilot-visual-editor 1.0.5 → 1.0.7

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 (205) hide show
  1. package/README.md +276 -30
  2. package/dist/api/ApiClientContext.d.ts +17 -0
  3. package/dist/api/PagepilotApiClient.d.ts +63 -0
  4. package/dist/api/useTenantPlan.d.ts +25 -0
  5. package/dist/blocks-internal/block-button/src/index.d.ts +32 -1
  6. package/dist/blocks-internal/block-button-group/src/index.d.ts +20 -1
  7. package/dist/blocks-internal/block-columns-container/src/index.d.ts +38 -0
  8. package/dist/blocks-internal/block-container/src/index.d.ts +44 -5
  9. package/dist/blocks-internal/block-divider/src/index.d.ts +6 -0
  10. package/dist/blocks-internal/block-grid/src/index.d.ts +6 -0
  11. package/dist/blocks-internal/block-heading/src/index.d.ts +3 -2
  12. package/dist/blocks-internal/block-html/src/index.d.ts +6 -0
  13. package/dist/blocks-internal/block-iframe/src/index.d.ts +4 -0
  14. package/dist/blocks-internal/block-image/src/index.d.ts +19 -0
  15. package/dist/blocks-internal/block-logo/src/index.d.ts +20 -7
  16. package/dist/blocks-internal/block-stepper/src/index.d.ts +2 -2
  17. package/dist/blocks-internal/block-text/src/index.d.ts +1 -1
  18. package/dist/blocks-internal/block-video/src/index.d.ts +4 -0
  19. package/dist/blocks-internal/block-youtube-url/src/index.d.ts +4 -0
  20. package/dist/editor/Shell.d.ts +1 -1
  21. package/dist/editor/blockToggles.d.ts +1 -1
  22. package/dist/editor/publish/PagePublishDialog.d.ts +21 -0
  23. package/dist/editor/types.d.ts +70 -0
  24. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveDeviceTabs.d.ts +8 -0
  25. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveEditingBanner.d.ts +13 -0
  26. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveModeContext.d.ts +12 -0
  27. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/blockStyleClipboard.d.ts +4 -4
  28. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AppBannerPickerSidebarPanel.d.ts +19 -0
  29. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/DemoPickerSidebarPanel.d.ts +31 -0
  30. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +26 -0
  31. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FaqPickerSidebarPanel.d.ts +18 -0
  32. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FormsPickerSidebarPanel.d.ts +18 -0
  33. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +34 -0
  34. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PaginationSidebarPanel.d.ts +7 -0
  35. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TableSidebarPanel.d.ts +9 -0
  36. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TimerSidebarPanel.d.ts +7 -0
  37. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/CollapsibleSection.d.ts +8 -2
  38. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/MediaLibraryButton.d.ts +1 -1
  39. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/SectionWrapper.d.ts +2 -1
  40. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/deviceProp.d.ts +14 -0
  41. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts +4 -2
  42. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +7 -1
  43. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts +3 -0
  44. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts +4 -1
  45. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadiusInput.d.ts +13 -11
  46. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SelectInput.d.ts +15 -0
  47. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/StepperInput.d.ts +19 -0
  48. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WidthInputWithSelect.d.ts +4 -1
  49. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/sanitizeAgainstSchema.d.ts +11 -0
  50. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts +2 -1
  51. package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +16 -0
  52. package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
  53. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/SectionsModal.d.ts +15 -0
  54. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/TemplatePreviewDialog.d.ts +14 -0
  55. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/TemplatesList.d.ts +45 -0
  56. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +37 -1
  57. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +101 -0
  58. package/dist/editor-sample/App/InspectorDrawer/PagePilotAiPanel.d.ts +1 -0
  59. package/dist/editor-sample/App/InspectorDrawer/SeoPanel/SeoFieldLabel.d.ts +7 -0
  60. package/dist/editor-sample/App/InspectorDrawer/SeoPanel/SeoPanel.styled.d.ts +12 -0
  61. package/dist/editor-sample/App/InspectorDrawer/SeoPanel/index.d.ts +6 -0
  62. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ApiResponseDialog.d.ts +10 -0
  63. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ArrayFieldEditor.d.ts +14 -0
  64. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ContainerRepeatSection.d.ts +9 -0
  65. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/DataReferenceDialog.d.ts +15 -0
  66. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/DataReferencePanel.d.ts +20 -0
  67. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/GrowDirectionDialog.d.ts +13 -0
  68. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/RowCard.d.ts +23 -0
  69. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/SectionHeader.d.ts +13 -0
  70. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariablesPaywall.d.ts +1 -0
  71. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/constants.d.ts +2 -0
  72. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/dataReferenceUtils.d.ts +34 -0
  73. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/index.d.ts +1 -0
  74. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/repeatRowActions.d.ts +31 -0
  75. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/styles.d.ts +53 -0
  76. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +4 -0
  77. package/dist/editor-sample/App/InspectorDrawer/components/MiniRichTextInput.d.ts +7 -0
  78. package/dist/editor-sample/App/InspectorDrawer/components/ScalarFieldInput.d.ts +10 -0
  79. package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
  80. package/dist/editor-sample/documents/blocks/Accordion/AccordionPropsSchema.d.ts +6 -0
  81. package/dist/editor-sample/documents/blocks/AppBannerPicker/AppBannerEditor.d.ts +18 -0
  82. package/dist/editor-sample/documents/blocks/AppBannerPicker/AppBannerPropsSchema.d.ts +14 -0
  83. package/dist/editor-sample/documents/blocks/AppBannerPicker/appBanner.styled.d.ts +2 -0
  84. package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +20 -1
  85. package/dist/editor-sample/documents/blocks/Carousel/CarouselPropsSchema.d.ts +7 -0
  86. package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +38 -0
  87. package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +56 -3
  88. package/dist/editor-sample/documents/blocks/DemoPicker/DemoEditor.d.ts +3 -0
  89. package/dist/editor-sample/documents/blocks/DemoPicker/DemoPropsSchema.d.ts +37 -0
  90. package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutEditor.d.ts +2 -0
  91. package/dist/editor-sample/documents/blocks/{PagePilotLayout/PagePilotLayoutPropsSchema.d.ts → EmailLayout/EmailLayoutPropsSchema.d.ts} +51 -4
  92. package/dist/editor-sample/documents/blocks/FaqPicker/FaqEditor.d.ts +18 -0
  93. package/dist/editor-sample/documents/blocks/FaqPicker/FaqPickerPropsSchema.d.ts +14 -0
  94. package/dist/editor-sample/documents/blocks/FaqPicker/faqPicker.styled.d.ts +3 -0
  95. package/dist/editor-sample/documents/blocks/FlexColumns/FlexColumnsEditor.d.ts +6 -0
  96. package/dist/editor-sample/documents/blocks/FormsPicker/FormsEditor.d.ts +3 -0
  97. package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +33 -0
  98. package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +13 -2
  99. package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +12 -0
  100. package/dist/editor-sample/documents/blocks/MenuPicker/MenuEditor.d.ts +7 -0
  101. package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +45 -0
  102. package/dist/editor-sample/documents/blocks/MenuPicker/mergeMenuItems.d.ts +13 -0
  103. package/dist/editor-sample/documents/blocks/Pagination/PaginationEditor.d.ts +2 -0
  104. package/dist/editor-sample/documents/blocks/Pagination/PaginationPropsSchema.d.ts +4 -0
  105. package/dist/editor-sample/documents/blocks/Table/TableCellEditor.d.ts +11 -0
  106. package/dist/editor-sample/documents/blocks/Table/TableEditor.d.ts +2 -0
  107. package/dist/editor-sample/documents/blocks/Table/TablePropsSchema.d.ts +1 -0
  108. package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +12 -0
  109. package/dist/editor-sample/documents/blocks/Timer/TimerEditor.d.ts +2 -0
  110. package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +38 -0
  111. package/dist/editor-sample/documents/blocks/Timer/timerMath.d.ts +9 -0
  112. package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +9 -0
  113. package/dist/editor-sample/documents/blocks/Timer/variants/DigitalFlipView.d.ts +9 -0
  114. package/dist/editor-sample/documents/blocks/Timer/variants/TextInlineView.d.ts +9 -0
  115. package/dist/editor-sample/documents/blocks/helpers/BlockCategories.d.ts +1 -0
  116. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts +1 -1
  117. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts +1 -1
  118. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts +2 -1
  119. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts +2 -1
  120. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/blockMenuStyles.d.ts +11 -0
  121. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/brandButtonDefaults.d.ts +4 -2
  122. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +8 -0
  123. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/gridPresets.d.ts +17 -0
  124. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts +3 -2
  125. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/index.d.ts +2 -1
  126. package/dist/editor-sample/documents/blocks/helpers/TStyle.d.ts +2 -0
  127. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/saveAsTemplateUtils.d.ts +97 -0
  128. package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +96 -17
  129. package/dist/editor-sample/documents/blocks/helpers/responsiveInstanceCss.d.ts +6 -0
  130. package/dist/editor-sample/documents/blocks/helpers/responsiveStyle.d.ts +106 -0
  131. package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +1 -1
  132. package/dist/editor-sample/documents/editor/EditorContext.d.ts +11 -2
  133. package/dist/editor-sample/documents/editor/core.d.ts +577 -16
  134. package/dist/editor-sample/documents/editor/templateVariables.d.ts +73 -0
  135. package/dist/email-builder-core/blocks/Accordion/AccordionPropsSchema.d.ts +6 -0
  136. package/dist/email-builder-core/blocks/AppBannerPicker/AppBannerPropsSchema.d.ts +16 -0
  137. package/dist/email-builder-core/blocks/AppBannerPicker/AppBannerReader.d.ts +3 -0
  138. package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +20 -1
  139. package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +4 -0
  140. package/dist/email-builder-core/blocks/Carousel/CarouselPropsSchema.d.ts +6 -0
  141. package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +38 -0
  142. package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +56 -3
  143. package/dist/email-builder-core/blocks/DemoPicker/DemoPropsSchema.d.ts +36 -0
  144. package/dist/email-builder-core/blocks/DemoPicker/DemoReader.d.ts +3 -0
  145. package/dist/email-builder-core/blocks/{PagePilotLayout/PagePilotLayoutPropsSchema.d.ts → EmailLayout/EmailLayoutPropsSchema.d.ts} +41 -2
  146. package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +3 -0
  147. package/dist/email-builder-core/blocks/EmailLayout/emailLayoutResponsive.d.ts +46 -0
  148. package/dist/email-builder-core/blocks/FaqPicker/FaqPickerPropsSchema.d.ts +16 -0
  149. package/dist/email-builder-core/blocks/FaqPicker/FaqReader.d.ts +3 -0
  150. package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +23 -2
  151. package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsReader.d.ts +6 -0
  152. package/dist/email-builder-core/blocks/FlexColumns/flexColumnsHelpers.d.ts +71 -1
  153. package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +19 -0
  154. package/dist/email-builder-core/blocks/FormsPicker/FormsReader.d.ts +3 -0
  155. package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +12 -2
  156. package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +16 -0
  157. package/dist/email-builder-core/blocks/Marquee/MarqueeReader.d.ts +1 -1
  158. package/dist/email-builder-core/blocks/Marquee/marqueeMotion.d.ts +40 -0
  159. package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +87 -0
  160. package/dist/email-builder-core/blocks/MenuPicker/MenuReader.d.ts +3 -0
  161. package/dist/email-builder-core/blocks/MenuPicker/menuResponsiveCss.d.ts +27 -0
  162. package/dist/email-builder-core/blocks/Pagination/PaginationPropsSchema.d.ts +119 -0
  163. package/dist/email-builder-core/blocks/Pagination/PaginationReader.d.ts +2 -0
  164. package/dist/email-builder-core/blocks/Pagination/paginationShared.d.ts +74 -0
  165. package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +48 -0
  166. package/dist/email-builder-core/blocks/Table/TableReader.d.ts +13 -0
  167. package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +12 -0
  168. package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +38 -0
  169. package/dist/email-builder-core/blocks/Timer/TimerReader.d.ts +2 -0
  170. package/dist/email-builder-core/blocks/Timer/variants/CircularProgressView.d.ts +11 -0
  171. package/dist/email-builder-core/blocks/Timer/variants/DigitalFlipView.d.ts +11 -0
  172. package/dist/email-builder-core/blocks/Timer/variants/TextInlineView.d.ts +11 -0
  173. package/dist/email-builder-core/blocks/responsiveBreakpoints.d.ts +32 -0
  174. package/dist/host-stubs/modules/_hostListShim.d.ts +18 -0
  175. package/dist/host-stubs/modules/appBannerV2/list/appBannerListActions.d.ts +1 -0
  176. package/dist/host-stubs/modules/appBannerV2/list/appBannerListSelectors.d.ts +1 -0
  177. package/dist/host-stubs/modules/demo/list/demoListActions.d.ts +1 -0
  178. package/dist/host-stubs/modules/demo/list/demoListSelectors.d.ts +1 -0
  179. package/dist/host-stubs/modules/faqGroup/list/faqGroupListActions.d.ts +1 -0
  180. package/dist/host-stubs/modules/faqGroup/list/faqGroupListSelectors.d.ts +1 -0
  181. package/dist/host-stubs/modules/forms/formsService.d.ts +9 -0
  182. package/dist/host-stubs/modules/menu/list/menuListActions.d.ts +1 -0
  183. package/dist/host-stubs/modules/menu/list/menuListSelectors.d.ts +1 -0
  184. package/dist/host-stubs/modules/store.d.ts +3 -0
  185. package/dist/host-stubs/react-redux.d.ts +3 -0
  186. package/dist/host-stubs/style/menu.styled.d.ts +73 -15
  187. package/dist/host-stubs/tanstack-react-query.d.ts +9 -0
  188. package/dist/host-stubs/view/media/IconLibrary/ChooseImageDialog.d.ts +10 -0
  189. package/dist/host-stubs/view/media/IconLibrary/IconGrid.d.ts +8 -0
  190. package/dist/host-stubs/view/media/IconLibrary/IconGridCell.d.ts +8 -0
  191. package/dist/host-stubs/view/media/IconLibrary/IconLibraryModal.d.ts +6 -0
  192. package/dist/host-stubs/view/media/IconLibrary/IconProvider.d.ts +4 -0
  193. package/dist/host-stubs/view/media/IconLibrary/IconSearch.d.ts +6 -0
  194. package/dist/host-stubs/view/media/IconLibrary/iconLoaders.d.ts +6 -0
  195. package/dist/host-stubs/view/media/IconLibrary/iconNames.d.ts +1 -0
  196. package/dist/host-stubs/view/media/IconLibrary/index.d.ts +6 -0
  197. package/dist/host-stubs/view/shared/htmlSanitize.d.ts +15 -0
  198. package/dist/index.cjs +375 -346
  199. package/dist/index.d.ts +2 -0
  200. package/dist/index.js +56722 -40238
  201. package/dist/style.css +1 -1
  202. package/package.json +1 -1
  203. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PagePilotLayoutSidebarPanel.d.ts +0 -24
  204. package/dist/editor-sample/documents/blocks/PagePilotLayout/PagePilotLayoutEditor.d.ts +0 -2
  205. package/dist/email-builder-core/blocks/PagePilotLayout/PagePilotLayoutReader.d.ts +0 -3
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Locate the `formFields[]` array on an incoming template record no matter
3
+ * where it's stored. Templates can put fields at four different spots:
4
+ *
5
+ * - `configuration.root.data.formFields` — page/document template.
6
+ * - `configuration.formFields` when `configuration.isIndividualBlock` —
7
+ * block template.
8
+ * - `configuration.steps[i].contentMetadata.document.root.data.formFields`
9
+ * / `configuration.slides[i].…` — multi-slot (tour/demo/carousel).
10
+ * - `configuration.step.contentMetadata.document.root.data.formFields` —
11
+ * single-step tooltip.
12
+ * - Legacy `templateRecord.formFields` mirror at the record root.
13
+ */
14
+ export declare function resolveTemplateFormFields(templateRecord: any): any[];
15
+ /**
16
+ * Rewrite container-repeat fields' `sourceBlockId` / `rowIds` through an id
17
+ * remap. Used by individual-block apply: block ids are regenerated so the
18
+ * inserted section can't collide with existing content, and the field's
19
+ * source pointer has to follow.
20
+ */
21
+ export declare function remapTemplateFormFields(formFields: any, idMapping: {
22
+ [oldId: string]: string;
23
+ }): any[];
24
+ /**
25
+ * Replace the current session's formFields with the incoming template's
26
+ * fields, then jump to the Variables tab. Called by full-doc / individual-
27
+ * block apply — the Variables panel only renders what's in editor state
28
+ * (`useTemplateForms`), not what's on the template record, so applying
29
+ * without this call would hide the tab even when the template declared
30
+ * variables.
31
+ */
32
+ export declare function mergeTemplateFormFields(templateRecord: any, idMapping?: {
33
+ [oldId: string]: string;
34
+ }): void;
35
+ /**
36
+ * Merge incoming formFields into the existing set — used by
37
+ * "Add this section" so a shared `{{name}}` token keeps its value across
38
+ * templates. Container-repeat fields are keyed by `sourceBlockId` so two
39
+ * grids don't collide.
40
+ */
41
+ export declare function appendTemplateFormFields(templateRecord: any, idMapping?: {
42
+ [oldId: string]: string;
43
+ }): void;
44
+ /**
45
+ * Rewrite an incoming template `configuration` (full-document shape) so it's
46
+ * safe to hand to `resetDocument` inside this build.
47
+ *
48
+ * Two problems this fixes:
49
+ * - Templates may reference host-only picker blocks (`MenuPicker`,
50
+ * `FaqPicker`, `DemoPicker`, …) that the standalone build strips out.
51
+ * Rendering an unregistered block explodes with
52
+ * "Cannot read properties of undefined (reading 'Component')".
53
+ * - Templates saved from the visual editor bake in the last canvas
54
+ * position (`position: 'absolute'`, `top: '243px'`, `left: '538px'`)
55
+ * which pushes the whole document off-screen and looks like a blank
56
+ * canvas.
57
+ *
58
+ * The normalizer drops every block whose `type` isn't registered locally
59
+ * (see `KNOWN_BLOCK_TYPES`) and clears absolute positioning from the root.
60
+ */
61
+ export declare function normalizeTemplateForLocalEditor(configuration: any): any;
62
+ /**
63
+ * Replace the current document with the template's document, keeping the
64
+ * host's canvas metadata (dimensions, background positioning, behaviour) on
65
+ * the root so applying a template doesn't reset viewport / layout config.
66
+ */
67
+ export declare function applyFullDocumentTemplate(configuration: any, document: any, resetDocument: (doc: any) => void): void;
68
+ /**
69
+ * Append an individual-block template to the current page. The template
70
+ * carries a `blocks` map keyed by the template's original ids; we generate
71
+ * fresh ids for every block (so nothing collides with existing content),
72
+ * remap all internal references, then attach the mapped root block id as a
73
+ * new child of the current page's root.
74
+ *
75
+ * Full-doc apply replaces the canvas; this one keeps everything and just
76
+ * appends a section. Matches ahd-fe's applyIndividualBlockTemplate with
77
+ * `replace = false`, minus the formFields plumbing (this build has no
78
+ * template variables UI).
79
+ */
80
+ export declare function applyIndividualBlockTemplate(configuration: any, document: any, resetDocument: (doc: any) => void): {
81
+ idMapping: Record<string, string>;
82
+ } | null;
83
+ export declare function applyTemplateStylesOnly(configuration: any, document: any, resetDocument: (doc: any) => void): void;
84
+ /**
85
+ * "Add this section" for full-document templates — append every block from
86
+ * the template to the current document with all block ids regenerated (so
87
+ * a second apply doesn't collide with the first). Root children get the
88
+ * template's root children appended.
89
+ *
90
+ * Returns the id mapping so callers can remap container-repeat form fields
91
+ * via `appendTemplateFormFields`.
92
+ */
93
+ export declare function appendFullDocumentTemplate(configuration: any, document: any, resetDocument: (doc: any) => void): {
94
+ idMapping: Record<string, string>;
95
+ };
96
+ /**
97
+ * Parse a template's `configuration` field. The backend sometimes returns it
98
+ * as a raw JSON string (when persisted from other tools) and sometimes as an
99
+ * already-inflated object — normalize both shapes.
100
+ */
101
+ export declare function parseTemplateConfiguration(configuration: unknown): any;
@@ -0,0 +1 @@
1
+ export default function PagePilotAiPanel(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ label: string;
3
+ hint?: string;
4
+ hintIcon?: 'info' | 'help';
5
+ };
6
+ declare const SeoFieldLabel: React.FC<Props>;
7
+ export default SeoFieldLabel;
@@ -0,0 +1,12 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ export declare const seoPanelRootSx: SxProps<Theme>;
3
+ export declare const seoPanelHeaderSx: SxProps<Theme>;
4
+ export declare const seoPanelTitleSx: SxProps<Theme>;
5
+ export declare const seoFieldStackSx: SxProps<Theme>;
6
+ export declare const seoFieldLabelRowSx: SxProps<Theme>;
7
+ export declare const seoFieldLabelSx: SxProps<Theme>;
8
+ export declare const seoFieldHintIconSx: SxProps<Theme>;
9
+ export declare const seoFieldHelperSx: SxProps<Theme>;
10
+ export declare const socialPreviewHelperSx: SxProps<Theme>;
11
+ export declare const socialPreviewUploadButtonSx: SxProps<Theme>;
12
+ export declare const seoScriptTextAreaSx: SxProps<Theme>;
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ record: any;
3
+ onUpdateRecord?: (record: any) => void;
4
+ };
5
+ declare const SeoPanel: React.FC<Props>;
6
+ export default SeoPanel;
@@ -0,0 +1,10 @@
1
+ type ApiResponseDialogProps = {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ url: string;
5
+ loading: boolean;
6
+ response: string | null;
7
+ error: string | null;
8
+ };
9
+ export default function ApiResponseDialog({ open, onClose, url, loading, response, error, }: ApiResponseDialogProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,14 @@
1
+ import { TemplateArrayRow, TemplateFormField } from '../../../documents/editor/templateVariables';
2
+ type ArrayFieldEditorProps = {
3
+ field: TemplateFormField;
4
+ onChange: (rows: TemplateArrayRow[]) => void;
5
+ onPatch?: (patch: Partial<TemplateFormField>) => void;
6
+ };
7
+ /**
8
+ * Editor for an `array` template field. For a plain array it's a simple list of
9
+ * editable rows. For a REPEATABLE container field it splits into two collapsible
10
+ * sections: the Template Modifier (edit the single source template) and the
11
+ * Data Reference panel (drive the repeated copies from Custom / JSON / API).
12
+ */
13
+ export default function ArrayFieldEditor({ field, onChange, onPatch }: ArrayFieldEditorProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The top-of-panel controls for a selected Grid / FlexColumns / Carousel block:
3
+ * a "Repeatable" toggle that reveals Choose/Change Template (picks a section
4
+ * template into the first slot) and Sync Styles to Copies. Repetition itself is
5
+ * driven from the field's Data Reference section (see ArrayFieldEditor).
6
+ */
7
+ export default function ContainerRepeatSection({ containerId }: {
8
+ containerId: string;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ type DataReferenceDialogProps = {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ /** Comma-joined sub-field ids, shown in the description. */
5
+ subIdHint: string;
6
+ /** Pretty-printed example JSON array for this field. */
7
+ referenceJson: string;
8
+ };
9
+ /**
10
+ * Shows an example data shape (an array of objects keyed by the field's
11
+ * sub-fields) so authors know exactly which keys any data source must provide,
12
+ * with a Copy button.
13
+ */
14
+ export default function DataReferenceDialog({ open, onClose, subIdHint, referenceJson }: DataReferenceDialogProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,20 @@
1
+ import { TemplateArrayRow, TemplateFormField } from '../../../documents/editor/templateVariables';
2
+ type DataReferencePanelProps = {
3
+ field: TemplateFormField;
4
+ rows: TemplateArrayRow[];
5
+ itemFields: TemplateFormField['itemFields'];
6
+ expandedRow: number;
7
+ toggleRow: (rowIndex: number) => void;
8
+ addRow: () => void;
9
+ removeRow: (rowIndex: number) => void;
10
+ updateCell: (rowIndex: number, key: string, value: string) => void;
11
+ onPatch?: (patch: Partial<TemplateFormField>) => void;
12
+ };
13
+ /**
14
+ * "Data Reference" section for a repeatable container field: choose where the
15
+ * repeated copies get their data — Custom (manual per-copy rows), Custom JSON,
16
+ * an API endpoint, or a Menu. JSON/API/Menu seed one copy per object, mapping
17
+ * object keys → sub-field ids.
18
+ */
19
+ export default function DataReferencePanel({ field, rows, itemFields, expandedRow, toggleRow, addRow, removeRow, updateCell, onPatch, }: DataReferencePanelProps): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,13 @@
1
+ type GrowDirectionDialogProps = {
2
+ /** Number of data items that need to fit (0 → dialog closed). */
3
+ itemCount: number;
4
+ open: boolean;
5
+ onCancel: () => void;
6
+ onConfirm: (direction: 'rows' | 'columns') => void;
7
+ };
8
+ /**
9
+ * Prompt shown when a Grid can't fit every incoming data item — the author
10
+ * chooses whether the grid grows by rows or columns before seeding.
11
+ */
12
+ export default function GrowDirectionDialog({ itemCount, open, onCancel, onConfirm }: GrowDirectionDialogProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,23 @@
1
+ import { TemplateArrayRow, TemplateItemFieldDef } from '../../../documents/editor/templateVariables';
2
+ type RowCardProps = {
3
+ rowIndex: number;
4
+ row: TemplateArrayRow;
5
+ itemFields: TemplateItemFieldDef[];
6
+ isExpanded: boolean;
7
+ onToggle: () => void;
8
+ /** null → no remove button (e.g. the source template row). */
9
+ onRemove: null | (() => void);
10
+ updateCell: (rowIndex: number, key: string, value: string) => void;
11
+ headerLabel: string;
12
+ };
13
+ /**
14
+ * The bare list of sub-field inputs for one row — no card chrome. Used inside
15
+ * RowCard (behind its collapse) and directly by the Template Modifier, which
16
+ * doesn't need a second collapsible layer around its single template row.
17
+ */
18
+ export declare function RowFields({ rowIndex, row, itemFields, updateCell, sx, }: Pick<RowCardProps, 'rowIndex' | 'row' | 'itemFields' | 'updateCell'> & {
19
+ sx?: object;
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ /** One collapsible copy/template card in the Variables array editor. */
22
+ export default function RowCard({ rowIndex, row, itemFields, isExpanded, onToggle, onRemove, updateCell, headerLabel, }: RowCardProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,13 @@
1
+ type SectionHeaderProps = {
2
+ title: string;
3
+ subtitle?: string;
4
+ open: boolean;
5
+ onToggle: () => void;
6
+ subtitleAsHint?: boolean;
7
+ };
8
+ /**
9
+ * Collapsible section header (chevron + title + subtitle) used for the
10
+ * Template Modifier and Data Reference sections.
11
+ */
12
+ export default function SectionHeader({ title, subtitle, open, onToggle, subtitleAsHint, }: SectionHeaderProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1 @@
1
+ export default function VariablesPaywall(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ /** Human-readable labels for the repeatable container block types. */
2
+ export declare const REPEATABLE_LABEL: Record<string, string>;
@@ -0,0 +1,34 @@
1
+ import { TemplateFormField } from '../../../documents/editor/templateVariables';
2
+ /** Report a seed/repeat result as a toast (shared by JSON / API / Menu sources). */
3
+ export declare function reportSeedResult(count: number, total: number): void;
4
+ /** Resolve a dot-path (e.g. "data.items") into a nested value. */
5
+ export declare function resolvePath(obj: any, path: string): any;
6
+ /**
7
+ * Build a two-row example JSON array keyed by a field's sub-field ids — the
8
+ * shape any data source (JSON / API / Menu) must provide to map correctly.
9
+ */
10
+ export declare function buildReferenceJson(itemFields: TemplateFormField['itemFields']): string;
11
+ /**
12
+ * Pull the array of objects out of an arbitrary API response. Accepts either a
13
+ * top-level array, or an object wrapping the array under a common key
14
+ * (data / rows / results / items / records). Returns null when no array is
15
+ * found so the caller can surface a clear error.
16
+ */
17
+ export declare function extractArrayFromResponse(body: any): Record<string, any>[] | null;
18
+ /**
19
+ * GET a URL and return the array of objects from its JSON response. Throws with
20
+ * a user-facing message on a bad URL, network error, non-OK status, non-JSON
21
+ * body, or a response that carries no array. Only GET is supported today
22
+ * (POST is planned — the panel disables it).
23
+ */
24
+ export declare function fetchApiRows(url: string): Promise<Record<string, any>[]>;
25
+ /**
26
+ * GET a URL and return its raw response as pretty-printed text, for the
27
+ * "Preview response" dialog. Unlike fetchApiRows this does NOT require an array
28
+ * — it shows whatever the endpoint returns (JSON pretty-printed, or plain text
29
+ * for a non-JSON body) so the author can see the real shape and fix their URL
30
+ * or mapping. Still throws on a bad URL / network error / non-OK status.
31
+ */
32
+ export declare function fetchApiRaw(url: string): Promise<string>;
33
+ /** Copy `text` to the clipboard, toasting success/failure. */
34
+ export declare function copyToClipboard(text: string): Promise<void>;
@@ -0,0 +1 @@
1
+ export default function VariablesPanel(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,31 @@
1
+ /** Append one repeat row: clone the source subtree into the next empty slot. */
2
+ export declare function addContainerRepeatRow(fieldId: string): void;
3
+ /**
4
+ * How many total slots the field's container has vs. how many rows the data
5
+ * needs — used to decide whether the grid must grow before seeding.
6
+ * Returns null when the field/container can't be resolved.
7
+ */
8
+ export declare function getContainerCapacity(fieldId: string): {
9
+ containerId: string;
10
+ type: string;
11
+ slotCount: number;
12
+ } | null;
13
+ /**
14
+ * Grow the field's container so it can hold `neededSlots` cells, expanding
15
+ * either row-wise or column-wise (Grid) — FlexColumns/Columns ignore direction
16
+ * and grow their single axis. Commits the resized container to the document.
17
+ */
18
+ export declare function growFieldContainer(fieldId: string, neededSlots: number, direction: 'rows' | 'columns'): void;
19
+ /**
20
+ * Seed a container-repeat field from an array of data objects (the Data
21
+ * Reference flow). One object → one repeated copy: rows are grown by stamping
22
+ * clones (up to available container slots) until there's a row per object, then
23
+ * each object's values are written into its row by MATCHING keys to sub-field
24
+ * ids. Non-matching keys are ignored; unmatched sub-fields keep their existing
25
+ * value. Rows stay individually editable afterward ("seed once, then editable").
26
+ *
27
+ * Returns the number of rows seeded (clamped to slot capacity), or -1 on error.
28
+ */
29
+ export declare function seedFieldFromData(fieldId: string, data: Record<string, any>[]): number;
30
+ /** Remove one repeat row (rowIndex ≥ 1): delete its clone subtree + its row. */
31
+ export declare function removeContainerRepeatRow(fieldId: string, rowIndex: number): void;
@@ -0,0 +1,53 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ export declare const panelRoot: SxProps<Theme>;
3
+ export declare const panelHeader: SxProps<Theme>;
4
+ export declare const panelTitle: SxProps<Theme>;
5
+ export declare const panelDescription: SxProps<Theme>;
6
+ export declare const panelContent: SxProps<Theme>;
7
+ export declare const panelLearnMore: SxProps<Theme>;
8
+ export declare const emptyState: SxProps<Theme>;
9
+ export declare const paywallOverlay: SxProps<Theme>;
10
+ export declare const paywallGhostContent: SxProps<Theme>;
11
+ export declare const paywallGhostHeader: SxProps<Theme>;
12
+ export declare const paywallGhostTitleText: SxProps<Theme>;
13
+ export declare const paywallGhostSubText: SxProps<Theme>;
14
+ export declare const paywallGhostFieldLabel: SxProps<Theme>;
15
+ export declare const paywallGhostInput: SxProps<Theme>;
16
+ export declare const paywallTitle: SxProps<Theme>;
17
+ export declare const paywallDescription: SxProps<Theme>;
18
+ export declare const paywallButton: SxProps<Theme>;
19
+ export declare const paywallLearnMore: SxProps<Theme>;
20
+ export declare const arrayFieldWrap: SxProps<Theme>;
21
+ export declare const scalarFieldWrap: SxProps<Theme>;
22
+ export declare const fieldLabel: SxProps<Theme>;
23
+ export declare const containerSection: SxProps<Theme>;
24
+ export declare const containerHeaderIcon: SxProps<Theme>;
25
+ export declare const containerTypeLabel: SxProps<Theme>;
26
+ export declare const containerSlotCount: SxProps<Theme>;
27
+ export declare const fullActionButton: SxProps<Theme>;
28
+ export declare const compactButton: SxProps<Theme>;
29
+ export declare const compactRepeatButton: SxProps<Theme>;
30
+ export declare const smallIcon: {
31
+ readonly fontSize: 13;
32
+ };
33
+ export declare const mediumIcon: {
34
+ readonly fontSize: 15;
35
+ };
36
+ export declare const sectionHeaderRow: SxProps<Theme>;
37
+ export declare const chevronSlot: SxProps<Theme>;
38
+ export declare const sectionHeaderTitle: SxProps<Theme>;
39
+ export declare const sectionHeaderSubtitle: SxProps<Theme>;
40
+ export declare const chevron: (open: boolean, size?: number, mr?: number) => SxProps<Theme>;
41
+ export declare const sectionChevron: (open: boolean) => SxProps<Theme>;
42
+ export declare const dataReferenceWrap: SxProps<Theme>;
43
+ export declare const fullBleedDivider: SxProps<Theme>;
44
+ export declare const fieldInput: SxProps<Theme>;
45
+ export declare const fieldCaptionRow: SxProps<Theme>;
46
+ export declare const sourceSelect: SxProps<Theme>;
47
+ export declare const jsonTextField: SxProps<Theme>;
48
+ export declare const rowCard: (isExpanded: boolean) => SxProps<Theme>;
49
+ export declare const rowCardHeader: (isExpanded: boolean) => SxProps<Theme>;
50
+ export declare const rowCardHeaderLabel: SxProps<Theme>;
51
+ export declare const rowCardRemoveBtn: SxProps<Theme>;
52
+ export declare const rowCardBody: SxProps<Theme>;
53
+ export declare const rowCardSubLabel: SxProps<Theme>;
@@ -0,0 +1,4 @@
1
+ export declare function setUpgradeHandler(handler: (() => void) | null | undefined): void;
2
+ export declare function useUpgradeDialog(): {
3
+ openUpgrade: () => void;
4
+ };
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ };
6
+ declare const MiniRichTextInput: React.FC<Props>;
7
+ export default MiniRichTextInput;
@@ -0,0 +1,10 @@
1
+ import { TemplateScalarType } from '../../../documents/editor/templateVariables';
2
+ type Props = {
3
+ type: TemplateScalarType;
4
+ label: string;
5
+ value: string;
6
+ onChange: (value: string) => void;
7
+ onPaperBackground?: boolean;
8
+ };
9
+ declare const ScalarFieldInput: ({ type, label, value, onChange, onPaperBackground }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export default ScalarFieldInput;
@@ -1,5 +1,5 @@
1
- export declare const TruncatedEditorTitle: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "top" | "bottom" | "right" | "left" | "fontSize" | "fontFamily" | "fontWeight" | "textAlign" | "padding" | "style" | "borderRadius" | "borderColor" | "width" | "borderTop" | "border" | "flex" | "children" | "className" | "color" | "position" | "lineHeight" | "fontStyle" | "p" | "align" | "bgcolor" | "height" | "display" | "overflow" | "marginBottom" | "gap" | "paddingX" | "paddingY" | "maxWidth" | "maxHeight" | "margin" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "visibility" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "typography" | "displayPrint" | "classes" | "sx" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
2
- export declare const SettingLabelTypography: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "top" | "bottom" | "right" | "left" | "fontSize" | "fontFamily" | "fontWeight" | "textAlign" | "padding" | "style" | "borderRadius" | "borderColor" | "width" | "borderTop" | "border" | "flex" | "children" | "className" | "color" | "position" | "lineHeight" | "fontStyle" | "p" | "align" | "bgcolor" | "height" | "display" | "overflow" | "marginBottom" | "gap" | "paddingX" | "paddingY" | "maxWidth" | "maxHeight" | "margin" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "visibility" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "typography" | "displayPrint" | "classes" | "sx" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
1
+ export declare const TruncatedEditorTitle: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children" | "top" | "bottom" | "right" | "left" | "fontSize" | "fontFamily" | "fontWeight" | "textAlign" | "padding" | "style" | "borderRadius" | "borderColor" | "width" | "px" | "margin" | "height" | "overflow" | "marginBottom" | "color" | "position" | "gap" | "align" | "fontStyle" | "paddingX" | "paddingY" | "marginX" | "marginY" | "lineHeight" | "maxWidth" | "maxHeight" | "boxShadow" | "borderTop" | "border" | "flex" | "py" | "className" | "p" | "bgcolor" | "display" | "zIndex" | "typography" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "displayPrint" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
2
+ export declare const SettingLabelTypography: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children" | "top" | "bottom" | "right" | "left" | "fontSize" | "fontFamily" | "fontWeight" | "textAlign" | "padding" | "style" | "borderRadius" | "borderColor" | "width" | "px" | "margin" | "height" | "overflow" | "marginBottom" | "color" | "position" | "gap" | "align" | "fontStyle" | "paddingX" | "paddingY" | "marginX" | "marginY" | "lineHeight" | "maxWidth" | "maxHeight" | "boxShadow" | "borderTop" | "border" | "flex" | "py" | "className" | "p" | "bgcolor" | "display" | "zIndex" | "typography" | "classes" | "sx" | "letterSpacing" | "order" | "visibility" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textOverflow" | "textTransform" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "displayPrint" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
3
3
  export declare const widthUnitSelectSx: {
4
4
  '& .MuiOutlinedInput-notchedOutline': {
5
5
  border: string;
@@ -18,4 +18,4 @@ export declare const widthUnitSelectSx: {
18
18
  paddingBottom: string;
19
19
  };
20
20
  };
21
- export declare const BorderedIconButton: import('@emotion/styled').StyledComponent<import('@mui/material').IconButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "size" | "action" | "children" | "className" | "color" | "disabled" | "tabIndex" | "loading" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "edge"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
21
+ export declare const BorderedIconButton: import('@emotion/styled').StyledComponent<import('@mui/material').IconButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "style" | "size" | "action" | "color" | "className" | "disabled" | "tabIndex" | "loading" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -4,6 +4,10 @@ declare const AccordionItemSchema: z.ZodObject<{
4
4
  contentChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
5
5
  }, z.core.$strip>;
6
6
  declare const AccordionPropsSchema: z.ZodObject<{
7
+ responsive: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8
+ tablet: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
9
+ mobile: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
10
+ }, z.core.$strip>>>;
7
11
  style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8
12
  backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
13
  borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -34,6 +38,8 @@ declare const AccordionPropsSchema: z.ZodObject<{
34
38
  }, z.core.$strip>>>>;
35
39
  iconColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
40
  iconSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
41
+ defaultOpen: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
42
+ activeBorderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
37
43
  }, z.core.$strip>>>;
38
44
  }, z.core.$strip>;
39
45
  export type AccordionProps = z.infer<typeof AccordionPropsSchema>;
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { TReaderDocument } from '../../../../email-builder-core/index.ts';
3
+ type PaddingValue = {
4
+ top: number;
5
+ right: number;
6
+ bottom: number;
7
+ left: number;
8
+ };
9
+ type Props = {
10
+ props?: {
11
+ bannerId?: string;
12
+ bannerName?: string | null;
13
+ contentDocument?: TReaderDocument | null;
14
+ padding?: PaddingValue | null;
15
+ } | null;
16
+ };
17
+ declare const AppBannerEditor: React.FC<Props>;
18
+ export default AppBannerEditor;
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ declare const AppBannerPropsSchema: z.ZodObject<{
3
+ bannerId: z.ZodDefault<z.ZodString>;
4
+ bannerName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5
+ contentDocument: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6
+ padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
7
+ top: z.ZodNumber;
8
+ right: z.ZodNumber;
9
+ bottom: z.ZodNumber;
10
+ left: z.ZodNumber;
11
+ }, z.core.$strip>>>;
12
+ }, z.core.$strip>;
13
+ export default AppBannerPropsSchema;
14
+ export type AppBannerPickerProps = z.infer<typeof AppBannerPropsSchema>;
@@ -0,0 +1,2 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const appBannerEditorEmptyState: CSSProperties;
@@ -12,18 +12,37 @@ declare const ButtonGroupPropsSchema: z.ZodObject<{
12
12
  props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
13
13
  childrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
14
14
  direction: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
15
+ row: "row";
16
+ column: "column";
17
+ }>>>;
18
+ directionTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
19
+ row: "row";
15
20
  column: "column";
21
+ }>>>;
22
+ directionMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
16
23
  row: "row";
24
+ column: "column";
17
25
  }>>>;
18
26
  gap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
19
27
  alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
20
28
  center: "center";
29
+ "space-between": "space-between";
30
+ start: "start";
21
31
  end: "end";
32
+ }>>>;
33
+ alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
34
+ center: "center";
35
+ "space-between": "space-between";
22
36
  start: "start";
37
+ end: "end";
38
+ }>>>;
39
+ alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
40
+ center: "center";
23
41
  "space-between": "space-between";
42
+ start: "start";
43
+ end: "end";
24
44
  }>>>;
25
45
  wrap: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
26
- fullWidthOnMobile: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
27
46
  ariaLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28
47
  }, z.core.$strip>>>;
29
48
  }, z.core.$strip>;
@@ -18,6 +18,12 @@ declare const CarouselPropsSchema: z.ZodObject<{
18
18
  right: z.ZodNumber;
19
19
  left: z.ZodNumber;
20
20
  }, z.core.$strip>>>;
21
+ margin: z.ZodNullable<z.ZodOptional<z.ZodObject<{
22
+ top: z.ZodNumber;
23
+ bottom: z.ZodNumber;
24
+ right: z.ZodNumber;
25
+ left: z.ZodNumber;
26
+ }, z.core.$strip>>>;
21
27
  slideGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
22
28
  arrowColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
23
29
  arrowBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -40,6 +46,7 @@ declare const CarouselPropsSchema: z.ZodObject<{
40
46
  items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
41
47
  contentChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
42
48
  }, z.core.$strip>>>>;
49
+ repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
43
50
  }, z.core.$strip>>>;
44
51
  }, z.core.$strip>;
45
52
  export type CarouselProps = z.infer<typeof CarouselPropsSchema>;