@harbour-enterprises/superdoc 0.12.35 → 0.12.36-next.10

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 (40) hide show
  1. package/dist/chunks/{super-editor.es-B4SPMXXo.cjs → super-editor.es-C5-RTRXN.cjs} +1754 -221
  2. package/dist/chunks/{super-editor.es-D8BL6ojY.es.js → super-editor.es-Zxne04bX.es.js} +1754 -221
  3. package/dist/style.css +36 -7
  4. package/dist/super-editor/ai-writer.es.js +2 -2
  5. package/dist/super-editor/chunks/{converter-DQPyKWs_.js → converter-Dhv5kzsP.js} +108 -9
  6. package/dist/super-editor/chunks/{docx-zipper-cJ42om_0.js → docx-zipper-Co1uS6tK.js} +1 -1
  7. package/dist/super-editor/chunks/{editor-B5TyAe8v.js → editor-D2aY4DLZ.js} +1688 -254
  8. package/dist/super-editor/chunks/{toolbar-CDeO5r_T.js → toolbar-CVZmXsRq.js} +2 -2
  9. package/dist/super-editor/components/pagination-helpers.d.ts.map +1 -1
  10. package/dist/super-editor/converter.es.js +1 -1
  11. package/dist/super-editor/core/Attribute.d.ts +2 -2
  12. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  13. package/dist/super-editor/core/Schema.d.ts +2 -2
  14. package/dist/super-editor/core/helpers/annotator.d.ts +2 -0
  15. package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -1
  16. package/dist/super-editor/core/helpers/findWordBounds.d.ts +5 -0
  17. package/dist/super-editor/core/helpers/findWordBounds.d.ts.map +1 -0
  18. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  19. package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
  20. package/dist/super-editor/core/super-converter/v2/importer/autoPageNumberImporter.d.ts.map +1 -1
  21. package/dist/super-editor/docx-zipper.es.js +2 -2
  22. package/dist/super-editor/editor.es.js +3 -3
  23. package/dist/super-editor/extensions/line-height/line-height.d.ts.map +1 -1
  24. package/dist/super-editor/extensions/page-number/page-number.d.ts +10 -0
  25. package/dist/super-editor/extensions/page-number/page-number.d.ts.map +1 -1
  26. package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts +2 -1
  27. package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
  28. package/dist/super-editor/extensions/pagination/pagination.d.ts.map +1 -1
  29. package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
  30. package/dist/super-editor/file-zipper.es.js +1 -1
  31. package/dist/super-editor/style.css +36 -7
  32. package/dist/super-editor/super-editor.es.js +7 -7
  33. package/dist/super-editor/toolbar.es.js +2 -2
  34. package/dist/super-editor.cjs +1 -1
  35. package/dist/super-editor.es.js +1 -1
  36. package/dist/superdoc.cjs +2 -2
  37. package/dist/superdoc.es.js +3 -3
  38. package/dist/superdoc.umd.js +1770 -237
  39. package/dist/superdoc.umd.js.map +1 -1
  40. package/package.json +1 -1
@@ -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-DQPyKWs_.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-B5TyAe8v.js";
2
+ import { x as process$1 } from "./converter-Dhv5kzsP.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-D2aY4DLZ.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1 +1 @@
1
- {"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../src/components/pagination-helpers.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAJW,WAAW,gBAET,IAAI,CAuBhB"}
1
+ {"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../src/components/pagination-helpers.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAJW,WAAW,gBAET,IAAI,CAyBhB"}
@@ -1,4 +1,4 @@
1
- import { O } from "./chunks/converter-DQPyKWs_.js";
1
+ import { O } from "./chunks/converter-Dhv5kzsP.js";
2
2
  export {
3
3
  O as SuperConverter
4
4
  };
