@harbour-enterprises/superdoc 0.12.31-next.1 → 0.12.31-next.2
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-Bt5pMkY-.es.js → super-editor.es-B4lJkgrf.es.js} +63 -37
- package/dist/chunks/{super-editor.es-CzfjXQ8V.cjs → super-editor.es-Du18AHQE.cjs} +50 -24
- 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-LyqpytFD.js → converter-CP_Na8aB.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CSx2w--M.js → docx-zipper-BqcYpY0b.js} +1 -1
- package/dist/super-editor/chunks/{editor-czvDp00c.js → editor-CFxAdvpz.js} +51 -25
- package/dist/super-editor/chunks/{toolbar-BnvzLMKn.js → toolbar-CNZaB4OD.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/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/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 +51 -25
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -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-CFxAdvpz.js";
|
|
2
|
+
import "./chunks/converter-CP_Na8aB.js";
|
|
3
|
+
import "./chunks/docx-zipper-BqcYpY0b.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, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, e as undoDepth, r as redoDepth, E as Editor, h as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
13
|
-
import { C, T, m,
|
|
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, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, e as undoDepth, r as redoDepth, E as Editor, h as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-CFxAdvpz.js";
|
|
13
|
+
import { o, C, T, m, p, l, n } from "./chunks/editor-CFxAdvpz.js";
|
|
14
|
+
import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-CP_Na8aB.js";
|
|
15
|
+
import { O } from "./chunks/converter-CP_Na8aB.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, 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-CNZaB4OD.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-BqcYpY0b.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
(function(module) {
|
|
@@ -3506,6 +3506,7 @@ const Extensions = {
|
|
|
3506
3506
|
};
|
|
3507
3507
|
export {
|
|
3508
3508
|
AIWriter,
|
|
3509
|
+
o as AnnotatorHelpers,
|
|
3509
3510
|
_sfc_main$1 as BasicUpload,
|
|
3510
3511
|
C as CommentsPluginKey,
|
|
3511
3512
|
D as DocxZipper,
|
|
@@ -3521,7 +3522,7 @@ export {
|
|
|
3521
3522
|
m as fieldAnnotationHelpers,
|
|
3522
3523
|
getActiveFormatting,
|
|
3523
3524
|
getAllowedImageDimensions,
|
|
3524
|
-
|
|
3525
|
+
p as getMarksFromSelection,
|
|
3525
3526
|
getRichTextExtensions,
|
|
3526
3527
|
getStarterExtensions,
|
|
3527
3528
|
l as helpers,
|
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-Du18AHQE.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-B4lJkgrf.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-Du18AHQE.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");
|
|
@@ -46574,7 +46574,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
46574
46574
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46575
46575
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46576
46576
|
this.colorIndex = 0;
|
|
46577
|
-
this.version = "0.12.31-next.
|
|
46577
|
+
this.version = "0.12.31-next.2";
|
|
46578
46578
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46579
46579
|
this.superdocId = config.superdocId || uuid.v4();
|
|
46580
46580
|
this.colors = this.config.colors;
|
|
@@ -47142,6 +47142,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47142
47142
|
this.highContrastModeStore.setHighContrastMode(isHighContrast);
|
|
47143
47143
|
}
|
|
47144
47144
|
}
|
|
47145
|
+
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
47145
47146
|
exports.Editor = superEditor_es.Editor;
|
|
47146
47147
|
exports.SuperConverter = superEditor_es.SuperConverter;
|
|
47147
47148
|
exports.createZip = superEditor_es.createZip;
|