@harbour-enterprises/superdoc 0.27.3-next.2 → 0.28.0-next.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/{PdfViewer-BjZ5mGJm.es.js → PdfViewer-9z5hlRyt.es.js} +1 -1
- package/dist/chunks/{PdfViewer-B4iIjHV0.cjs → PdfViewer-Jb55JUCS.cjs} +1 -1
- package/dist/chunks/{index-D6aLyyxJ.cjs → index-D0UvyM8m.cjs} +10 -4
- package/dist/chunks/{index-DkzQzDKS.es.js → index-DqP-8_tO.es.js} +10 -4
- package/dist/chunks/{super-editor.es-DAZHU_K5.es.js → super-editor.es-BBJIKdhr.es.js} +129 -34
- package/dist/chunks/{super-editor.es-BbpZtQLg.cjs → super-editor.es-Ca5D3ZTW.cjs} +129 -34
- package/dist/chunks/uuid-CjlX8hrF.es.js +35 -0
- package/dist/chunks/uuid-R7L08bOx.cjs +34 -0
- package/dist/components/CommentsLayer/use-comment.d.ts.map +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-qTrGAY0a.js → converter-AR-76siZ.js} +37 -30
- package/dist/super-editor/chunks/{docx-zipper-BRttLmZq.js → docx-zipper-DVb-VGgt.js} +1 -1
- package/dist/super-editor/chunks/{editor-DqOCeU9J.js → editor-mK_uimq6.js} +93 -5
- package/dist/super-editor/chunks/{toolbar-cZin2t1V.js → toolbar-ByoNwr7x.js} +2 -2
- 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/src/components/toolbar/use-toolbar-item.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/commands/getSelectionMarks.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/commands/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/commands/setTextSelection.d.ts +4 -0
- package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +2 -1
- package/dist/super-editor/super-editor/src/tests/helpers/helpers.d.ts +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.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +161 -62
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +5 -8
- package/dist/chunks/uuid-CQzaMNgL.cjs +0 -36
- package/dist/chunks/uuid-DIIKH5Zc.es.js +0 -37
- package/dist/images/altText_add.svg +0 -3
- package/dist/images/altText_done.svg +0 -3
- package/dist/images/annotation-check.svg +0 -11
- package/dist/images/annotation-comment.svg +0 -16
- package/dist/images/annotation-help.svg +0 -26
- package/dist/images/annotation-insert.svg +0 -10
- package/dist/images/annotation-key.svg +0 -11
- package/dist/images/annotation-newparagraph.svg +0 -11
- package/dist/images/annotation-noicon.svg +0 -7
- package/dist/images/annotation-note.svg +0 -42
- package/dist/images/annotation-paperclip.svg +0 -6
- package/dist/images/annotation-paragraph.svg +0 -16
- package/dist/images/annotation-pushpin.svg +0 -7
- package/dist/images/cursor-editorFreeHighlight.svg +0 -6
- package/dist/images/cursor-editorFreeText.svg +0 -3
- package/dist/images/cursor-editorInk.svg +0 -4
- package/dist/images/cursor-editorTextHighlight.svg +0 -8
- package/dist/images/editor-toolbar-delete.svg +0 -5
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/toolbarButton-editorHighlight.svg +0 -6
- package/dist/images/toolbarButton-menuArrow.svg +0 -3
|
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ListItemNodeView_instances, init_fn3, applyIndentStyling_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } 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, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } 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, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-AR-76siZ.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-DVb-VGgt.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -5093,6 +5093,8 @@ function readDOMChange(view, from2, to, typeOver, addedNodes) {
|
|
|
5093
5093
|
let deflt = () => mkTr(view.state.tr.insertText(text, chFrom, chTo));
|
|
5094
5094
|
if (!view.someProp("handleTextInput", (f2) => f2(view, chFrom, chTo, text, deflt)))
|
|
5095
5095
|
view.dispatch(deflt());
|
|
5096
|
+
} else {
|
|
5097
|
+
view.dispatch(mkTr());
|
|
5096
5098
|
}
|
|
5097
5099
|
} else {
|
|
5098
5100
|
view.dispatch(mkTr());
|
|
@@ -10299,6 +10301,49 @@ const restoreSelection = () => ({ editor, state, tr }) => {
|
|
|
10299
10301
|
editor.view.dispatch(selectionTr);
|
|
10300
10302
|
}
|
|
10301
10303
|
};
|
|
10304
|
+
const clamp = (value, min2, max2) => Math.max(min2, Math.min(value, max2));
|
|
10305
|
+
const setTextSelection = ({ from: from2, to }) => ({ state, dispatch, editor }) => {
|
|
10306
|
+
if (typeof from2 !== "number" && typeof to !== "number") {
|
|
10307
|
+
return false;
|
|
10308
|
+
}
|
|
10309
|
+
const doc2 = state.doc;
|
|
10310
|
+
const docSize = doc2.content.size;
|
|
10311
|
+
const nextFrom = clamp(typeof from2 === "number" ? from2 : state.selection.from, 0, docSize);
|
|
10312
|
+
const nextToBase = typeof to === "number" ? to : nextFrom;
|
|
10313
|
+
const nextTo = clamp(nextToBase, 0, docSize);
|
|
10314
|
+
const [head, anchor] = nextFrom <= nextTo ? [nextFrom, nextTo] : [nextTo, nextFrom];
|
|
10315
|
+
const selection = TextSelection.create(doc2, head, anchor);
|
|
10316
|
+
if (dispatch) {
|
|
10317
|
+
const transaction = state.tr.setSelection(selection);
|
|
10318
|
+
dispatch(transaction);
|
|
10319
|
+
}
|
|
10320
|
+
if (editor?.view?.focus) {
|
|
10321
|
+
editor.view.focus();
|
|
10322
|
+
}
|
|
10323
|
+
return true;
|
|
10324
|
+
};
|
|
10325
|
+
const getSelectionMarks = () => ({ state, tr }) => {
|
|
10326
|
+
tr.setMeta("preventDispatch", true);
|
|
10327
|
+
const marks = getMarksFromSelection(state) ?? [];
|
|
10328
|
+
const uniqueByType = /* @__PURE__ */ new Map();
|
|
10329
|
+
for (const mark of marks) {
|
|
10330
|
+
const typeName = typeof mark?.type === "string" ? mark.type : mark?.type?.name;
|
|
10331
|
+
if (!typeName) continue;
|
|
10332
|
+
const existing = uniqueByType.get(typeName);
|
|
10333
|
+
if (!existing) {
|
|
10334
|
+
uniqueByType.set(typeName, mark);
|
|
10335
|
+
continue;
|
|
10336
|
+
}
|
|
10337
|
+
const existingAttrs = existing?.attrs ?? {};
|
|
10338
|
+
const nextAttrs = mark?.attrs ?? {};
|
|
10339
|
+
const existingHasValues = Object.values(existingAttrs).some((value) => value != null);
|
|
10340
|
+
const nextHasValues = Object.values(nextAttrs).some((value) => value != null);
|
|
10341
|
+
if (!existingHasValues && nextHasValues) {
|
|
10342
|
+
uniqueByType.set(typeName, mark);
|
|
10343
|
+
}
|
|
10344
|
+
}
|
|
10345
|
+
return Array.from(uniqueByType.values());
|
|
10346
|
+
};
|
|
10302
10347
|
const commands$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10303
10348
|
__proto__: null,
|
|
10304
10349
|
atVisualParaEnd,
|
|
@@ -10314,6 +10359,7 @@ const commands$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
10314
10359
|
first,
|
|
10315
10360
|
getEffectiveStyleId,
|
|
10316
10361
|
getParaCtx,
|
|
10362
|
+
getSelectionMarks,
|
|
10317
10363
|
getStyleIdFromMarks,
|
|
10318
10364
|
handleBackspaceNextToList,
|
|
10319
10365
|
handleDeleteNextToList,
|
|
@@ -10345,6 +10391,7 @@ const commands$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
10345
10391
|
setMark,
|
|
10346
10392
|
setMeta,
|
|
10347
10393
|
setNode,
|
|
10394
|
+
setTextSelection,
|
|
10348
10395
|
sinkListItem,
|
|
10349
10396
|
splitBlock: splitBlock$1,
|
|
10350
10397
|
splitListItem,
|
|
@@ -11018,6 +11065,7 @@ const markInsertion = ({ tr, from: from2, to, user, date }) => {
|
|
|
11018
11065
|
id,
|
|
11019
11066
|
author: user.name,
|
|
11020
11067
|
authorEmail: user.email,
|
|
11068
|
+
authorImage: user.image,
|
|
11021
11069
|
date
|
|
11022
11070
|
});
|
|
11023
11071
|
tr.addMark(from2, to, insertionMark);
|
|
@@ -11054,6 +11102,7 @@ const markDeletion = ({ tr, from: from2, to, user, date, id: providedId }) => {
|
|
|
11054
11102
|
id,
|
|
11055
11103
|
author: user.name,
|
|
11056
11104
|
authorEmail: user.email,
|
|
11105
|
+
authorImage: user.image,
|
|
11057
11106
|
date
|
|
11058
11107
|
});
|
|
11059
11108
|
const deletionMap = new Mapping();
|
|
@@ -11750,6 +11799,9 @@ const normalizeCommentEventPayload = ({ conversation, editorOptions, fallbackCom
|
|
|
11750
11799
|
if (!normalized.creatorEmail && user?.email) {
|
|
11751
11800
|
normalized.creatorEmail = user.email;
|
|
11752
11801
|
}
|
|
11802
|
+
if (!normalized.creatorImage && user?.image) {
|
|
11803
|
+
normalized.creatorImage = user.image;
|
|
11804
|
+
}
|
|
11753
11805
|
if (!normalized.createdTime) {
|
|
11754
11806
|
normalized.createdTime = Date.now();
|
|
11755
11807
|
}
|
|
@@ -12208,7 +12260,7 @@ const createOrUpdateTrackedChangeComment = ({ event, marks, deletionNodes, nodes
|
|
|
12208
12260
|
const trackedMark = marks.insertedMark || marks.deletionMark || marks.formatMark;
|
|
12209
12261
|
const { type, attrs } = trackedMark;
|
|
12210
12262
|
const { name: trackedChangeType } = type;
|
|
12211
|
-
const { author, authorEmail, date, importedAuthor } = attrs;
|
|
12263
|
+
const { author, authorEmail, authorImage, date, importedAuthor } = attrs;
|
|
12212
12264
|
const id = attrs.id;
|
|
12213
12265
|
const node = nodes[0];
|
|
12214
12266
|
const isDeletionInsertion = !!(marks.insertedMark && marks.deletionMark);
|
|
@@ -12239,6 +12291,7 @@ const createOrUpdateTrackedChangeComment = ({ event, marks, deletionNodes, nodes
|
|
|
12239
12291
|
deletedText: marks.deletionMark ? deletionText : null,
|
|
12240
12292
|
author,
|
|
12241
12293
|
authorEmail,
|
|
12294
|
+
...authorImage && { authorImage },
|
|
12242
12295
|
date,
|
|
12243
12296
|
...importedAuthor && {
|
|
12244
12297
|
importedAuthor: {
|
|
@@ -12383,6 +12436,7 @@ const addMarkStep = ({ state, step, newTr, doc: doc2, user, date }) => {
|
|
|
12383
12436
|
id: wid,
|
|
12384
12437
|
author: user.name,
|
|
12385
12438
|
authorEmail: user.email,
|
|
12439
|
+
authorImage: user.image,
|
|
12386
12440
|
date,
|
|
12387
12441
|
before,
|
|
12388
12442
|
after
|
|
@@ -12448,6 +12502,7 @@ const removeMarkStep = ({ state, step, newTr, doc: doc2, user, date }) => {
|
|
|
12448
12502
|
id: v4(),
|
|
12449
12503
|
author: user.name,
|
|
12450
12504
|
authorEmail: user.email,
|
|
12505
|
+
authorImage: user.image,
|
|
12451
12506
|
date,
|
|
12452
12507
|
before,
|
|
12453
12508
|
after
|
|
@@ -16620,6 +16675,9 @@ class GapBookmark {
|
|
|
16620
16675
|
return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);
|
|
16621
16676
|
}
|
|
16622
16677
|
}
|
|
16678
|
+
function needsGap(type) {
|
|
16679
|
+
return type.isAtom || type.spec.isolating || type.spec.createGapCursor;
|
|
16680
|
+
}
|
|
16623
16681
|
function closedBefore($pos) {
|
|
16624
16682
|
for (let d2 = $pos.depth; d2 >= 0; d2--) {
|
|
16625
16683
|
let index2 = $pos.index(d2), parent = $pos.node(d2);
|
|
@@ -16629,7 +16687,7 @@ function closedBefore($pos) {
|
|
|
16629
16687
|
continue;
|
|
16630
16688
|
}
|
|
16631
16689
|
for (let before = parent.child(index2 - 1); ; before = before.lastChild) {
|
|
16632
|
-
if (before.childCount == 0 && !before.inlineContent || before.
|
|
16690
|
+
if (before.childCount == 0 && !before.inlineContent || needsGap(before.type))
|
|
16633
16691
|
return true;
|
|
16634
16692
|
if (before.inlineContent)
|
|
16635
16693
|
return false;
|
|
@@ -16646,7 +16704,7 @@ function closedAfter($pos) {
|
|
|
16646
16704
|
continue;
|
|
16647
16705
|
}
|
|
16648
16706
|
for (let after = parent.child(index2); ; after = after.firstChild) {
|
|
16649
|
-
if (after.childCount == 0 && !after.inlineContent || after.
|
|
16707
|
+
if (after.childCount == 0 && !after.inlineContent || needsGap(after.type))
|
|
16650
16708
|
return true;
|
|
16651
16709
|
if (after.inlineContent)
|
|
16652
16710
|
return false;
|
|
@@ -31531,6 +31589,16 @@ const TrackInsert = Mark.create({
|
|
|
31531
31589
|
};
|
|
31532
31590
|
}
|
|
31533
31591
|
},
|
|
31592
|
+
authorImage: {
|
|
31593
|
+
default: "",
|
|
31594
|
+
parseDOM: (elem) => elem.getAttribute("data-authorimage"),
|
|
31595
|
+
renderDOM: (attrs) => {
|
|
31596
|
+
if (!attrs.authorImage) return {};
|
|
31597
|
+
return {
|
|
31598
|
+
"data-authorimage": attrs.authorImage
|
|
31599
|
+
};
|
|
31600
|
+
}
|
|
31601
|
+
},
|
|
31534
31602
|
date: {
|
|
31535
31603
|
default: "",
|
|
31536
31604
|
parseDOM: (elem) => elem.getAttribute("data-date"),
|
|
@@ -31598,6 +31666,16 @@ const TrackDelete = Mark.create({
|
|
|
31598
31666
|
};
|
|
31599
31667
|
}
|
|
31600
31668
|
},
|
|
31669
|
+
authorImage: {
|
|
31670
|
+
default: "",
|
|
31671
|
+
parseDOM: (elem) => elem.getAttribute("data-authorimage"),
|
|
31672
|
+
renderDOM: (attrs) => {
|
|
31673
|
+
if (!attrs.authorImage) return {};
|
|
31674
|
+
return {
|
|
31675
|
+
"data-authorimage": attrs.authorImage
|
|
31676
|
+
};
|
|
31677
|
+
}
|
|
31678
|
+
},
|
|
31601
31679
|
date: {
|
|
31602
31680
|
default: "",
|
|
31603
31681
|
parseDOM: (elem) => elem.getAttribute("data-date"),
|
|
@@ -31697,6 +31775,16 @@ const TrackFormat = Mark.create({
|
|
|
31697
31775
|
};
|
|
31698
31776
|
}
|
|
31699
31777
|
},
|
|
31778
|
+
authorImage: {
|
|
31779
|
+
default: "",
|
|
31780
|
+
parseDOM: (elem) => elem.getAttribute("data-authorimage"),
|
|
31781
|
+
renderDOM: (attrs) => {
|
|
31782
|
+
if (!attrs.authorImage) return {};
|
|
31783
|
+
return {
|
|
31784
|
+
"data-authorimage": attrs.authorImage
|
|
31785
|
+
};
|
|
31786
|
+
}
|
|
31787
|
+
},
|
|
31700
31788
|
date: {
|
|
31701
31789
|
default: "",
|
|
31702
31790
|
parseDOM: (elem) => elem.getAttribute("data-date"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { p as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-AR-76siZ.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-mK_uimq6.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-mK_uimq6.js";
|
|
2
|
+
import "./chunks/converter-AR-76siZ.js";
|
|
3
|
+
import "./chunks/docx-zipper-DVb-VGgt.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getSelectionMarks(): import("./types/index.js").Command;
|
|
@@ -46,6 +46,8 @@ declare function createOrUpdateTrackedChangeComment({ event, marks, deletionNode
|
|
|
46
46
|
importedAuthor: {
|
|
47
47
|
name: any;
|
|
48
48
|
};
|
|
49
|
+
date: any;
|
|
50
|
+
authorImage: any;
|
|
49
51
|
event: "add";
|
|
50
52
|
type: string;
|
|
51
53
|
documentId: any;
|
|
@@ -55,7 +57,6 @@ declare function createOrUpdateTrackedChangeComment({ event, marks, deletionNode
|
|
|
55
57
|
deletedText: string;
|
|
56
58
|
author: any;
|
|
57
59
|
authorEmail: any;
|
|
58
|
-
date: any;
|
|
59
60
|
};
|
|
60
61
|
declare function findRangeById(doc: any, id: any): {
|
|
61
62
|
from: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function getTestDataByFileName(name: string): Promise<any>;
|
|
2
2
|
export function getExtractedDocxData(folderName: any): Promise<{}>;
|
|
3
|
-
export function getTestDataAsFileBuffer(name: any): Promise<
|
|
3
|
+
export function getTestDataAsFileBuffer(name: any): Promise<NonSharedBuffer>;
|
|
4
4
|
export function loadTestDataForEditorTests(filename: string): Promise<[any, any, any, any]>;
|
|
5
5
|
export function initTestEditor(options?: any): Editor;
|
|
6
6
|
export function getNewTransaction(editor: Editor): Transaction;
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, H as findParentNode, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { c1, a5, i, a2 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, l as getStarterExtensions, P as Placeholder, m as getRichTextExtensions, D as DecorationSet, n as Decoration, M as Mark, o as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { t, C, v, T, p, w, q } from "./chunks/editor-
|
|
12
|
+
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, H as findParentNode, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-AR-76siZ.js";
|
|
13
|
+
import { c1, a5, i, a2 } from "./chunks/converter-AR-76siZ.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, l as getStarterExtensions, P as Placeholder, m as getRichTextExtensions, D as DecorationSet, n as Decoration, M as Mark, o as Extension, A as Attribute, N as Node } from "./chunks/editor-mK_uimq6.js";
|
|
15
|
+
import { t, C, v, T, p, w, q } from "./chunks/editor-mK_uimq6.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-ByoNwr7x.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-DVb-VGgt.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-Ca5D3ZTW.cjs");
|
|
4
4
|
require("./chunks/vue-DKMj1I9B.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BBJIKdhr.es.js";
|
|
2
2
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-Ca5D3ZTW.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-D0UvyM8m.cjs");
|
|
5
5
|
require("./chunks/vue-DKMj1I9B.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
7
7
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BBJIKdhr.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-DqP-8_tO.es.js";
|
|
3
3
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
export {
|