superdoc 0.30.0-next.3 → 0.30.0-next.4

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 (64) hide show
  1. package/dist/chunks/{PdfViewer-YWtbYClb.es.js → PdfViewer-DyeZP8Nl.es.js} +2 -2
  2. package/dist/chunks/{PdfViewer-BIJ6vJck.cjs → PdfViewer-Sfmu-cdb.cjs} +2 -2
  3. package/dist/chunks/{eventemitter3-BvTILlBo.cjs → eventemitter3-DmHNHvFX.cjs} +1 -1
  4. package/dist/chunks/{eventemitter3-D4gv5QOO.es.js → eventemitter3-hYlnBzSA.es.js} +1 -1
  5. package/dist/chunks/{index-Bh45DPpT.es.js → index-BHHC2mqV.es.js} +6 -6
  6. package/dist/chunks/{index-Br4fKccD.cjs → index-BuNsREKD.cjs} +6 -6
  7. package/dist/chunks/{index-D9ggxe26-Dk1kDrfi.es.js → index-D6-7DIFN-BWm3AMeg.es.js} +1 -1
  8. package/dist/chunks/{index-D9ggxe26-BbC5rNDO.cjs → index-D6-7DIFN-Dhy8SBt-.cjs} +1 -1
  9. package/dist/chunks/{jszip-B0BPx_cv.cjs → jszip-BP2FTbpi.cjs} +7 -7
  10. package/dist/chunks/{jszip-Bhl-Iudl.es.js → jszip-jKrsZoMS.es.js} +7 -7
  11. package/dist/chunks/{super-editor.es-FtXwm03k.es.js → super-editor.es-Dg85Z65T.es.js} +850 -851
  12. package/dist/chunks/{super-editor.es-4me2z6up.cjs → super-editor.es-c6saBc8S.cjs} +850 -851
  13. package/dist/chunks/{vue-D1vcEBAQ.es.js → vue-CKmzTNVs.es.js} +2 -2
  14. package/dist/chunks/{vue-BQxRC6G7.cjs → vue-Cwv-wUpm.cjs} +2 -2
  15. package/dist/chunks/xml-js-BSDu25I7.cjs +3 -0
  16. package/dist/chunks/xml-js-CBrRls0f.es.js +2 -0
  17. package/dist/super-editor/ai-writer.es.js +2 -2
  18. package/dist/super-editor/chunks/{converter-SZ8xM5Dw.js → converter-OJmgERLD.js} +491 -497
  19. package/dist/super-editor/chunks/{docx-zipper-GNdwONoA.js → docx-zipper-DmTCMGub.js} +2 -2
  20. package/dist/super-editor/chunks/{editor-Bb8HzfEh.js → editor-BV5Ao3FS.js} +10 -5
  21. package/dist/super-editor/chunks/{index-D9ggxe26.js → index-D6-7DIFN.js} +1 -1
  22. package/dist/super-editor/chunks/{toolbar-DtCz6r-y.js → toolbar-s_KEL20H.js} +2 -2
  23. package/dist/super-editor/converter.es.js +1 -1
  24. package/dist/super-editor/docx-zipper.es.js +2 -2
  25. package/dist/super-editor/editor.es.js +3 -3
  26. package/dist/super-editor/file-zipper.es.js +1 -1
  27. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
  28. package/dist/super-editor/super-editor.es.js +6 -6
  29. package/dist/super-editor/toolbar.es.js +2 -2
  30. package/dist/super-editor.cjs +2 -2
  31. package/dist/super-editor.es.js +2 -2
  32. package/dist/superdoc.cjs +2 -2
  33. package/dist/superdoc.es.js +2 -2
  34. package/dist/superdoc.umd.js +615 -616
  35. package/dist/superdoc.umd.js.map +1 -1
  36. package/package.json +1 -1
  37. package/dist/chunks/xml-js-cO2Q8Wfu.cjs +0 -3
  38. package/dist/chunks/xml-js-jMPlIVKT.es.js +0 -2
  39. package/dist/images/altText_add.svg +0 -3
  40. package/dist/images/altText_disclaimer.svg +0 -3
  41. package/dist/images/altText_done.svg +0 -3
  42. package/dist/images/altText_spinner.svg +0 -30
  43. package/dist/images/altText_warning.svg +0 -3
  44. package/dist/images/annotation-check.svg +0 -11
  45. package/dist/images/annotation-comment.svg +0 -16
  46. package/dist/images/annotation-help.svg +0 -26
  47. package/dist/images/annotation-insert.svg +0 -10
  48. package/dist/images/annotation-key.svg +0 -11
  49. package/dist/images/annotation-newparagraph.svg +0 -11
  50. package/dist/images/annotation-noicon.svg +0 -7
  51. package/dist/images/annotation-note.svg +0 -42
  52. package/dist/images/annotation-paperclip.svg +0 -6
  53. package/dist/images/annotation-paragraph.svg +0 -16
  54. package/dist/images/annotation-pushpin.svg +0 -7
  55. package/dist/images/cursor-editorFreeHighlight.svg +0 -6
  56. package/dist/images/cursor-editorFreeText.svg +0 -3
  57. package/dist/images/cursor-editorInk.svg +0 -4
  58. package/dist/images/cursor-editorTextHighlight.svg +0 -8
  59. package/dist/images/editor-toolbar-delete.svg +0 -5
  60. package/dist/images/loading-icon.gif +0 -0
  61. package/dist/images/messageBar_closingButton.svg +0 -3
  62. package/dist/images/messageBar_warning.svg +0 -3
  63. package/dist/images/toolbarButton-editorHighlight.svg +0 -6
  64. package/dist/images/toolbarButton-menuArrow.svg +0 -3
