@novaprose/core 0.5.2 → 0.6.0

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 (56) hide show
  1. package/README.md +51 -17
  2. package/THIRD_PARTY_NOTICES.md +50 -0
  3. package/dist/{advlist-FH3K3AAQ.js → advlist-K2U3VPH2.js} +3 -3
  4. package/dist/{autolink-IDJWAL2V.js → autolink-XWDTLY37.js} +2 -2
  5. package/dist/{autoresize-4ZEPQCHP.js → autoresize-UB3GOA6D.js} +2 -2
  6. package/dist/{autosave-WODRZ7L6.js → autosave-MWNRUNU3.js} +6 -3
  7. package/dist/autosave-MWNRUNU3.js.map +1 -0
  8. package/dist/{charmap-LWA7TL3K.js → charmap-ADLYOIB3.js} +6 -3
  9. package/dist/charmap-ADLYOIB3.js.map +1 -0
  10. package/dist/{chunk-PHRON5PL.js → chunk-435CRWKA.js} +70 -155
  11. package/dist/chunk-435CRWKA.js.map +1 -0
  12. package/dist/{chunk-2A3IYKPE.js → chunk-46RIM5KP.js} +934 -32
  13. package/dist/chunk-46RIM5KP.js.map +1 -0
  14. package/dist/{chunk-YZPJQB3I.js → chunk-7ON7PR5R.js} +106 -25
  15. package/dist/chunk-7ON7PR5R.js.map +1 -0
  16. package/dist/{chunk-6GWG2BLC.js → chunk-HPLT3XRZ.js} +1 -1
  17. package/dist/chunk-HPLT3XRZ.js.map +1 -0
  18. package/dist/chunk-NPKAIW34.js +239 -0
  19. package/dist/chunk-NPKAIW34.js.map +1 -0
  20. package/dist/{directionality-N62ZB7CF.js → directionality-XOHJFSL6.js} +7 -4
  21. package/dist/directionality-XOHJFSL6.js.map +1 -0
  22. package/dist/{emoticons-WQ3K4J6G.js → emoticons-TP4N4ZGY.js} +6 -3
  23. package/dist/emoticons-TP4N4ZGY.js.map +1 -0
  24. package/dist/index.cjs +1660 -308
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +334 -81
  27. package/dist/index.d.ts +334 -81
  28. package/dist/index.js +223 -34
  29. package/dist/index.js.map +1 -1
  30. package/dist/{insertdatetime-2RZ3UUQE.js → insertdatetime-T4SEMQWP.js} +6 -3
  31. package/dist/insertdatetime-T4SEMQWP.js.map +1 -0
  32. package/dist/{nonbreaking-L6GNDHVO.js → nonbreaking-HG5HV6AL.js} +6 -3
  33. package/dist/nonbreaking-HG5HV6AL.js.map +1 -0
  34. package/dist/{quickbars-TIRY3RH4.js → quickbars-4NU4SIPL.js} +7 -5
  35. package/dist/{quickbars-TIRY3RH4.js.map → quickbars-4NU4SIPL.js.map} +1 -1
  36. package/dist/{revisionhistory-GDTOULKS.js → revisionhistory-3YQPLPLM.js} +9 -6
  37. package/dist/revisionhistory-3YQPLPLM.js.map +1 -0
  38. package/dist/{visualblocks-V4CQ4XMF.js → visualblocks-RTAYJOGR.js} +6 -3
  39. package/dist/visualblocks-RTAYJOGR.js.map +1 -0
  40. package/package.json +3 -2
  41. package/src/style.css +106 -0
  42. package/dist/autosave-WODRZ7L6.js.map +0 -1
  43. package/dist/charmap-LWA7TL3K.js.map +0 -1
  44. package/dist/chunk-2A3IYKPE.js.map +0 -1
  45. package/dist/chunk-6GWG2BLC.js.map +0 -1
  46. package/dist/chunk-PHRON5PL.js.map +0 -1
  47. package/dist/chunk-YZPJQB3I.js.map +0 -1
  48. package/dist/directionality-N62ZB7CF.js.map +0 -1
  49. package/dist/emoticons-WQ3K4J6G.js.map +0 -1
  50. package/dist/insertdatetime-2RZ3UUQE.js.map +0 -1
  51. package/dist/nonbreaking-L6GNDHVO.js.map +0 -1
  52. package/dist/revisionhistory-GDTOULKS.js.map +0 -1
  53. package/dist/visualblocks-V4CQ4XMF.js.map +0 -1
  54. /package/dist/{advlist-FH3K3AAQ.js.map → advlist-K2U3VPH2.js.map} +0 -0
  55. /package/dist/{autolink-IDJWAL2V.js.map → autolink-XWDTLY37.js.map} +0 -0
  56. /package/dist/{autoresize-4ZEPQCHP.js.map → autoresize-UB3GOA6D.js.map} +0 -0
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ import {
3
3
  DEFAULT_MENUBAR,
4
4
  DEFAULT_MENUS,
5
5
  Editor,
6
+ Formatter,
6
7
  HTMLSerializer,
7
8
  KNOWN_STYLES,
8
9
  KNOWN_TAGS,
@@ -40,7 +41,7 @@ import {
40
41
  setSearch,
41
42
  setStyle,
42
43
  toggleFullscreen
43
- } from "./chunk-2A3IYKPE.js";
44
+ } from "./chunk-46RIM5KP.js";
44
45
  import {
45
46
  COMMENT_ID_RE,
46
47
  COMMENT_MAX_LENGTH,
@@ -51,11 +52,11 @@ import {
51
52
  } from "./chunk-Z3ELZ77W.js";
52
53
  import {
53
54
  applyLink,
55
+ attachFilePicker,
54
56
  createTable,
55
57
  getSelectedImage,
56
58
  hasHeaderColumn,
57
59
  hasHeaderRow,
58
- icons,
59
60
  insertTable,
60
61
  isInTable,
61
62
  normalizeUrl,
@@ -69,19 +70,22 @@ import {
69
70
  tableCommands,
70
71
  textField,
71
72
  uploadImages
72
- } from "./chunk-PHRON5PL.js";
73
+ } from "./chunk-435CRWKA.js";
73
74
  import {
74
75
  createSchema,
75
76
  cssValue,
76
77
  imageSize,
77
78
  schema
78
- } from "./chunk-YZPJQB3I.js";
79
+ } from "./chunk-7ON7PR5R.js";
79
80
  import {
80
81
  pickLabels
81
82
  } from "./chunk-6RJENZXT.js";
