email-builder-online 4.0.1 → 4.1.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.
- package/LICENSE +661 -21
- package/README.md +66 -63
- package/dist/index.cjs +330 -284
- package/dist/index.d.ts +4055 -6
- package/dist/index.mjs +57595 -48372
- package/dist/standalone.js +1401 -0
- package/dist/standalone.mjs +159973 -0
- package/dist/style.css +1 -1
- package/package.json +31 -14
- package/vite.config.standalone.ts +95 -0
- package/dist/editor-sample/src/App/ComponentTree/ComponentTreeColumnIcons.d.ts +0 -19
- package/dist/editor-sample/src/App/ComponentTree/ComponentTreeColumnIcons.d.ts.map +0 -1
- package/dist/editor-sample/src/App/ComponentTree/ComponentTreePanel.d.ts +0 -2
- package/dist/editor-sample/src/App/ComponentTree/ComponentTreePanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/ComponentTree/ToggleComponentTreeButton.d.ts +0 -2
- package/dist/editor-sample/src/App/ComponentTree/ToggleComponentTreeButton.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/index.d.ts +0 -5
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/index.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ButtonSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ColumnsContainerSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ContainerSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/DividerSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/HeadingSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/HtmlSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/NotionTextSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/NotionTextSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/SocialSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/SocialSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/SpacerSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BaseSidebarPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/containers/StickyWrapper.d.ts +0 -12
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/containers/StickyWrapper.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/containers/Wrapper.d.ts +0 -36
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/containers/Wrapper.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BackgroundImageInput.d.ts +0 -11
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BackgroundImageInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BooleanInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BorderInput.d.ts +0 -16
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/BorderInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts +0 -16
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/BaseColorInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/LinksInput.d.ts +0 -13
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/LinksInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +0 -10
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts +0 -12
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Swatch.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts +0 -16
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/index.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts +0 -15
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColumnWidthsInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ContentAligment.d.ts +0 -7
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ContentAligment.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontFamily.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts +0 -11
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontSizeInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/FontWeightInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/HeightInput.d.ts +0 -9
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/HeightInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ImageInput.d.ts +0 -9
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ImageInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputSizeButton.d.ts +0 -35
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputSizeButton.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputSizeSelector.d.ts +0 -7
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputSizeSelector.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputWidth.d.ts +0 -12
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InputWidth.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InspectorPillToggleGroup.d.ts +0 -14
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/InspectorPillToggleGroup.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LabelProperty.d.ts +0 -6
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LabelProperty.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LayoutSelectorInput.d.ts +0 -15
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LayoutSelectorInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LineHeightInput.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/LineHeightInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts +0 -17
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PaddingInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PropertyLabelWithWarning.d.ts +0 -9
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/PropertyLabelWithWarning.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts +0 -10
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/RadioGroupInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SelectScreen.d.ts +0 -3
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SelectScreen.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/Shape.d.ts +0 -14
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/Shape.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts +0 -15
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SliderInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SocialMediaInput.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/SocialMediaInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextAlignInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts +0 -10
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextDimensionInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts +0 -14
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WarningIcon.d.ts +0 -7
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WarningIcon.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WidthInput.d.ts +0 -10
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/WidthInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ai-image-generation.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ai-image-generation.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/CloseButton.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/CloseButton.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/ErrorDialog.d.ts +0 -9
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/ErrorDialog.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/ImagePreview.d.ts +0 -7
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/ImagePreview.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/PromptInput.d.ts +0 -8
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/PromptInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/Select.d.ts +0 -4
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/Select.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/SkeletonImage.d.ts +0 -2
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/SkeletonImage.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/inputStyles.d.ts +0 -6
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/components/inputStyles.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/hooks.d.ts +0 -5
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/hooks.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts +0 -14
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/raw/RawSliderInput.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/types/errors.d.ts +0 -13
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/types/errors.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/utils/errorHandling.d.ts +0 -3
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/utils/errorHandling.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts +0 -12
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/MultiStylePropertyPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts +0 -11
- package/dist/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/style-inputs/SingleStylePropertyPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/StylesPanel.d.ts +0 -2
- package/dist/editor-sample/src/App/InspectorDrawer/StylesPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/ToggleInspectorPanelButton.d.ts +0 -2
- package/dist/editor-sample/src/App/InspectorDrawer/ToggleInspectorPanelButton.d.ts.map +0 -1
- package/dist/editor-sample/src/App/InspectorDrawer/index.d.ts +0 -5
- package/dist/editor-sample/src/App/InspectorDrawer/index.d.ts.map +0 -1
- package/dist/editor-sample/src/App/SamplesDrawer/SidebarButton.d.ts +0 -6
- package/dist/editor-sample/src/App/SamplesDrawer/SidebarButton.d.ts.map +0 -1
- package/dist/editor-sample/src/App/SamplesDrawer/ToggleSamplesPanelButton.d.ts +0 -2
- package/dist/editor-sample/src/App/SamplesDrawer/ToggleSamplesPanelButton.d.ts.map +0 -1
- package/dist/editor-sample/src/App/SamplesDrawer/index.d.ts +0 -3
- package/dist/editor-sample/src/App/SamplesDrawer/index.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/CustomReader/CustomReader.d.ts +0 -10
- package/dist/editor-sample/src/App/TemplatePanel/CustomReader/CustomReader.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/DownloadJson/index.d.ts +0 -2
- package/dist/editor-sample/src/App/TemplatePanel/DownloadJson/index.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/HtmlPanel.d.ts +0 -2
- package/dist/editor-sample/src/App/TemplatePanel/HtmlPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/ImportJson/ImportJsonDialog.d.ts +0 -6
- package/dist/editor-sample/src/App/TemplatePanel/ImportJson/ImportJsonDialog.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/ImportJson/index.d.ts +0 -2
- package/dist/editor-sample/src/App/TemplatePanel/ImportJson/index.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/ImportJson/validateJsonStringValue.d.ts +0 -11
- package/dist/editor-sample/src/App/TemplatePanel/ImportJson/validateJsonStringValue.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/JsonPanel.d.ts +0 -2
- package/dist/editor-sample/src/App/TemplatePanel/JsonPanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/MainTabsGroup.d.ts +0 -9
- package/dist/editor-sample/src/App/TemplatePanel/MainTabsGroup.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/ShareButton.d.ts +0 -2
- package/dist/editor-sample/src/App/TemplatePanel/ShareButton.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/helper/HighlightedCodePanel.d.ts +0 -7
- package/dist/editor-sample/src/App/TemplatePanel/helper/HighlightedCodePanel.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/helper/cleanDocument.d.ts +0 -9
- package/dist/editor-sample/src/App/TemplatePanel/helper/cleanDocument.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/helper/extraFunctions.d.ts +0 -33
- package/dist/editor-sample/src/App/TemplatePanel/helper/extraFunctions.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/helper/formatting.d.ts +0 -2
- package/dist/editor-sample/src/App/TemplatePanel/helper/formatting.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/helper/globalsStyles.d.ts +0 -2
- package/dist/editor-sample/src/App/TemplatePanel/helper/globalsStyles.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/helper/highlighters.d.ts +0 -3
- package/dist/editor-sample/src/App/TemplatePanel/helper/highlighters.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/helper/qlcss.d.ts +0 -2
- package/dist/editor-sample/src/App/TemplatePanel/helper/qlcss.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/index.d.ts +0 -12
- package/dist/editor-sample/src/App/TemplatePanel/index.d.ts.map +0 -1
- package/dist/editor-sample/src/App/TemplatePanel/renderToStaticMarkup.d.ts +0 -7
- package/dist/editor-sample/src/App/TemplatePanel/renderToStaticMarkup.d.ts.map +0 -1
- package/dist/editor-sample/src/App/index.d.ts +0 -17
- package/dist/editor-sample/src/App/index.d.ts.map +0 -1
- package/dist/editor-sample/src/components/SampleImageGallery.d.ts +0 -2
- package/dist/editor-sample/src/components/SampleImageGallery.d.ts.map +0 -1
- package/dist/editor-sample/src/constants.d.ts +0 -6
- package/dist/editor-sample/src/constants.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts +0 -3
- package/dist/editor-sample/src/documents/blocks/ColumnsContainer/ColumnsContainerEditor.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +0 -497
- package/dist/editor-sample/src/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/Container/ContainerEditor.d.ts +0 -3
- package/dist/editor-sample/src/documents/blocks/Container/ContainerEditor.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/Container/ContainerPropsSchema.d.ts +0 -587
- package/dist/editor-sample/src/documents/blocks/Container/ContainerPropsSchema.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/EmailLayout/EmailLayoutEditor.d.ts +0 -3
- package/dist/editor-sample/src/documents/blocks/EmailLayout/EmailLayoutEditor.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +0 -50
- package/dist/editor-sample/src/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/customHooks/useParentImageWidth.d.ts +0 -4
- package/dist/editor-sample/src/documents/blocks/customHooks/useParentImageWidth.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts +0 -9
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlockButton.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts +0 -9
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/BlocksMenu.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts +0 -7
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts +0 -6
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/PlaceholderButton.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +0 -10
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts +0 -8
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/index.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/EditorChildrenNoDragable.d.ts +0 -14
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/EditorChildrenNoDragable.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/index.d.ts +0 -17
- package/dist/editor-sample/src/documents/blocks/helpers/EditorChildrenIds/index.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/TStyle.d.ts +0 -50
- package/dist/editor-sample/src/documents/blocks/helpers/TStyle.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +0 -16
- package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts +0 -9
- package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/ReaderBlockWrapper.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts +0 -8
- package/dist/editor-sample/src/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/changeWidth.d.ts +0 -4
- package/dist/editor-sample/src/documents/blocks/helpers/changeWidth.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/constants.d.ts +0 -3
- package/dist/editor-sample/src/documents/blocks/helpers/constants.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/fontFamily.d.ts +0 -14
- package/dist/editor-sample/src/documents/blocks/helpers/fontFamily.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/blocks/helpers/zod.d.ts +0 -22
- package/dist/editor-sample/src/documents/blocks/helpers/zod.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/ClientOnly.d.ts +0 -5
- package/dist/editor-sample/src/documents/editor/ClientOnly.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/EJEMPLO_USO_GRANULAR.d.ts +0 -89
- package/dist/editor-sample/src/documents/editor/EJEMPLO_USO_GRANULAR.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/EditorBlock.d.ts +0 -14
- package/dist/editor-sample/src/documents/editor/EditorBlock.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/EditorContext.d.ts +0 -2662
- package/dist/editor-sample/src/documents/editor/EditorContext.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/UndoRedoStore.d.ts +0 -37
- package/dist/editor-sample/src/documents/editor/UndoRedoStore.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/blockHooks.d.ts +0 -77
- package/dist/editor-sample/src/documents/editor/blockHooks.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/blockSelectors.d.ts +0 -71
- package/dist/editor-sample/src/documents/editor/blockSelectors.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/blockUpdaters.d.ts +0 -47
- package/dist/editor-sample/src/documents/editor/blockUpdaters.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/componentTreeColumnSlot.d.ts +0 -11
- package/dist/editor-sample/src/documents/editor/componentTreeColumnSlot.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/core.d.ts +0 -7800
- package/dist/editor-sample/src/documents/editor/core.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/granular.d.ts +0 -125
- package/dist/editor-sample/src/documents/editor/granular.d.ts.map +0 -1
- package/dist/editor-sample/src/documents/editor/migrateDocument.d.ts +0 -7
- package/dist/editor-sample/src/documents/editor/migrateDocument.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/index.d.ts +0 -2
- package/dist/editor-sample/src/getConfiguration/index.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/empty-email-message.d.ts +0 -5
- package/dist/editor-sample/src/getConfiguration/sample/empty-email-message.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/gallery-test.d.ts +0 -14
- package/dist/editor-sample/src/getConfiguration/sample/gallery-test.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/one-time-passcode.d.ts +0 -4
- package/dist/editor-sample/src/getConfiguration/sample/one-time-passcode.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/order-ecommerce.d.ts +0 -4
- package/dist/editor-sample/src/getConfiguration/sample/order-ecommerce.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/post-metrics-report.d.ts +0 -4
- package/dist/editor-sample/src/getConfiguration/sample/post-metrics-report.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/reservation-reminder.d.ts +0 -4
- package/dist/editor-sample/src/getConfiguration/sample/reservation-reminder.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/reset-password.d.ts +0 -4
- package/dist/editor-sample/src/getConfiguration/sample/reset-password.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/respond-to-message.d.ts +0 -4
- package/dist/editor-sample/src/getConfiguration/sample/respond-to-message.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/subscription-receipt.d.ts +0 -4
- package/dist/editor-sample/src/getConfiguration/sample/subscription-receipt.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/test-load-json.d.ts +0 -8
- package/dist/editor-sample/src/getConfiguration/sample/test-load-json.d.ts.map +0 -1
- package/dist/editor-sample/src/getConfiguration/sample/welcome.d.ts +0 -4
- package/dist/editor-sample/src/getConfiguration/sample/welcome.d.ts.map +0 -1
- package/dist/editor-sample/src/i18n.d.ts +0 -14
- package/dist/editor-sample/src/i18n.d.ts.map +0 -1
- package/dist/editor-sample/src/index.d.ts +0 -57
- package/dist/editor-sample/src/index.d.ts.map +0 -1
- package/dist/editor-sample/src/locales/en-US/common.json.d.ts +0 -46
- package/dist/editor-sample/src/locales/en-US/inspector.json.d.ts +0 -259
- package/dist/editor-sample/src/locales/es-419/common.json.d.ts +0 -46
- package/dist/editor-sample/src/locales/es-419/inspector.json.d.ts +0 -258
- package/dist/editor-sample/src/locales/it-IT/common.json.d.ts +0 -46
- package/dist/editor-sample/src/locales/it-IT/inspector.json.d.ts +0 -258
- package/dist/editor-sample/src/theme.d.ts +0 -10
- package/dist/editor-sample/src/theme.d.ts.map +0 -1
- package/dist/editor-sample/src/utils/useDebounce.d.ts +0 -8
- package/dist/editor-sample/src/utils/useDebounce.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Powerful, modern email builder with drag-and-drop blocks, live preview, and HTML
|
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
|
-
- **Drag-and-drop blocks**: Text (Rich Text Editor),
|
|
9
|
+
- **Drag-and-drop blocks**: Text (Rich Text Editor), Image, Button, Columns, Divider, Spacer, Social Media, Container
|
|
10
10
|
- **Editor and Preview tabs** with responsive screen sizes (Desktop/Mobile)
|
|
11
11
|
- **Undo/Redo** and keyboard shortcuts
|
|
12
12
|
- **HTML export** and copy-to-clipboard helpers
|
|
@@ -33,6 +33,8 @@ pnpm add email-builder-online react react-dom
|
|
|
33
33
|
|
|
34
34
|
> **Note:** All other dependencies (Material UI, i18n, drag-and-drop, Tiptap, etc.) are bundled with the package — no extra installs needed.
|
|
35
35
|
|
|
36
|
+
> **Requirements:** This package targets **Node 24+** and **pnpm** (declared in `engines`). Node 24 + pnpm are required when building or self-hosting the builder from source.
|
|
37
|
+
|
|
36
38
|
### Peer dependencies (React / React-DOM)
|
|
37
39
|
|
|
38
40
|
**`react` and `react-dom` must be the same major/minor version** (e.g. both 18.x or both 19.x). Mixing versions (e.g. react@18 with react-dom@19) can cause runtime errors such as "Cannot read properties of undefined (reading 'S')".
|
|
@@ -135,6 +137,30 @@ window.dispatchEvent(
|
|
|
135
137
|
);
|
|
136
138
|
```
|
|
137
139
|
|
|
140
|
+
### Template AI Generation (demo)
|
|
141
|
+
|
|
142
|
+
The dev playground wires `onAIGenerateTemplate` to the bundled
|
|
143
|
+
[`@eb/backend`](../backend) workspace package so you can try the
|
|
144
|
+
end-to-end flow (prompt → SSE NDJSON stream → live preview → Apply).
|
|
145
|
+
|
|
146
|
+
Run both packages in parallel from the repo root (two terminals):
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
# Terminal 1 — AI backend on http://localhost:3100
|
|
150
|
+
cp packages/backend/.env.example packages/backend/.env
|
|
151
|
+
# edit OPENAI_API_KEY inside packages/backend/.env
|
|
152
|
+
pnpm dev:backend
|
|
153
|
+
|
|
154
|
+
# Terminal 2 — React 19 playground on http://localhost:2501
|
|
155
|
+
pnpm dev
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
The consumer code in `playground/react-19/src/App.tsx` is the minimal
|
|
159
|
+
reference: a single `fetch` to `http://localhost:3100/api/generate` that
|
|
160
|
+
returns the SSE response body as a `ReadableStream<string>` to the
|
|
161
|
+
builder's dialog. The backend URL is hardcoded there — change the
|
|
162
|
+
`AI_BACKEND_URL` constant if your backend runs elsewhere.
|
|
163
|
+
|
|
138
164
|
## Custom Image Provider
|
|
139
165
|
|
|
140
166
|
You can integrate your own image selector/gallery by passing a React component through the `customImageProvider` prop. This component will be rendered at the top of the image input panel, allowing users to select images from your custom source.
|
|
@@ -235,7 +261,7 @@ export default function Page() {
|
|
|
235
261
|
}
|
|
236
262
|
```
|
|
237
263
|
|
|
238
|
-
> **Live Example**: Check out the working implementation in `packages/
|
|
264
|
+
> **Live Example**: Check out the working implementation in `packages/email-builder-online/src/components/SampleImageGallery.tsx` and see it in action in the demo app.
|
|
239
265
|
|
|
240
266
|
## Custom Merge Tags
|
|
241
267
|
|
|
@@ -403,29 +429,24 @@ export default function Page() {
|
|
|
403
429
|
|
|
404
430
|
The email builder includes the following drag-and-drop blocks:
|
|
405
431
|
|
|
406
|
-
- **Text** - Rich text editor with
|
|
407
|
-
- **Notion Text** - Advanced rich text editor with Notion-like editing experience
|
|
408
|
-
- **WYSIWYG** - What-You-See-Is-What-You-Get rich text editor
|
|
409
|
-
- **Heading** - Heading block for titles and subtitles
|
|
432
|
+
- **Notion Text** - Rich text editor with Notion-like editing experience (Tiptap-based)
|
|
410
433
|
- **Image** - Image block with link support
|
|
411
434
|
- **Button** - Call-to-action button with customizable styling
|
|
412
435
|
- **Columns** - Multi-column layout container
|
|
413
436
|
- **Divider** - Horizontal divider/separator line
|
|
414
437
|
- **Spacer** - Vertical spacing block
|
|
415
|
-
- **Avatar** - Profile picture/avatar image
|
|
416
|
-
- **HTML** - Raw HTML block for custom code
|
|
417
438
|
- **Social Media** - Social media icons with links
|
|
418
439
|
- **Container** - Container block for grouping content
|
|
419
440
|
|
|
420
441
|
## Backward Compatibility
|
|
421
442
|
|
|
422
|
-
The email builder automatically migrates legacy blocks
|
|
443
|
+
The email builder automatically migrates legacy blocks when loading a document so templates created before the NotionText block was introduced still hydrate cleanly. The following retired block types are converted to **NotionText** on load:
|
|
423
444
|
|
|
424
|
-
- **CustomEditor
|
|
425
|
-
- **
|
|
426
|
-
- **
|
|
445
|
+
- **CustomEditor** → **NotionText** (type rename, compatible data)
|
|
446
|
+
- **Html** → **NotionText** (`props.contents` wrapped into `props.html`)
|
|
447
|
+
- **Heading** → **NotionText** (`props.text` wrapped into `<hN>…</hN>` in `props.html`)
|
|
427
448
|
|
|
428
|
-
|
|
449
|
+
Other previously-supported types (`Wysiwyg`, `Text`, `Avatar`) were fully retired and are no longer migrated — old documents containing them will silently drop those blocks.
|
|
429
450
|
|
|
430
451
|
## Usage
|
|
431
452
|
|
|
@@ -617,24 +638,37 @@ export default defineNuxtPlugin(() => {
|
|
|
617
638
|
|
|
618
639
|
#### Vanilla JavaScript Example
|
|
619
640
|
|
|
641
|
+
For plain HTML (no bundler, no React in the host page), use the **standalone build**.
|
|
642
|
+
It bundles React + ReactDOM, renders inside a Shadow DOM, and auto-registers the
|
|
643
|
+
`<email-builder>` element on load (no manual `registerEmailBuilder` call needed).
|
|
644
|
+
|
|
645
|
+
> The standalone files (`dist/standalone.js`, `dist/standalone.mjs`) are produced by
|
|
646
|
+
> `pnpm build:standalone` (or `pnpm build:all`). The regular `dist/index.*` build
|
|
647
|
+
> externalizes React and is meant for bundler-based apps, not plain `<script>` usage.
|
|
648
|
+
|
|
620
649
|
```html
|
|
621
650
|
<!DOCTYPE html>
|
|
622
651
|
<html>
|
|
623
652
|
<head>
|
|
624
|
-
<link rel="stylesheet" href="path/to/email-builder-online/style.css" />
|
|
625
|
-
|
|
653
|
+
<link rel="stylesheet" href="path/to/email-builder-online/dist/style.css" />
|
|
654
|
+
<!-- IIFE build (no module support needed); exposes window.EmailBuilder -->
|
|
655
|
+
<script src="path/to/email-builder-online/dist/standalone.js"></script>
|
|
626
656
|
</head>
|
|
627
657
|
<body>
|
|
628
|
-
|
|
629
|
-
// Register the web component
|
|
630
|
-
window.EmailBuilder.registerEmailBuilder('email-builder');
|
|
631
|
-
</script>
|
|
632
|
-
|
|
658
|
+
<!-- Auto-registered on load -->
|
|
633
659
|
<email-builder></email-builder>
|
|
634
660
|
</body>
|
|
635
661
|
</html>
|
|
636
662
|
```
|
|
637
663
|
|
|
664
|
+
Or with the ES module variant:
|
|
665
|
+
|
|
666
|
+
```html
|
|
667
|
+
<link rel="stylesheet" href="path/to/email-builder-online/dist/style.css" />
|
|
668
|
+
<script type="module" src="path/to/email-builder-online/dist/standalone.mjs"></script>
|
|
669
|
+
<email-builder></email-builder>
|
|
670
|
+
```
|
|
671
|
+
|
|
638
672
|
Then use it anywhere in your templates (wrap in `<ClientOnly>` for Nuxt):
|
|
639
673
|
|
|
640
674
|
```vue
|
|
@@ -669,46 +703,8 @@ export default defineNuxtConfig({
|
|
|
669
703
|
**Notes on SSR and dependencies:**
|
|
670
704
|
|
|
671
705
|
- The Web Component wrapper is registered only on the client. Use a client-only plugin in SSR frameworks.
|
|
672
|
-
- React and ReactDOM are peer dependencies
|
|
673
|
-
- i18n dependencies (`i18next`, `react-i18next`, `i18next-browser-languagedetector`) are
|
|
674
|
-
|
|
675
|
-
## Custom Editor Standalone
|
|
676
|
-
|
|
677
|
-
The package also ships the `CustomEditorInputStandalone` component so the rich text block can be embedded outside of the full builder experience.
|
|
678
|
-
|
|
679
|
-
### React
|
|
680
|
-
|
|
681
|
-
```tsx
|
|
682
|
-
import { useState } from 'react';
|
|
683
|
-
import { CustomEditorInputStandalone } from 'email-builder-online';
|
|
684
|
-
import 'email-builder-online/style.css';
|
|
685
|
-
|
|
686
|
-
export default function CustomEditorExample() {
|
|
687
|
-
const [value, setValue] = useState('<p>Write your custom content here…</p>');
|
|
688
|
-
|
|
689
|
-
return (
|
|
690
|
-
<CustomEditorInputStandalone
|
|
691
|
-
initialData={value}
|
|
692
|
-
onChange={setValue}
|
|
693
|
-
editorBackgroundColor="#ffffff"
|
|
694
|
-
editorColorDefault="#1f2937"
|
|
695
|
-
fontFamily="MODERN_SANS"
|
|
696
|
-
lineHeight={1.6}
|
|
697
|
-
/>
|
|
698
|
-
);
|
|
699
|
-
}
|
|
700
|
-
```
|
|
701
|
-
|
|
702
|
-
### Web Component
|
|
703
|
-
|
|
704
|
-
```ts
|
|
705
|
-
import { registerCustomEditorInput } from 'email-builder-online';
|
|
706
|
-
import 'email-builder-online/style.css';
|
|
707
|
-
|
|
708
|
-
if (typeof window !== 'undefined') {
|
|
709
|
-
registerCustomEditorInput('custom-editor'); // default is "custom-editor-input"
|
|
710
|
-
}
|
|
711
|
-
```
|
|
706
|
+
- React and ReactDOM are peer dependencies for the package-based usage (React component and the `registerEmailBuilder` Web Component). Install them in your app or use a bundler that provides them. React 18 and 19 are supported. (The self-contained `standalone` build bundles its own React.)
|
|
707
|
+
- i18n dependencies (`i18next`, `react-i18next`, `i18next-browser-languagedetector`) are **bundled** with the package — you do not need to install them separately.
|
|
712
708
|
|
|
713
709
|
## Props / Attributes
|
|
714
710
|
|
|
@@ -735,9 +731,16 @@ React Props (camelCase) and Web Component attributes (dash-case) map 1:1:
|
|
|
735
731
|
| htmlTab | html-tab | boolean | true | Show HTML tab |
|
|
736
732
|
| jsonTab | json-tab | boolean | true | Show JSON tab |
|
|
737
733
|
| imagePlaceholder | image-placeholder | string | - | Default placeholder for images |
|
|
734
|
+
| imageUrlInput | image-url-input | boolean | true | Show the URL field in the Image block picker's Upload tab. When `false`, only the dropzone is rendered (subject to `imageUploadInput`). When both `imageUrlInput` and `imageUploadInput` are `false`, the Upload tab is hidden. |
|
|
735
|
+
| imageUploadInput | image-upload-input | boolean | true | Show the drag & drop / file upload zone in the Image block picker's Upload tab. When `false`, only the URL field is rendered (subject to `imageUrlInput`). When both `imageUrlInput` and `imageUploadInput` are `false`, the Upload tab is hidden. |
|
|
736
|
+
| backgroundUrlInput | background-url-input | boolean | true | Show the URL field in the Background image picker's Upload tab (Container, ColumnsContainer, EmailLayout). Same hide-on-both-false behavior as `imageUrlInput`. |
|
|
737
|
+
| backgroundUploadInput | background-upload-input | boolean | true | Show the drag & drop / file upload zone in the Background image picker's Upload tab. Same hide-on-both-false behavior as `imageUploadInput`. |
|
|
738
738
|
| enableAI | enable-ai | boolean | false | Enable AI features for text and image generation |
|
|
739
739
|
| onAIRequest | - | (request: AIFeatureRequest) => Promise\<string\> | - | Callback for AI text processing requests |
|
|
740
|
-
|
|
|
740
|
+
| onAIGenerateTemplate | - | (request: AIGenerateTemplateRequest, options: { signal: AbortSignal }) => Promise\<AIGenerateTemplateResponse\> | - | Callback for AI template generation (prompt → template). When undefined, the "Generate with AI" entry point is hidden |
|
|
741
|
+
| unsplashEnabled | - | boolean | false | Show the built-in Unsplash picker tab (requires the backend proxy) |
|
|
742
|
+
| unsplashBackendUrl | - | string | - | Override the backend URL used for Unsplash proxy calls |
|
|
743
|
+
| portalContainer | - | HTMLElement | - | Container element for MUI portals (menus, dialogs); useful when mounting inside Shadow DOM |
|
|
741
744
|
| showVersion | show-version | boolean | - | Show version indicator in the editor |
|
|
742
745
|
| componentTree | component-tree | boolean | true | Show the component tree panel |
|
|
743
746
|
|
|
@@ -774,12 +777,12 @@ interface AIFeatureRequest {
|
|
|
774
777
|
|
|
775
778
|
## License
|
|
776
779
|
|
|
777
|
-
|
|
780
|
+
Free to use. © Laravel42. All rights reserved.
|
|
778
781
|
|
|
779
782
|
## Links
|
|
780
783
|
|
|
781
784
|
- 🌐 **Website:** [laravel42.com](https://laravel42.com/)
|
|
782
|
-
- 📦 **More
|
|
785
|
+
- 📦 **More Packages:** [npmjs.com/~laravel42](https://www.npmjs.com/~laravel42)
|
|
783
786
|
- 💼 **LinkedIn:** [Laravel42](https://www.linkedin.com/company/laravel42/)
|
|
784
787
|
- 📘 **Facebook:** [Laravel42](https://www.facebook.com/Laravel42)
|
|
785
788
|
- 📸 **Instagram:** [@laravel42\_](https://www.instagram.com/laravel42_/)
|