superdoc 1.0.0-beta.12 → 1.0.0-beta.13

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 (29) hide show
  1. package/dist/chunks/{PdfViewer-BL2O6Y4C.es.js → PdfViewer-D0cPi5hG.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-CWb8_m3N.cjs → PdfViewer-D_E86Mtr.cjs} +1 -1
  3. package/dist/chunks/{index-Bs29IidK.es.js → index-BHmLKAul.es.js} +3 -3
  4. package/dist/chunks/{index-Cha-6AFg-3WCQFN4m.es.js → index-BMAfbNel-CvPc3jnD.es.js} +1 -1
  5. package/dist/chunks/{index-Cha-6AFg-28WIXlKN.cjs → index-BMAfbNel-DBZCkkMj.cjs} +1 -1
  6. package/dist/chunks/{index-ANaY3G41.cjs → index-CL4VptDO.cjs} +3 -3
  7. package/dist/chunks/{super-editor.es-C-5T9RJI.es.js → super-editor.es-5gtBhP8I.es.js} +9 -9
  8. package/dist/chunks/{super-editor.es-CBMp55sv.cjs → super-editor.es-riuOlaxm.cjs} +9 -9
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts +2 -2
  10. package/dist/packages/superdoc/src/core/types/index.d.ts +2 -2
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-B4P0mjU2.js → converter-D9KiDgXx.js} +1 -1
  13. package/dist/super-editor/chunks/{docx-zipper-D5Do5rOh.js → docx-zipper-DQmUj-ef.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-CoLzF_z4.js → editor-ByPqJ2k8.js} +10 -10
  15. package/dist/super-editor/chunks/{index-Cha-6AFg.js → index-BMAfbNel.js} +1 -1
  16. package/dist/super-editor/chunks/{toolbar-Bt8ifcaq.js → toolbar-Da2cOhJ-.js} +2 -2
  17. package/dist/super-editor/converter.es.js +1 -1
  18. package/dist/super-editor/docx-zipper.es.js +2 -2
  19. package/dist/super-editor/editor.es.js +3 -3
  20. package/dist/super-editor/file-zipper.es.js +1 -1
  21. package/dist/super-editor/super-editor.es.js +6 -6
  22. package/dist/super-editor/toolbar.es.js +2 -2
  23. package/dist/super-editor.cjs +1 -1
  24. package/dist/super-editor.es.js +1 -1
  25. package/dist/superdoc.cjs +2 -2
  26. package/dist/superdoc.es.js +2 -2
  27. package/dist/superdoc.umd.js +11 -11
  28. package/dist/superdoc.umd.js.map +1 -1
  29. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { y as defineComponent, z as h, O as Transition, $ as process$1, J as watchEffect, a as computed, r as ref, j as onMounted, W as onUnmounted, b as createElementBlock, o as openBlock, f as createBaseVNode, e as createCommentVNode, u as createVNode, v as unref } from "./vue-CztqUvm1.es.js";