82
83
  import {
83
84
  h
84
85
  } from "./chunk-HZRIBOPW.js";
86
+ import {
87
+ icons
88
+ } from "./chunk-NPKAIW34.js";
85
89
  import {
86
90
  commands,
87
91
  getActiveAlign,
@@ -100,11 +104,11 @@ import {
100
104
  definePlugin,
101
105
  isPluginRegistered,
102
106
  registerPlugin
103
- } from "./chunk-6GWG2BLC.js";
107
+ } from "./chunk-HPLT3XRZ.js";
104
108
 
105
109
  // src/plugins/anchor.ts
106
110
  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>';
111
+ var ICON = icons.anchor;
108
112
  var LABELS = {
109
113
  en: {
110
114
  title: "Anchor",
@@ -350,8 +354,8 @@ var LABELS3 = {
350
354
  count: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0435\u0432: {count}"
351
355
  }
352
356
  };
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>';
357
+ var ICON_ADD = icons.commentAdd;
358
+ var ICON_SHOW = icons.comments;
355
359
  var SHORTCUT = "Mod-Alt-m";
356
360
  var commentsKey = new PluginKey("nova-comments");
357
361
  var controllers = /* @__PURE__ */ new WeakMap();
@@ -668,6 +672,186 @@ var comments_default = definePlugin({
668
672
  }
669
673
  });
670
674
 
