superdoc 1.0.0-beta.21 → 1.0.0-beta.23
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-CqAQvFv3.cjs → PdfViewer-C9mryfp4.cjs} +1 -1
- package/dist/chunks/{PdfViewer-CEwbF85g.es.js → PdfViewer-umOKwA1g.es.js} +1 -1
- package/dist/chunks/{index-DSuc12CK-Dpg5Hd9W.cjs → index-DYBG7Xab-CoI6fike.cjs} +1 -1
- package/dist/chunks/{index-DSuc12CK-DH_DeF0B.es.js → index-DYBG7Xab-mIeLdlWI.es.js} +1 -1
- package/dist/chunks/{index-BFobqgP4.es.js → index-DyY842H4.es.js} +7 -5
- package/dist/chunks/{index-Dy-eAVHL.cjs → index-Q-l_lwcU.cjs} +7 -5
- package/dist/chunks/{super-editor.es-C2UuUFg3.cjs → super-editor.es-49DW4_-r.cjs} +445 -135
- package/dist/chunks/{super-editor.es-B5YJmpPg.es.js → super-editor.es-Cj9Sb-Qv.es.js} +445 -135
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Cw0V00On.js → converter-DJyfDFNm.js} +38 -34
- package/dist/super-editor/chunks/{docx-zipper-D7k6lS5l.js → docx-zipper-C-9Tqy8I.js} +1 -1
- package/dist/super-editor/chunks/{editor-CDWzRc4H.js → editor-f37DOCIX.js} +415 -108
- package/dist/super-editor/chunks/{index-DSuc12CK.js → index-DYBG7Xab.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-CHJspeuY.js → toolbar-Devgq8w3.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/super-editor.es.js +6 -6
- 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 +451 -139
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -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-Q-l_lwcU.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -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-DyY842H4.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -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-49DW4_-r.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-Cj9Sb-Qv.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";
|
|
@@ -17214,7 +17214,7 @@ const _sfc_main = {
|
|
|
17214
17214
|
__name: "SuperDoc",
|
|
17215
17215
|
emits: ["selection-update"],
|
|
17216
17216
|
setup(__props, { emit: __emit }) {
|
|
17217
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17217
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-umOKwA1g.es.js"));
|
|
17218
17218
|
const superdocStore = useSuperdocStore();
|
|
17219
17219
|
const commentsStore = useCommentsStore();
|
|
17220
17220
|
const {
|
|
@@ -18067,7 +18067,7 @@ class SuperDoc extends EventEmitter {
|
|
|
18067
18067
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18068
18068
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18069
18069
|
this.colorIndex = 0;
|
|
18070
|
-
this.version = "1.0.0-beta.
|
|
18070
|
+
this.version = "1.0.0-beta.23";
|
|
18071
18071
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18072
18072
|
this.superdocId = config.superdocId || v4();
|
|
18073
18073
|
this.colors = this.config.colors;
|
|
@@ -18478,7 +18478,9 @@ class SuperDoc extends EventEmitter {
|
|
|
18478
18478
|
editing: () => this.#setModeEditing(),
|
|
18479
18479
|
suggesting: () => this.#setModeSuggesting()
|
|
18480
18480
|
};
|
|
18481
|
-
if (types[type])
|
|
18481
|
+
if (types[type]) {
|
|
18482
|
+
types[type]();
|
|
18483
|
+
}
|
|
18482
18484
|
}
|
|
18483
18485
|
/**
|
|
18484
18486
|
* Set the document mode on a document's editor (PresentationEditor or Editor).
|
|
@@ -18550,7 +18552,7 @@ class SuperDoc extends EventEmitter {
|
|
|
18550
18552
|
}
|
|
18551
18553
|
#setModeViewing() {
|
|
18552
18554
|
this.toolbar.activeEditor = null;
|
|
18553
|
-
this.setTrackedChangesPreferences({ mode: "
|
|
18555
|
+
this.setTrackedChangesPreferences({ mode: "original", enabled: false });
|
|
18554
18556
|
this.superdocStore.documents.forEach((doc) => {
|
|
18555
18557
|
doc.removeComments();
|
|
18556
18558
|
this.#applyDocumentMode(doc, "viewing");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-49DW4_-r.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");
|
|
@@ -17231,7 +17231,7 @@ const _sfc_main = {
|
|
|
17231
17231
|
__name: "SuperDoc",
|
|
17232
17232
|
emits: ["selection-update"],
|
|
17233
17233
|
setup(__props, { emit: __emit }) {
|
|
17234
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17234
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-C9mryfp4.cjs")));
|
|
17235
17235
|
const superdocStore = useSuperdocStore();
|
|
17236
17236
|
const commentsStore = useCommentsStore();
|
|
17237
17237
|
const {
|
|
@@ -18084,7 +18084,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
18084
18084
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18085
18085
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18086
18086
|
this.colorIndex = 0;
|
|
18087
|
-
this.version = "1.0.0-beta.
|
|
18087
|
+
this.version = "1.0.0-beta.23";
|
|
18088
18088
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18089
18089
|
this.superdocId = config.superdocId || uuid.v4();
|
|
18090
18090
|
this.colors = this.config.colors;
|
|
@@ -18495,7 +18495,9 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
18495
18495
|
editing: () => this.#setModeEditing(),
|
|
18496
18496
|
suggesting: () => this.#setModeSuggesting()
|
|
18497
18497
|
};
|
|
18498
|
-
if (types[type])
|
|
18498
|
+
if (types[type]) {
|
|
18499
|
+
types[type]();
|
|
18500
|
+
}
|
|
18499
18501
|
}
|
|
18500
18502
|
/**
|
|
18501
18503
|
* Set the document mode on a document's editor (PresentationEditor or Editor).
|
|
@@ -18567,7 +18569,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
18567
18569
|
}
|
|
18568
18570
|
#setModeViewing() {
|
|
18569
18571
|
this.toolbar.activeEditor = null;
|
|
18570
|
-
this.setTrackedChangesPreferences({ mode: "
|
|
18572
|
+
this.setTrackedChangesPreferences({ mode: "original", enabled: false });
|
|
18571
18573
|
this.superdocStore.documents.forEach((doc) => {
|
|
18572
18574
|
doc.removeComments();
|
|
18573
18575
|
this.#applyDocumentMode(doc, "viewing");
|