superdoc 1.0.1 → 1.0.3
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-blXLHgB7.cjs → PdfViewer-2wYU1nQs.cjs} +1 -1
- package/dist/chunks/{PdfViewer-DRwVaKAR.es.js → PdfViewer-Brf64q-p.es.js} +1 -1
- package/dist/chunks/{index-BvhLTOBv-BiV5weR9.cjs → index-BFesQTtm-DF8MwT73.cjs} +1 -1
- package/dist/chunks/{index-BvhLTOBv-BqXHHksu.es.js → index-BFesQTtm-DNeH374x.es.js} +1 -1
- package/dist/chunks/{index-C75YAr6z.cjs → index-DeETxTrW.cjs} +5 -9
- package/dist/chunks/{index-p_DqFX8u.es.js → index-KBIvw6xZ.es.js} +5 -9
- package/dist/chunks/{super-editor.es-dXHQ_lfB.cjs → super-editor.es-C_LoTWvJ.cjs} +687 -136
- package/dist/chunks/{super-editor.es-DfwLAyUW.es.js → super-editor.es-DWpzsMUa.es.js} +687 -136
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/helpers/group-changes.d.ts +1 -1
- package/dist/packages/superdoc/src/helpers/group-changes.d.ts.map +1 -1
- package/dist/style.css +6 -6
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-xC5Gh59u.js → converter-BhELnOP5.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-BPQOwtye.js → docx-zipper-Bwi8bTEB.js} +1 -1
- package/dist/super-editor/chunks/{editor-DhCpqM2w.js → editor-Dyj08tpz.js} +684 -150
- package/dist/super-editor/chunks/{index-BvhLTOBv.js → index-BFesQTtm.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-iWV3eW-g.js → toolbar-DRFf1nRv.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 +6 -6
- package/dist/super-editor/super-editor.es.js +41 -17
- 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 +691 -144
- 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-gvuFr0vx.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-DeETxTrW.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { y as defineComponent, A as h, P as Transition, a0 as process$1, K as watchEffect, a as computed, r as ref, j as onMounted, X as onUnmounted, b as createElementBlock, o as openBlock, f as createBaseVNode, e as createCommentVNode, s as createVNode, x as unref } from "./vue-CLFbn_1r.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-KBIvw6xZ.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-C_LoTWvJ.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
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-C_LoTWvJ.cjs");
|
|
3
3
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
4
4
|
const eventemitter3 = require("./eventemitter3-DIclNhoR.cjs");
|
|
5
5
|
const provider = require("@hocuspocus/provider");
|
|
@@ -3952,7 +3952,7 @@ const useSuperdocStore = /* @__PURE__ */ defineStore("superdoc", () => {
|
|
|
3952
3952
|
getPageBounds
|
|
3953
3953
|
};
|
|
3954
3954
|
});
|
|
3955
|
-
const groupChanges = (changes
|
|
3955
|
+
const groupChanges = (changes) => {
|
|
3956
3956
|
const markMetaKeys = {
|
|
3957
3957
|
trackInsert: "insertedMark",
|
|
3958
3958
|
trackDelete: "deletionMark",
|
|
@@ -3962,11 +3962,8 @@ const groupChanges = (changes = []) => {
|
|
|
3962
3962
|
for (let i = 0; i < changes.length; i++) {
|
|
3963
3963
|
const c1 = changes[i];
|
|
3964
3964
|
const c2 = changes[i + 1];
|
|
3965
|
-
|
|
3966
|
-
continue;
|
|
3967
|
-
}
|
|
3965
|
+
const c1Key = markMetaKeys[c1.mark.type.name];
|
|
3968
3966
|
if (c1 && c2 && c1.to === c2.from && c1.mark.attrs.id === c2.mark.attrs.id) {
|
|
3969
|
-
const c1Key = markMetaKeys[c1.mark.type.name];
|
|
3970
3967
|
const c2Key = markMetaKeys[c2.mark.type.name];
|
|
3971
3968
|
grouped.push({
|
|
3972
3969
|
from: c1.from,
|
|
@@ -3976,7 +3973,6 @@ const groupChanges = (changes = []) => {
|
|
|
3976
3973
|
});
|
|
3977
3974
|
i++;
|
|
3978
3975
|
} else {
|
|
3979
|
-
const c1Key = markMetaKeys[c1.mark.type.name];
|
|
3980
3976
|
grouped.push({
|
|
3981
3977
|
from: c1.from,
|
|
3982
3978
|
to: c1.to,
|
|
@@ -17491,7 +17487,7 @@ const _sfc_main = {
|
|
|
17491
17487
|
__name: "SuperDoc",
|
|
17492
17488
|
emits: ["selection-update"],
|
|
17493
17489
|
setup(__props, { emit: __emit }) {
|
|
17494
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17490
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-2wYU1nQs.cjs")));
|
|
17495
17491
|
const superdocStore = useSuperdocStore();
|
|
17496
17492
|
const commentsStore = useCommentsStore();
|
|
17497
17493
|
const {
|
|
@@ -18395,7 +18391,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
18395
18391
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18396
18392
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18397
18393
|
this.colorIndex = 0;
|
|
18398
|
-
this.version = "1.0.
|
|
18394
|
+
this.version = "1.0.3";
|
|
18399
18395
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18400
18396
|
this.superdocId = config.superdocId || uuid.v4();
|
|
18401
18397
|
this.colors = this.config.colors;
|
|
@@ -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-DWpzsMUa.es.js";
|
|
2
2
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
3
3
|
import { E as EventEmitter } from "./eventemitter3-D_2kqkfV.es.js";
|
|
4
4
|
import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
|
|
@@ -3935,7 +3935,7 @@ const useSuperdocStore = /* @__PURE__ */ defineStore("superdoc", () => {
|
|
|
3935
3935
|
getPageBounds
|
|
3936
3936
|
};
|
|
3937
3937
|
});
|
|
3938
|
-
const groupChanges = (changes
|
|
3938
|
+
const groupChanges = (changes) => {
|
|
3939
3939
|
const markMetaKeys = {
|
|
3940
3940
|
trackInsert: "insertedMark",
|
|
3941
3941
|
trackDelete: "deletionMark",
|
|
@@ -3945,11 +3945,8 @@ const groupChanges = (changes = []) => {
|
|
|
3945
3945
|
for (let i = 0; i < changes.length; i++) {
|
|
3946
3946
|
const c1 = changes[i];
|
|
3947
3947
|
const c2 = changes[i + 1];
|
|
3948
|
-
|
|
3949
|
-
continue;
|
|
3950
|
-
}
|
|
3948
|
+
const c1Key = markMetaKeys[c1.mark.type.name];
|
|
3951
3949
|
if (c1 && c2 && c1.to === c2.from && c1.mark.attrs.id === c2.mark.attrs.id) {
|
|
3952
|
-
const c1Key = markMetaKeys[c1.mark.type.name];
|
|
3953
3950
|
const c2Key = markMetaKeys[c2.mark.type.name];
|
|
3954
3951
|
grouped.push({
|
|
3955
3952
|
from: c1.from,
|
|
@@ -3959,7 +3956,6 @@ const groupChanges = (changes = []) => {
|
|
|
3959
3956
|
});
|
|
3960
3957
|
i++;
|
|
3961
3958
|
} else {
|
|
3962
|
-
const c1Key = markMetaKeys[c1.mark.type.name];
|
|
3963
3959
|
grouped.push({
|
|
3964
3960
|
from: c1.from,
|
|
3965
3961
|
to: c1.to,
|
|
@@ -17474,7 +17470,7 @@ const _sfc_main = {
|
|
|
17474
17470
|
__name: "SuperDoc",
|
|
17475
17471
|
emits: ["selection-update"],
|
|
17476
17472
|
setup(__props, { emit: __emit }) {
|
|
17477
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17473
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-Brf64q-p.es.js"));
|
|
17478
17474
|
const superdocStore = useSuperdocStore();
|
|
17479
17475
|
const commentsStore = useCommentsStore();
|
|
17480
17476
|
const {
|
|
@@ -18378,7 +18374,7 @@ class SuperDoc extends EventEmitter {
|
|
|
18378
18374
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18379
18375
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18380
18376
|
this.colorIndex = 0;
|
|
18381
|
-
this.version = "1.0.
|
|
18377
|
+
this.version = "1.0.3";
|
|
18382
18378
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18383
18379
|
this.superdocId = config.superdocId || v4();
|
|
18384
18380
|
this.colors = this.config.colors;
|