@novaprose/core 0.3.0 → 0.5.1

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 (38) hide show
  1. package/dist/{advlist-DEJUHLI6.js → advlist-FH3K3AAQ.js} +2 -2
  2. package/dist/{autolink-ZVHNOOS7.js → autolink-IDJWAL2V.js} +2 -2
  3. package/dist/{autoresize-WT4ONZKK.js → autoresize-4ZEPQCHP.js} +2 -2
  4. package/dist/{autosave-2KI5WGV5.js → autosave-WODRZ7L6.js} +2 -2
  5. package/dist/{charmap-3LM5LZCC.js → charmap-LWA7TL3K.js} +2 -2
  6. package/dist/{chunk-BGG3UVGZ.js → chunk-2A3IYKPE.js} +5 -2
  7. package/dist/chunk-2A3IYKPE.js.map +1 -0
  8. package/dist/{chunk-F6TSOU5U.js → chunk-6GWG2BLC.js} +1 -1
  9. package/dist/chunk-6GWG2BLC.js.map +1 -0
  10. package/dist/{directionality-MTLAIFIQ.js → directionality-N62ZB7CF.js} +2 -2
  11. package/dist/{emoticons-YVGVA76P.js → emoticons-WQ3K4J6G.js} +2 -2
  12. package/dist/index.cjs +591 -145
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +129 -2
  15. package/dist/index.d.ts +129 -2
  16. package/dist/index.js +461 -20
  17. package/dist/index.js.map +1 -1
  18. package/dist/{insertdatetime-QYWZUYO4.js → insertdatetime-2RZ3UUQE.js} +2 -2
  19. package/dist/{nonbreaking-SIACL5V6.js → nonbreaking-L6GNDHVO.js} +2 -2
  20. package/dist/{quickbars-TYJG6WTF.js → quickbars-TIRY3RH4.js} +2 -2
  21. package/dist/{revisionhistory-ZCRBPP33.js → revisionhistory-GDTOULKS.js} +3 -3
  22. package/dist/{visualblocks-WB6NAEGB.js → visualblocks-V4CQ4XMF.js} +2 -2
  23. package/package.json +1 -1
  24. package/src/style.css +111 -0
  25. package/dist/chunk-BGG3UVGZ.js.map +0 -1
  26. package/dist/chunk-F6TSOU5U.js.map +0 -1
  27. /package/dist/{advlist-DEJUHLI6.js.map → advlist-FH3K3AAQ.js.map} +0 -0
  28. /package/dist/{autolink-ZVHNOOS7.js.map → autolink-IDJWAL2V.js.map} +0 -0
  29. /package/dist/{autoresize-WT4ONZKK.js.map → autoresize-4ZEPQCHP.js.map} +0 -0
  30. /package/dist/{autosave-2KI5WGV5.js.map → autosave-WODRZ7L6.js.map} +0 -0
  31. /package/dist/{charmap-3LM5LZCC.js.map → charmap-LWA7TL3K.js.map} +0 -0
  32. /package/dist/{directionality-MTLAIFIQ.js.map → directionality-N62ZB7CF.js.map} +0 -0
  33. /package/dist/{emoticons-YVGVA76P.js.map → emoticons-WQ3K4J6G.js.map} +0 -0
  34. /package/dist/{insertdatetime-QYWZUYO4.js.map → insertdatetime-2RZ3UUQE.js.map} +0 -0
  35. /package/dist/{nonbreaking-SIACL5V6.js.map → nonbreaking-L6GNDHVO.js.map} +0 -0
  36. /package/dist/{quickbars-TYJG6WTF.js.map → quickbars-TIRY3RH4.js.map} +0 -0
  37. /package/dist/{revisionhistory-ZCRBPP33.js.map → revisionhistory-GDTOULKS.js.map} +0 -0
  38. /package/dist/{visualblocks-WB6NAEGB.js.map → visualblocks-V4CQ4XMF.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as prosemirror_model from 'prosemirror-model';
2
2
  import { Node, Schema, NodeSpec, DOMOutputSpec, MarkSpec, MarkType, NodeType, Fragment, DOMParser } from 'prosemirror-model';
3
- import { Command, EditorState, Plugin } from 'prosemirror-state';
3
+ import { Command, EditorState, Plugin, Transaction } from 'prosemirror-state';
4
4
  import { EditorView } from 'prosemirror-view';
5
5
  import { addRowBefore, addRowAfter, deleteRow, addColumnBefore, addColumnAfter, deleteColumn, mergeCells, splitCell, deleteTable } from 'prosemirror-tables';
6
6
  export { isInTable } from 'prosemirror-tables';
@@ -1046,6 +1046,11 @@ interface NovaPlugin {
1046
1046
  commands?: Partial<Record<CommandName, Command>>;
1047
1047
  /** Плагин ведёт свою историю изменений — встроенная (prosemirror-history) не подключается. */
1048
1048
  replaceHistory?: boolean;
1049
+ /**
1050
+ * Переписать транзакцию до применения (режим правок превращает удаление в пометку «удалено»).
1051
+ * Вызывается для каждой транзакции редактора; вернуть ту же, если менять нечего.
1052
+ */
1053
+ transformTransaction?: (tr: Transaction, state: EditorState, editor: Editor) => Transaction;
1049
1054
  }
1050
1055
  type Loader = () => Promise<NovaPlugin | {
1051
1056
  default: NovaPlugin;
@@ -1458,6 +1463,7 @@ declare class Editor {
1458
1463
  readonly mode: EditorMode;
1459
1464
  private readonly pluginsByName;
1460
1465
  private readonly commandOverrides;
1466
+ private readonly transactionTransforms;
1461
1467
  private readonly cleanups;
1462
1468
  /** Ограничения контента (validElements/invalidElements/validStyles) или null — без ограничений. */
1463
1469
  readonly contentRules: ContentRules | null;
@@ -1643,4 +1649,125 @@ declare function hasHeaderRow(state: EditorState): boolean;
1643
1649
  /** Есть ли столбец-заголовок (первая ячейка каждой строки — th). */
1644
1650
  declare function hasHeaderColumn(state: EditorState): boolean;
1645
1651
 
1646
- export { type AutocompleterItem, type AutocompleterSpec, type AutosaveOptions, type ButtonSpec, type CommandName, type Comment, type CommentAuthor, type CommentStore, type CommentThread, type CommentsController, type CommentsOptions, ContentRules, type ContentRulesOptions, type ContextToolbarSpec, type ControlSpec, DEFAULT_MENUBAR, DEFAULT_MENUS, Editor, type EditorEvent, type EditorMode, type EditorOptions, type FontOption, type ImageAlign, KNOWN_STYLES, KNOWN_TAGS, type LinkAttrs, MENTION_ID_RE, type MarkName, type MentionUser, type MentionsOptions, type MenuButtonSpec, type MenuDefinition, type MenuEntry, type MenuItem, type MenuItemSpec, type MessageKey, type Messages, type NodeName, type NovaPlugin, type NovaSchema, type PanelButtonSpec, type PasteOptions, type PluginEntry, type PluginOptions, type QuickbarsOptions, Registry, type Revision, type RevisionHistoryOptions, type SchemaExtensions, type SearchMatch, type SearchOptions, type SearchState, type SlashCommand, type StyleMark, type TextAlign, type ToolbarConfig, type ToolbarMode, type Translator, UiManager, type UploadImageHandler, applyLink, clearSearch, commands, countWords, createCommentStore, createEditor, createSchema, createTable, createTranslator, cssValue, defaultColors, defaultFontFamilies, defaultFontSizes, defaultLineHeights, defaultSlashCommands, defaultToolbar, definePlugin, en, findMatches, findNext, formatHTML, getActiveAlign, getComments, getLineHeight, getLinkAt, getMentions, getSearchState, getSelectedImage, getStyle, hasHeaderColumn, hasHeaderRow, htmlToPlainText, imageSize, insertImage, insertTable, isCommandActive, isFullscreen, isMarkActive, isNodeActive, isPluginRegistered, isSafeImageUrl, isSafeLinkUrl, marksOf, newCommentId, nodesOf, normalizeUrl, openHelp, openImageAltDialog, openImageDialog, openLinkDialog, openPreview, openSourceCode, parseToolbar, parserFor, printContent, rankSlashCommands, registerLanguage, registerPlugin, removeLink, replaceAll, replaceCurrent, ru, sanitizeThread, schema, setCellBackground, setImageAttrs, setImageWidthFraction, setLineHeight, setLink, setSearch, setStyle, tableCommands, toggleFullscreen, uploadImages };
1652
+ /**
1653
+ * Плагин suggestions — режим правок (как «Предлагать изменения» в Google Docs).
1654
+ * В режиме правок ввод не меняет текст напрямую: вставленное помечается <ins>, удалённое — <del>
1655
+ * (текст остаётся до решения). Каждая правка знает автора и время; её принимают или отклоняют —
1656
+ * по одной (панель над правкой) или все сразу. В HTML: `<ins data-suggestion="id" …>`.
1657
+ *
1658
+ * Отслеживаются вставка и удаление текста. Структурные изменения (новый абзац, список, формат)
1659
+ * в режиме правок применяются сразу.
1660
+ */
1661
+ interface SuggestionAuthor {
1662
+ id: string;
1663
+ name: string;
1664
+ }
1665
+ interface SuggestionsOptions {
1666
+ /** Кто предлагает правки. */
1667
+ author?: SuggestionAuthor;
1668
+ /** Включить режим правок сразу. */
1669
+ enabled?: boolean;
1670
+ /** Только правки: режим нельзя выключить (участник без права менять текст напрямую). */
1671
+ force?: boolean;
1672
+ /** Может ли этот пользователь принимать и отклонять правки (по умолчанию да). */
1673
+ canReview?: boolean;
1674
+ }
1675
+ interface Suggestion {
1676
+ id: string;
1677
+ kind: 'insert' | 'delete';
1678
+ author: SuggestionAuthor;
1679
+ time: number;
1680
+ from: number;
1681
+ to: number;
1682
+ text: string;
1683
+ }
1684
+ /** Все правки документа (подряд идущие части одной правки объединены). */
1685
+ declare function listSuggestions(doc: Node): Suggestion[];
1686
+ /** Принять или отклонить правки (все или с указанными id). */
1687
+ declare function resolveSuggestions(state: EditorState, action: 'accept' | 'reject', ids?: readonly string[]): Transaction;
1688
+ /** HTML документа без правок: как если принять все (accept) или отклонить все (reject). */
1689
+ declare function suggestionsResult(editor: Editor, action: 'accept' | 'reject'): Node;
1690
+ declare function isSuggesting(state: EditorState): boolean;
1691
+ declare function setSuggesting(editor: Editor, enabled: boolean): void;
1692
+
1693
+ declare const icons: {
1694
+ readonly undo: string;
1695
+ readonly redo: string;
1696
+ readonly bold: string;
1697
+ readonly italic: string;
1698
+ readonly underline: string;
1699
+ readonly strike: string;
1700
+ readonly code: string;
1701
+ readonly subscript: string;
1702
+ readonly superscript: string;
1703
+ readonly bulletList: string;
1704
+ readonly orderedList: string;
1705
+ readonly indent: string;
1706
+ readonly outdent: string;
1707
+ readonly blockquote: string;
1708
+ readonly codeBlock: string;
1709
+ readonly alignLeft: string;
1710
+ readonly alignCenter: string;
1711
+ readonly alignRight: string;
1712
+ readonly alignJustify: string;
1713
+ readonly horizontalRule: string;
1714
+ readonly link: string;
1715
+ readonly unlink: string;
1716
+ readonly image: string;
1717
+ readonly clearFormatting: string;
1718
+ readonly formatMore: string;
1719
+ readonly imageLeft: string;
1720
+ readonly imageCenter: string;
1721
+ readonly imageRight: string;
1722
+ readonly resize: string;
1723
+ readonly altText: string;
1724
+ readonly trash: string;
1725
+ readonly paragraph: string;
1726
+ readonly h1: string;
1727
+ readonly h2: string;
1728
+ readonly h3: string;
1729
+ readonly pasteText: string;
1730
+ readonly table: string;
1731
+ readonly rowBefore: string;
1732
+ readonly rowAfter: string;
1733
+ readonly rowDelete: string;
1734
+ readonly colBefore: string;
1735
+ readonly colAfter: string;
1736
+ readonly colDelete: string;
1737
+ readonly merge: string;
1738
+ readonly split: string;
1739
+ readonly rowHeader: string;
1740
+ readonly colHeader: string;
1741
+ readonly sort: string;
1742
+ readonly tableProps: string;
1743
+ readonly cellProps: string;
1744
+ readonly tableDelete: string;
1745
+ readonly chevronUp: string;
1746
+ readonly search: string;
1747
+ readonly fullscreen: string;
1748
+ readonly fullscreenExit: string;
1749
+ readonly preview: string;
1750
+ readonly sourceCode: string;
1751
+ readonly help: string;
1752
+ readonly print: string;
1753
+ readonly check: string;
1754
+ readonly close: string;
1755
+ readonly chevronDown: string;
1756
+ readonly more: string;
1757
+ readonly textColor: string;
1758
+ readonly highlight: string;
1759
+ readonly lineHeight: string;
1760
+ readonly upload: string;
1761
+ readonly externalLink: string;
1762
+ readonly copy: string;
1763
+ readonly edit: string;
1764
+ };
1765
+
1766
+ declare class HTMLSerializer {
1767
+ private readonly cache;
1768
+ serializeFragment(fragment: Fragment): string;
1769
+ serializeNode(node: Node): string;
1770
+ private renderMark;
1771
+ }
1772
+
1773
+ export { type AutocompleterItem, type AutocompleterSpec, type AutosaveOptions, type ButtonSpec, type CommandName, type Comment, type CommentAuthor, type CommentStore, type CommentThread, type CommentsController, type CommentsOptions, ContentRules, type ContentRulesOptions, type ContextToolbarSpec, type ControlSpec, DEFAULT_MENUBAR, DEFAULT_MENUS, Editor, type EditorEvent, type EditorMode, type EditorOptions, type FontOption, HTMLSerializer, type ImageAlign, KNOWN_STYLES, KNOWN_TAGS, type LinkAttrs, MENTION_ID_RE, type MarkName, type MentionUser, type MentionsOptions, type MenuButtonSpec, type MenuDefinition, type MenuEntry, type MenuItem, type MenuItemSpec, type MessageKey, type Messages, type NodeName, type NovaPlugin, type NovaSchema, type PanelButtonSpec, type PasteOptions, type PluginEntry, type PluginOptions, type QuickbarsOptions, Registry, type Revision, type RevisionHistoryOptions, type SchemaExtensions, type SearchMatch, type SearchOptions, type SearchState, type SlashCommand, type StyleMark, type Suggestion, type SuggestionAuthor, type SuggestionsOptions, type TextAlign, type ToolbarConfig, type ToolbarMode, type Translator, UiManager, type UploadImageHandler, applyLink, clearSearch, commands, countWords, createCommentStore, createEditor, createSchema, createTable, createTranslator, cssValue, defaultColors, defaultFontFamilies, defaultFontSizes, defaultLineHeights, defaultSlashCommands, defaultToolbar, definePlugin, en, findMatches, findNext, formatHTML, getActiveAlign, getComments, getLineHeight, getLinkAt, getMentions, getSearchState, getSelectedImage, getStyle, hasHeaderColumn, hasHeaderRow, htmlToPlainText, icons, imageSize, insertImage, insertTable, isCommandActive, isFullscreen, isMarkActive, isNodeActive, isPluginRegistered, isSafeImageUrl, isSafeLinkUrl, isSuggesting, listSuggestions, marksOf, newCommentId, nodesOf, normalizeUrl, openHelp, openImageAltDialog, openImageDialog, openLinkDialog, openPreview, openSourceCode, parseToolbar, parserFor, printContent, rankSlashCommands, registerLanguage, registerPlugin, removeLink, replaceAll, replaceCurrent, resolveSuggestions, ru, sanitizeThread, schema, setCellBackground, setImageAttrs, setImageWidthFraction, setLineHeight, setLink, setSearch, setStyle, setSuggesting, suggestionsResult, tableCommands, toggleFullscreen, uploadImages };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as prosemirror_model from 'prosemirror-model';
2
2
  import { Node, Schema, NodeSpec, DOMOutputSpec, MarkSpec, MarkType, NodeType, Fragment, DOMParser } from 'prosemirror-model';
3
- import { Command, EditorState, Plugin } from 'prosemirror-state';
3
+ import { Command, EditorState, Plugin, Transaction } from 'prosemirror-state';
4
4
  import { EditorView } from 'prosemirror-view';
5
5
  import { addRowBefore, addRowAfter, deleteRow, addColumnBefore, addColumnAfter, deleteColumn, mergeCells, splitCell, deleteTable } from 'prosemirror-tables';
6
6
  export { isInTable } from 'prosemirror-tables';
@@ -1046,6 +1046,11 @@ interface NovaPlugin {
1046
1046
  commands?: Partial<Record<CommandName, Command>>;
1047
1047
  /** Плагин ведёт свою историю изменений — встроенная (prosemirror-history) не подключается. */
1048
1048
  replaceHistory?: boolean;
1049
+ /**
1050
+ * Переписать транзакцию до применения (режим правок превращает удаление в пометку «удалено»).
1051
+ * Вызывается для каждой транзакции редактора; вернуть ту же, если менять нечего.
1052
+ */
1053
+ transformTransaction?: (tr: Transaction, state: EditorState, editor: Editor) => Transaction;
1049
1054
  }
1050
1055
  type Loader = () => Promise<NovaPlugin | {
1051
1056
  default: NovaPlugin;
@@ -1458,6 +1463,7 @@ declare class Editor {
1458
1463
  readonly mode: EditorMode;
1459
1464
  private readonly pluginsByName;
1460
1465
  private readonly commandOverrides;
1466
+ private readonly transactionTransforms;
1461
1467
  private readonly cleanups;
1462
1468
  /** Ограничения контента (validElements/invalidElements/validStyles) или null — без ограничений. */
1463
1469
  readonly contentRules: ContentRules | null;
@@ -1643,4 +1649,125 @@ declare function hasHeaderRow(state: EditorState): boolean;
1643
1649
  /** Есть ли столбец-заголовок (первая ячейка каждой строки — th). */
1644
1650
  declare function hasHeaderColumn(state: EditorState): boolean;
1645
1651
 
1646
- export { type AutocompleterItem, type AutocompleterSpec, type AutosaveOptions, type ButtonSpec, type CommandName, type Comment, type CommentAuthor, type CommentStore, type CommentThread, type CommentsController, type CommentsOptions, ContentRules, type ContentRulesOptions, type ContextToolbarSpec, type ControlSpec, DEFAULT_MENUBAR, DEFAULT_MENUS, Editor, type EditorEvent, type EditorMode, type EditorOptions, type FontOption, type ImageAlign, KNOWN_STYLES, KNOWN_TAGS, type LinkAttrs, MENTION_ID_RE, type MarkName, type MentionUser, type MentionsOptions, type MenuButtonSpec, type MenuDefinition, type MenuEntry, type MenuItem, type MenuItemSpec, type MessageKey, type Messages, type NodeName, type NovaPlugin, type NovaSchema, type PanelButtonSpec, type PasteOptions, type PluginEntry, type PluginOptions, type QuickbarsOptions, Registry, type Revision, type RevisionHistoryOptions, type SchemaExtensions, type SearchMatch, type SearchOptions, type SearchState, type SlashCommand, type StyleMark, type TextAlign, type ToolbarConfig, type ToolbarMode, type Translator, UiManager, type UploadImageHandler, applyLink, clearSearch, commands, countWords, createCommentStore, createEditor, createSchema, createTable, createTranslator, cssValue, defaultColors, defaultFontFamilies, defaultFontSizes, defaultLineHeights, defaultSlashCommands, defaultToolbar, definePlugin, en, findMatches, findNext, formatHTML, getActiveAlign, getComments, getLineHeight, getLinkAt, getMentions, getSearchState, getSelectedImage, getStyle, hasHeaderColumn, hasHeaderRow, htmlToPlainText, imageSize, insertImage, insertTable, isCommandActive, isFullscreen, isMarkActive, isNodeActive, isPluginRegistered, isSafeImageUrl, isSafeLinkUrl, marksOf, newCommentId, nodesOf, normalizeUrl, openHelp, openImageAltDialog, openImageDialog, openLinkDialog, openPreview, openSourceCode, parseToolbar, parserFor, printContent, rankSlashCommands, registerLanguage, registerPlugin, removeLink, replaceAll, replaceCurrent, ru, sanitizeThread, schema, setCellBackground, setImageAttrs, setImageWidthFraction, setLineHeight, setLink, setSearch, setStyle, tableCommands, toggleFullscreen, uploadImages };
1652
+ /**
1653
+ * Плагин suggestions — режим правок (как «Предлагать изменения» в Google Docs).
1654
+ * В режиме правок ввод не меняет текст напрямую: вставленное помечается <ins>, удалённое — <del>
1655
+ * (текст остаётся до решения). Каждая правка знает автора и время; её принимают или отклоняют —
1656
+ * по одной (панель над правкой) или все сразу. В HTML: `<ins data-suggestion="id" …>`.
1657
+ *
1658
+ * Отслеживаются вставка и удаление текста. Структурные изменения (новый абзац, список, формат)
1659
+ * в режиме правок применяются сразу.
1660
+ */
1661
+ interface SuggestionAuthor {
1662
+ id: string;
1663
+ name: string;
1664
+ }
1665
+ interface SuggestionsOptions {
1666
+ /** Кто предлагает правки. */
1667
+ author?: SuggestionAuthor;
1668
+ /** Включить режим правок сразу. */
1669
+ enabled?: boolean;
1670
+ /** Только правки: режим нельзя выключить (участник без права менять текст напрямую). */
1671
+ force?: boolean;
1672
+ /** Может ли этот пользователь принимать и отклонять правки (по умолчанию да). */
1673
+ canReview?: boolean;
1674
+ }
1675
+ interface Suggestion {
1676
+ id: string;
1677
+ kind: 'insert' | 'delete';
1678
+ author: SuggestionAuthor;
1679
+ time: number;
1680
+ from: number;
1681
+ to: number;
1682
+ text: string;
1683
+ }
1684
+ /** Все правки документа (подряд идущие части одной правки объединены). */
1685
+ declare function listSuggestions(doc: Node): Suggestion[];
1686
+ /** Принять или отклонить правки (все или с указанными id). */
1687
+ declare function resolveSuggestions(state: EditorState, action: 'accept' | 'reject', ids?: readonly string[]): Transaction;
1688
+ /** HTML документа без правок: как если принять все (accept) или отклонить все (reject). */
1689
+ declare function suggestionsResult(editor: Editor, action: 'accept' | 'reject'): Node;
1690
+ declare function isSuggesting(state: EditorState): boolean;
1691
+ declare function setSuggesting(editor: Editor, enabled: boolean): void;
1692
+
1693
+ declare const icons: {
1694
+ readonly undo: string;
1695
+ readonly redo: string;
1696
+ readonly bold: string;
1697
+ readonly italic: string;
1698
+ readonly underline: string;
1699
+ readonly strike: string;
1700
+ readonly code: string;
1701
+ readonly subscript: string;
1702
+ readonly superscript: string;
1703
+ readonly bulletList: string;
1704
+ readonly orderedList: string;
1705
+ readonly indent: string;
1706
+ readonly outdent: string;
1707
+ readonly blockquote: string;
1708
+ readonly codeBlock: string;
1709
+ readonly alignLeft: string;
1710
+ readonly alignCenter: string;
1711
+ readonly alignRight: string;
1712
+ readonly alignJustify: string;
1713
+ readonly horizontalRule: string;
1714
+ readonly link: string;
1715
+ readonly unlink: string;
1716
+ readonly image: string;
1717
+ readonly clearFormatting: string;
1718
+ readonly formatMore: string;
1719
+ readonly imageLeft: string;
1720
+ readonly imageCenter: string;
1721
+ readonly imageRight: string;
1722
+ readonly resize: string;
1723
+ readonly altText: string;
1724
+ readonly trash: string;
1725
+ readonly paragraph: string;
1726
+ readonly h1: string;
1727
+ readonly h2: string;
1728
+ readonly h3: string;
1729
+ readonly pasteText: string;
1730
+ readonly table: string;
1731
+ readonly rowBefore: string;
1732
+ readonly rowAfter: string;
1733
+ readonly rowDelete: string;
1734
+ readonly colBefore: string;
1735
+ readonly colAfter: string;
1736
+ readonly colDelete: string;
1737
+ readonly merge: string;
1738
+ readonly split: string;
1739
+ readonly rowHeader: string;
1740
+ readonly colHeader: string;
1741
+ readonly sort: string;
1742
+ readonly tableProps: string;
1743
+ readonly cellProps: string;
1744
+ readonly tableDelete: string;
1745
+ readonly chevronUp: string;
1746
+ readonly search: string;
1747
+ readonly fullscreen: string;
1748
+ readonly fullscreenExit: string;
1749
+ readonly preview: string;
1750
+ readonly sourceCode: string;
1751
+ readonly help: string;
1752
+ readonly print: string;
1753
+ readonly check: string;
1754
+ readonly close: string;
1755
+ readonly chevronDown: string;
1756
+ readonly more: string;
1757
+ readonly textColor: string;
1758
+ readonly highlight: string;
1759
+ readonly lineHeight: string;
1760
+ readonly upload: string;
1761
+ readonly externalLink: string;
1762
+ readonly copy: string;
1763
+ readonly edit: string;
1764
+ };
1765
+
1766
+ declare class HTMLSerializer {
1767
+ private readonly cache;
1768
+ serializeFragment(fragment: Fragment): string;
1769
+ serializeNode(node: Node): string;
1770
+ private renderMark;
1771
+ }
1772
+
1773
+ export { type AutocompleterItem, type AutocompleterSpec, type AutosaveOptions, type ButtonSpec, type CommandName, type Comment, type CommentAuthor, type CommentStore, type CommentThread, type CommentsController, type CommentsOptions, ContentRules, type ContentRulesOptions, type ContextToolbarSpec, type ControlSpec, DEFAULT_MENUBAR, DEFAULT_MENUS, Editor, type EditorEvent, type EditorMode, type EditorOptions, type FontOption, HTMLSerializer, type ImageAlign, KNOWN_STYLES, KNOWN_TAGS, type LinkAttrs, MENTION_ID_RE, type MarkName, type MentionUser, type MentionsOptions, type MenuButtonSpec, type MenuDefinition, type MenuEntry, type MenuItem, type MenuItemSpec, type MessageKey, type Messages, type NodeName, type NovaPlugin, type NovaSchema, type PanelButtonSpec, type PasteOptions, type PluginEntry, type PluginOptions, type QuickbarsOptions, Registry, type Revision, type RevisionHistoryOptions, type SchemaExtensions, type SearchMatch, type SearchOptions, type SearchState, type SlashCommand, type StyleMark, type Suggestion, type SuggestionAuthor, type SuggestionsOptions, type TextAlign, type ToolbarConfig, type ToolbarMode, type Translator, UiManager, type UploadImageHandler, applyLink, clearSearch, commands, countWords, createCommentStore, createEditor, createSchema, createTable, createTranslator, cssValue, defaultColors, defaultFontFamilies, defaultFontSizes, defaultLineHeights, defaultSlashCommands, defaultToolbar, definePlugin, en, findMatches, findNext, formatHTML, getActiveAlign, getComments, getLineHeight, getLinkAt, getMentions, getSearchState, getSelectedImage, getStyle, hasHeaderColumn, hasHeaderRow, htmlToPlainText, icons, imageSize, insertImage, insertTable, isCommandActive, isFullscreen, isMarkActive, isNodeActive, isPluginRegistered, isSafeImageUrl, isSafeLinkUrl, isSuggesting, listSuggestions, marksOf, newCommentId, nodesOf, normalizeUrl, openHelp, openImageAltDialog, openImageDialog, openLinkDialog, openPreview, openSourceCode, parseToolbar, parserFor, printContent, rankSlashCommands, registerLanguage, registerPlugin, removeLink, replaceAll, replaceCurrent, resolveSuggestions, ru, sanitizeThread, schema, setCellBackground, setImageAttrs, setImageWidthFraction, setLineHeight, setLink, setSearch, setStyle, setSuggesting, suggestionsResult, tableCommands, toggleFullscreen, uploadImages };