@harbour-enterprises/superdoc 0.6.39 → 0.6.40

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.
@@ -20110,7 +20110,7 @@ const _SuperConverter = class _SuperConverter2 {
20110
20110
  return;
20111
20111
  }
20112
20112
  }
20113
- static updateDocumentVersion(docx = this.convertedXml, version = "0.6.39") {
20113
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.6.40") {
20114
20114
  const customLocation = "docProps/custom.xml";
20115
20115
  if (!docx[customLocation]) {
20116
20116
  docx[customLocation] = generateCustomXml();
@@ -20355,7 +20355,7 @@ function storeSuperdocVersion(docx) {
20355
20355
  function generateCustomXml() {
20356
20356
  return DEFAULT_CUSTOM_XML;
20357
20357
  }
20358
- function generateSuperdocVersion(version = "0.6.39") {
20358
+ function generateSuperdocVersion(version = "0.6.40") {
20359
20359
  return {
20360
20360
  type: "element",
20361
20361
  name: "property",
@@ -34331,7 +34331,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
34331
34331
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
34332
34332
  */
34333
34333
  processCollaborationMigrations() {
34334
- console.debug("[checkVersionMigrations] Current editor version", "0.6.39");
34334
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.40");
34335
34335
  if (!this.options.ydoc) return;
34336
34336
  const metaMap = this.options.ydoc.getMap("meta");
34337
34337
  let docVersion = metaMap.get("version");
@@ -44864,7 +44864,7 @@ const calculatePageBreaks = (view, editor, sectionData) => {
44864
44864
  });
44865
44865
  const tempContainer = editor.options.element.cloneNode();
44866
44866
  if (!tempContainer) return [];
44867
- tempContainer.className = "temp-container";
44867
+ tempContainer.className = "temp-container super-editor";
44868
44868
  const HIDDEN_EDITOR_OFFSET_TOP = 0;
44869
44869
  const HIDDEN_EDITOR_OFFSET_LEFT = 0;
44870
44870
  tempContainer.style.left = HIDDEN_EDITOR_OFFSET_TOP + "px";
@@ -44962,7 +44962,7 @@ function createHeader(pageMargins, pageSize, sectionData, headerId) {
44962
44962
  const headerDef = sectionData.headers?.[headerId];
44963
44963
  const minHeaderHeight = pageMargins.top * 96;
44964
44964
  const headerMargin = pageMargins.header * 96;
44965
- const hasHeaderOffset = headerDef?.height > minHeaderHeight - headerMargin;
44965
+ const hasHeaderOffset = headerDef?.height < minHeaderHeight - headerMargin;
44966
44966
  const headerOffset = hasHeaderOffset ? headerMargin : 0;
44967
44967
  const headerHeight = Math.max(headerDef?.height || 0, minHeaderHeight) + headerOffset;
44968
44968
  let sectionContainer = headerDef?.sectionContainer?.cloneNode(true);
@@ -57774,4 +57774,4 @@ export {
57774
57774
  helpers as k,
57775
57775
  index as l
57776
57776
  };
57777
- //# sourceMappingURL=super-editor.es-AZbtlJwj.js.map
57777
+ //# sourceMappingURL=super-editor.es-zMzwdBZ5.js.map