@harbour-enterprises/superdoc 0.15.2-next.4 → 0.15.2-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.
@@ -26327,6 +26327,11 @@ function translateImageNode(params2, imageSize) {
26327
26327
  name: "wp:wrapTopAndBottom"
26328
26328
  });
26329
26329
  }
26330
+ if (attrs.isAnchor && !wrapProp.length) {
26331
+ wrapProp.push({
26332
+ name: "wp:wrapNone"
26333
+ });
26334
+ }
26330
26335
  }
26331
26336
  const drawingXmlns = "http://schemas.openxmlformats.org/drawingml/2006/main";
26332
26337
  const pictureXmlns = "http://schemas.openxmlformats.org/drawingml/2006/picture";
@@ -28724,7 +28729,7 @@ const _SuperConverter = class _SuperConverter2 {
28724
28729
  return;
28725
28730
  }
28726
28731
  }
28727
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.2-next.4") {
28732
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.2-next.5") {
28728
28733
  const customLocation = "docProps/custom.xml";
28729
28734
  if (!docx[customLocation]) {
28730
28735
  docx[customLocation] = generateCustomXml();
@@ -29202,7 +29207,7 @@ function storeSuperdocVersion(docx) {
29202
29207
  function generateCustomXml() {
29203
29208
  return DEFAULT_CUSTOM_XML;
29204
29209
  }
29205
- function generateSuperdocVersion(pid = 2, version2 = "0.15.2-next.4") {
29210
+ function generateSuperdocVersion(pid = 2, version2 = "0.15.2-next.5") {
29206
29211
  return {
29207
29212
  type: "element",
29208
29213
  name: "property",
@@ -31658,7 +31663,7 @@ class DocxZipper {
31658
31663
  if (!hasCommentsExtensible) typesString += commentsExtendedDef;
31659
31664
  }
31660
31665
  Object.keys(docx.files).forEach((name) => {
31661
- if (!name.includes("header") && !name.includes("footer")) return;
31666
+ if (name.includes(".rels") || !name.includes("header") && !name.includes("footer")) return;
31662
31667
  const hasExtensible = types2.elements?.some(
31663
31668
  (el) => el.name === "Override" && el.attributes.PartName === `/${name}`
31664
31669
  );
@@ -45326,7 +45331,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
45326
45331
  * @returns {Object | void} Migration results
45327
45332
  */
45328
45333
  processCollaborationMigrations() {
45329
- console.debug("[checkVersionMigrations] Current editor version", "0.15.2-next.4");
45334
+ console.debug("[checkVersionMigrations] Current editor version", "0.15.2-next.5");
45330
45335
  if (!this.options.ydoc) return;
45331
45336
  const metaMap = this.options.ydoc.getMap("meta");
45332
45337
  let docVersion = metaMap.get("version");
@@ -26310,6 +26310,11 @@ function translateImageNode(params2, imageSize) {
26310
26310
  name: "wp:wrapTopAndBottom"
26311
26311
  });
26312
26312
  }
26313
+ if (attrs.isAnchor && !wrapProp.length) {
26314
+ wrapProp.push({
26315
+ name: "wp:wrapNone"
26316
+ });
26317
+ }
26313
26318
  }
26314
26319
  const drawingXmlns = "http://schemas.openxmlformats.org/drawingml/2006/main";
26315
26320
  const pictureXmlns = "http://schemas.openxmlformats.org/drawingml/2006/picture";
@@ -28707,7 +28712,7 @@ const _SuperConverter = class _SuperConverter2 {
28707
28712
  return;
28708
28713
  }
28709
28714
  }
28710
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.2-next.4") {
28715
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.2-next.5") {
28711
28716
  const customLocation = "docProps/custom.xml";
28712
28717
  if (!docx[customLocation]) {
28713
28718
  docx[customLocation] = generateCustomXml();
@@ -29185,7 +29190,7 @@ function storeSuperdocVersion(docx) {
29185
29190
  function generateCustomXml() {
29186
29191
  return DEFAULT_CUSTOM_XML;
29187
29192
  }
29188
- function generateSuperdocVersion(pid = 2, version2 = "0.15.2-next.4") {
29193
+ function generateSuperdocVersion(pid = 2, version2 = "0.15.2-next.5") {
29189
29194
  return {
29190
29195
  type: "element",
29191
29196
  name: "property",
@@ -31641,7 +31646,7 @@ class DocxZipper {
31641
31646
  if (!hasCommentsExtensible) typesString += commentsExtendedDef;
31642
31647
  }
31643
31648
  Object.keys(docx.files).forEach((name) => {
31644
- if (!name.includes("header") && !name.includes("footer")) return;
31649
+ if (name.includes(".rels") || !name.includes("header") && !name.includes("footer")) return;
31645
31650
  const hasExtensible = types2.elements?.some(
31646
31651
  (el) => el.name === "Override" && el.attributes.PartName === `/${name}`
31647
31652
  );
@@ -45309,7 +45314,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
45309
45314
  * @returns {Object | void} Migration results
45310
45315
  */
45311
45316
  processCollaborationMigrations() {
45312
- console.debug("[checkVersionMigrations] Current editor version", "0.15.2-next.4");
45317
+ console.debug("[checkVersionMigrations] Current editor version", "0.15.2-next.5");
45313
45318
  if (!this.options.ydoc) return;
45314
45319
  const metaMap = this.options.ydoc.getMap("meta");
45315
45320
  let docVersion = metaMap.get("version");
@@ -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-CoKb5h0j.js";
3
- import { _ as _export_sfc } from "./chunks/editor-Bby3BVH9.js";
2
+ import { T as TextSelection } from "./chunks/converter-D6sgXJx4.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-CX2MVIj6.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 = {}) {
@@ -26308,6 +26308,11 @@ function translateImageNode(params, imageSize) {
26308
26308
  name: "wp:wrapTopAndBottom"
26309
26309
  });
26310
26310
  }
26311
+ if (attrs.isAnchor && !wrapProp.length) {
26312
+ wrapProp.push({
26313
+ name: "wp:wrapNone"
26314
+ });
26315
+ }
26311
26316
  }
26312
26317
  const drawingXmlns = "http://schemas.openxmlformats.org/drawingml/2006/main";
26313
26318
  const pictureXmlns = "http://schemas.openxmlformats.org/drawingml/2006/picture";
@@ -28705,7 +28710,7 @@ const _SuperConverter = class _SuperConverter {
28705
28710
  return;
28706
28711
  }
28707
28712
  }
28708
- static updateDocumentVersion(docx = this.convertedXml, version = "0.15.2-next.4") {
28713
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.15.2-next.5") {
28709
28714
  const customLocation = "docProps/custom.xml";
28710
28715
  if (!docx[customLocation]) {
28711
28716
  docx[customLocation] = generateCustomXml();
@@ -29186,7 +29191,7 @@ function storeSuperdocVersion(docx) {
29186
29191
  function generateCustomXml() {
29187
29192
  return DEFAULT_CUSTOM_XML;
29188
29193
  }
29189
- function generateSuperdocVersion(pid = 2, version = "0.15.2-next.4") {
29194
+ function generateSuperdocVersion(pid = 2, version = "0.15.2-next.5") {
29190
29195
  return {
29191
29196
  type: "element",
29192
29197
  name: "property",
@@ -1,4 +1,4 @@
1
- import { H as process$1, at as commonjsGlobal, I as Buffer, au as getDefaultExportFromCjs, av as getContentTypesFromXml, aw as xmljs } from "./converter-CoKb5h0j.js";
1
+ import { H as process$1, at as commonjsGlobal, I as Buffer, au as getDefaultExportFromCjs, av as getContentTypesFromXml, aw as xmljs } from "./converter-D6sgXJx4.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
  }
@@ -2432,7 +2432,7 @@ class DocxZipper {
2432
2432
  if (!hasCommentsExtensible) typesString += commentsExtendedDef;
2433
2433
  }
2434
2434
  Object.keys(docx.files).forEach((name) => {
2435
- if (!name.includes("header") && !name.includes("footer")) return;
2435
+ if (name.includes(".rels") || !name.includes("header") && !name.includes("footer")) return;
2436
2436
  const hasExtensible = types.elements?.some(
2437
2437
  (el) => el.name === "Override" && el.attributes.PartName === `/${name}`
2438
2438
  );
@@ -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, _ListItemNodeView_instances, init_fn2, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn, _DocumentSectionView_instances, init_fn3, addToolTip_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, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, i as canSplit, l as liftTarget, A as AllSelection, j as canJoin, k as joinPoint, N as NodeSelection, m as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, n as Slice, o as defaultBlockAt$1, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, y as findParentNode, L as ListHelpers, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as findParentNodeClosestToPos, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as EditorState, a8 as hasSomeParentWithClass, a9 as isActive, aa as unflattenListsInHtml, ab as parseSizeUnit, ac as minMax, ad as getLineHeightValueString, ae as InputRule, af as kebabCase, ag as generateOrderedListIndex, ah as getListItemStyleDefinitions, ai as docxNumberigHelpers, aj as parseIndentElement, ak as combineIndents, al as getColStyleDeclaration, am as SelectionRange, an as Transform, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId, ar as SectionHelpers, as as htmlHandler } from "./converter-CoKb5h0j.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, i as canSplit, l as liftTarget, A as AllSelection, j as canJoin, k as joinPoint, N as NodeSelection, m as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, n as Slice, o as defaultBlockAt$1, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, y as findParentNode, L as ListHelpers, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as findParentNodeClosestToPos, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as EditorState, a8 as hasSomeParentWithClass, a9 as isActive, aa as unflattenListsInHtml, ab as parseSizeUnit, ac as minMax, ad as getLineHeightValueString, ae as InputRule, af as kebabCase, ag as generateOrderedListIndex, ah as getListItemStyleDefinitions, ai as docxNumberigHelpers, aj as parseIndentElement, ak as combineIndents, al as getColStyleDeclaration, am as SelectionRange, an as Transform, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId, ar as SectionHelpers, as as htmlHandler } from "./converter-D6sgXJx4.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-CidEchkw.js";
17
+ import { D as DocxZipper } from "./docx-zipper-CoSnsSfA.js";
18
18
  var GOOD_LEAF_SIZE = 200;
19
19
  var RopeSequence = function RopeSequence2() {
20
20
  };
@@ -13626,7 +13626,7 @@ const _Editor = class _Editor extends EventEmitter {
13626
13626
  * @returns {Object | void} Migration results
13627
13627
  */
13628
13628
  processCollaborationMigrations() {
13629
- console.debug("[checkVersionMigrations] Current editor version", "0.15.2-next.4");
13629
+ console.debug("[checkVersionMigrations] Current editor version", "0.15.2-next.5");
13630
13630
  if (!this.options.ydoc) return;
13631
13631
  const metaMap = this.options.ydoc.getMap("meta");
13632
13632
  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, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { H as process$1 } from "./converter-CoKb5h0j.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Bby3BVH9.js";
2
+ import { H as process$1 } from "./converter-D6sgXJx4.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CX2MVIj6.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 { a5 } from "./chunks/converter-CoKb5h0j.js";
1
+ import { a5 } from "./chunks/converter-D6sgXJx4.js";
2
2
  export {
3
3
  a5 as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DocxZipper.d.ts","sourceRoot":"","sources":["../../src/core/DocxZipper.js"],"names":[],"mappings":";AAIA;;GAEG;AACH;IACE,yBAOC;IANC,WAAkC;IAClC,SAAsB;IACtB,aAAe;IACf,UAAe;IACf,eAAoB;IACpB,UAAe;IAGjB;;;;;;;;;;;;;;;;;SAiBK;IACL,yDAyCC;IAED,qCAEC;IAED;;OAEG;IACH,uEAmFC;IAED,+BAGC;IAED;;;;;;;qBAaC;IAED;;;;;OAKG;IACH,kFAFa,OAAO,CAAC,KAAK,CAAC,CA6B1B;IAED;;;;;;OAMG;IACH,yCAJW,IAAI,iCAEF,OAAO,CAAC,KAAK,CAAC,CAyB1B;CACF"}
1
+ {"version":3,"file":"DocxZipper.d.ts","sourceRoot":"","sources":["../../src/core/DocxZipper.js"],"names":[],"mappings":";AAIA;;GAEG;AACH;IACE,yBAOC;IANC,WAAkC;IAClC,SAAsB;IACtB,aAAe;IACf,UAAe;IACf,eAAoB;IACpB,UAAe;IAGjB;;;;;;;;;;;;;;;;;SAiBK;IACL,yDAyCC;IAED,qCAEC;IAED;;OAEG;IACH,uEAqFC;IAED,+BAGC;IAED;;;;;;;qBAaC;IAED;;;;;OAKG;IACH,kFAFa,OAAO,CAAC,KAAK,CAAC,CA6B1B;IAED;;;;;;OAMG;IACH,yCAJW,IAAI,iCAEF,OAAO,CAAC,KAAK,CAAC,CAyB1B;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AA0BA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAyCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB;AAojED;;;;;;;;;EAgBC;AAyFD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBAv5Ea,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
1
+ {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AA0BA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAyCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB;AA2jED;;;;;;;;;EAgBC;AAyFD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBA95Ea,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-CoKb5h0j.js";
2
- import { D } from "./chunks/docx-zipper-CidEchkw.js";
1
+ import "./chunks/converter-D6sgXJx4.js";
2
+ import { D } from "./chunks/docx-zipper-CoSnsSfA.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-Bby3BVH9.js";
2
- import "./chunks/converter-CoKb5h0j.js";
3
- import "./chunks/docx-zipper-CidEchkw.js";
1
+ import { E } from "./chunks/editor-CX2MVIj6.js";
2
+ import "./chunks/converter-D6sgXJx4.js";
3
+ import "./chunks/docx-zipper-CoSnsSfA.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-CidEchkw.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-CoSnsSfA.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 { au as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, ax as vClickOutside, y as findParentNode, ay as getActiveFormatting, ao as isInTable, az as readFromClipboard, aA as handleClipboardPaste, a as Plugin } from "./chunks/converter-CoKb5h0j.js";
13
- import { ar, a5, d, a2 } from "./chunks/converter-CoKb5h0j.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-Bby3BVH9.js";
15
- import { k, C, T, i, l, j } from "./chunks/editor-Bby3BVH9.js";
12
+ import { au as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, ax as vClickOutside, y as findParentNode, ay as getActiveFormatting, ao as isInTable, az as readFromClipboard, aA as handleClipboardPaste, a as Plugin } from "./chunks/converter-D6sgXJx4.js";
13
+ import { ar, a5, d, a2 } from "./chunks/converter-D6sgXJx4.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-CX2MVIj6.js";
15
+ import { k, C, T, i, l, j } from "./chunks/editor-CX2MVIj6.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, N as NSkeleton } from "./chunks/toolbar-CMUe2lho.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, N as NSkeleton } from "./chunks/toolbar-BPKiyr9O.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-CidEchkw.js";
19
+ import { D } from "./chunks/docx-zipper-CoSnsSfA.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-CMUe2lho.js";
3
- import "./chunks/editor-Bby3BVH9.js";
2
+ import { T } from "./chunks/toolbar-BPKiyr9O.js";
3
+ import "./chunks/editor-CX2MVIj6.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-DwT8MS99.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-BFVuhii0.cjs");
4
4
  require("./chunks/vue-CfKg12kH.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, f, g, T, h, i, j, k, l, m, n, o, p, q } from "./chunks/super-editor.es-CuVy6ByB.es.js";
1
+ import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, q } from "./chunks/super-editor.es-BUyxwCW8.es.js";
2
2
  import "./chunks/vue-B_OPNNfX.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-DwT8MS99.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-BFVuhii0.cjs");
4
4
  const vue = require("./chunks/vue-CfKg12kH.cjs");
5
5
  const jszip = require("./chunks/jszip-DWfnW2xV.cjs");
6
6
  const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
@@ -47818,7 +47818,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
47818
47818
  this.config.colors = shuffleArray(this.config.colors);
47819
47819
  this.userColorMap = /* @__PURE__ */ new Map();
47820
47820
  this.colorIndex = 0;
47821
- this.version = "0.15.2-next.4";
47821
+ this.version = "0.15.2-next.5";
47822
47822
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
47823
47823
  this.superdocId = config.superdocId || uuid.v4();
47824
47824
  this.colors = this.config.colors;
@@ -1,5 +1,5 @@
1
- import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./chunks/super-editor.es-CuVy6ByB.es.js";
2
- import { a, S, d, j, p } from "./chunks/super-editor.es-CuVy6ByB.es.js";
1
+ import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./chunks/super-editor.es-BUyxwCW8.es.js";
2
+ import { a, S, d, j, p } from "./chunks/super-editor.es-BUyxwCW8.es.js";
3
3
  import { a0 as effectScope, r as ref, $ as markRaw, p as process$1, a1 as toRaw, a as computed, a2 as isRef, a3 as isReactive, D as toRef, i as inject, q as getCurrentInstance, l as watch, y as unref, a4 as hasInjectionContext, N as reactive, u as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 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, a8 as resolveDirective, d as renderList, c as createApp, X as onUnmounted, Y as resolveDynamicComponent } from "./chunks/vue-B_OPNNfX.es.js";
4
4
  import { B as Buffer$2 } from "./chunks/jszip-BwJb6_S5.es.js";
5
5
  import { B as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.es.js";
@@ -47801,7 +47801,7 @@ class SuperDoc extends EventEmitter {
47801
47801
  this.config.colors = shuffleArray(this.config.colors);
47802
47802
  this.userColorMap = /* @__PURE__ */ new Map();
47803
47803
  this.colorIndex = 0;
47804
- this.version = "0.15.2-next.4";
47804
+ this.version = "0.15.2-next.5";
47805
47805
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
47806
47806
  this.superdocId = config.superdocId || v4();
47807
47807
  this.colors = this.config.colors;
@@ -33705,6 +33705,11 @@
33705
33705
  name: "wp:wrapTopAndBottom"
33706
33706
  });
33707
33707
  }
33708
+ if (attrs.isAnchor && !wrapProp.length) {
33709
+ wrapProp.push({
33710
+ name: "wp:wrapNone"
33711
+ });
33712
+ }
33708
33713
  }
33709
33714
  const drawingXmlns = "http://schemas.openxmlformats.org/drawingml/2006/main";
33710
33715
  const pictureXmlns = "http://schemas.openxmlformats.org/drawingml/2006/picture";
@@ -36102,7 +36107,7 @@
36102
36107
  return;
36103
36108
  }
36104
36109
  }
36105
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.2-next.4") {
36110
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.2-next.5") {
36106
36111
  const customLocation = "docProps/custom.xml";
36107
36112
  if (!docx[customLocation]) {
36108
36113
  docx[customLocation] = generateCustomXml();
@@ -36580,7 +36585,7 @@
36580
36585
  function generateCustomXml() {
36581
36586
  return DEFAULT_CUSTOM_XML;
36582
36587
  }
36583
- function generateSuperdocVersion(pid = 2, version2 = "0.15.2-next.4") {
36588
+ function generateSuperdocVersion(pid = 2, version2 = "0.15.2-next.5") {
36584
36589
  return {
36585
36590
  type: "element",
36586
36591
  name: "property",
@@ -39036,7 +39041,7 @@
39036
39041
  if (!hasCommentsExtensible) typesString += commentsExtendedDef;
39037
39042
  }
39038
39043
  Object.keys(docx.files).forEach((name) => {
39039
- if (!name.includes("header") && !name.includes("footer")) return;
39044
+ if (name.includes(".rels") || !name.includes("header") && !name.includes("footer")) return;
39040
39045
  const hasExtensible = types2.elements?.some(
39041
39046
  (el) => el.name === "Override" && el.attributes.PartName === `/${name}`
39042
39047
  );
@@ -52704,7 +52709,7 @@
52704
52709
  * @returns {Object | void} Migration results
52705
52710
  */
52706
52711
  processCollaborationMigrations() {
52707
- console.debug("[checkVersionMigrations] Current editor version", "0.15.2-next.4");
52712
+ console.debug("[checkVersionMigrations] Current editor version", "0.15.2-next.5");
52708
52713
  if (!this.options.ydoc) return;
52709
52714
  const metaMap = this.options.ydoc.getMap("meta");
52710
52715
  let docVersion = metaMap.get("version");
@@ -99112,7 +99117,7 @@ ${style2}
99112
99117
  this.config.colors = shuffleArray(this.config.colors);
99113
99118
  this.userColorMap = /* @__PURE__ */ new Map();
99114
99119
  this.colorIndex = 0;
99115
- this.version = "0.15.2-next.4";
99120
+ this.version = "0.15.2-next.5";
99116
99121
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
99117
99122
  this.superdocId = config.superdocId || v4();
99118
99123
  this.colors = this.config.colors;