@harbour-enterprises/superdoc 0.6.41 → 0.6.42

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.
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _events, _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, createSchema_fn, generatePmData_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 } 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, f as Schema$1, g as canSplit, l as liftTarget, h as canJoin, j as joinPoint, r as replaceStep$1, R as ReplaceAroundStep, o as objectIncludes, i as ReplaceStep, k as NodeRange, m as findWrapping, n as TrackDeleteMarkName, q as TrackInsertMarkName, v as v4, s as generateDocxRandomId, t as TrackFormatMarkName, u as AddMarkStep, w as RemoveMarkStep, x as comments_module_events, y as twipsToLines, z as pixelsToTwips, B as SuperConverter, E as EditorState, C as toKebabCase, G as kebabCase, H as SelectionRange, I as Transform } from "./converter-C9flsWIJ.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, f as Schema$1, g as canSplit, l as liftTarget, h as canJoin, j as joinPoint, r as replaceStep$1, R as ReplaceAroundStep, o as objectIncludes, i as ReplaceStep, k as NodeRange, m as findWrapping, n as TrackDeleteMarkName, q as TrackInsertMarkName, v as v4, s as generateDocxRandomId, t as TrackFormatMarkName, u as AddMarkStep, w as RemoveMarkStep, x as comments_module_events, y as twipsToLines, z as pixelsToTwips, B as SuperConverter, E as EditorState, C as toKebabCase, G as kebabCase, H as SelectionRange, I as Transform } from "./converter-BfMo49Ad.js";
16
16
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, toDisplayString, createApp } from "vue";
17
- import { D as DocxZipper } from "./docx-zipper-BW2iV9By.js";
17
+ import { D as DocxZipper } from "./docx-zipper-Cyd75ObZ.js";
18
18
  function getMarksFromSelection(state) {
19
19
  const { from: from2, to, empty: empty2 } = state.selection;
20
20
  const marks = [];
@@ -10610,6 +10610,7 @@ const initPaginationData = async (editor) => {
10610
10610
  const getSectionHeight = async (editor, data) => {
10611
10611
  return new Promise((resolve) => {
10612
10612
  const editorContainer = document.createElement("div");
10613
+ editorContainer.className = "super-editor";
10613
10614
  editorContainer.style.padding = 0;
10614
10615
  editorContainer.style.margin = 0;
10615
10616
  const parentStyles = editor.converter.getDocumentDefaultStyles();
@@ -11499,7 +11500,7 @@ const _Editor = class _Editor extends EventEmitter {
11499
11500
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
11500
11501
  */
11501
11502
  processCollaborationMigrations() {
11502
- console.debug("[checkVersionMigrations] Current editor version", "0.6.41");
11503
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.42");
11503
11504
  if (!this.options.ydoc) return;
11504
11505
  const metaMap = this.options.ydoc.getMap("meta");
11505
11506
  let docVersion = metaMap.get("version");
@@ -22178,7 +22179,7 @@ function createHeader(pageMargins, pageSize, sectionData, headerId) {
22178
22179
  const headerDef = sectionData.headers?.[headerId];
22179
22180
  const minHeaderHeight = pageMargins.top * 96;
22180
22181
  const headerMargin = pageMargins.header * 96;
22181
- const hasHeaderOffset = headerDef?.height < minHeaderHeight - headerMargin;
22182
+ const hasHeaderOffset = headerDef?.height > minHeaderHeight - headerMargin;
22182
22183
  const headerOffset = hasHeaderOffset ? headerMargin : 0;
22183
22184
  const headerHeight = Math.max(headerDef?.height || 0, minHeaderHeight) + headerOffset;
22184
22185
  let sectionContainer = headerDef?.sectionContainer?.cloneNode(true);
@@ -22361,4 +22362,4 @@ export {
22361
22362
  redoDepth as r,
22362
22363
  undoDepth as u
22363
22364
  };
22364
- //# sourceMappingURL=editor-BvimybK-.js.map
22365
+ //# sourceMappingURL=editor-DTlXXVqi.js.map