@harbour-enterprises/superdoc 0.27.3-next.1 → 0.28.0-next.1

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 (60) hide show
  1. package/dist/chunks/{PdfViewer-Bnj3c-92.es.js → PdfViewer-9z5hlRyt.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-BkJGiP2u.cjs → PdfViewer-Jb55JUCS.cjs} +1 -1
  3. package/dist/chunks/{index-CuLDIhMe.cjs → index-D0UvyM8m.cjs} +10 -4
  4. package/dist/chunks/{index-lF5qA9nw.es.js → index-DqP-8_tO.es.js} +10 -4
  5. package/dist/chunks/{super-editor.es-6ikSS3Qu.es.js → super-editor.es-BBJIKdhr.es.js} +1690 -1674
  6. package/dist/chunks/{super-editor.es-RvLsj0rg.cjs → super-editor.es-Ca5D3ZTW.cjs} +1690 -1674
  7. package/dist/chunks/uuid-CjlX8hrF.es.js +35 -0
  8. package/dist/chunks/uuid-R7L08bOx.cjs +34 -0
  9. package/dist/components/CommentsLayer/use-comment.d.ts.map +1 -1
  10. package/dist/core/types/index.d.ts.map +1 -1
  11. package/dist/stores/comments-store.d.ts.map +1 -1
  12. package/dist/super-editor/ai-writer.es.js +2 -2
  13. package/dist/super-editor/chunks/{converter-GcMLdei-.js → converter-AR-76siZ.js} +1344 -1416
  14. package/dist/super-editor/chunks/{docx-zipper-Y0x9TJvc.js → docx-zipper-DVb-VGgt.js} +1 -1
  15. package/dist/super-editor/chunks/{editor-B97ToSSc.js → editor-mK_uimq6.js} +93 -5
  16. package/dist/super-editor/chunks/{toolbar-Cm21JZgi.js → toolbar-ByoNwr7x.js} +2 -2
  17. package/dist/super-editor/converter.es.js +1 -1
  18. package/dist/super-editor/docx-zipper.es.js +2 -2
  19. package/dist/super-editor/editor.es.js +3 -3
  20. package/dist/super-editor/file-zipper.es.js +1 -1
  21. package/dist/super-editor/super-editor/src/components/toolbar/use-toolbar-item.d.ts +1 -1
  22. package/dist/super-editor/super-editor/src/core/commands/getSelectionMarks.d.ts +1 -0
  23. package/dist/super-editor/super-editor/src/core/commands/index.d.ts +2 -0
  24. package/dist/super-editor/super-editor/src/core/commands/setTextSelection.d.ts +4 -0
  25. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +0 -16
  26. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
  27. package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +2 -1
  28. package/dist/super-editor/super-editor/src/tests/helpers/helpers.d.ts +1 -1
  29. package/dist/super-editor/super-editor.es.js +6 -6
  30. package/dist/super-editor/toolbar.es.js +2 -2
  31. package/dist/super-editor.cjs +1 -1
  32. package/dist/super-editor.es.js +1 -1
  33. package/dist/superdoc.cjs +2 -2
  34. package/dist/superdoc.es.js +2 -2
  35. package/dist/superdoc.umd.js +1722 -1702
  36. package/dist/superdoc.umd.js.map +1 -1
  37. package/package.json +5 -8
  38. package/dist/chunks/uuid-CQzaMNgL.cjs +0 -36
  39. package/dist/chunks/uuid-DIIKH5Zc.es.js +0 -37
  40. package/dist/images/altText_add.svg +0 -3
  41. package/dist/images/altText_done.svg +0 -3
  42. package/dist/images/annotation-check.svg +0 -11
  43. package/dist/images/annotation-comment.svg +0 -16
  44. package/dist/images/annotation-help.svg +0 -26
  45. package/dist/images/annotation-insert.svg +0 -10
  46. package/dist/images/annotation-key.svg +0 -11
  47. package/dist/images/annotation-newparagraph.svg +0 -11
  48. package/dist/images/annotation-noicon.svg +0 -7
  49. package/dist/images/annotation-note.svg +0 -42
  50. package/dist/images/annotation-paperclip.svg +0 -6
  51. package/dist/images/annotation-paragraph.svg +0 -16
  52. package/dist/images/annotation-pushpin.svg +0 -7
  53. package/dist/images/cursor-editorFreeHighlight.svg +0 -6
  54. package/dist/images/cursor-editorFreeText.svg +0 -3
  55. package/dist/images/cursor-editorInk.svg +0 -4
  56. package/dist/images/cursor-editorTextHighlight.svg +0 -8
  57. package/dist/images/editor-toolbar-delete.svg +0 -5
  58. package/dist/images/loading-icon.gif +0 -0
  59. package/dist/images/toolbarButton-editorHighlight.svg +0 -6
  60. package/dist/images/toolbarButton-menuArrow.svg +0 -3
@@ -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-lF5qA9nw.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-DqP-8_tO.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-CuLDIhMe.cjs");
4
+ const superdoc = require("./index-D0UvyM8m.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-RvLsj0rg.cjs");
2
+ const superEditor_es = require("./super-editor.es-Ca5D3ZTW.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-CQzaMNgL.cjs");
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-BkJGiP2u.cjs")));
17176
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-Jb55JUCS.cjs")));
17171
17177
  const superdocStore = useSuperdocStore();
17172
17178
  const commentsStore = useCommentsStore();
17173
17179
  const {
@@ -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-6ikSS3Qu.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-BBJIKdhr.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-DIIKH5Zc.es.js";
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-Bnj3c-92.es.js"));
17159
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-9z5hlRyt.es.js"));
17154
17160
  const superdocStore = useSuperdocStore();
17155
17161
  const commentsStore = useCommentsStore();
17156
17162
  const {