superdoc 1.0.0-beta.16 → 1.0.0-beta.18
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-ODeuH1gb.es.js → PdfViewer-CDEQktlZ.es.js} +1 -1
- package/dist/chunks/{PdfViewer-93eWvs8z.cjs → PdfViewer-CZgU5VTe.cjs} +1 -1
- package/dist/chunks/{index-RquHXtgI.cjs → index-CBFc2Hsa.cjs} +8 -4
- package/dist/chunks/{index-DexFffM7-Cbdy0Zy6.es.js → index-DpnfmQSg--uFI4inB.es.js} +1 -1
- package/dist/chunks/{index-DexFffM7-XZD_g6eY.cjs → index-DpnfmQSg-D54nF5iO.cjs} +1 -1
- package/dist/chunks/{index-DW5_UKLM.es.js → index-yYYhcBhg.es.js} +8 -4
- package/dist/chunks/{super-editor.es-Dg5uoFkw.es.js → super-editor.es-BNkRY9J-.es.js} +2518 -1261
- package/dist/chunks/{super-editor.es-BLKWkx5G.cjs → super-editor.es-BfPsU6H-.cjs} +2517 -1260
- package/dist/packages/superdoc/src/components/CommentsLayer/use-comment.d.ts.map +1 -1
- package/dist/packages/superdoc/src/stores/comments-store.d.ts.map +1 -1
- package/dist/style.css +13 -13
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-C_R_BK8X.js → converter-Cz21HA_9.js} +277 -48
- package/dist/super-editor/chunks/{docx-zipper-BvQAYmi1.js → docx-zipper-DiEfO4LE.js} +1 -1
- package/dist/super-editor/chunks/{editor-DFFvalb1.js → editor-DoxVe-iR.js} +2082 -1159
- package/dist/super-editor/chunks/{index-DexFffM7.js → index-DpnfmQSg.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-DLPfegtw.js → toolbar-CKdQr5PG.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/style.css +13 -13
- package/dist/super-editor/super-editor.es.js +250 -80
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +3 -3
- 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 +2516 -1255
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { y as defineComponent, z as h, O as Transition, a0 as process$1, J as watchEffect, a as computed, r as ref, j as onMounted, W as onUnmounted, b as createElementBlock, o as openBlock, f as createBaseVNode, e as createCommentVNode, u as createVNode, v as unref } from "./vue-Dysv_7z5.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-yYYhcBhg.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-jWLMl8Ts.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-CBFc2Hsa.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-BfPsU6H-.cjs");
|
|
3
3
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
4
4
|
const eventemitter3 = require("./eventemitter3-DQmQUge-.cjs");
|
|
5
5
|
const provider = require("@hocuspocus/provider");
|
|
@@ -3482,6 +3482,7 @@ function useComment(params2) {
|
|
|
3482
3482
|
const creatorImage = params2.creatorImage;
|
|
3483
3483
|
const createdTime = params2.createdTime || Date.now();
|
|
3484
3484
|
const importedAuthor = vue.ref(params2.importedAuthor || null);
|
|
3485
|
+
const docxCommentJSON = params2.docxCommentJSON || null;
|
|
3485
3486
|
const commentText = vue.ref(params2.commentText || "");
|
|
3486
3487
|
const selection = params2.selection ? useSelection(params2.selection) : useSelection({
|
|
3487
3488
|
documentId: fileId,
|
|
@@ -3596,6 +3597,7 @@ function useComment(params2) {
|
|
|
3596
3597
|
creatorImage,
|
|
3597
3598
|
createdTime,
|
|
3598
3599
|
importedAuthor: importedAuthor.value,
|
|
3600
|
+
docxCommentJSON,
|
|
3599
3601
|
isInternal: isInternal.value,
|
|
3600
3602
|
commentText: commentText.value,
|
|
3601
3603
|
selection: selection ? selection.getValues() : null,
|
|
@@ -3634,6 +3636,7 @@ function useComment(params2) {
|
|
|
3634
3636
|
resolvedByEmail,
|
|
3635
3637
|
resolvedByName,
|
|
3636
3638
|
importedAuthor,
|
|
3639
|
+
docxCommentJSON,
|
|
3637
3640
|
// Actions
|
|
3638
3641
|
setText,
|
|
3639
3642
|
getValues,
|
|
@@ -4215,6 +4218,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4215
4218
|
const newComment = useComment({
|
|
4216
4219
|
fileId: documentId,
|
|
4217
4220
|
fileType: document2.type,
|
|
4221
|
+
docxCommentJSON: comment.textJson,
|
|
4218
4222
|
commentId: comment.commentId,
|
|
4219
4223
|
isInternal: false,
|
|
4220
4224
|
parentCommentId: comment.parentCommentId,
|
|
@@ -4275,7 +4279,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4275
4279
|
commentsList.value.forEach((comment) => {
|
|
4276
4280
|
const values = comment.getValues();
|
|
4277
4281
|
const richText = values.commentText;
|
|
4278
|
-
const schema = convertHtmlToSchema(richText);
|
|
4282
|
+
const schema = values.docxCommentJSON || convertHtmlToSchema(richText);
|
|
4279
4283
|
processedComments.push({
|
|
4280
4284
|
...values,
|
|
4281
4285
|
commentJSON: schema
|
|
@@ -17227,7 +17231,7 @@ const _sfc_main = {
|
|
|
17227
17231
|
__name: "SuperDoc",
|
|
17228
17232
|
emits: ["selection-update"],
|
|
17229
17233
|
setup(__props, { emit: __emit }) {
|
|
17230
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17234
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-CZgU5VTe.cjs")));
|
|
17231
17235
|
const superdocStore = useSuperdocStore();
|
|
17232
17236
|
const commentsStore = useCommentsStore();
|
|
17233
17237
|
const {
|
|
@@ -18080,7 +18084,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
18080
18084
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18081
18085
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18082
18086
|
this.colorIndex = 0;
|
|
18083
|
-
this.version = "1.0.0-beta.
|
|
18087
|
+
this.version = "1.0.0-beta.18";
|
|
18084
18088
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18085
18089
|
this.superdocId = config.superdocId || uuid.v4();
|
|
18086
18090
|
this.colors = this.config.colors;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./super-editor.es-
|
|
3
|
+
const superEditor_es = require("./super-editor.es-BfPsU6H-.cjs");
|
|
4
4
|
const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
|
|
5
5
|
function bail(error) {
|
|
6
6
|
if (error) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, 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, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-BNkRY9J-.es.js";
|
|
2
2
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
3
3
|
import { E as EventEmitter } from "./eventemitter3-CcXAdeql.es.js";
|
|
4
4
|
import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
|
|
@@ -3465,6 +3465,7 @@ function useComment(params2) {
|
|
|
3465
3465
|
const creatorImage = params2.creatorImage;
|
|
3466
3466
|
const createdTime = params2.createdTime || Date.now();
|
|
3467
3467
|
const importedAuthor = ref(params2.importedAuthor || null);
|
|
3468
|
+
const docxCommentJSON = params2.docxCommentJSON || null;
|
|
3468
3469
|
const commentText = ref(params2.commentText || "");
|
|
3469
3470
|
const selection = params2.selection ? useSelection(params2.selection) : useSelection({
|
|
3470
3471
|
documentId: fileId,
|
|
@@ -3579,6 +3580,7 @@ function useComment(params2) {
|
|
|
3579
3580
|
creatorImage,
|
|
3580
3581
|
createdTime,
|
|
3581
3582
|
importedAuthor: importedAuthor.value,
|
|
3583
|
+
docxCommentJSON,
|
|
3582
3584
|
isInternal: isInternal.value,
|
|
3583
3585
|
commentText: commentText.value,
|
|
3584
3586
|
selection: selection ? selection.getValues() : null,
|
|
@@ -3617,6 +3619,7 @@ function useComment(params2) {
|
|
|
3617
3619
|
resolvedByEmail,
|
|
3618
3620
|
resolvedByName,
|
|
3619
3621
|
importedAuthor,
|
|
3622
|
+
docxCommentJSON,
|
|
3620
3623
|
// Actions
|
|
3621
3624
|
setText,
|
|
3622
3625
|
getValues,
|
|
@@ -4198,6 +4201,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4198
4201
|
const newComment = useComment({
|
|
4199
4202
|
fileId: documentId,
|
|
4200
4203
|
fileType: document2.type,
|
|
4204
|
+
docxCommentJSON: comment.textJson,
|
|
4201
4205
|
commentId: comment.commentId,
|
|
4202
4206
|
isInternal: false,
|
|
4203
4207
|
parentCommentId: comment.parentCommentId,
|
|
@@ -4258,7 +4262,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4258
4262
|
commentsList.value.forEach((comment) => {
|
|
4259
4263
|
const values = comment.getValues();
|
|
4260
4264
|
const richText = values.commentText;
|
|
4261
|
-
const schema = convertHtmlToSchema(richText);
|
|
4265
|
+
const schema = values.docxCommentJSON || convertHtmlToSchema(richText);
|
|
4262
4266
|
processedComments.push({
|
|
4263
4267
|
...values,
|
|
4264
4268
|
commentJSON: schema
|
|
@@ -17210,7 +17214,7 @@ const _sfc_main = {
|
|
|
17210
17214
|
__name: "SuperDoc",
|
|
17211
17215
|
emits: ["selection-update"],
|
|
17212
17216
|
setup(__props, { emit: __emit }) {
|
|
17213
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17217
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-CDEQktlZ.es.js"));
|
|
17214
17218
|
const superdocStore = useSuperdocStore();
|
|
17215
17219
|
const commentsStore = useCommentsStore();
|
|
17216
17220
|
const {
|
|
@@ -18063,7 +18067,7 @@ class SuperDoc extends EventEmitter {
|
|
|
18063
18067
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18064
18068
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18065
18069
|
this.colorIndex = 0;
|
|
18066
|
-
this.version = "1.0.0-beta.
|
|
18070
|
+
this.version = "1.0.0-beta.18";
|
|
18067
18071
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18068
18072
|
this.superdocId = config.superdocId || v4();
|
|
18069
18073
|
this.colors = this.config.colors;
|