@harbour-enterprises/superdoc 0.13.2-rev12 → 0.13.2-rev14

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 (33) hide show
  1. package/dist/chunks/{index-kOMfCfBT.cjs → index-BABtK_9p.cjs} +2 -2
  2. package/dist/chunks/{index-CweAXNfB.cjs → index-BOOtEcgZ.cjs} +1 -1
  3. package/dist/chunks/{index-BqLFjUHn.es.js → index-ClYNVXDv.es.js} +1 -1
  4. package/dist/chunks/{index-DS3W0eVB.es.js → index-DRG7AiQg.es.js} +2 -2
  5. package/dist/chunks/{super-editor.es-BKgM1pcY.cjs → super-editor.es-CPC_iMPw.cjs} +3 -22
  6. package/dist/chunks/{super-editor.es-C_Nq6j7z.es.js → super-editor.es-D1LXSpud.es.js} +3 -22
  7. package/dist/chunks/{url-B8LY3nwf.cjs → url-BmSVZ-b1.cjs} +1 -1
  8. package/dist/chunks/{url-Bq00tGvm.es.js → url-DtyZlUvQ.es.js} +1 -1
  9. package/dist/chunks/{xml-js-BuAdLsHD.cjs → xml-js-PTtx0UCg.cjs} +100 -79
  10. package/dist/chunks/{xml-js-1F0lia4t.es.js → xml-js-uhSaCX_L.es.js} +100 -79
  11. package/dist/style.css +5 -0
  12. package/dist/super-editor/ai-writer.es.js +2 -2
  13. package/dist/super-editor/chunks/{converter-BaxWFoHG.js → converter-DR_3x1Wn.js} +2 -2
  14. package/dist/super-editor/chunks/{docx-zipper-DultQQrr.js → docx-zipper-DhWkhAVx.js} +1 -1
  15. package/dist/super-editor/chunks/{editor-ClD1k7gi.js → editor-D63gAOoA.js} +3 -22
  16. package/dist/super-editor/chunks/{toolbar-BBZO5GG_.js → toolbar-xtgv6oET.js} +2 -2
  17. package/dist/super-editor/converter.es.js +1 -1
  18. package/dist/super-editor/docx-zipper.es.js +2 -2
  19. package/dist/super-editor/editor.es.js +3 -3
  20. package/dist/super-editor/file-zipper.es.js +1 -1
  21. package/dist/super-editor/style.css +5 -0
  22. package/dist/super-editor/super-editor.es.js +6 -6
  23. package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
  24. package/dist/super-editor/toolbar.es.js +2 -2
  25. package/dist/super-editor.cjs +1 -1
  26. package/dist/super-editor.es.js +1 -1
  27. package/dist/superdoc.cjs +5 -5
  28. package/dist/superdoc.es.js +6 -6
  29. package/dist/superdoc.umd.js +4 -23
  30. package/dist/superdoc.umd.js.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +0 -3
  33. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +0 -1
package/dist/style.css CHANGED
@@ -960,6 +960,11 @@ on the right if it is inside shape textbox.
960
960
  .pagination-section-footer img[contenteditable="false"] {
961
961
  pointer-events: none;
962
962
  }
963
+ .pagination-break-wrapper {
964
+ font-weight: normal;
965
+ font-style: normal;
966
+ color: initial;
967
+ }
963
968
  /* TODO: This is going to be enabled again */
