@harbour-enterprises/superdoc 0.6.112 → 0.7.1
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-B8fXoY6P.js → super-editor.es-C3EfxPkJ.js} +27 -15
- package/dist/chunks/super-editor.es-C3EfxPkJ.js.map +1 -0
- package/dist/super-editor/chunks/{converter-s9yhBEHO.js → converter-ei3PNE_E.js} +24 -13
- package/dist/super-editor/chunks/{converter-s9yhBEHO.js.map → converter-ei3PNE_E.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-DEE6oGA6.js → docx-zipper-B7uIfmYn.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DEE6oGA6.js.map → docx-zipper-B7uIfmYn.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-BkJfSOly.js → editor-Bggv0Jux.js} +6 -5
- package/dist/super-editor/chunks/editor-Bggv0Jux.js.map +1 -0
- package/dist/super-editor/chunks/{toolbar-Ib-MW1xa.js → toolbar-DLqRjwsa.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-Ib-MW1xa.js.map → toolbar-DLqRjwsa.js.map} +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/helpers.d.ts +1 -0
- package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/exporter/commentsExporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/documentCommentsImporter.d.ts.map +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/extensions/comment/comments-helpers.d.ts.map +1 -1
- 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 +27 -15
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/super-editor.es-B8fXoY6P.js.map +0 -1
- package/dist/super-editor/chunks/editor-BkJfSOly.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 generateRandom32BitHex, u as TrackFormatMarkName, w as comments_module_events, x as AddMarkStep, y as RemoveMarkStep, z as twipsToLines, B as pixelsToTwips, C as SuperConverter, E as EditorState, G as toKebabCase, H as kebabCase, I as SelectionRange, J 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 generateRandom32BitHex, u as TrackFormatMarkName, w as comments_module_events, x as AddMarkStep, y as RemoveMarkStep, z as twipsToLines, B as pixelsToTwips, C as SuperConverter, E as EditorState, G as toKebabCase, H as kebabCase, I as SelectionRange, J as Transform } from "./converter-ei3PNE_E.js";
|
|
16
16
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
17
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
17
|
+
import { D as DocxZipper } from "./docx-zipper-B7uIfmYn.js";
|
|
18
18
|
function getMarksFromSelection(state) {
|
|
19
19
|
const { from: from2, to, empty: empty2 } = state.selection;
|
|
20
20
|
const marks = [];
|
|
@@ -10557,10 +10557,11 @@ const prepareCommentsForExport = (doc2, tr, schema, comments = []) => {
|
|
|
10557
10557
|
});
|
|
10558
10558
|
const parentId = commentId;
|
|
10559
10559
|
if (parentId) {
|
|
10560
|
-
const childComments = comments.filter((c) => c.parentCommentId
|
|
10560
|
+
const childComments = comments.filter((c) => c.parentCommentId === parentId).sort((a, b) => a.createdTime - b.createdTime);
|
|
10561
10561
|
childComments.forEach((c) => {
|
|
10562
10562
|
const childMark = getPreparedComment(c);
|
|
10563
10563
|
const childStartNode = schema.nodes.commentRangeStart.create(childMark);
|
|
10564
|
+
seen.add(c.commentId);
|
|
10564
10565
|
startNodes.push({
|
|
10565
10566
|
pos,
|
|
10566
10567
|
node: childStartNode
|
|
@@ -11736,7 +11737,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
11736
11737
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
11737
11738
|
*/
|
|
11738
11739
|
processCollaborationMigrations() {
|
|
11739
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.
|
|
11740
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.7.1");
|
|
11740
11741
|
if (!this.options.ydoc) return;
|
|
11741
11742
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
11742
11743
|
let docVersion = metaMap.get("version");
|
|
@@ -22643,4 +22644,4 @@ export {
|
|
|
22643
22644
|
redoDepth as r,
|
|
22644
22645
|
undoDepth as u
|
|
22645
22646
|
};
|
|
22646
|
-
//# sourceMappingURL=editor-
|
|
22647
|
+
//# sourceMappingURL=editor-Bggv0Jux.js.map
|