@@ -15,14 +15,14 @@ export class Attribute {
15
15
  * @param defaultAttribute Default attribute.
16
16
  * @returns Global extension attributes.
17
17
  */
18
- static "__#5@#getGlobalAttributes"(extensions: any, defaultAttribute: any): any[];
18
+ static "__#6@#getGlobalAttributes"(extensions: any, defaultAttribute: any): any[];
19
19
  /**
20
20
  * Get a list of attributes defined in the Node and Mark extensions.
21
21
  * @param extensions List of all extensions.
22
22
  * @param defaultAttribute Default attribute.
23
23
  * @returns Node and Mark extension attributes.
24
24
  */
25
- static "__#5@#getNodeAndMarksAttributes"(extensions: any, defaultAttribute: any): {
25
+ static "__#6@#getNodeAndMarksAttributes"(extensions: any, defaultAttribute: any): {
26
26
  type: any;
27
27
  name: string;
28
28
  attribute: any;
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA0BA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH;;;;GAIG;AACH;IAuqBE;;;;;;;;;;;;OAYG;IACH,+BARW,IAAI,GAAC,IAAI,GAAC,MAAM,WAChB,OAAO,GACL,OAAO,OAAO,CAc1B;IAED;;;;;OAKG;IACH,qCAFa,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAsBP,OAAO;;;;mBACP,OAAO;;;;WACP,MAAM;;6BAlGS,mBAAmB"}
@@ -16,7 +16,7 @@ export class Schema {
16
16
  * @param editor Editor instance.
17
17
  * @returns Nodes schema.
18
18
  */
19
- static "__#6@#createNodesSchema"(nodeExtensions: any, attributes: any, editor: any): {
19
+ static "__#7@#createNodesSchema"(nodeExtensions: any, attributes: any, editor: any): {
20
20
  [k: string]: any;
21
21
  };
22
22
  /**
@@ -26,7 +26,7 @@ export class Schema {
26
26
  * @param editor Editor instance.
27
27
  * @returns Marks schema.
28
28
  */
29
- static "__#6@#createMarksSchema"(markExtensions: any, attributes: any, editor: any): {
29
+ static "__#7@#createMarksSchema"(markExtensions: any, attributes: any, editor: any): {
30
30
  [k: string]: any;
31
31
  };
32
32
  }
@@ -12,6 +12,7 @@ export function annotateDocument({ annotationValues, hiddenFieldIds, removeEmpty
12
12
  tr: any;
13
13
  editor: any;
14
14
  }): any;
15
+ export function cleanUpListsWithAnnotations(fieldsToDelete: any[], editor: any): void;
15
16
  export namespace AnnotatorHelpers {
16
17
  export { getFieldAttrs };
17
18
  export { processTables };
@@ -20,6 +21,7 @@ export namespace AnnotatorHelpers {
20
21
  export { getAllHeaderFooterEditors };
21
22
  export { updateHeaderFooterFieldAnnotations };
22
23
  export { deleteHeaderFooterFieldAnnotations };
24
+ export { cleanUpListsWithAnnotations };
23
25
  }
24
26
  /**
25
27
  * Annotate headers and footers in the document
@@ -1 +1 @@
1
- {"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAWO,uEAiBN;AAiCM,+DAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAkBA;AA8FM,kDAHI,MAAM,GACJ,KAAQ,CAsCpB;AAwBM;;;;;;;QAyFN;;;;;;;;;;AA/GD;;;;;;;;GAQG;AACH,4GALG;IAAuB,MAAM;IACP,gBAAgB;IAChB,cAAc;CACpC,GAAU,IAAI,CAahB;AAuHD;;;;SAeC;AAED;;;SAeC"}
1
+ {"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAYO,uEAiBN;AAiCM,+DAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAkBA;AA8FM,kDAHI,MAAM,GACJ,KAAQ,CAsCpB;AAwBM;;;;;;;QAyFN;AA+DM,sFAkFN;;;;;;;;;;;AAhQD;;;;;;;;GAQG;AACH,4GALG;IAAuB,MAAM;IACP,gBAAgB;IAChB,cAAc;CACpC,GAAU,IAAI,CAahB;AAuHD;;;;SAeC;AAED;;;SAgBC"}
@@ -0,0 +1,5 @@
1
+ export function findWordBounds(doc: any, pos: any): {
2
+ from: any;
3
+ to: any;
4
+ };
5
+ //# sourceMappingURL=findWordBounds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findWordBounds.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/findWordBounds.js"],"names":[],"mappings":"AAMO;;;EAmBN"}
@@ -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;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAm5DD;;;;;;;;;EAcC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAwEF;;;;;;;;;;;;;mBAvvEa,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,CAwCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAs5DD;;;;;;;;;EAcC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAwEF;;;;;;;;;;;;;mBA5vEa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAEA,mDAIC;AAED,kDAIC;AAED,kDAIC;AAED,mDAIC;AAED,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,8DAKC;AAED,yDAGC;AAYD,yFA6BC;AAED,uEAKC;AAED,kEAoBC;AAED,qDASC;AAOD,2CAKC;AAtFD,2CAGC;AARD,8CAGC;AA0FD;;;;EAUC;AAED,qEAwBC;AAED,0EAGC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAEA,mDAIC;AAED,kDAIC;AAED,kDAIC;AAED,mDAIC;AAED,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,8DAKC;AAED,yDAGC;AAYD,yFA6BC;AAED,uEAKC;AAED,kEAoBC;AAED,qDASC;AAOD,2CAKC;AAtFD,2CAGC;AARD,8CAGC;AA0FD;;;;EAMC;AAED,qEAwBC;AAED,0EAGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"autoPageNumberImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/autoPageNumberImporter.js"],"names":[],"mappings":"AAeA;;GAEG;AACH,wCAGE;AAiBF;;GAEG;AACH,2CAGE"}
1
+ {"version":3,"file":"autoPageNumberImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/autoPageNumberImporter.js"],"names":[],"mappings":"AAsBA;;GAEG;AACH,wCAGE;AAsBF;;GAEG;AACH,2CAGE"}
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-DQPyKWs_.js";
2
- import { D } from "./chunks/docx-zipper-cJ42om_0.js";
1
+ import "./chunks/converter-Dhv5kzsP.js";
2
+ import { D } from "./chunks/docx-zipper-Co1uS6tK.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-B5TyAe8v.js";
2
- import "./chunks/converter-DQPyKWs_.js";
3
- import "./chunks/docx-zipper-cJ42om_0.js";
1
+ import { E } from "./chunks/editor-D2aY4DLZ.js";
2
+ import "./chunks/converter-Dhv5kzsP.js";
3
+ import "./chunks/docx-zipper-Co1uS6tK.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"line-height.d.ts","sourceRoot":"","sources":["../../../src/extensions/line-height/line-height.js"],"names":[],"mappings":"AAGA,6BAoDG"}
1
+ {"version":3,"file":"line-height.d.ts","sourceRoot":"","sources":["../../../src/extensions/line-height/line-height.js"],"names":[],"mappings":"AAGA,6BA0DG"}
@@ -1,3 +1,13 @@
1
1
  export const PageNumber: any;
2
2
  export const TotalPageCount: any;
3
+ export class AutoPageNumberNodeView {
4
+ constructor(node: any, getPos: any, decorations: any, editor: any, htmlAttributes?: {});
5
+ node: any;
6
+ editor: any;
7
+ view: any;
8
+ getPos: any;
9
+ dom: HTMLSpanElement;
10
+ update(node: any): boolean;
11
+ #private;
12
+ }
3
13
  //# sourceMappingURL=page-number.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page-number.d.ts","sourceRoot":"","sources":["../../../src/extensions/page-number/page-number.js"],"names":[],"mappings":"AAEA,6BAuBG;AAEH,iCAuBG"}
1
+ {"version":3,"file":"page-number.d.ts","sourceRoot":"","sources":["../../../src/extensions/page-number/page-number.js"],"names":[],"mappings":"AAEA,6BAyEG;AAEH,iCAoEG;AAGH;IACE,wFAQC;IAPC,UAAgB;IAChB,YAAoB;IACpB,UAAuB;IACvB,YAAoB;IAGpB,qBAAgD;IAmDlD,2BAIC;;CACF"}
@@ -1,6 +1,6 @@
1
1
  export const PaginationPluginKey: PluginKey<any>;
2
2
  export function initPaginationData(editor: SuperEditor): any;
3
- export function createHeaderFooterEditor({ editor, data, editorContainer, appendToBody, sectionId, type, availableHeight }: {
3
+ export function createHeaderFooterEditor({ editor, data, editorContainer, appendToBody, sectionId, type, availableHeight, currentPageNumber, }: {
4
4
  editor: any;
5
5
  data: any;
6
6
  editorContainer: any;
@@ -8,6 +8,7 @@ export function createHeaderFooterEditor({ editor, data, editorContainer, append
8
8
  sectionId: any;
9
9
  type: any;
10
10
  availableHeight: any;
11
+ currentPageNumber: any;
11
12
  }): any;
12
13
  export function broadcastEditorEvents(editor: any, sectionEditor: any): void;
13
14
  export function toggleHeaderFooterEditMode(editor: any, focusedSectionEditor: any, isEditMode: any): void;
@@ -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;;;;;;;;QAkEN;AAEM,6EAeN;AAEM,0GAoBN;AAEM;;;8DAmBN;0BA7MyB,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;;;;;;;;;QAqEN;AAEM,6EAeN;AAEM,0GAoBN;AAEM;;;8DAmBN;0BAhNyB,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination.js"],"names":[],"mappings":"AAaA,6BAgJG"}
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination.js"],"names":[],"mappings":"AAkBA,6BAsJG"}
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAMA,4BAkJG"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAMA,4BAmJG"}
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-cJ42om_0.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-Co1uS6tK.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -798,6 +798,22 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
798
798
  .sd-ai-highlight-pulse {
799
799
  animation: ai-pulse 1.5s ease-in-out infinite;
800
800
  }
801
+ .sd-editor-auto-page-number,
802
+ .sd-editor-auto-total-pages {
803
+ transition: all 250ms ease;
804
+ border-bottom: 1px solid #9A9A9A;
805
+ cursor: not-allowed;
806
+ }
807
+ .sd-editor-auto-page-numbe:hover,
808
+ .sd-editor-auto-total-pages:hover {
809
+ border-bottom: 1px solid #4f4f4f;
810
+ }
811
+ .sd-editor-auto-page-number-content {
812
+ pointer-events: none;
813
+ }
814
+ :root {
815
+ --sd-editor-separator-height: 18px;
816
+ }
801
817
  .pagination-section-header {
802
818
  cursor: default;
803
819
  }
@@ -820,14 +836,24 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
820
836
  .pagination-separator {
821
837
  position: relative;
822
838
  display: block;
823
- height: 18px;
824
- min-height: 18px;
839
+ height: var(--sd-editor-separator-height);
840
+ min-height: var(--sd-editor-separator-height);
825
841
  min-width: 100%;
826
842
  width: 100%;
827
843
  border-top: 1px solid #DBDBDB;
828
844
  border-bottom: 1px solid #DBDBDB;
829
845
  cursor: default;
830
846
  }
847
+ .pagination-separator--table {
848
+ border: 0;
849
+ }
850
+ .pagination-separator-floating {
851
+ position: absolute;
852
+ height: var(--sd-editor-separator-height);
853
+ border-top: 1px solid #DBDBDB;
854
+ border-bottom: 1px solid #DBDBDB;
855
+ pointer-events: none;
856
+ }
831
857
  .pagination-inner {
832
858
  position: absolute;
833
859
  top: 0;
@@ -1482,7 +1508,10 @@ on the right if it is inside shape textbox.
1482
1508
  user-select: none;
1483
1509
  }
1484
1510
 
1485
- .super-editor-container[data-v-199a4ecf] {
1511
+ .editor-element[data-v-4b700df1] {
1512
+ position: relative;
1513
+ }
1514
+ .super-editor-container[data-v-4b700df1] {
1486
1515
  width: auto;
1487
1516
  height: auto;
1488
1517
  min-width: 8in;
@@ -1491,13 +1520,13 @@ on the right if it is inside shape textbox.
1491
1520
  display: flex;
1492
1521
  flex-direction: column;
1493
1522
  }
1494
- .ruler[data-v-199a4ecf] {
1523
+ .ruler[data-v-4b700df1] {
1495
1524
  margin-bottom: 2px;
1496
1525
  }
1497
- .super-editor[data-v-199a4ecf] {
1526
+ .super-editor[data-v-4b700df1] {
1498
1527
  color: initial;
1499
1528
  }
1500
- .placeholder-editor[data-v-199a4ecf] {
1529
+ .placeholder-editor[data-v-4b700df1] {
1501
1530
  position: absolute;
1502
1531
  top: 0;
1503
1532
  left: 0;
@@ -1509,7 +1538,7 @@ on the right if it is inside shape textbox.
1509
1538
  background-color: white;
1510
1539
  box-sizing: border-box;
1511
1540
  }
1512
- .placeholder-title[data-v-199a4ecf] {
1541
+ .placeholder-title[data-v-4b700df1] {
1513
1542
  display: flex;
1514
1543
  justify-content: center;
1515
1544
  margin-bottom: 40px;
@@ -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, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, 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-B5TyAe8v.js";
13
- import { o, C, T, m, p, l, n } from "./chunks/editor-B5TyAe8v.js";
14
- import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-DQPyKWs_.js";
15
- import { O } from "./chunks/converter-DQPyKWs_.js";
12
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, 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-D2aY4DLZ.js";
13
+ import { o, C, T, m, p, l, n } from "./chunks/editor-D2aY4DLZ.js";
14
+ import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-Dhv5kzsP.js";
15
+ import { O } from "./chunks/converter-Dhv5kzsP.js";
16
16
  import { ref, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, 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-CDeO5r_T.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-CVZmXsRq.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-cJ42om_0.js";
19
+ import { D } from "./chunks/docx-zipper-Co1uS6tK.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  (function(module) {
@@ -3394,7 +3394,7 @@ const _sfc_main$2 = {
3394
3394
  };
3395
3395
  }
3396
3396
  };
3397
- const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-199a4ecf"]]);
3397
+ const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-4b700df1"]]);
3398
3398
  const _sfc_main$1 = {
3399
3399
  __name: "BasicUpload",
3400
3400
  emits: ["file-change"],
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-CDeO5r_T.js";
3
- import "./chunks/editor-B5TyAe8v.js";
2
+ import { T } from "./chunks/toolbar-CVZmXsRq.js";
3
+ import "./chunks/editor-D2aY4DLZ.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-B4SPMXXo.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-C5-RTRXN.cjs");
4
4
  require("./chunks/vue-DPZkajuO.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-D8BL6ojY.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-Zxne04bX.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-B4SPMXXo.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-C5-RTRXN.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");
@@ -46571,7 +46571,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
46571
46571
  this.config.colors = shuffleArray(this.config.colors);
46572
46572
  this.userColorMap = /* @__PURE__ */ new Map();
46573
46573
  this.colorIndex = 0;
46574
- this.version = "0.12.35";
46574
+ this.version = "0.12.36-next.10";
46575
46575
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
46576
46576
  this.superdocId = config.superdocId || uuid.v4();
46577
46577
  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-D8BL6ojY.es.js";
2
- import { a, S, i, n } from "./chunks/super-editor.es-D8BL6ojY.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-Zxne04bX.es.js";
2
+ import { a, S, i, n } from "./chunks/super-editor.es-Zxne04bX.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";
@@ -46570,7 +46570,7 @@ class SuperDoc extends EventEmitter {
46570
46570
  this.config.colors = shuffleArray(this.config.colors);
46571
46571
  this.userColorMap = /* @__PURE__ */ new Map();
46572
46572
  this.colorIndex = 0;
46573
- this.version = "0.12.35";
46573
+ this.version = "0.12.36-next.10";
46574
46574
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
46575
46575
  this.superdocId = config.superdocId || v4();
46576
46576
  this.colors = this.config.colors;