2
- import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-Bs29IidK.es.js";
2
+ import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-BHmLKAul.es.js";
3
3
  function self(vars) {
4
4
  const {
5
5
  opacityDisabled,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("./vue-ARQSyfaw.cjs");
4
- const superdoc = require("./index-ANaY3G41.cjs");
4
+ const superdoc = require("./index-CL4VptDO.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,4 +1,4 @@
1
- import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-C-5T9RJI.es.js";
1
+ import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-5gtBhP8I.es.js";
2
2
  import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
3
3
  import { E as EventEmitter } from "./eventemitter3-ByBH0NYV.es.js";
4
4
  import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
@@ -17210,7 +17210,7 @@ const _sfc_main = {
17210
17210
  __name: "SuperDoc",
17211
17211
  emits: ["selection-update"],
17212
17212
  setup(__props, { emit: __emit }) {
17213
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-BL2O6Y4C.es.js"));
17213
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-D0cPi5hG.es.js"));
17214
17214
  const superdocStore = useSuperdocStore();
17215
17215
  const commentsStore = useCommentsStore();
17216
17216
  const {
@@ -18063,7 +18063,7 @@ class SuperDoc extends EventEmitter {
18063
18063
  this.config.colors = shuffleArray(this.config.colors);
18064
18064
  this.userColorMap = /* @__PURE__ */ new Map();
18065
18065
  this.colorIndex = 0;
18066
- this.version = "1.0.0-beta.12";
18066
+ this.version = "1.0.0-beta.13";
18067
18067
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18068
18068
  this.superdocId = config.superdocId || v4();
18069
18069
  this.colors = this.config.colors;
@@ -1,4 +1,4 @@
1
- import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-C-5T9RJI.es.js";
1
+ import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-5gtBhP8I.es.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG-CvBqQJbG.es.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./super-editor.es-CBMp55sv.cjs");
3
+ const superEditor_es = require("./super-editor.es-riuOlaxm.cjs");
4
4
  const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
5
5
  function bail(error) {
6
6
  if (error) {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-CBMp55sv.cjs");
2
+ const superEditor_es = require("./super-editor.es-riuOlaxm.cjs");
3
3
  const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
4
4
  const eventemitter3 = require("./eventemitter3-CFCpOk3d.cjs");
5
5
  const provider = require("@hocuspocus/provider");
@@ -17227,7 +17227,7 @@ const _sfc_main = {
17227
17227
  __name: "SuperDoc",
17228
17228
  emits: ["selection-update"],
17229
17229
  setup(__props, { emit: __emit }) {
17230
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-CWb8_m3N.cjs")));
17230
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-D_E86Mtr.cjs")));
17231
17231
  const superdocStore = useSuperdocStore();
17232
17232
  const commentsStore = useCommentsStore();
17233
17233
  const {
@@ -18080,7 +18080,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
18080
18080
  this.config.colors = shuffleArray(this.config.colors);
18081
18081
  this.userColorMap = /* @__PURE__ */ new Map();
18082
18082
  this.colorIndex = 0;
18083
- this.version = "1.0.0-beta.12";
18083
+ this.version = "1.0.0-beta.13";
18084
18084
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18085
18085
  this.superdocId = config.superdocId || uuid.v4();
18086
18086
  this.colors = this.config.colors;
@@ -35588,7 +35588,7 @@ const _SuperConverter = class _SuperConverter2 {
35588
35588
  static getStoredSuperdocVersion(docx) {
35589
35589
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35590
35590
  }
35591
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.12") {
35591
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.13") {
35592
35592
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35593
35593
  }
35594
35594
  /**
@@ -52295,7 +52295,7 @@ const isHeadless = (editor) => {
52295
52295
  const shouldSkipNodeView = (editor) => {
52296
52296
  return isHeadless(editor);
52297
52297
  };
52298
- const summaryVersion = "1.0.0-beta.12";
52298
+ const summaryVersion = "1.0.0-beta.13";
52299
52299
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
52300
52300
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
52301
52301
  function mapAttributes(attrs) {
@@ -52850,7 +52850,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
52850
52850
  /**
52851
52851
  * Attach styles and attributes to the editor element
52852
52852
  */
52853
- updateEditorStyles(element, proseMirror, hasPaginationEnabled = true) {
52853
+ updateEditorStyles(element, proseMirror) {
52854
52854
  const { pageSize, pageMargins } = this.converter.pageStyles ?? {};
52855
52855
  if (!proseMirror || !element) {
52856
52856
  return;
@@ -52888,9 +52888,9 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
52888
52888
  element.style.webkitOverflowScrolling = "touch";
52889
52889
  const defaultLineHeight = 1.2;
52890
52890
  proseMirror.style.lineHeight = String(defaultLineHeight);
52891
- if (pageMargins?.top != null) {
52891
+ if (this.presentationEditor && pageMargins?.top != null) {
52892
52892
  proseMirror.style.paddingTop = `${pageMargins.top}in`;
52893
- } else if (!hasPaginationEnabled) {
52893
+ } else if (this.presentationEditor) {
52894
52894
  proseMirror.style.paddingTop = "1in";
52895
52895
  } else {
52896
52896
  proseMirror.style.paddingTop = "0";
@@ -52904,10 +52904,10 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
52904
52904
  *
52905
52905
  * @param element - The DOM element to apply styles to
52906
52906
  */
52907
- initDefaultStyles(element = this.element, isPaginationEnabled = true) {
52907
+ initDefaultStyles(element = this.element) {
52908
52908
  if (this.options.isHeadless || this.options.suppressDefaultDocxStyles) return;
52909
52909
  const proseMirror = element?.querySelector(".ProseMirror");
52910
- this.updateEditorStyles(element, proseMirror, isPaginationEnabled);
52910
+ this.updateEditorStyles(element, proseMirror);
52911
52911
  this.initMobileStyles(element);
52912
52912
  }
52913
52913
  /**
@@ -53074,7 +53074,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53074
53074
  { default: remarkStringify },
53075
53075
  { default: remarkGfm }
53076
53076
  ] = await Promise.all([
53077
- import("./index-Cha-6AFg-3WCQFN4m.es.js"),
53077
+ import("./index-BMAfbNel-CvPc3jnD.es.js"),
53078
53078
  import("./index-DRCvimau-Cw339678.es.js"),
53079
53079
  import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
53080
53080
  import("./index-D_sWOSiG-DE96TaT5.es.js"),
@@ -53279,7 +53279,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53279
53279
  * Process collaboration migrations
53280
53280
  */
53281
53281
  processCollaborationMigrations() {
53282
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.12");
53282
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.13");
53283
53283
  if (!this.options.ydoc) return;
53284
53284
  const metaMap = this.options.ydoc.getMap("meta");
53285
53285
  let docVersion = metaMap.get("version");
@@ -35605,7 +35605,7 @@ const _SuperConverter = class _SuperConverter2 {
35605
35605
  static getStoredSuperdocVersion(docx) {
35606
35606
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35607
35607
  }
35608
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.12") {
35608
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.13") {
35609
35609
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35610
35610
  }
35611
35611
  /**
@@ -52312,7 +52312,7 @@ const isHeadless = (editor) => {
52312
52312
  const shouldSkipNodeView = (editor) => {
52313
52313
  return isHeadless(editor);
52314
52314
  };
52315
- const summaryVersion = "1.0.0-beta.12";
52315
+ const summaryVersion = "1.0.0-beta.13";
52316
52316
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
52317
52317
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
52318
52318
  function mapAttributes(attrs) {
@@ -52867,7 +52867,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
52867
52867
  /**
52868
52868
  * Attach styles and attributes to the editor element
52869
52869
  */
52870
- updateEditorStyles(element, proseMirror, hasPaginationEnabled = true) {
52870
+ updateEditorStyles(element, proseMirror) {
52871
52871
  const { pageSize, pageMargins } = this.converter.pageStyles ?? {};
52872
52872
  if (!proseMirror || !element) {
52873
52873
  return;
@@ -52905,9 +52905,9 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
52905
52905
  element.style.webkitOverflowScrolling = "touch";
52906
52906
  const defaultLineHeight = 1.2;
52907
52907
  proseMirror.style.lineHeight = String(defaultLineHeight);
52908
- if (pageMargins?.top != null) {
52908
+ if (this.presentationEditor && pageMargins?.top != null) {
52909
52909
  proseMirror.style.paddingTop = `${pageMargins.top}in`;
52910
- } else if (!hasPaginationEnabled) {
52910
+ } else if (this.presentationEditor) {
52911
52911
  proseMirror.style.paddingTop = "1in";
52912
52912
  } else {
52913
52913
  proseMirror.style.paddingTop = "0";
@@ -52921,10 +52921,10 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
52921
52921
  *
52922
52922
  * @param element - The DOM element to apply styles to
52923
52923
  */
52924
- initDefaultStyles(element = this.element, isPaginationEnabled = true) {
52924
+ initDefaultStyles(element = this.element) {
52925
52925
  if (this.options.isHeadless || this.options.suppressDefaultDocxStyles) return;
52926
52926
  const proseMirror = element?.querySelector(".ProseMirror");
52927
- this.updateEditorStyles(element, proseMirror, isPaginationEnabled);
52927
+ this.updateEditorStyles(element, proseMirror);
52928
52928
  this.initMobileStyles(element);
52929
52929
  }
52930
52930
  /**
@@ -53091,7 +53091,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53091
53091
  { default: remarkStringify },
53092
53092
  { default: remarkGfm }
53093
53093
  ] = await Promise.all([
53094
- Promise.resolve().then(() => require("./index-Cha-6AFg-28WIXlKN.cjs")),
53094
+ Promise.resolve().then(() => require("./index-BMAfbNel-DBZCkkMj.cjs")),
53095
53095
  Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
53096
53096
  Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
53097
53097
  Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
@@ -53296,7 +53296,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53296
53296
  * Process collaboration migrations
53297
53297
  */
53298
53298
  processCollaborationMigrations() {
53299
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.12");
53299
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.13");
53300
53300
  if (!this.options.ydoc) return;
53301
53301
  const metaMap = this.options.ydoc.getMap("meta");
53302
53302
  let docVersion = metaMap.get("version");
@@ -164,8 +164,8 @@ export class SuperDoc extends EventEmitter<string | symbol, any> {
164
164
  width: number;
165
165
  height: number;
166
166
  };
167
- updateEditorStyles(element: any, proseMirror: any, hasPaginationEnabled?: boolean): void;
168
- initDefaultStyles(element?: null, isPaginationEnabled?: boolean): void;
167
+ updateEditorStyles(element: any, proseMirror: any): void;
168
+ initDefaultStyles(element?: null): void;
169
169
  initMobileStyles(element: any): void;
170
170
  dispatch(tr: any): void;
171
171
  getDocumentIdentifier(): Promise<any>;
@@ -254,8 +254,8 @@ export type Editor = {
254
254
  width: number;
255
255
  height: number;
256
256
  };
257
- updateEditorStyles(element: any, proseMirror: any, hasPaginationEnabled?: boolean): void;
258
- initDefaultStyles(element?: null, isPaginationEnabled?: boolean): void;
257
+ updateEditorStyles(element: any, proseMirror: any): void;
258
+ initDefaultStyles(element?: null): void;
259
259
  initMobileStyles(element: any): void;
260
260
  dispatch(tr: any): void;
261
261
  getDocumentIdentifier(): Promise<any>;
@@ -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-B4P0mjU2.js";
3
- import { _ as _export_sfc } from "./chunks/editor-CoLzF_z4.js";
2
+ import { T as TextSelection } from "./chunks/converter-D9KiDgXx.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-ByPqJ2k8.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 = {}) {
@@ -35869,7 +35869,7 @@ const _SuperConverter = class _SuperConverter {
35869
35869
  static getStoredSuperdocVersion(docx) {
35870
35870
  return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
35871
35871
  }
35872
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.12") {
35872
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.13") {
35873
35873
  return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
35874
35874
  }
35875
35875
  /**
@@ -1,4 +1,4 @@
1
- import { p as process$1, aI as commonjsGlobal, B as Buffer, aJ as getDefaultExportFromCjs, aK as getContentTypesFromXml, aL as xmljs } from "./converter-B4P0mjU2.js";
1
+ import { p as process$1, aI as commonjsGlobal, B as Buffer, aJ as getDefaultExportFromCjs, aK as getContentTypesFromXml, aL as xmljs } from "./converter-D9KiDgXx.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,8 +12,8 @@ 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, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, dispatchWithFallback_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, getPluginKeyName_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _map, _editor2, _descriptors, _collections, _editorEntries, _maxCachedEditors, _editorAccessOrder, _pendingCreations, _cacheHits, _cacheMisses, _evictions, _HeaderFooterEditorManager_instances, hasConverter_fn, extractCollections_fn, collectDescriptors_fn, teardownMissingEditors_fn, teardownEditors_fn, createEditor_fn, createEditorContainer_fn, registerConverterEditor_fn, unregisterConverterEditor_fn, updateAccessOrder_fn, enforceCacheSizeLimit_fn, _manager, _mediaFiles, _blockCache, _HeaderFooterLayoutAdapter_instances, getBlocks_fn, getConverterContext_fn, _instances, _options, _editor3, _visibleHost, _viewportHost, _painterHost, _selectionOverlay, _hiddenHost, _layoutOptions, _layoutState, _domPainter, _layoutError, _layoutErrorState, _errorBanner, _errorBannerMessage, _telemetryEmitter, _renderScheduled, _pendingDocChange, _isRerendering, _selectionUpdateScheduled, _remoteCursorUpdateScheduled, _rafHandle, _editorListeners, _sectionMetadata, _documentMode, _inputBridge, _trackedChangesMode, _trackedChangesEnabled, _trackedChangesOverrides, _headerFooterManager, _headerFooterAdapter, _headerFooterIdentifier, _headerLayoutResults, _footerLayoutResults, _headerDecorationProvider, _footerDecorationProvider, _headerFooterManagerCleanups, _headerRegions, _footerRegions, _session, _activeHeaderFooterEditor, _hoverOverlay, _hoverTooltip, _modeBanner, _ariaLiveRegion, _hoverRegion, _clickCount, _lastClickTime, _lastClickPosition, _remoteCursorState, _remoteCursorDirty, _remoteCursorOverlay, _localSelectionLayer, _awarenessCleanup, _scrollCleanup, _remoteCursorRafHandle, _scrollTimeout, _PresentationEditor_instances, aggregateLayoutBounds_fn, safeCleanup_fn, setupEditorListeners_fn, setupCollaborationCursors_fn, normalizeAwarenessStates_fn, getFallbackColor_fn, getValidatedColor_fn, scheduleRemoteCursorUpdate_fn, scheduleRemoteCursorReRender_fn, updateRemoteCursors_fn, renderRemoteCursors_fn, renderRemoteCaret_fn, renderRemoteCursorLabel_fn, renderRemoteSelection_fn, setupPointerHandlers_fn, setupInputBridge_fn, initHeaderFooterRegistry_fn, _handlePointerDown, getFirstTextPosition_fn, registerPointerClick_fn, selectWordAt_fn, selectParagraphAt_fn, isWordCharacter_fn, _handlePointerMove, _handlePointerLeave, _handleDoubleClick, _handleKeyDown, focusHeaderFooterShortcut_fn, scheduleRerender_fn, flushRerenderQueue_fn, rerender_fn, ensurePainter_fn, scheduleSelectionUpdate_fn, updateSelection_fn, resolveLayoutOptions_fn, buildHeaderFooterInput_fn, computeHeaderFooterConstraints_fn, updateDecorationProviders_fn, createDecorationProvider_fn, computeDecorationBox_fn, rebuildHeaderFooterRegions_fn, hitTestHeaderFooterRegion_fn, pointInRegion_fn, activateHeaderFooterRegion_fn, enterHeaderFooterMode_fn, exitHeaderFooterMode_fn, getActiveDomTarget_fn, emitHeaderFooterModeChanged_fn, emitHeaderFooterEditingContext_fn, updateAwarenessSession_fn, updateModeBanner_fn, announce_fn, validateHeaderFooterEditPermission_fn, emitHeaderFooterEditBlocked_fn, resolveDescriptorForRegion_fn, getBodyPageHeight_fn, getHeaderFooterPageHeight_fn, renderSelectionRects_fn, renderHoverRegion_fn, clearHoverRegion_fn, renderCaretOverlay_fn, getHeaderFooterContext_fn, computeHeaderFooterSelectionRects_fn, computeHeaderFooterCaretRect_fn, syncTrackedChangesPreferences_fn, deriveTrackedChangesMode_fn, deriveTrackedChangesEnabled_fn, getTrackChangesPluginState_fn, computeDefaultLayoutDefaults_fn, parseColumns_fn, inchesToPx_fn, applyZoom_fn, createLayoutMetrics_fn, convertPageLocalToOverlayCoords_fn, normalizeClientPoint_fn, computeCaretLayoutRect_fn, findLineContainingPos_fn, lineHeightBeforeIndex_fn, getCurrentPageIndex_fn, findRegionForPage_fn, handleLayoutError_fn, decorateError_fn, showLayoutErrorBanner_fn, dismissErrorBanner_fn, createHiddenHost_fn, _windowRoot, _layoutSurfaces, _getTargetDom, _onTargetChanged, _listeners, _currentTarget, _destroyed, _useWindowFallback, _PresentationInputBridge_instances, addListener_fn, dispatchToTarget_fn, forwardKeyboardEvent_fn, forwardTextEvent_fn, forwardCompositionEvent_fn, forwardContextMenu_fn, isEventOnActiveTarget_fn, shouldSkipSurface_fn, isInLayoutSurface_fn, getListenerTargets_fn, isPlainCharacterKey_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ParagraphNodeView_instances, checkShouldUpdate_fn, updateHTMLAttributes_fn, updateDOMStyles_fn, resolveNeighborParagraphProperties_fn, updateListStyles_fn, initList_fn, checkIsList_fn, createMarker_fn, createSeparator_fn, calculateTabSeparatorStyle_fn, calculateMarkerStyle_fn, removeList_fn, getParagraphContext_fn, scheduleAnimation_fn, cancelScheduledAnimation_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, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, G as twipsToInches, H as inchesToTwips, I as ptToTwips, J as getResolvedParagraphProperties, K as linesToTwips, L as ListHelpers, O as updateNumberingProperties, Q as changeListLevel, U as findParentNode, V as isList, W as isMacOS, X as isIOS, Y as getSchemaTypeByName, Z as inputRulesPlugin, _ as TrackDeleteMarkName, $ as TrackInsertMarkName, a0 as v4, a1 as TrackFormatMarkName, a2 as comments_module_events, a3 as findMark, a4 as objectIncludes, a5 as AddMarkStep, a6 as RemoveMarkStep, a7 as twipsToLines, a8 as pixelsToTwips, a9 as helpers, aa as posToDOMRect, ab as CommandService, ac as SuperConverter, ad as createDocument, ae as createDocFromMarkdown, af as createDocFromHTML, ag as EditorState, ah as isActive, ai as unflattenListsInHtml, aj as resolveParagraphProperties, ak as _getReferencedTableStyles, al as parseSizeUnit, am as minMax, an as updateDOMAttributes, ao as findChildren$5, ap as generateRandomSigned32BitIntStrId, aq as calculateResolvedParagraphProperties, ar as encodeCSSFromPPr, as as twipsToPixels$2, at as resolveRunProperties, au as encodeCSSFromRPr, av as generateOrderedListIndex, aw as docxNumberingHelpers, ax as InputRule, ay as convertSizeToCSS, az as SelectionRange, aA as Transform, aB as findParentNodeClosestToPos, aC as isInTable$1, aD as generateDocxRandomId, aE as insertNewRelationship, aF as inchesToPixels, aG as kebabCase, aH as getUnderlineCssString } from "./converter-B4P0mjU2.js";
16
- import { D as DocxZipper } from "./docx-zipper-D5Do5rOh.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, G as twipsToInches, H as inchesToTwips, I as ptToTwips, J as getResolvedParagraphProperties, K as linesToTwips, L as ListHelpers, O as updateNumberingProperties, Q as changeListLevel, U as findParentNode, V as isList, W as isMacOS, X as isIOS, Y as getSchemaTypeByName, Z as inputRulesPlugin, _ as TrackDeleteMarkName, $ as TrackInsertMarkName, a0 as v4, a1 as TrackFormatMarkName, a2 as comments_module_events, a3 as findMark, a4 as objectIncludes, a5 as AddMarkStep, a6 as RemoveMarkStep, a7 as twipsToLines, a8 as pixelsToTwips, a9 as helpers, aa as posToDOMRect, ab as CommandService, ac as SuperConverter, ad as createDocument, ae as createDocFromMarkdown, af as createDocFromHTML, ag as EditorState, ah as isActive, ai as unflattenListsInHtml, aj as resolveParagraphProperties, ak as _getReferencedTableStyles, al as parseSizeUnit, am as minMax, an as updateDOMAttributes, ao as findChildren$5, ap as generateRandomSigned32BitIntStrId, aq as calculateResolvedParagraphProperties, ar as encodeCSSFromPPr, as as twipsToPixels$2, at as resolveRunProperties, au as encodeCSSFromRPr, av as generateOrderedListIndex, aw as docxNumberingHelpers, ax as InputRule, ay as convertSizeToCSS, az as SelectionRange, aA as Transform, aB as findParentNodeClosestToPos, aC as isInTable$1, aD as generateDocxRandomId, aE as insertNewRelationship, aF as inchesToPixels, aG as kebabCase, aH as getUnderlineCssString } from "./converter-D9KiDgXx.js";
16
+ import { D as DocxZipper } from "./docx-zipper-DQmUj-ef.js";
17
17
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
18
18
  var GOOD_LEAF_SIZE = 200;
19
19
  var RopeSequence = function RopeSequence2() {
@@ -13553,7 +13553,7 @@ const isHeadless = (editor) => {
13553
13553
  const shouldSkipNodeView = (editor) => {
13554
13554
  return isHeadless(editor);
13555
13555
  };
13556
- const summaryVersion = "1.0.0-beta.12";
13556
+ const summaryVersion = "1.0.0-beta.13";
13557
13557
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
13558
13558
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
13559
13559
  function mapAttributes(attrs) {
@@ -14111,7 +14111,7 @@ const _Editor = class _Editor extends EventEmitter {
14111
14111
  /**
14112
14112
  * Attach styles and attributes to the editor element
14113
14113
  */
14114
- updateEditorStyles(element, proseMirror, hasPaginationEnabled = true) {
14114
+ updateEditorStyles(element, proseMirror) {
14115
14115
  const { pageSize, pageMargins } = this.converter.pageStyles ?? {};
14116
14116
  if (!proseMirror || !element) {
14117
14117
  return;
@@ -14149,9 +14149,9 @@ const _Editor = class _Editor extends EventEmitter {
14149
14149
  element.style.webkitOverflowScrolling = "touch";
14150
14150
  const defaultLineHeight = 1.2;
14151
14151
  proseMirror.style.lineHeight = String(defaultLineHeight);
14152
- if (pageMargins?.top != null) {
14152
+ if (this.presentationEditor && pageMargins?.top != null) {
14153
14153
  proseMirror.style.paddingTop = `${pageMargins.top}in`;
14154
- } else if (!hasPaginationEnabled) {
14154
+ } else if (this.presentationEditor) {
14155
14155
  proseMirror.style.paddingTop = "1in";
14156
14156
  } else {
14157
14157
  proseMirror.style.paddingTop = "0";
@@ -14165,10 +14165,10 @@ const _Editor = class _Editor extends EventEmitter {
14165
14165
  *
14166
14166
  * @param element - The DOM element to apply styles to
14167
14167
  */
14168
- initDefaultStyles(element = this.element, isPaginationEnabled = true) {
14168
+ initDefaultStyles(element = this.element) {
14169
14169
  if (this.options.isHeadless || this.options.suppressDefaultDocxStyles) return;
14170
14170
  const proseMirror = element?.querySelector(".ProseMirror");
14171
- this.updateEditorStyles(element, proseMirror, isPaginationEnabled);
14171
+ this.updateEditorStyles(element, proseMirror);
14172
14172
  this.initMobileStyles(element);
14173
14173
  }
14174
14174
  /**
@@ -14335,7 +14335,7 @@ const _Editor = class _Editor extends EventEmitter {
14335
14335
  { default: remarkStringify },
14336
14336
  { default: remarkGfm }
14337
14337
  ] = await Promise.all([
14338
- import("./index-Cha-6AFg.js"),
14338
+ import("./index-BMAfbNel.js"),
14339
14339
  import("./index-DRCvimau.js"),
14340
14340
  import("./index-C_x_N6Uh.js"),
14341
14341
  import("./index-D_sWOSiG.js"),
@@ -14540,7 +14540,7 @@ const _Editor = class _Editor extends EventEmitter {
14540
14540
  * Process collaboration migrations
14541
14541
  */
14542
14542
  processCollaborationMigrations() {
14543
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.12");
14543
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.13");
14544
14544
  if (!this.options.ydoc) return;
14545
14545
  const metaMap = this.options.ydoc.getMap("meta");
14546
14546
  let docVersion = metaMap.get("version");
@@ -1,4 +1,4 @@
1
- import { aJ as getDefaultExportFromCjs } from "./converter-B4P0mjU2.js";
1
+ import { aJ as getDefaultExportFromCjs } from "./converter-D9KiDgXx.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { p as process$1 } from "./converter-B4P0mjU2.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CoLzF_z4.js";
2
+ import { p as process$1 } from "./converter-D9KiDgXx.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-ByPqJ2k8.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 { ac } from "./chunks/converter-B4P0mjU2.js";
1
+ import { ac } from "./chunks/converter-D9KiDgXx.js";
2
2
  export {
3
3
  ac as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-B4P0mjU2.js";
2
- import { D } from "./chunks/docx-zipper-D5Do5rOh.js";
1
+ import "./chunks/converter-D9KiDgXx.js";
2
+ import { D } from "./chunks/docx-zipper-DQmUj-ef.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-CoLzF_z4.js";
2
- import "./chunks/converter-B4P0mjU2.js";
3
- import "./chunks/docx-zipper-D5Do5rOh.js";
1
+ import { E } from "./chunks/editor-ByPqJ2k8.js";
2
+ import "./chunks/converter-D9KiDgXx.js";
3
+ import "./chunks/docx-zipper-DQmUj-ef.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-D5Do5rOh.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-DQmUj-ef.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 _MARK_TOGGLE_NAMES, _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn, syncStickyMarksFromState_fn, restoreStickyMarksIfNeeded_fn, ensureStoredMarksForMarkToggle_fn;
12
- import { aJ as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aM as vClickOutside, aN as getActiveFormatting, aC as isInTable, U as findParentNode, aq as calculateResolvedParagraphProperties, a7 as twipsToLines, V as isList, al as parseSizeUnit, a8 as pixelsToTwips, aO as getFileObject, aP as translator, aQ as translator$1, aR as translator$2, aS as translator$3, aT as translator$4, aU as translator$5, aV as translator$6, aW as translator$7, aX as translator$8, aY as translator$9, aZ as translator$a, a_ as translator$b, a$ as translator$c, b0 as translator$d, b1 as translator$e, b2 as commentRangeEndTranslator, b3 as commentRangeStartTranslator, b4 as translator$f, b5 as translator$g, b6 as translator$h, b7 as translator$i, b8 as translator$j, b9 as translator$k, ba as translator$l, bb as translator$m, bc as translator$n, bd as translator$o, be as translator$p, bf as translator$q, bg as translator$r, bh as translator$s, bi as translator$t, bj as translator$u, bk as translator$v, bl as translator$w, bm as translator$x, bn as translator$y, bo as translator$z, bp as translator$A, bq as translator$B, br as translator$C, bs as translator$D, bt as translator$E, bu as translator$F, bv as translator$G, bw as translator$H, bx as translator$I, by as translator$J, bz as translator$K, bA as translator$L, bB as translator$M, bC as translator$N, bD as translator$O, bE as translator$P, bF as translator$Q, bG as translator$R, bH as translator$S, bI as translator$T, bJ as translator$U, bK as translator$V, bL as translator$W, bM as translator$X, bN as translator$Y, bO as translator$Z, bP as translator$_, bQ as translator$$, bR as translator$10, bS as translator$11, bT as translator$12, bU as translator$13, bV as translator$14, bW as translator$15, bX as translator$16, bY as translator$17, bZ as translator$18, b_ as translator$19, b$ as translator$1a, c0 as translator$1b, c1 as translator$1c, c2 as translator$1d, c3 as translator$1e, c4 as translator$1f, c5 as translator$1g, c6 as translator$1h, c7 as translator$1i, c8 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-B4P0mjU2.js";
13
- import { ac, i, a9 } from "./chunks/converter-B4P0mjU2.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as measureCache, n as isHeadless, E as Editor, o as getStarterExtensions, P as PresentationEditor, p as Placeholder, q as getRichTextExtensions, D as DecorationSet, t as Decoration, M as Mark, v as Extension, A as Attribute, N as Node } from "./chunks/editor-CoLzF_z4.js";
15
- import { z, F, B, T, w, C, x } from "./chunks/editor-CoLzF_z4.js";
12
+ import { aJ as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aM as vClickOutside, aN as getActiveFormatting, aC as isInTable, U as findParentNode, aq as calculateResolvedParagraphProperties, a7 as twipsToLines, V as isList, al as parseSizeUnit, a8 as pixelsToTwips, aO as getFileObject, aP as translator, aQ as translator$1, aR as translator$2, aS as translator$3, aT as translator$4, aU as translator$5, aV as translator$6, aW as translator$7, aX as translator$8, aY as translator$9, aZ as translator$a, a_ as translator$b, a$ as translator$c, b0 as translator$d, b1 as translator$e, b2 as commentRangeEndTranslator, b3 as commentRangeStartTranslator, b4 as translator$f, b5 as translator$g, b6 as translator$h, b7 as translator$i, b8 as translator$j, b9 as translator$k, ba as translator$l, bb as translator$m, bc as translator$n, bd as translator$o, be as translator$p, bf as translator$q, bg as translator$r, bh as translator$s, bi as translator$t, bj as translator$u, bk as translator$v, bl as translator$w, bm as translator$x, bn as translator$y, bo as translator$z, bp as translator$A, bq as translator$B, br as translator$C, bs as translator$D, bt as translator$E, bu as translator$F, bv as translator$G, bw as translator$H, bx as translator$I, by as translator$J, bz as translator$K, bA as translator$L, bB as translator$M, bC as translator$N, bD as translator$O, bE as translator$P, bF as translator$Q, bG as translator$R, bH as translator$S, bI as translator$T, bJ as translator$U, bK as translator$V, bL as translator$W, bM as translator$X, bN as translator$Y, bO as translator$Z, bP as translator$_, bQ as translator$$, bR as translator$10, bS as translator$11, bT as translator$12, bU as translator$13, bV as translator$14, bW as translator$15, bX as translator$16, bY as translator$17, bZ as translator$18, b_ as translator$19, b$ as translator$1a, c0 as translator$1b, c1 as translator$1c, c2 as translator$1d, c3 as translator$1e, c4 as translator$1f, c5 as translator$1g, c6 as translator$1h, c7 as translator$1i, c8 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-D9KiDgXx.js";
13
+ import { ac, i, a9 } from "./chunks/converter-D9KiDgXx.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as measureCache, n as isHeadless, E as Editor, o as getStarterExtensions, P as PresentationEditor, p as Placeholder, q as getRichTextExtensions, D as DecorationSet, t as Decoration, M as Mark, v as Extension, A as Attribute, N as Node } from "./chunks/editor-ByPqJ2k8.js";
15
+ import { z, F, B, T, w, C, x } from "./chunks/editor-ByPqJ2k8.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, defineComponent, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-Bt8ifcaq.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-Da2cOhJ-.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-D5Do5rOh.js";
19
+ import { D } from "./chunks/docx-zipper-DQmUj-ef.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-Bt8ifcaq.js";
3
- import "./chunks/editor-CoLzF_z4.js";
2
+ import { T } from "./chunks/toolbar-Da2cOhJ-.js";
3
+ import "./chunks/editor-ByPqJ2k8.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-CBMp55sv.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-riuOlaxm.cjs");
4
4
  require("./chunks/vue-ARQSyfaw.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, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-C-5T9RJI.es.js";
1
+ import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-5gtBhP8I.es.js";
2
2
  import "./chunks/vue-CztqUvm1.es.js";
3
3
  export {
4
4
  A as AIWriter,
package/dist/superdoc.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-CBMp55sv.cjs");
4
- const superdoc = require("./chunks/index-ANaY3G41.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-riuOlaxm.cjs");
4
+ const superdoc = require("./chunks/index-CL4VptDO.cjs");
5
5
  const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
7
7
  exports.Editor = superEditor_es.Editor;
@@ -1,5 +1,5 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-C-5T9RJI.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-Bs29IidK.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-5gtBhP8I.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-BHmLKAul.es.js";
3
3
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
4
4
  export {
5
5
  a as AnnotatorHelpers,
@@ -35606,7 +35606,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
35606
35606
  static getStoredSuperdocVersion(docx) {
35607
35607
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35608
35608
  }
35609
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.12") {
35609
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.13") {
35610
35610
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35611
35611
  }
35612
35612
  /**
@@ -60094,7 +60094,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
60094
60094
  const shouldSkipNodeView = (editor) => {
60095
60095
  return isHeadless(editor);
60096
60096
  };
60097
- const summaryVersion = "1.0.0-beta.12";
60097
+ const summaryVersion = "1.0.0-beta.13";
60098
60098
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
60099
60099
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
60100
60100
  function mapAttributes(attrs) {
@@ -60649,7 +60649,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
60649
60649
  /**
60650
60650
  * Attach styles and attributes to the editor element
60651
60651
  */
60652
- updateEditorStyles(element2, proseMirror, hasPaginationEnabled = true) {
60652
+ updateEditorStyles(element2, proseMirror) {
60653
60653
  const { pageSize, pageMargins } = this.converter.pageStyles ?? {};
60654
60654
  if (!proseMirror || !element2) {
60655
60655
  return;
@@ -60687,9 +60687,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
60687
60687
  element2.style.webkitOverflowScrolling = "touch";
60688
60688
  const defaultLineHeight = 1.2;
60689
60689
  proseMirror.style.lineHeight = String(defaultLineHeight);
60690
- if (pageMargins?.top != null) {
60690
+ if (this.presentationEditor && pageMargins?.top != null) {
60691
60691
  proseMirror.style.paddingTop = `${pageMargins.top}in`;
60692
- } else if (!hasPaginationEnabled) {
60692
+ } else if (this.presentationEditor) {
60693
60693
  proseMirror.style.paddingTop = "1in";
60694
60694
  } else {
60695
60695
  proseMirror.style.paddingTop = "0";
@@ -60703,10 +60703,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
60703
60703
  *
60704
60704
  * @param element - The DOM element to apply styles to
60705
60705
  */
60706
- initDefaultStyles(element2 = this.element, isPaginationEnabled = true) {
60706
+ initDefaultStyles(element2 = this.element) {
60707
60707
  if (this.options.isHeadless || this.options.suppressDefaultDocxStyles) return;
60708
60708
  const proseMirror = element2?.querySelector(".ProseMirror");
60709
- this.updateEditorStyles(element2, proseMirror, isPaginationEnabled);
60709
+ this.updateEditorStyles(element2, proseMirror);
60710
60710
  this.initMobileStyles(element2);
60711
60711
  }
60712
60712
  /**
@@ -60873,7 +60873,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
60873
60873
  { default: remarkStringify2 },
60874
60874
  { default: remarkGfm2 }
60875
60875
  ] = await Promise.all([
60876
- Promise.resolve().then(() => indexCha6AFg),
60876
+ Promise.resolve().then(() => indexBMAfbNel),
60877
60877
  Promise.resolve().then(() => indexDRCvimau),
60878
60878
  Promise.resolve().then(() => indexC_x_N6Uh),
60879
60879
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -61078,7 +61078,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
61078
61078
  * Process collaboration migrations
61079
61079
  */
61080
61080
  processCollaborationMigrations() {
61081
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.12");
61081
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.13");
61082
61082
  if (!this.options.ydoc) return;
61083
61083
  const metaMap = this.options.ydoc.getMap("meta");
61084
61084
  let docVersion = metaMap.get("version");
@@ -131974,7 +131974,7 @@ ${style2}
131974
131974
  this.config.colors = shuffleArray(this.config.colors);
131975
131975
  this.userColorMap = /* @__PURE__ */ new Map();
131976
131976
  this.colorIndex = 0;
131977
- this.version = "1.0.0-beta.12";
131977
+ this.version = "1.0.0-beta.13";
131978
131978
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
131979
131979
  this.superdocId = config2.superdocId || v4();
131980
131980
  this.colors = this.config.colors;
@@ -134417,7 +134417,7 @@ ${style2}
134417
134417
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
134418
134418
  );
134419
134419
  }
134420
- const indexCha6AFg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
134420
+ const indexBMAfbNel = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
134421
134421
  __proto__: null,
134422
134422
  unified
134423
134423
  }, Symbol.toStringTag, { value: "Module" }));