@harbour-enterprises/superdoc 0.13.0-next.4 → 0.13.0-next.6

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.
@@ -23410,7 +23410,7 @@ const _SuperConverter = class _SuperConverter2 {
23410
23410
  return;
23411
23411
  }
23412
23412
  }
23413
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.0-next.4") {
23413
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.0-next.6") {
23414
23414
  const customLocation = "docProps/custom.xml";
23415
23415
  if (!docx[customLocation]) {
23416
23416
  docx[customLocation] = generateCustomXml();
@@ -23877,7 +23877,7 @@ function storeSuperdocVersion(docx) {
23877
23877
  function generateCustomXml() {
23878
23878
  return DEFAULT_CUSTOM_XML;
23879
23879
  }
23880
- function generateSuperdocVersion(pid = 2, version2 = "0.13.0-next.4") {
23880
+ function generateSuperdocVersion(pid = 2, version2 = "0.13.0-next.6") {
23881
23881
  return {
23882
23882
  type: "element",
23883
23883
  name: "property",
@@ -40681,7 +40681,9 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
40681
40681
  // async (file) => url;
40682
40682
  handleImageUpload: null,
40683
40683
  // telemetry
40684
- telemetry: null
40684
+ telemetry: null,
40685
+ // Docx xml updated by User
40686
+ customUpdatedFiles: {}
40685
40687
  });
40686
40688
  __privateMethod$1(this, _Editor_instances, initContainerElement_fn).call(this, options2);
40687
40689
  __privateMethod$1(this, _Editor_instances, checkHeadless_fn).call(this, options2);
@@ -41187,6 +41189,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41187
41189
  const numberingData = this.converter.convertedXml["word/numbering.xml"];
41188
41190
  const numbering = this.converter.schemaToXml(numberingData.elements[0]);
41189
41191
  const updatedDocs = {
41192
+ ...this.options.customUpdatedFiles,
41190
41193
  "word/document.xml": String(documentXml),
41191
41194
  "docProps/custom.xml": String(customXml),
41192
41195
  "word/settings.xml": String(customSettings),
@@ -41254,7 +41257,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41254
41257
  * @returns {Object | void} Migration results
41255
41258
  */
41256
41259
  processCollaborationMigrations() {
41257
- console.debug("[checkVersionMigrations] Current editor version", "0.13.0-next.4");
41260
+ console.debug("[checkVersionMigrations] Current editor version", "0.13.0-next.6");
41258
41261
  if (!this.options.ydoc) return;
41259
41262
  const metaMap = this.options.ydoc.getMap("meta");
41260
41263
  let docVersion = metaMap.get("version");
@@ -41307,6 +41310,35 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41307
41310
  __privateMethod$1(this, _Editor_instances, initComments_fn).call(this);
41308
41311
  }
41309
41312
  }
41313
+ /**
41314
+ * Get internal docx file content
41315
+ * @param {string} name - File name
41316
+ * @param {string} type - type of result (json, string)
41317
+ * @returns {Object|String} - file content
41318
+ */
41319
+ getInternalXmlFile(name, type2 = "json") {
41320
+ if (!this.converter.convertedXml[name]) {
41321
+ console.warn("Cannot find file in docx");
41322
+ return null;
41323
+ }
41324
+ if (type2 === "json") {
41325
+ return this.converter.convertedXml[name].elements[0] || null;
41326
+ }
41327
+ return this.converter.schemaToXml(this.converter.convertedXml[name].elements[0]);
41328
+ }
41329
+ /**
41330
+ * Update internal docx file content
41331
+ * @param {string} name - File name
41332
+ * @param {string} updatedContent - new file content
41333
+ */
41334
+ updateInternalXmlFile(name, updatedContent) {
41335
+ if (typeof updatedContent === "string") {
41336
+ this.options.customUpdatedFiles[name] = String(updatedContent);
41337
+ } else {
41338
+ const internalFileXml = this.converter.schemaToXml(updatedContent);
41339
+ this.options.customUpdatedFiles[name] = String(internalFileXml);
41340
+ }
41341
+ }
41310
41342
  /**
41311
41343
  * Get all nodes of a specific type
41312
41344
  * @param {string} type - Node type
@@ -48702,7 +48734,7 @@ const getImagePositionDecorations = (state2, view) => {
48702
48734
  let style2 = "";
48703
48735
  let className = "";
48704
48736
  const { vRelativeFrom, alignH } = node2.attrs.anchorData;
48705
- const { size: size2, padding } = node2.attrs;
48737
+ const { size: size2, padding, marginOffset } = node2.attrs;
48706
48738
  const pageBreak = findPreviousDomNodeWithClass(view, pos, "pagination-break-wrapper");
48707
48739
  if (pageBreak) {
48708
48740
  switch (alignH) {
@@ -48716,9 +48748,16 @@ const getImagePositionDecorations = (state2, view) => {
48716
48748
  style2 += "display: block; margin-left: auto; margin-right: auto; ";
48717
48749
  break;
48718
48750
  }
48719
- style2 += vRelativeFrom === "margin" ? `position: absolute; top: ${pageBreak?.offsetTop + pageBreak?.offsetHeight}px; ` : "";
48751
+ const topPos = marginOffset.top !== void 0 ? marginOffset.top : pageBreak?.offsetTop + pageBreak?.offsetHeight;
48752
+ style2 += vRelativeFrom === "margin" ? `position: absolute; top: ${topPos}px; ` : "";
48720
48753
  if (vRelativeFrom === "margin") {
48721
48754
  const nextPos = view.posAtDOM(pageBreak, 1);
48755
+ if (nextPos < 0) {
48756
+ const $pos = view.state.doc.resolve(pos);
48757
+ decorations.push(
48758
+ Decoration.node(pos - 1, pos + $pos.parent.nodeSize - 1, { style: `height: ${size2.height + parseInt(padding.top) + parseInt(padding.bottom)}px` })
48759
+ );
48760
+ }
48722
48761
  const imageBlock = document.createElement("div");
48723
48762
  imageBlock.className = "anchor-image-placeholder";
48724
48763
  imageBlock.style.float = alignH;
@@ -23393,7 +23393,7 @@ const _SuperConverter = class _SuperConverter2 {
23393
23393
  return;
23394
23394
  }
23395
23395
  }
23396
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.0-next.4") {
23396
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.0-next.6") {
23397
23397
  const customLocation = "docProps/custom.xml";
23398
23398
  if (!docx[customLocation]) {
23399
23399
  docx[customLocation] = generateCustomXml();
@@ -23860,7 +23860,7 @@ function storeSuperdocVersion(docx) {
23860
23860
  function generateCustomXml() {
23861
23861
  return DEFAULT_CUSTOM_XML;
23862
23862
  }
23863
- function generateSuperdocVersion(pid = 2, version2 = "0.13.0-next.4") {
23863
+ function generateSuperdocVersion(pid = 2, version2 = "0.13.0-next.6") {
23864
23864
  return {
23865
23865
  type: "element",
23866
23866
  name: "property",
@@ -40664,7 +40664,9 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
40664
40664
  // async (file) => url;
40665
40665
  handleImageUpload: null,
40666
40666
  // telemetry
40667
- telemetry: null
40667
+ telemetry: null,
40668
+ // Docx xml updated by User
40669
+ customUpdatedFiles: {}
40668
40670
  });
40669
40671
  __privateMethod$1(this, _Editor_instances, initContainerElement_fn).call(this, options2);
40670
40672
  __privateMethod$1(this, _Editor_instances, checkHeadless_fn).call(this, options2);
@@ -41170,6 +41172,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41170
41172
  const numberingData = this.converter.convertedXml["word/numbering.xml"];
41171
41173
  const numbering = this.converter.schemaToXml(numberingData.elements[0]);
41172
41174
  const updatedDocs = {
41175
+ ...this.options.customUpdatedFiles,
41173
41176
  "word/document.xml": String(documentXml),
41174
41177
  "docProps/custom.xml": String(customXml),
41175
41178
  "word/settings.xml": String(customSettings),
@@ -41237,7 +41240,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41237
41240
  * @returns {Object | void} Migration results
41238
41241
  */
41239
41242
  processCollaborationMigrations() {
41240
- console.debug("[checkVersionMigrations] Current editor version", "0.13.0-next.4");
41243
+ console.debug("[checkVersionMigrations] Current editor version", "0.13.0-next.6");
41241
41244
  if (!this.options.ydoc) return;
41242
41245
  const metaMap = this.options.ydoc.getMap("meta");
41243
41246
  let docVersion = metaMap.get("version");
@@ -41290,6 +41293,35 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
41290
41293
  __privateMethod$1(this, _Editor_instances, initComments_fn).call(this);
41291
41294
  }
41292
41295
  }
41296
+ /**
41297
+ * Get internal docx file content
41298
+ * @param {string} name - File name
41299
+ * @param {string} type - type of result (json, string)
41300
+ * @returns {Object|String} - file content
41301
+ */
41302
+ getInternalXmlFile(name, type2 = "json") {
41303
+ if (!this.converter.convertedXml[name]) {
41304
+ console.warn("Cannot find file in docx");
41305
+ return null;
41306
+ }
41307
+ if (type2 === "json") {
41308
+ return this.converter.convertedXml[name].elements[0] || null;
41309
+ }
41310
+ return this.converter.schemaToXml(this.converter.convertedXml[name].elements[0]);
41311
+ }
41312
+ /**
41313
+ * Update internal docx file content
41314
+ * @param {string} name - File name
41315
+ * @param {string} updatedContent - new file content
41316
+ */
41317
+ updateInternalXmlFile(name, updatedContent) {
41318
+ if (typeof updatedContent === "string") {
41319
+ this.options.customUpdatedFiles[name] = String(updatedContent);
41320
+ } else {
41321
+ const internalFileXml = this.converter.schemaToXml(updatedContent);
41322
+ this.options.customUpdatedFiles[name] = String(internalFileXml);
41323
+ }
41324
+ }
41293
41325
  /**
41294
41326
  * Get all nodes of a specific type
41295
41327
  * @param {string} type - Node type
@@ -48685,7 +48717,7 @@ const getImagePositionDecorations = (state2, view) => {
48685
48717
  let style2 = "";
48686
48718
  let className = "";
48687
48719
  const { vRelativeFrom, alignH } = node2.attrs.anchorData;
48688
- const { size: size2, padding } = node2.attrs;
48720
+ const { size: size2, padding, marginOffset } = node2.attrs;
48689
48721
  const pageBreak = findPreviousDomNodeWithClass(view, pos, "pagination-break-wrapper");
48690
48722
  if (pageBreak) {
48691
48723
  switch (alignH) {
@@ -48699,9 +48731,16 @@ const getImagePositionDecorations = (state2, view) => {
48699
48731
  style2 += "display: block; margin-left: auto; margin-right: auto; ";
48700
48732
  break;
48701
48733
  }
48702
- style2 += vRelativeFrom === "margin" ? `position: absolute; top: ${pageBreak?.offsetTop + pageBreak?.offsetHeight}px; ` : "";
48734
+ const topPos = marginOffset.top !== void 0 ? marginOffset.top : pageBreak?.offsetTop + pageBreak?.offsetHeight;
48735
+ style2 += vRelativeFrom === "margin" ? `position: absolute; top: ${topPos}px; ` : "";
48703
48736
  if (vRelativeFrom === "margin") {
48704
48737
  const nextPos = view.posAtDOM(pageBreak, 1);
48738
+ if (nextPos < 0) {
48739
+ const $pos = view.state.doc.resolve(pos);
48740
+ decorations.push(
48741
+ Decoration.node(pos - 1, pos + $pos.parent.nodeSize - 1, { style: `height: ${size2.height + parseInt(padding.top) + parseInt(padding.bottom)}px` })
48742
+ );
48743
+ }
48705
48744
  const imageBlock = document.createElement("div");
48706
48745
  imageBlock.className = "anchor-image-placeholder";
48707
48746
  imageBlock.style.float = alignH;
@@ -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-IP9PazoB.js";
3
- import { _ as _export_sfc } from "./chunks/editor-2jdmUJVn.js";
2
+ import { T as TextSelection } from "./chunks/converter-Bns3BtmW.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-hIfvfc-Y.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 = {}) {
@@ -23412,7 +23412,7 @@ const _SuperConverter = class _SuperConverter {
23412
23412
  return;
23413
23413
  }
23414
23414
  }
23415
- static updateDocumentVersion(docx = this.convertedXml, version = "0.13.0-next.4") {
23415
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.13.0-next.6") {
23416
23416
  const customLocation = "docProps/custom.xml";
23417
23417
  if (!docx[customLocation]) {
23418
23418
  docx[customLocation] = generateCustomXml();
@@ -23882,7 +23882,7 @@ function storeSuperdocVersion(docx) {
23882
23882
  function generateCustomXml() {
23883
23883
  return DEFAULT_CUSTOM_XML;
23884
23884
  }
23885
- function generateSuperdocVersion(pid = 2, version = "0.13.0-next.4") {
23885
+ function generateSuperdocVersion(pid = 2, version = "0.13.0-next.6") {
23886
23886
  return {
23887
23887
  type: "element",
23888
23888
  name: "property",
@@ -1,4 +1,4 @@
1
- import { x as process$1, a1 as commonjsGlobal, B as Buffer, a2 as getDefaultExportFromCjs, a3 as getContentTypesFromXml, a4 as xmljs } from "./converter-IP9PazoB.js";
1
+ import { x as process$1, a1 as commonjsGlobal, B as Buffer, a2 as getDefaultExportFromCjs, a3 as getContentTypesFromXml, a4 as xmljs } from "./converter-Bns3BtmW.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 generateRandom32BitHex, u as DOMSerializer, v as Mark$1, w as dropPoint, x as process$1, B as Buffer2, y as isRegExp, z as TrackDeleteMarkName, C as TrackInsertMarkName, E as v4, G as TrackFormatMarkName, H as comments_module_events, I as AddMarkStep, J as RemoveMarkStep, K as twipsToLines, L as pixelsToTwips, O as SuperConverter, Q as EditorState, U as hasSomeParentWithClass, V as parseSizeUnit, W as getLineHeightValueString, X as toKebabCase, Y as kebabCase, Z as getColStyleDeclaration, _ as SelectionRange, $ as Transform, a0 as createColGroup } from "./converter-IP9PazoB.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 generateRandom32BitHex, u as DOMSerializer, v as Mark$1, w as dropPoint, x as process$1, B as Buffer2, y as isRegExp, z as TrackDeleteMarkName, C as TrackInsertMarkName, E as v4, G as TrackFormatMarkName, H as comments_module_events, I as AddMarkStep, J as RemoveMarkStep, K as twipsToLines, L as pixelsToTwips, O as SuperConverter, Q as EditorState, U as hasSomeParentWithClass, V as parseSizeUnit, W as getLineHeightValueString, X as toKebabCase, Y as kebabCase, Z as getColStyleDeclaration, _ as SelectionRange, $ as Transform, a0 as createColGroup } from "./converter-Bns3BtmW.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-CesiGAcg.js";
17
+ import { D as DocxZipper } from "./docx-zipper-qf0kgh0l.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -14322,7 +14322,9 @@ const _Editor = class _Editor extends EventEmitter {
14322
14322
  // async (file) => url;
14323
14323
  handleImageUpload: null,
14324
14324
  // telemetry
14325
- telemetry: null
14325
+ telemetry: null,
14326
+ // Docx xml updated by User
14327
+ customUpdatedFiles: {}
14326
14328
  });
14327
14329
  __privateMethod(this, _Editor_instances, initContainerElement_fn).call(this, options);
14328
14330
  __privateMethod(this, _Editor_instances, checkHeadless_fn).call(this, options);
@@ -14828,6 +14830,7 @@ const _Editor = class _Editor extends EventEmitter {
14828
14830
  const numberingData = this.converter.convertedXml["word/numbering.xml"];
14829
14831
  const numbering = this.converter.schemaToXml(numberingData.elements[0]);
14830
14832
  const updatedDocs = {
14833
+ ...this.options.customUpdatedFiles,
14831
14834
  "word/document.xml": String(documentXml),
14832
14835
  "docProps/custom.xml": String(customXml),
14833
14836
  "word/settings.xml": String(customSettings),
@@ -14895,7 +14898,7 @@ const _Editor = class _Editor extends EventEmitter {
14895
14898
  * @returns {Object | void} Migration results
14896
14899
  */
14897
14900
  processCollaborationMigrations() {
14898
- console.debug("[checkVersionMigrations] Current editor version", "0.13.0-next.4");
14901
+ console.debug("[checkVersionMigrations] Current editor version", "0.13.0-next.6");
14899
14902
  if (!this.options.ydoc) return;
14900
14903
  const metaMap = this.options.ydoc.getMap("meta");
14901
14904
  let docVersion = metaMap.get("version");
@@ -14948,6 +14951,35 @@ const _Editor = class _Editor extends EventEmitter {
14948
14951
  __privateMethod(this, _Editor_instances, initComments_fn).call(this);
14949
14952
  }
14950
14953
  }
14954
+ /**
14955
+ * Get internal docx file content
14956
+ * @param {string} name - File name
14957
+ * @param {string} type - type of result (json, string)
14958
+ * @returns {Object|String} - file content
14959
+ */
14960
+ getInternalXmlFile(name, type = "json") {
14961
+ if (!this.converter.convertedXml[name]) {
14962
+ console.warn("Cannot find file in docx");
14963
+ return null;
14964
+ }
14965
+ if (type === "json") {
14966
+ return this.converter.convertedXml[name].elements[0] || null;
14967
+ }
14968
+ return this.converter.schemaToXml(this.converter.convertedXml[name].elements[0]);
14969
+ }
14970
+ /**
14971
+ * Update internal docx file content
14972
+ * @param {string} name - File name
14973
+ * @param {string} updatedContent - new file content
14974
+ */
14975
+ updateInternalXmlFile(name, updatedContent) {
14976
+ if (typeof updatedContent === "string") {
14977
+ this.options.customUpdatedFiles[name] = String(updatedContent);
14978
+ } else {
14979
+ const internalFileXml = this.converter.schemaToXml(updatedContent);
14980
+ this.options.customUpdatedFiles[name] = String(internalFileXml);
14981
+ }
14982
+ }
14951
14983
  /**
14952
14984
  * Get all nodes of a specific type
14953
14985
  * @param {string} type - Node type
@@ -22477,7 +22509,7 @@ const getImagePositionDecorations = (state, view) => {
22477
22509
  let style = "";
22478
22510
  let className = "";
22479
22511
  const { vRelativeFrom, alignH } = node.attrs.anchorData;
22480
- const { size, padding } = node.attrs;
22512
+ const { size, padding, marginOffset } = node.attrs;
22481
22513
  const pageBreak = findPreviousDomNodeWithClass(view, pos, "pagination-break-wrapper");
22482
22514
  if (pageBreak) {
22483
22515
  switch (alignH) {
@@ -22491,9 +22523,16 @@ const getImagePositionDecorations = (state, view) => {
22491
22523
  style += "display: block; margin-left: auto; margin-right: auto; ";
22492
22524
  break;
22493
22525
  }
22494
- style += vRelativeFrom === "margin" ? `position: absolute; top: ${pageBreak?.offsetTop + pageBreak?.offsetHeight}px; ` : "";
22526
+ const topPos = marginOffset.top !== void 0 ? marginOffset.top : pageBreak?.offsetTop + pageBreak?.offsetHeight;
22527
+ style += vRelativeFrom === "margin" ? `position: absolute; top: ${topPos}px; ` : "";
22495
22528
  if (vRelativeFrom === "margin") {
22496
22529
  const nextPos = view.posAtDOM(pageBreak, 1);
22530
+ if (nextPos < 0) {
22531
+ const $pos = view.state.doc.resolve(pos);
22532
+ decorations.push(
22533
+ Decoration.node(pos - 1, pos + $pos.parent.nodeSize - 1, { style: `height: ${size.height + parseInt(padding.top) + parseInt(padding.bottom)}px` })
22534
+ );
22535
+ }
22497
22536
  const imageBlock = document.createElement("div");
22498
22537
  imageBlock.className = "anchor-image-placeholder";
22499
22538
  imageBlock.style.float = alignH;
@@ -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 { x as process$1 } from "./converter-IP9PazoB.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-2jdmUJVn.js";
2
+ import { x as process$1 } from "./converter-Bns3BtmW.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-hIfvfc-Y.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 { O } from "./chunks/converter-IP9PazoB.js";
1
+ import { O } from "./chunks/converter-Bns3BtmW.js";
2
2
  export {
3
3
  O as SuperConverter
4
4
  };
@@ -208,6 +208,7 @@ export class Editor extends EventEmitter {
208
208
  onException: () => any;
209
209
  handleImageUpload: any;
210
210
  telemetry: any;
211
+ customUpdatedFiles: {};
211
212
  };
212
213
  setHighContrastMode: (value: any) => void;
213
214
  /**
@@ -432,6 +433,19 @@ export class Editor extends EventEmitter {
432
433
  * @returns {Promise<void>}
433
434
  */
434
435
  replaceFile(newFile: any): Promise<void>;
436
+ /**
437
+ * Get internal docx file content
438
+ * @param {string} name - File name
439
+ * @param {string} type - type of result (json, string)
440
+ * @returns {Object|String} - file content
441
+ */
442
+ getInternalXmlFile(name: string, type?: string): any | string;
443
+ /**
444
+ * Update internal docx file content
445
+ * @param {string} name - File name
446
+ * @param {string} updatedContent - new file content
447
+ */
448
+ updateInternalXmlFile(name: string, updatedContent: string): void;
435
449
  /**
436
450
  * Get all nodes of a specific type
437
451
  * @param {string} type - Node type
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA4BA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH;;;;GAIG;AACH;IAwqBE;;;;;;;;;;;;OAYG;IACH,+BARW,IAAI,GAAC,IAAI,GAAC,MAAM,WAChB,OAAO,GACL,OAAO,OAAO,CAc1B;IAED;;;;;OAKG;IACH,qCAFa,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,gDAHW,MAAM,OAMhB;IA0qBD;;;;;OAKG;IACH,2CAFa,OAAO,CAOnB;IA7xCD;;;;OAIG;IACH,qBAHW,aAAa,EAwBvB;IA/HD;;;OAGG;IACH,sBAAiB;IAEjB;;;OAGG;IACH,sBAAsB;IAEtB;;;OAGG;IACH,YAAO;IAEP;;;OAGG;IACH,UAAK;IAEL;;;OAGG;IACH,WAFU,OAAO,CAEC;IAQlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+DE;IA0BA,0CAA8C;IA0IhD;;;;OAIG;IACH,0BAFa,IAAI,CAIhB;IADC,aAAsB;IAsBxB;;;OAGG;IACH,SAFa,IAAI,CAIhB;IAED;;;OAGG;IACH,iBAEC;IAED;;;OAGG;IACH,mBAEC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,kBAFa,OAAO,CAInB;IAED;;;OAGG;IACH,mBAFa,OAAO,CAInB;IAED;;;OAGG;IACH,eAFa,WAAW,CAIvB;IAED;;;OA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;IACH,4BAJW,UAAU,EAAE,cACZ,QAAQ,gCACN,IAAI,CAkBhB;IAED;;;;;;;OAOG;IACH,sCAJW,KAAQ,cACR,MAAM,EAAE,GACN,IAAI,CAKhB;IAFC,mBAAoC;IAItC;;;;OAIG;IACH,gBAFa,IAAI,CAKhB;;CAEF;;;;;cAlqDa,MAAM;;;;iBACN,MAAM;;;;;;;;;UAWP,MAAM;;;;WACN,MAAM;;;;WACN,MAAM,GAAG,IAAI;;;;;;cAIZ,WAAW;;;;eACX,MAAM;;;;iBACN,OAAO;;;;mBACP,QAAQ;;;;iBACR,MAAM;;;;cACN,MAAM;;;;WACN,IAAI;;;;YACJ,KAAK,CAAE,IAAI,CAAC;;;;;;;;;;;;;;;;mBAIZ,MAAM;;;;WACN,MAAM;;;;WACN,MAAM;;;;;;;;;;;;;;;;;;;;iBAKN,MAAM;;;;;;;;eAEN,OAAO;;;;;;;;;;;;;;;;uBAIP,OAAO;;;;wBACP,OAAO;;;;gBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;uBAGP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAsBP,OAAO;;;;mBACP,OAAO;;;;WACP,MAAM;;6BAnGS,mBAAmB"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-IP9PazoB.js";
2
- import { D } from "./chunks/docx-zipper-CesiGAcg.js";
1
+ import "./chunks/converter-Bns3BtmW.js";
2
+ import { D } from "./chunks/docx-zipper-qf0kgh0l.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-2jdmUJVn.js";
2
- import "./chunks/converter-IP9PazoB.js";
3
- import "./chunks/docx-zipper-CesiGAcg.js";
1
+ import { E } from "./chunks/editor-hIfvfc-Y.js";
2
+ import "./chunks/converter-Bns3BtmW.js";
3
+ import "./chunks/docx-zipper-qf0kgh0l.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-CesiGAcg.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-qf0kgh0l.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 { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-IP9PazoB.js";
13
- import { O } from "./chunks/converter-IP9PazoB.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-2jdmUJVn.js";
15
- import { o, C, T, m, q, p, l, n } from "./chunks/editor-2jdmUJVn.js";
12
+ import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-Bns3BtmW.js";
13
+ import { O } from "./chunks/converter-Bns3BtmW.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-hIfvfc-Y.js";
15
+ import { o, C, T, m, q, p, l, n } from "./chunks/editor-hIfvfc-Y.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-BwVRLL78.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-BC9mPZ43.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-CesiGAcg.js";
19
+ import { D } from "./chunks/docx-zipper-qf0kgh0l.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-BwVRLL78.js";
3
- import "./chunks/editor-2jdmUJVn.js";
2
+ import { T } from "./chunks/toolbar-BC9mPZ43.js";
3
+ import "./chunks/editor-hIfvfc-Y.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-C8bnXrNN.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-BSS_LTA0.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-BLihY9I3.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-CU8V5_XY.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-C8bnXrNN.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-BSS_LTA0.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.0-next.4";
47809
+ this.version = "0.13.0-next.6";
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-BLihY9I3.es.js";
2
- import { a, S, i, n } from "./chunks/super-editor.es-BLihY9I3.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-CU8V5_XY.es.js";
2
+ import { a, S, i, n } from "./chunks/super-editor.es-CU8V5_XY.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.0-next.4";
47792
+ this.version = "0.13.0-next.6";
47793
47793
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
47794
47794
  this.superdocId = config.superdocId || v4();
47795
47795
  this.colors = this.config.colors;