964
969
  /* .pagination-section-header div[contenteditable="false"]:not([documentmode="viewing"]),
965
970
  .pagination-section-footer div[contenteditable="false"]:not([documentmode="viewing"]) {
@@ -1,6 +1,6 @@
1
1
  import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
2
- import { T as TextSelection } from "./chunks/converter-BaxWFoHG.js";
3
- import { _ as _export_sfc } from "./chunks/editor-ClD1k7gi.js";
2
+ import { T as TextSelection } from "./chunks/converter-DR_3x1Wn.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-D63gAOoA.js";
4
4
  const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
5
5
  const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
6
6
  async function baseInsightsFetch(payload, options = {}) {
@@ -23991,7 +23991,7 @@ const _SuperConverter = class _SuperConverter {
23991
23991
  return;
23992
23992
  }
23993
23993
  }
23994
- static updateDocumentVersion(docx = this.convertedXml, version = "0.13.2-rev12") {
23994
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.13.2-rev14") {
23995
23995
  const customLocation = "docProps/custom.xml";
23996
23996
  if (!docx[customLocation]) {
23997
23997
  docx[customLocation] = generateCustomXml();
@@ -24461,7 +24461,7 @@ function storeSuperdocVersion(docx) {
24461
24461
  function generateCustomXml() {
24462
24462
  return DEFAULT_CUSTOM_XML;
24463
24463
  }
24464
- function generateSuperdocVersion(pid = 2, version = "0.13.2-rev12") {
24464
+ function generateSuperdocVersion(pid = 2, version = "0.13.2-rev14") {
24465
24465
  return {
24466
24466
  type: "element",
24467
24467
  name: "property",
@@ -1,4 +1,4 @@
1
- import { y as process$1, a4 as commonjsGlobal, B as Buffer, a5 as getDefaultExportFromCjs, a6 as getContentTypesFromXml, a7 as xmljs } from "./converter-BaxWFoHG.js";
1
+ import { y as process$1, a4 as commonjsGlobal, B as Buffer, a5 as getDefaultExportFromCjs, a6 as getContentTypesFromXml, a7 as xmljs } from "./converter-DR_3x1Wn.js";
2
2
  function commonjsRequire(path) {
3
3
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createDocFromHTML_fn, createView_fn, onCollaborationReady_fn, initComments_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
13
13
  import * as Y from "yjs";
14
14
  import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
15
- import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, i as isEmptyObject, S as Schema$1, T as TextSelection, b as canSplit, l as liftTarget, A as AllSelection, d as canJoin, j as joinPoint, N as NodeSelection, r as replaceStep$1, e as Selection, F as Fragment, R as ReplaceAroundStep$1, f as Slice, o as objectIncludes, g as deleteProps, D as DOMParser$1, h as ReplaceStep, k as NodeRange, m as findWrapping, n as isMacOS, p as isIOS, q as generateDocxRandomId, s as minMax, t as chainableEditorState, u as generateRandom32BitHex, v as DOMSerializer, w as Mark$1, x as dropPoint, y as process$1, B as Buffer2, z as inputRulesPlugin, C as TrackDeleteMarkName, E as TrackInsertMarkName, G as v4, H as TrackFormatMarkName, I as comments_module_events, J as AddMarkStep, K as RemoveMarkStep, L as twipsToLines, O as pixelsToTwips, Q as CommandService, U as SuperConverter, V as EditorState, W as hasSomeParentWithClass, X as parseSizeUnit, Y as getLineHeightValueString, Z as InputRule, _ as toKebabCase, $ as kebabCase, a0 as getColStyleDeclaration, a1 as SelectionRange, a2 as Transform, a3 as createColGroup } from "./converter-BaxWFoHG.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, i as isEmptyObject, S as Schema$1, T as TextSelection, b as canSplit, l as liftTarget, A as AllSelection, d as canJoin, j as joinPoint, N as NodeSelection, r as replaceStep$1, e as Selection, F as Fragment, R as ReplaceAroundStep$1, f as Slice, o as objectIncludes, g as deleteProps, D as DOMParser$1, h as ReplaceStep, k as NodeRange, m as findWrapping, n as isMacOS, p as isIOS, q as generateDocxRandomId, s as minMax, t as chainableEditorState, u as generateRandom32BitHex, v as DOMSerializer, w as Mark$1, x as dropPoint, y as process$1, B as Buffer2, z as inputRulesPlugin, C as TrackDeleteMarkName, E as TrackInsertMarkName, G as v4, H as TrackFormatMarkName, I as comments_module_events, J as AddMarkStep, K as RemoveMarkStep, L as twipsToLines, O as pixelsToTwips, Q as CommandService, U as SuperConverter, V as EditorState, W as hasSomeParentWithClass, X as parseSizeUnit, Y as getLineHeightValueString, Z as InputRule, _ as toKebabCase, $ as kebabCase, a0 as getColStyleDeclaration, a1 as SelectionRange, a2 as Transform, a3 as createColGroup } from "./converter-DR_3x1Wn.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-DultQQrr.js";
17
+ import { D as DocxZipper } from "./docx-zipper-DhWkhAVx.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -13516,7 +13516,6 @@ const Collaboration = Extension.create({
13516
13516
  if (!this.editor.options.ydoc) return [];
13517
13517
  this.options.ydoc = this.editor.options.ydoc;
13518
13518
  const undoPlugin = createUndoPlugin();
13519
- initDocumentLockHandler(this.options.ydoc, this.editor);
13520
13519
  initSyncListener(this.options.ydoc, this.editor, this);
13521
13520
  initDocumentListener({ ydoc: this.options.ydoc, editor: this.editor });
13522
13521
  const [syncPlugin, fragment] = createSyncPlugin(this.options.ydoc, this.editor);
@@ -13582,24 +13581,6 @@ const createUndoPlugin = () => {
13582
13581
  const yUndoPluginInstance = yUndoPlugin();
13583
13582
  return yUndoPluginInstance;
13584
13583
  };
13585
- const initDocumentLockHandler = (ydoc, editor) => {
13586
- const metaMap = ydoc.getMap("meta");
13587
- metaMap.observe((event) => {
13588
- const lockedBy = metaMap.get("lockedBy");
13589
- const isLocked = metaMap.get("locked");
13590
- if (!editor.options.user || !lockedBy) return;
13591
- const emitEvent = lockedBy?.email !== editor.options.user?.email;
13592
- const editableChanged = editor.options.editable !== !isLocked;
13593
- if (!emitEvent || !editableChanged) return;
13594
- if (isLocked) {
13595
- console.debug("--- Locking editor ---", lockedBy, editor.options.user);
13596
- } else {
13597
- console.debug("--- Unlocking editor ---", lockedBy);
13598
- }
13599
- editor.setEditable(!isLocked);
13600
- editor.emit("locked", { editor, isLocked, lockedBy });
13601
- });
13602
- };
13603
13584
  const checkDocxChanged = (transaction) => {
13604
13585
  for (const [key, value] of transaction.changed?.entries()) {
13605
13586
  if (value instanceof Set && value.has("docx")) {
@@ -14440,7 +14421,7 @@ const _Editor = class _Editor extends EventEmitter {
14440
14421
  * @returns {Object | void} Migration results
14441
14422
  */