675
+ // src/plugins/mergetags.ts
676
+ import { Plugin as PMPlugin } from "prosemirror-state";
677
+ var LABELS4 = {
678
+ en: {
679
+ insert: "Insert variable",
680
+ search: "Variables",
681
+ empty: "No variables found",
682
+ unknown: "Unknown variable"
683
+ },
684
+ ru: {
685
+ insert: "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0443\u044E",
686
+ search: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435",
687
+ empty: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B",
688
+ unknown: "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F"
689
+ }
690
+ };
691
+ var KEY_RE = /^[\w.:-]{1,100}$/;
692
+ var ATTR_RE = /^data-[a-z0-9-]{1,40}$/;
693
+ function optionsOf(editor) {
694
+ return editor.options.pluginOptions?.mergetags ?? {};
695
+ }
696
+ function attributeOf(editor) {
697
+ const attribute = optionsOf(editor).attribute ?? "data-mergetag";
698
+ if (ATTR_RE.test(attribute)) return attribute;
699
+ console.warn(
700
+ `[nova] mergetags: attribute "${attribute}" must look like data-name; using data-mergetag`
701
+ );
702
+ return "data-mergetag";
703
+ }
704
+ var isGroup = (entry) => Array.isArray(entry.items);
705
+ function flatList(editor) {
706
+ return (optionsOf(editor).list ?? []).flatMap(
707
+ (entry) => isGroup(entry) ? entry.items : [entry]
708
+ );
709
+ }
710
+ function labelFor(editor, key) {
711
+ return flatList(editor).find((tag) => tag.key === key)?.label;
712
+ }
713
+ function buildNodes(editor) {
714
+ const attribute = attributeOf(editor);
715
+ return {
716
+ mergetag: {
717
+ group: "inline",
718
+ inline: true,
719
+ atom: true,
720
+ selectable: true,
721
+ draggable: true,
722
+ // Свой style «фишки» (цвет, фон, жирность) — оформление, а не формат текста вокруг.
723
+ ignoreStyles: true,
724
+ attrs: { key: {}, label: { default: "" } },
725
+ parseDOM: [
726
+ {
727
+ tag: `span[${attribute}]`,
728
+ // Выше марок и стилей: переменная — целый узел, а не span с форматированием.
729
+ priority: 60,
730
+ getAttrs: (dom) => {
731
+ const el = dom;
732
+ const key = el.getAttribute(attribute) ?? "";
733
+ if (!KEY_RE.test(key)) return false;
734
+ return { key, label: labelFor(editor, key) ?? el.textContent?.trim() ?? key };
735
+ }
736
+ }
737
+ ],
738
+ // Документ мог прийти из JSON — ключ проверяем и на выходе.
739
+ toDOM: (node) => {
740
+ const key = KEY_RE.test(node.attrs.key) ? node.attrs.key : "";
741
+ const label = node.attrs.label || key;
742
+ return ["span", { [attribute]: key, contenteditable: "false" }, label];
743
+ }
744
+ }
745
+ };
746
+ }
747
+ var MergeTagView = class {
748
+ constructor(node, editor, unknownTitle) {
749
+ this.node = node;
750
+ this.editor = editor;
751
+ this.unknownTitle = unknownTitle;
752
+ this.dom = document.createElement("span");
753
+ this.dom.className = "nova-mergetag";
754
+ this.dom.contentEditable = "false";
755
+ this.render();
756
+ }
757
+ node;
758
+ editor;
759
+ unknownTitle;
760
+ dom;
761
+ render() {
762
+ const key = this.node.attrs.key;
763
+ const known = labelFor(this.editor, key);
764
+ this.dom.textContent = known ?? (this.node.attrs.label || key);
765
+ this.dom.dataset.key = key;
766
+ const list = optionsOf(this.editor).list;
767
+ const unknown = !!list?.length && known === void 0;
768
+ this.dom.classList.toggle("is-unknown", unknown);
769
+ this.dom.title = unknown ? `${this.unknownTitle}: ${key}` : key;
770
+ }
771
+ update(node) {
772
+ if (node.type !== this.node.type) return false;
773
+ this.node = node;
774
+ this.render();
775
+ return true;
776
+ }
777
+ selectNode() {
778
+ this.dom.classList.add("is-selected");
779
+ }
780
+ deselectNode() {
781
+ this.dom.classList.remove("is-selected");
782
+ }
783
+ stopEvent() {
784
+ return false;
785
+ }
786
+ ignoreMutation() {
787
+ return true;
788
+ }
789
+ };
790
+ function insertTag(editor, tag, range) {
791
+ const { state, dispatch } = editor.view;
792
+ const node = editor.schema.nodes.mergetag.create({ key: tag.key, label: tag.label });
793
+ const tr = range ? state.tr.replaceWith(range.from, range.to, node) : state.tr.replaceSelectionWith(node, false);
794
+ dispatch(tr.scrollIntoView());
795
+ editor.focus();
796
+ }
797
+ var mergetags_default = definePlugin({
798
+ name: "mergetags",
799
+ toolbar: "mergetags",
800
+ nodes: buildNodes,
801
+ prosemirrorPlugins: (editor) => {
802
+ const labels = pickLabels(editor, LABELS4);
803
+ return [
804
+ new PMPlugin({
805
+ props: {
806
+ nodeViews: {
807
+ mergetag: (node, _view) => new MergeTagView(node, editor, labels.unknown)
808
+ }
809
+ }
810
+ })
811
+ ];
812
+ },
813
+ setup(editor) {
814
+ const labels = pickLabels(editor, LABELS4);
815
+ editor.ui.registry.addMenuButton("mergetags", {
816
+ icon: icons.mergeTags,
817
+ tooltip: labels.insert,
818
+ isEnabled: (e) => e.isEditable() && flatList(e).length > 0,
819
+ items: (e) => {
820
+ const entries = [];
821
+ const item = (tag, id) => ({
822
+ id,
823
+ label: tag.label,
824
+ onSelect: () => insertTag(e, tag)
825
+ });
826
+ (optionsOf(e).list ?? []).forEach((entry, index) => {
827
+ if (isGroup(entry)) {
828
+ if (entries.length) entries.push({ type: "separator" });
829
+ entries.push({ type: "heading", label: entry.title });
830
+ entry.items.forEach((tag, i) => entries.push(item(tag, `mergetag-${index}-${i}`)));
831
+ } else {
832
+ entries.push(item(entry, `mergetag-${index}`));
833
+ }
834
+ });
835
+ return entries;
836
+ }
837
+ });
838
+ editor.ui.registry.addAutocompleter("mergetags", {
839
+ trigger: "{{",
840
+ label: labels.search,
841
+ emptyText: labels.empty,
842
+ maxResults: 12,
843
+ fetch: (query, e) => {
844
+ const q = query.toLowerCase();
845
+ return flatList(e).filter((tag) => tag.label.toLowerCase().includes(q) || tag.key.toLowerCase().includes(q)).map((tag) => ({ value: tag.key, label: tag.label, detail: tag.key }));
846
+ },
847
+ onSelect: (item, range, e) => {
848
+ const tag = flatList(e).find((t) => t.key === item.value);
849
+ if (tag) insertTag(e, tag, range);
850
+ }
851
+ });
852
+ }
853
+ });
854
+
671
855
  // src/plugins/suggestions.ts
