@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.
- package/dist/chunks/{super-editor.es-Cz77arsz.js → super-editor.es-lsH9Y8VW.js} +6 -5
- package/dist/chunks/{super-editor.es-Cz77arsz.js.map → super-editor.es-lsH9Y8VW.js.map} +1 -1
- package/dist/super-editor/chunks/{converter-C9flsWIJ.js → converter-BfMo49Ad.js} +3 -3
- package/dist/super-editor/chunks/{converter-C9flsWIJ.js.map → converter-BfMo49Ad.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-BW2iV9By.js → docx-zipper-Cyd75ObZ.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BW2iV9By.js.map → docx-zipper-Cyd75ObZ.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-BvimybK-.js → editor-DTlXXVqi.js} +6 -5
- package/dist/super-editor/chunks/editor-DTlXXVqi.js.map +1 -0
- package/dist/super-editor/chunks/{toolbar-CpDbMcJz.js → toolbar-DNTbRmbU.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-CpDbMcJz.js.map → toolbar-DNTbRmbU.js.map} +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +6 -5
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/chunks/editor-BvimybK-.js.map +0 -1
|
@@ -20110,7 +20110,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
20110
20110
|
return;
|
|
20111
20111
|
}
|
|
20112
20112
|
}
|
|
20113
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.6.
|
|
20113
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.6.42") {
|
|
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.
|
|
20358
|
+
function generateSuperdocVersion(version = "0.6.42") {
|
|
20359
20359
|
return {
|
|
20360
20360
|
type: "element",
|
|
20361
20361
|
name: "property",
|
|
@@ -33442,6 +33442,7 @@ const initPaginationData = async (editor) => {
|
|
|
33442
33442
|
const getSectionHeight = async (editor, data) => {
|
|
33443
33443
|
return new Promise((resolve) => {
|
|
33444
33444
|
const editorContainer = document.createElement("div");
|
|
33445
|
+
editorContainer.className = "super-editor";
|
|
33445
33446
|
editorContainer.style.padding = 0;
|
|
33446
33447
|
editorContainer.style.margin = 0;
|
|
33447
33448
|
const parentStyles = editor.converter.getDocumentDefaultStyles();
|
|
@@ -34331,7 +34332,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
34331
34332
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
34332
34333
|
*/
|
|
34333
34334
|
processCollaborationMigrations() {
|
|
34334
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.6.
|
|
34335
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.6.42");
|
|
34335
34336
|
if (!this.options.ydoc) return;
|
|
34336
34337
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
34337
34338
|
let docVersion = metaMap.get("version");
|
|
@@ -44962,7 +44963,7 @@ function createHeader(pageMargins, pageSize, sectionData, headerId) {
|
|
|
44962
44963
|
const headerDef = sectionData.headers?.[headerId];
|
|
44963
44964
|
const minHeaderHeight = pageMargins.top * 96;
|
|
44964
44965
|
const headerMargin = pageMargins.header * 96;
|
|
44965
|
-
const hasHeaderOffset = headerDef?.height
|
|
44966
|
+
const hasHeaderOffset = headerDef?.height > minHeaderHeight - headerMargin;
|
|
44966
44967
|
const headerOffset = hasHeaderOffset ? headerMargin : 0;
|
|
44967
44968
|
const headerHeight = Math.max(headerDef?.height || 0, minHeaderHeight) + headerOffset;
|
|
44968
44969
|
let sectionContainer = headerDef?.sectionContainer?.cloneNode(true);
|
|
@@ -57774,4 +57775,4 @@ export {
|
|
|
57774
57775
|
helpers as k,
|
|
57775
57776
|
index as l
|
|
57776
57777
|
};
|
|
57777
|
-
//# sourceMappingURL=super-editor.es-
|
|
57778
|
+
//# sourceMappingURL=super-editor.es-lsH9Y8VW.js.map
|