@harbour-enterprises/superdoc 0.14.0-next.4 → 0.14.0-next.5

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/{eventemitter3-DfVviFzP.cjs → eventemitter3-CHxWXmuK.cjs} +1 -1
  2. package/dist/chunks/{eventemitter3-BrspJk8q.es.js → eventemitter3-KKY27oz-.es.js} +1 -1
  3. package/dist/chunks/{index-Cdsq63Xq.cjs → index-BABtK_9p.cjs} +4 -4
  4. package/dist/chunks/{index-B4J7wgs6.cjs → index-BOOtEcgZ.cjs} +2 -2
  5. package/dist/chunks/{index-Hr3Um-Bg.es.js → index-ClYNVXDv.es.js} +2 -2
  6. package/dist/chunks/{index-Diu6UKHt.es.js → index-DRG7AiQg.es.js} +4 -4
  7. package/dist/chunks/{jszip-BTAcmbVg.cjs → jszip-9bCX1h2W.cjs} +1 -1
  8. package/dist/chunks/{jszip-DckFs3A7.es.js → jszip-Cl3s9njw.es.js} +1 -1
  9. package/dist/chunks/{super-editor.es-DyUoKmkO.cjs → super-editor.es-1V_Ac-SF.cjs} +9 -9
  10. package/dist/chunks/{super-editor.es-BpHrUdJQ.es.js → super-editor.es-CS08WNwP.es.js} +9 -9
  11. package/dist/chunks/{url-BIzg4y2i.cjs → url-BmSVZ-b1.cjs} +2 -2
  12. package/dist/chunks/{url-CHayXMZH.es.js → url-DtyZlUvQ.es.js} +2 -2
  13. package/dist/chunks/{vue-Bi1uWinj.es.js → vue-BBJVqxjL.es.js} +10 -3
  14. package/dist/chunks/{vue-HIY1g7dm.cjs → vue-BBjMeYfo.cjs} +10 -3
  15. package/dist/chunks/{xml-js-BjqmFOSP.cjs → xml-js-PTtx0UCg.cjs} +2 -2
  16. package/dist/chunks/{xml-js-CfClL-1b.es.js → xml-js-uhSaCX_L.es.js} +2 -2
  17. package/dist/super-editor/ai-writer.es.js +2 -2
  18. package/dist/super-editor/chunks/{converter-DjWoCkni.js → converter-3dVTYXnm.js} +2 -2
  19. package/dist/super-editor/chunks/{docx-zipper-CpyrpKcO.js → docx-zipper-CAF6BgPQ.js} +1 -1
  20. package/dist/super-editor/chunks/{editor-BY9zLJjg.js → editor-NHY1ApZn.js} +8 -7
  21. package/dist/super-editor/chunks/{toolbar-BrTH3DZU.js → toolbar-Dr1wHywT.js} +2 -3
  22. package/dist/super-editor/converter.es.js +1 -1
  23. package/dist/super-editor/docx-zipper.es.js +2 -2
  24. package/dist/super-editor/editor.es.js +3 -3
  25. package/dist/super-editor/file-zipper.es.js +1 -1
  26. package/dist/super-editor/super-editor.es.js +6 -6
  27. package/dist/super-editor/toolbar.es.js +2 -2
  28. package/dist/super-editor.cjs +2 -2
  29. package/dist/super-editor.es.js +2 -2
  30. package/dist/superdoc.cjs +8 -9
  31. package/dist/superdoc.es.js +9 -10
  32. package/dist/superdoc.umd.js +19 -13
  33. package/dist/superdoc.umd.js.map +1 -1
  34. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-BTAcmbVg.cjs");
2
+ const jszip = require("./jszip-9bCX1h2W.cjs");
3
3
  var eventemitter3 = { exports: {} };
