commspliant-html-editor 0.0.4 → 0.0.5
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/README.md +57 -4
- package/dist/404.html +19 -0
- package/dist/assets/index-8mpvnzOy.js +375 -0
- package/dist/{commspliant-html-editor.css → assets/index-Cu8klpl0.css} +1 -1
- package/dist/index.html +19 -0
- package/dist/logo.svg +314 -0
- package/package.json +1 -1
- package/dist/chrome/ChromeTheme.d.ts +0 -14
- package/dist/chrome/ChromeTheme.d.ts.map +0 -1
- package/dist/components/Editor.d.ts +0 -3
- package/dist/components/Editor.d.ts.map +0 -1
- package/dist/components/HtmlSurface.d.ts +0 -9
- package/dist/components/HtmlSurface.d.ts.map +0 -1
- package/dist/components/MultiPageVisualSurface.d.ts +0 -22
- package/dist/components/MultiPageVisualSurface.d.ts.map +0 -1
- package/dist/components/VisualSurface.d.ts +0 -14
- package/dist/components/VisualSurface.d.ts.map +0 -1
- package/dist/core/audio.d.ts +0 -16
- package/dist/core/audio.d.ts.map +0 -1
- package/dist/core/blockFormat.d.ts +0 -10
- package/dist/core/blockFormat.d.ts.map +0 -1
- package/dist/core/blocks.d.ts +0 -19
- package/dist/core/blocks.d.ts.map +0 -1
- package/dist/core/bookmark.d.ts +0 -10
- package/dist/core/bookmark.d.ts.map +0 -1
- package/dist/core/cellProperties.d.ts +0 -20
- package/dist/core/cellProperties.d.ts.map +0 -1
- package/dist/core/clearFormatting.d.ts +0 -2
- package/dist/core/clearFormatting.d.ts.map +0 -1
- package/dist/core/clipboard.d.ts +0 -9
- package/dist/core/clipboard.d.ts.map +0 -1
- package/dist/core/commandTypes.d.ts +0 -298
- package/dist/core/commandTypes.d.ts.map +0 -1
- package/dist/core/commands.d.ts +0 -5
- package/dist/core/commands.d.ts.map +0 -1
- package/dist/core/cssLength.d.ts +0 -13
- package/dist/core/cssLength.d.ts.map +0 -1
- package/dist/core/customActions.d.ts +0 -12
- package/dist/core/customActions.d.ts.map +0 -1
- package/dist/core/customCss.d.ts +0 -15
- package/dist/core/customCss.d.ts.map +0 -1
- package/dist/core/documentStyles.d.ts +0 -4
- package/dist/core/documentStyles.d.ts.map +0 -1
- package/dist/core/fontFamily.d.ts +0 -40
- package/dist/core/fontFamily.d.ts.map +0 -1
- package/dist/core/fontSize.d.ts +0 -25
- package/dist/core/fontSize.d.ts.map +0 -1
- package/dist/core/fontSizeUnits.d.ts +0 -29
- package/dist/core/fontSizeUnits.d.ts.map +0 -1
- package/dist/core/formatBrush.d.ts +0 -10
- package/dist/core/formatBrush.d.ts.map +0 -1
- package/dist/core/horizontalRule.d.ts +0 -4
- package/dist/core/horizontalRule.d.ts.map +0 -1
- package/dist/core/image.d.ts +0 -19
- package/dist/core/image.d.ts.map +0 -1
- package/dist/core/imageProperties.d.ts +0 -35
- package/dist/core/imageProperties.d.ts.map +0 -1
- package/dist/core/imageResize.d.ts +0 -18
- package/dist/core/imageResize.d.ts.map +0 -1
- package/dist/core/imageSize.d.ts +0 -23
- package/dist/core/imageSize.d.ts.map +0 -1
- package/dist/core/indent.d.ts +0 -7
- package/dist/core/indent.d.ts.map +0 -1
- package/dist/core/inlineColor.d.ts +0 -23
- package/dist/core/inlineColor.d.ts.map +0 -1
- package/dist/core/inlineRange.d.ts +0 -10
- package/dist/core/inlineRange.d.ts.map +0 -1
- package/dist/core/link.d.ts +0 -18
- package/dist/core/link.d.ts.map +0 -1
- package/dist/core/lists.d.ts +0 -12
- package/dist/core/lists.d.ts.map +0 -1
- package/dist/core/marks.d.ts +0 -18
- package/dist/core/marks.d.ts.map +0 -1
- package/dist/core/multiPage.d.ts +0 -10
- package/dist/core/multiPage.d.ts.map +0 -1
- package/dist/core/page.d.ts +0 -14
- package/dist/core/page.d.ts.map +0 -1
- package/dist/core/pageAtRule.d.ts +0 -21
- package/dist/core/pageAtRule.d.ts.map +0 -1
- package/dist/core/pageBackgroundImage.d.ts +0 -16
- package/dist/core/pageBackgroundImage.d.ts.map +0 -1
- package/dist/core/pageProperties.d.ts +0 -8
- package/dist/core/pageProperties.d.ts.map +0 -1
- package/dist/core/paragraphBox.d.ts +0 -82
- package/dist/core/paragraphBox.d.ts.map +0 -1
- package/dist/core/paragraphProperties.d.ts +0 -17
- package/dist/core/paragraphProperties.d.ts.map +0 -1
- package/dist/core/readAloud.d.ts +0 -11
- package/dist/core/readAloud.d.ts.map +0 -1
- package/dist/core/rowProperties.d.ts +0 -17
- package/dist/core/rowProperties.d.ts.map +0 -1
- package/dist/core/selection.d.ts +0 -25
- package/dist/core/selection.d.ts.map +0 -1
- package/dist/core/table.d.ts +0 -34
- package/dist/core/table.d.ts.map +0 -1
- package/dist/core/tableGrid.d.ts +0 -40
- package/dist/core/tableGrid.d.ts.map +0 -1
- package/dist/core/tableProperties.d.ts +0 -18
- package/dist/core/tableProperties.d.ts.map +0 -1
- package/dist/core/textAlign.d.ts +0 -9
- package/dist/core/textAlign.d.ts.map +0 -1
- package/dist/core/youtube.d.ts +0 -20
- package/dist/core/youtube.d.ts.map +0 -1
- package/dist/hooks/useAutoSave.d.ts +0 -9
- package/dist/hooks/useAutoSave.d.ts.map +0 -1
- package/dist/hooks/useControllableState.d.ts +0 -8
- package/dist/hooks/useControllableState.d.ts.map +0 -1
- package/dist/i18n/LocaleProvider.d.ts +0 -11
- package/dist/i18n/LocaleProvider.d.ts.map +0 -1
- package/dist/i18n/en.d.ts +0 -3
- package/dist/i18n/en.d.ts.map +0 -1
- package/dist/i18n/es.d.ts +0 -3
- package/dist/i18n/es.d.ts.map +0 -1
- package/dist/i18n/types.d.ts +0 -428
- package/dist/i18n/types.d.ts.map +0 -1
- package/dist/icons/AlignCenterIcon.d.ts +0 -3
- package/dist/icons/AlignCenterIcon.d.ts.map +0 -1
- package/dist/icons/AlignJustifyIcon.d.ts +0 -3
- package/dist/icons/AlignJustifyIcon.d.ts.map +0 -1
- package/dist/icons/AlignLeftIcon.d.ts +0 -3
- package/dist/icons/AlignLeftIcon.d.ts.map +0 -1
- package/dist/icons/AlignRightIcon.d.ts +0 -3
- package/dist/icons/AlignRightIcon.d.ts.map +0 -1
- package/dist/icons/AudioIcon.d.ts +0 -3
- package/dist/icons/AudioIcon.d.ts.map +0 -1
- package/dist/icons/BoldIcon.d.ts +0 -3
- package/dist/icons/BoldIcon.d.ts.map +0 -1
- package/dist/icons/BookmarkIcon.d.ts +0 -3
- package/dist/icons/BookmarkIcon.d.ts.map +0 -1
- package/dist/icons/BulletListIcon.d.ts +0 -3
- package/dist/icons/BulletListIcon.d.ts.map +0 -1
- package/dist/icons/CellPropertiesIcon.d.ts +0 -3
- package/dist/icons/CellPropertiesIcon.d.ts.map +0 -1
- package/dist/icons/ClearFormattingIcon.d.ts +0 -3
- package/dist/icons/ClearFormattingIcon.d.ts.map +0 -1
- package/dist/icons/CloseIcon.d.ts +0 -3
- package/dist/icons/CloseIcon.d.ts.map +0 -1
- package/dist/icons/CommspliantShieldIcon.d.ts +0 -3
- package/dist/icons/CommspliantShieldIcon.d.ts.map +0 -1
- package/dist/icons/CustomActionIcon.d.ts +0 -3
- package/dist/icons/CustomActionIcon.d.ts.map +0 -1
- package/dist/icons/CustomCssIcon.d.ts +0 -3
- package/dist/icons/CustomCssIcon.d.ts.map +0 -1
- package/dist/icons/CustomizeToolbarIcon.d.ts +0 -3
- package/dist/icons/CustomizeToolbarIcon.d.ts.map +0 -1
- package/dist/icons/DarkModeIcon.d.ts +0 -3
- package/dist/icons/DarkModeIcon.d.ts.map +0 -1
- package/dist/icons/FontColorIcon.d.ts +0 -3
- package/dist/icons/FontColorIcon.d.ts.map +0 -1
- package/dist/icons/FontFamilyIcon.d.ts +0 -3
- package/dist/icons/FontFamilyIcon.d.ts.map +0 -1
- package/dist/icons/FontPropertiesIcon.d.ts +0 -3
- package/dist/icons/FontPropertiesIcon.d.ts.map +0 -1
- package/dist/icons/FontSizeIcon.d.ts +0 -3
- package/dist/icons/FontSizeIcon.d.ts.map +0 -1
- package/dist/icons/FormatBrushIcon.d.ts +0 -3
- package/dist/icons/FormatBrushIcon.d.ts.map +0 -1
- package/dist/icons/FullscreenIcon.d.ts +0 -3
- package/dist/icons/FullscreenIcon.d.ts.map +0 -1
- package/dist/icons/HighlightColorIcon.d.ts +0 -3
- package/dist/icons/HighlightColorIcon.d.ts.map +0 -1
- package/dist/icons/HorizontalRuleIcon.d.ts +0 -3
- package/dist/icons/HorizontalRuleIcon.d.ts.map +0 -1
- package/dist/icons/HtmlIcon.d.ts +0 -3
- package/dist/icons/HtmlIcon.d.ts.map +0 -1
- package/dist/icons/ImageIcon.d.ts +0 -3
- package/dist/icons/ImageIcon.d.ts.map +0 -1
- package/dist/icons/IndentIcon.d.ts +0 -3
- package/dist/icons/IndentIcon.d.ts.map +0 -1
- package/dist/icons/ItalicIcon.d.ts +0 -3
- package/dist/icons/ItalicIcon.d.ts.map +0 -1
- package/dist/icons/LightModeIcon.d.ts +0 -3
- package/dist/icons/LightModeIcon.d.ts.map +0 -1
- package/dist/icons/LinkIcon.d.ts +0 -3
- package/dist/icons/LinkIcon.d.ts.map +0 -1
- package/dist/icons/MenuIcon.d.ts +0 -3
- package/dist/icons/MenuIcon.d.ts.map +0 -1
- package/dist/icons/MergeCellsIcon.d.ts +0 -3
- package/dist/icons/MergeCellsIcon.d.ts.map +0 -1
- package/dist/icons/NumberedListIcon.d.ts +0 -3
- package/dist/icons/NumberedListIcon.d.ts.map +0 -1
- package/dist/icons/OpenIcon.d.ts +0 -3
- package/dist/icons/OpenIcon.d.ts.map +0 -1
- package/dist/icons/OutdentIcon.d.ts +0 -3
- package/dist/icons/OutdentIcon.d.ts.map +0 -1
- package/dist/icons/PagePropertiesIcon.d.ts +0 -3
- package/dist/icons/PagePropertiesIcon.d.ts.map +0 -1
- package/dist/icons/ParagraphPropertiesIcon.d.ts +0 -3
- package/dist/icons/ParagraphPropertiesIcon.d.ts.map +0 -1
- package/dist/icons/ParagraphStyleIcon.d.ts +0 -3
- package/dist/icons/ParagraphStyleIcon.d.ts.map +0 -1
- package/dist/icons/PlusIcon.d.ts +0 -3
- package/dist/icons/PlusIcon.d.ts.map +0 -1
- package/dist/icons/PreviewIcon.d.ts +0 -3
- package/dist/icons/PreviewIcon.d.ts.map +0 -1
- package/dist/icons/PrintIcon.d.ts +0 -3
- package/dist/icons/PrintIcon.d.ts.map +0 -1
- package/dist/icons/ReadAloudIcon.d.ts +0 -3
- package/dist/icons/ReadAloudIcon.d.ts.map +0 -1
- package/dist/icons/RedoIcon.d.ts +0 -3
- package/dist/icons/RedoIcon.d.ts.map +0 -1
- package/dist/icons/RowPropertiesIcon.d.ts +0 -3
- package/dist/icons/RowPropertiesIcon.d.ts.map +0 -1
- package/dist/icons/SaveIcon.d.ts +0 -3
- package/dist/icons/SaveIcon.d.ts.map +0 -1
- package/dist/icons/StrikethroughIcon.d.ts +0 -3
- package/dist/icons/StrikethroughIcon.d.ts.map +0 -1
- package/dist/icons/TableColumnIcon.d.ts +0 -3
- package/dist/icons/TableColumnIcon.d.ts.map +0 -1
- package/dist/icons/TableIcon.d.ts +0 -3
- package/dist/icons/TableIcon.d.ts.map +0 -1
- package/dist/icons/TableRowIcon.d.ts +0 -3
- package/dist/icons/TableRowIcon.d.ts.map +0 -1
- package/dist/icons/UnderlineIcon.d.ts +0 -3
- package/dist/icons/UnderlineIcon.d.ts.map +0 -1
- package/dist/icons/UndoIcon.d.ts +0 -3
- package/dist/icons/UndoIcon.d.ts.map +0 -1
- package/dist/icons/UnmergeCellsIcon.d.ts +0 -3
- package/dist/icons/UnmergeCellsIcon.d.ts.map +0 -1
- package/dist/icons/VisualIcon.d.ts +0 -3
- package/dist/icons/VisualIcon.d.ts.map +0 -1
- package/dist/icons/YoutubeIcon.d.ts +0 -3
- package/dist/icons/YoutubeIcon.d.ts.map +0 -1
- package/dist/icons/index.d.ts +0 -56
- package/dist/icons/index.d.ts.map +0 -1
- package/dist/icons/types.d.ts +0 -4
- package/dist/icons/types.d.ts.map +0 -1
- package/dist/index.cjs +0 -96
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -17163
- package/dist/modules/contextMenu/ContextMenu.d.ts +0 -15
- package/dist/modules/contextMenu/ContextMenu.d.ts.map +0 -1
- package/dist/modules/contextMenu/commands.d.ts +0 -3
- package/dist/modules/contextMenu/commands.d.ts.map +0 -1
- package/dist/modules/contextMenu/index.d.ts +0 -5
- package/dist/modules/contextMenu/index.d.ts.map +0 -1
- package/dist/modules/contextMenu/shouldOpenEditorContextMenu.d.ts +0 -6
- package/dist/modules/contextMenu/shouldOpenEditorContextMenu.d.ts.map +0 -1
- package/dist/modules/file/catalog.d.ts +0 -3
- package/dist/modules/file/catalog.d.ts.map +0 -1
- package/dist/modules/file/commands.d.ts +0 -3
- package/dist/modules/file/commands.d.ts.map +0 -1
- package/dist/modules/file/fileDialogs.d.ts +0 -3
- package/dist/modules/file/fileDialogs.d.ts.map +0 -1
- package/dist/modules/file/htmlFile.d.ts +0 -5
- package/dist/modules/file/htmlFile.d.ts.map +0 -1
- package/dist/modules/file/index.d.ts +0 -4
- package/dist/modules/file/index.d.ts.map +0 -1
- package/dist/modules/file/printHtml.d.ts +0 -3
- package/dist/modules/file/printHtml.d.ts.map +0 -1
- package/dist/modules/file/useHtmlFileDrop.d.ts +0 -14
- package/dist/modules/file/useHtmlFileDrop.d.ts.map +0 -1
- package/dist/modules/format/ColorField.d.ts +0 -11
- package/dist/modules/format/ColorField.d.ts.map +0 -1
- package/dist/modules/format/ColorPicker.d.ts +0 -13
- package/dist/modules/format/ColorPicker.d.ts.map +0 -1
- package/dist/modules/format/ColorSelect.d.ts +0 -16
- package/dist/modules/format/ColorSelect.d.ts.map +0 -1
- package/dist/modules/format/CustomCssDialog.d.ts +0 -9
- package/dist/modules/format/CustomCssDialog.d.ts.map +0 -1
- package/dist/modules/format/CustomParagraphStyleDialog.d.ts +0 -21
- package/dist/modules/format/CustomParagraphStyleDialog.d.ts.map +0 -1
- package/dist/modules/format/FontColorSelect.d.ts +0 -3
- package/dist/modules/format/FontColorSelect.d.ts.map +0 -1
- package/dist/modules/format/FontFamilyList.d.ts +0 -16
- package/dist/modules/format/FontFamilyList.d.ts.map +0 -1
- package/dist/modules/format/FontFamilySelect.d.ts +0 -15
- package/dist/modules/format/FontFamilySelect.d.ts.map +0 -1
- package/dist/modules/format/FontPropertiesDialog.d.ts +0 -24
- package/dist/modules/format/FontPropertiesDialog.d.ts.map +0 -1
- package/dist/modules/format/FontPropertiesFields.d.ts +0 -12
- package/dist/modules/format/FontPropertiesFields.d.ts.map +0 -1
- package/dist/modules/format/FontSizeCombobox.d.ts +0 -13
- package/dist/modules/format/FontSizeCombobox.d.ts.map +0 -1
- package/dist/modules/format/FontSizeSelect.d.ts +0 -3
- package/dist/modules/format/FontSizeSelect.d.ts.map +0 -1
- package/dist/modules/format/HighlightColorSelect.d.ts +0 -4
- package/dist/modules/format/HighlightColorSelect.d.ts.map +0 -1
- package/dist/modules/format/LengthField.d.ts +0 -12
- package/dist/modules/format/LengthField.d.ts.map +0 -1
- package/dist/modules/format/PageAtRuleFields.d.ts +0 -9
- package/dist/modules/format/PageAtRuleFields.d.ts.map +0 -1
- package/dist/modules/format/PageBackgroundImageFields.d.ts +0 -11
- package/dist/modules/format/PageBackgroundImageFields.d.ts.map +0 -1
- package/dist/modules/format/PagePropertiesDialog.d.ts +0 -18
- package/dist/modules/format/PagePropertiesDialog.d.ts.map +0 -1
- package/dist/modules/format/ParagraphPropertiesDialog.d.ts +0 -12
- package/dist/modules/format/ParagraphPropertiesDialog.d.ts.map +0 -1
- package/dist/modules/format/ParagraphPropertiesFields.d.ts +0 -19
- package/dist/modules/format/ParagraphPropertiesFields.d.ts.map +0 -1
- package/dist/modules/format/ParagraphStyleList.d.ts +0 -22
- package/dist/modules/format/ParagraphStyleList.d.ts.map +0 -1
- package/dist/modules/format/ParagraphStyleSelect.d.ts +0 -4
- package/dist/modules/format/ParagraphStyleSelect.d.ts.map +0 -1
- package/dist/modules/format/ShadowFields.d.ts +0 -8
- package/dist/modules/format/ShadowFields.d.ts.map +0 -1
- package/dist/modules/format/catalog.d.ts +0 -3
- package/dist/modules/format/catalog.d.ts.map +0 -1
- package/dist/modules/format/colorModel.d.ts +0 -22
- package/dist/modules/format/colorModel.d.ts.map +0 -1
- package/dist/modules/format/colorPalette.d.ts +0 -3
- package/dist/modules/format/colorPalette.d.ts.map +0 -1
- package/dist/modules/format/commands.d.ts +0 -4
- package/dist/modules/format/commands.d.ts.map +0 -1
- package/dist/modules/format/fontDialog.d.ts +0 -9
- package/dist/modules/format/fontDialog.d.ts.map +0 -1
- package/dist/modules/format/fontSize.d.ts +0 -2
- package/dist/modules/format/fontSize.d.ts.map +0 -1
- package/dist/modules/format/index.d.ts +0 -3
- package/dist/modules/format/index.d.ts.map +0 -1
- package/dist/modules/format/pageDialog.d.ts +0 -9
- package/dist/modules/format/pageDialog.d.ts.map +0 -1
- package/dist/modules/format/paragraphDialog.d.ts +0 -9
- package/dist/modules/format/paragraphDialog.d.ts.map +0 -1
- package/dist/modules/history/catalog.d.ts +0 -3
- package/dist/modules/history/catalog.d.ts.map +0 -1
- package/dist/modules/history/commands.d.ts +0 -4
- package/dist/modules/history/commands.d.ts.map +0 -1
- package/dist/modules/history/history.d.ts +0 -17
- package/dist/modules/history/history.d.ts.map +0 -1
- package/dist/modules/history/index.d.ts +0 -5
- package/dist/modules/history/index.d.ts.map +0 -1
- package/dist/modules/insert/AudioDialog.d.ts +0 -12
- package/dist/modules/insert/AudioDialog.d.ts.map +0 -1
- package/dist/modules/insert/BookmarkDialog.d.ts +0 -9
- package/dist/modules/insert/BookmarkDialog.d.ts.map +0 -1
- package/dist/modules/insert/ImageAdvancedFields.d.ts +0 -15
- package/dist/modules/insert/ImageAdvancedFields.d.ts.map +0 -1
- package/dist/modules/insert/ImageDialog.d.ts +0 -12
- package/dist/modules/insert/ImageDialog.d.ts.map +0 -1
- package/dist/modules/insert/ImagePropertiesDialog.d.ts +0 -13
- package/dist/modules/insert/ImagePropertiesDialog.d.ts.map +0 -1
- package/dist/modules/insert/ImagePropertiesFields.d.ts +0 -11
- package/dist/modules/insert/ImagePropertiesFields.d.ts.map +0 -1
- package/dist/modules/insert/ImageResizeOverlay.d.ts +0 -7
- package/dist/modules/insert/ImageResizeOverlay.d.ts.map +0 -1
- package/dist/modules/insert/ImageSizeField.d.ts +0 -10
- package/dist/modules/insert/ImageSizeField.d.ts.map +0 -1
- package/dist/modules/insert/ImageSourcePicker.d.ts +0 -14
- package/dist/modules/insert/ImageSourcePicker.d.ts.map +0 -1
- package/dist/modules/insert/LinkDialog.d.ts +0 -22
- package/dist/modules/insert/LinkDialog.d.ts.map +0 -1
- package/dist/modules/insert/YoutubeDialog.d.ts +0 -12
- package/dist/modules/insert/YoutubeDialog.d.ts.map +0 -1
- package/dist/modules/insert/catalog.d.ts +0 -3
- package/dist/modules/insert/catalog.d.ts.map +0 -1
- package/dist/modules/insert/commands.d.ts +0 -4
- package/dist/modules/insert/commands.d.ts.map +0 -1
- package/dist/modules/insert/imagePropertiesDialog.d.ts +0 -9
- package/dist/modules/insert/imagePropertiesDialog.d.ts.map +0 -1
- package/dist/modules/insert/index.d.ts +0 -3
- package/dist/modules/insert/index.d.ts.map +0 -1
- package/dist/modules/table/CellPropertiesDialog.d.ts +0 -10
- package/dist/modules/table/CellPropertiesDialog.d.ts.map +0 -1
- package/dist/modules/table/CellPropertiesFields.d.ts +0 -8
- package/dist/modules/table/CellPropertiesFields.d.ts.map +0 -1
- package/dist/modules/table/RowPropertiesDialog.d.ts +0 -10
- package/dist/modules/table/RowPropertiesDialog.d.ts.map +0 -1
- package/dist/modules/table/RowPropertiesFields.d.ts +0 -8
- package/dist/modules/table/RowPropertiesFields.d.ts.map +0 -1
- package/dist/modules/table/TableDialog.d.ts +0 -9
- package/dist/modules/table/TableDialog.d.ts.map +0 -1
- package/dist/modules/table/TablePropertiesDialog.d.ts +0 -10
- package/dist/modules/table/TablePropertiesDialog.d.ts.map +0 -1
- package/dist/modules/table/TablePropertiesFields.d.ts +0 -8
- package/dist/modules/table/TablePropertiesFields.d.ts.map +0 -1
- package/dist/modules/table/catalog.d.ts +0 -3
- package/dist/modules/table/catalog.d.ts.map +0 -1
- package/dist/modules/table/commands.d.ts +0 -4
- package/dist/modules/table/commands.d.ts.map +0 -1
- package/dist/modules/table/index.d.ts +0 -3
- package/dist/modules/table/index.d.ts.map +0 -1
- package/dist/modules/view/DocumentPreviewDialog.d.ts +0 -7
- package/dist/modules/view/DocumentPreviewDialog.d.ts.map +0 -1
- package/dist/modules/view/catalog.d.ts +0 -3
- package/dist/modules/view/catalog.d.ts.map +0 -1
- package/dist/modules/view/commands.d.ts +0 -4
- package/dist/modules/view/commands.d.ts.map +0 -1
- package/dist/modules/view/darkModePersistence.d.ts +0 -5
- package/dist/modules/view/darkModePersistence.d.ts.map +0 -1
- package/dist/modules/view/index.d.ts +0 -3
- package/dist/modules/view/index.d.ts.map +0 -1
- package/dist/modules/view/toolbarPositionPersistence.d.ts +0 -6
- package/dist/modules/view/toolbarPositionPersistence.d.ts.map +0 -1
- package/dist/toolbar/CustomizeToolbarDialog.d.ts +0 -16
- package/dist/toolbar/CustomizeToolbarDialog.d.ts.map +0 -1
- package/dist/toolbar/EditorToolbar.d.ts +0 -16
- package/dist/toolbar/EditorToolbar.d.ts.map +0 -1
- package/dist/toolbar/IconNav.d.ts +0 -12
- package/dist/toolbar/IconNav.d.ts.map +0 -1
- package/dist/toolbar/MenuBar.d.ts +0 -18
- package/dist/toolbar/MenuBar.d.ts.map +0 -1
- package/dist/toolbar/Tooltip.d.ts +0 -11
- package/dist/toolbar/Tooltip.d.ts.map +0 -1
- package/dist/toolbar/allowedChrome.d.ts +0 -4
- package/dist/toolbar/allowedChrome.d.ts.map +0 -1
- package/dist/toolbar/defaultCatalog.d.ts +0 -4
- package/dist/toolbar/defaultCatalog.d.ts.map +0 -1
- package/dist/toolbar/defaultLayout.d.ts +0 -3
- package/dist/toolbar/defaultLayout.d.ts.map +0 -1
- package/dist/toolbar/index.d.ts +0 -10
- package/dist/toolbar/index.d.ts.map +0 -1
- package/dist/toolbar/resolveChrome.d.ts +0 -12
- package/dist/toolbar/resolveChrome.d.ts.map +0 -1
- package/dist/toolbar/toolbarCustomization.d.ts +0 -14
- package/dist/toolbar/toolbarCustomization.d.ts.map +0 -1
- package/dist/toolbar/types.d.ts +0 -65
- package/dist/toolbar/types.d.ts.map +0 -1
- package/dist/types.d.ts +0 -344
- package/dist/types.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ Give the editor a parent with a definite height (`height: 100%` on a sized ances
|
|
|
57
57
|
| `onFullscreenChange` | `(fullscreen: boolean) => void` | — | Fires when full screen is entered or exited |
|
|
58
58
|
| `placeholder` | `string` | — | Empty-state hint |
|
|
59
59
|
| `disabled` | `boolean` | `false` | Same lock as `readOnly`. Either prop being true locks the editor |
|
|
60
|
-
| `readOnly` | `boolean` | `false` | When true,
|
|
60
|
+
| `readOnly` | `boolean` | `false` | Locks document editing. When `enableComments` is also true, comment chrome stays available and `onCommentsChange` still fires; anchor writes do not call `onChange`. See [Comments](#comments) |
|
|
61
61
|
| `className` | `string` | — | Extra class on the editor root |
|
|
62
62
|
| `locale` | `'en' \| 'es'` | `'en'` | Library chrome language. Document content is not translated |
|
|
63
63
|
| `toolbarBackground` | `string` | `#f0f0f0` | CSS color for the icon toolbar row. Omit to use the default light gray |
|
|
@@ -88,11 +88,16 @@ Give the editor a parent with a definite height (`height: 100%` on a sized ances
|
|
|
88
88
|
| `pages` | `string[]` | — | Controlled page HTML strings when `enableMultiPages` is true |
|
|
89
89
|
| `defaultPages` | `string[]` | — | Initial pages when uncontrolled and `enableMultiPages` is true |
|
|
90
90
|
| `onPagesChange` | `(pages: string[], activePageIndex: number) => void` | — | Fires when any page changes while multi-page mode is enabled |
|
|
91
|
+
| `enableComments` | `boolean` | `false` | When true, comment chrome and thread state are enabled. See [Comments](#comments) |
|
|
92
|
+
| `commentAuthor` | `CommentAuthor` | — | `{ userId, userName }` identity for posting messages in the comment panel |
|
|
93
|
+
| `comments` | `CommentThread[]` | — | Controlled comment thread array (metadata separate from document HTML) |
|
|
94
|
+
| `defaultComments` | `CommentThread[]` | `[]` | Initial threads when uncontrolled |
|
|
95
|
+
| `onCommentsChange` | `(threads: CommentThread[]) => void` | — | Fires when comment threads change |
|
|
91
96
|
| `toolbarCustomization` | `ToolbarCustomizationPersistence` | — | Host load/save for icon-toolbar layout. Omit to persist in `localStorage`. See [Customize toolbar](#customize-toolbar) |
|
|
92
97
|
| `darkMode` | `boolean` | `false` | Initial chrome theme when nothing is persisted (`true` = dark). See [Dark mode](#dark-mode) |
|
|
93
98
|
| `darkModePersistence` | `DarkModePersistence` | — | Host load/save for the chrome theme. Omit to persist in `localStorage`. See [Dark mode](#dark-mode) |
|
|
94
99
|
|
|
95
|
-
`mode`, `value`, and `fullscreen` are optional. Omit them for internal state; pass them to control from the parent. Chrome includes a File menu (Save, Load, and Print), an Edit menu (Undo, Redo, and Page properties), an Insert menu (Link, Bookmark, Image, Audio, YouTube video, Table, and
|
|
100
|
+
`mode`, `value`, and `fullscreen` are optional. Omit them for internal state; pass them to control from the parent. Chrome includes a File menu (Save, Load, and Print), an Edit menu (Undo, Redo, and Page properties), an Insert menu (Link, Bookmark, Image, Audio, YouTube video, Table, Horizontal line, and Page break), a Table menu (Insert table, row and column items, Merge cells, Unmerge cells, and table/cell/row properties), a View menu (Visual, HTML, Toolbar customize and position, Zoom, Light/Dark mode, Preview, Read aloud, and Full screen), and a Format menu (paragraph styles, font, clear formatting, paragraph, and image properties), unless `menuVisible` is `false`. The icon toolbar has File (Save and Load), Print, Edit (Undo and Redo), Insert (Link, Bookmark, Image, Table, and Horizontal line), Table (Merge cells and Unmerge cells), Font, Align, Paragraph, and View (Visual | HTML | Preview | Read aloud) groups, with Full screen pinned last, unless `toolbarVisible` is `false`. Hide both to drop the chrome slot entirely. View → Toolbar → Position docks the icon toolbar (the menu bar stays at the top). Top and bottom wrap onto multiple rows when they cannot fit on one line; Full screen stays last, pinned to the right of the first row. Left and right stay a single column and grow the editor instead of wrapping into extra columns. Full screen covers the host page with a fixed overlay; an X control (and Escape) returns to the in-page layout. Visual and HTML mode stay independent of the overlay. By default, Save writes the current document to an HTML file and Load replaces it from an HTML file; pass `onSave` and/or `onOpen` to delegate to host callbacks instead (see [Save and open](#save-and-open)). Dropping an `.html` / `.htm` file onto the document surface does the same as Load, unless `disableHtmlFileDrop` is set. Print opens the browser print dialog for the document HTML only (not the editor chrome). Preview (View menu and View icon group) opens a large dialog with a scrollable rendering of the current document HTML. Read aloud (View menu and View icon group) uses the browser’s built-in speech synthesis to read the current selection, or the full document when nothing is selected; click again to stop. Undo and Redo walk document HTML history; they are grayed out when there is nothing to undo or redo. The File, Edit, and Insert menu items use the same icons as the toolbar buttons where both exist. Link wraps the selection (or inserts the URL as the visible text at the caret) in an `<a href>` tag; an optional title becomes the native hover tooltip, and opening in a new tab sets `target="_blank"`. Bookmark inserts a named destination (`id`) at the caret or around the selection. Audio and YouTube video are available from the Insert menu only (no toolbar buttons). Horizontal line inserts an `<hr>` at the caret. Page break inserts a hard print break at the caret (Insert → Page break, or Ctrl/Cmd+Enter in visual mode). Content after the break starts on a new printed page. Serialized HTML uses inline `break-after: page` / `page-break-after: always` on a `<div>` — distinct from **Insert → Page**, which adds a new editor page when `enableMultiPages` is on.
|
|
96
101
|
|
|
97
102
|
`menuColor`, `menuBackground`, `menuFontSize`, and `menuFontFamily` restyle the dropdown menu bar and panels only — not the icon toolbar. `border` is the outer editor box and is ignored in fullscreen. Custom menu fonts must already be available on the page.
|
|
98
103
|
|
|
@@ -111,7 +116,7 @@ import { Editor } from 'commspliant-html-editor'
|
|
|
111
116
|
|
|
112
117
|
### Page properties
|
|
113
118
|
|
|
114
|
-
Edit → Page → **Page properties** opens a dialog with **Font**, **Paragraph**, and **Print** tabs. Paragraph sub-tabs include **Spacing**, **Border**, **Background** (fill color and page opacity), and **Background Image**. The **Print** tab edits `@page` size, orientation, and margins.
|
|
119
|
+
Edit → Page → **Page properties** opens a dialog with **Font**, **Paragraph**, and **Print** tabs. Paragraph sub-tabs include **Spacing**, **Border**, **Background** (fill color and page opacity), and **Background Image**. The **Print** tab edits `@page` size, orientation, and margins. In visual mode, the white editing surface previews that page size and print margins on screen (display-only; serialized HTML is unchanged). Use **View → Zoom** for screen-only fit and percentage zoom; zoom is not stored in the document.
|
|
115
120
|
|
|
116
121
|
The first time page properties are applied, content is wrapped in a single `<div data-page>` shell with `width: 100%` and `height: 100%`. Background **color** is written on that shell. Background **image** uses the same file, URL, or custom picker as Insert → Image, plus independent width and height (default width `100%`, height unset), and opacity, fit, and position controls (the same options as Image properties → Advanced). Rotation is not supported for page backgrounds. Width and height write `background-size`; keyword fit values (`cover`, `contain`) replace those dimensions.
|
|
117
122
|
|
|
@@ -347,7 +352,7 @@ let stored: CustomParagraphStyle[] = []
|
|
|
347
352
|
| `id` | `string` | Stable id. The dialog assigns one on create |
|
|
348
353
|
| `name` | `string` | Visible name. Always trimmed and non-empty on save |
|
|
349
354
|
| `font` | `CustomParagraphStyleFont` | Size, unit, marks, family, and colors captured by the dialog |
|
|
350
|
-
| `paragraph` | `CustomParagraphStyleParagraph` | Optional paragraph box: align, list, margin, padding, line-height, border, radius, shadow, background, opacity |
|
|
355
|
+
| `paragraph` | `CustomParagraphStyleParagraph` | Optional paragraph box: align, list, margin, padding, line-height, border, radius, shadow, background, opacity, and page-break (`breakInside`, `breakAfter`, `breakBefore`) |
|
|
351
356
|
|
|
352
357
|
Omit all three props to keep only the built-in styles.
|
|
353
358
|
|
|
@@ -450,6 +455,54 @@ export function MultiPageEditor() {
|
|
|
450
455
|
}
|
|
451
456
|
```
|
|
452
457
|
|
|
458
|
+
### Page break
|
|
459
|
+
|
|
460
|
+
In visual mode, use **Insert → Page break** or **Ctrl/Cmd+Enter** to insert a hard print break at the caret. The editor shows a dashed line; serialized HTML is a `<div>` with inline `break-after: page` and `page-break-after: always`. Content after the break starts on a new page when printing.
|
|
461
|
+
|
|
462
|
+
This is not the same as **Insert → Page** (multi-page mode), which adds a separate editor page surface.
|
|
463
|
+
|
|
464
|
+
### Comments
|
|
465
|
+
|
|
466
|
+
Set `enableComments` to add lightweight comment threads anchored in the document with `data-comment-thread` markers. Thread metadata (`CommentThread[]`) is separate from document HTML — use `comments` / `onCommentsChange` to persist it.
|
|
467
|
+
|
|
468
|
+
- **Add comment** (toolbar Insert group and Insert → Comment) wraps the selection or marks the selected image, then opens the comment panel.
|
|
469
|
+
- **Show/Hide comments** (View menu and View icon group) toggles highlight styling only; thread data and anchors remain.
|
|
470
|
+
- **`commentAuthor`** (`{ userId, userName }`) is required to enable Post in the panel.
|
|
471
|
+
|
|
472
|
+
**Sanitized HTML:** export `stripCommentAnchors` from the package to remove comment-only spans and attributes for published document HTML:
|
|
473
|
+
|
|
474
|
+
```tsx
|
|
475
|
+
import { Editor, stripCommentAnchors } from 'commspliant-html-editor'
|
|
476
|
+
|
|
477
|
+
// Editor HTML may include anchors:
|
|
478
|
+
// <p>Price was <span data-comment-thread="cmt_…">£150</span> last week.</p>
|
|
479
|
+
|
|
480
|
+
const clean = stripCommentAnchors(html)
|
|
481
|
+
// <p>Price was £150 last week.</p>
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
**Read-only documents:** with `readOnly` and `enableComments`, users can still add and reply to comments. Anchor DOM updates fire `onCommentsChange` only — not `onChange`. Supply `value` and `comments` on load; the editor re-applies anchors for highlights.
|
|
485
|
+
|
|
486
|
+
```tsx
|
|
487
|
+
import { useState } from 'react'
|
|
488
|
+
import { Editor, type CommentThread } from 'commspliant-html-editor'
|
|
489
|
+
|
|
490
|
+
export function ReviewEditor() {
|
|
491
|
+
const [comments, setComments] = useState<CommentThread[]>([])
|
|
492
|
+
|
|
493
|
+
return (
|
|
494
|
+
<Editor
|
|
495
|
+
value="<p>Immutable version</p>"
|
|
496
|
+
readOnly
|
|
497
|
+
enableComments
|
|
498
|
+
commentAuthor={{ userId: 'u1', userName: 'Reviewer' }}
|
|
499
|
+
comments={comments}
|
|
500
|
+
onCommentsChange={setComments}
|
|
501
|
+
/>
|
|
502
|
+
)
|
|
503
|
+
}
|
|
504
|
+
```
|
|
505
|
+
|
|
453
506
|
### Custom actions
|
|
454
507
|
|
|
455
508
|
Pass a `customActions` array to add host buttons, menu items, or both. Labels and tooltips are your copy — the library does not translate them.
|
package/dist/404.html
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>HTML editor Playground</title>
|
|
7
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
8
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
9
|
+
<link
|
|
10
|
+
href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap"
|
|
11
|
+
rel="stylesheet"
|
|
12
|
+
/>
|
|
13
|
+
<script type="module" crossorigin src="/assets/index-8mpvnzOy.js"></script>
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Cu8klpl0.css">
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
<div id="root"></div>
|
|
18
|
+
</body>
|
|
19
|
+
</html>
|