@harbour-enterprises/superdoc 0.27.3 → 0.28.0-next.10
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-CCrMOIpU.cjs → PdfViewer-BnsPYL5w.cjs} +1 -1
- package/dist/chunks/{PdfViewer-DXMcf_Mb.es.js → PdfViewer-DBL2mtV7.es.js} +1 -1
- package/dist/chunks/{index-GJg72zc5.es.js → index-B5RApJzM.es.js} +10 -4
- package/dist/chunks/{index-CIFHwmHR.cjs → index-Bn2uXv1T.cjs} +10 -4
- package/dist/chunks/{super-editor.es-BYmNnbzd.es.js → super-editor.es-BZcjzGbD.es.js} +35261 -17398
- package/dist/chunks/{super-editor.es-BlDrv5SU.cjs → super-editor.es-C2gjIEyc.cjs} +35171 -17308
- 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 +7 -6
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/images/altText_disclaimer.svg +3 -0
- package/dist/images/altText_spinner.svg +30 -0
- package/dist/images/altText_warning.svg +3 -0
- package/dist/images/messageBar_closingButton.svg +3 -0
- package/dist/images/messageBar_warning.svg +3 -0
- package/dist/stores/comments-store.d.ts +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-GcMLdei-.js → converter-DJPby8Vf.js} +2525 -2509
- package/dist/super-editor/chunks/{docx-zipper-Y0x9TJvc.js → docx-zipper-BES4h7U3.js} +1 -1
- package/dist/super-editor/chunks/{editor-Bm6n8ccl.js → editor-DS_Pp30R.js} +21621 -3778
- package/dist/super-editor/chunks/{toolbar-0L9P26Ib.js → toolbar-BrhEM0st.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/components/toolbar/use-toolbar-item.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/Editor.d.ts +7 -1
- package/dist/super-editor/super-editor/src/core/commands/decreaseListIndent.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/increaseListIndent.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/commands/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/commands/list-helpers/list-indent-helpers.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/commands/setTextSelection.d.ts +4 -0
- package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +0 -16
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/types/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +2 -2
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/t/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/t/t-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +2 -1
- package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +2 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts +8 -6
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts +8 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +11 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +11 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTablesById.d.ts +8 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +11 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +12 -5
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +7 -6
- package/dist/super-editor/super-editor/src/tests/helpers/helpers.d.ts +1 -1
- package/dist/super-editor/super-editor.es.js +31 -31
- 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 +37123 -19256
- 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
|
@@ -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-Bn2uXv1T.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -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-B5RApJzM.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -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-BZcjzGbD.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";
|
|
@@ -6,7 +6,7 @@ import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/pro
|
|
|
6
6
|
import * as Y from "yjs";
|
|
7
7
|
import { Doc, Map as Map$2 } from "yjs";
|
|
8
8
|
import { B as Buffer$2 } from "./jszip-BDk3JBqp.es.js";
|
|
9
|
-
import { v as v4 } from "./uuid-
|
|
9
|
+
import { v as v4 } from "./uuid-CjlX8hrF.es.js";
|
|
10
10
|
const DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
11
11
|
const PDF = "application/pdf";
|
|
12
12
|
const HTML = "text/html";
|
|
@@ -3414,6 +3414,7 @@ function useComment(params2) {
|
|
|
3414
3414
|
const isFocused = ref(params2.isFocused || false);
|
|
3415
3415
|
const creatorEmail = params2.creatorEmail;
|
|
3416
3416
|
const creatorName = params2.creatorName;
|
|
3417
|
+
const creatorImage = params2.creatorImage;
|
|
3417
3418
|
const createdTime = params2.createdTime || Date.now();
|
|
3418
3419
|
const importedAuthor = ref(params2.importedAuthor || null);
|
|
3419
3420
|
const commentText = ref(params2.commentText || "");
|
|
@@ -3506,7 +3507,7 @@ function useComment(params2) {
|
|
|
3506
3507
|
selection.selectionBounds = newCoords;
|
|
3507
3508
|
};
|
|
3508
3509
|
const getCommentUser = () => {
|
|
3509
|
-
const user = importedAuthor.value ? { name: importedAuthor.value.name || "(Imported)", email: importedAuthor.value.email } : { name: creatorName, email: creatorEmail };
|
|
3510
|
+
const user = importedAuthor.value ? { name: importedAuthor.value.name || "(Imported)", email: importedAuthor.value.email } : { name: creatorName, email: creatorEmail, image: creatorImage };
|
|
3510
3511
|
return user;
|
|
3511
3512
|
};
|
|
3512
3513
|
const propagateUpdate = (superdoc2, event) => {
|
|
@@ -3527,6 +3528,7 @@ function useComment(params2) {
|
|
|
3527
3528
|
createdAtVersionNumber,
|
|
3528
3529
|
creatorEmail,
|
|
3529
3530
|
creatorName,
|
|
3531
|
+
creatorImage,
|
|
3530
3532
|
createdTime,
|
|
3531
3533
|
importedAuthor: importedAuthor.value,
|
|
3532
3534
|
isInternal: isInternal.value,
|
|
@@ -3553,6 +3555,7 @@ function useComment(params2) {
|
|
|
3553
3555
|
isFocused,
|
|
3554
3556
|
creatorEmail,
|
|
3555
3557
|
creatorName,
|
|
3558
|
+
creatorImage,
|
|
3556
3559
|
createdTime,
|
|
3557
3560
|
isInternal,
|
|
3558
3561
|
commentText,
|
|
@@ -3949,6 +3952,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
3949
3952
|
trackedChangeType,
|
|
3950
3953
|
deletedText,
|
|
3951
3954
|
authorEmail,
|
|
3955
|
+
authorImage,
|
|
3952
3956
|
date,
|
|
3953
3957
|
author: authorName,
|
|
3954
3958
|
importedAuthor,
|
|
@@ -3965,6 +3969,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
3965
3969
|
createdTime: date,
|
|
3966
3970
|
creatorName: authorName,
|
|
3967
3971
|
creatorEmail: authorEmail,
|
|
3972
|
+
creatorImage: authorImage,
|
|
3968
3973
|
isInternal: false,
|
|
3969
3974
|
importedAuthor,
|
|
3970
3975
|
selection: {
|
|
@@ -4074,6 +4079,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4074
4079
|
parentCommentId,
|
|
4075
4080
|
creatorEmail: superdocStore.user.email,
|
|
4076
4081
|
creatorName: superdocStore.user.name,
|
|
4082
|
+
creatorImage: superdocStore.user.image,
|
|
4077
4083
|
commentText: currentCommentText.value,
|
|
4078
4084
|
selection,
|
|
4079
4085
|
...options
|
|
@@ -17150,7 +17156,7 @@ const _sfc_main = {
|
|
|
17150
17156
|
__name: "SuperDoc",
|
|
17151
17157
|
emits: ["selection-update"],
|
|
17152
17158
|
setup(__props, { emit: __emit }) {
|
|
17153
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17159
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-DBL2mtV7.es.js"));
|
|
17154
17160
|
const superdocStore = useSuperdocStore();
|
|
17155
17161
|
const commentsStore = useCommentsStore();
|
|
17156
17162
|
const {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-C2gjIEyc.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");
|
|
6
6
|
const provider = require("@hocuspocus/provider");
|
|
7
7
|
const Y = require("yjs");
|
|
8
8
|
const jszip = require("./jszip-u4dvXAKa.cjs");
|
|
9
|
-
const uuid = require("./uuid-
|
|
9
|
+
const uuid = require("./uuid-R7L08bOx.cjs");
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
11
11
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
12
12
|
if (e) {
|
|
@@ -3431,6 +3431,7 @@ function useComment(params2) {
|
|
|
3431
3431
|
const isFocused = vue.ref(params2.isFocused || false);
|
|
3432
3432
|
const creatorEmail = params2.creatorEmail;
|
|
3433
3433
|
const creatorName = params2.creatorName;
|
|
3434
|
+
const creatorImage = params2.creatorImage;
|
|
3434
3435
|
const createdTime = params2.createdTime || Date.now();
|
|
3435
3436
|
const importedAuthor = vue.ref(params2.importedAuthor || null);
|
|
3436
3437
|
const commentText = vue.ref(params2.commentText || "");
|
|
@@ -3523,7 +3524,7 @@ function useComment(params2) {
|
|
|
3523
3524
|
selection.selectionBounds = newCoords;
|
|
3524
3525
|
};
|
|
3525
3526
|
const getCommentUser = () => {
|
|
3526
|
-
const user = importedAuthor.value ? { name: importedAuthor.value.name || "(Imported)", email: importedAuthor.value.email } : { name: creatorName, email: creatorEmail };
|
|
3527
|
+
const user = importedAuthor.value ? { name: importedAuthor.value.name || "(Imported)", email: importedAuthor.value.email } : { name: creatorName, email: creatorEmail, image: creatorImage };
|
|
3527
3528
|
return user;
|
|
3528
3529
|
};
|
|
3529
3530
|
const propagateUpdate = (superdoc2, event) => {
|
|
@@ -3544,6 +3545,7 @@ function useComment(params2) {
|
|
|
3544
3545
|
createdAtVersionNumber,
|
|
3545
3546
|
creatorEmail,
|
|
3546
3547
|
creatorName,
|
|
3548
|
+
creatorImage,
|
|
3547
3549
|
createdTime,
|
|
3548
3550
|
importedAuthor: importedAuthor.value,
|
|
3549
3551
|
isInternal: isInternal.value,
|
|
@@ -3570,6 +3572,7 @@ function useComment(params2) {
|
|
|
3570
3572
|
isFocused,
|
|
3571
3573
|
creatorEmail,
|
|
3572
3574
|
creatorName,
|
|
3575
|
+
creatorImage,
|
|
3573
3576
|
createdTime,
|
|
3574
3577
|
isInternal,
|
|
3575
3578
|
commentText,
|
|
@@ -3966,6 +3969,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
3966
3969
|
trackedChangeType,
|
|
3967
3970
|
deletedText,
|
|
3968
3971
|
authorEmail,
|
|
3972
|
+
authorImage,
|
|
3969
3973
|
date,
|
|
3970
3974
|
author: authorName,
|
|
3971
3975
|
importedAuthor,
|
|
@@ -3982,6 +3986,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
3982
3986
|
createdTime: date,
|
|
3983
3987
|
creatorName: authorName,
|
|
3984
3988
|
creatorEmail: authorEmail,
|
|
3989
|
+
creatorImage: authorImage,
|
|
3985
3990
|
isInternal: false,
|
|
3986
3991
|
importedAuthor,
|
|
3987
3992
|
selection: {
|
|
@@ -4091,6 +4096,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4091
4096
|
parentCommentId,
|
|
4092
4097
|
creatorEmail: superdocStore.user.email,
|
|
4093
4098
|
creatorName: superdocStore.user.name,
|
|
4099
|
+
creatorImage: superdocStore.user.image,
|
|
4094
4100
|
commentText: currentCommentText.value,
|
|
4095
4101
|
selection,
|
|
4096
4102
|
...options
|
|
@@ -17167,7 +17173,7 @@ const _sfc_main = {
|
|
|
17167
17173
|
__name: "SuperDoc",
|
|
17168
17174
|
emits: ["selection-update"],
|
|
17169
17175
|
setup(__props, { emit: __emit }) {
|
|
17170
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17176
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-BnsPYL5w.cjs")));
|
|
17171
17177
|
const superdocStore = useSuperdocStore();
|
|
17172
17178
|
const commentsStore = useCommentsStore();
|
|
17173
17179
|
const {
|