@harbour-enterprises/superdoc 1.0.0-beta.62 → 1.0.0-beta.63
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-Dm3bZ_1B.cjs → PdfViewer-Dc7zft9M.cjs} +1 -1
- package/dist/chunks/{PdfViewer-rmkhzY1H.es.js → PdfViewer-Enk2l025.es.js} +1 -1
- package/dist/chunks/{index-XOsGE2PW-hNAnvmsK.es.js → index-BO5Ne6G9-BxC5lPet.es.js} +1 -1
- package/dist/chunks/{index-XOsGE2PW-BL-ekicF.cjs → index-BO5Ne6G9-njLy4w3i.cjs} +1 -1
- package/dist/chunks/{index-VQNmJYMh.cjs → index-DZPXVd1d.cjs} +3 -3
- package/dist/chunks/{index-5vPj3xiM.es.js → index-KZsFukCq.es.js} +3 -3
- package/dist/chunks/{super-editor.es-CxtR72x8.cjs → super-editor.es-Crw7wu2n.cjs} +20 -10
- package/dist/chunks/{super-editor.es-BIEE4joF.es.js → super-editor.es-DhGXcD3R.es.js} +20 -10
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +29 -29
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Bo9KIIo_.js → converter-C4bE8Uad.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-Cw0Rbwvk.js → docx-zipper-BIkbwyZO.js} +1 -1
- package/dist/super-editor/chunks/{editor-v-i8Oo_X.js → editor-ByMtGRzi.js} +10 -7
- package/dist/super-editor/chunks/{index-XOsGE2PW.js → index-BO5Ne6G9.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-CiKH0Ttu.js → toolbar-DFgaXUsx.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 +29 -29
- package/dist/super-editor/super-editor.es.js +17 -10
- 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 +22 -12
- 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-DZPXVd1d.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-KZsFukCq.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-Crw7wu2n.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-Crw7wu2n.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");
|
|
@@ -17268,7 +17268,7 @@ const _sfc_main = {
|
|
|
17268
17268
|
__name: "SuperDoc",
|
|
17269
17269
|
emits: ["selection-update"],
|
|
17270
17270
|
setup(__props, { emit: __emit }) {
|
|
17271
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17271
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-Dc7zft9M.cjs")));
|
|
17272
17272
|
const superdocStore = useSuperdocStore();
|
|
17273
17273
|
const commentsStore = useCommentsStore();
|
|
17274
17274
|
const {
|
|
@@ -18157,7 +18157,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
18157
18157
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18158
18158
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18159
18159
|
this.colorIndex = 0;
|
|
18160
|
-
this.version = "1.0.0-beta.
|
|
18160
|
+
this.version = "1.0.0-beta.63";
|
|
18161
18161
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18162
18162
|
this.superdocId = config.superdocId || uuid.v4();
|
|
18163
18163
|
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-DhGXcD3R.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";
|
|
@@ -17251,7 +17251,7 @@ const _sfc_main = {
|
|
|
17251
17251
|
__name: "SuperDoc",
|
|
17252
17252
|
emits: ["selection-update"],
|
|
17253
17253
|
setup(__props, { emit: __emit }) {
|
|
17254
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17254
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-Enk2l025.es.js"));
|
|
17255
17255
|
const superdocStore = useSuperdocStore();
|
|
17256
17256
|
const commentsStore = useCommentsStore();
|
|
17257
17257
|
const {
|
|
@@ -18140,7 +18140,7 @@ class SuperDoc extends EventEmitter {
|
|
|
18140
18140
|
this.config.colors = shuffleArray(this.config.colors);
|
|
18141
18141
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
18142
18142
|
this.colorIndex = 0;
|
|
18143
|
-
this.version = "1.0.0-beta.
|
|
18143
|
+
this.version = "1.0.0-beta.63";
|
|
18144
18144
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
18145
18145
|
this.superdocId = config.superdocId || v4();
|
|
18146
18146
|
this.colors = this.config.colors;
|
|
@@ -42326,7 +42326,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
42326
42326
|
static getStoredSuperdocVersion(docx) {
|
|
42327
42327
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42328
42328
|
}
|
|
42329
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.
|
|
42329
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.63") {
|
|
42330
42330
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
42331
42331
|
}
|
|
42332
42332
|
/**
|
|
@@ -59515,7 +59515,7 @@ const isHeadless = (editor) => {
|
|
|
59515
59515
|
const shouldSkipNodeView = (editor) => {
|
|
59516
59516
|
return isHeadless(editor);
|
|
59517
59517
|
};
|
|
59518
|
-
const summaryVersion = "1.0.0-beta.
|
|
59518
|
+
const summaryVersion = "1.0.0-beta.63";
|
|
59519
59519
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
59520
59520
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
59521
59521
|
function mapAttributes(attrs) {
|
|
@@ -60304,7 +60304,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
60304
60304
|
{ default: remarkStringify },
|
|
60305
60305
|
{ default: remarkGfm }
|
|
60306
60306
|
] = await Promise.all([
|
|
60307
|
-
Promise.resolve().then(() => require("./index-
|
|
60307
|
+
Promise.resolve().then(() => require("./index-BO5Ne6G9-njLy4w3i.cjs")),
|
|
60308
60308
|
Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
|
|
60309
60309
|
Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
|
|
60310
60310
|
Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
|
|
@@ -60509,7 +60509,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
60509
60509
|
* Process collaboration migrations
|
|
60510
60510
|
*/
|
|
60511
60511
|
processCollaborationMigrations() {
|
|
60512
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
60512
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.63");
|
|
60513
60513
|
if (!this.options.ydoc) return;
|
|
60514
60514
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
60515
60515
|
let docVersion = metaMap.get("version");
|
|
@@ -67396,8 +67396,7 @@ const normalizeRowHeight = (rowProps) => {
|
|
|
67396
67396
|
if (rawValue == null) return void 0;
|
|
67397
67397
|
const rawRule = heightObj.rule ?? heightObj.hRule;
|
|
67398
67398
|
const rule = rawRule === "exact" || rawRule === "atLeast" || rawRule === "auto" ? rawRule : "atLeast";
|
|
67399
|
-
const
|
|
67400
|
-
const valuePx = isLikelyTwips ? twipsToPx$1(rawValue) : rawValue;
|
|
67399
|
+
const valuePx = twipsToPx$1(rawValue);
|
|
67401
67400
|
return {
|
|
67402
67401
|
value: valuePx,
|
|
67403
67402
|
rule
|
|
@@ -91414,7 +91413,11 @@ const splitRunsAfterMarkPlugin = new Plugin({
|
|
|
91414
91413
|
const runType = newState.schema.nodes["run"];
|
|
91415
91414
|
if (!runType) return null;
|
|
91416
91415
|
const runPositions = /* @__PURE__ */ new Set();
|
|
91416
|
+
const docSize = newState.doc.content.size;
|
|
91417
91417
|
markRanges.forEach(({ from: from2, to }) => {
|
|
91418
|
+
if (from2 < 0 || to < 0 || from2 > docSize || to > docSize || from2 > to) {
|
|
91419
|
+
return;
|
|
91420
|
+
}
|
|
91418
91421
|
newState.doc.nodesBetween(from2, to, (node, pos) => {
|
|
91419
91422
|
if (node.type === runType) runPositions.add(pos);
|
|
91420
91423
|
});
|
|
@@ -118988,13 +118991,20 @@ const _sfc_main$e = {
|
|
|
118988
118991
|
const { $from, empty: empty2 } = selection;
|
|
118989
118992
|
if (empty2) {
|
|
118990
118993
|
const marks = state2.storedMarks || $from.marks();
|
|
118991
|
-
|
|
118992
|
-
if (link)
|
|
118994
|
+
let link = marks.find((mark) => mark.type === linkMark);
|
|
118995
|
+
if (!link) {
|
|
118996
|
+
const nodeAfter = $from.nodeAfter;
|
|
118997
|
+
const nodeBefore = $from.nodeBefore;
|
|
118998
|
+
const marksOnNodeAfter = nodeAfter && Array.isArray(nodeAfter.marks) ? nodeAfter.marks : [];
|
|
118999
|
+
const marksOnNodeBefore = nodeBefore && Array.isArray(nodeBefore.marks) ? nodeBefore.marks : [];
|
|
119000
|
+
link = marksOnNodeAfter.find((mark) => mark.type === linkMark) || marksOnNodeBefore.find((mark) => mark.type === linkMark);
|
|
119001
|
+
}
|
|
119002
|
+
if (link && link.attrs && link.attrs.href) href = link.attrs.href;
|
|
118993
119003
|
} else {
|
|
118994
119004
|
state2.doc.nodesBetween(selection.from, selection.to, (node) => {
|
|
118995
119005
|
if (node.marks) {
|
|
118996
119006
|
const link = node.marks.find((mark) => mark.type === linkMark);
|
|
118997
|
-
if (link) href = link.attrs.href;
|
|
119007
|
+
if (link && link.attrs && link.attrs.href) href = link.attrs.href;
|
|
118998
119008
|
}
|
|
118999
119009
|
});
|
|
119000
119010
|
}
|
|
@@ -119137,7 +119147,7 @@ const _sfc_main$e = {
|
|
|
119137
119147
|
};
|
|
119138
119148
|
}
|
|
119139
119149
|
};
|
|
119140
|
-
const LinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
119150
|
+
const LinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-de37bd1c"]]);
|
|
119141
119151
|
const _hoisted_1$b = ["aria-label", "onClick", "onKeydown"];
|
|
119142
119152
|
const _hoisted_2$6 = ["innerHTML"];
|
|
119143
119153
|
const _hoisted_3$5 = ["innerHTML"];
|
|
@@ -42309,7 +42309,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
42309
42309
|
static getStoredSuperdocVersion(docx) {
|
|
42310
42310
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42311
42311
|
}
|
|
42312
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.
|
|
42312
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.63") {
|
|
42313
42313
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
42314
42314
|
}
|
|
42315
42315
|
/**
|
|
@@ -59498,7 +59498,7 @@ const isHeadless = (editor) => {
|
|
|
59498
59498
|
const shouldSkipNodeView = (editor) => {
|
|
59499
59499
|
return isHeadless(editor);
|
|
59500
59500
|
};
|
|
59501
|
-
const summaryVersion = "1.0.0-beta.
|
|
59501
|
+
const summaryVersion = "1.0.0-beta.63";
|
|
59502
59502
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
59503
59503
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
59504
59504
|
function mapAttributes(attrs) {
|
|
@@ -60287,7 +60287,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
60287
60287
|
{ default: remarkStringify },
|
|
60288
60288
|
{ default: remarkGfm }
|
|
60289
60289
|
] = await Promise.all([
|
|
60290
|
-
import("./index-
|
|
60290
|
+
import("./index-BO5Ne6G9-BxC5lPet.es.js"),
|
|
60291
60291
|
import("./index-DRCvimau-Cw339678.es.js"),
|
|
60292
60292
|
import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
|
|
60293
60293
|
import("./index-D_sWOSiG-DE96TaT5.es.js"),
|
|
@@ -60492,7 +60492,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
60492
60492
|
* Process collaboration migrations
|
|
60493
60493
|
*/
|
|
60494
60494
|
processCollaborationMigrations() {
|
|
60495
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
60495
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.63");
|
|
60496
60496
|
if (!this.options.ydoc) return;
|
|
60497
60497
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
60498
60498
|
let docVersion = metaMap.get("version");
|
|
@@ -67379,8 +67379,7 @@ const normalizeRowHeight = (rowProps) => {
|
|
|
67379
67379
|
if (rawValue == null) return void 0;
|
|
67380
67380
|
const rawRule = heightObj.rule ?? heightObj.hRule;
|
|
67381
67381
|
const rule = rawRule === "exact" || rawRule === "atLeast" || rawRule === "auto" ? rawRule : "atLeast";
|
|
67382
|
-
const
|
|
67383
|
-
const valuePx = isLikelyTwips ? twipsToPx$1(rawValue) : rawValue;
|
|
67382
|
+
const valuePx = twipsToPx$1(rawValue);
|
|
67384
67383
|
return {
|
|
67385
67384
|
value: valuePx,
|
|
67386
67385
|
rule
|
|
@@ -91397,7 +91396,11 @@ const splitRunsAfterMarkPlugin = new Plugin({
|
|
|
91397
91396
|
const runType = newState.schema.nodes["run"];
|
|
91398
91397
|
if (!runType) return null;
|
|
91399
91398
|
const runPositions = /* @__PURE__ */ new Set();
|
|
91399
|
+
const docSize = newState.doc.content.size;
|
|
91400
91400
|
markRanges.forEach(({ from: from2, to }) => {
|
|
91401
|
+
if (from2 < 0 || to < 0 || from2 > docSize || to > docSize || from2 > to) {
|
|
91402
|
+
return;
|
|
91403
|
+
}
|
|
91401
91404
|
newState.doc.nodesBetween(from2, to, (node, pos) => {
|
|
91402
91405
|
if (node.type === runType) runPositions.add(pos);
|
|
91403
91406
|
});
|
|
@@ -118971,13 +118974,20 @@ const _sfc_main$e = {
|
|
|
118971
118974
|
const { $from, empty: empty2 } = selection;
|
|
118972
118975
|
if (empty2) {
|
|
118973
118976
|
const marks = state2.storedMarks || $from.marks();
|
|
118974
|
-
|
|
118975
|
-
if (link)
|
|
118977
|
+
let link = marks.find((mark) => mark.type === linkMark);
|
|
118978
|
+
if (!link) {
|
|
118979
|
+
const nodeAfter = $from.nodeAfter;
|
|
118980
|
+
const nodeBefore = $from.nodeBefore;
|
|
118981
|
+
const marksOnNodeAfter = nodeAfter && Array.isArray(nodeAfter.marks) ? nodeAfter.marks : [];
|
|
118982
|
+
const marksOnNodeBefore = nodeBefore && Array.isArray(nodeBefore.marks) ? nodeBefore.marks : [];
|
|
118983
|
+
link = marksOnNodeAfter.find((mark) => mark.type === linkMark) || marksOnNodeBefore.find((mark) => mark.type === linkMark);
|
|
118984
|
+
}
|
|
118985
|
+
if (link && link.attrs && link.attrs.href) href = link.attrs.href;
|
|
118976
118986
|
} else {
|
|
118977
118987
|
state2.doc.nodesBetween(selection.from, selection.to, (node) => {
|
|
118978
118988
|
if (node.marks) {
|
|
118979
118989
|
const link = node.marks.find((mark) => mark.type === linkMark);
|
|
118980
|
-
if (link) href = link.attrs.href;
|
|
118990
|
+
if (link && link.attrs && link.attrs.href) href = link.attrs.href;
|
|
118981
118991
|
}
|
|
118982
118992
|
});
|
|
118983
118993
|
}
|
|
@@ -119120,7 +119130,7 @@ const _sfc_main$e = {
|
|
|
119120
119130
|
};
|
|
119121
119131
|
}
|
|
119122
119132
|
};
|
|
119123
|
-
const LinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
119133
|
+
const LinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-de37bd1c"]]);
|
|
119124
119134
|
const _hoisted_1$b = ["aria-label", "onClick", "onKeydown"];
|
|
119125
119135
|
const _hoisted_2$6 = ["innerHTML"];
|
|
119126
119136
|
const _hoisted_3$5 = ["innerHTML"];
|
|
@@ -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;IA4ExC;;OAEG;IACH,oBAFW,MAAM,EAKhB;IAhFD,qBAAqB;IACrB,SADW,MAAM,CACT;IAER,qBAAqB;IACrB,OADW,IA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AY;qBAC9B,OAAO,SAAS,EAAE,MAAM;2BACxB,OAAO,SAAS,EAAE,YAAY;6BA3Bf,eAAe;8BAMd,iEAAiE"}
|
package/dist/style.css
CHANGED
|
@@ -1721,12 +1721,12 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1721
1721
|
fill: currentColor;
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
|
-
.link-input-wrapper[data-v-
|
|
1724
|
+
.link-input-wrapper[data-v-de37bd1c] {
|
|
1725
1725
|
display: flex;
|
|
1726
1726
|
flex-direction: column;
|
|
1727
1727
|
gap: 8px;
|
|
1728
1728
|
}
|
|
1729
|
-
.link-input-ctn[data-v-
|
|
1729
|
+
.link-input-ctn[data-v-de37bd1c] {
|
|
1730
1730
|
width: 320px;
|
|
1731
1731
|
display: flex;
|
|
1732
1732
|
flex-direction: column;
|
|
@@ -1735,19 +1735,19 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1735
1735
|
background-color: #fff;
|
|
1736
1736
|
box-sizing: border-box;
|
|
1737
1737
|
}
|
|
1738
|
-
.link-input-ctn[data-v-
|
|
1738
|
+
.link-input-ctn[data-v-de37bd1c] svg {
|
|
1739
1739
|
width: 100%;
|
|
1740
1740
|
height: 100%;
|
|
1741
1741
|
display: block;
|
|
1742
1742
|
fill: currentColor;
|
|
1743
1743
|
}
|
|
1744
|
-
.link-input-ctn .input-row[data-v-
|
|
1744
|
+
.link-input-ctn .input-row[data-v-de37bd1c] {
|
|
1745
1745
|
align-content: baseline;
|
|
1746
1746
|
display: flex;
|
|
1747
1747
|
align-items: center;
|
|
1748
1748
|
font-size: 16px;
|
|
1749
1749
|
}
|
|
1750
|
-
.link-input-ctn .input-row input[data-v-
|
|
1750
|
+
.link-input-ctn .input-row input[data-v-de37bd1c] {
|
|
1751
1751
|
font-size: 13px;
|
|
1752
1752
|
flex-grow: 1;
|
|
1753
1753
|
padding: 10px;
|
|
@@ -1758,30 +1758,30 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1758
1758
|
border: 1px solid #ddd;
|
|
1759
1759
|
box-sizing: border-box;
|
|
1760
1760
|
}
|
|
1761
|
-
.link-input-ctn .input-row input[data-v-
|
|
1762
|
-
.link-input-ctn .input-row input[data-v-
|
|
1761
|
+
.link-input-ctn .input-row input[data-v-de37bd1c]:active,
|
|
1762
|
+
.link-input-ctn .input-row input[data-v-de37bd1c]:focus {
|
|
1763
1763
|
outline: none;
|
|
1764
1764
|
border: 1px solid #1355ff;
|
|
1765
1765
|
}
|
|
1766
|
-
.link-input-ctn .input-icon[data-v-
|
|
1766
|
+
.link-input-ctn .input-icon[data-v-de37bd1c] {
|
|
1767
1767
|
position: absolute;
|
|
1768
1768
|
left: 25px;
|
|
1769
1769
|
width: auto;
|
|
1770
1770
|
color: #999;
|
|
1771
1771
|
pointer-events: none;
|
|
1772
1772
|
}
|
|
1773
|
-
.link-input-ctn .input-icon[data-v-
|
|
1773
|
+
.link-input-ctn .input-icon[data-v-de37bd1c]:not(.text-input-icon) {
|
|
1774
1774
|
transform: rotate(45deg);
|
|
1775
1775
|
height: 12px;
|
|
1776
1776
|
}
|
|
1777
|
-
.link-input-ctn.high-contrast .input-icon[data-v-
|
|
1777
|
+
.link-input-ctn.high-contrast .input-icon[data-v-de37bd1c] {
|
|
1778
1778
|
color: #000;
|
|
1779
1779
|
}
|
|
1780
|
-
.link-input-ctn.high-contrast .input-row input[data-v-
|
|
1780
|
+
.link-input-ctn.high-contrast .input-row input[data-v-de37bd1c] {
|
|
1781
1781
|
color: #000;
|
|
1782
1782
|
border-color: #000;
|
|
1783
1783
|
}
|
|
1784
|
-
.open-link-icon[data-v-
|
|
1784
|
+
.open-link-icon[data-v-de37bd1c] {
|
|
1785
1785
|
margin-left: 10px;
|
|
1786
1786
|
width: 30px;
|
|
1787
1787
|
height: 30px;
|
|
@@ -1794,56 +1794,56 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1794
1794
|
transition: all 0.2s ease;
|
|
1795
1795
|
cursor: pointer;
|
|
1796
1796
|
}
|
|
1797
|
-
.open-link-icon[data-v-
|
|
1797
|
+
.open-link-icon[data-v-de37bd1c]:hover {
|
|
1798
1798
|
color: #1355ff;
|
|
1799
1799
|
background-color: white;
|
|
1800
1800
|
border: 1px solid #dbdbdb;
|
|
1801
1801
|
}
|
|
1802
|
-
.open-link-icon[data-v-
|
|
1802
|
+
.open-link-icon[data-v-de37bd1c] svg {
|
|
1803
1803
|
width: 15px;
|
|
1804
1804
|
height: 15px;
|
|
1805
1805
|
}
|
|
1806
|
-
.disabled[data-v-
|
|
1806
|
+
.disabled[data-v-de37bd1c] {
|
|
1807
1807
|
opacity: 0.6;
|
|
1808
1808
|
cursor: not-allowed;
|
|
1809
1809
|
pointer-events: none;
|
|
1810
1810
|
}
|
|
1811
|
-
.link-buttons[data-v-
|
|
1811
|
+
.link-buttons[data-v-de37bd1c] {
|
|
1812
1812
|
display: flex;
|
|
1813
1813
|
justify-content: flex-end;
|
|
1814
1814
|
margin-top: 10px;
|
|
1815
1815
|
}
|
|
1816
|
-
.remove-btn__icon[data-v-
|
|
1816
|
+
.remove-btn__icon[data-v-de37bd1c] {
|
|
1817
1817
|
display: inline-flex;
|
|
1818
1818
|
width: 13px;
|
|
1819
1819
|
height: 13px;
|
|
1820
1820
|
flex-shrink: 0;
|
|
1821
1821
|
margin-right: 4px;
|
|
1822
1822
|
}
|
|
1823
|
-
.link-buttons button[data-v-
|
|
1823
|
+
.link-buttons button[data-v-de37bd1c] {
|
|
1824
1824
|
margin-left: 5px;
|
|
1825
1825
|
}
|
|
1826
|
-
.disable-btn[data-v-
|
|
1826
|
+
.disable-btn[data-v-de37bd1c] {
|
|
1827
1827
|
opacity: 0.6;
|
|
1828
1828
|
cursor: not-allowed;
|
|
1829
1829
|
pointer-events: none;
|
|
1830
1830
|
}
|
|
1831
|
-
.go-to-anchor a[data-v-
|
|
1831
|
+
.go-to-anchor a[data-v-de37bd1c] {
|
|
1832
1832
|
font-size: 14px;
|
|
1833
1833
|
text-decoration: underline;
|
|
1834
1834
|
}
|
|
1835
|
-
.clickable[data-v-
|
|
1835
|
+
.clickable[data-v-de37bd1c] {
|
|
1836
1836
|
cursor: pointer;
|
|
1837
1837
|
}
|
|
1838
|
-
.link-title[data-v-
|
|
1838
|
+
.link-title[data-v-de37bd1c] {
|
|
1839
1839
|
font-size: 14px;
|
|
1840
1840
|
font-weight: 600;
|
|
1841
1841
|
margin-bottom: 10px;
|
|
1842
1842
|
}
|
|
1843
|
-
.hasBottomMargin[data-v-
|
|
1843
|
+
.hasBottomMargin[data-v-de37bd1c] {
|
|
1844
1844
|
margin-bottom: 1em;
|
|
1845
1845
|
}
|
|
1846
|
-
.remove-btn[data-v-
|
|
1846
|
+
.remove-btn[data-v-de37bd1c] {
|
|
1847
1847
|
display: inline-flex;
|
|
1848
1848
|
justify-content: center;
|
|
1849
1849
|
align-items: center;
|
|
@@ -1859,10 +1859,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1859
1859
|
border: 1px solid #ebebeb;
|
|
1860
1860
|
box-sizing: border-box;
|
|
1861
1861
|
}
|
|
1862
|
-
.remove-btn[data-v-
|
|
1862
|
+
.remove-btn[data-v-de37bd1c]:hover {
|
|
1863
1863
|
background-color: #dbdbdb;
|
|
1864
1864
|
}
|
|
1865
|
-
.submit-btn[data-v-
|
|
1865
|
+
.submit-btn[data-v-de37bd1c] {
|
|
1866
1866
|
display: inline-flex;
|
|
1867
1867
|
justify-content: center;
|
|
1868
1868
|
align-items: center;
|
|
@@ -1882,14 +1882,14 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
1882
1882
|
/* &.high-contrast {
|
|
1883
1883
|
background-color: black;
|
|
1884
1884
|
} */
|
|
1885
|
-
.submit-btn[data-v-
|
|
1885
|
+
.submit-btn[data-v-de37bd1c]:hover {
|
|
1886
1886
|
background-color: #0d47c1;
|
|
1887
1887
|
}
|
|
1888
|
-
.error[data-v-
|
|
1888
|
+
.error[data-v-de37bd1c] {
|
|
1889
1889
|
border-color: red !important;
|
|
1890
1890
|
background-color: #ff00001a;
|
|
1891
1891
|
}
|
|
1892
|
-
.submit[data-v-
|
|
1892
|
+
.submit[data-v-de37bd1c] {
|
|
1893
1893
|
cursor: pointer;
|
|
1894
1894
|
}
|
|
1895
1895
|
|
|
@@ -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-C4bE8Uad.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-ByMtGRzi.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 = {}) {
|
|
@@ -42626,7 +42626,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
42626
42626
|
static getStoredSuperdocVersion(docx) {
|
|
42627
42627
|
return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42628
42628
|
}
|
|
42629
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.
|
|
42629
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.63") {
|
|
42630
42630
|
return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
42631
42631
|
}
|
|
42632
42632
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-
|
|
1
|
+
import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-C4bE8Uad.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, dispatchWithFallback_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, getPluginKeyName_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, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _map, _editor2, _descriptors, _collections, _editorEntries, _maxCachedEditors, _editorAccessOrder, _pendingCreations, _cacheHits, _cacheMisses, _evictions, _HeaderFooterEditorManager_instances, hasConverter_fn, extractCollections_fn, collectDescriptors_fn, teardownMissingEditors_fn, teardownEditors_fn, createEditor_fn, createEditorContainer_fn, registerConverterEditor_fn, unregisterConverterEditor_fn, updateAccessOrder_fn, enforceCacheSizeLimit_fn, _manager, _mediaFiles, _blockCache, _HeaderFooterLayoutAdapter_instances, getBlocks_fn, getConverterContext_fn, _selectionOverlay, _activeEditorHost, _activeDecorationContainer, _activeRegion, _borderLine, _dimmingOverlay, _EditorOverlayManager_instances, findDecorationContainer_fn, ensureEditorHost_fn, positionEditorHost_fn, hideDimmingOverlay_fn, showHeaderFooterBorder_fn, hideHeaderFooterBorder_fn, _instances, _options, _editor3, _visibleHost, _viewportHost, _painterHost, _selectionOverlay2, _hiddenHost, _layoutOptions, _layoutState, _domPainter, _dragHandlerCleanup, _layoutError, _layoutErrorState, _errorBanner, _errorBannerMessage, _telemetryEmitter, _renderScheduled, _pendingDocChange, _isRerendering, _selectionUpdateScheduled, _remoteCursorUpdateScheduled, _rafHandle, _editorListeners, _sectionMetadata, _documentMode, _inputBridge, _trackedChangesMode, _trackedChangesEnabled, _trackedChangesOverrides, _headerFooterManager, _headerFooterAdapter, _headerFooterIdentifier, _multiSectionIdentifier, _headerLayoutResults, _footerLayoutResults, _headerLayoutsByRId, _footerLayoutsByRId, _headerDecorationProvider, _footerDecorationProvider, _headerFooterManagerCleanups, _headerRegions, _footerRegions, _session, _activeHeaderFooterEditor, _overlayManager, _hoverOverlay, _hoverTooltip, _modeBanner, _ariaLiveRegion, _hoverRegion, _clickCount, _lastClickTime, _lastClickPosition, _lastSelectedImageBlockId, _dragAnchor, _isDragging, _dragExtensionMode, _remoteCursorState, _remoteCursorElements, _remoteCursorDirty, _remoteCursorOverlay, _localSelectionLayer, _awarenessCleanup, _scrollCleanup, _scrollTimeout, _lastRemoteCursorRenderTime, _remoteCursorThrottleTimeout, _PresentationEditor_instances, collectCommentPositions_fn, aggregateLayoutBounds_fn, safeCleanup_fn, setupEditorListeners_fn, setupCollaborationCursors_fn, updateLocalAwarenessCursor_fn, normalizeAwarenessStates_fn, getFallbackColor_fn, getValidatedColor_fn, scheduleRemoteCursorUpdate_fn, scheduleRemoteCursorReRender_fn, updateRemoteCursors_fn, renderRemoteCursors_fn, renderRemoteCaret_fn, renderRemoteCursorLabel_fn, renderRemoteSelection_fn, setupPointerHandlers_fn, setupDragHandlers_fn, focusEditorAfterImageSelection_fn, setupInputBridge_fn, initHeaderFooterRegistry_fn, _handlePointerDown, getFirstTextPosition_fn, registerPointerClick_fn, selectWordAt_fn, selectParagraphAt_fn, calculateExtendedSelection_fn, isWordCharacter_fn, _handlePointerMove, _handlePointerLeave, _handlePointerUp, _handleDragOver, _handleDrop, _handleDoubleClick, _handleKeyDown, focusHeaderFooterShortcut_fn, scheduleRerender_fn, flushRerenderQueue_fn, rerender_fn, ensurePainter_fn, scheduleSelectionUpdate_fn, updateSelection_fn, resolveLayoutOptions_fn, buildHeaderFooterInput_fn, computeHeaderFooterConstraints_fn, layoutPerRIdHeaderFooters_fn, updateDecorationProviders_fn, createDecorationProvider_fn, findHeaderFooterPageForPageNumber_fn, computeDecorationBox_fn, computeExpectedSectionType_fn, rebuildHeaderFooterRegions_fn, hitTestHeaderFooterRegion_fn, pointInRegion_fn, activateHeaderFooterRegion_fn, enterHeaderFooterMode_fn, exitHeaderFooterMode_fn, getActiveDomTarget_fn, emitHeaderFooterModeChanged_fn, emitHeaderFooterEditingContext_fn, updateAwarenessSession_fn, updateModeBanner_fn, announce_fn, validateHeaderFooterEditPermission_fn, emitHeaderFooterEditBlocked_fn, resolveDescriptorForRegion_fn, createDefaultHeaderFooter_fn, getPageElement_fn, scrollPageIntoView_fn, computeAnchorMap_fn, waitForPageMount_fn, getBodyPageHeight_fn, getHeaderFooterPageHeight_fn, renderSelectionRects_fn, renderHoverRegion_fn, clearHoverRegion_fn, renderCaretOverlay_fn, getHeaderFooterContext_fn, computeHeaderFooterSelectionRects_fn, syncTrackedChangesPreferences_fn, deriveTrackedChangesMode_fn, deriveTrackedChangesEnabled_fn, getTrackChangesPluginState_fn, computeDefaultLayoutDefaults_fn, parseColumns_fn, inchesToPx_fn, applyZoom_fn, createLayoutMetrics_fn, convertPageLocalToOverlayCoords_fn, normalizeClientPoint_fn, computeCaretLayoutRect_fn, computeCaretLayoutRectFromDOM_fn, computeTableCaretLayoutRect_fn, findLineContainingPos_fn, lineHeightBeforeIndex_fn, getCurrentPageIndex_fn, findRegionForPage_fn, handleLayoutError_fn, decorateError_fn, showLayoutErrorBanner_fn, dismissErrorBanner_fn, createHiddenHost_fn, _windowRoot, _layoutSurfaces, _getTargetDom, _isEditable, _onTargetChanged, _listeners, _currentTarget, _destroyed, _useWindowFallback, _PresentationInputBridge_instances, addListener_fn, dispatchToTarget_fn, forwardKeyboardEvent_fn, forwardTextEvent_fn, forwardCompositionEvent_fn, forwardContextMenu_fn, isEventOnActiveTarget_fn, shouldSkipSurface_fn, isInLayoutSurface_fn, getListenerTargets_fn, isPlainCharacterKey_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ParagraphNodeView_instances, checkShouldUpdate_fn, updateHTMLAttributes_fn, updateDOMStyles_fn, resolveNeighborParagraphProperties_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, _VectorShapeView_instances, ensureParentPositioned_fn, _ShapeGroupView_instances, ensureParentPositioned_fn2;
|
|
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, G as twipsToInches, H as inchesToTwips, I as ptToTwips, J as getResolvedParagraphProperties, K as linesToTwips, L as changeListLevel, O as findParentNode, Q as isList, U as updateNumberingProperties, V as ListHelpers, W as isMacOS, X as isIOS, Y as getSchemaTypeByName, Z as inputRulesPlugin, _ as TrackDeleteMarkName$1, $ as TrackInsertMarkName$1, a0 as v4, a1 as TrackFormatMarkName$1, a2 as comments_module_events, a3 as findMark, a4 as objectIncludes, a5 as AddMarkStep, a6 as RemoveMarkStep, a7 as twipsToLines, a8 as pixelsToTwips, a9 as helpers, aa as posToDOMRect, ab as CommandService, ac as SuperConverter, ad as createDocument, ae as createDocFromMarkdown, af as createDocFromHTML, ag as EditorState, ah as isActive, ai as unflattenListsInHtml, aj as resolveParagraphProperties, ak as _getReferencedTableStyles, al as parseSizeUnit, am as minMax, an as updateDOMAttributes, ao as findChildren$5, ap as generateRandomSigned32BitIntStrId, aq as decodeRPrFromMarks, ar as calculateResolvedParagraphProperties, as as resolveRunProperties, at as encodeCSSFromPPr, au as twipsToPixels$2, av as encodeCSSFromRPr, aw as generateOrderedListIndex, ax as docxNumberingHelpers, ay as InputRule, az as convertSizeToCSS, aA as SelectionRange, aB as Transform, aC as findParentNodeClosestToPos, aD as isInTable$1, aE as generateDocxRandomId, aF as insertNewRelationship, aG as inchesToPixels, aH as kebabCase, aI as getUnderlineCssString } 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, G as twipsToInches, H as inchesToTwips, I as ptToTwips, J as getResolvedParagraphProperties, K as linesToTwips, L as changeListLevel, O as findParentNode, Q as isList, U as updateNumberingProperties, V as ListHelpers, W as isMacOS, X as isIOS, Y as getSchemaTypeByName, Z as inputRulesPlugin, _ as TrackDeleteMarkName$1, $ as TrackInsertMarkName$1, a0 as v4, a1 as TrackFormatMarkName$1, a2 as comments_module_events, a3 as findMark, a4 as objectIncludes, a5 as AddMarkStep, a6 as RemoveMarkStep, a7 as twipsToLines, a8 as pixelsToTwips, a9 as helpers, aa as posToDOMRect, ab as CommandService, ac as SuperConverter, ad as createDocument, ae as createDocFromMarkdown, af as createDocFromHTML, ag as EditorState, ah as isActive, ai as unflattenListsInHtml, aj as resolveParagraphProperties, ak as _getReferencedTableStyles, al as parseSizeUnit, am as minMax, an as updateDOMAttributes, ao as findChildren$5, ap as generateRandomSigned32BitIntStrId, aq as decodeRPrFromMarks, ar as calculateResolvedParagraphProperties, as as resolveRunProperties, at as encodeCSSFromPPr, au as twipsToPixels$2, av as encodeCSSFromRPr, aw as generateOrderedListIndex, ax as docxNumberingHelpers, ay as InputRule, az as convertSizeToCSS, aA as SelectionRange, aB as Transform, aC as findParentNodeClosestToPos, aD as isInTable$1, aE as generateDocxRandomId, aF as insertNewRelationship, aG as inchesToPixels, aH as kebabCase, aI as getUnderlineCssString } from "./converter-C4bE8Uad.js";
|
|
16
|
+
import { D as DocxZipper } from "./docx-zipper-BIkbwyZO.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() {
|
|
@@ -13923,7 +13923,7 @@ const isHeadless = (editor) => {
|
|
|
13923
13923
|
const shouldSkipNodeView = (editor) => {
|
|
13924
13924
|
return isHeadless(editor);
|
|
13925
13925
|
};
|
|
13926
|
-
const summaryVersion = "1.0.0-beta.
|
|
13926
|
+
const summaryVersion = "1.0.0-beta.63";
|
|
13927
13927
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
13928
13928
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
13929
13929
|
function mapAttributes(attrs) {
|
|
@@ -14715,7 +14715,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14715
14715
|
{ default: remarkStringify },
|
|
14716
14716
|
{ default: remarkGfm }
|
|
14717
14717
|
] = await Promise.all([
|
|
14718
|
-
import("./index-
|
|
14718
|
+
import("./index-BO5Ne6G9.js"),
|
|
14719
14719
|
import("./index-DRCvimau.js"),
|
|
14720
14720
|
import("./index-C_x_N6Uh.js"),
|
|
14721
14721
|
import("./index-D_sWOSiG.js"),
|
|
@@ -14920,7 +14920,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14920
14920
|
* Process collaboration migrations
|
|
14921
14921
|
*/
|
|
14922
14922
|
processCollaborationMigrations() {
|
|
14923
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.
|
|
14923
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.63");
|
|
14924
14924
|
if (!this.options.ydoc) return;
|
|
14925
14925
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
14926
14926
|
let docVersion = metaMap.get("version");
|
|
@@ -21895,8 +21895,7 @@ const normalizeRowHeight = (rowProps) => {
|
|
|
21895
21895
|
if (rawValue == null) return void 0;
|
|
21896
21896
|
const rawRule = heightObj.rule ?? heightObj.hRule;
|
|
21897
21897
|
const rule = rawRule === "exact" || rawRule === "atLeast" || rawRule === "auto" ? rawRule : "atLeast";
|
|
21898
|
-
const
|
|
21899
|
-
const valuePx = isLikelyTwips ? twipsToPx$1(rawValue) : rawValue;
|
|
21898
|
+
const valuePx = twipsToPx$1(rawValue);
|
|
21900
21899
|
return {
|
|
21901
21900
|
value: valuePx,
|
|
21902
21901
|
rule
|
|
@@ -46586,7 +46585,11 @@ const splitRunsAfterMarkPlugin = new Plugin({
|
|
|
46586
46585
|
const runType = newState.schema.nodes["run"];
|
|
46587
46586
|
if (!runType) return null;
|
|
46588
46587
|
const runPositions = /* @__PURE__ */ new Set();
|
|
46588
|
+
const docSize = newState.doc.content.size;
|
|
46589
46589
|
markRanges.forEach(({ from: from2, to }) => {
|
|
46590
|
+
if (from2 < 0 || to < 0 || from2 > docSize || to > docSize || from2 > to) {
|
|
46591
|
+
return;
|
|
46592
|
+
}
|
|
46590
46593
|
newState.doc.nodesBetween(from2, to, (node, pos) => {
|
|
46591
46594
|
if (node.type === runType) runPositions.add(pos);
|
|
46592
46595
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, onMounted, onBeforeUnmount, createVNode, readonly, watch, 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-C4bE8Uad.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-ByMtGRzi.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-ByMtGRzi.js";
|
|
2
|
+
import "./chunks/converter-C4bE8Uad.js";
|
|
3
|
+
import "./chunks/docx-zipper-BIkbwyZO.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|