14442
14423
  processCollaborationMigrations() {
14443
- console.debug("[checkVersionMigrations] Current editor version", "0.13.2-rev12");
14424
+ console.debug("[checkVersionMigrations] Current editor version", "0.13.2-rev14");
14444
14425
  if (!this.options.ydoc) return;
14445
14426
  const metaMap = this.options.ydoc.getMap("meta");
14446
14427
  let docVersion = metaMap.get("version");
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, nextTick, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { y as process$1 } from "./converter-BaxWFoHG.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-ClD1k7gi.js";
2
+ import { y as process$1 } from "./converter-DR_3x1Wn.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-D63gAOoA.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1,4 +1,4 @@
1
- import { U } from "./chunks/converter-BaxWFoHG.js";
1
+ import { U } from "./chunks/converter-DR_3x1Wn.js";
2
2
  export {
3
3
  U as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-BaxWFoHG.js";
2
- import { D } from "./chunks/docx-zipper-DultQQrr.js";
1
+ import "./chunks/converter-DR_3x1Wn.js";
2
+ import { D } from "./chunks/docx-zipper-DhWkhAVx.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-ClD1k7gi.js";
2
- import "./chunks/converter-BaxWFoHG.js";
3
- import "./chunks/docx-zipper-DultQQrr.js";
1
+ import { E } from "./chunks/editor-D63gAOoA.js";
2
+ import "./chunks/converter-DR_3x1Wn.js";
3
+ import "./chunks/docx-zipper-DhWkhAVx.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-DultQQrr.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-DhWkhAVx.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -880,6 +880,11 @@ on the right if it is inside shape textbox.
880
880
  .pagination-section-footer img[contenteditable="false"] {
881
881
  pointer-events: none;
882
882
  }
883
+ .pagination-break-wrapper {
884
+ font-weight: normal;
885
+ font-style: normal;
886
+ color: initial;
887
+ }
883
888
  /* TODO: This is going to be enabled again */
884
889
  /* .pagination-section-header div[contenteditable="false"]:not([documentmode="viewing"]),
885
890
  .pagination-section-footer div[contenteditable="false"]:not([documentmode="viewing"]) {
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
11
11
  var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
12
- import { a5 as getDefaultExportFromCjs, G as v4, a8 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-BaxWFoHG.js";
13
- import { U } from "./chunks/converter-BaxWFoHG.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, f as findParentNode, c as getFileOpener, s as startImageUpload, d as getActiveFormatting, i as isInTable, e as undoDepth, r as redoDepth, E as Editor, h as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-ClD1k7gi.js";
15
- import { o, C, T, m, q, p, l, n } from "./chunks/editor-ClD1k7gi.js";
12
+ import { a5 as getDefaultExportFromCjs, G as v4, a8 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-DR_3x1Wn.js";
13
+ import { U } from "./chunks/converter-DR_3x1Wn.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, f as findParentNode, c as getFileOpener, s as startImageUpload, d as getActiveFormatting, i as isInTable, e as undoDepth, r as redoDepth, E as Editor, h as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-D63gAOoA.js";
15
+ import { o, C, T, m, q, p, l, n } from "./chunks/editor-D63gAOoA.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, getCurrentInstance, computed, watch, createCommentVNode, withDirectives, withKeys, vModelText, createTextVNode, toDisplayString, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-BBZO5GG_.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-xtgv6oET.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-DultQQrr.js";
19
+ import { D } from "./chunks/docx-zipper-DhWkhAVx.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  (function(module) {
@@ -1,3 +1,3 @@
1
- declare const _default: import("vite").UserConfig & Promise<import("vite").UserConfig> & import("vite").UserConfigFnObject & import("vite").UserConfigFnPromise & import("vite").UserConfigFn;
1
+ declare const _default: import("vite").UserConfig & Promise<import("vite").UserConfig> & (import("vite").UserConfigFnObject & import("vite").UserConfigExport);
2
2
  export default _default;
3
3
  //# sourceMappingURL=vite.config.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-BBZO5GG_.js";
3
- import "./chunks/editor-ClD1k7gi.js";
2
+ import { T } from "./chunks/toolbar-xtgv6oET.js";
3
+ import "./chunks/editor-D63gAOoA.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-BKgM1pcY.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-CPC_iMPw.cjs");
4
4
  require("./chunks/vue-BBjMeYfo.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
@@ -1,4 +1,4 @@
1
- import { A, a, _, C, D, E, b, S, c, d, e, T, f, g, i, h, j, k, l, m, n, o } from "./chunks/super-editor.es-C_Nq6j7z.es.js";
1
+ import { A, a, _, C, D, E, b, S, c, d, e, T, f, g, i, h, j, k, l, m, n, o } from "./chunks/super-editor.es-D1LXSpud.es.js";
2
2
  import "./chunks/vue-BBJVqxjL.es.js";
3
3
  export {
4
4
  A as AIWriter,
package/dist/superdoc.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-BKgM1pcY.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-CPC_iMPw.cjs");
4
4
  const vue = require("./chunks/vue-BBjMeYfo.cjs");
5
5
  const jszip = require("./chunks/jszip-9bCX1h2W.cjs");
6
6
  const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
@@ -24406,13 +24406,13 @@ var __webpack_exports__$1 = globalThis.pdfjsLib = {};
24406
24406
  "./chunks/empty-lth7LH78.cjs"
24407
24407
  )), http = await Promise.resolve().then(() => require(
24408
24408
  /*webpackIgnore: true*/
24409
- "./chunks/index-kOMfCfBT.cjs"
24409
+ "./chunks/index-BABtK_9p.cjs"
24410
24410
  )).then((n) => n.index), https = await Promise.resolve().then(() => require(
24411
24411
  /*webpackIgnore: true*/
24412
- "./chunks/index-CweAXNfB.cjs"
24412
+ "./chunks/index-BOOtEcgZ.cjs"
24413
24413
  )).then((n) => n.index), url = await Promise.resolve().then(() => require(
24414
24414
  /*webpackIgnore: true*/
24415
- "./chunks/url-B8LY3nwf.cjs"
24415
+ "./chunks/url-BmSVZ-b1.cjs"
24416
24416
  )).then((n) => n.url);
