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.
Files changed (411) hide show
  1. package/README.md +57 -4
  2. package/dist/404.html +19 -0
  3. package/dist/assets/index-8mpvnzOy.js +375 -0
  4. package/dist/{commspliant-html-editor.css → assets/index-Cu8klpl0.css} +1 -1
  5. package/dist/index.html +19 -0
  6. package/dist/logo.svg +314 -0
  7. package/package.json +1 -1
  8. package/dist/chrome/ChromeTheme.d.ts +0 -14
  9. package/dist/chrome/ChromeTheme.d.ts.map +0 -1
  10. package/dist/components/Editor.d.ts +0 -3
  11. package/dist/components/Editor.d.ts.map +0 -1
  12. package/dist/components/HtmlSurface.d.ts +0 -9
  13. package/dist/components/HtmlSurface.d.ts.map +0 -1
  14. package/dist/components/MultiPageVisualSurface.d.ts +0 -22
  15. package/dist/components/MultiPageVisualSurface.d.ts.map +0 -1
  16. package/dist/components/VisualSurface.d.ts +0 -14
  17. package/dist/components/VisualSurface.d.ts.map +0 -1
  18. package/dist/core/audio.d.ts +0 -16
  19. package/dist/core/audio.d.ts.map +0 -1
  20. package/dist/core/blockFormat.d.ts +0 -10
  21. package/dist/core/blockFormat.d.ts.map +0 -1
  22. package/dist/core/blocks.d.ts +0 -19
  23. package/dist/core/blocks.d.ts.map +0 -1
  24. package/dist/core/bookmark.d.ts +0 -10
  25. package/dist/core/bookmark.d.ts.map +0 -1
  26. package/dist/core/cellProperties.d.ts +0 -20
  27. package/dist/core/cellProperties.d.ts.map +0 -1
  28. package/dist/core/clearFormatting.d.ts +0 -2
  29. package/dist/core/clearFormatting.d.ts.map +0 -1
  30. package/dist/core/clipboard.d.ts +0 -9
  31. package/dist/core/clipboard.d.ts.map +0 -1
  32. package/dist/core/commandTypes.d.ts +0 -298
  33. package/dist/core/commandTypes.d.ts.map +0 -1
  34. package/dist/core/commands.d.ts +0 -5
  35. package/dist/core/commands.d.ts.map +0 -1
  36. package/dist/core/cssLength.d.ts +0 -13
  37. package/dist/core/cssLength.d.ts.map +0 -1
  38. package/dist/core/customActions.d.ts +0 -12
  39. package/dist/core/customActions.d.ts.map +0 -1
  40. package/dist/core/customCss.d.ts +0 -15
  41. package/dist/core/customCss.d.ts.map +0 -1
  42. package/dist/core/documentStyles.d.ts +0 -4
  43. package/dist/core/documentStyles.d.ts.map +0 -1
  44. package/dist/core/fontFamily.d.ts +0 -40
  45. package/dist/core/fontFamily.d.ts.map +0 -1
  46. package/dist/core/fontSize.d.ts +0 -25
  47. package/dist/core/fontSize.d.ts.map +0 -1
  48. package/dist/core/fontSizeUnits.d.ts +0 -29
  49. package/dist/core/fontSizeUnits.d.ts.map +0 -1
  50. package/dist/core/formatBrush.d.ts +0 -10
  51. package/dist/core/formatBrush.d.ts.map +0 -1
  52. package/dist/core/horizontalRule.d.ts +0 -4
  53. package/dist/core/horizontalRule.d.ts.map +0 -1
  54. package/dist/core/image.d.ts +0 -19
  55. package/dist/core/image.d.ts.map +0 -1
  56. package/dist/core/imageProperties.d.ts +0 -35
  57. package/dist/core/imageProperties.d.ts.map +0 -1
  58. package/dist/core/imageResize.d.ts +0 -18
  59. package/dist/core/imageResize.d.ts.map +0 -1
  60. package/dist/core/imageSize.d.ts +0 -23
  61. package/dist/core/imageSize.d.ts.map +0 -1
  62. package/dist/core/indent.d.ts +0 -7
  63. package/dist/core/indent.d.ts.map +0 -1
  64. package/dist/core/inlineColor.d.ts +0 -23
  65. package/dist/core/inlineColor.d.ts.map +0 -1
  66. package/dist/core/inlineRange.d.ts +0 -10
  67. package/dist/core/inlineRange.d.ts.map +0 -1
  68. package/dist/core/link.d.ts +0 -18
  69. package/dist/core/link.d.ts.map +0 -1
  70. package/dist/core/lists.d.ts +0 -12
  71. package/dist/core/lists.d.ts.map +0 -1
  72. package/dist/core/marks.d.ts +0 -18
  73. package/dist/core/marks.d.ts.map +0 -1
  74. package/dist/core/multiPage.d.ts +0 -10
  75. package/dist/core/multiPage.d.ts.map +0 -1
  76. package/dist/core/page.d.ts +0 -14
  77. package/dist/core/page.d.ts.map +0 -1
  78. package/dist/core/pageAtRule.d.ts +0 -21
  79. package/dist/core/pageAtRule.d.ts.map +0 -1
  80. package/dist/core/pageBackgroundImage.d.ts +0 -16
  81. package/dist/core/pageBackgroundImage.d.ts.map +0 -1
  82. package/dist/core/pageProperties.d.ts +0 -8
  83. package/dist/core/pageProperties.d.ts.map +0 -1
  84. package/dist/core/paragraphBox.d.ts +0 -82
  85. package/dist/core/paragraphBox.d.ts.map +0 -1
  86. package/dist/core/paragraphProperties.d.ts +0 -17
  87. package/dist/core/paragraphProperties.d.ts.map +0 -1
  88. package/dist/core/readAloud.d.ts +0 -11
  89. package/dist/core/readAloud.d.ts.map +0 -1
  90. package/dist/core/rowProperties.d.ts +0 -17
  91. package/dist/core/rowProperties.d.ts.map +0 -1
  92. package/dist/core/selection.d.ts +0 -25
  93. package/dist/core/selection.d.ts.map +0 -1
  94. package/dist/core/table.d.ts +0 -34
  95. package/dist/core/table.d.ts.map +0 -1
  96. package/dist/core/tableGrid.d.ts +0 -40
  97. package/dist/core/tableGrid.d.ts.map +0 -1
  98. package/dist/core/tableProperties.d.ts +0 -18
  99. package/dist/core/tableProperties.d.ts.map +0 -1
  100. package/dist/core/textAlign.d.ts +0 -9
  101. package/dist/core/textAlign.d.ts.map +0 -1
  102. package/dist/core/youtube.d.ts +0 -20
  103. package/dist/core/youtube.d.ts.map +0 -1
  104. package/dist/hooks/useAutoSave.d.ts +0 -9
  105. package/dist/hooks/useAutoSave.d.ts.map +0 -1
  106. package/dist/hooks/useControllableState.d.ts +0 -8
  107. package/dist/hooks/useControllableState.d.ts.map +0 -1
  108. package/dist/i18n/LocaleProvider.d.ts +0 -11
  109. package/dist/i18n/LocaleProvider.d.ts.map +0 -1
  110. package/dist/i18n/en.d.ts +0 -3
  111. package/dist/i18n/en.d.ts.map +0 -1
  112. package/dist/i18n/es.d.ts +0 -3
  113. package/dist/i18n/es.d.ts.map +0 -1
  114. package/dist/i18n/types.d.ts +0 -428
  115. package/dist/i18n/types.d.ts.map +0 -1
  116. package/dist/icons/AlignCenterIcon.d.ts +0 -3
  117. package/dist/icons/AlignCenterIcon.d.ts.map +0 -1
  118. package/dist/icons/AlignJustifyIcon.d.ts +0 -3
  119. package/dist/icons/AlignJustifyIcon.d.ts.map +0 -1
  120. package/dist/icons/AlignLeftIcon.d.ts +0 -3
  121. package/dist/icons/AlignLeftIcon.d.ts.map +0 -1
  122. package/dist/icons/AlignRightIcon.d.ts +0 -3
  123. package/dist/icons/AlignRightIcon.d.ts.map +0 -1
  124. package/dist/icons/AudioIcon.d.ts +0 -3
  125. package/dist/icons/AudioIcon.d.ts.map +0 -1
  126. package/dist/icons/BoldIcon.d.ts +0 -3
  127. package/dist/icons/BoldIcon.d.ts.map +0 -1
  128. package/dist/icons/BookmarkIcon.d.ts +0 -3
  129. package/dist/icons/BookmarkIcon.d.ts.map +0 -1
  130. package/dist/icons/BulletListIcon.d.ts +0 -3
  131. package/dist/icons/BulletListIcon.d.ts.map +0 -1
  132. package/dist/icons/CellPropertiesIcon.d.ts +0 -3
  133. package/dist/icons/CellPropertiesIcon.d.ts.map +0 -1
  134. package/dist/icons/ClearFormattingIcon.d.ts +0 -3
  135. package/dist/icons/ClearFormattingIcon.d.ts.map +0 -1
  136. package/dist/icons/CloseIcon.d.ts +0 -3
  137. package/dist/icons/CloseIcon.d.ts.map +0 -1
  138. package/dist/icons/CommspliantShieldIcon.d.ts +0 -3
  139. package/dist/icons/CommspliantShieldIcon.d.ts.map +0 -1
  140. package/dist/icons/CustomActionIcon.d.ts +0 -3
  141. package/dist/icons/CustomActionIcon.d.ts.map +0 -1
  142. package/dist/icons/CustomCssIcon.d.ts +0 -3
  143. package/dist/icons/CustomCssIcon.d.ts.map +0 -1
  144. package/dist/icons/CustomizeToolbarIcon.d.ts +0 -3
  145. package/dist/icons/CustomizeToolbarIcon.d.ts.map +0 -1
  146. package/dist/icons/DarkModeIcon.d.ts +0 -3
  147. package/dist/icons/DarkModeIcon.d.ts.map +0 -1
  148. package/dist/icons/FontColorIcon.d.ts +0 -3
  149. package/dist/icons/FontColorIcon.d.ts.map +0 -1
  150. package/dist/icons/FontFamilyIcon.d.ts +0 -3
  151. package/dist/icons/FontFamilyIcon.d.ts.map +0 -1
  152. package/dist/icons/FontPropertiesIcon.d.ts +0 -3
  153. package/dist/icons/FontPropertiesIcon.d.ts.map +0 -1
  154. package/dist/icons/FontSizeIcon.d.ts +0 -3
  155. package/dist/icons/FontSizeIcon.d.ts.map +0 -1
  156. package/dist/icons/FormatBrushIcon.d.ts +0 -3
  157. package/dist/icons/FormatBrushIcon.d.ts.map +0 -1
  158. package/dist/icons/FullscreenIcon.d.ts +0 -3
  159. package/dist/icons/FullscreenIcon.d.ts.map +0 -1
  160. package/dist/icons/HighlightColorIcon.d.ts +0 -3
  161. package/dist/icons/HighlightColorIcon.d.ts.map +0 -1
  162. package/dist/icons/HorizontalRuleIcon.d.ts +0 -3
  163. package/dist/icons/HorizontalRuleIcon.d.ts.map +0 -1
  164. package/dist/icons/HtmlIcon.d.ts +0 -3
  165. package/dist/icons/HtmlIcon.d.ts.map +0 -1
  166. package/dist/icons/ImageIcon.d.ts +0 -3
  167. package/dist/icons/ImageIcon.d.ts.map +0 -1
  168. package/dist/icons/IndentIcon.d.ts +0 -3
  169. package/dist/icons/IndentIcon.d.ts.map +0 -1
  170. package/dist/icons/ItalicIcon.d.ts +0 -3
  171. package/dist/icons/ItalicIcon.d.ts.map +0 -1
  172. package/dist/icons/LightModeIcon.d.ts +0 -3
  173. package/dist/icons/LightModeIcon.d.ts.map +0 -1
  174. package/dist/icons/LinkIcon.d.ts +0 -3
  175. package/dist/icons/LinkIcon.d.ts.map +0 -1
  176. package/dist/icons/MenuIcon.d.ts +0 -3
  177. package/dist/icons/MenuIcon.d.ts.map +0 -1
  178. package/dist/icons/MergeCellsIcon.d.ts +0 -3
  179. package/dist/icons/MergeCellsIcon.d.ts.map +0 -1
  180. package/dist/icons/NumberedListIcon.d.ts +0 -3
  181. package/dist/icons/NumberedListIcon.d.ts.map +0 -1
  182. package/dist/icons/OpenIcon.d.ts +0 -3
  183. package/dist/icons/OpenIcon.d.ts.map +0 -1
  184. package/dist/icons/OutdentIcon.d.ts +0 -3
  185. package/dist/icons/OutdentIcon.d.ts.map +0 -1
  186. package/dist/icons/PagePropertiesIcon.d.ts +0 -3
  187. package/dist/icons/PagePropertiesIcon.d.ts.map +0 -1
  188. package/dist/icons/ParagraphPropertiesIcon.d.ts +0 -3
  189. package/dist/icons/ParagraphPropertiesIcon.d.ts.map +0 -1
  190. package/dist/icons/ParagraphStyleIcon.d.ts +0 -3
  191. package/dist/icons/ParagraphStyleIcon.d.ts.map +0 -1
  192. package/dist/icons/PlusIcon.d.ts +0 -3
  193. package/dist/icons/PlusIcon.d.ts.map +0 -1
  194. package/dist/icons/PreviewIcon.d.ts +0 -3
  195. package/dist/icons/PreviewIcon.d.ts.map +0 -1
  196. package/dist/icons/PrintIcon.d.ts +0 -3
  197. package/dist/icons/PrintIcon.d.ts.map +0 -1
  198. package/dist/icons/ReadAloudIcon.d.ts +0 -3
  199. package/dist/icons/ReadAloudIcon.d.ts.map +0 -1
  200. package/dist/icons/RedoIcon.d.ts +0 -3
  201. package/dist/icons/RedoIcon.d.ts.map +0 -1
  202. package/dist/icons/RowPropertiesIcon.d.ts +0 -3
  203. package/dist/icons/RowPropertiesIcon.d.ts.map +0 -1
  204. package/dist/icons/SaveIcon.d.ts +0 -3
  205. package/dist/icons/SaveIcon.d.ts.map +0 -1
  206. package/dist/icons/StrikethroughIcon.d.ts +0 -3
  207. package/dist/icons/StrikethroughIcon.d.ts.map +0 -1
  208. package/dist/icons/TableColumnIcon.d.ts +0 -3
  209. package/dist/icons/TableColumnIcon.d.ts.map +0 -1
  210. package/dist/icons/TableIcon.d.ts +0 -3
  211. package/dist/icons/TableIcon.d.ts.map +0 -1
  212. package/dist/icons/TableRowIcon.d.ts +0 -3
  213. package/dist/icons/TableRowIcon.d.ts.map +0 -1
  214. package/dist/icons/UnderlineIcon.d.ts +0 -3
  215. package/dist/icons/UnderlineIcon.d.ts.map +0 -1
  216. package/dist/icons/UndoIcon.d.ts +0 -3
  217. package/dist/icons/UndoIcon.d.ts.map +0 -1
  218. package/dist/icons/UnmergeCellsIcon.d.ts +0 -3
  219. package/dist/icons/UnmergeCellsIcon.d.ts.map +0 -1
  220. package/dist/icons/VisualIcon.d.ts +0 -3
  221. package/dist/icons/VisualIcon.d.ts.map +0 -1
  222. package/dist/icons/YoutubeIcon.d.ts +0 -3
  223. package/dist/icons/YoutubeIcon.d.ts.map +0 -1
  224. package/dist/icons/index.d.ts +0 -56
  225. package/dist/icons/index.d.ts.map +0 -1
  226. package/dist/icons/types.d.ts +0 -4
  227. package/dist/icons/types.d.ts.map +0 -1
  228. package/dist/index.cjs +0 -96
  229. package/dist/index.d.ts +0 -5
  230. package/dist/index.d.ts.map +0 -1
  231. package/dist/index.js +0 -17163
  232. package/dist/modules/contextMenu/ContextMenu.d.ts +0 -15
  233. package/dist/modules/contextMenu/ContextMenu.d.ts.map +0 -1
  234. package/dist/modules/contextMenu/commands.d.ts +0 -3
  235. package/dist/modules/contextMenu/commands.d.ts.map +0 -1
  236. package/dist/modules/contextMenu/index.d.ts +0 -5
  237. package/dist/modules/contextMenu/index.d.ts.map +0 -1
  238. package/dist/modules/contextMenu/shouldOpenEditorContextMenu.d.ts +0 -6
  239. package/dist/modules/contextMenu/shouldOpenEditorContextMenu.d.ts.map +0 -1
  240. package/dist/modules/file/catalog.d.ts +0 -3
  241. package/dist/modules/file/catalog.d.ts.map +0 -1
  242. package/dist/modules/file/commands.d.ts +0 -3
  243. package/dist/modules/file/commands.d.ts.map +0 -1
  244. package/dist/modules/file/fileDialogs.d.ts +0 -3
  245. package/dist/modules/file/fileDialogs.d.ts.map +0 -1
  246. package/dist/modules/file/htmlFile.d.ts +0 -5
  247. package/dist/modules/file/htmlFile.d.ts.map +0 -1
  248. package/dist/modules/file/index.d.ts +0 -4
  249. package/dist/modules/file/index.d.ts.map +0 -1
  250. package/dist/modules/file/printHtml.d.ts +0 -3
  251. package/dist/modules/file/printHtml.d.ts.map +0 -1
  252. package/dist/modules/file/useHtmlFileDrop.d.ts +0 -14
  253. package/dist/modules/file/useHtmlFileDrop.d.ts.map +0 -1
  254. package/dist/modules/format/ColorField.d.ts +0 -11
  255. package/dist/modules/format/ColorField.d.ts.map +0 -1
  256. package/dist/modules/format/ColorPicker.d.ts +0 -13
  257. package/dist/modules/format/ColorPicker.d.ts.map +0 -1
  258. package/dist/modules/format/ColorSelect.d.ts +0 -16
  259. package/dist/modules/format/ColorSelect.d.ts.map +0 -1
  260. package/dist/modules/format/CustomCssDialog.d.ts +0 -9
  261. package/dist/modules/format/CustomCssDialog.d.ts.map +0 -1
  262. package/dist/modules/format/CustomParagraphStyleDialog.d.ts +0 -21
  263. package/dist/modules/format/CustomParagraphStyleDialog.d.ts.map +0 -1
  264. package/dist/modules/format/FontColorSelect.d.ts +0 -3
  265. package/dist/modules/format/FontColorSelect.d.ts.map +0 -1
  266. package/dist/modules/format/FontFamilyList.d.ts +0 -16
  267. package/dist/modules/format/FontFamilyList.d.ts.map +0 -1
  268. package/dist/modules/format/FontFamilySelect.d.ts +0 -15
  269. package/dist/modules/format/FontFamilySelect.d.ts.map +0 -1
  270. package/dist/modules/format/FontPropertiesDialog.d.ts +0 -24
  271. package/dist/modules/format/FontPropertiesDialog.d.ts.map +0 -1
  272. package/dist/modules/format/FontPropertiesFields.d.ts +0 -12
  273. package/dist/modules/format/FontPropertiesFields.d.ts.map +0 -1
  274. package/dist/modules/format/FontSizeCombobox.d.ts +0 -13
  275. package/dist/modules/format/FontSizeCombobox.d.ts.map +0 -1
  276. package/dist/modules/format/FontSizeSelect.d.ts +0 -3
  277. package/dist/modules/format/FontSizeSelect.d.ts.map +0 -1
  278. package/dist/modules/format/HighlightColorSelect.d.ts +0 -4
  279. package/dist/modules/format/HighlightColorSelect.d.ts.map +0 -1
  280. package/dist/modules/format/LengthField.d.ts +0 -12
  281. package/dist/modules/format/LengthField.d.ts.map +0 -1
  282. package/dist/modules/format/PageAtRuleFields.d.ts +0 -9
  283. package/dist/modules/format/PageAtRuleFields.d.ts.map +0 -1
  284. package/dist/modules/format/PageBackgroundImageFields.d.ts +0 -11
  285. package/dist/modules/format/PageBackgroundImageFields.d.ts.map +0 -1
  286. package/dist/modules/format/PagePropertiesDialog.d.ts +0 -18
  287. package/dist/modules/format/PagePropertiesDialog.d.ts.map +0 -1
  288. package/dist/modules/format/ParagraphPropertiesDialog.d.ts +0 -12
  289. package/dist/modules/format/ParagraphPropertiesDialog.d.ts.map +0 -1
  290. package/dist/modules/format/ParagraphPropertiesFields.d.ts +0 -19
  291. package/dist/modules/format/ParagraphPropertiesFields.d.ts.map +0 -1
  292. package/dist/modules/format/ParagraphStyleList.d.ts +0 -22
  293. package/dist/modules/format/ParagraphStyleList.d.ts.map +0 -1
  294. package/dist/modules/format/ParagraphStyleSelect.d.ts +0 -4
  295. package/dist/modules/format/ParagraphStyleSelect.d.ts.map +0 -1
  296. package/dist/modules/format/ShadowFields.d.ts +0 -8
  297. package/dist/modules/format/ShadowFields.d.ts.map +0 -1
  298. package/dist/modules/format/catalog.d.ts +0 -3
  299. package/dist/modules/format/catalog.d.ts.map +0 -1
  300. package/dist/modules/format/colorModel.d.ts +0 -22
  301. package/dist/modules/format/colorModel.d.ts.map +0 -1
  302. package/dist/modules/format/colorPalette.d.ts +0 -3
  303. package/dist/modules/format/colorPalette.d.ts.map +0 -1
  304. package/dist/modules/format/commands.d.ts +0 -4
  305. package/dist/modules/format/commands.d.ts.map +0 -1
  306. package/dist/modules/format/fontDialog.d.ts +0 -9
  307. package/dist/modules/format/fontDialog.d.ts.map +0 -1
  308. package/dist/modules/format/fontSize.d.ts +0 -2
  309. package/dist/modules/format/fontSize.d.ts.map +0 -1
  310. package/dist/modules/format/index.d.ts +0 -3
  311. package/dist/modules/format/index.d.ts.map +0 -1
  312. package/dist/modules/format/pageDialog.d.ts +0 -9
  313. package/dist/modules/format/pageDialog.d.ts.map +0 -1
  314. package/dist/modules/format/paragraphDialog.d.ts +0 -9
  315. package/dist/modules/format/paragraphDialog.d.ts.map +0 -1
  316. package/dist/modules/history/catalog.d.ts +0 -3
  317. package/dist/modules/history/catalog.d.ts.map +0 -1
  318. package/dist/modules/history/commands.d.ts +0 -4
  319. package/dist/modules/history/commands.d.ts.map +0 -1
  320. package/dist/modules/history/history.d.ts +0 -17
  321. package/dist/modules/history/history.d.ts.map +0 -1
  322. package/dist/modules/history/index.d.ts +0 -5
  323. package/dist/modules/history/index.d.ts.map +0 -1
  324. package/dist/modules/insert/AudioDialog.d.ts +0 -12
  325. package/dist/modules/insert/AudioDialog.d.ts.map +0 -1
  326. package/dist/modules/insert/BookmarkDialog.d.ts +0 -9
  327. package/dist/modules/insert/BookmarkDialog.d.ts.map +0 -1
  328. package/dist/modules/insert/ImageAdvancedFields.d.ts +0 -15
  329. package/dist/modules/insert/ImageAdvancedFields.d.ts.map +0 -1
  330. package/dist/modules/insert/ImageDialog.d.ts +0 -12
  331. package/dist/modules/insert/ImageDialog.d.ts.map +0 -1
  332. package/dist/modules/insert/ImagePropertiesDialog.d.ts +0 -13
  333. package/dist/modules/insert/ImagePropertiesDialog.d.ts.map +0 -1
  334. package/dist/modules/insert/ImagePropertiesFields.d.ts +0 -11
  335. package/dist/modules/insert/ImagePropertiesFields.d.ts.map +0 -1
  336. package/dist/modules/insert/ImageResizeOverlay.d.ts +0 -7
  337. package/dist/modules/insert/ImageResizeOverlay.d.ts.map +0 -1
  338. package/dist/modules/insert/ImageSizeField.d.ts +0 -10
  339. package/dist/modules/insert/ImageSizeField.d.ts.map +0 -1
  340. package/dist/modules/insert/ImageSourcePicker.d.ts +0 -14
  341. package/dist/modules/insert/ImageSourcePicker.d.ts.map +0 -1
  342. package/dist/modules/insert/LinkDialog.d.ts +0 -22
  343. package/dist/modules/insert/LinkDialog.d.ts.map +0 -1
  344. package/dist/modules/insert/YoutubeDialog.d.ts +0 -12
  345. package/dist/modules/insert/YoutubeDialog.d.ts.map +0 -1
  346. package/dist/modules/insert/catalog.d.ts +0 -3
  347. package/dist/modules/insert/catalog.d.ts.map +0 -1
  348. package/dist/modules/insert/commands.d.ts +0 -4
  349. package/dist/modules/insert/commands.d.ts.map +0 -1
  350. package/dist/modules/insert/imagePropertiesDialog.d.ts +0 -9
  351. package/dist/modules/insert/imagePropertiesDialog.d.ts.map +0 -1
  352. package/dist/modules/insert/index.d.ts +0 -3
  353. package/dist/modules/insert/index.d.ts.map +0 -1
  354. package/dist/modules/table/CellPropertiesDialog.d.ts +0 -10
  355. package/dist/modules/table/CellPropertiesDialog.d.ts.map +0 -1
  356. package/dist/modules/table/CellPropertiesFields.d.ts +0 -8
  357. package/dist/modules/table/CellPropertiesFields.d.ts.map +0 -1
  358. package/dist/modules/table/RowPropertiesDialog.d.ts +0 -10
  359. package/dist/modules/table/RowPropertiesDialog.d.ts.map +0 -1
  360. package/dist/modules/table/RowPropertiesFields.d.ts +0 -8
  361. package/dist/modules/table/RowPropertiesFields.d.ts.map +0 -1
  362. package/dist/modules/table/TableDialog.d.ts +0 -9
  363. package/dist/modules/table/TableDialog.d.ts.map +0 -1
  364. package/dist/modules/table/TablePropertiesDialog.d.ts +0 -10
  365. package/dist/modules/table/TablePropertiesDialog.d.ts.map +0 -1
  366. package/dist/modules/table/TablePropertiesFields.d.ts +0 -8
  367. package/dist/modules/table/TablePropertiesFields.d.ts.map +0 -1
  368. package/dist/modules/table/catalog.d.ts +0 -3
  369. package/dist/modules/table/catalog.d.ts.map +0 -1
  370. package/dist/modules/table/commands.d.ts +0 -4
  371. package/dist/modules/table/commands.d.ts.map +0 -1
  372. package/dist/modules/table/index.d.ts +0 -3
  373. package/dist/modules/table/index.d.ts.map +0 -1
  374. package/dist/modules/view/DocumentPreviewDialog.d.ts +0 -7
  375. package/dist/modules/view/DocumentPreviewDialog.d.ts.map +0 -1
  376. package/dist/modules/view/catalog.d.ts +0 -3
  377. package/dist/modules/view/catalog.d.ts.map +0 -1
  378. package/dist/modules/view/commands.d.ts +0 -4
  379. package/dist/modules/view/commands.d.ts.map +0 -1
  380. package/dist/modules/view/darkModePersistence.d.ts +0 -5
  381. package/dist/modules/view/darkModePersistence.d.ts.map +0 -1
  382. package/dist/modules/view/index.d.ts +0 -3
  383. package/dist/modules/view/index.d.ts.map +0 -1
  384. package/dist/modules/view/toolbarPositionPersistence.d.ts +0 -6
  385. package/dist/modules/view/toolbarPositionPersistence.d.ts.map +0 -1
  386. package/dist/toolbar/CustomizeToolbarDialog.d.ts +0 -16
  387. package/dist/toolbar/CustomizeToolbarDialog.d.ts.map +0 -1
  388. package/dist/toolbar/EditorToolbar.d.ts +0 -16
  389. package/dist/toolbar/EditorToolbar.d.ts.map +0 -1
  390. package/dist/toolbar/IconNav.d.ts +0 -12
  391. package/dist/toolbar/IconNav.d.ts.map +0 -1
  392. package/dist/toolbar/MenuBar.d.ts +0 -18
  393. package/dist/toolbar/MenuBar.d.ts.map +0 -1
  394. package/dist/toolbar/Tooltip.d.ts +0 -11
  395. package/dist/toolbar/Tooltip.d.ts.map +0 -1
  396. package/dist/toolbar/allowedChrome.d.ts +0 -4
  397. package/dist/toolbar/allowedChrome.d.ts.map +0 -1
  398. package/dist/toolbar/defaultCatalog.d.ts +0 -4
  399. package/dist/toolbar/defaultCatalog.d.ts.map +0 -1
  400. package/dist/toolbar/defaultLayout.d.ts +0 -3
  401. package/dist/toolbar/defaultLayout.d.ts.map +0 -1
  402. package/dist/toolbar/index.d.ts +0 -10
  403. package/dist/toolbar/index.d.ts.map +0 -1
  404. package/dist/toolbar/resolveChrome.d.ts +0 -12
  405. package/dist/toolbar/resolveChrome.d.ts.map +0 -1
  406. package/dist/toolbar/toolbarCustomization.d.ts +0 -14
  407. package/dist/toolbar/toolbarCustomization.d.ts.map +0 -1
  408. package/dist/toolbar/types.d.ts +0 -65
  409. package/dist/toolbar/types.d.ts.map +0 -1
  410. package/dist/types.d.ts +0 -344
  411. 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, neither surface can be edited and both are grayed out; menus and toolbar are grayed out and not clickable |
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 Horizontal line), 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, 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.
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>