@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.
- package/dist/chunks/{super-editor.es-AZbtlJwj.js → super-editor.es-zMzwdBZ5.js} +6 -6
- package/dist/chunks/{super-editor.es-AZbtlJwj.js.map → super-editor.es-zMzwdBZ5.js.map} +1 -1
- package/dist/super-editor/chunks/{converter-BRvFd71O.js → converter-dRKFrH-I.js} +3 -3
- package/dist/super-editor/chunks/{converter-BRvFd71O.js.map → converter-dRKFrH-I.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-1voWzM2x.js → docx-zipper-BRs-RDKd.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-1voWzM2x.js.map → docx-zipper-BRs-RDKd.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-CrvseAng.js → editor-Dy8E0rkX.js} +6 -6
- package/dist/super-editor/chunks/{editor-CrvseAng.js.map → editor-Dy8E0rkX.js.map} +1 -1
- package/dist/super-editor/chunks/{toolbar-DZ_vVnAy.js → toolbar-C2xj0bcI.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-DZ_vVnAy.js.map → toolbar-C2xj0bcI.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 -6
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -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-dRKFrH-I.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-BRs-RDKd.js";
|
|
18
18
|
function getMarksFromSelection(state) {
|
|
19
19
|
const { from: from2, to, empty: empty2 } = state.selection;
|
|
20
20
|
const marks = [];
|
|
@@ -11499,7 +11499,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
11499
11499
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
11500
11500
|
*/
|
|
11501
11501
|
processCollaborationMigrations() {
|
|
11502
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.6.
|
|
11502
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.6.40");
|
|
11503
11503
|
if (!this.options.ydoc) return;
|
|
11504
11504
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
11505
11505
|
let docVersion = metaMap.get("version");
|
|
@@ -22080,7 +22080,7 @@ const calculatePageBreaks = (view, editor, sectionData) => {
|
|
|
22080
22080
|
});
|
|
22081
22081
|
const tempContainer = editor.options.element.cloneNode();
|
|
22082
22082
|
if (!tempContainer) return [];
|
|
22083
|
-
tempContainer.className = "temp-container";
|
|
22083
|
+
tempContainer.className = "temp-container super-editor";
|
|
22084
22084
|
const HIDDEN_EDITOR_OFFSET_TOP = 0;
|
|
22085
22085
|
const HIDDEN_EDITOR_OFFSET_LEFT = 0;
|
|
22086
22086
|
tempContainer.style.left = HIDDEN_EDITOR_OFFSET_TOP + "px";
|
|
@@ -22178,7 +22178,7 @@ function createHeader(pageMargins, pageSize, sectionData, headerId) {
|
|
|
22178
22178
|
const headerDef = sectionData.headers?.[headerId];
|
|
22179
22179
|
const minHeaderHeight = pageMargins.top * 96;
|
|
22180
22180
|
const headerMargin = pageMargins.header * 96;
|
|
22181
|
-
const hasHeaderOffset = headerDef?.height
|
|
22181
|
+
const hasHeaderOffset = headerDef?.height < minHeaderHeight - headerMargin;
|
|
22182
22182
|
const headerOffset = hasHeaderOffset ? headerMargin : 0;
|
|
22183
22183
|
const headerHeight = Math.max(headerDef?.height || 0, minHeaderHeight) + headerOffset;
|
|
22184
22184
|
let sectionContainer = headerDef?.sectionContainer?.cloneNode(true);
|
|
@@ -22361,4 +22361,4 @@ export {
|
|
|
22361
22361
|
redoDepth as r,
|
|
22362
22362
|
undoDepth as u
|
|
22363
22363
|
};
|
|
22364
|
-
//# sourceMappingURL=editor-
|
|
22364
|
+
//# sourceMappingURL=editor-Dy8E0rkX.js.map
|