@@ -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-D1vcEBAQ.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-Bh45DPpT.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-BHHC2mqV.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
- const vue = require("./vue-BQxRC6G7.cjs");
4
- const superdoc = require("./index-Br4fKccD.cjs");
3
+ const vue = require("./vue-Cwv-wUpm.cjs");
4
+ const superdoc = require("./index-BuNsREKD.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-B0BPx_cv.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-Bhl-Iudl.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,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-FtXwm03k.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-Dg85Z65T.es.js";
2
2
  import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
3
- import { E as EventEmitter } from "./eventemitter3-D4gv5QOO.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-D1vcEBAQ.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-Bhl-Iudl.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";
@@ -17201,7 +17201,7 @@ const _sfc_main = {
17201
17201
  __name: "SuperDoc",
17202
17202
  emits: ["selection-update"],
17203
17203
  setup(__props, { emit: __emit }) {
17204
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-YWtbYClb.es.js"));
17204
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-DyeZP8Nl.es.js"));
17205
17205
  const superdocStore = useSuperdocStore();
17206
17206
  const commentsStore = useCommentsStore();
17207
17207
  const {
@@ -17965,7 +17965,7 @@ class SuperDoc extends EventEmitter {
17965
17965
  this.config.colors = shuffleArray(this.config.colors);
17966
17966
  this.userColorMap = /* @__PURE__ */ new Map();
17967
17967
  this.colorIndex = 0;
17968
- this.version = "0.30.0-next.3";
17968
+ this.version = "0.30.0-next.4";
17969
17969
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
17970
17970
  this.superdocId = config.superdocId || v4();
17971
17971
  this.colors = this.config.colors;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-4me2z6up.cjs");
2
+ const superEditor_es = require("./super-editor.es-c6saBc8S.cjs");
3
3
  const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
4
- const eventemitter3 = require("./eventemitter3-BvTILlBo.cjs");
4
+ const eventemitter3 = require("./eventemitter3-DmHNHvFX.cjs");
5
5
  const provider = require("@hocuspocus/provider");
6
- const vue = require("./vue-BQxRC6G7.cjs");
6
+ const vue = require("./vue-Cwv-wUpm.cjs");
7
7
  const Y = require("yjs");
8
- const jszip = require("./jszip-B0BPx_cv.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" } });
@@ -17218,7 +17218,7 @@ const _sfc_main = {
17218
17218
  __name: "SuperDoc",
17219
17219
  emits: ["selection-update"],
17220
17220
  setup(__props, { emit: __emit }) {
17221
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-BIJ6vJck.cjs")));
17221
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-Sfmu-cdb.cjs")));
17222
17222
  const superdocStore = useSuperdocStore();
17223
17223
  const commentsStore = useCommentsStore();
17224
17224
  const {
@@ -17982,7 +17982,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
17982
17982
  this.config.colors = shuffleArray(this.config.colors);
17983
17983
  this.userColorMap = /* @__PURE__ */ new Map();
17984
17984
  this.colorIndex = 0;
17985
- this.version = "0.30.0-next.3";
17985
+ this.version = "0.30.0-next.4";
17986
17986
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
17987
17987
  this.superdocId = config.superdocId || uuid.v4();
17988
17988
  this.colors = this.config.colors;
@@ -1,4 +1,4 @@
1
- import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-FtXwm03k.es.js";
1
+ import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-Dg85Z65T.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-4me2z6up.cjs");
3
+ const superEditor_es = require("./super-editor.es-c6saBc8S.cjs");
4
4
  const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
5
5
  function bail(error) {
6
6
  if (error) {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- require("./vue-BQxRC6G7.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
  }
@@ -182,15 +182,15 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
182
182
  * @author Feross Aboukhadijeh <https://feross.org>
183
183
  * @license MIT
184
184
  */
185
- (function(exports2) {
185
+ (function(exports$1) {
186
186
  const base64 = base64Js;
187
187
  const ieee754$1 = ieee754;
188
188
  const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
189
- exports2.Buffer = Buffer2;
190
- exports2.SlowBuffer = SlowBuffer;
191
- exports2.INSPECT_MAX_BYTES = 50;
189
+ exports$1.Buffer = Buffer2;
190
+ exports$1.SlowBuffer = SlowBuffer;
191
+ exports$1.INSPECT_MAX_BYTES = 50;
192
192
  const K_MAX_LENGTH = 2147483647;
193
- exports2.kMaxLength = K_MAX_LENGTH;
193
+ exports$1.kMaxLength = K_MAX_LENGTH;
194
194
  const { Uint8Array: GlobalUint8Array, ArrayBuffer: GlobalArrayBuffer, SharedArrayBuffer: GlobalSharedArrayBuffer } = globalThis;
195
195
  Buffer2.TYPED_ARRAY_SUPPORT = typedArraySupport();
196
196
  if (!Buffer2.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
@@ -621,7 +621,7 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
621
621
  };
622
622
  Buffer2.prototype.inspect = function inspect() {
623
623
  let str = "";
624
- const max = exports2.INSPECT_MAX_BYTES;
624
+ const max = exports$1.INSPECT_MAX_BYTES;
625
625
  str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
626
626
  if (this.length > max) str += " ... ";
627
627
  return "<Buffer " + str + ">";
@@ -1,4 +1,4 @@
1
- import "./vue-D1vcEBAQ.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
  }
@@ -181,15 +181,15 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
181
181
  * @author Feross Aboukhadijeh <https://feross.org>
182
182
  * @license MIT
183
183
  */
184
- (function(exports) {
184
+ (function(exports$1) {
185
185
  const base64 = base64Js;
186
186
  const ieee754$1 = ieee754;
187
187
  const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
188
- exports.Buffer = Buffer2;
189
- exports.SlowBuffer = SlowBuffer;
190
- exports.INSPECT_MAX_BYTES = 50;
188
+ exports$1.Buffer = Buffer2;
189
+ exports$1.SlowBuffer = SlowBuffer;
190
+ exports$1.INSPECT_MAX_BYTES = 50;
191
191
  const K_MAX_LENGTH = 2147483647;
192
- exports.kMaxLength = K_MAX_LENGTH;
192
+ exports$1.kMaxLength = K_MAX_LENGTH;
193
193
  const { Uint8Array: GlobalUint8Array, ArrayBuffer: GlobalArrayBuffer, SharedArrayBuffer: GlobalSharedArrayBuffer } = globalThis;
194
194
  Buffer2.TYPED_ARRAY_SUPPORT = typedArraySupport();
195
195
  if (!Buffer2.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
@@ -620,7 +620,7 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
620
620
  };
621
621
  Buffer2.prototype.inspect = function inspect() {
622
622
  let str = "";
623
- const max = exports.INSPECT_MAX_BYTES;
623
+ const max = exports$1.INSPECT_MAX_BYTES;
624
624
  str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
625
625
  if (this.length > max) str += " ... ";
626
626
  return "<Buffer " + str + ">";