@novaprose/core 0.5.1 → 0.5.3

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 (42) hide show
  1. package/README.md +2 -2
  2. package/THIRD_PARTY_NOTICES.md +50 -0
  3. package/dist/{autosave-WODRZ7L6.js → autosave-DH7SO4UQ.js} +5 -2
  4. package/dist/autosave-DH7SO4UQ.js.map +1 -0
  5. package/dist/{charmap-LWA7TL3K.js → charmap-F7EVJ56K.js} +5 -2
  6. package/dist/charmap-F7EVJ56K.js.map +1 -0
  7. package/dist/{chunk-2A3IYKPE.js → chunk-55LD2TT2.js} +5 -3
  8. package/dist/{chunk-2A3IYKPE.js.map → chunk-55LD2TT2.js.map} +1 -1
  9. package/dist/{chunk-PHRON5PL.js → chunk-6AL2IS6V.js} +4 -150
  10. package/dist/chunk-6AL2IS6V.js.map +1 -0
  11. package/dist/chunk-MOO4PJGI.js +229 -0
  12. package/dist/chunk-MOO4PJGI.js.map +1 -0
  13. package/dist/{directionality-N62ZB7CF.js → directionality-MF5HDXH3.js} +6 -3
  14. package/dist/directionality-MF5HDXH3.js.map +1 -0
  15. package/dist/{emoticons-WQ3K4J6G.js → emoticons-SONBUCFV.js} +5 -2
  16. package/dist/emoticons-SONBUCFV.js.map +1 -0
  17. package/dist/index.cjs +236 -146
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +86 -70
  20. package/dist/index.d.ts +86 -70
  21. package/dist/index.js +23 -21
  22. package/dist/index.js.map +1 -1
  23. package/dist/{insertdatetime-2RZ3UUQE.js → insertdatetime-X2T4ZY6R.js} +5 -2
  24. package/dist/insertdatetime-X2T4ZY6R.js.map +1 -0
  25. package/dist/{nonbreaking-L6GNDHVO.js → nonbreaking-PP4KIJSR.js} +5 -2
  26. package/dist/nonbreaking-PP4KIJSR.js.map +1 -0
  27. package/dist/{quickbars-TIRY3RH4.js → quickbars-3WKHLKAR.js} +5 -3
  28. package/dist/{quickbars-TIRY3RH4.js.map → quickbars-3WKHLKAR.js.map} +1 -1
  29. package/dist/{revisionhistory-GDTOULKS.js → revisionhistory-FYRVDGRA.js} +7 -4
  30. package/dist/revisionhistory-FYRVDGRA.js.map +1 -0
  31. package/dist/{visualblocks-V4CQ4XMF.js → visualblocks-NPTMWFXD.js} +5 -2
  32. package/dist/visualblocks-NPTMWFXD.js.map +1 -0
  33. package/package.json +3 -3
  34. package/dist/autosave-WODRZ7L6.js.map +0 -1
  35. package/dist/charmap-LWA7TL3K.js.map +0 -1
  36. package/dist/chunk-PHRON5PL.js.map +0 -1
  37. package/dist/directionality-N62ZB7CF.js.map +0 -1
  38. package/dist/emoticons-WQ3K4J6G.js.map +0 -1
  39. package/dist/insertdatetime-2RZ3UUQE.js.map +0 -1
  40. package/dist/nonbreaking-L6GNDHVO.js.map +0 -1
  41. package/dist/revisionhistory-GDTOULKS.js.map +0 -1
  42. package/dist/visualblocks-V4CQ4XMF.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1691,76 +1691,92 @@ declare function isSuggesting(state: EditorState): boolean;
1691
1691
  declare function setSuggesting(editor: Editor, enabled: boolean): void;
1692
1692
 