4
4
  (function(module2) {
5
5
  var has = Object.prototype.hasOwnProperty, prefix = "~";
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from "./jszip-DckFs3A7.es.js";
1
+ import { g as getDefaultExportFromCjs } from "./jszip-Cl3s9njw.es.js";
2
2
  var eventemitter3 = { exports: {} };
3
3
  (function(module) {
4
4
  var has = Object.prototype.hasOwnProperty, prefix = "~";
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-BTAcmbVg.cjs");
3
- const vue = require("./vue-HIY1g7dm.cjs");
4
- const xmlJs = require("./xml-js-BjqmFOSP.cjs");
5
- const url = require("./url-BIzg4y2i.cjs");
2
+ const jszip = require("./jszip-9bCX1h2W.cjs");
3
+ const vue = require("./vue-BBjMeYfo.cjs");
4
+ const xmlJs = require("./xml-js-PTtx0UCg.cjs");
5
+ const url = require("./url-BmSVZ-b1.cjs");
6
6
  function _mergeNamespaces(n, m) {
7
7
  for (var i = 0; i < m.length; i++) {
8
8
  const e = m[i];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-BTAcmbVg.cjs");
3
- const index$2 = require("./index-Cdsq63Xq.cjs");
2
+ const jszip = require("./jszip-9bCX1h2W.cjs");
3
+ const index$2 = require("./index-BABtK_9p.cjs");
4
4
  function _mergeNamespaces(n, m) {
5
5
  for (var i = 0; i < m.length; i++) {
6
6
  const e = m[i];
@@ -1,5 +1,5 @@
1
- import { g as getDefaultExportFromCjs } from "./jszip-DckFs3A7.es.js";
2
- import { s as streamHttp, r as require$$1 } from "./index-Diu6UKHt.es.js";
1
+ import { g as getDefaultExportFromCjs } from "./jszip-Cl3s9njw.es.js";
2
+ import { s as streamHttp, r as require$$1 } from "./index-DRG7AiQg.es.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -1,7 +1,7 @@
1
- import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-DckFs3A7.es.js";
2
- import { p as process$1 } from "./vue-Bi1uWinj.es.js";
3
- import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-CfClL-1b.es.js";
4
- import { u as url } from "./url-CHayXMZH.es.js";
1
+ import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-Cl3s9njw.es.js";
2
+ import { p as process$1 } from "./vue-BBJVqxjL.es.js";
3
+ import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-uhSaCX_L.es.js";
4
+ import { u as url } from "./url-DtyZlUvQ.es.js";
5
5
  function _mergeNamespaces(n, m) {
6
6
  for (var i = 0; i < m.length; i++) {
7
7
  const e = m[i];
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- require("./vue-HIY1g7dm.cjs");
2
+ require("./vue-BBjMeYfo.cjs");
3
3
  var buffer = {};
4
4
  var base64Js = {};
5
5
  base64Js.byteLength = byteLength;
@@ -1,4 +1,4 @@
1
- import "./vue-Bi1uWinj.es.js";
1
+ import "./vue-BBJVqxjL.es.js";
2
2
  var buffer = {};
3
3
  var base64Js = {};
4
4
  base64Js.byteLength = byteLength;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const vue = require("./vue-HIY1g7dm.cjs");
2
+ const vue = require("./vue-BBjMeYfo.cjs");
3
3
  const Y = require("yjs");
4
4
  function _interopNamespaceDefault(e) {
5
5
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -24252,7 +24252,7 @@ const _SuperConverter = class _SuperConverter2 {
24252
24252
  return;
24253
24253
  }
24254
24254
  }
24255
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.4") {
24255
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.5") {
24256
24256
  const customLocation = "docProps/custom.xml";
24257
24257
  if (!docx[customLocation]) {
24258
24258
  docx[customLocation] = generateCustomXml();
@@ -24720,7 +24720,7 @@ function storeSuperdocVersion(docx) {
24720
24720
  function generateCustomXml() {
24721
24721
  return DEFAULT_CUSTOM_XML;
24722
24722
  }
24723
- function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.4") {
24723
+ function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.5") {
24724
24724
  return {
24725
24725
  type: "element",
24726
24726
  name: "property",
@@ -37518,7 +37518,8 @@ const restoreRelativeSelection = (tr, relSel, binding) => {
37518
37518
  binding.mapping
37519
37519
  );
37520
37520
  if (anchor !== null && head !== null) {
37521
- tr.setSelection(TextSelection.between(tr.doc.resolve(anchor), tr.doc.resolve(head)));
37521
+ const sel = TextSelection.between(tr.doc.resolve(anchor), tr.doc.resolve(head));
37522
+ tr.setSelection(sel);
37522
37523
  }
37523
37524
  }
37524
37525
  }
@@ -38299,7 +38300,7 @@ const setMeta = (view, key, value) => {
38299
38300
  };
38300
38301
  const absolutePositionToRelativePosition = (pos, type2, mapping) => {
38301
38302
  if (pos === 0) {
38302
- return Y__namespace.createRelativePositionFromTypeIndex(type2, 0, -1);
38303
+ return Y__namespace.createRelativePositionFromTypeIndex(type2, 0, type2.length === 0 ? -1 : 0);
38303
38304
  }
38304
38305
  let n = type2._first === null ? null : (
38305
38306
  /** @type {Y.ContentType} */
@@ -38308,7 +38309,7 @@ const absolutePositionToRelativePosition = (pos, type2, mapping) => {
38308
38309
  while (n !== null && type2 !== n) {
38309
38310
  if (n instanceof Y__namespace.XmlText) {
38310
38311
  if (n._length >= pos) {
38311
- return Y__namespace.createRelativePositionFromTypeIndex(n, pos, -1);
38312
+ return Y__namespace.createRelativePositionFromTypeIndex(n, pos, type2.length === 0 ? -1 : 0);
38312
38313
  } else {
38313
38314
  pos -= n._length;
38314
38315
  }
@@ -38372,7 +38373,7 @@ const absolutePositionToRelativePosition = (pos, type2, mapping) => {
38372
38373
  return createRelativePosition(n._item.parent, n._item);
38373
38374
  }
38374
38375
  }
38375
- return Y__namespace.createRelativePositionFromTypeIndex(type2, type2._length, -1);
38376
+ return Y__namespace.createRelativePositionFromTypeIndex(type2, type2._length, type2.length === 0 ? -1 : 0);
38376
38377
  };
38377
38378
  const createRelativePosition = (type2, item) => {
38378
38379
  let typeid = null;
@@ -41916,7 +41917,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41916
41917
  * @returns {Object | void} Migration results
41917
41918
  */
41918
41919
  processCollaborationMigrations() {
41919
- console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.4");
41920
+ console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.5");
41920
41921
  if (!this.options.ydoc) return;
41921
41922
  const metaMap = this.options.ydoc.getMap("meta");
41922
41923
  let docVersion = metaMap.get("version");
@@ -64880,7 +64881,6 @@ const style$2 = cB("icon", `
64880
64881
  display: inline-block;
64881
64882
  position: relative;
64882
64883
  fill: currentColor;
64883
- transform: translateZ(0);
64884
64884
  `, [cM("color-transition", {
64885
64885
  transition: "color .3s var(--n-bezier)"
64886
64886
  }), cM("depth", {
@@ -1,4 +1,4 @@
1
- import { g as global$2, r as ref$1, c as createApp, a as computed, b as createElementBlock, o as openBlock, F as Fragment$1, d as renderList, n as normalizeClass, w as withModifiers, e as createCommentVNode, t as toDisplayString, f as createBaseVNode, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, q as getCurrentInstance, s as onDeactivated, u as nextTick, v as createBlock, x as createVNode, y as unref, z as withCtx, A as createTextVNode, B as normalizeStyle, C as h, D as toRef, E as provide, G as mergeProps, H as cloneVNode, T as Text$2, I as withDirectives, J as watchEffect, K as shallowRef, L as vModelText, M as withKeys, N as reactive, O as readonly, P as Transition, Q as vShow, R as Comment, S as renderSlot, U as onActivated, V as Teleport, W as isVNode, X as onUnmounted } from "./vue-Bi1uWinj.es.js";
1
+ import { g as global$2, r as ref$1, c as createApp, a as computed, b as createElementBlock, o as openBlock, F as Fragment$1, d as renderList, n as normalizeClass, w as withModifiers, e as createCommentVNode, t as toDisplayString, f as createBaseVNode, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, q as getCurrentInstance, s as onDeactivated, u as nextTick, v as createBlock, x as createVNode, y as unref, z as withCtx, A as createTextVNode, B as normalizeStyle, C as h, D as toRef, E as provide, G as mergeProps, H as cloneVNode, T as Text$2, I as withDirectives, J as watchEffect, K as shallowRef, L as vModelText, M as withKeys, N as reactive, O as readonly, P as Transition, Q as vShow, R as Comment, S as renderSlot, U as onActivated, V as Teleport, W as isVNode, X as onUnmounted } from "./vue-BBJVqxjL.es.js";
2
2
  import * as Y from "yjs";
3
3
  import { UndoManager, Item as Item$2, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
4
4
  var __defProp$2 = Object.defineProperty;
@@ -24235,7 +24235,7 @@ const _SuperConverter = class _SuperConverter2 {
24235
24235
  return;
24236
24236
  }
24237
24237
  }
24238
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.4") {
24238
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.0-next.5") {
24239
24239
  const customLocation = "docProps/custom.xml";
24240
24240
  if (!docx[customLocation]) {
24241
24241
  docx[customLocation] = generateCustomXml();
@@ -24703,7 +24703,7 @@ function storeSuperdocVersion(docx) {
24703
24703
  function generateCustomXml() {
24704
24704
  return DEFAULT_CUSTOM_XML;
24705
24705
  }
24706
- function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.4") {
24706
+ function generateSuperdocVersion(pid = 2, version2 = "0.14.0-next.5") {
24707
24707
  return {
24708
24708
  type: "element",
24709
24709
  name: "property",
@@ -37501,7 +37501,8 @@ const restoreRelativeSelection = (tr, relSel, binding) => {
37501
37501
  binding.mapping
37502
37502
  );
37503
37503
  if (anchor !== null && head !== null) {
37504
- tr.setSelection(TextSelection.between(tr.doc.resolve(anchor), tr.doc.resolve(head)));
37504
+ const sel = TextSelection.between(tr.doc.resolve(anchor), tr.doc.resolve(head));
37505
+ tr.setSelection(sel);
37505
37506
  }
37506
37507
  }
37507
37508
  }
@@ -38282,7 +38283,7 @@ const setMeta = (view, key, value) => {
38282
38283
  };
38283
38284
  const absolutePositionToRelativePosition = (pos, type2, mapping) => {
38284
38285
  if (pos === 0) {
38285
- return Y.createRelativePositionFromTypeIndex(type2, 0, -1);
38286
+ return Y.createRelativePositionFromTypeIndex(type2, 0, type2.length === 0 ? -1 : 0);
38286
38287
  }
38287
38288
  let n = type2._first === null ? null : (
38288
38289
  /** @type {Y.ContentType} */
@@ -38291,7 +38292,7 @@ const absolutePositionToRelativePosition = (pos, type2, mapping) => {
38291
38292
  while (n !== null && type2 !== n) {
38292
38293
  if (n instanceof Y.XmlText) {
38293
38294
  if (n._length >= pos) {
38294
- return Y.createRelativePositionFromTypeIndex(n, pos, -1);
38295
+ return Y.createRelativePositionFromTypeIndex(n, pos, type2.length === 0 ? -1 : 0);
38295
38296
  } else {
38296
38297
  pos -= n._length;
38297
38298
  }
@@ -38355,7 +38356,7 @@ const absolutePositionToRelativePosition = (pos, type2, mapping) => {
38355
38356
  return createRelativePosition(n._item.parent, n._item);
38356
38357
  }
38357
38358
  }
38358
- return Y.createRelativePositionFromTypeIndex(type2, type2._length, -1);
38359
+ return Y.createRelativePositionFromTypeIndex(type2, type2._length, type2.length === 0 ? -1 : 0);
38359
38360
  };
38360
38361
  const createRelativePosition = (type2, item) => {
38361
38362
  let typeid = null;
@@ -41899,7 +41900,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41899
41900
  * @returns {Object | void} Migration results
41900
41901
  */
41901
41902
  processCollaborationMigrations() {
41902
- console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.4");
41903
+ console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.5");
41903
41904
  if (!this.options.ydoc) return;
41904
41905
  const metaMap = this.options.ydoc.getMap("meta");
41905
41906
  let docVersion = metaMap.get("version");
@@ -64863,7 +64864,6 @@ const style$2 = cB("icon", `
64863
64864
  display: inline-block;
64864
64865
  position: relative;
64865
64866
  fill: currentColor;
64866
- transform: translateZ(0);
64867
64867
  `, [cM("color-transition", {
64868
64868
  transition: "color .3s var(--n-bezier)"
64869
64869
  }), cM("depth", {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-BTAcmbVg.cjs");
3
- const xmlJs = require("./xml-js-BjqmFOSP.cjs");
2
+ const jszip = require("./jszip-9bCX1h2W.cjs");
3
+ const xmlJs = require("./xml-js-PTtx0UCg.cjs");
4
4
  const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
5
5
  var punycode$1 = { exports: {} };
6
6
  /*! https://mths.be/punycode v1.4.1 by @mathias */
@@ -1,5 +1,5 @@
1
- import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-DckFs3A7.es.js";
2
- import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-CfClL-1b.es.js";
1
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-Cl3s9njw.es.js";
2
+ import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-uhSaCX_L.es.js";
3
3
  import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
4
4
  var punycode$1 = { exports: {} };
5
5
  /*! https://mths.be/punycode v1.4.1 by @mathias */
@@ -162,7 +162,7 @@ process.umask = function() {
162
162
  var browserExports = browser.exports;
163
163
  const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
164
164
  /**
165
- * @vue/shared v3.5.16
165
+ * @vue/shared v3.5.17
166
166
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
167
167
  * @license MIT
168
168
  **/
@@ -787,6 +787,7 @@ class Link {
787
787
  }
788
788
  }
789
789
  class Dep {
790
+ // TODO isolatedDeclarations "__v_skip"
790
791
  constructor(computed2) {
791
792
  this.computed = computed2;
792
793
  this.version = 0;
@@ -795,6 +796,7 @@ class Dep {
795
796
  this.map = void 0;
796
797
  this.key = void 0;
797
798
  this.sc = 0;
799
+ this.__v_skip = true;
798
800
  if (!!(process$1.env.NODE_ENV !== "production")) {
799
801
  this.subsHead = void 0;
800
802
  }
@@ -5210,6 +5212,8 @@ const assignSlots = (slots, children, optimized) => {
5210
5212
  const initSlots = (instance, children, optimized) => {
5211
5213
  const slots = instance.slots = createInternalObject();
5212
5214
  if (instance.vnode.shapeFlag & 32) {
5215
+ const cacheIndexes = children.__;
5216
+ if (cacheIndexes) def(slots, "__", cacheIndexes, true);
5213
5217
  const type = children._;
5214
5218
  if (type) {
5215
5219
  assignSlots(slots, children, optimized);
@@ -5430,6 +5434,8 @@ function baseCreateRenderer(options, createHydrationFns) {
5430
5434
  }
5431
5435
  if (ref3 != null && parentComponent) {
5432
5436
  setRef(ref3, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
5437
+ } else if (ref3 == null && n1 && n1.ref != null) {
5438
+ setRef(n1.ref, null, parentSuspense, n1, true);
5433
5439
  }
5434
5440
  };
5435
5441
  const processText = (n1, n2, container, anchor) => {
@@ -5968,7 +5974,8 @@ function baseCreateRenderer(options, createHydrationFns) {
5968
5974
  }
5969
5975
  toggleRecurse(instance, true);
5970
5976
  {
5971
- if (root.ce) {
5977
+ if (root.ce && // @ts-expect-error _def is private
5978
+ root.ce._def.shadowRoot !== false) {
5972
5979
  root.ce._injectChildStyle(type);
5973
5980
  }
5974
5981
  if (!!(process$1.env.NODE_ENV !== "production")) {
@@ -8333,7 +8340,7 @@ function initCustomFormatter() {
8333
8340
  window.devtoolsFormatters = [formatter];
8334
8341
  }
8335
8342
  }
8336
- const version = "3.5.16";
8343
+ const version = "3.5.17";
8337
8344
  const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8338
8345
  !!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
8339
8346
  !!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
@@ -163,7 +163,7 @@ process.umask = function() {
163
163
  var browserExports = browser.exports;
164
164
  const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
165
165
  /**
166
- * @vue/shared v3.5.16
166
+ * @vue/shared v3.5.17
167
167
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
168
168
  * @license MIT
169
169
  **/
@@ -788,6 +788,7 @@ class Link {
788
788
  }
789
789
  }
790
790
  class Dep {
791
+ // TODO isolatedDeclarations "__v_skip"
791
792
  constructor(computed2) {
792
793
  this.computed = computed2;
793
794
  this.version = 0;
@@ -796,6 +797,7 @@ class Dep {
796
797
  this.map = void 0;
797
798
  this.key = void 0;
798
799
  this.sc = 0;
800
+ this.__v_skip = true;
799
801
  if (!!(process$1.env.NODE_ENV !== "production")) {
800
802
  this.subsHead = void 0;
801
803
  }
@@ -5211,6 +5213,8 @@ const assignSlots = (slots, children, optimized) => {
5211
5213
  const initSlots = (instance, children, optimized) => {
5212
5214
  const slots = instance.slots = createInternalObject();
5213
5215
  if (instance.vnode.shapeFlag & 32) {
5216
+ const cacheIndexes = children.__;
5217
+ if (cacheIndexes) def(slots, "__", cacheIndexes, true);
5214
5218
  const type = children._;
5215
5219
  if (type) {
5216
5220
  assignSlots(slots, children, optimized);
@@ -5431,6 +5435,8 @@ function baseCreateRenderer(options, createHydrationFns) {
5431
5435
  }
5432
5436
  if (ref3 != null && parentComponent) {
5433
5437
  setRef(ref3, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
5438
+ } else if (ref3 == null && n1 && n1.ref != null) {
5439
+ setRef(n1.ref, null, parentSuspense, n1, true);
5434
5440
  }
5435
5441
  };
5436
5442
  const processText = (n1, n2, container, anchor) => {
@@ -5969,7 +5975,8 @@ function baseCreateRenderer(options, createHydrationFns) {
5969
5975
  }
5970
5976
  toggleRecurse(instance, true);
5971
5977
  {
5972
- if (root.ce) {
5978
+ if (root.ce && // @ts-expect-error _def is private
5979
+ root.ce._def.shadowRoot !== false) {
5973
5980
  root.ce._injectChildStyle(type);
5974
5981
  }
5975
5982
  if (!!(process$1.env.NODE_ENV !== "production")) {
@@ -8334,7 +8341,7 @@ function initCustomFormatter() {
8334
8341
  window.devtoolsFormatters = [formatter];
8335
8342
  }
8336
8343
  }
8337
- const version = "3.5.16";
8344
+ const version = "3.5.17";
8338
8345
  const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8339
8346
  !!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
8340
8347
  !!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-BTAcmbVg.cjs");
3
- const vue = require("./vue-HIY1g7dm.cjs");
2
+ const jszip = require("./jszip-9bCX1h2W.cjs");
3
+ const vue = require("./vue-BBjMeYfo.cjs");
4
4
  var inherits_browser = { exports: {} };
5
5
  if (typeof Object.create === "function") {
6
6
  inherits_browser.exports = function inherits(ctor, superCtor) {
@@ -1,5 +1,5 @@
1
- import { a as getAugmentedNamespace, d as dist, c as commonjsGlobal } from "./jszip-DckFs3A7.es.js";
2
- import { p as process$1 } from "./vue-Bi1uWinj.es.js";
1
+ import { a as getAugmentedNamespace, d as dist, c as commonjsGlobal } from "./jszip-Cl3s9njw.es.js";
2
+ import { p as process$1 } from "./vue-BBJVqxjL.es.js";
3
3
  var inherits_browser = { exports: {} };
4
4
  if (typeof Object.create === "function") {
5
5
  inherits_browser.exports = function inherits(ctor, superCtor) {
@@ -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-DjWoCkni.js";
3
- import { _ as _export_sfc } from "./chunks/editor-BY9zLJjg.js";
2
+ import { T as TextSelection } from "./chunks/converter-3dVTYXnm.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-NHY1ApZn.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 = {}) {
@@ -24254,7 +24254,7 @@ const _SuperConverter = class _SuperConverter {
24254
24254
  return;
24255
24255
  }
24256
24256
  }
24257
- static updateDocumentVersion(docx = this.convertedXml, version = "0.14.0-next.4") {
24257
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.14.0-next.5") {
24258
24258
  const customLocation = "docProps/custom.xml";
24259
24259
  if (!docx[customLocation]) {
24260
24260
  docx[customLocation] = generateCustomXml();
@@ -24725,7 +24725,7 @@ function storeSuperdocVersion(docx) {
24725
24725
  function generateCustomXml() {
24726
24726
  return DEFAULT_CUSTOM_XML;
24727
24727
  }
24728
- function generateSuperdocVersion(pid = 2, version = "0.14.0-next.4") {
24728
+ function generateSuperdocVersion(pid = 2, version = "0.14.0-next.5") {
24729
24729
  return {
24730
24730
  type: "element",
24731
24731
  name: "property",
@@ -1,4 +1,4 @@
1
- import { C as process$1, aa as commonjsGlobal, E as Buffer, ab as getDefaultExportFromCjs, ac as getContentTypesFromXml, ad as xmljs } from "./converter-DjWoCkni.js";
1
+ import { C as process$1, aa as commonjsGlobal, E as Buffer, ab as getDefaultExportFromCjs, ac as getContentTypesFromXml, ad as xmljs } from "./converter-3dVTYXnm.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, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _ListItemNodeView_instances, init_fn2, _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 generateDocxRandomId, p as minMax, q as chainableEditorState, s as generateRandom32BitHex, t as getStyleTagFromStyleId, u as getAbstractDefinition, v as getDefinitionForLevel, w as isMacOS, x as isIOS, y as DOMSerializer, z as Mark$1, B as dropPoint, C as process$1, E as Buffer2, G as inputRulesPlugin, H as TrackDeleteMarkName, I as TrackInsertMarkName, J as v4, K as TrackFormatMarkName, L as comments_module_events, O as AddMarkStep, Q as RemoveMarkStep, U as twipsToLines, V as pixelsToTwips, W as CommandService, X as SuperConverter, Y as EditorState, Z as hasSomeParentWithClass, _ as parseSizeUnit, $ as getLineHeightValueString, a0 as InputRule, a1 as toKebabCase, a2 as kebabCase, a3 as docxNumberigHelpers, a4 as parseIndentElement, a5 as combineIndents, a6 as getColStyleDeclaration, a7 as SelectionRange, a8 as Transform, a9 as createColGroup } from "./converter-DjWoCkni.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 generateDocxRandomId, p as minMax, q as chainableEditorState, s as generateRandom32BitHex, t as getStyleTagFromStyleId, u as getAbstractDefinition, v as getDefinitionForLevel, w as isMacOS, x as isIOS, y as DOMSerializer, z as Mark$1, B as dropPoint, C as process$1, E as Buffer2, G as inputRulesPlugin, H as TrackDeleteMarkName, I as TrackInsertMarkName, J as v4, K as TrackFormatMarkName, L as comments_module_events, O as AddMarkStep, Q as RemoveMarkStep, U as twipsToLines, V as pixelsToTwips, W as CommandService, X as SuperConverter, Y as EditorState, Z as hasSomeParentWithClass, _ as parseSizeUnit, $ as getLineHeightValueString, a0 as InputRule, a1 as toKebabCase, a2 as kebabCase, a3 as docxNumberigHelpers, a4 as parseIndentElement, a5 as combineIndents, a6 as getColStyleDeclaration, a7 as SelectionRange, a8 as Transform, a9 as createColGroup } from "./converter-3dVTYXnm.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-CpyrpKcO.js";
17
+ import { D as DocxZipper } from "./docx-zipper-CAF6BgPQ.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -10279,7 +10279,8 @@ const restoreRelativeSelection = (tr, relSel, binding) => {
10279
10279
  binding.mapping
10280
10280
  );
10281
10281
  if (anchor !== null && head !== null) {
10282
- tr.setSelection(TextSelection.between(tr.doc.resolve(anchor), tr.doc.resolve(head)));
10282
+ const sel = TextSelection.between(tr.doc.resolve(anchor), tr.doc.resolve(head));
10283
+ tr.setSelection(sel);
10283
10284
  }
10284
10285
  }
10285
10286
  }
@@ -11060,7 +11061,7 @@ const setMeta = (view, key, value) => {
11060
11061
  };
11061
11062
  const absolutePositionToRelativePosition = (pos, type, mapping) => {
11062
11063
  if (pos === 0) {
11063
- return Y.createRelativePositionFromTypeIndex(type, 0, -1);
11064
+ return Y.createRelativePositionFromTypeIndex(type, 0, type.length === 0 ? -1 : 0);
11064
11065
  }
11065
11066
  let n = type._first === null ? null : (
11066
11067
  /** @type {Y.ContentType} */
@@ -11069,7 +11070,7 @@ const absolutePositionToRelativePosition = (pos, type, mapping) => {
11069
11070
  while (n !== null && type !== n) {
11070
11071
  if (n instanceof Y.XmlText) {
11071
11072
  if (n._length >= pos) {
11072
- return Y.createRelativePositionFromTypeIndex(n, pos, -1);
11073
+ return Y.createRelativePositionFromTypeIndex(n, pos, type.length === 0 ? -1 : 0);
11073
11074
  } else {
11074
11075
  pos -= n._length;
11075
11076
  }
@@ -11133,7 +11134,7 @@ const absolutePositionToRelativePosition = (pos, type, mapping) => {
11133
11134
  return createRelativePosition(n._item.parent, n._item);
11134
11135
  }
11135
11136
  }
11136
- return Y.createRelativePositionFromTypeIndex(type, type._length, -1);
11137
+ return Y.createRelativePositionFromTypeIndex(type, type._length, type.length === 0 ? -1 : 0);
11137
11138
  };
11138
11139
  const createRelativePosition = (type, item) => {
11139
11140
  let typeid = null;
@@ -14714,7 +14715,7 @@ const _Editor = class _Editor extends EventEmitter {
14714
14715
  * @returns {Object | void} Migration results
14715
14716
  */
14716
14717
  processCollaborationMigrations() {
14717
- console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.4");
14718
+ console.debug("[checkVersionMigrations] Current editor version", "0.14.0-next.5");
14718
14719
  if (!this.options.ydoc) return;
14719
14720
  const metaMap = this.options.ydoc.getMap("meta");
14720
14721
  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 { C as process$1 } from "./converter-DjWoCkni.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BY9zLJjg.js";
2
+ import { C as process$1 } from "./converter-3dVTYXnm.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-NHY1ApZn.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -8568,7 +8568,6 @@ const style$2 = cB("icon", `
8568
8568
  display: inline-block;
8569
8569
  position: relative;
8570
8570
  fill: currentColor;
8571
- transform: translateZ(0);
8572
8571
  `, [cM("color-transition", {
8573
8572
  transition: "color .3s var(--n-bezier)"
8574
8573
  }), cM("depth", {
@@ -1,4 +1,4 @@
1
- import { X } from "./chunks/converter-DjWoCkni.js";
1
+ import { X } from "./chunks/converter-3dVTYXnm.js";
2
2
  export {
3
3
  X as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-DjWoCkni.js";
2
- import { D } from "./chunks/docx-zipper-CpyrpKcO.js";
1
+ import "./chunks/converter-3dVTYXnm.js";
2
+ import { D } from "./chunks/docx-zipper-CAF6BgPQ.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-BY9zLJjg.js";
2
- import "./chunks/converter-DjWoCkni.js";
3
- import "./chunks/docx-zipper-CpyrpKcO.js";
1
+ import { E } from "./chunks/editor-NHY1ApZn.js";
2
+ import "./chunks/converter-3dVTYXnm.js";
3
+ import "./chunks/docx-zipper-CAF6BgPQ.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-CpyrpKcO.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-CAF6BgPQ.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 { ab as getDefaultExportFromCjs, J as v4, ae as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-DjWoCkni.js";
13
- import { X } from "./chunks/converter-DjWoCkni.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-BY9zLJjg.js";
15
- import { o, C, T, m, q, p, l, n } from "./chunks/editor-BY9zLJjg.js";
12
+ import { ab as getDefaultExportFromCjs, J as v4, ae as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-3dVTYXnm.js";
13
+ import { X } from "./chunks/converter-3dVTYXnm.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-NHY1ApZn.js";
15
+ import { o, C, T, m, q, p, l, n } from "./chunks/editor-NHY1ApZn.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-BrTH3DZU.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-Dr1wHywT.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-CpyrpKcO.js";
19
+ import { D } from "./chunks/docx-zipper-CAF6BgPQ.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-BrTH3DZU.js";
3
- import "./chunks/editor-BY9zLJjg.js";
2
+ import { T } from "./chunks/toolbar-Dr1wHywT.js";
3
+ import "./chunks/editor-NHY1ApZn.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-DyUoKmkO.cjs");
4
- require("./chunks/vue-HIY1g7dm.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-1V_Ac-SF.cjs");
4
+ require("./chunks/vue-BBjMeYfo.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
7
7
  exports.BasicUpload = superEditor_es._sfc_main$1;
@@ -1,5 +1,5 @@
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-BpHrUdJQ.es.js";
2
- import "./chunks/vue-Bi1uWinj.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-CS08WNwP.es.js";
2
+ import "./chunks/vue-BBJVqxjL.es.js";
3
3
  export {
4
4
  A as AIWriter,
5
5
  a as AnnotatorHelpers,