@harbour-enterprises/superdoc 0.6.6 → 0.6.8

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 (34) hide show
  1. package/dist/chunks/{super-editor.es-BL0SUzqA.js → super-editor.es-C2Mpe7zw.js} +371 -223
  2. package/dist/chunks/{super-editor.es-BL0SUzqA.js.map → super-editor.es-C2Mpe7zw.js.map} +1 -1
  3. package/dist/style.css +63 -52
  4. package/dist/super-editor/chunks/{converter-Db6kOZVK.js → converter-D38BagOs.js} +54 -7
  5. package/dist/super-editor/chunks/{converter-Db6kOZVK.js.map → converter-D38BagOs.js.map} +1 -1
  6. package/dist/super-editor/chunks/{docx-zipper-CU9-L2k_.js → docx-zipper-OU0T3wnQ.js} +2 -2
  7. package/dist/super-editor/chunks/{docx-zipper-CU9-L2k_.js.map → docx-zipper-OU0T3wnQ.js.map} +1 -1
  8. package/dist/super-editor/chunks/{editor-DDFPZgN6.js → editor-DFibABN8.js} +5 -5
  9. package/dist/super-editor/chunks/{editor-DDFPZgN6.js.map → editor-DFibABN8.js.map} +1 -1
  10. package/dist/super-editor/chunks/{toolbar-B1D1-QVR.js → toolbar-D5mDT387.js} +12 -6
  11. package/dist/super-editor/chunks/toolbar-D5mDT387.js.map +1 -0
  12. package/dist/super-editor/components/toolbar/color-dropdown-helpers.d.ts +15 -0
  13. package/dist/super-editor/components/toolbar/color-dropdown-helpers.d.ts.map +1 -0
  14. package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
  15. package/dist/super-editor/components/toolbar/super-toolbar.d.ts +1 -0
  16. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  17. package/dist/super-editor/components/toolbar/toolbarIcons.d.ts +1 -0
  18. package/dist/super-editor/converter.es.js +1 -1
  19. package/dist/super-editor/core/super-converter/SuperConverter.d.ts +1 -0
  20. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  21. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  22. package/dist/super-editor/core/super-converter/helpers.d.ts +2 -0
  23. package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
  24. package/dist/super-editor/docx-zipper.es.js +2 -2
  25. package/dist/super-editor/editor.es.js +3 -3
  26. package/dist/super-editor/file-zipper.es.js +1 -1
  27. package/dist/super-editor/style.css +63 -52
  28. package/dist/super-editor/super-editor.es.js +303 -208
  29. package/dist/super-editor/super-editor.es.js.map +1 -1
  30. package/dist/super-editor/toolbar.es.js +2 -2
  31. package/dist/super-editor.es.js +1 -1
  32. package/dist/superdoc.es.js +3 -3
  33. package/package.json +1 -1
  34. package/dist/super-editor/chunks/toolbar-B1D1-QVR.js.map +0 -1
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _events, _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, endCollaboration_fn, _FieldAnnotationView_instances, createAnnotation_fn;
13
13
  import * as Y from "yjs";
14
14
  import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement } from "yjs";
15
- import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, f as Schema$1, g as canSplit, l as liftTarget, h as canJoin, j as joinPoint, r as replaceStep$1, R as ReplaceAroundStep, o as objectIncludes, i as ReplaceStep, k as NodeRange, m as findWrapping, n as TrackDeleteMarkName, q as TrackInsertMarkName, v as v4, s as generateDocxRandomId, t as TrackFormatMarkName, u as AddMarkStep, w as RemoveMarkStep, x as comments_module_events, y as twipsToLines, z as pixelsToTwips, B as SuperConverter, E as EditorState, C as toKebabCase, G as kebabCase } from "./converter-Db6kOZVK.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, f as Schema$1, g as canSplit, l as liftTarget, h as canJoin, j as joinPoint, r as replaceStep$1, R as ReplaceAroundStep, o as objectIncludes, i as ReplaceStep, k as NodeRange, m as findWrapping, n as TrackDeleteMarkName, q as TrackInsertMarkName, v as v4, s as generateDocxRandomId, t as TrackFormatMarkName, u as AddMarkStep, w as RemoveMarkStep, x as comments_module_events, y as twipsToLines, z as pixelsToTwips, B as SuperConverter, E as EditorState, C as toKebabCase, G as kebabCase } from "./converter-D38BagOs.js";
16
16
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createElementVNode, toDisplayString, createApp } from "vue";
17
- import { D as DocxZipper } from "./docx-zipper-CU9-L2k_.js";
17
+ import { D as DocxZipper } from "./docx-zipper-OU0T3wnQ.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -11345,7 +11345,7 @@ const _Editor = class _Editor extends EventEmitter {
11345
11345
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
11346
11346
  */
11347
11347
  processCollaborationMigrations() {
11348
- console.debug("[checkVersionMigrations] Current editor version", "0.6.6");
11348
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.8");
11349
11349
  if (!this.options.ydoc) return;
11350
11350
  const metaMap = this.options.ydoc.getMap("meta");
11351
11351
  let docVersion = metaMap.get("version");
@@ -15500,7 +15500,7 @@ const Highlight = Mark.create({
15500
15500
  //prettier-ignore
15501
15501
  addCommands() {
15502
15502
  return {
15503
- setHighlight: () => ({ commands: commands2 }) => commands2.setMark(this.name),
15503
+ setHighlight: (color) => ({ commands: commands2 }) => commands2.setMark(this.name, { color }),
15504
15504
  unsetHighlight: () => ({ commands: commands2 }) => commands2.unsetMark(this.name),
15505
15505
  toggleHighlight: () => ({ commands: commands2 }) => commands2.toggleMark(this.name)
15506
15506
  };
@@ -19384,4 +19384,4 @@ export {
19384
19384
  redoDepth as r,
19385
19385
  undoDepth as u
19386
19386
  };
19387
- //# sourceMappingURL=editor-DDFPZgN6.js.map
19387
+ //# sourceMappingURL=editor-DFibABN8.js.map