superdoc 0.30.0-next.4 → 0.30.0-next.6
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-Sfmu-cdb.cjs → PdfViewer-Br3uLtct.cjs} +1 -1
- package/dist/chunks/{PdfViewer-DyeZP8Nl.es.js → PdfViewer-CUTMj5RE.es.js} +1 -1
- package/dist/chunks/{index-BuNsREKD.cjs → index-BDHxhYs7.cjs} +7 -6
- package/dist/chunks/{index-BHHC2mqV.es.js → index-BKpU3J9C.es.js} +7 -6
- package/dist/chunks/{index-D6-7DIFN-BWm3AMeg.es.js → index-Cl-cHAOX-B0b2FNkc.es.js} +1 -1
- package/dist/chunks/{index-D6-7DIFN-Dhy8SBt-.cjs → index-Cl-cHAOX-KFl7ZmMz.cjs} +1 -1
- package/dist/chunks/{super-editor.es-Dg85Z65T.es.js → super-editor.es-BHj2Pdqj.es.js} +10 -10
- package/dist/chunks/{super-editor.es-c6saBc8S.cjs → super-editor.es-C5HSjMYm.cjs} +10 -10
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/packages/superdoc/src/stores/comments-store.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-OJmgERLD.js → converter-B2Oi2KIq.js} +4 -1
- package/dist/super-editor/chunks/{docx-zipper-DmTCMGub.js → docx-zipper-D26IydiB.js} +1 -1
- package/dist/super-editor/chunks/{editor-BV5Ao3FS.js → editor-Dvy9zQYS.js} +8 -11
- package/dist/super-editor/chunks/{index-D6-7DIFN.js → index-Cl-cHAOX.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-s_KEL20H.js → toolbar-C38kG3xU.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/src/core/super-converter/helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +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 +16 -15
- 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-Cwv-wUpm.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-BDHxhYs7.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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-BKpU3J9C.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-C5HSjMYm.cjs");
|
|
3
3
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
4
4
|
const eventemitter3 = require("./eventemitter3-DmHNHvFX.cjs");
|
|
5
5
|
const provider = require("@hocuspocus/provider");
|
|
@@ -4198,7 +4198,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4198
4198
|
const processLoadedDocxComments = async ({ superdoc: superdoc2, editor, comments, documentId }) => {
|
|
4199
4199
|
const document2 = superdocStore.getDocument(documentId);
|
|
4200
4200
|
comments.forEach((comment) => {
|
|
4201
|
-
const htmlContent =
|
|
4201
|
+
const htmlContent = getHtmlFromComment(comment.textJson);
|
|
4202
4202
|
if (!htmlContent && !comment.trackedChange) {
|
|
4203
4203
|
return;
|
|
4204
4204
|
}
|
|
@@ -4211,12 +4211,13 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4211
4211
|
isInternal: false,
|
|
4212
4212
|
parentCommentId: comment.parentCommentId,
|
|
4213
4213
|
creatorName,
|
|
4214
|
+
createdTime: comment.createdTime,
|
|
4214
4215
|
creatorEmail: comment.creatorEmail,
|
|
4215
4216
|
importedAuthor: {
|
|
4216
4217
|
name: importedName,
|
|
4217
4218
|
email: comment.creatorEmail
|
|
4218
4219
|
},
|
|
4219
|
-
commentText:
|
|
4220
|
+
commentText: getHtmlFromComment(comment.textJson),
|
|
4220
4221
|
resolvedTime: comment.isDone ? Date.now() : null,
|
|
4221
4222
|
resolvedByEmail: comment.isDone ? comment.creatorEmail : null,
|
|
4222
4223
|
resolvedByName: comment.isDone ? importedName : null,
|
|
@@ -4324,7 +4325,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4324
4325
|
content: normalizedChildren
|
|
4325
4326
|
};
|
|
4326
4327
|
};
|
|
4327
|
-
const
|
|
4328
|
+
const getHtmlFromComment = (commentTextJson) => {
|
|
4328
4329
|
if (!commentTextJson.content?.length) return;
|
|
4329
4330
|
try {
|
|
4330
4331
|
const normalizedContent = normalizeCommentForEditor(commentTextJson);
|
|
@@ -17218,7 +17219,7 @@ const _sfc_main = {
|
|
|
17218
17219
|
__name: "SuperDoc",
|
|
17219
17220
|
emits: ["selection-update"],
|
|
17220
17221
|
setup(__props, { emit: __emit }) {
|
|
17221
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17222
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-Br3uLtct.cjs")));
|
|
17222
17223
|
const superdocStore = useSuperdocStore();
|
|
17223
17224
|
const commentsStore = useCommentsStore();
|
|
17224
17225
|
const {
|
|
@@ -17982,7 +17983,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
17982
17983
|
this.config.colors = shuffleArray(this.config.colors);
|
|
17983
17984
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
17984
17985
|
this.colorIndex = 0;
|
|
17985
|
-
this.version = "0.30.0-next.
|
|
17986
|
+
this.version = "0.30.0-next.6";
|
|
17986
17987
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
17987
17988
|
this.superdocId = config.superdocId || uuid.v4();
|
|
17988
17989
|
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, 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, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-BHj2Pdqj.es.js";
|
|
2
2
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
3
3
|
import { E as EventEmitter } from "./eventemitter3-hYlnBzSA.es.js";
|
|
4
4
|
import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
|
|
@@ -4181,7 +4181,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4181
4181
|
const processLoadedDocxComments = async ({ superdoc: superdoc2, editor, comments, documentId }) => {
|
|
4182
4182
|
const document2 = superdocStore.getDocument(documentId);
|
|
4183
4183
|
comments.forEach((comment) => {
|
|
4184
|
-
const htmlContent =
|
|
4184
|
+
const htmlContent = getHtmlFromComment(comment.textJson);
|
|
4185
4185
|
if (!htmlContent && !comment.trackedChange) {
|
|
4186
4186
|
return;
|
|
4187
4187
|
}
|
|
@@ -4194,12 +4194,13 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4194
4194
|
isInternal: false,
|
|
4195
4195
|
parentCommentId: comment.parentCommentId,
|
|
4196
4196
|
creatorName,
|
|
4197
|
+
createdTime: comment.createdTime,
|
|
4197
4198
|
creatorEmail: comment.creatorEmail,
|
|
4198
4199
|
importedAuthor: {
|
|
4199
4200
|
name: importedName,
|
|
4200
4201
|
email: comment.creatorEmail
|
|
4201
4202
|
},
|
|
4202
|
-
commentText:
|
|
4203
|
+
commentText: getHtmlFromComment(comment.textJson),
|
|
4203
4204
|
resolvedTime: comment.isDone ? Date.now() : null,
|
|
4204
4205
|
resolvedByEmail: comment.isDone ? comment.creatorEmail : null,
|
|
4205
4206
|
resolvedByName: comment.isDone ? importedName : null,
|
|
@@ -4307,7 +4308,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
|
|
|
4307
4308
|
content: normalizedChildren
|
|
4308
4309
|
};
|
|
4309
4310
|
};
|
|
4310
|
-
const
|
|
4311
|
+
const getHtmlFromComment = (commentTextJson) => {
|
|
4311
4312
|
if (!commentTextJson.content?.length) return;
|
|
4312
4313
|
try {
|
|
4313
4314
|
const normalizedContent = normalizeCommentForEditor(commentTextJson);
|
|
@@ -17201,7 +17202,7 @@ const _sfc_main = {
|
|
|
17201
17202
|
__name: "SuperDoc",
|
|
17202
17203
|
emits: ["selection-update"],
|
|
17203
17204
|
setup(__props, { emit: __emit }) {
|
|
17204
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17205
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-CUTMj5RE.es.js"));
|
|
17205
17206
|
const superdocStore = useSuperdocStore();
|
|
17206
17207
|
const commentsStore = useCommentsStore();
|
|
17207
17208
|
const {
|
|
@@ -17965,7 +17966,7 @@ class SuperDoc extends EventEmitter {
|
|
|
17965
17966
|
this.config.colors = shuffleArray(this.config.colors);
|
|
17966
17967
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
17967
17968
|
this.colorIndex = 0;
|
|
17968
|
-
this.version = "0.30.0-next.
|
|
17969
|
+
this.version = "0.30.0-next.6";
|
|
17969
17970
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
17970
17971
|
this.superdocId = config.superdocId || v4();
|
|
17971
17972
|
this.colors = this.config.colors;
|
|
@@ -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-C5HSjMYm.cjs");
|
|
4
4
|
const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
|
|
5
5
|
function bail(error) {
|
|
6
6
|
if (error) {
|
|
@@ -15379,6 +15379,9 @@ const getLineHeightValueString = (lineHeight2, defaultUnit, lineRule = "", isObj
|
|
|
15379
15379
|
let [value, unit] = parseSizeUnit(lineHeight2);
|
|
15380
15380
|
if (Number.isNaN(value) || value === 0) return {};
|
|
15381
15381
|
if (lineRule === "atLeast" && value < 1) return {};
|
|
15382
|
+
if (!unit && value < 1) {
|
|
15383
|
+
value = 1;
|
|
15384
|
+
}
|
|
15382
15385
|
unit = unit ? unit : defaultUnit;
|
|
15383
15386
|
return isObject2 ? { ["line-height"]: `${value}${unit}` } : `line-height: ${value}${unit}`;
|
|
15384
15387
|
};
|
|
@@ -35246,7 +35249,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35246
35249
|
static getStoredSuperdocVersion(docx) {
|
|
35247
35250
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35248
35251
|
}
|
|
35249
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.
|
|
35252
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.6") {
|
|
35250
35253
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35251
35254
|
}
|
|
35252
35255
|
/**
|
|
@@ -38950,7 +38953,7 @@ function history(config2 = {}) {
|
|
|
38950
38953
|
beforeinput(view, e) {
|
|
38951
38954
|
let inputType = e.inputType;
|
|
38952
38955
|
let command2 = inputType == "historyUndo" ? undo$1 : inputType == "historyRedo" ? redo$1 : null;
|
|
38953
|
-
if (!command2)
|
|
38956
|
+
if (!command2 || !view.editable)
|
|
38954
38957
|
return false;
|
|
38955
38958
|
e.preventDefault();
|
|
38956
38959
|
return command2(view.state, view.dispatch);
|
|
@@ -52568,7 +52571,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
52568
52571
|
{ default: remarkStringify },
|
|
52569
52572
|
{ default: remarkGfm }
|
|
52570
52573
|
] = await Promise.all([
|
|
52571
|
-
import("./index-
|
|
52574
|
+
import("./index-Cl-cHAOX-B0b2FNkc.es.js"),
|
|
52572
52575
|
import("./index-DRCvimau-Cw339678.es.js"),
|
|
52573
52576
|
import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
|
|
52574
52577
|
import("./index-D_sWOSiG-DE96TaT5.es.js"),
|
|
@@ -52786,7 +52789,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
52786
52789
|
* @returns {Object | void} Migration results
|
|
52787
52790
|
*/
|
|
52788
52791
|
processCollaborationMigrations() {
|
|
52789
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.
|
|
52792
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.6");
|
|
52790
52793
|
if (!this.options.ydoc) return;
|
|
52791
52794
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
52792
52795
|
let docVersion = metaMap.get("version");
|
|
@@ -55382,12 +55385,6 @@ const StructuredContentCommands = Extension.create({
|
|
|
55382
55385
|
content = node.content;
|
|
55383
55386
|
}
|
|
55384
55387
|
const updatedNode = node.type.create({ ...node.attrs, ...options.attrs }, content, node.marks);
|
|
55385
|
-
try {
|
|
55386
|
-
updatedNode.check();
|
|
55387
|
-
} catch {
|
|
55388
|
-
console.error("Updated node does not conform to the schema");
|
|
55389
|
-
return false;
|
|
55390
|
-
}
|
|
55391
55388
|
tr.replaceWith(posFrom, posTo, updatedNode);
|
|
55392
55389
|
}
|
|
55393
55390
|
return true;
|
|
@@ -56408,6 +56405,9 @@ const getSpacingStyle = (spacing) => {
|
|
|
56408
56405
|
const getSpacingStyleString = (spacing, marks, isListItem) => {
|
|
56409
56406
|
let { before, after, line, lineRule, beforeAutospacing, afterAutospacing } = spacing;
|
|
56410
56407
|
line = twipsToLines(line);
|
|
56408
|
+
if (line != null && line < 1) {
|
|
56409
|
+
line = 1;
|
|
56410
|
+
}
|
|
56411
56411
|
if (lineRule === "exact" && line) {
|
|
56412
56412
|
line = String(line);
|
|
56413
56413
|
}
|
|
@@ -15396,6 +15396,9 @@ const getLineHeightValueString = (lineHeight2, defaultUnit, lineRule = "", isObj
|
|
|
15396
15396
|
let [value, unit] = parseSizeUnit(lineHeight2);
|
|
15397
15397
|
if (Number.isNaN(value) || value === 0) return {};
|
|
15398
15398
|
if (lineRule === "atLeast" && value < 1) return {};
|
|
15399
|
+
if (!unit && value < 1) {
|
|
15400
|
+
value = 1;
|
|
15401
|
+
}
|
|
15399
15402
|
unit = unit ? unit : defaultUnit;
|
|
15400
15403
|
return isObject2 ? { ["line-height"]: `${value}${unit}` } : `line-height: ${value}${unit}`;
|
|
15401
15404
|
};
|
|
@@ -35263,7 +35266,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35263
35266
|
static getStoredSuperdocVersion(docx) {
|
|
35264
35267
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35265
35268
|
}
|
|
35266
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.
|
|
35269
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.6") {
|
|
35267
35270
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35268
35271
|
}
|
|
35269
35272
|
/**
|
|
@@ -38967,7 +38970,7 @@ function history(config2 = {}) {
|
|
|
38967
38970
|
beforeinput(view, e) {
|
|
38968
38971
|
let inputType = e.inputType;
|
|
38969
38972
|
let command2 = inputType == "historyUndo" ? undo$1 : inputType == "historyRedo" ? redo$1 : null;
|
|
38970
|
-
if (!command2)
|
|
38973
|
+
if (!command2 || !view.editable)
|
|
38971
38974
|
return false;
|
|
38972
38975
|
e.preventDefault();
|
|
38973
38976
|
return command2(view.state, view.dispatch);
|
|
@@ -52585,7 +52588,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
52585
52588
|
{ default: remarkStringify },
|
|
52586
52589
|
{ default: remarkGfm }
|
|
52587
52590
|
] = await Promise.all([
|
|
52588
|
-
Promise.resolve().then(() => require("./index-
|
|
52591
|
+
Promise.resolve().then(() => require("./index-Cl-cHAOX-KFl7ZmMz.cjs")),
|
|
52589
52592
|
Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
|
|
52590
52593
|
Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
|
|
52591
52594
|
Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
|
|
@@ -52803,7 +52806,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
52803
52806
|
* @returns {Object | void} Migration results
|
|
52804
52807
|
*/
|
|
52805
52808
|
processCollaborationMigrations() {
|
|
52806
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.
|
|
52809
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.6");
|
|
52807
52810
|
if (!this.options.ydoc) return;
|
|
52808
52811
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
52809
52812
|
let docVersion = metaMap.get("version");
|
|
@@ -55399,12 +55402,6 @@ const StructuredContentCommands = Extension.create({
|
|
|
55399
55402
|
content = node.content;
|
|
55400
55403
|
}
|
|
55401
55404
|
const updatedNode = node.type.create({ ...node.attrs, ...options.attrs }, content, node.marks);
|
|
55402
|
-
try {
|
|
55403
|
-
updatedNode.check();
|
|
55404
|
-
} catch {
|
|
55405
|
-
console.error("Updated node does not conform to the schema");
|
|
55406
|
-
return false;
|
|
55407
|
-
}
|
|
55408
55405
|
tr.replaceWith(posFrom, posTo, updatedNode);
|
|
55409
55406
|
}
|
|
55410
55407
|
return true;
|
|
@@ -56425,6 +56422,9 @@ const getSpacingStyle = (spacing) => {
|
|
|
56425
56422
|
const getSpacingStyleString = (spacing, marks, isListItem) => {
|
|
56426
56423
|
let { before, after, line, lineRule, beforeAutospacing, afterAutospacing } = spacing;
|
|
56427
56424
|
line = twipsToLines(line);
|
|
56425
|
+
if (line != null && line < 1) {
|
|
56426
|
+
line = 1;
|
|
56427
|
+
}
|
|
56428
56428
|
if (lineRule === "exact" && line) {
|
|
56429
56429
|
line = String(line);
|
|
56430
56430
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../../../../src/core/SuperDoc.js"],"names":[],"mappings":"AAsBA,6CAA6C;AAC7C,mEAAmE;AACnE,qDAAqD;AACrD,mDAAmD;AACnD,iDAAiD;AACjD,6DAA6D;AAC7D,iDAAiD;AACjD,6DAA6D;AAE7D;;;;;;GAMG;AACH;IACE,4BAA4B;IAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CACgB;IA0ExC;;OAEG;IACH,oBAFW,MAAM,EAKhB;IA9ED,qBAAqB;IACrB,SADW,MAAM,CACT;IAER,qBAAqB;IACrB,OADW,IAAI,EAAE,CACX;IAEN,4CAA4C;IAC5C,MADW,OAAO,KAAK,EAAE,GAAG,GAAG,SAAS,CACnC;IAEL,4EAA4E;IAC5E,UADW,OAAO,sBAAsB,EAAE,kBAAkB,GAAG,SAAS,CAC/D;IAET,qBAAqB;IACrB,QADW,MAAM,CA0Df;IAmCA,4BAA6B;IAC7B,mBAAmB;IAMnB,gBAA+C;IAC/C,iBAAgC;IAehC,6BAA4B;IAE5B,YAAkB;IAElB,eAAuC;IAEvC;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../../../../src/core/SuperDoc.js"],"names":[],"mappings":"AAsBA,6CAA6C;AAC7C,mEAAmE;AACnE,qDAAqD;AACrD,mDAAmD;AACnD,iDAAiD;AACjD,6DAA6D;AAC7D,iDAAiD;AACjD,6DAA6D;AAE7D;;;;;;GAMG;AACH;IACE,4BAA4B;IAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CACgB;IA0ExC;;OAEG;IACH,oBAFW,MAAM,EAKhB;IA9ED,qBAAqB;IACrB,SADW,MAAM,CACT;IAER,qBAAqB;IACrB,OADW,IAAI,EAAE,CACX;IAEN,4CAA4C;IAC5C,MADW,OAAO,KAAK,EAAE,GAAG,GAAG,SAAS,CACnC;IAEL,4EAA4E;IAC5E,UADW,OAAO,sBAAsB,EA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-store.d.ts","sourceRoot":"","sources":["../../../../../src/stores/comments-store.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA4Ce,IAAI;qBAiBN,MAAM;0CAWN,MAAM,GAAG,SAAS,GAAG,IAAI,KACvB,IAAI;;;;;;gFA8Ld;QAAuB,SAAS;QACT,UAAU;QACV,eAAe;KACtC;;0DAqDA;QAAuB,QAAQ;KAC/B,KAAU,IAAI;sCAyEJ,IAAI;;;;;6CAzFJ,IAAI;4EAsGd;QAAsB,QAAQ;QACP,UAAU;KACjC,KAAU,IAAI;;+
|
|
1
|
+
{"version":3,"file":"comments-store.d.ts","sourceRoot":"","sources":["../../../../../src/stores/comments-store.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA4Ce,IAAI;qBAiBN,MAAM;0CAWN,MAAM,GAAG,SAAS,GAAG,IAAI,KACvB,IAAI;;;;;;gFA8Ld;QAAuB,SAAS;QACT,UAAU;QACV,eAAe;KACtC;;0DAqDA;QAAuB,QAAQ;KAC/B,KAAU,IAAI;sCAyEJ,IAAI;;;;;6CAzFJ,IAAI;4EAsGd;QAAsB,QAAQ;QACP,UAAU;KACjC,KAAU,IAAI;;+DAwHJ,IAAI;sDA/ad;QAAuB,QAAQ;QACR,MAAM;KAC7B,KAAU,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAvDJ,IAAI;qBAiBN,MAAM;0CAWN,MAAM,GAAG,SAAS,GAAG,IAAI,KACvB,IAAI;;;;;;gFA8Ld;QAAuB,SAAS;QACT,UAAU;QACV,eAAe;KACtC;;0DAqDA;QAAuB,QAAQ;KAC/B,KAAU,IAAI;sCAyEJ,IAAI;;;;;6CAzFJ,IAAI;4EAsGd;QAAsB,QAAQ;QACP,UAAU;KACjC,KAAU,IAAI;;+DAwHJ,IAAI;sDA/ad;QAAuB,QAAQ;QACR,MAAM;KAC7B,KAAU,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAvDJ,IAAI;qBAiBN,MAAM;0CAWN,MAAM,GAAG,SAAS,GAAG,IAAI,KACvB,IAAI;;;;;;gFA8Ld;QAAuB,SAAS;QACT,UAAU;QACV,eAAe;KACtC;;0DAqDA;QAAuB,QAAQ;KAC/B,KAAU,IAAI;sCAyEJ,IAAI;;;;;6CAzFJ,IAAI;4EAsGd;QAAsB,QAAQ;QACP,UAAU;KACjC,KAAU,IAAI;;+DAwHJ,IAAI;sDA/ad;QAAuB,QAAQ;QACR,MAAM;KAC7B,KAAU,IAAI;wUAujBhB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
|
|
2
|
-
import { T as TextSelection } from "./chunks/converter-
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/editor-
|
|
2
|
+
import { T as TextSelection } from "./chunks/converter-B2Oi2KIq.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-Dvy9zQYS.js";
|
|
4
4
|
const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
|
|
5
5
|
const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
|
|
6
6
|
async function baseInsightsFetch(payload, options = {}) {
|
|
@@ -15376,6 +15376,9 @@ const getLineHeightValueString = (lineHeight, defaultUnit, lineRule = "", isObje
|
|
|
15376
15376
|
let [value, unit] = parseSizeUnit(lineHeight);
|
|
15377
15377
|
if (Number.isNaN(value) || value === 0) return {};
|
|
15378
15378
|
if (lineRule === "atLeast" && value < 1) return {};
|
|
15379
|
+
if (!unit && value < 1) {
|
|
15380
|
+
value = 1;
|
|
15381
|
+
}
|
|
15379
15382
|
unit = unit ? unit : defaultUnit;
|
|
15380
15383
|
return isObject ? { ["line-height"]: `${value}${unit}` } : `line-height: ${value}${unit}`;
|
|
15381
15384
|
};
|
|
@@ -35527,7 +35530,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
35527
35530
|
static getStoredSuperdocVersion(docx) {
|
|
35528
35531
|
return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35529
35532
|
}
|
|
35530
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.30.0-next.
|
|
35533
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.30.0-next.6") {
|
|
35531
35534
|
return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
35532
35535
|
}
|
|
35533
35536
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, aE as commonjsGlobal, B as Buffer, aF as getDefaultExportFromCjs, aG as getContentTypesFromXml, aH as xmljs } from "./converter-
|
|
1
|
+
import { p as process$1, aE as commonjsGlobal, B as Buffer, aF as getDefaultExportFromCjs, aG as getContentTypesFromXml, aH as xmljs } from "./converter-B2Oi2KIq.js";
|
|
2
2
|
function commonjsRequire(path) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -12,8 +12,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ParagraphNodeView_instances, updateHTMLAttributes_fn, updateListStyles_fn, initList_fn, checkIsList_fn, createMarker_fn, createSeparator_fn, calculateTabSeparatorStyle_fn, calculateMarkerStyle_fn, removeList_fn, getParagraphContext_fn, scheduleAnimation_fn, cancelScheduledAnimation_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, L as ListHelpers, G as updateNumberingProperties, H as changeListLevel, I as findParentNode, J as isList, K as isMacOS, O as isIOS, Q as getSchemaTypeByName, U as inputRulesPlugin, V as TrackDeleteMarkName, W as TrackInsertMarkName, X as v4, Y as TrackFormatMarkName, Z as comments_module_events, _ as findMark, $ as objectIncludes, a0 as AddMarkStep, a1 as RemoveMarkStep, a2 as twipsToLines, a3 as pixelsToTwips, a4 as helpers, a5 as posToDOMRect, a6 as CommandService, a7 as SuperConverter, a8 as createDocument, a9 as createDocFromMarkdown, aa as createDocFromHTML, ab as EditorState, ac as hasSomeParentWithClass, ad as isActive, ae as unflattenListsInHtml, af as parseSizeUnit, ag as minMax, ah as getLineHeightValueString, ai as updateDOMAttributes, aj as findChildren$5, ak as generateRandomSigned32BitIntStrId, al as kebabCase, am as twipsToPixels, an as halfPointToPixels, ao as getUnderlineCssString, ap as findParentNodeClosestToPos, aq as resolveRunProperties, ar as encodeCSSFromRPr, as as docxNumberingHelpers, at as InputRule, au as resolveParagraphProperties, av as eighthPointsToPixels, aw as linesToTwips, ax as PIXELS_PER_INCH, ay as SelectionRange, az as Transform, aA as isInTable$1, aB as generateDocxRandomId, aC as insertNewRelationship, aD as inchesToPixels } from "./converter-
|
|
16
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, L as ListHelpers, G as updateNumberingProperties, H as changeListLevel, I as findParentNode, J as isList, K as isMacOS, O as isIOS, Q as getSchemaTypeByName, U as inputRulesPlugin, V as TrackDeleteMarkName, W as TrackInsertMarkName, X as v4, Y as TrackFormatMarkName, Z as comments_module_events, _ as findMark, $ as objectIncludes, a0 as AddMarkStep, a1 as RemoveMarkStep, a2 as twipsToLines, a3 as pixelsToTwips, a4 as helpers, a5 as posToDOMRect, a6 as CommandService, a7 as SuperConverter, a8 as createDocument, a9 as createDocFromMarkdown, aa as createDocFromHTML, ab as EditorState, ac as hasSomeParentWithClass, ad as isActive, ae as unflattenListsInHtml, af as parseSizeUnit, ag as minMax, ah as getLineHeightValueString, ai as updateDOMAttributes, aj as findChildren$5, ak as generateRandomSigned32BitIntStrId, al as kebabCase, am as twipsToPixels, an as halfPointToPixels, ao as getUnderlineCssString, ap as findParentNodeClosestToPos, aq as resolveRunProperties, ar as encodeCSSFromRPr, as as docxNumberingHelpers, at as InputRule, au as resolveParagraphProperties, av as eighthPointsToPixels, aw as linesToTwips, ax as PIXELS_PER_INCH, ay as SelectionRange, az as Transform, aA as isInTable$1, aB as generateDocxRandomId, aC as insertNewRelationship, aD as inchesToPixels } from "./converter-B2Oi2KIq.js";
|
|
16
|
+
import { D as DocxZipper } from "./docx-zipper-D26IydiB.js";
|
|
17
17
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
@@ -519,7 +519,7 @@ function history(config = {}) {
|
|
|
519
519
|
beforeinput(view, e) {
|
|
520
520
|
let inputType = e.inputType;
|
|
521
521
|
let command2 = inputType == "historyUndo" ? undo$1 : inputType == "historyRedo" ? redo$1 : null;
|
|
522
|
-
if (!command2)
|
|
522
|
+
if (!command2 || !view.editable)
|
|
523
523
|
return false;
|
|
524
524
|
e.preventDefault();
|
|
525
525
|
return command2(view.state, view.dispatch);
|
|
@@ -14202,7 +14202,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14202
14202
|
{ default: remarkStringify },
|
|
14203
14203
|
{ default: remarkGfm }
|
|
14204
14204
|
] = await Promise.all([
|
|
14205
|
-
import("./index-
|
|
14205
|
+
import("./index-Cl-cHAOX.js"),
|
|
14206
14206
|
import("./index-DRCvimau.js"),
|
|
14207
14207
|
import("./index-C_x_N6Uh.js"),
|
|
14208
14208
|
import("./index-D_sWOSiG.js"),
|
|
@@ -14420,7 +14420,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14420
14420
|
* @returns {Object | void} Migration results
|
|
14421
14421
|
*/
|
|
14422
14422
|
processCollaborationMigrations() {
|
|
14423
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.
|
|
14423
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.6");
|
|
14424
14424
|
if (!this.options.ydoc) return;
|
|
14425
14425
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
14426
14426
|
let docVersion = metaMap.get("version");
|
|
@@ -17137,12 +17137,6 @@ const StructuredContentCommands = Extension.create({
|
|
|
17137
17137
|
content = node.content;
|
|
17138
17138
|
}
|
|
17139
17139
|
const updatedNode = node.type.create({ ...node.attrs, ...options.attrs }, content, node.marks);
|
|
17140
|
-
try {
|
|
17141
|
-
updatedNode.check();
|
|
17142
|
-
} catch {
|
|
17143
|
-
console.error("Updated node does not conform to the schema");
|
|
17144
|
-
return false;
|
|
17145
|
-
}
|
|
17146
17140
|
tr.replaceWith(posFrom, posTo, updatedNode);
|
|
17147
17141
|
}
|
|
17148
17142
|
return true;
|
|
@@ -18163,6 +18157,9 @@ const getSpacingStyle = (spacing) => {
|
|
|
18163
18157
|
const getSpacingStyleString = (spacing, marks, isListItem) => {
|
|
18164
18158
|
let { before, after, line, lineRule, beforeAutospacing, afterAutospacing } = spacing;
|
|
18165
18159
|
line = twipsToLines(line);
|
|
18160
|
+
if (line != null && line < 1) {
|
|
18161
|
+
line = 1;
|
|
18162
|
+
}
|
|
18166
18163
|
if (lineRule === "exact" && line) {
|
|
18167
18164
|
line = String(line);
|
|
18168
18165
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { p as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-B2Oi2KIq.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Dvy9zQYS.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-Dvy9zQYS.js";
|
|
2
|
+
import "./chunks/converter-B2Oi2KIq.js";
|
|
3
|
+
import "./chunks/docx-zipper-D26IydiB.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAGA,8BAAwB,EAAE,CAAC;AAE3B,mDAIC;AAED,kDAKC;AAED,kDAIC;AAED,mDAGC;AAQD,oDAIC;AAoDD,mDAGC;AAjED,oDAIC;AAQD,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,gEAKC;AAYD,yDAGC;AAbD,mDAGC;AAsBD,+CAGC;AAED,mDAGC;AAgDD;;;;;;;GAOG;AACH,qCAHW,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACrB,MAAO,IAAI,CAyCvB;AA7ED;;;;;;;GAOG;AACH,gDAFa,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAC,IAAI,CAsBxC;AAsED,4FAyDC;AAED,uEAKC;AAmCD,kEAGC;AAED,mEASC;AA5BD,iDAYC;AAkBD,qDAaC;AAOD,2CAEC;AA1QD,2CAGC;AARD,8CAGC;AA8QD;;;;
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAGA,8BAAwB,EAAE,CAAC;AAE3B,mDAIC;AAED,kDAKC;AAED,kDAIC;AAED,mDAGC;AAQD,oDAIC;AAoDD,mDAGC;AAjED,oDAIC;AAQD,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,gEAKC;AAYD,yDAGC;AAbD,mDAGC;AAsBD,+CAGC;AAED,mDAGC;AAgDD;;;;;;;GAOG;AACH,qCAHW,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACrB,MAAO,IAAI,CAyCvB;AA7ED;;;;;;;GAOG;AACH,gDAFa,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAC,IAAI,CAsBxC;AAsED,4FAyDC;AAED,uEAKC;AAmCD,kEAGC;AAED,mEASC;AA5BD,iDAYC;AAkBD,qDAaC;AAOD,2CAEC;AA1QD,2CAGC;AARD,8CAGC;AA8QD;;;;EAUC;AAED,qEAuBC;AAED,0EAGC;AAtMD;;;;GAIG;AACH,iDAHW,MAAM,GAAC,MAAM,GACX,MAAM,CAWlB;AApGD,sDAKC;AAdD,0DAOC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/linked-styles/helpers.js"],"names":[],"mappings":"AAiBO,wCANI,MAAM,uBAWhB;AASM,mDAiBN;AAUM,oFAHM,MAAM,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/linked-styles/helpers.js"],"names":[],"mappings":"AAiBO,wCANI,MAAM,uBAWhB;AASM,mDAiBN;AAUM,oFAHM,MAAM,CA0ClB;AASM,6CAHM,MAAM,CA2BlB;AAWM,uDAUN;AAcM,wHALI,OAAO,GACL,MAAM,CA2KlB;AAcM,iFANM,OAAO,CA4GnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-content-commands.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/structured-content/structured-content-commands.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH,
|
|
1
|
+
{"version":3,"file":"structured-content-commands.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/structured-content/structured-content-commands.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH,kDAoUG;;;;;WAhWW,MAAM;;;;;;;;;;;;;;WAON,MAAM;;;;;;;;;;;;;;WAON,MAAM;;;;WACN,MAAM;;;;;;;;;;;;;;QAON,MAAM;;;;iBACN,MAAM;;;;UACN,KAAK,CAAC,MAAM,EAAE,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC;;;;mBAC7B,OAAO;;0BApCK,aAAa"}
|
package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/track-changes/permission-helpers.js"],"names":[],"mappings":"AAgDO,2DALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACxB,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;CACd,GAAU,KAAK,KAAQ,CAkBzB;AA+BM,iFALJ;IAAmE,MAAM,EAAjE;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"permission-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/track-changes/permission-helpers.js"],"names":[],"mappings":"AAgDO,2DALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACxB,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;CACd,GAAU,KAAK,KAAQ,CAkBzB;AA+BM,iFALJ;IAAmE,MAAM,EAAjE;;;;;;;;;;;;0BAsDw4zd,aAAa;;;;2BAAgoB,IAAI;;;;;;;6BAAwmI,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAA4jb,aAAa;0BAA/6uB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAA06lC,UAAU;kDAAuV,UAAU,aAA+E,UAAU;oCAAgZ,UAAU;;;;;;;;;KAtD3gxf;IACxB,MAAM,EAAhC,QAAQ,GAAC,QAAQ;IACK,cAAc,EAApC,KAAK,KAAQ;CACrB,GAAU,OAAO,CAkCnB;AAWM,iFALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACnB,GAAG,EAAvB,MAAM,GAAC,IAAI;IACS,eAAe,EAAnC,MAAM,GAAC,IAAI;CACnB,GAAU,KAAK,KAAQ,CAOzB"}
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { aF as getDefaultExportFromCjs, X as v4, T as TextSelection$1, v as getMarkRange, aI as vClickOutside, aJ as getActiveFormatting, aA as isInTable, I as findParentNode, J as isList, aK as readFromClipboard, aL as handleClipboardPaste, aM as getFileObject, aN as translator, aO as translator$1, aP as translator$2, aQ as translator$3, aR as translator$4, aS as translator$5, aT as translator$6, aU as translator$7, aV as translator$8, aW as translator$9, aX as translator$a, aY as translator$b, aZ as translator$c, a_ as translator$d, a$ as translator$e, b0 as commentRangeEndTranslator, b1 as commentRangeStartTranslator, b2 as translator$f, b3 as translator$g, b4 as translator$h, b5 as translator$i, b6 as translator$j, b7 as translator$k, b8 as translator$l, b9 as translator$m, ba as translator$n, bb as translator$o, bc as translator$p, bd as translator$q, be as translator$r, bf as translator$s, bg as translator$t, bh as translator$u, bi as translator$v, bj as translator$w, bk as translator$x, bl as translator$y, bm as translator$z, bn as translator$A, bo as translator$B, bp as translator$C, bq as translator$D, br as translator$E, bs as translator$F, bt as translator$G, bu as translator$H, bv as translator$I, bw as translator$J, bx as translator$K, by as translator$L, bz as translator$M, bA as translator$N, bB as translator$O, bC as translator$P, bD as translator$Q, bE as translator$R, bF as translator$S, bG as translator$T, bH as translator$U, bI as translator$V, bJ as translator$W, bK as translator$X, bL as translator$Y, bM as translator$Z, bN as translator$_, bO as translator$$, bP as translator$10, bQ as translator$11, bR as translator$12, bS as translator$13, bT as translator$14, bU as translator$15, bV as translator$16, bW as translator$17, bX as translator$18, bY as translator$19, bZ as translator$1a, b_ as translator$1b, b$ as translator$1c, c0 as translator$1d, c1 as translator$1e, c2 as translator$1f, c3 as translator$1g, c4 as translator$1h, c5 as translator$1i, c6 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { a7, i, a4 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, l as isHeadless, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { v, C, w, T, q, x, t } from "./chunks/editor-
|
|
12
|
+
import { aF as getDefaultExportFromCjs, X as v4, T as TextSelection$1, v as getMarkRange, aI as vClickOutside, aJ as getActiveFormatting, aA as isInTable, I as findParentNode, J as isList, aK as readFromClipboard, aL as handleClipboardPaste, aM as getFileObject, aN as translator, aO as translator$1, aP as translator$2, aQ as translator$3, aR as translator$4, aS as translator$5, aT as translator$6, aU as translator$7, aV as translator$8, aW as translator$9, aX as translator$a, aY as translator$b, aZ as translator$c, a_ as translator$d, a$ as translator$e, b0 as commentRangeEndTranslator, b1 as commentRangeStartTranslator, b2 as translator$f, b3 as translator$g, b4 as translator$h, b5 as translator$i, b6 as translator$j, b7 as translator$k, b8 as translator$l, b9 as translator$m, ba as translator$n, bb as translator$o, bc as translator$p, bd as translator$q, be as translator$r, bf as translator$s, bg as translator$t, bh as translator$u, bi as translator$v, bj as translator$w, bk as translator$x, bl as translator$y, bm as translator$z, bn as translator$A, bo as translator$B, bp as translator$C, bq as translator$D, br as translator$E, bs as translator$F, bt as translator$G, bu as translator$H, bv as translator$I, bw as translator$J, bx as translator$K, by as translator$L, bz as translator$M, bA as translator$N, bB as translator$O, bC as translator$P, bD as translator$Q, bE as translator$R, bF as translator$S, bG as translator$T, bH as translator$U, bI as translator$V, bJ as translator$W, bK as translator$X, bL as translator$Y, bM as translator$Z, bN as translator$_, bO as translator$$, bP as translator$10, bQ as translator$11, bR as translator$12, bS as translator$13, bT as translator$14, bU as translator$15, bV as translator$16, bW as translator$17, bX as translator$18, bY as translator$19, bZ as translator$1a, b_ as translator$1b, b$ as translator$1c, c0 as translator$1d, c1 as translator$1e, c2 as translator$1f, c3 as translator$1g, c4 as translator$1h, c5 as translator$1i, c6 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-B2Oi2KIq.js";
|
|
13
|
+
import { a7, i, a4 } from "./chunks/converter-B2Oi2KIq.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, l as isHeadless, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-Dvy9zQYS.js";
|
|
15
|
+
import { v, C, w, T, q, x, t } from "./chunks/editor-Dvy9zQYS.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, defineComponent, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-C38kG3xU.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-D26IydiB.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-C5HSjMYm.cjs");
|
|
4
4
|
require("./chunks/vue-Cwv-wUpm.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BHj2Pdqj.es.js";
|
|
2
2
|
import "./chunks/vue-CKmzTNVs.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-C5HSjMYm.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-BDHxhYs7.cjs");
|
|
5
5
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
7
7
|
exports.Editor = superEditor_es.Editor;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BHj2Pdqj.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-BKpU3J9C.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|