@harbour-enterprises/superdoc 0.6.74 → 0.6.75

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 (23) hide show
  1. package/dist/chunks/{super-editor.es-DKkpK7ZM.js → super-editor.es-3mk1QJOz.js} +12 -11
  2. package/dist/chunks/{super-editor.es-DKkpK7ZM.js.map → super-editor.es-3mk1QJOz.js.map} +1 -1
  3. package/dist/super-editor/chunks/{converter-DwF_uUNJ.js → converter-C2Ax-qyH.js} +3 -3
  4. package/dist/super-editor/chunks/{converter-DwF_uUNJ.js.map → converter-C2Ax-qyH.js.map} +1 -1
  5. package/dist/super-editor/chunks/{docx-zipper-KsiwHwGw.js → docx-zipper-CvANIBUH.js} +2 -2
  6. package/dist/super-editor/chunks/{docx-zipper-KsiwHwGw.js.map → docx-zipper-CvANIBUH.js.map} +1 -1
  7. package/dist/super-editor/chunks/{editor-DtRMY7cq.js → editor-DUWJU_ck.js} +12 -11
  8. package/dist/super-editor/chunks/editor-DUWJU_ck.js.map +1 -0
  9. package/dist/super-editor/chunks/{toolbar-B4Rt3gKn.js → toolbar-BtRS82Lk.js} +3 -3
  10. package/dist/super-editor/chunks/{toolbar-B4Rt3gKn.js.map → toolbar-BtRS82Lk.js.map} +1 -1
  11. package/dist/super-editor/converter.es.js +1 -1
  12. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  13. package/dist/super-editor/docx-zipper.es.js +2 -2
  14. package/dist/super-editor/editor.es.js +3 -3
  15. package/dist/super-editor/file-zipper.es.js +1 -1
  16. package/dist/super-editor/super-editor.es.js +6 -6
  17. package/dist/super-editor/toolbar.es.js +2 -2
  18. package/dist/super-editor.es.js +1 -1
  19. package/dist/superdoc.es.js +3 -3
  20. package/dist/superdoc.umd.js +12 -11
  21. package/dist/superdoc.umd.js.map +1 -1
  22. package/package.json +1 -1
  23. package/dist/super-editor/chunks/editor-DtRMY7cq.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, 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 TrackFormatMarkName, u as comments_module_events, w as AddMarkStep, x as RemoveMarkStep, y as twipsToLines, z as pixelsToTwips, B as SuperConverter, E as EditorState, C as toKebabCase, G as kebabCase, H as SelectionRange, I as Transform } from "./converter-DwF_uUNJ.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 comments_module_events, w as AddMarkStep, x as RemoveMarkStep, y as twipsToLines, z as pixelsToTwips, B as SuperConverter, E as EditorState, C as toKebabCase, G as kebabCase, H as SelectionRange, I as Transform } from "./converter-C2Ax-qyH.js";
16
16
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createApp } from "vue";
17
- import { D as DocxZipper } from "./docx-zipper-KsiwHwGw.js";
17
+ import { D as DocxZipper } from "./docx-zipper-CvANIBUH.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -11464,16 +11464,17 @@ const _Editor = class _Editor extends EventEmitter {
11464
11464
  }
11465
11465
  };
11466
11466
  updateScale();
11467
- screen.orientation.addEventListener("change", () => {
11467
+ const handleResize = () => {
11468
11468
  setTimeout(() => {
11469
11469
  updateScale();
11470
11470
  }, 150);
11471
- });
11472
- window.addEventListener("resize", () => {
11473
- setTimeout(() => {
11474
- updateScale();
11475
- }, 150);
11476
- });
11471
+ };
11472
+ if ("orientation" in screen && "addEventListener" in screen.orientation) {
11473
+ screen.orientation.addEventListener("change", handleResize);
11474
+ } else {
11475
+ window.matchMedia("(orientation: portrait)").addEventListener("change", handleResize);
11476
+ }
11477
+ window.addEventListener("resize", () => handleResize);
11477
11478
  }
11478
11479
  /**
11479
11480
  * Get attrs of the currently selected node or mark.
@@ -11611,7 +11612,7 @@ const _Editor = class _Editor extends EventEmitter {
11611
11612
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
11612
11613
  */
11613
11614
  processCollaborationMigrations() {
11614
- console.debug("[checkVersionMigrations] Current editor version", "0.6.74");
11615
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.75");
11615
11616
  if (!this.options.ydoc) return;
11616
11617
  const metaMap = this.options.ydoc.getMap("meta");
11617
11618
  let docVersion = metaMap.get("version");
@@ -22495,4 +22496,4 @@ export {
22495
22496
  redoDepth as r,
22496
22497
  undoDepth as u
22497
22498
  };
22498
- //# sourceMappingURL=editor-DtRMY7cq.js.map
22499
+ //# sourceMappingURL=editor-DUWJU_ck.js.map