1693
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;
1694
+ undo: string;
1695
+ redo: string;
1696
+ bold: string;
1697
+ italic: string;
1698
+ underline: string;
1699
+ strike: string;
1700
+ code: string;
1701
+ subscript: string;
1702
+ superscript: string;
1703
+ bulletList: string;
1704
+ orderedList: string;
1705
+ indent: string;
1706
+ outdent: string;
1707
+ blockquote: string;
1708
+ codeBlock: string;
1709
+ alignLeft: string;
1710
+ alignCenter: string;
1711
+ alignRight: string;
1712
+ alignJustify: string;
1713
+ horizontalRule: string;
1714
+ link: string;
1715
+ unlink: string;
1716
+ image: string;
1717
+ clearFormatting: string;
1718
+ formatMore: string;
1719
+ imageLeft: string;
1720
+ imageCenter: string;
1721
+ imageRight: string;
1722
+ resize: string;
1723
+ altText: string;
1724
+ trash: string;
1725
+ paragraph: string;
1726
+ h1: string;
1727
+ h2: string;
1728
+ h3: string;
1729
+ pasteText: string;
1730
+ table: string;
1731
+ rowBefore: string;
1732
+ rowAfter: string;
1733
+ rowDelete: string;
1734
+ colBefore: string;
1735
+ colAfter: string;
1736
+ colDelete: string;
1737
+ merge: string;
1738
+ split: string;
1739
+ rowHeader: string;
1740
+ colHeader: string;
1741
+ sort: string;
1742
+ tableProps: string;
1743
+ cellProps: string;
1744
+ tableDelete: string;
1745
+ chevronUp: string;
1746
+ search: string;
1747
+ fullscreen: string;
1748
+ fullscreenExit: string;
1749
+ preview: string;
1750
+ sourceCode: string;
1751
+ help: string;
1752
+ print: string;
1753
+ check: string;
1754
+ close: string;
1755
+ chevronDown: string;
1756
+ more: string;
1757
+ textColor: string;
1758
+ highlight: string;
1759
+ lineHeight: string;
1760
+ upload: string;
1761
+ externalLink: string;
1762
+ copy: string;
1763
+ edit: string;
1764
+ anchor: string;
1765
+ save: string;
1766
+ charmap: string;
1767
+ commentAdd: string;
1768
+ comments: string;
1769
+ emoji: string;
1770
+ dateTime: string;
1771
+ media: string;
1772
+ nonBreaking: string;
1773
+ pageBreak: string;
1774
+ history: string;
1775
+ suggest: string;
1776
+ review: string;
1777
+ visualBlocks: string;
1778
+ ltr: string;
1779
+ rtl: string;
1764
1780
  };
1765
1781
 
1766
1782
  declare class HTMLSerializer {
package/dist/index.d.ts CHANGED
@@ -1691,76 +1691,92 @@ declare function isSuggesting(state: EditorState): boolean;
1691
1691
  declare function setSuggesting(editor: Editor, enabled: boolean): void;
1692
1692
 
1693
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;
1694
+ undo: string;
1695
+ redo: string;
1696
+ bold: string;
1697
+ italic: string;
1698
+ underline: string;
1699
+ strike: string;
1700
+ code: string;
1701
+ subscript: string;
1702
+ superscript: string;
1703
+ bulletList: string;
1704
+ orderedList: string;
1705
+ indent: string;
1706
+ outdent: string;
1707
+ blockquote: string;
1708
+ codeBlock: string;
1709
+ alignLeft: string;
1710
+ alignCenter: string;
1711
+ alignRight: string;
1712
+ alignJustify: string;
1713
+ horizontalRule: string;
1714
+ link: string;
1715
+ unlink: string;
1716
+ image: string;
1717
+ clearFormatting: string;
1718
+ formatMore: string;
1719
+ imageLeft: string;
1720
+ imageCenter: string;
1721
+ imageRight: string;
1722
+ resize: string;
1723
+ altText: string;
1724
+ trash: string;
1725
+ paragraph: string;
1726
+ h1: string;
1727
+ h2: string;
1728
+ h3: string;
1729
+ pasteText: string;
1730
+ table: string;
1731
+ rowBefore: string;
1732
+ rowAfter: string;
1733
+ rowDelete: string;
1734
+ colBefore: string;
1735
+ colAfter: string;
1736
+ colDelete: string;
1737
+ merge: string;
1738
+ split: string;
1739
+ rowHeader: string;
1740
+ colHeader: string;
1741
+ sort: string;
1742
+ tableProps: string;
1743
+ cellProps: string;
1744
+ tableDelete: string;
1745
+ chevronUp: string;
1746
+ search: string;
1747
+ fullscreen: string;
1748
+ fullscreenExit: string;
1749
+ preview: string;
1750
+ sourceCode: string;
1751
+ help: string;
1752
+ print: string;
1753
+ check: string;
1754
+ close: string;
1755
+ chevronDown: string;
1756
+ more: string;
1757
+ textColor: string;
1758
+ highlight: string;
1759
+ lineHeight: string;
1760
+ upload: string;
1761
+ externalLink: string;
1762
+ copy: string;
1763
+ edit: string;
1764
+ anchor: string;
1765
+ save: string;
1766
+ charmap: string;
1767
+ commentAdd: string;
1768
+ comments: string;
1769
+ emoji: string;
1770
+ dateTime: string;
1771
+ media: string;
1772
+ nonBreaking: string;
1773
+ pageBreak: string;
1774
+ history: string;
1775
+ suggest: string;
1776
+ review: string;
1777
+ visualBlocks: string;
1778
+ ltr: string;
1779
+ rtl: string;
1764
1780
  };
