@harbour-enterprises/superdoc 0.13.3-next.6 → 0.13.3-next.7

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.
@@ -23972,7 +23972,7 @@ const _SuperConverter = class _SuperConverter2 {
23972
23972
  return;
23973
23973
  }
23974
23974
  }
23975
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.3-next.6") {
23975
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.3-next.7") {
23976
23976
  const customLocation = "docProps/custom.xml";
23977
23977
  if (!docx[customLocation]) {
23978
23978
  docx[customLocation] = generateCustomXml();
@@ -24439,7 +24439,7 @@ function storeSuperdocVersion(docx) {
24439
24439
  function generateCustomXml() {
24440
24440
  return DEFAULT_CUSTOM_XML;
24441
24441
  }
24442
- function generateSuperdocVersion(pid = 2, version2 = "0.13.3-next.6") {
24442
+ function generateSuperdocVersion(pid = 2, version2 = "0.13.3-next.7") {
24443
24443
  return {
24444
24444
  type: "element",
24445
24445
  name: "property",
@@ -41284,7 +41284,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41284
41284
  * @returns {Object | void} Migration results
41285
41285
  */
41286
41286
  processCollaborationMigrations() {
41287
- console.debug("[checkVersionMigrations] Current editor version", "0.13.3-next.6");
41287
+ console.debug("[checkVersionMigrations] Current editor version", "0.13.3-next.7");
41288
41288
  if (!this.options.ydoc) return;
41289
41289
  const metaMap = this.options.ydoc.getMap("meta");
41290
41290
  let docVersion = metaMap.get("version");
@@ -55388,6 +55388,7 @@ const nodeResizer = (nodeNames = ["image"]) => {
55388
55388
  if (tr.getMeta(NodeResizerKey)) {
55389
55389
  return oldState;
55390
55390
  }
55391
+ if (typeof document === "undefined") return oldState;
55391
55392
  const decorations = [];
55392
55393
  const { selection } = newState;
55393
55394
  if (nodeNames.includes(selection.node?.type.name)) {
@@ -23989,7 +23989,7 @@ const _SuperConverter = class _SuperConverter2 {
23989
23989
  return;
23990
23990
  }
23991
23991
  }
23992
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.3-next.6") {
23992
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.3-next.7") {
23993
23993
  const customLocation = "docProps/custom.xml";
23994
23994
  if (!docx[customLocation]) {
23995
23995
  docx[customLocation] = generateCustomXml();
@@ -24456,7 +24456,7 @@ function storeSuperdocVersion(docx) {
24456
24456
  function generateCustomXml() {
24457
24457
  return DEFAULT_CUSTOM_XML;
24458
24458
  }
24459
- function generateSuperdocVersion(pid = 2, version2 = "0.13.3-next.6") {
24459
+ function generateSuperdocVersion(pid = 2, version2 = "0.13.3-next.7") {
24460
24460
  return {
24461
24461
  type: "element",
24462
24462
  name: "property",
@@ -41301,7 +41301,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41301
41301
  * @returns {Object | void} Migration results
41302
41302
  */
41303
41303
  processCollaborationMigrations() {
41304
- console.debug("[checkVersionMigrations] Current editor version", "0.13.3-next.6");
41304
+ console.debug("[checkVersionMigrations] Current editor version", "0.13.3-next.7");
41305
41305
  if (!this.options.ydoc) return;
41306
41306
  const metaMap = this.options.ydoc.getMap("meta");
41307
41307
  let docVersion = metaMap.get("version");
@@ -55405,6 +55405,7 @@ const nodeResizer = (nodeNames = ["image"]) => {
55405
55405
  if (tr.getMeta(NodeResizerKey)) {
55406
55406
  return oldState;
55407
55407
  }
55408
+ if (typeof document === "undefined") return oldState;
55408
55409
  const decorations = [];
55409
55410
  const { selection } = newState;
55410
55411
  if (nodeNames.includes(selection.node?.type.name)) {
@@ -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-CBQWlfhl.js";
3
- import { _ as _export_sfc } from "./chunks/editor-Bl7XWZa1.js";
2
+ import { T as TextSelection } from "./chunks/converter-QUj-wZvN.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-6uDae_dz.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.3-next.6") {
23994
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.13.3-next.7") {
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.3-next.6") {
24464
+ function generateSuperdocVersion(pid = 2, version = "0.13.3-next.7") {
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-CBQWlfhl.js";
1
+ import { y as process$1, a4 as commonjsGlobal, B as Buffer, a5 as getDefaultExportFromCjs, a6 as getContentTypesFromXml, a7 as xmljs } from "./converter-QUj-wZvN.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, initPagination_fn, dispatchTransaction_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, 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-CBQWlfhl.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, 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-QUj-wZvN.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-DP6XyxRN.js";
17
+ import { D as DocxZipper } from "./docx-zipper-DH-InfR-.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -14363,7 +14363,7 @@ const _Editor = class _Editor extends EventEmitter {
14363
14363
  * @returns {Object | void} Migration results
14364
14364
  */
14365
14365
  processCollaborationMigrations() {
14366
- console.debug("[checkVersionMigrations] Current editor version", "0.13.3-next.6");
14366
+ console.debug("[checkVersionMigrations] Current editor version", "0.13.3-next.7");
14367
14367
  if (!this.options.ydoc) return;
14368
14368
  const metaMap = this.options.ydoc.getMap("meta");
14369
14369
  let docVersion = metaMap.get("version");
@@ -28601,6 +28601,7 @@ const nodeResizer = (nodeNames = ["image"]) => {
28601
28601
  if (tr.getMeta(NodeResizerKey)) {
28602
28602
  return oldState;
28603
28603
  }
28604
+ if (typeof document === "undefined") return oldState;
28604
28605
  const decorations = [];
28605
28606
  const { selection } = newState;
28606
28607
  if (nodeNames.includes(selection.node?.type.name)) {
@@ -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-CBQWlfhl.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Bl7XWZa1.js";
2
+ import { y as process$1 } from "./converter-QUj-wZvN.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-6uDae_dz.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-CBQWlfhl.js";
1
+ import { U } from "./chunks/converter-QUj-wZvN.js";
2
2
  export {
3
3
  U as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-CBQWlfhl.js";
2
- import { D } from "./chunks/docx-zipper-DP6XyxRN.js";
1
+ import "./chunks/converter-QUj-wZvN.js";
2
+ import { D } from "./chunks/docx-zipper-DH-InfR-.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-Bl7XWZa1.js";
2
- import "./chunks/converter-CBQWlfhl.js";
3
- import "./chunks/docx-zipper-DP6XyxRN.js";
1
+ import { E } from "./chunks/editor-6uDae_dz.js";
2
+ import "./chunks/converter-QUj-wZvN.js";
3
+ import "./chunks/docx-zipper-DH-InfR-.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"noderesizer.d.ts","sourceRoot":"","sources":["../../../src/extensions/noderesizer/noderesizer.js"],"names":[],"mappings":"AAIA;;GAEG;AACH,4CAA4D;AA6S5D,8BAMG;0BA1T+B,mBAAmB"}
1
+ {"version":3,"file":"noderesizer.d.ts","sourceRoot":"","sources":["../../../src/extensions/noderesizer/noderesizer.js"],"names":[],"mappings":"AAIA;;GAEG;AACH,4CAA4D;AA+S5D,8BAMG;0BA5T+B,mBAAmB"}
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-DP6XyxRN.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-DH-InfR-.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -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-CBQWlfhl.js";
13
- import { U } from "./chunks/converter-CBQWlfhl.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-Bl7XWZa1.js";
15
- import { o, C, T, m, q, p, l, n } from "./chunks/editor-Bl7XWZa1.js";
12
+ import { a5 as getDefaultExportFromCjs, G as v4, a8 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-QUj-wZvN.js";
13
+ import { U } from "./chunks/converter-QUj-wZvN.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-6uDae_dz.js";
15
+ import { o, C, T, m, q, p, l, n } from "./chunks/editor-6uDae_dz.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-BPkkIe--.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-CmC6lAo9.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-DP6XyxRN.js";
19
+ import { D } from "./chunks/docx-zipper-DH-InfR-.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  (function(module) {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-BPkkIe--.js";
3
- import "./chunks/editor-Bl7XWZa1.js";
2
+ import { T } from "./chunks/toolbar-CmC6lAo9.js";
3
+ import "./chunks/editor-6uDae_dz.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-Cgv8g1xI.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-o8Xwp3Y-.cjs");
4
4
  require("./chunks/vue-HIY1g7dm.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-Pd9-5els.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-J9x_zHSB.es.js";
2
2
  import "./chunks/vue-Bi1uWinj.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-Cgv8g1xI.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-o8Xwp3Y-.cjs");
4
4
  const vue = require("./chunks/vue-HIY1g7dm.cjs");
5
5
  const jszip = require("./chunks/jszip-BTAcmbVg.cjs");
6
6
  const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
@@ -47806,7 +47806,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
47806
47806
  this.config.colors = shuffleArray(this.config.colors);
47807
47807
  this.userColorMap = /* @__PURE__ */ new Map();
47808
47808
  this.colorIndex = 0;
47809
- this.version = "0.13.3-next.6";
47809
+ this.version = "0.13.3-next.7";
47810
47810
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
47811
47811
  this.superdocId = config.superdocId || uuid.v4();
47812
47812
  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-Pd9-5els.es.js";
2
- import { a, S, i, n } from "./chunks/super-editor.es-Pd9-5els.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-J9x_zHSB.es.js";
2
+ import { a, S, i, n } from "./chunks/super-editor.es-J9x_zHSB.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-Bi1uWinj.es.js";
4
4
  import { B as Buffer$2 } from "./chunks/jszip-DckFs3A7.es.js";
5
5
  import { B as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.es.js";
@@ -47789,7 +47789,7 @@ class SuperDoc extends EventEmitter {
47789
47789
  this.config.colors = shuffleArray(this.config.colors);
47790
47790
  this.userColorMap = /* @__PURE__ */ new Map();
47791
47791
  this.colorIndex = 0;
47792
- this.version = "0.13.3-next.6";
47792
+ this.version = "0.13.3-next.7";
47793
47793
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
47794
47794
  this.superdocId = config.superdocId || v4();
47795
47795
  this.colors = this.config.colors;
@@ -31349,7 +31349,7 @@
31349
31349
  return;
31350
31350
  }
31351
31351
  }
31352
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.3-next.6") {
31352
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.3-next.7") {
31353
31353
  const customLocation = "docProps/custom.xml";
31354
31354
  if (!docx[customLocation]) {
31355
31355
  docx[customLocation] = generateCustomXml();
@@ -31816,7 +31816,7 @@
31816
31816
  function generateCustomXml() {
31817
31817
  return DEFAULT_CUSTOM_XML;
31818
31818
  }
31819
- function generateSuperdocVersion(pid = 2, version2 = "0.13.3-next.6") {
31819
+ function generateSuperdocVersion(pid = 2, version2 = "0.13.3-next.7") {
31820
31820
  return {
31821
31821
  type: "element",
31822
31822
  name: "property",
@@ -48661,7 +48661,7 @@
48661
48661
  * @returns {Object | void} Migration results
48662
48662
  */
48663
48663
  processCollaborationMigrations() {
48664
- console.debug("[checkVersionMigrations] Current editor version", "0.13.3-next.6");
48664
+ console.debug("[checkVersionMigrations] Current editor version", "0.13.3-next.7");
48665
48665
  if (!this.options.ydoc) return;
48666
48666
  const metaMap = this.options.ydoc.getMap("meta");
48667
48667
  let docVersion = metaMap.get("version");
@@ -62765,6 +62765,7 @@
62765
62765
  if (tr.getMeta(NodeResizerKey)) {
62766
62766
  return oldState;
62767
62767
  }
62768
+ if (typeof document === "undefined") return oldState;
62768
62769
  const decorations = [];
62769
62770
  const { selection } = newState;
62770
62771
  if (nodeNames.includes(selection.node?.type.name)) {
@@ -93485,7 +93486,7 @@ ${style2}
93485
93486
  this.config.colors = shuffleArray(this.config.colors);
93486
93487
  this.userColorMap = /* @__PURE__ */ new Map();
93487
93488
  this.colorIndex = 0;
93488
- this.version = "0.13.3-next.6";
93489
+ this.version = "0.13.3-next.7";
93489
93490
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
93490
93491
  this.superdocId = config.superdocId || v4();
93491
93492
  this.colors = this.config.colors;