@harbour-enterprises/superdoc 0.6.68 → 0.6.69
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-f6yl_jHv.js → super-editor.es-Bq6ij_ss.js} +24 -19
- package/dist/chunks/super-editor.es-Bq6ij_ss.js.map +1 -0
- package/dist/super-editor/chunks/{converter-CZuOS42K.js → converter-Z3CzMHRB.js} +3 -3
- package/dist/super-editor/chunks/{converter-CZuOS42K.js.map → converter-Z3CzMHRB.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-DkriOCRP.js → docx-zipper-D6yUKm1D.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DkriOCRP.js.map → docx-zipper-D6yUKm1D.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-DkvBKnjs.js → editor-M148YaJW.js} +24 -19
- package/dist/super-editor/chunks/editor-M148YaJW.js.map +1 -0
- package/dist/super-editor/chunks/{toolbar-BN7sisvW.js → toolbar-BFZuVYzi.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BN7sisvW.js.map → toolbar-BFZuVYzi.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 +24 -19
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-f6yl_jHv.js.map +0 -1
- package/dist/super-editor/chunks/editor-DkvBKnjs.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-Z3CzMHRB.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-D6yUKm1D.js";
|
|
18
18
|
function getMarksFromSelection(state) {
|
|
19
19
|
const { from: from2, to, empty: empty2 } = state.selection;
|
|
20
20
|
const marks = [];
|
|
@@ -93,21 +93,26 @@ function unwrapTextMarks(textStyleMark) {
|
|
|
93
93
|
return processedMarks;
|
|
94
94
|
}
|
|
95
95
|
function getActiveAttributes(state) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
96
|
+
try {
|
|
97
|
+
const { from: from2, to, empty: empty2 } = state.selection;
|
|
98
|
+
const attributes = {};
|
|
99
|
+
const getAttrs = (node) => {
|
|
100
|
+
Object.keys(node.attrs).forEach((key) => {
|
|
101
|
+
const value = node.attrs[key];
|
|
102
|
+
if (value) {
|
|
103
|
+
attributes[key] = value;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
let start2 = from2;
|
|
108
|
+
let end2 = to;
|
|
109
|
+
if (empty2) state.doc.nodesBetween(start2, end2 + 1, (node) => getAttrs(node));
|
|
110
|
+
else state.doc.nodesBetween(from2, to, (node) => getAttrs(node));
|
|
111
|
+
return attributes;
|
|
112
|
+
} catch (error) {
|
|
113
|
+
console.debug("Error getting active attributes:", error);
|
|
114
|
+
return {};
|
|
115
|
+
}
|
|
111
116
|
}
|
|
112
117
|
var GOOD_LEAF_SIZE = 200;
|
|
113
118
|
var RopeSequence = function RopeSequence2() {
|
|
@@ -11554,7 +11559,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
11554
11559
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
11555
11560
|
*/
|
|
11556
11561
|
processCollaborationMigrations() {
|
|
11557
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.6.
|
|
11562
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.6.69");
|
|
11558
11563
|
if (!this.options.ydoc) return;
|
|
11559
11564
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
11560
11565
|
let docVersion = metaMap.get("version");
|
|
@@ -22431,4 +22436,4 @@ export {
|
|
|
22431
22436
|
redoDepth as r,
|
|
22432
22437
|
undoDepth as u
|
|
22433
22438
|
};
|
|
22434
|
-
//# sourceMappingURL=editor-
|
|
22439
|
+
//# sourceMappingURL=editor-M148YaJW.js.map
|