672
856
  import {
673
857
  Fragment,
@@ -683,7 +867,7 @@ import { Decoration as Decoration2, DecorationSet as DecorationSet2 } from "pros
683
867
  import { keymap as keymap2 } from "prosemirror-keymap";
684
868
  var ID_RE2 = /^[A-Za-z0-9_-]{1,64}$/;
685
869
  var USER_ID_RE = /^[\w.@:+-]{1,128}$/;
686
- var LABELS4 = {
870
+ var LABELS5 = {
687
871
  en: {
688
872
  toggle: "Suggest edits",
689
873
  review: "Review suggestions",
@@ -715,10 +899,10 @@ var LABELS4 = {
715
899
  none: "\u041F\u0440\u0430\u0432\u043E\u043A \u043D\u0435\u0442"
716
900
  }
717
901
  };
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>';
902
+ var ICON_TOGGLE = icons.suggest;
903
+ var ICON_REVIEW = icons.review;
904
+ var ICON_ACCEPT = icons.check;
905
+ var ICON_REJECT = icons.close;
722
906
  var suggestionsKey = new PluginKey2("nova-suggestions");
723
907
  var OWN = "nova-suggestions-own";
724
908
  var PALETTE = ["#1a7f37", "#8250df", "#bf3989", "#0969da", "#bc4c00", "#1b7c83"];
@@ -968,7 +1152,7 @@ var suggestions_default = definePlugin({
968
1152
  attributes: (state) => suggestionsKey.getState(state)?.enabled ? { class: "nova-suggesting" } : {},
969
1153
  decorations(state) {
970
1154
  if (cache?.doc === state.doc) return cache.set;
971
- const labels = pickLabels(editor, LABELS4);
1155
+ const labels = pickLabels(editor, LABELS5);
972
1156
  const time = new Intl.DateTimeFormat(editor.options.language ?? "en", {
973
1157
  dateStyle: "medium",
974
1158
  timeStyle: "short"
@@ -1004,7 +1188,7 @@ var suggestions_default = definePlugin({
1004
1188
  transformTransaction(tr, state, editor) {
1005
1189
  if (!isSuggesting(state)) return tr;
1006
1190
  const options = editor.options.pluginOptions?.suggestions ?? {};
1007
- const labels = pickLabels(editor, LABELS4);
1191
+ const labels = pickLabels(editor, LABELS5);
1008
1192
  const author = {
1009
1193
  id: USER_ID_RE.test(options.author?.id ?? "") ? options.author.id : "guest",
1010
1194
  name: String(options.author?.name || labels.guest).slice(0, 80)
@@ -1013,7 +1197,7 @@ var suggestions_default = definePlugin({
1013
1197
  },
1014
1198
  setup(editor) {
1015
1199
  const options = editor.options.pluginOptions?.suggestions ?? {};
1016
- const labels = pickLabels(editor, LABELS4);
1200
+ const labels = pickLabels(editor, LABELS5);
1017
1201
  const canReview = options.canReview !== false;
1018
1202
  const dispatch = (tr) => editor.view.dispatch(tr);
1019
1203
  const current = () => suggestionAt(editor.view.state);
@@ -1114,8 +1298,8 @@ function parseMediaUrl(url) {
1114
1298
  if (VIDEO_FILE.test(value)) return { kind: "video", src: value };
1115
1299
  return null;
1116
1300
  }
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>';
1118
- var LABELS5 = {
1301
+ var ICON2 = icons.media;
1302
+ var LABELS6 = {
1119
1303
  en: {
1120
1304
  title: "Video",
1121
1305
  url: "Video URL",
@@ -1235,7 +1419,7 @@ var media_default = definePlugin({
1235
1419
  })
1236
1420
  ],
1237
1421
  setup(editor) {
1238
- const labels = pickLabels(editor, LABELS5);
1422
+ const labels = pickLabels(editor, LABELS6);
1239
1423
  const selected = () => {
1240
1424
  const { selection } = editor.view.state;
1241
1425
  return selection instanceof NodeSelection2 && selection.node.type.name === "media" ? selection : null;
@@ -1253,6 +1437,9 @@ var media_default = definePlugin({
1253
1437
  label: labels.name,
1254
1438
  value: current?.node.attrs.title ?? ""
1255
1439
  });
1440
+ attachFilePicker(editor, url, "media", (picked) => {
1441
+ if (picked.title) title.input.value = picked.title;
1442
+ });
1256
1443
  editor.ui.openDialog({
1257
1444
  title: labels.title,
1258
1445
  body: h("div", { className: "nova-form" }, url.el, title.el),
@@ -1285,8 +1472,8 @@ var media_default = definePlugin({
1285
1472
  });
1286
1473
 
1287
1474
  // 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>';
1289
- var LABELS6 = { en: { title: "Page break" }, ru: { title: "\u0420\u0430\u0437\u0440\u044B\u0432 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B" } };
1475
+ var ICON3 = icons.pageBreak;
1476
+ var LABELS7 = { en: { title: "Page break" }, ru: { title: "\u0420\u0430\u0437\u0440\u044B\u0432 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B" } };
1290
1477
  var pagebreak_default = definePlugin({
1291
1478
  name: "pagebreak",
1292
1479
  toolbar: "pagebreak",
@@ -1311,7 +1498,7 @@ var pagebreak_default = definePlugin({
1311
1498
  }
1312
1499
  },
1313
1500
  setup(editor) {
1314
- const { title } = pickLabels(editor, LABELS6);
1501
+ const { title } = pickLabels(editor, LABELS7);
1315
1502
  const insert = () => {
1316
1503
  const { state, dispatch } = editor.view;
1317
1504
  const type = editor.schema.nodes.pagebreak;
@@ -1329,29 +1516,31 @@ var pagebreak_default = definePlugin({
1329
1516
  });
1330
1517
 
1331
1518
  // 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"));
1337
- registerPlugin("autolink", () => import("./autolink-IDJWAL2V.js"));
1338
- registerPlugin("autosave", () => import("./autosave-WODRZ7L6.js"));
1339
- registerPlugin("autoresize", () => import("./autoresize-4ZEPQCHP.js"));
1340
- registerPlugin("visualblocks", () => import("./visualblocks-V4CQ4XMF.js"));
1519
+ registerPlugin("insertdatetime", () => import("./insertdatetime-T4SEMQWP.js"));
1520
+ registerPlugin("quickbars", () => import("./quickbars-4NU4SIPL.js"));
1521
+ registerPlugin("charmap", () => import("./charmap-ADLYOIB3.js"));
1522
+ registerPlugin("emoticons", () => import("./emoticons-TP4N4ZGY.js"));
1523
+ registerPlugin("nonbreaking", () => import("./nonbreaking-HG5HV6AL.js"));
1524
+ registerPlugin("autolink", () => import("./autolink-XWDTLY37.js"));
1525
+ registerPlugin("autosave", () => import("./autosave-MWNRUNU3.js"));
1526
+ registerPlugin("autoresize", () => import("./autoresize-UB3GOA6D.js"));
1527
+ registerPlugin("visualblocks", () => import("./visualblocks-RTAYJOGR.js"));
1341
1528
  registerPlugin("anchor", anchor_default);
1342
1529
  registerPlugin("pagebreak", pagebreak_default);
1343
1530
  registerPlugin("media", media_default);
1344
1531
  registerPlugin("comments", comments_default);
1345
1532
  registerPlugin("mentions", mentions_default);
1533
+ registerPlugin("mergetags", mergetags_default);
1346
1534
  registerPlugin("suggestions", suggestions_default);
1347
- registerPlugin("directionality", () => import("./directionality-N62ZB7CF.js"));
1348
- registerPlugin("advlist", () => import("./advlist-FH3K3AAQ.js"));
1349
- registerPlugin("revisionhistory", () => import("./revisionhistory-GDTOULKS.js"));
1535
+ registerPlugin("directionality", () => import("./directionality-XOHJFSL6.js"));
1536
+ registerPlugin("advlist", () => import("./advlist-K2U3VPH2.js"));
1537
+ registerPlugin("revisionhistory", () => import("./revisionhistory-3YQPLPLM.js"));
1350
1538
  export {
1351
1539
  ContentRules,
1352
1540
  DEFAULT_MENUBAR,
1353
1541
  DEFAULT_MENUS,
1354
1542
  Editor,
1543
+ Formatter,
1355
1544
  HTMLSerializer,
1356
1545
  KNOWN_STYLES,
1357
1546
  KNOWN_TAGS,