@harbour-enterprises/superdoc 0.12.14 → 0.12.16

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 (27) hide show
  1. package/dist/chunks/{super-editor.es-BOH6x5Dh.es.js → super-editor.es-BB3W_xzz.es.js} +144 -54
  2. package/dist/chunks/{super-editor.es-DF_gWgh-.cjs → super-editor.es-C1sOUR_S.cjs} +144 -54
  3. package/dist/super-editor/ai-writer.es.js +2 -2
  4. package/dist/super-editor/chunks/{converter-D3CdG5M7.js → converter-CaX3dOo9.js} +78 -12
  5. package/dist/super-editor/chunks/{docx-zipper-DBFk7dLq.js → docx-zipper-C21KiTVk.js} +10 -1
  6. package/dist/super-editor/chunks/{editor-CdSN8S-8.js → editor-Ctzz2gCC.js} +59 -44
  7. package/dist/super-editor/chunks/{toolbar-C2Qr2ADq.js → toolbar-C0EZHJoI.js} +2 -2
  8. package/dist/super-editor/converter.es.js +1 -1
  9. package/dist/super-editor/core/DocxZipper.d.ts.map +1 -1
  10. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  11. package/dist/super-editor/core/super-converter/constants.d.ts +2 -0
  12. package/dist/super-editor/core/super-converter/constants.d.ts.map +1 -1
  13. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  14. package/dist/super-editor/docx-zipper.es.js +2 -2
  15. package/dist/super-editor/editor.es.js +3 -3
  16. package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
  17. package/dist/super-editor/extensions/pagination/pagination.d.ts.map +1 -1
  18. package/dist/super-editor/file-zipper.es.js +1 -1
  19. package/dist/super-editor/super-editor.es.js +6 -6
  20. package/dist/super-editor/toolbar.es.js +2 -2
  21. package/dist/super-editor.cjs +1 -1
  22. package/dist/super-editor.es.js +1 -1
  23. package/dist/superdoc.cjs +2 -2
  24. package/dist/superdoc.es.js +3 -3
  25. package/dist/superdoc.umd.js +145 -55
  26. package/dist/superdoc.umd.js.map +1 -1
  27. package/package.json +1 -1
@@ -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;
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-D3CdG5M7.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-CaX3dOo9.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-DBFk7dLq.js";
17
+ import { D as DocxZipper } from "./docx-zipper-C21KiTVk.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -12800,7 +12800,6 @@ const createHeaderFooterEditor = ({
12800
12800
  const pm = editorContainer.querySelector(".ProseMirror");
12801
12801
  pm.style.maxHeight = "100%";
12802
12802
  pm.style.minHeight = "100%";
12803
- pm.style.overflow = "auto";
12804
12803
  pm.style.outline = "none";
12805
12804
  pm.style.border = "none";
12806
12805
  return headerFooterEditor;
