@harbour-enterprises/superdoc 0.28.0-next.5 → 0.28.0-next.7
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-DfV9m2w-.cjs → PdfViewer-Bs6lahtW.cjs} +1 -1
- package/dist/chunks/{PdfViewer-XosZYIXN.es.js → PdfViewer-Dk0kxvT5.es.js} +1 -1
- package/dist/chunks/{index-C-bRwL21.es.js → index-DW9wEJ6m.es.js} +2 -2
- package/dist/chunks/{index-D6Of6iAY.cjs → index-DrY82WYq.cjs} +2 -2
- package/dist/chunks/{super-editor.es-CcOevWta.cjs → super-editor.es-BqTmBqM7.cjs} +24620 -6925
- package/dist/chunks/{super-editor.es-DIXtx-tf.es.js → super-editor.es-Cv1NFWG8.es.js} +24710 -7015
- package/dist/core/types/index.d.ts +6 -5
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/images/altText_add.svg +3 -0
- package/dist/images/altText_disclaimer.svg +3 -0
- package/dist/images/altText_done.svg +3 -0
- package/dist/images/altText_spinner.svg +30 -0
- package/dist/images/altText_warning.svg +3 -0
- package/dist/images/annotation-check.svg +11 -0
- package/dist/images/annotation-comment.svg +16 -0
- package/dist/images/annotation-help.svg +26 -0
- package/dist/images/annotation-insert.svg +10 -0
- package/dist/images/annotation-key.svg +11 -0
- package/dist/images/annotation-newparagraph.svg +11 -0
- package/dist/images/annotation-noicon.svg +7 -0
- package/dist/images/annotation-note.svg +42 -0
- package/dist/images/annotation-paperclip.svg +6 -0
- package/dist/images/annotation-paragraph.svg +16 -0
- package/dist/images/annotation-pushpin.svg +7 -0
- package/dist/images/cursor-editorFreeHighlight.svg +6 -0
- package/dist/images/cursor-editorFreeText.svg +3 -0
- package/dist/images/cursor-editorInk.svg +4 -0
- package/dist/images/cursor-editorTextHighlight.svg +8 -0
- package/dist/images/editor-toolbar-delete.svg +5 -0
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/messageBar_closingButton.svg +3 -0
- package/dist/images/messageBar_warning.svg +3 -0
- package/dist/images/toolbarButton-editorHighlight.svg +6 -0
- package/dist/images/toolbarButton-menuArrow.svg +3 -0
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-wp7RjeT9.js → converter-kpd0gAZh.js} +426 -414
- package/dist/super-editor/chunks/{docx-zipper-CcShJNvj.js → docx-zipper-1SfZh-7P.js} +1 -1
- package/dist/super-editor/chunks/{editor-BRaGPAFY.js → editor-D8CLRqpz.js} +21407 -3724
- package/dist/super-editor/chunks/{toolbar-CJn7VKcT.js → toolbar-lCqYD_z-.js} +2 -2
- package/dist/super-editor/converter.es.js +2 -2
- 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/core/Editor.d.ts +5 -0
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +6 -5
- package/dist/super-editor/super-editor.es.js +15 -15
- 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 +25272 -7577
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -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-kpd0gAZh.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-D8CLRqpz.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-D8CLRqpz.js";
|
|
2
|
+
import "./chunks/converter-kpd0gAZh.js";
|
|
3
|
+
import "./chunks/docx-zipper-1SfZh-7P.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -479,6 +479,11 @@ export class Editor extends EventEmitter {
|
|
|
479
479
|
getHTML({ unflattenLists }?: {
|
|
480
480
|
unflattenLists?: boolean;
|
|
481
481
|
}): string;
|
|
482
|
+
/**
|
|
483
|
+
* Get the editor content as Markdown
|
|
484
|
+
* @returns {string} Editor content as Markdown
|
|
485
|
+
*/
|
|
486
|
+
getMarkdown(): string;
|
|
482
487
|
/**
|
|
483
488
|
* Get the document version from the converter
|
|
484
489
|
* @returns {string|null} The SuperDoc version stored in the document
|
|
@@ -26,7 +26,7 @@ export function isTrackedChangeActionAllowed({ editor, action, trackedChanges }:
|
|
|
26
26
|
setDocumentMode(documentMode: string, caller: string): void;
|
|
27
27
|
generateCollaborationUpdate(): Promise<Uint8Array>;
|
|
28
28
|
initializeCollaborationData(): void;
|
|
29
|
-
replaceContent(
|
|
29
|
+
replaceContent(content2: any): void;
|
|
30
30
|
setOptions(options?: EditorOptions): void;
|
|
31
31
|
options: any;
|
|
32
32
|
setEditable(editable?: boolean, emitUpdate?: boolean): void;
|
|
@@ -34,9 +34,9 @@ export function isTrackedChangeActionAllowed({ editor, action, trackedChanges }:
|
|
|
34
34
|
unregisterPlugin(nameOrPluginKey: string | any): void;
|
|
35
35
|
createNodeViews(): void;
|
|
36
36
|
getMaxContentSize(): any;
|
|
37
|
-
updateEditorStyles(
|
|
38
|
-
initDefaultStyles(
|
|
39
|
-
initMobileStyles(
|
|
37
|
+
updateEditorStyles(element2: any, proseMirror: any, hasPaginationEnabled?: boolean): void;
|
|
38
|
+
initDefaultStyles(element2?: HTMLElement, isPaginationEnabled?: boolean): void;
|
|
39
|
+
initMobileStyles(element2: any): void;
|
|
40
40
|
getDocumentIdentifier(): Promise<string>;
|
|
41
41
|
getDocumentGuid(): string | null;
|
|
42
42
|
isDocumentModified(): boolean;
|
|
@@ -58,6 +58,7 @@ export function isTrackedChangeActionAllowed({ editor, action, trackedChanges }:
|
|
|
58
58
|
getHTML({ unflattenLists }?: {
|
|
59
59
|
unflattenLists?: boolean;
|
|
60
60
|
}): string;
|
|
61
|
+
getMarkdown(): string;
|
|
61
62
|
getDocumentVersion(): string | null;
|
|
62
63
|
createChildEditor(options: EditorOptions): {
|
|
63
64
|
new (options: EditorOptions): /*elided*/ any;
|
|
@@ -87,7 +88,7 @@ export function isTrackedChangeActionAllowed({ editor, action, trackedChanges }:
|
|
|
87
88
|
getInternalXmlFile(name: string, type?: string): any | string;
|
|
88
89
|
updateInternalXmlFile(name: string, updatedContent: string): void;
|
|
89
90
|
getNodesOfType(type: string): any[];
|
|
90
|
-
replaceNodeWithHTML(targetNode: any,
|
|
91
|
+
replaceNodeWithHTML(targetNode: any, html2: any): void;
|
|
91
92
|
prepareForAnnotations(annotationValues?: FieldValue[]): void;
|
|
92
93
|
migrateParagraphFields(annotationValues?: FieldValue[]): Promise<FieldValue[]>;
|
|
93
94
|
annotate(annotationValues?: FieldValue[], hiddenIds?: string[], removeEmptyFields?: boolean): void;
|
|
@@ -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 {
|
|
13
|
-
import { c1,
|
|
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 { K as getDefaultExportFromCjs, W as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, H as findParentNode, aE as getActiveFormatting, aw 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-kpd0gAZh.js";
|
|
13
|
+
import { c1, a6, i, a3 } from "./chunks/converter-kpd0gAZh.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-D8CLRqpz.js";
|
|
15
|
+
import { t, C, v, T, p, w, q } from "./chunks/editor-D8CLRqpz.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-lCqYD_z-.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-1SfZh-7P.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -80,7 +80,7 @@ function requireEventemitter3() {
|
|
|
80
80
|
if (listeners.fn) return 1;
|
|
81
81
|
return listeners.length;
|
|
82
82
|
};
|
|
83
|
-
EventEmitter2.prototype.emit = function emit(event, a1,
|
|
83
|
+
EventEmitter2.prototype.emit = function emit(event, a1, a2, a32, a4, a5) {
|
|
84
84
|
var evt = prefix ? prefix + event : event;
|
|
85
85
|
if (!this._events[evt]) return false;
|
|
86
86
|
var listeners = this._events[evt], len = arguments.length, args, i2;
|
|
@@ -92,13 +92,13 @@ function requireEventemitter3() {
|
|
|
92
92
|
case 2:
|
|
93
93
|
return listeners.fn.call(listeners.context, a1), true;
|
|
94
94
|
case 3:
|
|
95
|
-
return listeners.fn.call(listeners.context, a1,
|
|
95
|
+
return listeners.fn.call(listeners.context, a1, a2), true;
|
|
96
96
|
case 4:
|
|
97
|
-
return listeners.fn.call(listeners.context, a1,
|
|
97
|
+
return listeners.fn.call(listeners.context, a1, a2, a32), true;
|
|
98
98
|
case 5:
|
|
99
|
-
return listeners.fn.call(listeners.context, a1,
|
|
99
|
+
return listeners.fn.call(listeners.context, a1, a2, a32, a4), true;
|
|
100
100
|
case 6:
|
|
101
|
-
return listeners.fn.call(listeners.context, a1,
|
|
101
|
+
return listeners.fn.call(listeners.context, a1, a2, a32, a4, a5), true;
|
|
102
102
|
}
|
|
103
103
|
for (i2 = 1, args = new Array(len - 1); i2 < len; i2++) {
|
|
104
104
|
args[i2 - 1] = arguments[i2];
|
|
@@ -116,10 +116,10 @@ function requireEventemitter3() {
|
|
|
116
116
|
listeners[i2].fn.call(listeners[i2].context, a1);
|
|
117
117
|
break;
|
|
118
118
|
case 3:
|
|
119
|
-
listeners[i2].fn.call(listeners[i2].context, a1,
|
|
119
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2);
|
|
120
120
|
break;
|
|
121
121
|
case 4:
|
|
122
|
-
listeners[i2].fn.call(listeners[i2].context, a1,
|
|
122
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2, a32);
|
|
123
123
|
break;
|
|
124
124
|
default:
|
|
125
125
|
if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) {
|
|
@@ -5196,7 +5196,7 @@ export {
|
|
|
5196
5196
|
Extensions,
|
|
5197
5197
|
v as SectionHelpers,
|
|
5198
5198
|
_sfc_main$4 as SlashMenu,
|
|
5199
|
-
|
|
5199
|
+
a6 as SuperConverter,
|
|
5200
5200
|
SuperEditor,
|
|
5201
5201
|
SuperInput,
|
|
5202
5202
|
SuperToolbar,
|
|
@@ -5209,7 +5209,7 @@ export {
|
|
|
5209
5209
|
i as getMarksFromSelection,
|
|
5210
5210
|
getRichTextExtensions,
|
|
5211
5211
|
getStarterExtensions,
|
|
5212
|
-
|
|
5212
|
+
a3 as helpers,
|
|
5213
5213
|
registeredHandlers,
|
|
5214
5214
|
q as trackChangesHelpers
|
|
5215
5215
|
};
|
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-BqTmBqM7.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-Cv1NFWG8.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-BqTmBqM7.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-DrY82WYq.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-Cv1NFWG8.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-DW9wEJ6m.es.js";
|
|
3
3
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
export {
|