superdoc 0.34.6-RC1 → 0.34.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.
Files changed (45) hide show
  1. package/dist/chunks/{PdfViewer-Cdq6hWaP.cjs → PdfViewer-C8xLNe_n.cjs} +2 -2
  2. package/dist/chunks/{PdfViewer-Yy390Dyv.es.js → PdfViewer-WfRCZj-e.es.js} +2 -2
  3. package/dist/chunks/{eventemitter3-CFCpOk3d.cjs → eventemitter3-DmHNHvFX.cjs} +1 -1
  4. package/dist/chunks/{eventemitter3-BZXKb7j7.es.js → eventemitter3-hYlnBzSA.es.js} +1 -1
  5. package/dist/chunks/{index-_8cQcYzu-Dj8Emsl2.es.js → index-BENzx4z6-DdFuGCwa.es.js} +1 -1
  6. package/dist/chunks/{index-_8cQcYzu-CB4RkW2W.cjs → index-BENzx4z6-Ds8akndA.cjs} +1 -1
  7. package/dist/chunks/{index-QkGtTLUE.cjs → index-CIQILa8l.cjs} +7 -12
  8. package/dist/chunks/{index-M9d0bJ9k.es.js → index-wZJgMVEg.es.js} +7 -12
  9. package/dist/chunks/{jszip-B99MTu59.cjs → jszip-BP2FTbpi.cjs} +1 -1
  10. package/dist/chunks/{jszip-Duxs2YMV.es.js → jszip-jKrsZoMS.es.js} +1 -1
  11. package/dist/chunks/{super-editor.es-kNY6AOSu.es.js → super-editor.es-B21z_KOS.es.js} +626 -727
  12. package/dist/chunks/{super-editor.es-C-hpEM8j.cjs → super-editor.es-BVJ4WHrZ.cjs} +673 -774
  13. package/dist/chunks/{vue-B5QAf5pA.es.js → vue-CKmzTNVs.es.js} +1379 -1420
  14. package/dist/chunks/{vue-ARQSyfaw.cjs → vue-Cwv-wUpm.cjs} +1379 -1420
  15. package/dist/chunks/xml-js-BSDu25I7.cjs +3 -0
  16. package/dist/chunks/xml-js-CBrRls0f.es.js +2 -0
  17. package/dist/packages/superdoc/src/components/CommentsLayer/use-comment.d.ts.map +1 -1
  18. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  19. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  20. package/dist/packages/superdoc/src/stores/comments-store.d.ts.map +1 -1
  21. package/dist/super-editor/ai-writer.es.js +2 -2
  22. package/dist/super-editor/chunks/{converter-Ddl2ZmKy.js → converter-BItdKEMN.js} +301 -394
  23. package/dist/super-editor/chunks/{docx-zipper-D1BgiAWm.js → docx-zipper-Brh1H7kE.js} +1 -1
  24. package/dist/super-editor/chunks/{editor-B2T2u3JG.js → editor-BwXcd5wT.js} +59 -67
  25. package/dist/super-editor/chunks/{index-_8cQcYzu.js → index-BENzx4z6.js} +1 -1
  26. package/dist/super-editor/chunks/{toolbar-hyRTdNjv.js → toolbar-CiQKWEEf.js} +2 -2
  27. package/dist/super-editor/converter.es.js +1 -1
  28. package/dist/super-editor/docx-zipper.es.js +2 -2
  29. package/dist/super-editor/editor.es.js +3 -3
  30. package/dist/super-editor/file-zipper.es.js +1 -1
  31. package/dist/super-editor/super-editor/src/core/super-converter/v2/exporter/commentsExporter.d.ts.map +1 -1
  32. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts.map +1 -1
  33. package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration-helpers.d.ts.map +1 -1
  34. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  35. package/dist/super-editor/super-editor.es.js +6 -6
  36. package/dist/super-editor/toolbar.es.js +2 -2
  37. package/dist/super-editor.cjs +2 -2
  38. package/dist/super-editor.es.js +2 -2
  39. package/dist/superdoc.cjs +2 -2
  40. package/dist/superdoc.es.js +2 -2
  41. package/dist/superdoc.umd.js +975 -1121
  42. package/dist/superdoc.umd.js.map +1 -1
  43. package/package.json +1 -1
  44. package/dist/chunks/xml-js-CVyfrKaV.es.js +0 -2
  45. package/dist/chunks/xml-js-DQa4Ye5C.cjs +0 -3
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const vue = require("./vue-ARQSyfaw.cjs");
4
- const superdoc = require("./index-QkGtTLUE.cjs");
3
+ const vue = require("./vue-Cwv-wUpm.cjs");
4
+ const superdoc = require("./index-CIQILa8l.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,5 +1,5 @@
1
- import { m as defineComponent, y as h, O as Transition, $ 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, v as createVNode, x as unref } from "./vue-B5QAf5pA.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-M9d0bJ9k.es.js";
1
+ import { m as defineComponent, y as h, O as Transition, $ 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, v as createVNode, x as unref } from "./vue-CKmzTNVs.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-wZJgMVEg.es.js";
3
3
  function self(vars) {
4
4
  const {
5
5
  opacityDisabled,
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-B99MTu59.cjs");
2
+ const jszip = require("./jszip-BP2FTbpi.cjs");
3
3
  var eventemitter3 = { exports: {} };
4
4
  var hasRequiredEventemitter3;
5
5
  function requireEventemitter3() {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from "./jszip-Duxs2YMV.es.js";
1
+ import { g as getDefaultExportFromCjs } from "./jszip-jKrsZoMS.es.js";
2
2
  var eventemitter3 = { exports: {} };
3
3
  var hasRequiredEventemitter3;
4
4
  function requireEventemitter3() {
@@ -1,4 +1,4 @@
1
- import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-kNY6AOSu.es.js";
1
+ import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-B21z_KOS.es.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG-CvBqQJbG.es.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -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-C-hpEM8j.cjs");
3
+ const superEditor_es = require("./super-editor.es-BVJ4WHrZ.cjs");
4
4
  const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
5
5
  function bail(error) {
6
6
  if (error) {
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-C-hpEM8j.cjs");
2
+ const superEditor_es = require("./super-editor.es-BVJ4WHrZ.cjs");
3
3
  const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
4
- const eventemitter3 = require("./eventemitter3-CFCpOk3d.cjs");
4
+ const eventemitter3 = require("./eventemitter3-DmHNHvFX.cjs");
5
5
  const provider = require("@hocuspocus/provider");
6
- const vue = require("./vue-ARQSyfaw.cjs");
6
+ const vue = require("./vue-Cwv-wUpm.cjs");
7
7
  const Y = require("yjs");
8
- const jszip = require("./jszip-B99MTu59.cjs");
8
+ const jszip = require("./jszip-BP2FTbpi.cjs");
9
9
  const uuid = require("./uuid-R7L08bOx.cjs");
10
10
  function _interopNamespaceDefault(e) {
11
11
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -3479,7 +3479,6 @@ function useComment(params2) {
3479
3479
  const creatorImage = params2.creatorImage;
3480
3480
  const createdTime = params2.createdTime || Date.now();
3481
3481
  const importedAuthor = vue.ref(params2.importedAuthor || null);
3482
- const docxCommentJSON = params2.docxCommentJSON || null;
3483
3482
  const commentText = vue.ref(params2.commentText || "");
3484
3483
  const selection = params2.selection ? useSelection(params2.selection) : useSelection({
3485
3484
  documentId: fileId,
@@ -3594,7 +3593,6 @@ function useComment(params2) {
3594
3593
  creatorImage,
3595
3594
  createdTime,
3596
3595
  importedAuthor: importedAuthor.value,
3597
- docxCommentJSON,
3598
3596
  isInternal: isInternal.value,
3599
3597
  commentText: commentText.value,
3600
3598
  selection: selection ? selection.getValues() : null,
@@ -3633,7 +3631,6 @@ function useComment(params2) {
3633
3631
  resolvedByEmail,
3634
3632
  resolvedByName,
3635
3633
  importedAuthor,
3636
- docxCommentJSON,
3637
3634
  // Actions
3638
3635
  setText,
3639
3636
  getValues,
@@ -4210,8 +4207,6 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4210
4207
  const newComment = useComment({
4211
4208
  fileId: documentId,
4212
4209
  fileType: document2.type,
4213
- // Preserve original DOCX-schema comment JSON so exporter can reuse it
4214
- docxCommentJSON: comment.textJson,
4215
4210
  commentId: comment.commentId,
4216
4211
  isInternal: false,
4217
4212
  parentCommentId: comment.parentCommentId,
@@ -4272,7 +4267,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4272
4267
  commentsList.value.forEach((comment) => {
4273
4268
  const values = comment.getValues();
4274
4269
  const richText = values.commentText;
4275
- const schema = values.docxCommentJSON || convertHtmlToSchema(richText);
4270
+ const schema = convertHtmlToSchema(richText);
4276
4271
  processedComments.push({
4277
4272
  ...values,
4278
4273
  commentJSON: schema
@@ -17224,7 +17219,7 @@ const _sfc_main = {
17224
17219
  __name: "SuperDoc",
17225
17220
  emits: ["selection-update"],
17226
17221
  setup(__props, { emit: __emit }) {
17227
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-Cdq6hWaP.cjs")));
17222
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-C8xLNe_n.cjs")));
17228
17223
  const superdocStore = useSuperdocStore();
17229
17224
  const commentsStore = useCommentsStore();
17230
17225
  const {
@@ -17988,7 +17983,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
17988
17983
  this.config.colors = shuffleArray(this.config.colors);
17989
17984
  this.userColorMap = /* @__PURE__ */ new Map();
17990
17985
  this.colorIndex = 0;
17991
- this.version = "0.34.6-RC1";
17986
+ this.version = "0.34.7";
17992
17987
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
17993
17988
  this.superdocId = config.superdocId || uuid.v4();
17994
17989
  this.colors = this.config.colors;
@@ -1,11 +1,11 @@
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-kNY6AOSu.es.js";
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-B21z_KOS.es.js";
2
2
  import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
3
- import { E as EventEmitter } from "./eventemitter3-BZXKb7j7.es.js";
3
+ import { E as EventEmitter } from "./eventemitter3-hYlnBzSA.es.js";
4
4
  import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
5
- import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, a as computed, a2 as isRef, a3 as isReactive, E 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, A as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, C as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, G as provide, I as withDirectives, y as h, U as Teleport, R as renderSlot, V as isVNode, J as watchEffect, O as Transition, a8 as TransitionGroup, z as mergeProps, P as vShow, H as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, B as withCtx, f as createBaseVNode, D as normalizeStyle, e as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, d as renderList, c as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-B5QAf5pA.es.js";
5
+ import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, a as computed, a2 as isRef, a3 as isReactive, E 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, A as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, C as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, G as provide, I as withDirectives, y as h, U as Teleport, R as renderSlot, V as isVNode, J as watchEffect, O as Transition, a8 as TransitionGroup, z as mergeProps, P as vShow, H as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, B as withCtx, f as createBaseVNode, D as normalizeStyle, e as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, d as renderList, c as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-CKmzTNVs.es.js";
6
6
  import * as Y from "yjs";
7
7
  import { Doc, Map as Map$2 } from "yjs";
8
- import { B as Buffer$2 } from "./jszip-Duxs2YMV.es.js";
8
+ import { B as Buffer$2 } from "./jszip-jKrsZoMS.es.js";
9
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";
@@ -3462,7 +3462,6 @@ function useComment(params2) {
3462
3462
  const creatorImage = params2.creatorImage;
3463
3463
  const createdTime = params2.createdTime || Date.now();
3464
3464
  const importedAuthor = ref(params2.importedAuthor || null);
3465
- const docxCommentJSON = params2.docxCommentJSON || null;
3466
3465
  const commentText = ref(params2.commentText || "");
3467
3466
  const selection = params2.selection ? useSelection(params2.selection) : useSelection({
3468
3467
  documentId: fileId,
@@ -3577,7 +3576,6 @@ function useComment(params2) {
3577
3576
  creatorImage,
3578
3577
  createdTime,
3579
3578
  importedAuthor: importedAuthor.value,
3580
- docxCommentJSON,
3581
3579
  isInternal: isInternal.value,
3582
3580
  commentText: commentText.value,
3583
3581
  selection: selection ? selection.getValues() : null,
@@ -3616,7 +3614,6 @@ function useComment(params2) {
3616
3614
  resolvedByEmail,
3617
3615
  resolvedByName,
3618
3616
  importedAuthor,
3619
- docxCommentJSON,
3620
3617
  // Actions
3621
3618
  setText,
3622
3619
  getValues,
@@ -4193,8 +4190,6 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4193
4190
  const newComment = useComment({
4194
4191
  fileId: documentId,
4195
4192
  fileType: document2.type,
4196
- // Preserve original DOCX-schema comment JSON so exporter can reuse it
4197
- docxCommentJSON: comment.textJson,
4198
4193
  commentId: comment.commentId,
4199
4194
  isInternal: false,
4200
4195
  parentCommentId: comment.parentCommentId,
@@ -4255,7 +4250,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4255
4250
  commentsList.value.forEach((comment) => {
4256
4251
  const values = comment.getValues();
4257
4252
  const richText = values.commentText;
4258
- const schema = values.docxCommentJSON || convertHtmlToSchema(richText);
4253
+ const schema = convertHtmlToSchema(richText);
4259
4254
  processedComments.push({
4260
4255
  ...values,
4261
4256
  commentJSON: schema
@@ -17207,7 +17202,7 @@ const _sfc_main = {
17207
17202
  __name: "SuperDoc",
17208
17203
  emits: ["selection-update"],
17209
17204
  setup(__props, { emit: __emit }) {
17210
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-Yy390Dyv.es.js"));
17205
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-WfRCZj-e.es.js"));
17211
17206
  const superdocStore = useSuperdocStore();
17212
17207
  const commentsStore = useCommentsStore();
17213
17208
  const {
@@ -17971,7 +17966,7 @@ class SuperDoc extends EventEmitter {
17971
17966
  this.config.colors = shuffleArray(this.config.colors);
17972
17967
  this.userColorMap = /* @__PURE__ */ new Map();
17973
17968
  this.colorIndex = 0;
17974
- this.version = "0.34.6-RC1";
17969
+ this.version = "0.34.7";
17975
17970
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
17976
17971
  this.superdocId = config.superdocId || v4();
17977
17972
  this.colors = this.config.colors;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- require("./vue-ARQSyfaw.cjs");
2
+ require("./vue-Cwv-wUpm.cjs");
3
3
  function getDefaultExportFromCjs(x) {
4
4
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
5
  }
@@ -1,4 +1,4 @@
1
- import "./vue-B5QAf5pA.es.js";
1
+ import "./vue-CKmzTNVs.es.js";
2
2
  function getDefaultExportFromCjs(x) {
3
3
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4
4
  }