@@ -12865,8 +12864,9 @@ const updateYdocDocxData = async (editor) => {
12865
12864
  Object.keys(newXml).forEach((key) => {
12866
12865
  if (key.includes("header") || key.includes("footer")) {
12867
12866
  const fileIndex = docx.findIndex((item) => item.name === key);
12868
- if (fileIndex === -1) return;
12869
- docx.splice(fileIndex, 1);
12867
+ if (fileIndex > -1) {
12868
+ docx.splice(fileIndex, 1);
12869
+ }
12870
12870
  docx.push({
12871
12871
  name: key,
12872
12872
  content: newXml[key]
@@ -14676,7 +14676,7 @@ const _Editor = class _Editor extends EventEmitter {
14676
14676
  * @returns {Object | void} Migration results
14677
14677
  */
14678
14678
  processCollaborationMigrations() {
14679
- console.debug("[checkVersionMigrations] Current editor version", "0.12.14");
14679
+ console.debug("[checkVersionMigrations] Current editor version", "0.12.16");
14680
14680
  if (!this.options.ydoc) return;
14681
14681
  const metaMap = this.options.ydoc.getMap("meta");
14682
14682
  let docVersion = metaMap.get("version");
@@ -26525,7 +26525,7 @@ function generateInternalPageBreaks(doc2, view, editor, sectionData) {
26525
26525
  currentPageNumber++;
26526
26526
  const headerId2 = getHeaderFooterId(currentPageNumber, "headerIds", editor);
26527
26527
  header = createHeader(pageMargins, pageSize, sectionData, headerId2, editor);
26528
- footer = createFooter(pageMargins, pageSize, sectionData, footerId2, editor);
26528
+ footer = createFooter(pageMargins, pageSize, sectionData, footerId2, editor, currentPageNumber - 1);
26529
26529
  const bufferHeight2 = pageHeightThreshold - actualBreakBottom;
26530
26530
  const { node: spacingNode2 } = createFinalPagePadding(bufferHeight2);
26531
26531
  const pageSpacer2 = Decoration.widget(breakPos, spacingNode2, { key: "stable-key" });
@@ -26540,7 +26540,7 @@ function generateInternalPageBreaks(doc2, view, editor, sectionData) {
26540
26540
  const headerId = getHeaderFooterId(currentPageNumber, "headerIds", editor);
26541
26541
  const footerId = getHeaderFooterId(currentPageNumber, "footerIds", editor);
26542
26542
  header = createHeader(pageMargins, pageSize, sectionData, headerId, editor);
26543
- footer = createFooter(pageMargins, pageSize, sectionData, footerId, editor);
26543
+ footer = createFooter(pageMargins, pageSize, sectionData, footerId, editor, currentPageNumber);
26544
26544
  const bufferHeight = pageHeightThreshold - lastNodeCoords.bottom;
26545
26545
  const { node: spacingNode } = createFinalPagePadding(bufferHeight);
26546
26546
  const pageSpacer = Decoration.widget(doc2.content.size, spacingNode, { key: "stable-key" });
@@ -26575,6 +26575,10 @@ function createHeader(pageMargins, pageSize, sectionData, headerId, editor) {
26575
26575
  const headerHeight = Math.max(headerDef?.height || 0, minHeaderHeight) + headerOffset;
26576
26576
  const availableHeight = headerHeight - headerMargin;
26577
26577
  const editorContainer = document.createElement("div");
26578
+ if (!headerId && !editor.converter.headerIds["default"]) {
26579
+ headerId = "rId" + generateDocxRandomId();
26580
+ editor.converter.headerIds["default"] = headerId;
26581
+ }
26578
26582
  if (!editor.converter.headers[headerId]) {
26579
26583
  editor.converter.headers[headerId] = {
26580
26584
  type: "doc",
@@ -26582,24 +26586,21 @@ function createHeader(pageMargins, pageSize, sectionData, headerId, editor) {
26582
26586
  };
26583
26587
  }
26584
26588
  const data = editor.converter.headers[headerId];
26585
- let editorSection;
26586
- if (data) {
26587
- editorSection = createHeaderFooterEditor({
26588
- editor,
26589
- data,
26590
- editorContainer,
26591
- appendToBody: false,
26592
- sectionId: headerId,
26593
- type: "header",
26594
- availableHeight
26595
- });
26596
- editorSection.setEditable(false, false);
26597
- editor.converter.headerEditors.push({
26598
- id: headerId,
26599
- editor: editorSection
26600
- });
26601
- broadcastEditorEvents(editor, editorSection);
26602
- }
26589
+ const editorSection = createHeaderFooterEditor({
26590
+ editor,
26591
+ data,
26592
+ editorContainer,
26593
+ appendToBody: false,
26594
+ sectionId: headerId,
26595
+ type: "header",
26596
+ availableHeight
26597
+ });
26598
+ editor.converter.headerEditors.push({
26599
+ id: headerId,
26600
+ editor: editorSection
26601
+ });
26602
+ editorSection.setEditable(false, false);
26603
+ broadcastEditorEvents(editor, editorSection);
26603
26604
  editorContainer.className = "pagination-section-header";
26604
26605
  editorContainer.style.paddingTop = headerMargin + "px";
26605
26606
  editorContainer.style.paddingLeft = pageMargins.left * 96 + "px";
@@ -26618,26 +26619,40 @@ function createFooter(pageMargins, pageSize, sectionData, footerId, editor, curr
26618
26619
  const minFooterHeight = pageMargins.bottom * 96;
26619
26620
  const footerPaddingFromEdge = pageMargins.footer * 96;
26620
26621
  const footerHeight = Math.max(footerDef?.height || 0, minFooterHeight - footerPaddingFromEdge);
26622
+ const sectionContainer = footerDef?.sectionContainer?.cloneNode(true);
26623
+ const autoPageNumber = sectionContainer?.querySelector('span[data-id="auto-page-number"]');
26624
+ if (autoPageNumber) {
26625
+ const fontSize = autoPageNumber.previousElementSibling?.style?.fontSize || autoPageNumber.nextElementSibling?.style?.fontSize;
26626
+ if (fontSize) autoPageNumber.style.fontSize = fontSize;
26627
+ autoPageNumber.innerText = currentPageNumber;
26628
+ }
26621
26629
  const editorContainer = document.createElement("div");
26622
- const data = editor.converter.footers[footerId];
26623
- let editorSection;
26624
- if (data) {
26625
- editorSection = createHeaderFooterEditor({
26626
- editor,
26627
- data,
26628
- editorContainer,
26629
- appendToBody: false,
26630
- sectionId: footerId,
26631
- type: "footer",
26632
- availableHeight: footerHeight
26633
- });
26634
- editor.converter.footerEditors.push({
26635
- id: footerId,
26636
- editor: editorSection
26637
- });
26638
- editorSection.setEditable(false, false);
26639
- broadcastEditorEvents(editor, editorSection);
26630
+ if (!footerId && !editor.converter.footerIds["default"]) {
26631
+ footerId = "rId" + generateDocxRandomId();
26632
+ editor.converter.footerIds["default"] = footerId;
26633
+ }
26634
+ if (!editor.converter.footers[footerId]) {
26635
+ editor.converter.footers[footerId] = {
26636
+ type: "doc",
26637
+ content: [{ type: "paragraph", content: [] }]
26638
+ };
26640
26639
  }
26640
+ const data = editor.converter.footers[footerId];
26641
+ const editorSection = createHeaderFooterEditor({
26642
+ editor,
26643
+ data,
26644
+ editorContainer,
26645
+ appendToBody: false,
26646
+ sectionId: footerId,
26647
+ type: "footer",
26648
+ availableHeight: footerHeight
26649
+ });
26650
+ editor.converter.footerEditors.push({
26651
+ id: footerId,
26652
+ editor: editorSection
26653
+ });
26654
+ editorSection.setEditable(false, false);
26655
+ broadcastEditorEvents(editor, editorSection);
26641
26656
  editorContainer.className = "pagination-section-footer";
26642
26657
  editorContainer.style.height = footerHeight + "px";
26643
26658
  editorContainer.style.marginBottom = footerPaddingFromEdge + "px";
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, unref, createBlock, toDisplayString, withDirectives, withKeys, withModifiers, 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-D3CdG5M7.js";
3
- import { _ as _export_sfc, g as global$1 } from "./editor-CdSN8S-8.js";
2
+ import { x as process$1 } from "./converter-CaX3dOo9.js";
3
+ import { _ as _export_sfc, g as global$1 } from "./editor-Ctzz2gCC.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-D3CdG5M7.js";
1
+ import { O } from "./chunks/converter-CaX3dOo9.js";
2
2
  export {
3
3
  O as SuperConverter
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DocxZipper.d.ts","sourceRoot":"","sources":["../../src/core/DocxZipper.js"],"names":[],"mappings":";AAKA;;GAEG;AACH;IACE,yBAOC;IANC,WAAkC;IAClC,SAAsB;IACtB,aAAe;IACf,UAAe;IACf,eAAoB;IACpB,UAAe;IAGjB;;;;;;;;;;;;;;;;;SAiBK;IACL,yDA0CC;IAED,qCAEC;IAED;;OAEG;IACH,yDAyDC;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":";AAKA;;GAEG;AACH;IACE,yBAOC;IANC,WAAkC;IAClC,SAAsB;IACtB,aAAe;IACf,UAAe;IACf,eAAoB;IACpB,UAAe;IAGjB;;;;;;;;;;;;;;;;;SAiBK;IACL,yDA0CC;IAED,qCAEC;IAED;;OAEG;IACH,yDAoEC;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":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAeA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAwFtF,gDAoBC;IAED,6DAqBC;IAjID,0BA8DC;IA5DC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IACvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IAGvB,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAgBC;IAED,8BAEC;IA+CD;;;;;;;;;;MAwCC;IAED,2BAmDC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;MAgBC;IAED,2EAeC;IAED,gDAGC;IAED,gKA4DC;IAED;;;;;;;;;;;;MA8BC;;CAkKF"}
1
+ {"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAeA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAwFtF,gDAoBC;IAED,6DAqBC;IAjID,0BA8DC;IA5DC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IACvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IAGvB,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAgBC;IAED,8BAEC;IA+CD;;;;;;;;;;MAwCC;IAED,2BAmDC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;MAgBC;IAED,2EAeC;IAED,gDAGC;IAED,gKA4DC;IAED;;;;;;;;;;;;MA8BC;;CAkNF"}
@@ -1,2 +1,4 @@
1
1
  export const HYPERLINK_RELATIONSHIP_TYPE: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
2
+ export const HEADER_RELATIONSHIP_TYPE: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
3
+ export const FOOTER_RELATIONSHIP_TYPE: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";
2
4
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/constants.js"],"names":[],"mappings":"AAAA,0CAA2C,+EAA+E,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/constants.js"],"names":[],"mappings":"AAAA,0CAA2C,+EAA+E,CAAC;AAC3H,uCAAwC,4EAA4E,CAAC;AACrH,uCAAwC,4EAA4E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAsCxB;AAsCD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAk3DD;;;;;;;;;EAcC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBA3rEa,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":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAsCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAk3DD;;;;;;;;;EAcC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBAptEa,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-D3CdG5M7.js";
2
- import { D } from "./chunks/docx-zipper-DBFk7dLq.js";
1
+ import "./chunks/converter-CaX3dOo9.js";
2
+ import { D } from "./chunks/docx-zipper-C21KiTVk.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-CdSN8S-8.js";
2
- import "./chunks/converter-D3CdG5M7.js";
3
- import "./chunks/docx-zipper-DBFk7dLq.js";
1
+ import { E } from "./chunks/editor-Ctzz2gCC.js";
2
+ import "./chunks/converter-CaX3dOo9.js";
3
+ import "./chunks/docx-zipper-C21KiTVk.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination-helpers.js"],"names":[],"mappings":"AAKA,iDAAqE;AAQ9D,2CAHI,WAAW,OAuCrB;AA8BM;;;;;;;;QA+DN;AAEM,6EAeN;AAEM,0GAiBN;AAEM;;;8DAmBN;0BAvMyB,mBAAmB"}
1
+ {"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination-helpers.js"],"names":[],"mappings":"AAKA,iDAAqE;AAQ9D,2CAHI,WAAW,OAuCrB;AA8BM;;;;;;;;QA8DN;AAEM,6EAeN;AAEM,0GAiBN;AAEM;;;8DAmBN;0BAtMyB,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination.js"],"names":[],"mappings":"AAYA,6BAgJG"}
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination.js"],"names":[],"mappings":"AAaA,6BAgJG"}
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-DBFk7dLq.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-C21KiTVk.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 { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, M as Mark, j as Extension, A as Attribute, N as Node } from "./chunks/editor-CdSN8S-8.js";
13
- import { C, T, l, n, k, m } from "./chunks/editor-CdSN8S-8.js";
14
- import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-D3CdG5M7.js";
15
- import { O } from "./chunks/converter-D3CdG5M7.js";
12
+ import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, M as Mark, j as Extension, A as Attribute, N as Node } from "./chunks/editor-Ctzz2gCC.js";
13
+ import { C, T, l, n, k, m } from "./chunks/editor-Ctzz2gCC.js";
14
+ import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-CaX3dOo9.js";
15
+ import { O } from "./chunks/converter-CaX3dOo9.js";
16
16
  import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, 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-C2Qr2ADq.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-C0EZHJoI.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-DBFk7dLq.js";
19
+ import { D } from "./chunks/docx-zipper-C21KiTVk.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-C2Qr2ADq.js";
3
- import "./chunks/editor-CdSN8S-8.js";
2
+ import { T } from "./chunks/toolbar-C0EZHJoI.js";
3
+ import "./chunks/editor-Ctzz2gCC.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-DF_gWgh-.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-C1sOUR_S.cjs");
4
4
  require("./chunks/vue-DPZkajuO.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.BasicUpload = superEditor_es._sfc_main$1;
@@ -1,4 +1,4 @@
1
- import { A, _, C, D, E, a, S, b, c, d, T, e, f, i, g, h, j, k, l, m, n } from "./chunks/super-editor.es-BOH6x5Dh.es.js";
1
+ import { A, _, C, D, E, a, S, b, c, d, T, e, f, i, g, h, j, k, l, m, n } from "./chunks/super-editor.es-BB3W_xzz.es.js";
2
2
  import "./chunks/vue-IIIZMHTg.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-DF_gWgh-.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-C1sOUR_S.cjs");
4
4
  const vue = require("./chunks/vue-DPZkajuO.cjs");
5
5
  const jszip = require("./chunks/jszip-Bwu_om3F.cjs");
6
6
  const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
@@ -46558,7 +46558,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
46558
46558
  this.config.colors = shuffleArray(this.config.colors);
46559
46559
  this.userColorMap = /* @__PURE__ */ new Map();
46560
46560
  this.colorIndex = 0;
46561
- this.version = "0.12.14";
46561
+ this.version = "0.12.16";
46562
46562
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
46563
46563
  this.superdocId = config.superdocId || uuid.v4();
46564
46564
  this.colors = this.config.colors;
@@ -1,5 +1,5 @@
1
- import { n as index$1, C as CommentsPluginKey, e as TrackChangesBasePluginKey, E as Editor, k as getRichTextExtensions, c as SuperInput, A as AIWriter, b as SuperEditor, d as SuperToolbar, f as createZip } from "./chunks/super-editor.es-BOH6x5Dh.es.js";
2
- import { S, i, m } from "./chunks/super-editor.es-BOH6x5Dh.es.js";
1
+ import { n as index$1, C as CommentsPluginKey, e as TrackChangesBasePluginKey, E as Editor, k as getRichTextExtensions, c as SuperInput, A as AIWriter, b as SuperEditor, d as SuperToolbar, f as createZip } from "./chunks/super-editor.es-BB3W_xzz.es.js";
2
+ import { S, i, m } from "./chunks/super-editor.es-BB3W_xzz.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-IIIZMHTg.es.js";
4
4
  import { B as Buffer$2 } from "./chunks/jszip-BmWWPxfF.es.js";
5
5
  import { B as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.es.js";
@@ -46557,7 +46557,7 @@ class SuperDoc extends EventEmitter {
46557
46557
  this.config.colors = shuffleArray(this.config.colors);
46558
46558
  this.userColorMap = /* @__PURE__ */ new Map();
46559
46559
  this.colorIndex = 0;
46560
- this.version = "0.12.14";
46560
+ this.version = "0.12.16";
46561
46561
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
46562
46562
  this.superdocId = config.superdocId || v4();
46563
46563
  this.colors = this.config.colors;