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,77 @@
1
+ import { z } from 'zod';
2
+ declare const PricingAccordionItemSchema: z.ZodObject<{
3
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4
+ cardChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
5
+ detailChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
6
+ }, z.core.$strip>;
7
+ declare const PricingAccordionPropsSchema: z.ZodObject<{
8
+ style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9
+ backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10
+ borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11
+ borderWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
12
+ borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
13
+ topLeft: z.ZodNumber;
14
+ topRight: z.ZodNumber;
15
+ bottomRight: z.ZodNumber;
16
+ bottomLeft: z.ZodNumber;
17
+ }, z.core.$strip>]>>>;
18
+ padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
19
+ top: z.ZodNumber;
20
+ bottom: z.ZodNumber;
21
+ right: z.ZodNumber;
22
+ left: z.ZodNumber;
23
+ }, z.core.$strip>>>;
24
+ cardGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
25
+ equalCardWidth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
26
+ cardBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27
+ cardBorderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28
+ cardBorderWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
29
+ cardBorderRadius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
30
+ cardPadding: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
31
+ cardShadow: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
+ cardTextColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ cardFontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
34
+ cardFontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
35
+ cardFontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
+ cardTextAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
37
+ right: "right";
38
+ left: "left";
39
+ center: "center";
40
+ }>>>;
41
+ cardHoverBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
42
+ cardHoverShadow: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43
+ activeCardBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44
+ activeCardBorderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
+ activeCardShadow: z.ZodNullable<z.ZodOptional<z.ZodString>>;
46
+ activeCardTextColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
47
+ arrowColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
48
+ arrowActiveColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
49
+ arrowSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
50
+ detailBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
51
+ detailBorderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
52
+ detailBorderWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
53
+ detailBorderRadius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
54
+ detailPadding: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
55
+ detailShadow: z.ZodNullable<z.ZodOptional<z.ZodString>>;
56
+ detailGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
57
+ rightCardWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
58
+ cardListWidth: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
59
+ panelGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
60
+ }, z.core.$strip>>>;
61
+ props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
62
+ items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
64
+ cardChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
65
+ detailChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
66
+ }, z.core.$strip>>>>;
67
+ defaultOpenIndex: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
68
+ accordionEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
69
+ detailPosition: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
70
+ bottom: "bottom";
71
+ right: "right";
72
+ }>>>;
73
+ }, z.core.$strip>>>;
74
+ }, z.core.$strip>;
75
+ export type PricingAccordionProps = z.infer<typeof PricingAccordionPropsSchema>;
76
+ export type PricingAccordionItem = z.infer<typeof PricingAccordionItemSchema>;
77
+ export default PricingAccordionPropsSchema;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { RatingProps } from './RatingPropsSchema';
3
+ export default function RatingEditor({ style, props }: RatingProps): React.JSX.Element;
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ declare const RatingPropsSchema: z.ZodObject<{
3
+ style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4
+ starColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5
+ starEmptyColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6
+ starSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
7
+ starGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
8
+ textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
+ fontSize: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
10
+ fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11
+ fontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12
+ textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
13
+ right: "right";
14
+ left: "left";
15
+ center: "center";
16
+ }>>>;
17
+ padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
18
+ top: z.ZodNumber;
19
+ bottom: z.ZodNumber;
20
+ right: z.ZodNumber;
21
+ left: z.ZodNumber;
22
+ }, z.core.$strip>>>;
23
+ }, z.core.$strip>>>;
24
+ props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
25
+ value: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
26
+ max: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
27
+ showValue: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
28
+ }, z.core.$strip>>>;
29
+ }, z.core.$strip>;
30
+ export type RatingProps = z.infer<typeof RatingPropsSchema>;
31
+ export default RatingPropsSchema;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { SkipLinkProps } from '../../../../email-builder-core/blocks/SkipLink/SkipLinkPropsSchema';
3
+ export default function SkipLinkEditor(props: SkipLinkProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { SkipLinkPropsSchema as default, type SkipLinkProps, SkipLinkDefaults, } from '../../../../email-builder-core/blocks/SkipLink/SkipLinkPropsSchema';
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { TabsBlockProps } from './TabsBlockPropsSchema';
3
+ export default function TabsBlockEditor({ style, props }: TabsBlockProps): React.JSX.Element;
@@ -0,0 +1,53 @@
1
+ import { z } from 'zod';
2
+ declare const TabsBlockItemSchema: z.ZodObject<{
3
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4
+ contentChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
5
+ }, z.core.$strip>;
6
+ declare const TabsBlockPropsSchema: z.ZodObject<{
7
+ style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8
+ backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
+ borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10
+ borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
11
+ topLeft: z.ZodNumber;
12
+ topRight: z.ZodNumber;
13
+ bottomRight: z.ZodNumber;
14
+ bottomLeft: z.ZodNumber;
15
+ }, z.core.$strip>]>>>;
16
+ padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17
+ top: z.ZodNumber;
18
+ bottom: z.ZodNumber;
19
+ right: z.ZodNumber;
20
+ left: z.ZodNumber;
21
+ }, z.core.$strip>>>;
22
+ tabActiveColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
23
+ tabTextColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
24
+ tabBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
25
+ tabGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
26
+ contentGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
27
+ navBorderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28
+ fontSize: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
29
+ activeFontSize: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
30
+ showActiveBorder: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
31
+ fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
+ fontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ }, z.core.$strip>>>;
34
+ props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
35
+ orientation: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
36
+ horizontal: "horizontal";
37
+ vertical: "vertical";
38
+ }>>>;
39
+ behavior: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
40
+ showSelectedSection: "showSelectedSection";
41
+ scrollToSelectedSection: "scrollToSelectedSection";
42
+ }>>>;
43
+ activeTabIndex: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
44
+ stickyNav: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
45
+ items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
46
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
47
+ contentChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
48
+ }, z.core.$strip>>>>;
49
+ }, z.core.$strip>>>;
50
+ }, z.core.$strip>;
51
+ export type TabsBlockProps = z.infer<typeof TabsBlockPropsSchema>;
52
+ export type TabsBlockItem = z.infer<typeof TabsBlockItemSchema>;
53
+ export default TabsBlockPropsSchema;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ type BlockMenuButtonProps = {
3
+ label: string;
4
+ icon: React.ReactNode;
5
+ onClick: () => void;
6
+ highlighted?: boolean;
7
+ };
8
+ export default function BlockTypeButton({ label, icon, onClick, highlighted }: BlockMenuButtonProps): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { TEditorBlock } from '../../../../editor/core';
2
+ export declare const BlockInsertAboveContext: import('react').Context<(block: TEditorBlock) => void>;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { TEditorBlock } from '../../../../editor/core';
3
+ type BlocksMenuProps = {
4
+ anchorEl: HTMLElement | null;
5
+ setAnchorEl: (v: HTMLElement | null) => void;
6
+ onSelect: (block: TEditorBlock) => void;
7
+ onPaste?: () => void;
8
+ };
9
+ export default function BlocksMenu({ anchorEl, setAnchorEl, onSelect, onPaste }: BlocksMenuProps): React.JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ buttonElement: HTMLElement | null;
4
+ onClick: () => void;
5
+ };
6
+ export default function DividerButton({ buttonElement, onClick }: Props): React.ReactPortal;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ onClick: () => void;
4
+ };
5
+ export default function PlaceholderButton({ onClick }: Props): React.JSX.Element;
6
+ export {};
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ export type ScopeOption = {
3
+ icon: React.ReactNode;
4
+ label: string;
5
+ isPrimary?: boolean;
6
+ onClick: () => void;
7
+ };
8
+ type Props = {
9
+ anchorEl: HTMLElement | null;
10
+ options: [ScopeOption, ScopeOption];
11
+ onClose: () => void;
12
+ };
13
+ export default function ScopePickerMenu({ anchorEl, options, onClose }: Props): React.JSX.Element;
14
+ export {};
@@ -0,0 +1,14 @@
1
+ type BrandButton = any;
2
+ type BrandingConfig = any;
3
+ type ButtonBlockData = {
4
+ props: Record<string, any>;
5
+ style: Record<string, any>;
6
+ };
7
+ export declare function buildButtonBlockDataFromBrand(brandButton: BrandButton | undefined, overrides?: {
8
+ props?: Record<string, any>;
9
+ style?: Record<string, any>;
10
+ }): ButtonBlockData;
11
+ export declare const selectBrandButtonFromSettings: (settings: {
12
+ branding?: Partial<BrandingConfig>;
13
+ } | null | undefined) => BrandButton | undefined;
14
+ export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { TEditorBlock } from '../../../../editor/core';
3
+ type TButtonProps = {
4
+ label: string;
5
+ icon: React.JSX.Element;
6
+ block: () => TEditorBlock;
7
+ };
8
+ export declare const useButtons: () => TButtonProps[];
9
+ export {};
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { TEditorBlock } from '../../../../editor/core';
3
+ export type ContainerNeighbor = {
4
+ id: string;
5
+ insertAt: 'start' | 'end';
6
+ };
7
+ type Props = {
8
+ placeholder?: boolean;
9
+ onSelect: (block: TEditorBlock) => void;
10
+ onPaste?: () => void;
11
+ containerNeighbors?: ContainerNeighbor[];
12
+ onInsertIntoContainer?: (block: TEditorBlock, containerId: string, insertAt: 'start' | 'end') => void;
13
+ insertAboveCallback?: (block: TEditorBlock) => void;
14
+ };
15
+ export default function AddBlockButton({ onSelect, onPaste, placeholder, containerNeighbors, onInsertIntoContainer, insertAboveCallback, }: Props): React.JSX.Element;
16
+ export {};
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { TEditorBlock } from '../../../editor/core';
3
+ export declare function autoStartInlineEditing(blockId: string, block: TEditorBlock): void;
4
+ export type EditorChildrenChange = {
5
+ blockId: string;
6
+ block: TEditorBlock;
7
+ childrenIds: string[];
8
+ };
9
+ export type EditorChildrenIdsProps = {
10
+ childrenIds: string[] | null | undefined;
11
+ onChange: (val: EditorChildrenChange) => void;
12
+ maxChildren?: number;
13
+ showContainerScopePrompt?: boolean;
14
+ insertAboveCallback?: (block: TEditorBlock) => void;
15
+ };
16
+ export default function EditorChildrenIds({ childrenIds, onChange, maxChildren, showContainerScopePrompt, insertAboveCallback, }: EditorChildrenIdsProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export declare function EditableTextBlock(blockProps: any): React.JSX.Element;
3
+ export declare function EditableHeadingBlock(blockProps: any): React.JSX.Element;
4
+ export declare function EditableButtonBlock(blockProps: any): React.JSX.Element;
5
+ export declare function EditableMdxBlock(blockProps: any): React.JSX.Element;
6
+ export declare function EditableHtmlBlock(blockProps: any): React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ type FullscreenOverlayProps = {
3
+ /** The original inline-edited contentEditable in the canvas. */
4
+ editorEl: HTMLElement | null;
5
+ /** The fullscreen contentEditable element, mirrored as state by the parent. */
6
+ fullscreenEditorEl: HTMLElement | null;
7
+ /** Callback ref so the parent can subscribe to the live DOM node. */
8
+ registerEditor: (el: HTMLDivElement | null) => void;
9
+ };
10
+ /**
11
+ * The portaled fullscreen edit surface. A separate contentEditable whose
12
+ * content is mirrored from `editorEl`; on input we sync back so the original
13
+ * block's InlineEditableOverlay picks up the change via its input listener.
14
+ *
15
+ * We don't move the original editor element here — DOM moves fight React
16
+ * reconciliation and broke content rendering in earlier attempts. Instead we
17
+ * keep two editable surfaces and bridge them by HTML copying.
18
+ */
19
+ export declare function FullscreenOverlay({ editorEl, fullscreenEditorEl, registerEditor, }: FullscreenOverlayProps): React.JSX.Element;
20
+ export {};
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ export { FONT_FAMILIES } from '../fontFamily';
3
+ /** First family name out of a CSS font-family stack — used to match the
4
+ * caret's live `font-family` (which the browser reports as the resolved
5
+ * first family) against the options in FONT_FAMILIES. */
6
+ export declare const primaryFamily: (cssFontFamily: string) => string;
7
+ export declare const FONT_SIZES: Array<{
8
+ label: string;
9
+ px: number;
10
+ }>;
11
+ export declare const LINE_HEIGHTS: Array<{
12
+ label: string;
13
+ value: string;
14
+ }>;
15
+ export declare const BLOCK_STYLES: Array<{
16
+ label: string;
17
+ tag: string;
18
+ }>;
19
+ export declare const BLOCK_TAG_SHORT_LABEL: Record<string, string>;
20
+ export declare const BLOCK_LEVEL_TAGS: Set<string>;
21
+ export declare const BLOCK_PREVIEW_STYLE: Record<string, React.CSSProperties>;
22
+ export declare const COMPACT_THRESHOLD = 1180;
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ /** Called with the entered URL + alt text when the user hits Insert. */
6
+ onInsert: (src: string, alt?: string) => void;
7
+ };
8
+ /**
9
+ * Insert Image dialog for the inline text toolbar.
10
+ *
11
+ * Replaces the host-only MediaGalleryDialog that the editor-sample originally
12
+ * relied on — the standalone editor doesn't ship a media library backend,
13
+ * so we surface the two things a user actually needs to add an image inline:
14
+ * a source URL (paste from anywhere) and an alt text (accessibility).
15
+ *
16
+ * Fresh state per open — the fields don't remember what the user last
17
+ * inserted, so each invocation is a clean slate.
18
+ */
19
+ export declare function ImageDialog({ open, onClose, onInsert }: Props): React.JSX.Element;
20
+ export {};
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { LinkInsertParams } from '../types';
3
+ type Props = {
4
+ open: boolean;
5
+ /** Pre-fill for the "Text to display" field (typically the current selection). */
6
+ defaultText: string;
7
+ /** Pre-fill for the URL field — non-empty when editing an existing <a>. */
8
+ defaultUrl?: string;
9
+ /** The existing link's target — preserved on save when editing. Fresh
10
+ * links always get target="_blank" since the previous "Open in new
11
+ * window" UI was removed. */
12
+ defaultNewWindow?: boolean;
13
+ /** Flip title + button label to edit mode when standing on an existing link. */
14
+ isEditing?: boolean;
15
+ onClose: () => void;
16
+ onInsert: (params: LinkInsertParams) => void;
17
+ /** Strip the link wrapper, keeping its text. Only shown when editing an
18
+ * existing link (the dialog has nothing to remove on a fresh insert). */
19
+ onRemove?: () => void;
20
+ };
21
+ /** Insert Link modal — matches the sidebar's Summernote dialog. */
22
+ export declare function LinkDialog({ open, defaultText, defaultUrl, defaultNewWindow, isEditing, onClose, onInsert, onRemove, }: Props): React.JSX.Element;
23
+ export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ onInsert: (url: string) => void;
6
+ };
7
+ /** Insert Video modal — supports YouTube/Vimeo/Loom/Wistia URLs or direct .mp4 links. */
8
+ export declare function VideoDialog({ open, onClose, onInsert }: Props): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Walks up the DOM from `el` and returns the closest ancestor that has a
3
+ * scrollable overflow style. Used by the toolbar to measure the canvas width
4
+ * (for the overflow "…" menu) and to observe canvas resizes.
5
+ */
6
+ export declare function findScrollableAncestor(el: HTMLElement | null): HTMLElement | null;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Every interactive element inside the floating toolbar must call this on
4
+ * mousedown — otherwise the browser shifts focus off the contentEditable,
5
+ * collapses the selection, and execCommand has nothing to act on.
6
+ */
7
+ export declare const stopFocusSteal: (e: React.MouseEvent | React.PointerEvent) => void;
@@ -0,0 +1,19 @@
1
+ import { FormatSnapshot } from './types';
2
+ /** Turn raw CSS font names like "MODERN_SANS" or "open-sans" into a friendly
3
+ * "Modern Sans" / "Open Sans" so the dropdown label reads naturally.
4
+ */
5
+ export declare function friendlyFontLabel(font: string): string;
6
+ /**
7
+ * Reads the live document state at the caret and returns the user-facing
8
+ * labels for the block-style / font-name / font-size dropdowns. Only fields
9
+ * that can be derived from the live DOM are returned — toggle states (B / I /
10
+ * U / etc.) come from queryCommandState and live in useFormatState.
11
+ *
12
+ * For non-collapsed selections this walks every text node the range touches
13
+ * and aggregates their computed font sizes / families. If they all agree we
14
+ * show that value; if they disagree (mixed selection) we fall back to the
15
+ * selection's focus endpoint — that's where the caret lands after a toolbar
16
+ * command, so the label reflects what was just applied even when the rest of
17
+ * the original selection had a different size.
18
+ */
19
+ export declare function readLiveFormat(editorEl: HTMLElement | null): Partial<FormatSnapshot>;
@@ -0,0 +1,35 @@
1
+ type UseCodeViewParams = {
2
+ enabled: boolean;
3
+ editorEl: HTMLElement | null;
4
+ fullscreen: boolean;
5
+ fullscreenEditorEl: HTMLElement | null;
6
+ /** Called when the user requests to leave code view (ESC or focus-out). */
7
+ onRequestExit: () => void;
8
+ };
9
+ type UseCodeViewResult = {
10
+ textareaEl: HTMLTextAreaElement | null;
11
+ };
12
+ /**
13
+ * Mounts a code-view textarea while `enabled` is true, mirroring
14
+ * summernote-lite's codeview module:
15
+ *
16
+ * activate() prettify(html(editor)) -> textarea.val
17
+ * textarea.height = editor.height
18
+ * editor.style.display = 'none'
19
+ * textarea.focus()
20
+ * deactivate() purify(textarea.val) || emptyPara -> editor.innerHTML
21
+ * editor.style.display restored; editor.focus()
22
+ * ESC deactivate
23
+ * blur out deactivate AND end inline-edit session
24
+ *
25
+ * The textarea is inserted next to the currently *visible* editor (fullscreen
26
+ * overlay when active, original block otherwise) so toggling code view inside
27
+ * fullscreen doesn't hide it behind the overlay.
28
+ *
29
+ * Per-keystroke sync into the original editor is preserved so the existing
30
+ * commit-on-blur flow in `InlineEditableOverlay` (which reads the
31
+ * contentEditable's innerHTML on commit) picks up code-view edits without
32
+ * needing changes elsewhere.
33
+ */
34
+ export declare function useCodeView({ enabled, editorEl, fullscreen, fullscreenEditorEl, onRequestExit, }: UseCodeViewParams): UseCodeViewResult;
35
+ export {};
@@ -0,0 +1,18 @@
1
+ import { ToolbarCommandsApi } from './useToolbarCommands';
2
+ /**
3
+ * Format painter: capture character formatting from one selection and apply it
4
+ * to subsequent selections.
5
+ *
6
+ * - Click button (or call activate()): captures from the current non-collapsed
7
+ * selection, enters single-shot mode. The next non-collapsed selection in
8
+ * the editor receives the captured format, then painter deactivates.
9
+ * - Double-click button: same capture but sticky — stays active until cancel().
10
+ * - Esc cancels.
11
+ */
12
+ export declare function useFormatPainter(editorEl: HTMLElement | null, open: boolean, cmd: ToolbarCommandsApi): {
13
+ active: boolean;
14
+ sticky: boolean;
15
+ onClick: () => void;
16
+ onDoubleClick: () => void;
17
+ cancel: () => void;
18
+ };
@@ -0,0 +1,11 @@
1
+ import { FormatSnapshot } from '../types';
2
+ /**
3
+ * Tracks toggle states (B/I/U/etc.) via queryCommandState plus the live
4
+ * caret-derived labels (block tag / font name / font size) from readLiveFormat.
5
+ * Re-reads on every `selectionchange`, but only when the live selection is
6
+ * actually inside the editor (avoids the buttons lighting up from selections
7
+ * elsewhere on the page). Also re-reads on `input` so toolbar commands that
8
+ * mutate the DOM without moving the selection (e.g. font size) refresh the
9
+ * displayed label.
10
+ */
11
+ export declare function useFormatState(open: boolean, editorEl: HTMLElement | null): FormatSnapshot;
@@ -0,0 +1,24 @@
1
+ type UseFullscreenParams = {
2
+ /** The original inline-edited contentEditable in the canvas. */
3
+ editorEl: HTMLElement | null;
4
+ };
5
+ type UseFullscreenResult = {
6
+ fullscreen: boolean;
7
+ setFullscreen: (value: boolean) => void;
8
+ fullscreenEditorEl: HTMLDivElement | null;
9
+ setFullscreenEditorEl: (el: HTMLDivElement | null) => void;
10
+ };
11
+ /**
12
+ * Owns the fullscreen state for the inline-edit toolbar.
13
+ *
14
+ * - Mirrors `editorEl.innerHTML` into the portaled fullscreen contentEditable
15
+ * on entry, then parks the caret at the end so the user picks up where
16
+ * they left off.
17
+ * - On exit, refocuses the original editor so its `blur` fires when the user
18
+ * next clicks another block — otherwise the inline-edit session never ends
19
+ * and the toolbar lingers over the wrong block.
20
+ * - ESC anywhere exits fullscreen (captured at document level so dialogs
21
+ * inside the overlay can still consume their own ESC).
22
+ */
23
+ export declare function useFullscreen({ editorEl }: UseFullscreenParams): UseFullscreenResult;
24
+ export {};
@@ -0,0 +1,66 @@
1
+ import { LinkInsertParams } from '../types';
2
+ /** Snapshot of an existing anchor under the saved/live selection — populated
3
+ * by `getSavedSelectionLink` and used by the Link dialog to prefill its
4
+ * fields when the user opens the dialog while standing on a link. */
5
+ export type SavedLinkInfo = {
6
+ text: string;
7
+ url: string;
8
+ newWindow: boolean;
9
+ };
10
+ export type ToolbarCommandsApi = {
11
+ /** Currently saved selection range (latest one observed inside the editor). */
12
+ savedRangeRef: React.MutableRefObject<Range | null>;
13
+ runCommand: (cmd: string, value?: string) => void;
14
+ /** Like `runCommand('formatBlock', '<TAG>')`, but for blockquote/pre also
15
+ * writes inline styles onto the produced element so the visual treatment
16
+ * ships with the stored HTML (no dependency on global CSS, works in edit
17
+ * mode, canvas, and the preview iframe). */
18
+ applyBlockStyle: (tag: string) => void;
19
+ /**
20
+ * Like runCommand, but restores the saved selection WITHOUT focusing the
21
+ * editor — used by the color picker so dragging on the saturation canvas
22
+ * (or typing in the hex input) doesn't lose focus to the editor on every
23
+ * onChange tick.
24
+ */
25
+ applyColor: (cmd: string, value: string) => void;
26
+ applyFontSize: (px: number) => void;
27
+ /** Set CSS line-height on every block-level ancestor the current selection
28
+ * touches. Pass an empty string to clear back to the inherited default. */
29
+ applyLineHeight: (value: string) => void;
30
+ /** Override the background color of the <pre> code block at the caret.
31
+ * Pass an empty string (or omit) to reset back to the default dark theme. */
32
+ applyCodeBackground: (value: string) => void;
33
+ insertHtml: (html: string) => void;
34
+ handleInsertLink: (p: LinkInsertParams) => void;
35
+ /** Unwrap the <a> at the current selection, keeping its text content. */
36
+ handleRemoveLink: () => void;
37
+ handleInsertImage: (src: string, alt?: string) => void;
38
+ handleInsertVideo: (url: string) => void;
39
+ handleInsertTable: (rows: number, cols: number) => void;
40
+ /** True when the saved selection sits inside a table cell. */
41
+ isInTableCell: () => boolean;
42
+ /** Insert a row above/below the current cell's row. */
43
+ handleTableInsertRow: (where: 'above' | 'below') => void;
44
+ /** Insert a column left/right of the current cell's column. */
45
+ handleTableInsertColumn: (where: 'left' | 'right') => void;
46
+ /** Delete the current cell's row (drops the table if it's the last row). */
47
+ handleTableDeleteRow: () => void;
48
+ /** Delete the current cell's column (drops the table if it's the last column). */
49
+ handleTableDeleteColumn: () => void;
50
+ /** Delete the whole table at the caret. */
51
+ handleTableDelete: () => void;
52
+ handleInsertCode: () => void;
53
+ handleInsertHorizontalRule: () => void;
54
+ handleSpeechResult: (text: string) => void;
55
+ /** Plain-text of the currently saved selection (for prefilling Link dialog). */
56
+ getSavedSelectionText: () => string;
57
+ /** Existing-link info when the selection sits inside an <a>, else null. */
58
+ getSavedSelectionLink: () => SavedLinkInfo | null;
59
+ };
60
+ /**
61
+ * Bundles every editor mutation behind a single API. Each command restores
62
+ * the saved selection before running, then refreshes the saved range so the
63
+ * next command lands in the right place (e.g. insertImage moves the caret
64
+ * past the new node).
65
+ */
66
+ export declare function useToolbarCommands(editorEl: HTMLElement | null, open: boolean): ToolbarCommandsApi;
@@ -0,0 +1,21 @@
1
+ import { ToolbarPosition } from '../types';
2
+ type DragApi = {
3
+ /** User-dragged offset (null = follow the block automatically). */
4
+ manualOffset: ToolbarPosition | null;
5
+ /** True while the user is actively dragging the grip handle. */
6
+ dragging: boolean;
7
+ /** Reset the manual offset back to auto-anchor (the block's "just above"). */
8
+ reset: () => void;
9
+ /** Handler to wire to the drag grip's onMouseDown. */
10
+ handleDragStart: (ev: React.MouseEvent) => void;
11
+ };
12
+ /**
13
+ * Encapsulates the drag-handle behavior: tracks mouse delta from the
14
+ * mousedown anchor, clamps the resulting position to the viewport, and
15
+ * exposes a `manualOffset` that overrides the auto-positioner. Resets when
16
+ * the edited block (or open state) changes.
17
+ */
18
+ export declare function useToolbarDrag(toolbarEl: HTMLElement | null,
19
+ /** Reset trigger — pass anything that should restart the drag tracking. */
20
+ resetKey: unknown): DragApi;
21
+ export {};