1765
1781
 
1766
1782
  declare class HTMLSerializer {
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  setSearch,
41
41
  setStyle,
42
42
  toggleFullscreen
43
- } from "./chunk-2A3IYKPE.js";
43
+ } from "./chunk-55LD2TT2.js";
44
44
  import {
45
45
  COMMENT_ID_RE,
46
46
  COMMENT_MAX_LENGTH,
@@ -55,7 +55,6 @@ import {
55
55
  getSelectedImage,
56
56
  hasHeaderColumn,
57
57
  hasHeaderRow,
58
- icons,
59
58
  insertTable,
60
59
  isInTable,
61
60
  normalizeUrl,
@@ -69,7 +68,7 @@ import {
69
68
  tableCommands,
70
69
  textField,
71
70
  uploadImages
72
- } from "./chunk-PHRON5PL.js";
71
+ } from "./chunk-6AL2IS6V.js";
73
72
  import {
74
73
  createSchema,
75
74
  cssValue,
@@ -82,6 +81,9 @@ import {
82
81
  import {
83
82
  h
84
83
  } from "./chunk-HZRIBOPW.js";
84
+ import {
85
+ icons
86
+ } from "./chunk-MOO4PJGI.js";
85
87
  import {
86
88
  commands,
87
89
  getActiveAlign,
@@ -104,7 +106,7 @@ import {
104
106
 
105
107
  // src/plugins/anchor.ts
106
108
  import { NodeSelection } from "prosemirror-state";
107
- var ICON = '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="5" r="2"/><path d="M12 7v14M5 12H3a9 9 0 0 0 18 0h-2"/></svg>';
109
+ var ICON = icons.anchor;
108
110
  var LABELS = {
109
111
  en: {
110
112
  title: "Anchor",
@@ -350,8 +352,8 @@ var LABELS3 = {
350
352
  count: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0435\u0432: {count}"
351
353
  }
352
354
  };
353
- var ICON_ADD = '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z"/><path d="M12 8v8M8 12h8"/></svg>';
354
- var ICON_SHOW = '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z"/><path d="M8.5 10h7M8.5 14h4"/></svg>';
355
+ var ICON_ADD = icons.commentAdd;
356
+ var ICON_SHOW = icons.comments;
355
357
  var SHORTCUT = "Mod-Alt-m";
356
358
  var commentsKey = new PluginKey("nova-comments");
357
359
  var controllers = /* @__PURE__ */ new WeakMap();
@@ -715,10 +717,10 @@ var LABELS4 = {
715
717
  none: "\u041F\u0440\u0430\u0432\u043E\u043A \u043D\u0435\u0442"
716
718
  }
717
719
  };
718
- var ICON_TOGGLE = '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z"/></svg>';
719
- var ICON_REVIEW = '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 11l3 3 8-8"/><path d="M20 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/></svg>';
720
- var ICON_ACCEPT = '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12l5 5 9-10"/></svg>';
721
- var ICON_REJECT = '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg>';
720
+ var ICON_TOGGLE = icons.suggest;
721
+ var ICON_REVIEW = icons.review;
722
+ var ICON_ACCEPT = icons.check;
723
+ var ICON_REJECT = icons.close;
722
724
  var suggestionsKey = new PluginKey2("nova-suggestions");
723
725
  var OWN = "nova-suggestions-own";
724
726
  var PALETTE = ["#1a7f37", "#8250df", "#bf3989", "#0969da", "#bc4c00", "#1b7c83"];
@@ -1114,7 +1116,7 @@ function parseMediaUrl(url) {
1114
1116
  if (VIDEO_FILE.test(value)) return { kind: "video", src: value };
1115
1117
  return null;
1116
1118
  }
1117
- var ICON2 = '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="5" width="20" height="14" rx="2"/><path d="m10 9 5 3-5 3z"/></svg>';
1119
+ var ICON2 = icons.media;
1118
1120
  var LABELS5 = {
1119
1121
  en: {
1120
1122
  title: "Video",
@@ -1285,7 +1287,7 @@ var media_default = definePlugin({
1285
1287
  });
1286
1288
 
1287
1289
  // src/plugins/pagebreak.ts
1288
- var ICON3 = '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 3v5h12V3M6 21v-5h12v5"/><path d="M3 12h2M9 12h2M15 12h2M21 12h-0"/></svg>';
1290
+ var ICON3 = icons.pageBreak;
1289
1291
  var LABELS6 = { en: { title: "Page break" }, ru: { title: "\u0420\u0430\u0437\u0440\u044B\u0432 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B" } };
1290
1292
  var pagebreak_default = definePlugin({
1291
1293
  name: "pagebreak",
@@ -1329,24 +1331,24 @@ var pagebreak_default = definePlugin({
1329
1331
  });
1330
1332
 
1331
1333
  // src/plugins/index.ts
1332
- registerPlugin("insertdatetime", () => import("./insertdatetime-2RZ3UUQE.js"));
1333
- registerPlugin("quickbars", () => import("./quickbars-TIRY3RH4.js"));
1334
- registerPlugin("charmap", () => import("./charmap-LWA7TL3K.js"));
1335
- registerPlugin("emoticons", () => import("./emoticons-WQ3K4J6G.js"));
1336
- registerPlugin("nonbreaking", () => import("./nonbreaking-L6GNDHVO.js"));
1334
+ registerPlugin("insertdatetime", () => import("./insertdatetime-X2T4ZY6R.js"));
1335
+ registerPlugin("quickbars", () => import("./quickbars-3WKHLKAR.js"));
1336
+ registerPlugin("charmap", () => import("./charmap-F7EVJ56K.js"));
1337
+ registerPlugin("emoticons", () => import("./emoticons-SONBUCFV.js"));
1338
+ registerPlugin("nonbreaking", () => import("./nonbreaking-PP4KIJSR.js"));
1337
1339
  registerPlugin("autolink", () => import("./autolink-IDJWAL2V.js"));
1338
- registerPlugin("autosave", () => import("./autosave-WODRZ7L6.js"));
1340
+ registerPlugin("autosave", () => import("./autosave-DH7SO4UQ.js"));
1339
1341
  registerPlugin("autoresize", () => import("./autoresize-4ZEPQCHP.js"));
1340
- registerPlugin("visualblocks", () => import("./visualblocks-V4CQ4XMF.js"));
1342
+ registerPlugin("visualblocks", () => import("./visualblocks-NPTMWFXD.js"));
1341
1343
  registerPlugin("anchor", anchor_default);
1342
1344
  registerPlugin("pagebreak", pagebreak_default);
1343
1345
  registerPlugin("media", media_default);
1344
1346
  registerPlugin("comments", comments_default);
1345
1347
  registerPlugin("mentions", mentions_default);
1346
1348
  registerPlugin("suggestions", suggestions_default);
1347
- registerPlugin("directionality", () => import("./directionality-N62ZB7CF.js"));
1349
+ registerPlugin("directionality", () => import("./directionality-MF5HDXH3.js"));
1348
1350
  registerPlugin("advlist", () => import("./advlist-FH3K3AAQ.js"));
1349
- registerPlugin("revisionhistory", () => import("./revisionhistory-GDTOULKS.js"));
1351
+ registerPlugin("revisionhistory", () => import("./revisionhistory-FYRVDGRA.js"));
1350
1352
  export {
1351
1353
  ContentRules,
1352
1354
  DEFAULT_MENUBAR,