@harbour-enterprises/superdoc 0.25.0 → 0.26.0-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/{PdfViewer-Y13XRanw.es.js → PdfViewer-BUDqeNx7.es.js} +1 -1
- package/dist/chunks/{PdfViewer-DDL0V0l5.cjs → PdfViewer-Bk6eeTRu.cjs} +1 -1
- package/dist/chunks/{index-Bo5YCvD5.cjs → index-W-nB4woH.cjs} +19 -3
- package/dist/chunks/{index-DKNVSdr6.es.js → index-kTEBpqiG.es.js} +19 -3
- package/dist/chunks/{super-editor.es-Ct2sXbNV.cjs → super-editor.es-C74O3hXJ.cjs} +484 -253
- package/dist/chunks/{super-editor.es-CYtLh0Ob.es.js → super-editor.es-DznCuGcp.es.js} +484 -253
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-gSy6s2VK.js → converter-khE-H7hH.js} +90 -73
- package/dist/super-editor/chunks/{docx-zipper-CceGxV02.js → docx-zipper-KoUEtzIj.js} +1 -1
- package/dist/super-editor/chunks/{editor-CoX24lXQ.js → editor-wd9pvfTV.js} +421 -192
- package/dist/super-editor/chunks/{toolbar-BTw9-jfX.js → toolbar-CWJmT_bY.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/core/Editor.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts +11 -0
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts +25 -0
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTablesById.d.ts +10 -0
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/extensions/table/table.d.ts +84 -0
- package/dist/super-editor/super-editor/src/extensions/table/tableHelpers/appendRows.d.ts +139 -0
- package/dist/super-editor/super-editor/src/index.d.ts +8 -2
- package/dist/super-editor/super-editor.es.js +18 -14
- 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 +501 -254
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as defineComponent, B as h, O as Transition, $ as process$1, I as watchEffect, d as computed, r as ref, j as onMounted, W as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, f as createCommentVNode, v as createVNode, x as unref } from "./vue-ZWZLQtoU.es.js";
|
|
2
|
-
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-
|
|
2
|
+
import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-kTEBpqiG.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("./vue-DKMj1I9B.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-W-nB4woH.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-C74O3hXJ.cjs");
|
|
3
3
|
const vue = require("./vue-DKMj1I9B.cjs");
|
|
4
4
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
5
5
|
const eventemitter3 = require("./eventemitter3-DkXkH2rT.cjs");
|
|
@@ -17164,7 +17164,7 @@ const _sfc_main = {
|
|
|
17164
17164
|
__name: "SuperDoc",
|
|
17165
17165
|
emits: ["selection-update"],
|
|
17166
17166
|
setup(__props, { emit: __emit }) {
|
|
17167
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17167
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-Bk6eeTRu.cjs")));
|
|
17168
17168
|
const superdocStore = useSuperdocStore();
|
|
17169
17169
|
const commentsStore = useCommentsStore();
|
|
17170
17170
|
const {
|
|
@@ -17827,6 +17827,10 @@ const cleanName = (currentName) => {
|
|
|
17827
17827
|
}
|
|
17828
17828
|
return currentName;
|
|
17829
17829
|
};
|
|
17830
|
+
const DEFAULT_USER = Object.freeze({
|
|
17831
|
+
name: "Default SuperDoc user",
|
|
17832
|
+
email: null
|
|
17833
|
+
});
|
|
17830
17834
|
class SuperDoc extends eventemitter3.EventEmitter {
|
|
17831
17835
|
/** @type {Array<string>} */
|
|
17832
17836
|
static allowedTypes = [DOCX, PDF, HTML];
|
|
@@ -17905,6 +17909,18 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
17905
17909
|
...this.config,
|
|
17906
17910
|
...config
|
|
17907
17911
|
};
|
|
17912
|
+
const incomingUser = this.config.user;
|
|
17913
|
+
if (!incomingUser || typeof incomingUser !== "object") {
|
|
17914
|
+
this.config.user = { ...DEFAULT_USER };
|
|
17915
|
+
} else {
|
|
17916
|
+
this.config.user = {
|
|
17917
|
+
...DEFAULT_USER,
|
|
17918
|
+
...incomingUser
|
|
17919
|
+
};
|
|
17920
|
+
if (!this.config.user.name) {
|
|
17921
|
+
this.config.user.name = DEFAULT_USER.name;
|
|
17922
|
+
}
|
|
17923
|
+
}
|
|
17908
17924
|
this.config.modules = this.config.modules || {};
|
|
17909
17925
|
if (!Object.prototype.hasOwnProperty.call(this.config.modules, "comments")) {
|
|
17910
17926
|
this.config.modules.comments = {};
|
|
@@ -17912,7 +17928,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
17912
17928
|
this.config.colors = shuffleArray(this.config.colors);
|
|
17913
17929
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
17914
17930
|
this.colorIndex = 0;
|
|
17915
|
-
this.version = "0.
|
|
17931
|
+
this.version = "0.25.0";
|
|
17916
17932
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
17917
17933
|
this.superdocId = config.superdocId || uuid.v4();
|
|
17918
17934
|
this.colors = this.config.colors;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-
|
|
1
|
+
import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-DznCuGcp.es.js";
|
|
2
2
|
import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, d as computed, a2 as isRef, a3 as isReactive, C as toRef, i as inject, p as getCurrentInstance, l as watch, x as unref, a4 as hasInjectionContext, M as reactive, s as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, J as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, H as withDirectives, B as h, U as Teleport, R as renderSlot, V as isVNode, I as watchEffect, O as Transition, a8 as TransitionGroup, E as mergeProps, P as vShow, G as cloneVNode, T as Text, c as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, a as createBaseVNode, A as normalizeStyle, f as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, e as renderList, b as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-ZWZLQtoU.es.js";
|
|
3
3
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
import { E as EventEmitter } from "./eventemitter3-BWEnUdTY.es.js";
|
|
@@ -17147,7 +17147,7 @@ const _sfc_main = {
|
|
|
17147
17147
|
__name: "SuperDoc",
|
|
17148
17148
|
emits: ["selection-update"],
|
|
17149
17149
|
setup(__props, { emit: __emit }) {
|
|
17150
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17150
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-BUDqeNx7.es.js"));
|
|
17151
17151
|
const superdocStore = useSuperdocStore();
|
|
17152
17152
|
const commentsStore = useCommentsStore();
|
|
17153
17153
|
const {
|
|
@@ -17810,6 +17810,10 @@ const cleanName = (currentName) => {
|
|
|
17810
17810
|
}
|
|
17811
17811
|
return currentName;
|
|
17812
17812
|
};
|
|
17813
|
+
const DEFAULT_USER = Object.freeze({
|
|
17814
|
+
name: "Default SuperDoc user",
|
|
17815
|
+
email: null
|
|
17816
|
+
});
|
|
17813
17817
|
class SuperDoc extends EventEmitter {
|
|
17814
17818
|
/** @type {Array<string>} */
|
|
17815
17819
|
static allowedTypes = [DOCX, PDF, HTML];
|
|
@@ -17888,6 +17892,18 @@ class SuperDoc extends EventEmitter {
|
|
|
17888
17892
|
...this.config,
|
|
17889
17893
|
...config
|
|
17890
17894
|
};
|
|
17895
|
+
const incomingUser = this.config.user;
|
|
17896
|
+
if (!incomingUser || typeof incomingUser !== "object") {
|
|
17897
|
+
this.config.user = { ...DEFAULT_USER };
|
|
17898
|
+
} else {
|
|
17899
|
+
this.config.user = {
|
|
17900
|
+
...DEFAULT_USER,
|
|
17901
|
+
...incomingUser
|
|
17902
|
+
};
|
|
17903
|
+
if (!this.config.user.name) {
|
|
17904
|
+
this.config.user.name = DEFAULT_USER.name;
|
|
17905
|
+
}
|
|
17906
|
+
}
|
|
17891
17907
|
this.config.modules = this.config.modules || {};
|
|
17892
17908
|
if (!Object.prototype.hasOwnProperty.call(this.config.modules, "comments")) {
|
|
17893
17909
|
this.config.modules.comments = {};
|
|
@@ -17895,7 +17911,7 @@ class SuperDoc extends EventEmitter {
|
|
|
17895
17911
|
this.config.colors = shuffleArray(this.config.colors);
|
|
17896
17912
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
17897
17913
|
this.colorIndex = 0;
|
|
17898
|
-
this.version = "0.
|
|
17914
|
+
this.version = "0.25.0";
|
|
17899
17915
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
17900
17916
|
this.superdocId = config.superdocId || v4();
|
|
17901
17917
|
this.colors = this.config.colors;
|