pagepilot-visual-editor 1.0.2

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 (292) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/LICENSE +21 -0
  3. package/README.md +553 -0
  4. package/dist/PagePilotEditor.d.ts +17 -0
  5. package/dist/blocks-internal/block-button/src/NudegeIcons.d.ts +18 -0
  6. package/dist/blocks-internal/block-button/src/icons.d.ts +5 -0
  7. package/dist/blocks-internal/block-button/src/index.d.ts +145 -0
  8. package/dist/blocks-internal/block-button-group/src/index.d.ts +35 -0
  9. package/dist/blocks-internal/block-columns-container/src/index.d.ts +38 -0
  10. package/dist/blocks-internal/block-container/src/index.d.ts +72 -0
  11. package/dist/blocks-internal/block-divider/src/index.d.ts +23 -0
  12. package/dist/blocks-internal/block-grid/src/index.d.ts +32 -0
  13. package/dist/blocks-internal/block-heading/src/index.d.ts +99 -0
  14. package/dist/blocks-internal/block-html/src/index.d.ts +56 -0
  15. package/dist/blocks-internal/block-iframe/src/index.d.ts +26 -0
  16. package/dist/blocks-internal/block-image/src/index.d.ts +68 -0
  17. package/dist/blocks-internal/block-logo/src/index.d.ts +64 -0
  18. package/dist/blocks-internal/block-stepper/src/index.d.ts +52 -0
  19. package/dist/blocks-internal/block-text/src/EmailMarkdown.d.ts +8 -0
  20. package/dist/blocks-internal/block-text/src/index.d.ts +70 -0
  21. package/dist/blocks-internal/block-video/src/index.d.ts +46 -0
  22. package/dist/blocks-internal/block-youtube-url/src/index.d.ts +32 -0
  23. package/dist/editor/Shell.d.ts +6 -0
  24. package/dist/editor/StatusPill.d.ts +3 -0
  25. package/dist/editor/Topbar.d.ts +27 -0
  26. package/dist/editor/blockToggles.d.ts +12 -0
  27. package/dist/editor/theme.d.ts +10 -0
  28. package/dist/editor/types.d.ts +128 -0
  29. package/dist/editor-sample/App/InspectorDrawer/BehaviourPanel.d.ts +1 -0
  30. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/BlockStyleClipboardBar.d.ts +16 -0
  31. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/blockStyleClipboard.d.ts +83 -0
  32. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/index.d.ts +5 -0
  33. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AccessibilityToolsSidebarPanel.d.ts +8 -0
  34. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AccordionSidebarPanel.d.ts +8 -0
  35. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts +8 -0
  36. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonGroupSidebarPanel.d.ts +8 -0
  37. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts +7 -0
  38. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/CalendlySidebarPanel.d.ts +8 -0
  39. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/CarouselSidebarPanel.d.ts +8 -0
  40. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts +8 -0
  41. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts +8 -0
  42. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts +8 -0
  43. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumns/ColumnSection.d.ts +10 -0
  44. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumnsSidebarPanel.d.ts +8 -0
  45. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/GridSidebarPanel.d.ts +8 -0
  46. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts +8 -0
  47. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts +8 -0
  48. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/IframeSidebarPanel.d.ts +8 -0
  49. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts +8 -0
  50. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/LogoSidebarPanel.d.ts +8 -0
  51. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MarqueeSidebarPanel.d.ts +8 -0
  52. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PagePilotLayoutSidebarPanel.d.ts +24 -0
  53. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PricingAccordionSidebarPanel.d.ts +8 -0
  54. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/PricingAccordionSidebarPanel.styled.d.ts +7 -0
  55. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/RatingSidebarPanel.d.ts +8 -0
  56. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/SkipLinkSidebarPanel.d.ts +8 -0
  57. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts +8 -0
  58. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/StepperSidebarPanel.d.ts +9 -0
  59. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TabsBlockSidebarPanel.d.ts +8 -0
  60. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +8 -0
  61. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/VideoSidebarPanel.d.ts +8 -0
  62. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts +9 -0
  63. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/CollapsibleSection.d.ts +13 -0
  64. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/ContrastWarning.d.ts +9 -0
  65. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/MediaLibraryButton.d.ts +17 -0
  66. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/SectionWrapper.d.ts +8 -0
  67. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/contrast.d.ts +10 -0
  68. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts +8 -0
  69. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/CodeEditor.d.ts +7 -0
  70. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts +14 -0
  71. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +28 -0
  72. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts +7 -0
  73. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts +14 -0
  74. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts +10 -0
  75. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts +11 -0
  76. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts +9 -0
  77. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontStyleInput.d.ts +8 -0
  78. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts +9 -0
  79. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/NumberInput.d.ts +22 -0
  80. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts +16 -0
  81. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts +9 -0
  82. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadiusInput.d.ts +20 -0
  83. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts +14 -0
  84. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SwitchInput.d.ts +9 -0
  85. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts +8 -0
  86. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDecorationInput.d.ts +8 -0
  87. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts +9 -0
  88. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts +24 -0
  89. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WidthInputWithSelect.d.ts +12 -0
  90. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts +13 -0
  91. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts +9 -0
  92. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts +9 -0
  93. package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +21 -0
  94. package/dist/editor-sample/App/InspectorDrawer/LayersPanel.d.ts +2 -0
  95. package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +27 -0
  96. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/BlocksPanel.d.ts +3 -0
  97. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +16 -0
  98. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/index.d.ts +6 -0
  99. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateHelpers.d.ts +1 -0
  100. package/dist/editor-sample/App/InspectorDrawer/StylesPanel.d.ts +6 -0
  101. package/dist/editor-sample/App/InspectorDrawer/hooks/useScalarFieldInput.d.ts +23 -0
  102. package/dist/editor-sample/App/InspectorDrawer/icons/index.d.ts +53 -0
  103. package/dist/editor-sample/App/InspectorDrawer/index.d.ts +16 -0
  104. package/dist/editor-sample/App/InspectorDrawer/layerClipboard.d.ts +7 -0
  105. package/dist/editor-sample/App/InspectorDrawer/useLayerNode.d.ts +35 -0
  106. package/dist/editor-sample/App/SelectionOverlay/index.d.ts +0 -0
  107. package/dist/editor-sample/App/TemplatePanel/HtmlPanel.d.ts +2 -0
  108. package/dist/editor-sample/App/TemplatePanel/JsonPanel.d.ts +2 -0
  109. package/dist/editor-sample/App/TemplatePanel/helper/HighlightedCodePanel.d.ts +7 -0
  110. package/dist/editor-sample/App/TemplatePanel/helper/highlighters.d.ts +2 -0
  111. package/dist/editor-sample/App/TemplatePanel/hooks/index.d.ts +3 -0
  112. package/dist/editor-sample/App/TemplatePanel/hooks/useDragSelection.d.ts +23 -0
  113. package/dist/editor-sample/App/TemplatePanel/hooks/useMainBoxStyles.d.ts +12 -0
  114. package/dist/editor-sample/App/TemplatePanel/hooks/usePanelPositioning.d.ts +25 -0
  115. package/dist/editor-sample/App/TemplatePanel/index.d.ts +17 -0
  116. package/dist/editor-sample/App/TemplatePanel/pageGuide/AhdMarkerLayer.d.ts +19 -0
  117. package/dist/editor-sample/App/TemplatePanel/pageGuide/elementBounds.d.ts +24 -0
  118. package/dist/editor-sample/App/TemplatePanel/pageGuide/iframeSrcDoc.d.ts +6 -0
  119. package/dist/editor-sample/App/TemplatePanel/pageGuide/useAhdMarkers.d.ts +28 -0
  120. package/dist/editor-sample/App/TemplatePanel/types.d.ts +36 -0
  121. package/dist/editor-sample/App/TemplatePanel/utils/index.d.ts +1 -0
  122. package/dist/editor-sample/App/TemplatePanel/utils/positioningUtils.d.ts +16 -0
  123. package/dist/editor-sample/App/hooks/constants.d.ts +10 -0
  124. package/dist/editor-sample/App/hooks/page/menuHrefBaselines.d.ts +10 -0
  125. package/dist/editor-sample/App/hooks/page/saveMenuHrefEdits.d.ts +1 -0
  126. package/dist/editor-sample/App/hooks/page/useSaveHandler.d.ts +21 -0
  127. package/dist/editor-sample/App/hooks/useGetPageType.d.ts +3 -0
  128. package/dist/editor-sample/App/hooks/usePreviewScreen.d.ts +8 -0
  129. package/dist/editor-sample/App/shared/AddSectionDialog.d.ts +12 -0
  130. package/dist/editor-sample/App/shared/PagePreviewFrame.d.ts +16 -0
  131. package/dist/editor-sample/App/shared/PreviewDialog.d.ts +15 -0
  132. package/dist/editor-sample/App/shared/SectionsDropdown.d.ts +10 -0
  133. package/dist/editor-sample/App/shared/editor.styles.d.ts +21 -0
  134. package/dist/editor-sample/App/shared/multipleSections.styled.d.ts +18 -0
  135. package/dist/editor-sample/App/shared/pageSections.d.ts +28 -0
  136. package/dist/editor-sample/documents/blocks/AccessibilityTools/AccessibilityToolsEditor.d.ts +3 -0
  137. package/dist/editor-sample/documents/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +1 -0
  138. package/dist/editor-sample/documents/blocks/Accordion/AccordionEditor.d.ts +3 -0
  139. package/dist/editor-sample/documents/blocks/Accordion/AccordionPropsSchema.d.ts +41 -0
  140. package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupEditor.d.ts +3 -0
  141. package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +31 -0
  142. package/dist/editor-sample/documents/blocks/Carousel/CarouselEditor.d.ts +3 -0
  143. package/dist/editor-sample/documents/blocks/Carousel/CarouselPropsSchema.d.ts +47 -0
  144. package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts +3 -0
  145. package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +49 -0
  146. package/dist/editor-sample/documents/blocks/Container/ContainerEditor.d.ts +3 -0
  147. package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +52 -0
  148. package/dist/editor-sample/documents/blocks/FlexColumns/FlexColumnsEditor.d.ts +3 -0
  149. package/dist/editor-sample/documents/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +1 -0
  150. package/dist/editor-sample/documents/blocks/Grid/GridEditor.d.ts +3 -0
  151. package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +48 -0
  152. package/dist/editor-sample/documents/blocks/Marquee/MarqueeEditor.d.ts +3 -0
  153. package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +37 -0
  154. package/dist/editor-sample/documents/blocks/PagePilotLayout/PagePilotLayoutEditor.d.ts +2 -0
  155. package/dist/editor-sample/documents/blocks/PagePilotLayout/PagePilotLayoutPropsSchema.d.ts +151 -0
  156. package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionEditor.d.ts +3 -0
  157. package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +77 -0
  158. package/dist/editor-sample/documents/blocks/Rating/RatingEditor.d.ts +3 -0
  159. package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +31 -0
  160. package/dist/editor-sample/documents/blocks/SkipLink/SkipLinkEditor.d.ts +3 -0
  161. package/dist/editor-sample/documents/blocks/SkipLink/SkipLinkPropsSchema.d.ts +1 -0
  162. package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockEditor.d.ts +3 -0
  163. package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +53 -0
  164. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts +9 -0
  165. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockInsertAboveContext.d.ts +2 -0
  166. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts +10 -0
  167. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts +7 -0
  168. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts +6 -0
  169. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/ScopePickerMenu.d.ts +14 -0
  170. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/brandButtonDefaults.d.ts +14 -0
  171. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +9 -0
  172. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts +16 -0
  173. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/index.d.ts +16 -0
  174. package/dist/editor-sample/documents/blocks/helpers/InlineEditableText.d.ts +6 -0
  175. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/FullscreenOverlay.d.ts +20 -0
  176. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/constants.d.ts +22 -0
  177. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/ImageDialog.d.ts +20 -0
  178. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/LinkDialog.d.ts +23 -0
  179. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/VideoDialog.d.ts +9 -0
  180. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dom.d.ts +6 -0
  181. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/focusGuard.d.ts +7 -0
  182. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/format.d.ts +19 -0
  183. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useCodeView.d.ts +35 -0
  184. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useFormatPainter.d.ts +18 -0
  185. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useFormatState.d.ts +11 -0
  186. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useFullscreen.d.ts +24 -0
  187. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts +66 -0
  188. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarDrag.d.ts +21 -0
  189. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarPosition.d.ts +7 -0
  190. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/index.d.ts +17 -0
  191. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/inlineEditChrome.d.ts +6 -0
  192. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/ColorSwatchPopover.d.ts +21 -0
  193. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/ImagePopover.d.ts +16 -0
  194. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/OverflowMenu.d.ts +13 -0
  195. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/TableGridPicker.d.ts +10 -0
  196. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/Divider.d.ts +8 -0
  197. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/Dropdown.d.ts +27 -0
  198. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/HoverButton.d.ts +27 -0
  199. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/IconBtn.d.ts +16 -0
  200. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/MenuItem.d.ts +32 -0
  201. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/MicIcon.d.ts +7 -0
  202. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/primitives/NoteIcon.d.ts +15 -0
  203. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/selection.d.ts +17 -0
  204. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/styles.d.ts +14 -0
  205. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/types.d.ts +36 -0
  206. package/dist/editor-sample/documents/blocks/helpers/TStyle.d.ts +17 -0
  207. package/dist/editor-sample/documents/blocks/helpers/TemplateTokenOverlay.d.ts +44 -0
  208. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +6 -0
  209. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts +8 -0
  210. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts +6 -0
  211. package/dist/editor-sample/documents/blocks/helpers/block-wrappers/useCanvasDrop.d.ts +18 -0
  212. package/dist/editor-sample/documents/blocks/helpers/blockVisibility.d.ts +27 -0
  213. package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +126 -0
  214. package/dist/editor-sample/documents/blocks/helpers/fontFamily.d.ts +33 -0
  215. package/dist/editor-sample/documents/blocks/helpers/fontWeight.d.ts +13 -0
  216. package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +48 -0
  217. package/dist/editor-sample/documents/editor/EditorBlock.d.ts +13 -0
  218. package/dist/editor-sample/documents/editor/EditorContext.d.ts +347 -0
  219. package/dist/editor-sample/documents/editor/EditorVariantContext.d.ts +4 -0
  220. package/dist/editor-sample/documents/editor/LazyEditorBlock.d.ts +26 -0
  221. package/dist/editor-sample/documents/editor/core.d.ts +1212 -0
  222. package/dist/editor-sample/documents/editor/prefillDefaultValues.d.ts +12 -0
  223. package/dist/editor-sample/documents/editor/templateVariables.d.ts +50 -0
  224. package/dist/editor-sample/getConfiguration/index.d.ts +1 -0
  225. package/dist/editor-sample/getConfiguration/sample/empty-email-message.d.ts +3 -0
  226. package/dist/editor-sample/getConfiguration/sample/one-time-passcode.d.ts +3 -0
  227. package/dist/editor-sample/getConfiguration/sample/order-ecommerce.d.ts +3 -0
  228. package/dist/editor-sample/getConfiguration/sample/post-metrics-report.d.ts +3 -0
  229. package/dist/editor-sample/getConfiguration/sample/reservation-reminder.d.ts +3 -0
  230. package/dist/editor-sample/getConfiguration/sample/reset-password.d.ts +3 -0
  231. package/dist/editor-sample/getConfiguration/sample/respond-to-message.d.ts +3 -0
  232. package/dist/editor-sample/getConfiguration/sample/subscription-receipt.d.ts +3 -0
  233. package/dist/editor-sample/getConfiguration/sample/welcome.d.ts +3 -0
  234. package/dist/editor-sample/utils/editorKvStore.d.ts +5 -0
  235. package/dist/email-builder-core/Reader/ReaderBlockShim.d.ts +10 -0
  236. package/dist/email-builder-core/Reader/core.d.ts +35 -0
  237. package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +79 -0
  238. package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsReader.d.ts +3 -0
  239. package/dist/email-builder-core/blocks/AccessibilityTools/icons.d.ts +4 -0
  240. package/dist/email-builder-core/blocks/Accordion/AccordionPropsSchema.d.ts +35 -0
  241. package/dist/email-builder-core/blocks/Accordion/AccordionReader.d.ts +3 -0
  242. package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +31 -0
  243. package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupReader.d.ts +3 -0
  244. package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +24 -0
  245. package/dist/email-builder-core/blocks/Calendly/CalendlyReader.d.ts +3 -0
  246. package/dist/email-builder-core/blocks/Carousel/CarouselPropsSchema.d.ts +47 -0
  247. package/dist/email-builder-core/blocks/Carousel/CarouselReader.d.ts +3 -0
  248. package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +53 -0
  249. package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerReader.d.ts +3 -0
  250. package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +52 -0
  251. package/dist/email-builder-core/blocks/Container/ContainerReader.d.ts +3 -0
  252. package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +44 -0
  253. package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsReader.d.ts +2 -0
  254. package/dist/email-builder-core/blocks/FlexColumns/flexColumnsHelpers.d.ts +10 -0
  255. package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +48 -0
  256. package/dist/email-builder-core/blocks/Grid/GridReader.d.ts +3 -0
  257. package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +36 -0
  258. package/dist/email-builder-core/blocks/Marquee/MarqueeReader.d.ts +3 -0
  259. package/dist/email-builder-core/blocks/PagePilotLayout/PagePilotLayoutPropsSchema.d.ts +103 -0
  260. package/dist/email-builder-core/blocks/PagePilotLayout/PagePilotLayoutReader.d.ts +3 -0
  261. package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +77 -0
  262. package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionReader.d.ts +3 -0
  263. package/dist/email-builder-core/blocks/Rating/RatingPropsSchema.d.ts +30 -0
  264. package/dist/email-builder-core/blocks/Rating/RatingReader.d.ts +3 -0
  265. package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +42 -0
  266. package/dist/email-builder-core/blocks/SkipLink/SkipLinkReader.d.ts +3 -0
  267. package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +53 -0
  268. package/dist/email-builder-core/blocks/TabsBlock/TabsBlockReader.d.ts +3 -0
  269. package/dist/email-builder-core/blocks/helpers/blockStyleHelpers.d.ts +15 -0
  270. package/dist/email-builder-core/helpers/fontFamily.d.ts +33 -0
  271. package/dist/email-builder-core/helpers/fontWeight.d.ts +13 -0
  272. package/dist/email-builder-core/helpers/screen.d.ts +13 -0
  273. package/dist/email-builder-core/helpers/templateVariables.d.ts +14 -0
  274. package/dist/email-builder-core/index.d.ts +3 -0
  275. package/dist/email-builder-core/renderers/accessibilityTools.d.ts +35 -0
  276. package/dist/email-builder-core/renderers/pageScripts.d.ts +7 -0
  277. package/dist/email-builder-core/renderers/renderDynamicCss.d.ts +1 -0
  278. package/dist/email-builder-core/renderers/renderToStaticMarkup.d.ts +41 -0
  279. package/dist/host-stubs/_passthrough.d.ts +2 -0
  280. package/dist/host-stubs/i18n.d.ts +8 -0
  281. package/dist/host-stubs/style/menu.styled.d.ts +15 -0
  282. package/dist/host-stubs/style/styled.d.ts +34 -0
  283. package/dist/host-stubs/theme/theme.d.ts +2 -0
  284. package/dist/host-stubs/view/images/Icons.d.ts +649 -0
  285. package/dist/host-stubs/view/media/MediaGalleryDialog.d.ts +2 -0
  286. package/dist/host-stubs/view/shared/message.d.ts +11 -0
  287. package/dist/host-stubs/view/shared/modals/PopupConfirm.d.ts +11 -0
  288. package/dist/index.cjs +1630 -0
  289. package/dist/index.d.ts +8 -0
  290. package/dist/index.js +168332 -0
  291. package/dist/style.css +1 -0
  292. package/package.json +115 -0
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ type SliderInputProps = {
3
+ iconLabel: React.JSX.Element;
4
+ step?: number;
5
+ marks?: boolean;
6
+ units: string;
7
+ min?: number;
8
+ max?: number;
9
+ value: number;
10
+ setValue: (v: number) => void;
11
+ };
12
+ export default function RawSliderInput({ iconLabel, value, setValue, units, ...props }: SliderInputProps): React.JSX.Element;
13
+ export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { TStyle } from '../../../../../../documents/blocks/helpers/TStyle';
3
+ type MultiStylePropertyPanelProps = {
4
+ names: (keyof TStyle)[];
5
+ value: TStyle | undefined | null;
6
+ onChange: (style: TStyle) => void;
7
+ };
8
+ export default function MultiStylePropertyPanel({ names, value, onChange }: MultiStylePropertyPanelProps): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { TStyle } from '../../../../../../documents/blocks/helpers/TStyle';
3
+ type StylePropertyPanelProps = {
4
+ name: keyof TStyle;
5
+ value: TStyle;
6
+ onChange: (style: TStyle) => void;
7
+ };
8
+ export default function SingleStylePropertyPanel({ name, value, onChange, }: StylePropertyPanelProps): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,21 @@
1
+ export declare const INSPECTOR_DRAWER_WIDTH = 413;
2
+ export declare const StyledRightPanel: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
3
+ export interface EditorPanelToggles {
4
+ style?: boolean;
5
+ layout?: boolean;
6
+ inspect?: boolean;
7
+ layers?: boolean;
8
+ }
9
+ interface EditorBehaviorProps {
10
+ record: any;
11
+ onTogglePreview: () => void;
12
+ activeStepIndex: number;
13
+ onBackgroundChange: any;
14
+ onUpdateRecord?: (record: any) => void;
15
+ onSaveChanges?: () => Promise<boolean>;
16
+ onNavigateBranding?: () => void;
17
+ /** Toggle visibility of the four side panels. Defaults to all enabled. */
18
+ panels?: EditorPanelToggles;
19
+ }
20
+ declare const EditorBehavior: ({ record, activeStepIndex, onBackgroundChange, onUpdateRecord, panels, }: EditorBehaviorProps) => import("react").JSX.Element;
21
+ export default EditorBehavior;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export default function LayersPanel(): React.JSX.Element;
@@ -0,0 +1,27 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ import { SxProps } from '@mui/material';
3
+ export declare const PanelRoot: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<Theme>> & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
4
+ export declare const PanelHeader: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<Theme>> & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
5
+ export declare const PanelContent: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<Theme>> & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
6
+ export declare const HeaderBox: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<Theme>> & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
7
+ export declare const HeaderTitle: 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<Theme>, {}, {}>;
8
+ export declare const ClipboardBar: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<Theme>> & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
9
+ export declare const ActionSpan: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
10
+ export declare const ActionButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "fullWidth" | "size" | "action" | "children" | "className" | "href" | "color" | "disabled" | "tabIndex" | "loading" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "loadingIndicator" | "loadingPosition" | "startIcon" | "variant"> & import('@mui/system').MUIStyledCommonProps<Theme>, {}, {}>;
11
+ export declare const connectorVLineSx: (depth: number, isLast: boolean, INDENT: number) => SxProps<Theme>;
12
+ export declare const connectorHLineSx: (depth: number, INDENT: number) => SxProps<Theme>;
13
+ export declare const rowSx: (depth: number, INDENT: number, isSelected: boolean, dropPos: "before" | "after" | "inside" | null) => SxProps<Theme>;
14
+ export declare const dragHandleSx: (isSelected: boolean) => SxProps<Theme>;
15
+ export declare const toggleWrapperSx: SxProps<Theme>;
16
+ export declare const toggleBtnSx: SxProps<Theme>;
17
+ export declare const leafDotSx: SxProps<Theme>;
18
+ export declare const blockIconWrapSx: (hidden: boolean) => SxProps<Theme>;
19
+ export declare const labelRowSx: SxProps<Theme>;
20
+ export declare const blockTypeLabelSx: (isSelected: boolean, hidden: boolean) => SxProps<Theme>;
21
+ export declare const hiddenChipWrapSx: SxProps<Theme>;
22
+ export declare const hiddenChipTextSx: SxProps<Theme>;
23
+ export declare const actionGroupSx: SxProps<Theme>;
24
+ export declare const visibilityBtnSx: (hidden: boolean) => SxProps<Theme>;
25
+ export declare const copyBtnSx: SxProps<Theme>;
26
+ export declare const pasteBtnSx: (hasCopied: boolean) => SxProps<Theme>;
27
+ export declare const deleteBtnSx: SxProps<Theme>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const BlocksPanel: React.FC;
3
+ export default BlocksPanel;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { SvgIconProps } from '@mui/material/SvgIcon';
3
+ declare const ContainerIcon: (props?: SvgIconProps) => React.JSX.Element;
4
+ declare const GridIcon: (props?: SvgIconProps) => React.JSX.Element;
5
+ declare const ImageIcon: (props?: SvgIconProps) => React.JSX.Element;
6
+ declare const TextIcon: (props?: SvgIconProps) => React.JSX.Element;
7
+ declare const ButtonIcon: (props?: SvgIconProps) => React.JSX.Element;
8
+ declare const HtmlIcon: (props?: SvgIconProps) => React.JSX.Element;
9
+ declare const VideoIcon: (props?: SvgIconProps) => React.JSX.Element;
10
+ declare const DividerIcon: (props?: SvgIconProps) => React.JSX.Element;
11
+ declare const AvatarIcon: (props?: SvgIconProps) => React.JSX.Element;
12
+ declare const SpacerIcon: (props?: SvgIconProps) => React.JSX.Element;
13
+ declare const HeadingIcon: (props?: SvgIconProps) => React.JSX.Element;
14
+ declare const StepperIcon: (props?: SvgIconProps) => React.JSX.Element;
15
+ declare const DragIcon: (props?: SvgIconProps) => React.JSX.Element;
16
+ export { ContainerIcon, GridIcon, ImageIcon, TextIcon, ButtonIcon, HtmlIcon, VideoIcon, DividerIcon, DragIcon, HeadingIcon, StepperIcon, AvatarIcon, SpacerIcon, };
@@ -0,0 +1,6 @@
1
+ interface LayoutPanelProps {
2
+ record?: any;
3
+ onUpdateRecord?: (record: any) => void;
4
+ }
5
+ declare const LayoutPanel: (_props: LayoutPanelProps) => import("react").JSX.Element;
6
+ export default LayoutPanel;
@@ -0,0 +1 @@
1
+ export declare const generateBlockId: () => string;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export default function StylesPanel({ record, isTypeDemo, onBackgroundChange }: {
3
+ record: any;
4
+ isTypeDemo: any;
5
+ onBackgroundChange: any;
6
+ }): React.JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { TemplateScalarType } from '../../../documents/editor/templateVariables';
3
+ export declare function useScalarFieldInput(type: TemplateScalarType, onChange: (value: string) => void, onPaperBackground: boolean): {
4
+ sx: {
5
+ mt: number;
6
+ mb: number;
7
+ "& .MuiOutlinedInput-root": {
8
+ borderRadius: number;
9
+ };
10
+ } | {
11
+ mt: number;
12
+ '& .MuiOutlinedInput-root': {
13
+ backgroundColor: string;
14
+ borderRadius: number;
15
+ };
16
+ mb: number;
17
+ };
18
+ typeProps: Partial<TextFieldProps>;
19
+ galleryOpen: boolean;
20
+ openGallery: () => void;
21
+ closeGallery: () => void;
22
+ onGallerySelect: (media: any[]) => void;
23
+ };
@@ -0,0 +1,53 @@
1
+ import { SvgIconProps } from '@mui/material/SvgIcon';
2
+ export declare const ContainerIcon: {
3
+ (props: SvgIconProps): import("react").JSX.Element;
4
+ muiName: string;
5
+ };
6
+ export declare const ColumnsIcon: {
7
+ (props: SvgIconProps): import("react").JSX.Element;
8
+ muiName: string;
9
+ };
10
+ export declare const GridIcon: {
11
+ (props: SvgIconProps): import("react").JSX.Element;
12
+ muiName: string;
13
+ };
14
+ export declare const TextIcon: {
15
+ (props: SvgIconProps): import("react").JSX.Element;
16
+ muiName: string;
17
+ };
18
+ export declare const HeadingIcon: {
19
+ (props: SvgIconProps): import("react").JSX.Element;
20
+ muiName: string;
21
+ };
22
+ export declare const ImageIcon: {
23
+ (props: SvgIconProps): import("react").JSX.Element;
24
+ muiName: string;
25
+ };
26
+ export declare const ButtonIcon: {
27
+ (props: SvgIconProps): import("react").JSX.Element;
28
+ muiName: string;
29
+ };
30
+ export declare const VideoIcon: {
31
+ (props: SvgIconProps): import("react").JSX.Element;
32
+ muiName: string;
33
+ };
34
+ export declare const AvatarIcon: {
35
+ (props: SvgIconProps): import("react").JSX.Element;
36
+ muiName: string;
37
+ };
38
+ export declare const DividerIcon: {
39
+ (props: SvgIconProps): import("react").JSX.Element;
40
+ muiName: string;
41
+ };
42
+ export declare const SpacerIcon: {
43
+ (props: SvgIconProps): import("react").JSX.Element;
44
+ muiName: string;
45
+ };
46
+ export declare const StepperIcon: {
47
+ (props: SvgIconProps): import("react").JSX.Element;
48
+ muiName: string;
49
+ };
50
+ export declare const AccordionIcon: {
51
+ (props: SvgIconProps): import("react").JSX.Element;
52
+ muiName: string;
53
+ };
@@ -0,0 +1,16 @@
1
+ import { EditorPanelToggles } from './EditorBehavior';
2
+ export declare const INSPECTOR_DRAWER_WIDTH = 413;
3
+ interface InspectorDrawerProps {
4
+ record: any;
5
+ onTogglePreview: () => void;
6
+ activeStepIndex: number;
7
+ onBackgroundChange: (image: string) => void;
8
+ onUpdateRecord?: (record: any) => void;
9
+ onSaveChanges?: () => Promise<boolean>;
10
+ isExternalSection?: boolean;
11
+ onNavigateBranding?: () => void;
12
+ /** Toggle visibility of the four side panels. */
13
+ panels?: EditorPanelToggles;
14
+ }
15
+ export default function InspectorDrawer({ record, onTogglePreview, activeStepIndex, onBackgroundChange, onUpdateRecord, onSaveChanges, isExternalSection, onNavigateBranding, panels, }: InspectorDrawerProps): import("react").JSX.Element;
16
+ export {};
@@ -0,0 +1,7 @@
1
+ export type CopiedLayer = {
2
+ rootBlockId: string;
3
+ blocks: Record<string, any>;
4
+ };
5
+ export declare function isFullPageDocument(value: unknown): boolean;
6
+ export declare function asCopiedLayer(value: unknown): CopiedLayer | null;
7
+ export declare function readCopiedLayer(clipboardText: string | null, inMemory: unknown): CopiedLayer | null;
@@ -0,0 +1,35 @@
1
+ import { DropPosition } from '../../documents/blocks/helpers/documentUtils';
2
+ export declare function getChildrenIds(block: any): string[];
3
+ export declare function collectSubtree(doc: Record<string, any>, rootId: string): {
4
+ rootBlockId: string;
5
+ blocks: Record<string, any>;
6
+ };
7
+ export declare function insertAfterBlock(doc: Record<string, any>, afterId: string, newId: string): Record<string, any> | null;
8
+ interface UseLayerNodeOptions {
9
+ blockId: string;
10
+ selectedBlockId: string | null;
11
+ }
12
+ export declare function useLayerNode({ blockId, selectedBlockId }: UseLayerNodeOptions): {
13
+ block: any;
14
+ childIds: string[];
15
+ hasChildren: boolean;
16
+ isSelected: boolean;
17
+ canNest: boolean;
18
+ hidden: boolean;
19
+ hasCopied: boolean;
20
+ expanded: boolean;
21
+ setExpanded: import('react').Dispatch<import('react').SetStateAction<boolean>>;
22
+ dropPos: DropPosition;
23
+ handleDragStart: (e: React.DragEvent) => void;
24
+ handleDragOver: (e: React.DragEvent) => void;
25
+ handleDragLeave: (e: React.DragEvent) => void;
26
+ handleDrop: (e: React.DragEvent) => void;
27
+ handleSelect: (e: React.MouseEvent) => void;
28
+ handleDoubleClick: (e: React.MouseEvent) => void;
29
+ handleToggle: (e: React.MouseEvent) => void;
30
+ handleToggleHidden: (e: React.MouseEvent) => void;
31
+ handleDelete: (e: React.MouseEvent) => void;
32
+ handleCopyLayer: (e: React.MouseEvent) => Promise<void>;
33
+ handlePasteAfterLayer: (e: React.MouseEvent) => Promise<void>;
34
+ };
35
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export default function HtmlPanel(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export default function JsonPanel(): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ type TextEditorPanelProps = {
3
+ type: 'json' | 'html' | 'javascript';
4
+ value: string;
5
+ };
6
+ export default function HighlightedCodePanel({ type, value }: TextEditorPanelProps): React.JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function html(value: string): Promise<string>;
2
+ export declare function json(value: string): Promise<string>;
@@ -0,0 +1,3 @@
1
+ export { useDragSelection } from './useDragSelection';
2
+ export { usePanelPositioning } from './usePanelPositioning';
3
+ export { useMainBoxStyles } from './useMainBoxStyles';
@@ -0,0 +1,23 @@
1
+ import { SelectionBox } from '../types';
2
+ interface UseDragSelectionProps {
3
+ backgroundImage?: string | null;
4
+ pageHtml?: string | null;
5
+ activeStepIndex?: number;
6
+ panelRef: React.RefObject<HTMLDivElement>;
7
+ document: any;
8
+ setDocument: (doc: any) => void;
9
+ setPanelPosition: (position: {
10
+ top: string;
11
+ left: string;
12
+ }) => void;
13
+ setSelectionBox: (box: SelectionBox | null) => void;
14
+ }
15
+ export declare const useDragSelection: ({ backgroundImage, pageHtml, activeStepIndex, panelRef, document, setDocument, setPanelPosition, setSelectionBox, }: UseDragSelectionProps) => {
16
+ isDragging: boolean;
17
+ handleMouseDown: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
18
+ handleMouseMove: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
19
+ handleMouseUp: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => Promise<void>;
20
+ handleMouseLeave: () => void;
21
+ getDragRectangle: () => SelectionBox | null;
22
+ };
23
+ export {};
@@ -0,0 +1,12 @@
1
+ import { SxProps } from '@mui/material';
2
+ import { PageTypes } from '../../hooks/constants';
3
+ interface GetMainBoxSxProps {
4
+ pageType: PageTypes | undefined;
5
+ backgroundImage?: string | null;
6
+ pageHtml?: string | null;
7
+ isPreviewOpen: boolean;
8
+ selectedScreenSize: string;
9
+ layoutData: any;
10
+ }
11
+ export declare const useMainBoxStyles: ({ pageType, backgroundImage, pageHtml, isPreviewOpen, selectedScreenSize, layoutData, }: GetMainBoxSxProps) => SxProps;
12
+ export {};
@@ -0,0 +1,25 @@
1
+ import { SelectionBox } from '../types';
2
+ interface UsePanelPositioningProps {
3
+ layoutData: any;
4
+ document: any;
5
+ backgroundImage?: string | null;
6
+ pageHtml?: string | null;
7
+ panelRef: React.RefObject<HTMLDivElement>;
8
+ setPanelPosition: (position: {
9
+ top: string;
10
+ left: string;
11
+ }) => void;
12
+ setSelectionBox: (box: SelectionBox | null) => void;
13
+ onPositioned?: (v: boolean) => void;
14
+ activeStepIndex?: number;
15
+ /**
16
+ * Bumped each time the page-backdrop iframe finishes (re)loading / re-measuring.
17
+ * Used to re-run positioning once the iframe's `#ahd-...` elements have real
18
+ * bounds; without this the first-render panel + selection box snap to the
19
+ * scrollWidth/scrollHeight of an empty iframe and drift relative to the
20
+ * actual target element.
21
+ */
22
+ iframeReadyTick?: number;
23
+ }
24
+ export declare const usePanelPositioning: ({ layoutData, document, backgroundImage, pageHtml, panelRef, setPanelPosition, setSelectionBox, onPositioned, activeStepIndex, iframeReadyTick, }: UsePanelPositioningProps) => void;
25
+ export {};
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { PageSection } from '../shared/pageSections';
3
+ interface TemplatePanelProps {
4
+ record: any;
5
+ isPreviewOpen: boolean;
6
+ activeStepIndex: number;
7
+ fetchTooltip: () => void;
8
+ backgroundImage?: string | null | undefined;
9
+ pageHtml?: string | null;
10
+ isPageHtmlFetching?: boolean;
11
+ loading: boolean;
12
+ activeSection?: PageSection;
13
+ activeSectionIndex?: number;
14
+ onAddSection?: () => void;
15
+ }
16
+ export default function TemplatePanel({ record, isPreviewOpen, activeStepIndex, fetchTooltip, backgroundImage, pageHtml, isPageHtmlFetching, loading, activeSectionIndex, onAddSection, }: TemplatePanelProps): React.JSX.Element;
17
+ export {};
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { AhdMarker } from './useAhdMarkers';
3
+ /** Z-indexes used by the page-tour editor overlay. Exported so siblings stay consistent. */
4
+ export declare const PAGE_GUIDE_Z: {
5
+ readonly dim: 995;
6
+ readonly markerRect: 996;
7
+ readonly selectionBox: 997;
8
+ readonly dragRect: 998;
9
+ readonly ctaLayer: 1000;
10
+ readonly badge: 1050;
11
+ readonly panel: 1100;
12
+ };
13
+ type Props = {
14
+ markers: AhdMarker[];
15
+ onPick: (marker: AhdMarker) => void;
16
+ };
17
+ /** Renders the clickable marker rectangles + `+` badges over the page backdrop. */
18
+ export default function AhdMarkerLayer({ markers, onPick }: Props): React.JSX.Element;
19
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Helpers for reading the on-screen bounds of elements inside the page-backdrop iframe.
3
+ *
4
+ * Newer saved pages wrap each block in a real `<div id="ahd-..." class="ahd-block-wrapper">`.
5
+ * Older pages still use `display:contents` wrappers whose own rect is 0×0 — for those we
6
+ * fall back to the wrapper's first child. Callers never need to know which layout is in play.
7
+ */
8
+ export type Bounds = {
9
+ left: number;
10
+ top: number;
11
+ width: number;
12
+ height: number;
13
+ };
14
+ /** Returns the element's own rect, or its first child's rect if the element is layout-less. */
15
+ export declare function getVisibleRect(el: Element | null): DOMRect | null;
16
+ /** Convert an iframe-viewport rect into its host container's content-coordinate bounds. */
17
+ export declare function rectToContainerBounds(iframe: HTMLIFrameElement, rect: DOMRect): Bounds;
18
+ /** Shortcut: element bounds expressed in the outer container's content coordinates. */
19
+ export declare function getContainerBounds(iframe: HTMLIFrameElement, el: Element | null): Bounds | null;
20
+ /**
21
+ * Walk up from a node to the nearest ancestor whose `id` starts with `ahd-`. Stops at `root`.
22
+ * Used by both the click-pick handlers and the drag-snap handler.
23
+ */
24
+ export declare function findAhdAncestor(el: Element | null, root: Element | null): HTMLElement | null;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Builds the `srcDoc` HTML for the iframe that shows the saved page as the page-tour
3
+ * editor backdrop. Strips anything that would execute the live tour on top of the preview
4
+ * (our injected integration block, stray <script>/<noscript> tags).
5
+ */
6
+ export declare function buildIframeSrcDoc(pageHtml: string): string;
@@ -0,0 +1,28 @@
1
+ import { SelectionBox } from '../types';
2
+ export type AhdMarker = {
3
+ id: string;
4
+ top: number;
5
+ left: number;
6
+ width: number;
7
+ height: number;
8
+ };
9
+ type Options = {
10
+ /** Ref to the scroll container (iframe's offsetParent). */
11
+ getScrollContainer: () => HTMLElement | null;
12
+ /** Whether the page-tour UI is active (pageHtml truthy). */
13
+ enabled: boolean;
14
+ /** Index of the currently edited step (written to the selectors array on pick). */
15
+ activeStepIndex: number;
16
+ /** Setter for the green selection rectangle. */
17
+ setSelectionBox: (box: SelectionBox | null) => void;
18
+ };
19
+ /**
20
+ * Encapsulates everything needed to show + interact with the element-id markers
21
+ * (blue dashed rectangles + `+` badges) that sit on top of the page-backdrop iframe.
22
+ */
23
+ export declare function useAhdMarkers({ getScrollContainer, enabled, activeStepIndex, setSelectionBox, }: Options): {
24
+ markers: AhdMarker[];
25
+ measure: (iframeArg?: HTMLIFrameElement | null) => void;
26
+ pick: (marker: AhdMarker) => void;
27
+ };
28
+ export {};
@@ -0,0 +1,36 @@
1
+ export interface Position {
2
+ left: number;
3
+ top: number;
4
+ }
5
+ export interface Point {
6
+ x: number;
7
+ y: number;
8
+ }
9
+ export interface SelectionBox {
10
+ top: number;
11
+ left: number;
12
+ width: number;
13
+ height: number;
14
+ }
15
+ export interface SpaceAvailability {
16
+ top: number;
17
+ bottom: number;
18
+ left: number;
19
+ right: number;
20
+ canFitTop: boolean;
21
+ canFitBottom: boolean;
22
+ canFitLeft: boolean;
23
+ canFitRight: boolean;
24
+ canFitTopLeft: boolean;
25
+ canFitTopRight: boolean;
26
+ canFitBottomLeft: boolean;
27
+ canFitBottomRight: boolean;
28
+ }
29
+ export interface PositionWithPriority extends Position {
30
+ priority: number;
31
+ }
32
+ export interface DragState {
33
+ isDragging: boolean;
34
+ dragStart: Point | null;
35
+ dragEnd: Point | null;
36
+ }
@@ -0,0 +1 @@
1
+ export * from './positioningUtils';
@@ -0,0 +1,16 @@
1
+ import { Position, SelectionBox, SpaceAvailability } from '../types';
2
+ export declare const normalizeCssSize: (value: any) => string | undefined;
3
+ export declare const calculateGap: (containerWidth: number, containerHeight: number) => number;
4
+ export declare const detectCornerPosition: (selectionBox: SelectionBox, containerWidth: number, containerHeight: number, threshold?: number) => string | null;
5
+ export declare const checkOverlap: (panelLeft: number, panelTop: number, panelWidth: number, panelHeight: number, selectionLeft: number, selectionTop: number, selectionWidth: number, selectionHeight: number) => boolean;
6
+ export declare const calculateSpaceAvailability: (selectionBox: SelectionBox, containerWidth: number, containerHeight: number, panelWidth: number, panelHeight: number, gap: number) => SpaceAvailability;
7
+ export declare const determinePreferredPosition: (behaviourPosition: string, selectionBox: SelectionBox, containerWidth: number, containerHeight: number, spaceAvailability: SpaceAvailability) => string;
8
+ export declare const calculatePositionByStrategy: (position: string, selectionBox: SelectionBox, panelWidth: number, panelHeight: number, gap: number) => Position;
9
+ export declare const findBestNonOverlappingPosition: (selectionBox: SelectionBox, panelWidth: number, panelHeight: number, containerWidth: number, containerHeight: number, gap: number, spaceAvailability: SpaceAvailability, allowClamped: boolean) => (Position & {
10
+ name: string;
11
+ }) | null;
12
+ export declare const determineFinalPosition: (preferredPosition: string, spaceAvailability: SpaceAvailability) => string;
13
+ export declare const calculatePanelPosition: (selectionBox: SelectionBox, panelWidth: number, panelHeight: number, containerWidth: number, containerHeight: number, behaviourPosition: string) => {
14
+ position: Position;
15
+ finalPosition: string;
16
+ };
@@ -0,0 +1,10 @@
1
+ export declare enum PageTypes {
2
+ Tooltip = "tooltip",
3
+ Tour = "tour",
4
+ Page = "page",
5
+ Demo = "demo",
6
+ Appbanner = "app-banner",
7
+ Faq = "faq",
8
+ Menu = "menu",
9
+ Template = "template"
10
+ }
@@ -0,0 +1,10 @@
1
+ type MenuItem = {
2
+ id?: string;
3
+ href?: string;
4
+ children?: MenuItem[];
5
+ };
6
+ export declare const seedMenuHrefBaselineIfMissing: (menuId: string, items: MenuItem[] | null | undefined) => void;
7
+ export declare const refreshMenuHrefBaseline: (menuId: string, items: MenuItem[]) => void;
8
+ export declare const hasLocalMenuHrefEdits: (menuId: string, items: MenuItem[] | null | undefined) => boolean;
9
+ export declare const clearMenuHrefBaselines: () => void;
10
+ export {};
@@ -0,0 +1 @@
1
+ export declare const saveMenuHrefEdits: (_doc: Record<string, any>) => Promise<void>;
@@ -0,0 +1,21 @@
1
+ type UseSaveHandlerReturn = {
2
+ onShowHtml: (type: 'live' | 'draft' | null, options?: {
3
+ injectTabsScrollSyncScript?: boolean;
4
+ injectCarouselScript?: boolean;
5
+ schedule?: {
6
+ startDate?: Date | null;
7
+ endDate?: Date | null;
8
+ };
9
+ }) => Promise<any>;
10
+ loading: boolean | undefined;
11
+ };
12
+ type RecordType = {
13
+ title?: string;
14
+ content?: string;
15
+ sections: Array<{
16
+ id: string;
17
+ }>;
18
+ [key: string]: any;
19
+ };
20
+ declare const useSaveHandler: (record?: RecordType, activeSectionIndex?: number) => UseSaveHandlerReturn;
21
+ export default useSaveHandler;
@@ -0,0 +1,3 @@
1
+ import { PageTypes } from './constants';
2
+ declare const useGetPageType: () => PageTypes.Tooltip | PageTypes.Tour | PageTypes.Page | PageTypes.Demo | PageTypes.Appbanner | PageTypes.Faq | PageTypes.Template;
3
+ export default useGetPageType;
@@ -0,0 +1,8 @@
1
+ declare const usePreviewScreen: () => {
2
+ isPreviewOpen: boolean;
3
+ onTogglePreview: () => void;
4
+ isCodeOpen: boolean;
5
+ onToggleCode: () => void;
6
+ enteredFromPreview: boolean;
7
+ };
8
+ export default usePreviewScreen;
@@ -0,0 +1,12 @@
1
+ import { PageSectionType, SectionDraft } from './pageSections';
2
+ type Props = {
3
+ open: any;
4
+ onClose: () => void;
5
+ onAdd: (section: SectionDraft) => void;
6
+ initialValues?: {
7
+ title: string;
8
+ sectionType: PageSectionType;
9
+ };
10
+ };
11
+ declare const AddSectionDialog: ({ open, onClose, onAdd, initialValues }: Props) => import("react").JSX.Element;
12
+ export default AddSectionDialog;
@@ -0,0 +1,16 @@
1
+ import { TReaderDocument } from '../../../email-builder-core/index.ts';
2
+ export declare function ensureFullHtmlDocument(html: string): string;
3
+ export declare function getBodyMarkup(html: string): string;
4
+ /**
5
+ * Renders a page document (or pre-rendered HTML) inside an iframe that
6
+ * auto-sizes to its content height. A ResizeObserver measures the content's
7
+ * natural layout at the iframe's current width (so the page's own @media
8
+ * queries fire correctly) and sets the iframe height to exactly fit — meaning
9
+ * the iframe never shows its own scrollbar and never leaves blank space below
10
+ * short content. The surrounding container is responsible for any scrolling.
11
+ */
12
+ export declare function PagePreviewFrame({ savedContent, document, }: {
13
+ savedContent?: string | null;
14
+ document: TReaderDocument;
15
+ }): import("react").JSX.Element;
16
+ export default PagePreviewFrame;