@harbour-enterprises/superdoc 0.12.29 → 0.12.30-rev.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-DnY3YVQy.cjs → super-editor.es-3Ibj8IyF.cjs} +72 -30
- package/dist/chunks/{super-editor.es-DiznnaH9.es.js → super-editor.es-Cs2w1rLv.es.js} +85 -43
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-C3avHVhj.js → converter-B3YG794p.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CmhOMHgz.js → docx-zipper-CjIsb1a6.js} +1 -1
- package/dist/super-editor/chunks/{editor-BXIiZe6R.js → editor-HCMuRikV.js} +73 -31
- package/dist/super-editor/chunks/{toolbar-D53fQfyS.js → toolbar-DNy-8F3W.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts +1 -1
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/EventEmitter.d.ts +19 -9
- package/dist/super-editor/core/EventEmitter.d.ts.map +1 -1
- package/dist/super-editor/core/helpers/annotator.d.ts +5 -3
- package/dist/super-editor/core/helpers/annotator.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/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts +2 -0
- package/dist/super-editor/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts.map +1 -0
- package/dist/super-editor/extensions/field-annotation/fieldAnnotationHelpers/index.d.ts +1 -0
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/index.d.ts +1 -1
- package/dist/super-editor/super-editor.es.js +8 -7
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +3 -0
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +1 -0
- package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -1
- package/dist/super-editor.es.js +15 -14
- package/dist/superdoc.cjs +3 -2
- package/dist/superdoc.es.js +201 -200
- package/dist/superdoc.umd.js +73 -31
- 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 _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _commandService, _css, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createDocFromHTML_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, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, i as isEmptyObject, S as Schema$1, T as TextSelection, b as canSplit, l as liftTarget, A as AllSelection, d as canJoin, j as joinPoint, N as NodeSelection, r as replaceStep$1, e as Selection, F as Fragment, R as ReplaceAroundStep, f as Slice, o as objectIncludes, g as deleteProps, D as DOMParser$1, h as ReplaceStep, k as NodeRange, m as findWrapping, n as isMacOS, p as isIOS, q as generateDocxRandomId, s as minMax, t as generateRandom32BitHex, u as DOMSerializer, v as Mark$1, w as dropPoint, x as process$1, B as Buffer2, y as isRegExp, z as TrackDeleteMarkName, C as TrackInsertMarkName, E as v4, G as TrackFormatMarkName, H as comments_module_events, I as AddMarkStep, J as RemoveMarkStep, K as twipsToLines, L as pixelsToTwips, O as SuperConverter, Q as EditorState, U as hasSomeParentWithClass, V as parseSizeUnit, W as getLineHeightValueString, X as toKebabCase, Y as kebabCase, Z as getColStyleDeclaration, _ as SelectionRange, $ as Transform, a0 as createColGroup } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, i as isEmptyObject, S as Schema$1, T as TextSelection, b as canSplit, l as liftTarget, A as AllSelection, d as canJoin, j as joinPoint, N as NodeSelection, r as replaceStep$1, e as Selection, F as Fragment, R as ReplaceAroundStep, f as Slice, o as objectIncludes, g as deleteProps, D as DOMParser$1, h as ReplaceStep, k as NodeRange, m as findWrapping, n as isMacOS, p as isIOS, q as generateDocxRandomId, s as minMax, t as generateRandom32BitHex, u as DOMSerializer, v as Mark$1, w as dropPoint, x as process$1, B as Buffer2, y as isRegExp, z as TrackDeleteMarkName, C as TrackInsertMarkName, E as v4, G as TrackFormatMarkName, H as comments_module_events, I as AddMarkStep, J as RemoveMarkStep, K as twipsToLines, L as pixelsToTwips, O as SuperConverter, Q as EditorState, U as hasSomeParentWithClass, V as parseSizeUnit, W as getLineHeightValueString, X as toKebabCase, Y as kebabCase, Z as getColStyleDeclaration, _ as SelectionRange, $ as Transform, a0 as createColGroup } from "./converter-B3YG794p.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-CjIsb1a6.js";
|
|
18
18
|
function getMarksFromSelection(state) {
|
|
19
19
|
const { from: from2, to, empty: empty2 } = state.selection;
|
|
20
20
|
const marks = [];
|
|
@@ -11339,8 +11339,9 @@ class EventEmitter {
|
|
|
11339
11339
|
}
|
|
11340
11340
|
/**
|
|
11341
11341
|
* Subscribe to the event.
|
|
11342
|
-
* @param name Event name.
|
|
11343
|
-
* @param fn Callback.
|
|
11342
|
+
* @param {string} name Event name.
|
|
11343
|
+
* @param {(...args: any[]) => void} fn Callback.
|
|
11344
|
+
* @returns {void}
|
|
11344
11345
|
*/
|
|
11345
11346
|
on(name, fn2) {
|
|
11346
11347
|
const callbacks = __privateGet(this, _events).get(name);
|
|
@@ -11349,8 +11350,9 @@ class EventEmitter {
|
|
|
11349
11350
|
}
|
|
11350
11351
|
/**
|
|
11351
11352
|
* Emit event.
|
|
11352
|
-
* @param name Event name.
|
|
11353
|
-
* @param args Arguments.
|
|
11353
|
+
* @param {string} name Event name.
|
|
11354
|
+
* @param {...any} args – Arguments to pass to each listener.
|
|
11355
|
+
* @returns {void}
|
|
11354
11356
|
*/
|
|
11355
11357
|
emit(name, ...args) {
|
|
11356
11358
|
const callbacks = __privateGet(this, _events).get(name);
|
|
@@ -11362,8 +11364,9 @@ class EventEmitter {
|
|
|
11362
11364
|
/**
|
|
11363
11365
|
* Remove a specific callback from event
|
|
11364
11366
|
* or all event subscriptions.
|
|
11365
|
-
* @param name Event name.
|
|
11366
|
-
* @param fn Callback.
|
|
11367
|
+
* @param {string} name Event name.
|
|
11368
|
+
* @param {(...args: any[]) => void} fn Callback.
|
|
11369
|
+
* @returns {void}
|
|
11367
11370
|
*/
|
|
11368
11371
|
off(name, fn2) {
|
|
11369
11372
|
const callbacks = __privateGet(this, _events).get(name);
|
|
@@ -11377,6 +11380,19 @@ class EventEmitter {
|
|
|
11377
11380
|
__privateGet(this, _events).delete(name);
|
|
11378
11381
|
}
|
|
11379
11382
|
}
|
|
11383
|
+
/**
|
|
11384
|
+
* Subscribe to an event that will be called only once.
|
|
11385
|
+
* @param {string} name Event name.
|
|
11386
|
+
* @param {(...args: any[]) => void} fn Callback.
|
|
11387
|
+
* @returns {void}
|
|
11388
|
+
*/
|
|
11389
|
+
once(name, fn2) {
|
|
11390
|
+
const wrapper = (...args) => {
|
|
11391
|
+
this.off(name, wrapper);
|
|
11392
|
+
fn2.apply(this, args);
|
|
11393
|
+
};
|
|
11394
|
+
this.on(name, wrapper);
|
|
11395
|
+
}
|
|
11380
11396
|
/**
|
|
11381
11397
|
* Remove all registered events and subscriptions.
|
|
11382
11398
|
*/
|
|
@@ -13769,11 +13785,12 @@ const generateTableIfNecessary = ({ tableNode, annotationValues, tr, state }) =>
|
|
|
13769
13785
|
const getAnnotationValue = (id, annotationValues) => {
|
|
13770
13786
|
return annotationValues.find((value) => value.input_id === id)?.input_value || null;
|
|
13771
13787
|
};
|
|
13772
|
-
const
|
|
13788
|
+
const getAllHeaderFooterEditors = (editor) => {
|
|
13773
13789
|
const sections = {
|
|
13774
13790
|
header: editor.converter.headers || {},
|
|
13775
13791
|
footer: editor.converter.footers || {}
|
|
13776
13792
|
};
|
|
13793
|
+
const allEditors = [];
|
|
13777
13794
|
Object.entries(sections).forEach(([type, items]) => {
|
|
13778
13795
|
const editorsKey = `${type}Editors`;
|
|
13779
13796
|
Object.entries(items).forEach(([sectionId, data]) => {
|
|
@@ -13791,25 +13808,38 @@ const annotateHeadersAndFooters = ({ editor, annotationValues = [], hiddenFieldI
|
|
|
13791
13808
|
})
|
|
13792
13809
|
};
|
|
13793
13810
|
editor.converter[editorsKey].push(sectionEditor);
|
|
13811
|
+
allEditors.push({
|
|
13812
|
+
...sectionEditor,
|
|
13813
|
+
key: editorsKey,
|
|
13814
|
+
type,
|
|
13815
|
+
sectionId
|
|
13816
|
+
});
|
|
13794
13817
|
}
|
|
13795
|
-
sectionEditor.editor.annotate(annotationValues, hiddenFieldIds);
|
|
13796
|
-
onHeaderFooterDataUpdate(
|
|
13797
|
-
{ editor: sectionEditor.editor },
|
|
13798
|
-
editor,
|
|
13799
|
-
sectionId,
|
|
13800
|
-
type
|
|
13801
|
-
);
|
|
13802
13818
|
});
|
|
13803
13819
|
});
|
|
13820
|
+
return allEditors;
|
|
13821
|
+
};
|
|
13822
|
+
const annotateHeadersAndFooters = ({ editor, annotationValues = [], hiddenFieldIds = [], removeEmptyFields = false }) => {
|
|
13823
|
+
const allEditors = getAllHeaderFooterEditors(editor);
|
|
13824
|
+
allEditors.forEach(({ sectionId, editor: sectionEditor, type }) => {
|
|
13825
|
+
sectionEditor.annotate(annotationValues, hiddenFieldIds, removeEmptyFields);
|
|
13826
|
+
onHeaderFooterDataUpdate(
|
|
13827
|
+
{ editor: sectionEditor },
|
|
13828
|
+
editor,
|
|
13829
|
+
sectionId,
|
|
13830
|
+
type
|
|
13831
|
+
);
|
|
13832
|
+
});
|
|
13804
13833
|
};
|
|
13805
13834
|
const annotateDocument = ({
|
|
13806
13835
|
annotationValues = [],
|
|
13807
13836
|
hiddenFieldIds = [],
|
|
13837
|
+
removeEmptyFields = false,
|
|
13808
13838
|
schema,
|
|
13809
13839
|
tr,
|
|
13810
13840
|
editor
|
|
13811
13841
|
}) => {
|
|
13812
|
-
annotateHeadersAndFooters({ editor, annotationValues, hiddenFieldIds });
|
|
13842
|
+
annotateHeadersAndFooters({ editor, annotationValues, hiddenFieldIds, removeEmptyFields });
|
|
13813
13843
|
const annotations = [];
|
|
13814
13844
|
const FieldType = schema.nodes.fieldAnnotation;
|
|
13815
13845
|
tr.doc.descendants((node, pos) => {
|
|
@@ -13862,11 +13892,13 @@ const annotateDocument = ({
|
|
|
13862
13892
|
});
|
|
13863
13893
|
}
|
|
13864
13894
|
}
|
|
13865
|
-
|
|
13866
|
-
|
|
13867
|
-
|
|
13868
|
-
|
|
13869
|
-
|
|
13895
|
+
if (removeEmptyFields) {
|
|
13896
|
+
Array.from(toDelete).sort((a, b) => b - a).forEach((pos) => {
|
|
13897
|
+
const ann = annotations.find((a) => a.pos === pos);
|
|
13898
|
+
if (!ann) return;
|
|
13899
|
+
tr = tr.delete(pos, pos + ann.node.nodeSize);
|
|
13900
|
+
});
|
|
13901
|
+
}
|
|
13870
13902
|
return tr;
|
|
13871
13903
|
};
|
|
13872
13904
|
const getFormattedDate = (input = null, format = "") => {
|
|
@@ -13884,7 +13916,7 @@ const getFormattedDate = (input = null, format = "") => {
|
|
|
13884
13916
|
// e.g. “2025”
|
|
13885
13917
|
});
|
|
13886
13918
|
};
|
|
13887
|
-
const
|
|
13919
|
+
const AnnotatorHelpers = {
|
|
13888
13920
|
getFieldAttrs,
|
|
13889
13921
|
processTables,
|
|
13890
13922
|
annotateDocument,
|
|
@@ -14705,7 +14737,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14705
14737
|
* @returns {Object | void} Migration results
|
|
14706
14738
|
*/
|
|
14707
14739
|
processCollaborationMigrations() {
|
|
14708
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.12.
|
|
14740
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.12.30-rev.1");
|
|
14709
14741
|
if (!this.options.ydoc) return;
|
|
14710
14742
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
14711
14743
|
let docVersion = metaMap.get("version");
|
|
@@ -14794,10 +14826,8 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14794
14826
|
*/
|
|
14795
14827
|
prepareForAnnotations(annotationValues = []) {
|
|
14796
14828
|
const { tr } = this.state;
|
|
14797
|
-
const
|
|
14798
|
-
const newTr = AnnotatorServices.processTables({ state: this.state, tr, annotationValues });
|
|
14829
|
+
const newTr = AnnotatorHelpers.processTables({ state: this.state, tr, annotationValues });
|
|
14799
14830
|
this.view.dispatch(newTr);
|
|
14800
|
-
AnnotatorServices.annotateHeadersAndFooters({ editor: this, annotationValues });
|
|
14801
14831
|
}
|
|
14802
14832
|
/**
|
|
14803
14833
|
* Annotate the document with the given annotation values.
|
|
@@ -14806,15 +14836,16 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14806
14836
|
* @param {String[]} hiddenIds List of field ids to remove from the document.
|
|
14807
14837
|
* @returns {void}
|
|
14808
14838
|
*/
|
|
14809
|
-
annotate(annotationValues = [], hiddenIds = []) {
|
|
14839
|
+
annotate(annotationValues = [], hiddenIds = [], removeEmptyFields = false) {
|
|
14810
14840
|
const { state, view, schema } = this;
|
|
14811
14841
|
let tr = state.tr;
|
|
14812
|
-
tr =
|
|
14813
|
-
tr =
|
|
14842
|
+
tr = AnnotatorHelpers.processTables({ state: this.state, tr, annotationValues });
|
|
14843
|
+
tr = AnnotatorHelpers.annotateDocument({
|
|
14814
14844
|
tr,
|
|
14815
14845
|
schema,
|
|
14816
14846
|
annotationValues,
|
|
14817
14847
|
hiddenFieldIds: hiddenIds,
|
|
14848
|
+
removeEmptyFields,
|
|
14818
14849
|
editor: this
|
|
14819
14850
|
});
|
|
14820
14851
|
if (tr.docChanged) view.dispatch(tr.scrollIntoView());
|
|
@@ -21172,6 +21203,15 @@ function findFieldAnnotationsBetween(from2, to, doc2) {
|
|
|
21172
21203
|
});
|
|
21173
21204
|
return fieldAnnotations;
|
|
21174
21205
|
}
|
|
21206
|
+
const getHeaderFooterAnnotations = (editor) => {
|
|
21207
|
+
const editors = getAllHeaderFooterEditors(editor);
|
|
21208
|
+
const allAnnotations = [];
|
|
21209
|
+
editors.forEach(({ id, editor: editor2 }) => {
|
|
21210
|
+
const annotations = getAllFieldAnnotations(editor2.state);
|
|
21211
|
+
allAnnotations.push(...annotations);
|
|
21212
|
+
});
|
|
21213
|
+
return allAnnotations;
|
|
21214
|
+
};
|
|
21175
21215
|
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21176
21216
|
__proto__: null,
|
|
21177
21217
|
findFieldAnnotations,
|
|
@@ -21181,6 +21221,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
21181
21221
|
findRemovedFieldAnnotations,
|
|
21182
21222
|
getAllFieldAnnotations,
|
|
21183
21223
|
getAllFieldAnnotationsWithRect,
|
|
21224
|
+
getHeaderFooterAnnotations,
|
|
21184
21225
|
trackFieldAnnotationsDeletion
|
|
21185
21226
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
21186
21227
|
function guard(low, high, value) {
|
|
@@ -27305,7 +27346,8 @@ export {
|
|
|
27305
27346
|
helpers as k,
|
|
27306
27347
|
index$1 as l,
|
|
27307
27348
|
index as m,
|
|
27308
|
-
|
|
27349
|
+
AnnotatorHelpers as n,
|
|
27350
|
+
getMarksFromSelection as o,
|
|
27309
27351
|
redoDepth as r,
|
|
27310
27352
|
undoDepth as u
|
|
27311
27353
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, unref, createBlock, toDisplayString, withDirectives, withKeys, withModifiers, vModelText, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, nextTick, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { x as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, g as global$1 } from "./editor-
|
|
2
|
+
import { x as process$1 } from "./converter-B3YG794p.js";
|
|
3
|
+
import { _ as _export_sfc, g as global$1 } from "./editor-HCMuRikV.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -461,7 +461,7 @@ export class Editor extends EventEmitter {
|
|
|
461
461
|
* @param {String[]} hiddenIds List of field ids to remove from the document.
|
|
462
462
|
* @returns {void}
|
|
463
463
|
*/
|
|
464
|
-
annotate(annotationValues?: FieldValue[], hiddenIds?: string[]): void;
|
|
464
|
+
annotate(annotationValues?: FieldValue[], hiddenIds?: string[], removeEmptyFields?: boolean): void;
|
|
465
465
|
/**
|
|
466
466
|
* Preview annotations in the editor. It stores a copy of the original state.
|
|
467
467
|
* This can be reverted via closePreview()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA6BA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH;;;;GAIG;AACH;IAqqBE;;;;;;;;;;;;OAYG;IACH,+BARW,IAAI,GAAC,IAAI,GAAC,MAAM,WAChB,OAAO,GACL,OAAO,OAAO,CAc1B;IAED;;;;;OAKG;IACH,qCAFa,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,gDAHW,MAAM,OAMhB;IAwpBD;;;;;OAKG;IACH,2CAFa,OAAO,CAOnB;IAxwCD;;;;OAIG;IACH,qBAHW,aAAa,EAsBvB;IA7HD;;;OAGG;IACH,sBAAiB;IAEjB;;;OAGG;IACH,sBAAsB;IAEtB;;;OAGG;IACH,YAAO;IAEP;;;OAGG;IACH,UAAK;IAEL;;;OAGG;IACH,WAFU,OAAO,CAEC;IAQlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+DE;IAkKF;;;;OAIG;IACH,0BAFa,IAAI,CAIhB;IADC,aAAsB;IAsBxB;;;OAGG;IACH,SAFa,IAAI,CAIhB;IAED;;;OAGG;IACH,iBAEC;IAED;;;OAGG;IACH,mBAEC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,kBAFa,OAAO,CAInB;IAED;;;OAGG;IACH,mBAFa,OAAO,CAInB;IAED;;;OAGG;IACH,eAFa,WAAW,CAIvB;IAED;;;OAGG;IACH,aAFa,KAAK,CAAE,IAAI,CAAC,CAIxB;IAED;;;OAGG;IACH,aAEC;IAED;;;OAGG;IACH,WAEC;IAED;;;OAG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;;;OAKG;IACH,2CAHW,MAAM,GACJ,IAAI,CAYhB;IAED;;;;;;;;OAQG;IACH,yCAHW,UAAU,EAAE,GACV,IAAI,CAMhB;IAED;;;;;;OAMG;IACH,4BAJW,UAAU,EAAE,cACZ,QAAQ,gCACN,IAAI,CAkBhB;IAED;;;;;;;OAOG;IACH,sCAJW,KAAQ,cACR,MAAM,EAAE,GACN,IAAI,CAKhB;IAFC,mBAAoC;IAItC;;;;OAIG;IACH,gBAFa,IAAI,CAKhB;;CAEF;;;;;cAzmDa,MAAM;;;;iBACN,MAAM;;;;;;;;;UAWP,MAAM;;;;WACN,MAAM;;;;WACN,MAAM,GAAG,IAAI;;;;;;cAIZ,WAAW;;;;eACX,MAAM;;;;iBACN,OAAO;;;;mBACP,QAAQ;;;;iBACR,MAAM;;;;cACN,MAAM;;;;WACN,IAAI;;;;YACJ,KAAK,CAAE,IAAI,CAAC;;;;;;;;;;;;;;;;mBAIZ,MAAM;;;;WACN,MAAM;;;;WACN,MAAM;;;;;;;;;;;;;;;;;;;;iBAKN,MAAM;;;;;;;;eAEN,OAAO;;;;;;;;;;;;;;;;uBAIP,OAAO;;;;wBACP,OAAO;;;;gBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;uBAGP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAsBP,OAAO;;;;mBACP,OAAO;;;;WACP,MAAM;;6BApGS,mBAAmB"}
|
|
@@ -4,23 +4,33 @@
|
|
|
4
4
|
export class EventEmitter {
|
|
5
5
|
/**
|
|
6
6
|
* Subscribe to the event.
|
|
7
|
-
* @param name Event name.
|
|
8
|
-
* @param fn Callback.
|
|
7
|
+
* @param {string} name Event name.
|
|
8
|
+
* @param {(...args: any[]) => void} fn Callback.
|
|
9
|
+
* @returns {void}
|
|
9
10
|
*/
|
|
10
|
-
on(name:
|
|
11
|
+
on(name: string, fn: (...args: any[]) => void): void;
|
|
11
12
|
/**
|
|
12
13
|
* Emit event.
|
|
13
|
-
* @param name Event name.
|
|
14
|
-
* @param args Arguments.
|
|
14
|
+
* @param {string} name Event name.
|
|
15
|
+
* @param {...any} args – Arguments to pass to each listener.
|
|
16
|
+
* @returns {void}
|
|
15
17
|
*/
|
|
16
|
-
emit(name:
|
|
18
|
+
emit(name: string, ...args: any[]): void;
|
|
17
19
|
/**
|
|
18
20
|
* Remove a specific callback from event
|
|
19
21
|
* or all event subscriptions.
|
|
20
|
-
* @param name Event name.
|
|
21
|
-
* @param fn Callback.
|
|
22
|
+
* @param {string} name Event name.
|
|
23
|
+
* @param {(...args: any[]) => void} fn Callback.
|
|
24
|
+
* @returns {void}
|
|
22
25
|
*/
|
|
23
|
-
off(name:
|
|
26
|
+
off(name: string, fn: (...args: any[]) => void): void;
|
|
27
|
+
/**
|
|
28
|
+
* Subscribe to an event that will be called only once.
|
|
29
|
+
* @param {string} name Event name.
|
|
30
|
+
* @param {(...args: any[]) => void} fn Callback.
|
|
31
|
+
* @returns {void}
|
|
32
|
+
*/
|
|
33
|
+
once(name: string, fn: (...args: any[]) => void): void;
|
|
24
34
|
/**
|
|
25
35
|
* Remove all registered events and subscriptions.
|
|
26
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../src/core/EventEmitter.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IAGE
|
|
1
|
+
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../src/core/EventEmitter.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IAGE;;;;;OAKG;IACH,SAJW,MAAM,MACN,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACtB,IAAI,CAMhB;IAED;;;;;OAKG;IACH,WAJW,MAAM,WACH,GAAG,EAAA,GACJ,IAAI,CAQhB;IAED;;;;;;OAMG;IACH,UAJW,MAAM,MACN,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACtB,IAAI,CAahB;IAED;;;;;OAKG;IACH,WAJW,MAAM,MACN,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACtB,IAAI,CAQhB;IAED;;OAEG;IACH,2BAEC;;CACF"}
|
|
@@ -3,14 +3,16 @@ export function processTables({ state, tr, annotationValues }: {
|
|
|
3
3
|
editor: any;
|
|
4
4
|
annotationValues: any[];
|
|
5
5
|
}): any;
|
|
6
|
-
export function
|
|
6
|
+
export function getAllHeaderFooterEditors(editor: Editor): any[];
|
|
7
|
+
export function annotateDocument({ annotationValues, hiddenFieldIds, removeEmptyFields, schema, tr, editor, }: {
|
|
7
8
|
annotationValues?: any[];
|
|
8
9
|
hiddenFieldIds?: any[];
|
|
10
|
+
removeEmptyFields?: boolean;
|
|
9
11
|
schema: any;
|
|
10
12
|
tr: any;
|
|
11
13
|
editor: any;
|
|
12
14
|
}): any;
|
|
13
|
-
export namespace
|
|
15
|
+
export namespace AnnotatorHelpers {
|
|
14
16
|
export { getFieldAttrs };
|
|
15
17
|
export { processTables };
|
|
16
18
|
export { annotateDocument };
|
|
@@ -25,7 +27,7 @@ export namespace AnnotatorServices {
|
|
|
25
27
|
* @param {Array} param0.hiddenFieldIds List of field IDs to hide
|
|
26
28
|
* @returns {void}
|
|
27
29
|
*/
|
|
28
|
-
declare function annotateHeadersAndFooters({ editor, annotationValues, hiddenFieldIds }: {
|
|
30
|
+
declare function annotateHeadersAndFooters({ editor, annotationValues, hiddenFieldIds, removeEmptyFields }: {
|
|
29
31
|
editor: any;
|
|
30
32
|
annotationValues: any[];
|
|
31
33
|
hiddenFieldIds: any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAWO,uEAiBN;AAiCM,+DAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAkBA;
|
|
1
|
+
{"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAWO,uEAiBN;AAiCM,+DAHJ;IAAuB,MAAM;IACP,gBAAgB;CACxC,OAkBA;AA8FM,kDAHI,MAAM,GACJ,KAAQ,CAsCpB;AAwBM;;;;;;;QAyFN;;;;;;;AA/GD;;;;;;;;GAQG;AACH,4GALG;IAAuB,MAAM;IACP,gBAAgB;IAChB,cAAc;CACpC,GAAU,IAAI,CAahB"}
|
|
@@ -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-HCMuRikV.js";
|
|
2
|
+
import "./chunks/converter-B3YG794p.js";
|
|
3
|
+
import "./chunks/docx-zipper-CjIsb1a6.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHeaderFooterAnnotations.d.ts","sourceRoot":"","sources":["../../../../src/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.js"],"names":[],"mappings":"AAOO,yDAFM,KAAQ,CAWpB"}
|
|
@@ -6,4 +6,5 @@ export * from "./findFirstFieldAnnotationByFieldId.js";
|
|
|
6
6
|
export * from "./findFieldAnnotationsBetween.js";
|
|
7
7
|
export * from "./findRemovedFieldAnnotations.js";
|
|
8
8
|
export * from "./trackFieldAnnotationsDeletion.js";
|
|
9
|
+
export * from "./getHeaderFooterAnnotations.js";
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -21,5 +21,5 @@ export namespace Extensions {
|
|
|
21
21
|
import { TrackChangesBasePluginKey } from './extensions/track-changes/plugins/index.js';
|
|
22
22
|
import { CommentsPluginKey } from './extensions/comment/comments-plugin.js';
|
|
23
23
|
import { Plugin } from 'prosemirror-state';
|
|
24
|
-
export { SuperConverter, DocxZipper, SuperToolbar, Editor, SuperEditor, SuperInput, BasicUpload, Toolbar, AIWriter, helpers, fieldAnnotationHelpers, trackChangesHelpers, getMarksFromSelection, getActiveFormatting, getStarterExtensions, getRichTextExtensions, createZip, getAllowedImageDimensions, TrackChangesBasePluginKey, CommentsPluginKey };
|
|
24
|
+
export { SuperConverter, DocxZipper, SuperToolbar, Editor, SuperEditor, SuperInput, BasicUpload, Toolbar, AIWriter, helpers, fieldAnnotationHelpers, trackChangesHelpers, AnnotatorHelpers, getMarksFromSelection, getActiveFormatting, getStarterExtensions, getRichTextExtensions, createZip, getAllowedImageDimensions, TrackChangesBasePluginKey, CommentsPluginKey };
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, M as Mark, j as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
13
|
-
import { C, T, l,
|
|
14
|
-
import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-
|
|
15
|
-
import { O } from "./chunks/converter-
|
|
12
|
+
import { _ as _export_sfc, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, u as undoDepth, r as redoDepth, E as Editor, e as getStarterExtensions, P as Placeholder, h as getRichTextExtensions, M as Mark, j as Extension, A as Attribute, N as Node } from "./chunks/editor-HCMuRikV.js";
|
|
13
|
+
import { n, C, T, l, o, k, m } from "./chunks/editor-HCMuRikV.js";
|
|
14
|
+
import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-B3YG794p.js";
|
|
15
|
+
import { O } from "./chunks/converter-B3YG794p.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, createElementVNode, unref, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, normalizeClass, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-DNy-8F3W.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-CjIsb1a6.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
(function(module) {
|
|
@@ -3346,6 +3346,7 @@ const Extensions = {
|
|
|
3346
3346
|
};
|
|
3347
3347
|
export {
|
|
3348
3348
|
AIWriter,
|
|
3349
|
+
n as AnnotatorHelpers,
|
|
3349
3350
|
_sfc_main$1 as BasicUpload,
|
|
3350
3351
|
C as CommentsPluginKey,
|
|
3351
3352
|
D as DocxZipper,
|
|
@@ -3361,7 +3362,7 @@ export {
|
|
|
3361
3362
|
l as fieldAnnotationHelpers,
|
|
3362
3363
|
getActiveFormatting,
|
|
3363
3364
|
getAllowedImageDimensions,
|
|
3364
|
-
|
|
3365
|
+
o as getMarksFromSelection,
|
|
3365
3366
|
getRichTextExtensions,
|
|
3366
3367
|
getStarterExtensions,
|
|
3367
3368
|
k as helpers,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BTMvkUyI.d.ts","sourceRoot":"","sources":["../../../../../../src/tests/e2e/test-app/dist/assets/index-BTMvkUyI.js"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: import("vite").UserConfig & Promise<import("vite").UserConfig> &
|
|
1
|
+
declare const _default: import("vite").UserConfig & Promise<import("vite").UserConfig> & import("vite").UserConfigFnObject & import("vite").UserConfigFnPromise & import("vite").UserConfigFn;
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=vite.config.d.ts.map
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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-3Ibj8IyF.cjs");
|
|
4
4
|
require("./chunks/vue-DPZkajuO.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
|
+
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
6
7
|
exports.BasicUpload = superEditor_es._sfc_main$1;
|
|
7
8
|
exports.CommentsPluginKey = superEditor_es.CommentsPluginKey;
|
|
8
9
|
exports.DocxZipper = superEditor_es.DocxZipper;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { A, _, C, D, E,
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, T, f, g, i, h, j, k, l, m, n, o } from "./chunks/super-editor.es-Cs2w1rLv.es.js";
|
|
2
2
|
import "./chunks/vue-IIIZMHTg.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
|
5
|
+
a as AnnotatorHelpers,
|
|
5
6
|
_ as BasicUpload,
|
|
6
7
|
C as CommentsPluginKey,
|
|
7
8
|
D as DocxZipper,
|
|
8
9
|
E as Editor,
|
|
9
|
-
|
|
10
|
+
b as Extensions,
|
|
10
11
|
S as SuperConverter,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
c as SuperEditor,
|
|
13
|
+
d as SuperInput,
|
|
14
|
+
e as SuperToolbar,
|
|
14
15
|
T as Toolbar,
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
f as TrackChangesBasePluginKey,
|
|
17
|
+
g as createZip,
|
|
17
18
|
i as fieldAnnotationHelpers,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
h as getActiveFormatting,
|
|
20
|
+
j as getAllowedImageDimensions,
|
|
21
|
+
k as getMarksFromSelection,
|
|
22
|
+
l as getRichTextExtensions,
|
|
23
|
+
m as getStarterExtensions,
|
|
24
|
+
n as helpers,
|
|
25
|
+
o as trackChangesHelpers
|
|
25
26
|
};
|
package/dist/superdoc.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-3Ibj8IyF.cjs");
|
|
4
4
|
const vue = require("./chunks/vue-DPZkajuO.cjs");
|
|
5
5
|
const jszip = require("./chunks/jszip-Bwu_om3F.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
|
@@ -46560,7 +46560,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
46560
46560
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46561
46561
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46562
46562
|
this.colorIndex = 0;
|
|
46563
|
-
this.version = "0.12.
|
|
46563
|
+
this.version = "0.12.30-rev.1";
|
|
46564
46564
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46565
46565
|
this.superdocId = config.superdocId || uuid.v4();
|
|
46566
46566
|
this.colors = this.config.colors;
|
|
@@ -47117,6 +47117,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47117
47117
|
}
|
|
47118
47118
|
}
|
|
47119
47119
|
}
|
|
47120
|
+
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
47120
47121
|
exports.Editor = superEditor_es.Editor;
|
|
47121
47122
|
exports.SuperConverter = superEditor_es.SuperConverter;
|
|
47122
47123
|
exports.createZip = superEditor_es.createZip;
|