@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
|
@@ -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-
|
|
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-
|
|
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.
|
|
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
|
|
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-
|
|
22365
|
+
//# sourceMappingURL=editor-DTlXXVqi.js.map
|