@harbour-enterprises/superdoc 0.12.13 → 0.12.15

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 (26) hide show
  1. package/dist/chunks/{super-editor.es-CmodrhS1.es.js → super-editor.es-B9tq7DUR.es.js} +145 -54
  2. package/dist/chunks/{super-editor.es-CTIoInER.cjs → super-editor.es-DeKTatca.cjs} +145 -54
  3. package/dist/super-editor/ai-writer.es.js +2 -2
  4. package/dist/super-editor/chunks/{converter-CBdzo5wX.js → converter-Cdyvf3TU.js} +78 -12
  5. package/dist/super-editor/chunks/{docx-zipper-BsYGIOmg.js → docx-zipper-BDrivuaF.js} +10 -1
  6. package/dist/super-editor/chunks/{editor-h9TerhsW.js → editor-CzT_ncye.js} +60 -44
  7. package/dist/super-editor/chunks/{toolbar-BPcsnrZP.js → toolbar-k0QAmXB2.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.d.ts.map +1 -1
  17. package/dist/super-editor/file-zipper.es.js +1 -1
  18. package/dist/super-editor/super-editor.es.js +6 -6
  19. package/dist/super-editor/toolbar.es.js +2 -2
  20. package/dist/super-editor.cjs +1 -1
  21. package/dist/super-editor.es.js +1 -1
  22. package/dist/superdoc.cjs +2 -2
  23. package/dist/superdoc.es.js +3 -3
  24. package/dist/superdoc.umd.js +146 -55
  25. package/dist/superdoc.umd.js.map +1 -1
  26. 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-CBdzo5wX.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-Cdyvf3TU.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-BsYGIOmg.js";
17
+ import { D as DocxZipper } from "./docx-zipper-BDrivuaF.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -12865,8 +12865,9 @@ const updateYdocDocxData = async (editor) => {
12865
12865
  Object.keys(newXml).forEach((key) => {
12866
12866
  if (key.includes("header") || key.includes("footer")) {
12867
12867
  const fileIndex = docx.findIndex((item) => item.name === key);
12868
- if (fileIndex === -1) return;
12869
- docx.splice(fileIndex, 1);
12868
+ if (fileIndex > -1) {
12869
+ docx.splice(fileIndex, 1);
12870
+ }
12870
12871
  docx.push({
12871
12872
  name: key,
12872
12873
  content: newXml[key]
@@ -14676,7 +14677,7 @@ const _Editor = class _Editor extends EventEmitter {
14676
14677
  * @returns {Object | void} Migration results
14677
14678
  */
14678
14679
  processCollaborationMigrations() {
14679
- console.debug("[checkVersionMigrations] Current editor version", "0.12.13");
14680
+ console.debug("[checkVersionMigrations] Current editor version", "0.12.15");
14680
14681
  if (!this.options.ydoc) return;
14681
14682
  const metaMap = this.options.ydoc.getMap("meta");
14682
14683
  let docVersion = metaMap.get("version");
@@ -14766,7 +14767,7 @@ const _Editor = class _Editor extends EventEmitter {
14766
14767
  prepareForAnnotations(annotationValues = []) {
14767
14768
  const { tr } = this.state;
14768
14769
  const { dispatch } = this.view;
14769
- const newTr = AnnotatorServices.processTables({ editor: this, tr, annotationValues });
14770
+ const newTr = AnnotatorServices.processTables({ state: this.state, tr, annotationValues });
14770
14771
  this.view.dispatch(newTr);
14771
14772
  AnnotatorServices.annotateHeadersAndFooters({ editor: this, annotationValues });
14772
14773
  }
@@ -26525,7 +26526,7 @@ function generateInternalPageBreaks(doc2, view, editor, sectionData) {
26525
26526
  currentPageNumber++;
26526
26527
  const headerId2 = getHeaderFooterId(currentPageNumber, "headerIds", editor);
26527
26528
  header = createHeader(pageMargins, pageSize, sectionData, headerId2, editor);
26528
- footer = createFooter(pageMargins, pageSize, sectionData, footerId2, editor);
26529
+ footer = createFooter(pageMargins, pageSize, sectionData, footerId2, editor, currentPageNumber - 1);
26529
26530
  const bufferHeight2 = pageHeightThreshold - actualBreakBottom;
26530
26531
  const { node: spacingNode2 } = createFinalPagePadding(bufferHeight2);
26531
26532
  const pageSpacer2 = Decoration.widget(breakPos, spacingNode2, { key: "stable-key" });
@@ -26540,7 +26541,7 @@ function generateInternalPageBreaks(doc2, view, editor, sectionData) {
26540
26541
  const headerId = getHeaderFooterId(currentPageNumber, "headerIds", editor);
26541
26542
  const footerId = getHeaderFooterId(currentPageNumber, "footerIds", editor);
26542
26543
  header = createHeader(pageMargins, pageSize, sectionData, headerId, editor);
26543
- footer = createFooter(pageMargins, pageSize, sectionData, footerId, editor);
26544
+ footer = createFooter(pageMargins, pageSize, sectionData, footerId, editor, currentPageNumber);
26544
26545
  const bufferHeight = pageHeightThreshold - lastNodeCoords.bottom;
26545
26546
  const { node: spacingNode } = createFinalPagePadding(bufferHeight);
26546
26547
  const pageSpacer = Decoration.widget(doc2.content.size, spacingNode, { key: "stable-key" });
@@ -26575,6 +26576,10 @@ function createHeader(pageMargins, pageSize, sectionData, headerId, editor) {
26575
26576
  const headerHeight = Math.max(headerDef?.height || 0, minHeaderHeight) + headerOffset;
26576
26577
  const availableHeight = headerHeight - headerMargin;
26577
26578
  const editorContainer = document.createElement("div");
26579
+ if (!headerId && !editor.converter.headerIds["default"]) {
26580
+ headerId = "rId" + generateDocxRandomId();
26581
+ editor.converter.headerIds["default"] = headerId;
26582
+ }
26578
26583
  if (!editor.converter.headers[headerId]) {
26579
26584
  editor.converter.headers[headerId] = {
26580
26585
  type: "doc",
@@ -26582,24 +26587,21 @@ function createHeader(pageMargins, pageSize, sectionData, headerId, editor) {
26582
26587
  };
26583
26588
  }
26584
26589
  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
- }
26590
+ const editorSection = createHeaderFooterEditor({
26591
+ editor,
26592
+ data,
26593
+ editorContainer,
26594
+ appendToBody: false,
26595
+ sectionId: headerId,
26596
+ type: "header",
26597
+ availableHeight
26598
+ });
26599
+ editor.converter.headerEditors.push({
26600
+ id: headerId,
26601
+ editor: editorSection
26602
+ });
26603
+ editorSection.setEditable(false, false);
26604
+ broadcastEditorEvents(editor, editorSection);
26603
26605
  editorContainer.className = "pagination-section-header";
26604
26606
  editorContainer.style.paddingTop = headerMargin + "px";
26605
26607
  editorContainer.style.paddingLeft = pageMargins.left * 96 + "px";
@@ -26618,26 +26620,40 @@ function createFooter(pageMargins, pageSize, sectionData, footerId, editor, curr
26618
26620
  const minFooterHeight = pageMargins.bottom * 96;
26619
26621
  const footerPaddingFromEdge = pageMargins.footer * 96;
26620
26622
  const footerHeight = Math.max(footerDef?.height || 0, minFooterHeight - footerPaddingFromEdge);
26623
+ const sectionContainer = footerDef?.sectionContainer?.cloneNode(true);
26624
+ const autoPageNumber = sectionContainer?.querySelector('span[data-id="auto-page-number"]');
26625
+ if (autoPageNumber) {
26626
+ const fontSize = autoPageNumber.previousElementSibling?.style?.fontSize || autoPageNumber.nextElementSibling?.style?.fontSize;
26627
+ if (fontSize) autoPageNumber.style.fontSize = fontSize;
26628
+ autoPageNumber.innerText = currentPageNumber;
26629
+ }
26621
26630
  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);
26631
+ if (!footerId && !editor.converter.footerIds["default"]) {
26632
+ footerId = "rId" + generateDocxRandomId();
26633
+ editor.converter.footerIds["default"] = footerId;
26634
+ }
26635
+ if (!editor.converter.footers[footerId]) {
26636
+ editor.converter.footers[footerId] = {
26637
+ type: "doc",
26638
+ content: [{ type: "paragraph", content: [] }]
26639
+ };
26640
26640
  }
26641
+ const data = editor.converter.footers[footerId];
26642
+ const editorSection = createHeaderFooterEditor({
26643
+ editor,
26644
+ data,
26645
+ editorContainer,
26646
+ appendToBody: false,
26647
+ sectionId: footerId,
26648
+ type: "footer",
26649
+ availableHeight: footerHeight
26650
+ });
26651
+ editor.converter.footerEditors.push({
26652
+ id: footerId,
26653
+ editor: editorSection
26654
+ });
26655
+ editorSection.setEditable(false, false);
26656
+ broadcastEditorEvents(editor, editorSection);
26641
26657
  editorContainer.className = "pagination-section-footer";
26642
26658
  editorContainer.style.height = footerHeight + "px";
26643
26659
  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-CBdzo5wX.js";
3
- import { _ as _export_sfc, g as global$1 } from "./editor-h9TerhsW.js";
2
+ import { x as process$1 } from "./converter-Cdyvf3TU.js";
3
+ import { _ as _export_sfc, g as global$1 } from "./editor-CzT_ncye.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-CBdzo5wX.js";
1
+ import { O } from "./chunks/converter-Cdyvf3TU.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-CBdzo5wX.js";
2
- import { D } from "./chunks/docx-zipper-BsYGIOmg.js";
1
+ import "./chunks/converter-Cdyvf3TU.js";
2
+ import { D } from "./chunks/docx-zipper-BDrivuaF.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-h9TerhsW.js";
2
- import "./chunks/converter-CBdzo5wX.js";
3
- import "./chunks/docx-zipper-BsYGIOmg.js";
1
+ import { E } from "./chunks/editor-CzT_ncye.js";
2
+ import "./chunks/converter-Cdyvf3TU.js";
3
+ import "./chunks/docx-zipper-BDrivuaF.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -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-BsYGIOmg.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-BDrivuaF.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-h9TerhsW.js";
13
- import { C, T, l, n, k, m } from "./chunks/editor-h9TerhsW.js";
14
- import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-CBdzo5wX.js";
15
- import { O } from "./chunks/converter-CBdzo5wX.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-CzT_ncye.js";
13
+ import { C, T, l, n, k, m } from "./chunks/editor-CzT_ncye.js";
14
+ import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-Cdyvf3TU.js";
15
+ import { O } from "./chunks/converter-Cdyvf3TU.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-BPcsnrZP.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-k0QAmXB2.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-BsYGIOmg.js";
19
+ import { D } from "./chunks/docx-zipper-BDrivuaF.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-BPcsnrZP.js";
3
- import "./chunks/editor-h9TerhsW.js";
2
+ import { T } from "./chunks/toolbar-k0QAmXB2.js";
3
+ import "./chunks/editor-CzT_ncye.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-CTIoInER.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DeKTatca.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-CmodrhS1.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-B9tq7DUR.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-CTIoInER.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DeKTatca.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.13";
46561
+ this.version = "0.12.15";
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-CmodrhS1.es.js";
2
- import { S, i, m } from "./chunks/super-editor.es-CmodrhS1.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-B9tq7DUR.es.js";
2
+ import { S, i, m } from "./chunks/super-editor.es-B9tq7DUR.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.13";
46560
+ this.version = "0.12.15";
46561
46561
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
46562
46562
  this.superdocId = config.superdocId || v4();
46563
46563
  this.colors = this.config.colors;