24417
24417
  let canvas, path2d;
24418
24418
  try {
@@ -47805,7 +47805,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
47805
47805
  this.config.colors = shuffleArray(this.config.colors);
47806
47806
  this.userColorMap = /* @__PURE__ */ new Map();
47807
47807
  this.colorIndex = 0;
47808
- this.version = "0.13.2-rev12";
47808
+ this.version = "0.13.2-rev14";
47809
47809
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
47810
47810
  this.superdocId = config.superdocId || uuid.v4();
47811
47811
  this.colors = this.config.colors;
@@ -1,5 +1,5 @@
1
- import { o as index$1, C as CommentsPluginKey, f as TrackChangesBasePluginKey, E as Editor, l as getRichTextExtensions, d as SuperInput, A as AIWriter, c as SuperEditor, e as SuperToolbar, g as createZip } from "./chunks/super-editor.es-C_Nq6j7z.es.js";
2
- import { a, S, i, n } from "./chunks/super-editor.es-C_Nq6j7z.es.js";
1
+ import { o as index$1, C as CommentsPluginKey, f as TrackChangesBasePluginKey, E as Editor, l as getRichTextExtensions, d as SuperInput, A as AIWriter, c as SuperEditor, e as SuperToolbar, g as createZip } from "./chunks/super-editor.es-D1LXSpud.es.js";
2
+ import { a, S, i, n } from "./chunks/super-editor.es-D1LXSpud.es.js";
3
3
  import { Y as effectScope, r as ref, Z as markRaw, p as process$1, _ as toRaw, a as computed, $ as isRef, a0 as isReactive, D as toRef, i as inject, q as getCurrentInstance, l as watch, y as unref, a1 as hasInjectionContext, N as reactive, u as nextTick, a2 as getCurrentScope, a3 as onScopeDispose, a4 as toRefs, g as global$1, K as shallowRef, O as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, U as onActivated, s as onDeactivated, A as createTextVNode, F as Fragment, R as Comment, m as defineComponent, E as provide, I as withDirectives, C as h, V as Teleport, S as renderSlot, W as isVNode, J as watchEffect, P as Transition, G as mergeProps, Q as vShow, H as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, x as createVNode, z as withCtx, f as createBaseVNode, B as normalizeStyle, e as createCommentVNode, v as createBlock, w as withModifiers, n as normalizeClass, a5 as resolveDirective, d as renderList, c as createApp, X as onUnmounted, a6 as resolveDynamicComponent } from "./chunks/vue-BBJVqxjL.es.js";
4
4
  import { B as Buffer$2 } from "./chunks/jszip-Cl3s9njw.es.js";
5
5
  import { B as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.es.js";
@@ -24389,13 +24389,13 @@ var __webpack_exports__$1 = globalThis.pdfjsLib = {};
24389
24389
  "./chunks/empty-smM22Y5N.es.js"
24390
24390
  ), http = await import(
24391
24391
  /*webpackIgnore: true*/
24392
- "./chunks/index-DS3W0eVB.es.js"
24392
+ "./chunks/index-DRG7AiQg.es.js"
24393
24393
  ).then((n2) => n2.i), https = await import(
24394
24394
  /*webpackIgnore: true*/
24395
- "./chunks/index-BqLFjUHn.es.js"
24395
+ "./chunks/index-ClYNVXDv.es.js"
24396
24396
  ).then((n2) => n2.i), url = await import(
24397
24397
  /*webpackIgnore: true*/
24398
- "./chunks/url-Bq00tGvm.es.js"
24398
+ "./chunks/url-DtyZlUvQ.es.js"
24399
24399
  ).then((n2) => n2.u);
24400
24400
  let canvas, path2d;
24401
24401
  try {
@@ -47788,7 +47788,7 @@ class SuperDoc extends EventEmitter {
47788
47788
  this.config.colors = shuffleArray(this.config.colors);
47789
47789
  this.userColorMap = /* @__PURE__ */ new Map();
47790
47790
  this.colorIndex = 0;
47791
- this.version = "0.13.2-rev12";
47791
+ this.version = "0.13.2-rev14";
47792
47792
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
47793
47793
  this.superdocId = config.superdocId || v4();
47794
47794
  this.colors = this.config.colors;
@@ -31356,7 +31356,7 @@
31356
31356
  return;
31357
31357
  }
31358
31358
  }
31359
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.2-rev12") {
31359
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.2-rev14") {
31360
31360
  const customLocation = "docProps/custom.xml";
31361
31361
  if (!docx[customLocation]) {
31362
31362
  docx[customLocation] = generateCustomXml();
@@ -31823,7 +31823,7 @@
31823
31823
  function generateCustomXml() {
31824
31824
  return DEFAULT_CUSTOM_XML;
31825
31825
  }
31826
- function generateSuperdocVersion(pid = 2, version2 = "0.13.2-rev12") {
31826
+ function generateSuperdocVersion(pid = 2, version2 = "0.13.2-rev14") {
31827
31827
  return {
31828
31828
  type: "element",
31829
31829
  name: "property",
@@ -47849,7 +47849,6 @@
47849
47849
  if (!this.editor.options.ydoc) return [];
47850
47850
  this.options.ydoc = this.editor.options.ydoc;
47851
47851
  const undoPlugin = createUndoPlugin();
47852
- initDocumentLockHandler(this.options.ydoc, this.editor);
47853
47852
  initSyncListener(this.options.ydoc, this.editor, this);
47854
47853
  initDocumentListener({ ydoc: this.options.ydoc, editor: this.editor });
47855
47854
  const [syncPlugin, fragment] = createSyncPlugin(this.options.ydoc, this.editor);
@@ -47915,24 +47914,6 @@
47915
47914
  const yUndoPluginInstance = yUndoPlugin();
47916
47915
  return yUndoPluginInstance;
47917
47916
  };
47918
- const initDocumentLockHandler = (ydoc, editor) => {
47919
- const metaMap = ydoc.getMap("meta");
47920
- metaMap.observe((event) => {
47921
- const lockedBy = metaMap.get("lockedBy");
47922
- const isLocked = metaMap.get("locked");
47923
- if (!editor.options.user || !lockedBy) return;
47924
- const emitEvent = lockedBy?.email !== editor.options.user?.email;
47925
- const editableChanged = editor.options.editable !== !isLocked;
47926
- if (!emitEvent || !editableChanged) return;
47927
- if (isLocked) {
47928
- console.debug("--- Locking editor ---", lockedBy, editor.options.user);
47929
- } else {
47930
- console.debug("--- Unlocking editor ---", lockedBy);
47931
- }
47932
- editor.setEditable(!isLocked);
47933
- editor.emit("locked", { editor, isLocked, lockedBy });
47934
- });
47935
- };
47936
47917
  const checkDocxChanged = (transaction) => {
47937
47918
  for (const [key, value] of transaction.changed?.entries()) {
47938
47919
  if (value instanceof Set && value.has("docx")) {
@@ -48745,7 +48726,7 @@
48745
48726
  * @returns {Object | void} Migration results
48746
48727
  */
48747
48728
  processCollaborationMigrations() {
48748
- console.debug("[checkVersionMigrations] Current editor version", "0.13.2-rev12");
48729
+ console.debug("[checkVersionMigrations] Current editor version", "0.13.2-rev14");
48749
48730
  if (!this.options.ydoc) return;
48750
48731
  const metaMap = this.options.ydoc.getMap("meta");
48751
48732
  let docVersion = metaMap.get("version");
@@ -93635,7 +93616,7 @@ ${style2}
93635
93616
  this.config.colors = shuffleArray(this.config.colors);
93636
93617
  this.userColorMap = /* @__PURE__ */ new Map();
93637
93618
  this.colorIndex = 0;
93638
- this.version = "0.13.2-rev12";
93619
+ this.version = "0.13.2-rev14";
93639
93620
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
93640
93621
  this.superdocId = config.superdocId || v4();
93641
93622
  this.colors = this.config.colors;