@harbour-enterprises/superdoc 0.6.101 → 0.6.102

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.
@@ -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, prepareDocumentForImport_fn, prepareDocumentForExport_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 generateRandom32BitHex, u as TrackFormatMarkName, w as comments_module_events, x as AddMarkStep, y as RemoveMarkStep, z as twipsToLines, B as pixelsToTwips, C as SuperConverter, E as EditorState, G as toKebabCase, H as kebabCase, I as SelectionRange, J as Transform } from "./converter-BHk9ufcG.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 generateRandom32BitHex, u as TrackFormatMarkName, w as comments_module_events, x as AddMarkStep, y as RemoveMarkStep, z as twipsToLines, B as pixelsToTwips, C as SuperConverter, E as EditorState, G as toKebabCase, H as kebabCase, I as SelectionRange, J as Transform } from "./converter-BGYuHapM.js";
16
16
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
17
- import { D as DocxZipper } from "./docx-zipper-CEVAJwEk.js";
17
+ import { D as DocxZipper } from "./docx-zipper-D4lHJs84.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -11735,7 +11735,7 @@ const _Editor = class _Editor extends EventEmitter {
11735
11735
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
11736
11736
  */
11737
11737
  processCollaborationMigrations() {
11738
- console.debug("[checkVersionMigrations] Current editor version", "0.6.101");
11738
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.102");
11739
11739
  if (!this.options.ydoc) return;
11740
11740
  const metaMap = this.options.ydoc.getMap("meta");
11741
11741
  let docVersion = metaMap.get("version");
@@ -11864,7 +11864,7 @@ checkHeadless_fn = function(options) {
11864
11864
  insertNewFileData_fn = function() {
11865
11865
  if (!this.options.isNewFile) return;
11866
11866
  this.options.isNewFile = false;
11867
- const doc2 = __privateMethod(this, _Editor_instances, generatePmData_fn).call(this, true);
11867
+ const doc2 = __privateMethod(this, _Editor_instances, generatePmData_fn).call(this);
11868
11868
  const tr = this.state.tr.replaceWith(0, this.state.doc.content.size, doc2);
11869
11869
  this.view.dispatch(tr);
11870
11870
  setTimeout(() => {
@@ -11938,13 +11938,13 @@ createSchema_fn = function() {
11938
11938
  /**
11939
11939
  * Generate data from file
11940
11940
  */
11941
- generatePmData_fn = function(includeComments) {
11941
+ generatePmData_fn = function() {
11942
11942
  let doc2;
11943
11943
  try {
11944
11944
  const { mode, fragment, isHeadless, content, loadFromSchema } = this.options;
11945
11945
  if (mode === "docx") {
11946
11946
  doc2 = createDocument(this.converter, this.schema, this);
11947
- if (includeComments) doc2 = __privateMethod(this, _Editor_instances, prepareDocumentForImport_fn).call(this, doc2);
11947
+ doc2 = __privateMethod(this, _Editor_instances, prepareDocumentForImport_fn).call(this, doc2);
11948
11948
  if (fragment && isHeadless) {
11949
11949
  doc2 = yXmlFragmentToProseMirrorRootNode(fragment, this.schema);
11950
11950
  }
@@ -22642,4 +22642,4 @@ export {
22642
22642
  redoDepth as r,
22643
22643
  undoDepth as u
22644
22644
  };
22645
- //# sourceMappingURL=editor-Brooq9vS.js.map
22645
+ //# sourceMappingURL=editor-B35pemal.js.map