@harbour-enterprises/superdoc 0.15.6 → 0.15.7-next.2
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/{eventemitter3-DESeWqCF.es.js → eventemitter3-BKLF7Ip6.es.js} +1 -1
- package/dist/chunks/{eventemitter3-BgTTc0kr.cjs → eventemitter3-CLT6oufV.cjs} +1 -1
- package/dist/chunks/{index-5s0lZrRi.cjs → index-B5xS6OKK.cjs} +2 -2
- package/dist/chunks/{index-BDb18xQR.es.js → index-BqH3eQTm.es.js} +2 -2
- package/dist/chunks/{index-CEIbpU5u.es.js → index-D612mw4O.es.js} +4 -4
- package/dist/chunks/{index-CjAcITPh.cjs → index-DhQaJbc2.cjs} +2 -2
- package/dist/chunks/{index-gYvWcHA-.es.js → index-DzFLdJgk.es.js} +2 -2
- package/dist/chunks/{index-Dz0ZMALg.cjs → index-ibuaxW1X.cjs} +4 -4
- package/dist/chunks/{jszip-eJOLo2UN.es.js → jszip-BwJb6_S5.es.js} +1 -1
- package/dist/chunks/{jszip-BgN565V6.cjs → jszip-DWfnW2xV.cjs} +1 -1
- package/dist/chunks/{super-editor.es-CecrYWc-.es.js → super-editor.es-7kc2uX7G.es.js} +7 -7
- package/dist/chunks/{super-editor.es-CdurQqVH.cjs → super-editor.es-BiHIRDPY.cjs} +7 -7
- package/dist/chunks/{url-yluXzDeN.cjs → url-7PXI9_kJ.cjs} +2 -2
- package/dist/chunks/{url-D1vPFtjG.es.js → url-CNqDAz7z.es.js} +2 -2
- package/dist/chunks/{vue-aMYj79Bx.es.js → vue-B_OPNNfX.es.js} +7 -14
- package/dist/chunks/{vue-BLDJYAe8.cjs → vue-CfKg12kH.cjs} +7 -14
- package/dist/chunks/{xml-js-DahUgrqx.cjs → xml-js-B_rfwhrZ.cjs} +2 -2
- package/dist/chunks/{xml-js-BWZkA4YC.es.js → xml-js-Bn0K9fTK.es.js} +2 -2
- package/dist/core/SuperDoc.d.ts +0 -1
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-h0jPe1BF.js → converter-BZEnzKq4.js} +3 -3
- package/dist/super-editor/chunks/{docx-zipper-0zkrR_P-.js → docx-zipper-D-LQtmTY.js} +1 -1
- package/dist/super-editor/chunks/{editor-fQr5X9c1.js → editor-BQwbteiR.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BuDhPY2u.js → toolbar-DqErzAFu.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +8 -8
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +17 -17
- package/dist/superdoc.es.js +18 -18
- package/dist/superdoc.umd.js +23 -30
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const jszip = require("./jszip-
|
|
3
|
-
const index$2 = require("./index-
|
|
2
|
+
const jszip = require("./jszip-DWfnW2xV.cjs");
|
|
3
|
+
const index$2 = require("./index-ibuaxW1X.cjs");
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
5
5
|
for (var i = 0; i < m.length; i++) {
|
|
6
6
|
const e = m[i];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./jszip-
|
|
2
|
-
import { r as requireStreamHttp } from "./index-
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./jszip-BwJb6_S5.es.js";
|
|
2
|
+
import { r as requireStreamHttp } from "./index-D612mw4O.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace } from "./jszip-
|
|
2
|
-
import { p as process$1 } from "./vue-
|
|
3
|
-
import { r as require_stream_readable, a as require_stream_writable, b as require_stream_duplex, c as require_stream_transform, d as require_stream_passthrough, e as requireEndOfStream, f as requirePipeline, g as requireInherits_browser } from "./xml-js-
|
|
4
|
-
import { u as url } from "./url-
|
|
1
|
+
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace } from "./jszip-BwJb6_S5.es.js";
|
|
2
|
+
import { p as process$1 } from "./vue-B_OPNNfX.es.js";
|
|
3
|
+
import { r as require_stream_readable, a as require_stream_writable, b as require_stream_duplex, c as require_stream_transform, d as require_stream_passthrough, e as requireEndOfStream, f as requirePipeline, g as requireInherits_browser } from "./xml-js-Bn0K9fTK.es.js";
|
|
4
|
+
import { u as url } from "./url-CNqDAz7z.es.js";
|
|
5
5
|
var streamHttp = {};
|
|
6
6
|
var request = { exports: {} };
|
|
7
7
|
var capability = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const jszip = require("./jszip-
|
|
3
|
-
const index$2 = require("./index-
|
|
2
|
+
const jszip = require("./jszip-DWfnW2xV.cjs");
|
|
3
|
+
const index$2 = require("./index-ibuaxW1X.cjs");
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
5
5
|
for (var i = 0; i < m.length; i++) {
|
|
6
6
|
const e = m[i];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./jszip-
|
|
2
|
-
import { r as requireStreamHttp, a as require$$1 } from "./index-
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./jszip-BwJb6_S5.es.js";
|
|
2
|
+
import { r as requireStreamHttp, a as require$$1 } from "./index-D612mw4O.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const jszip = require("./jszip-
|
|
3
|
-
const vue = require("./vue-
|
|
4
|
-
const xmlJs = require("./xml-js-
|
|
5
|
-
const url = require("./url-
|
|
2
|
+
const jszip = require("./jszip-DWfnW2xV.cjs");
|
|
3
|
+
const vue = require("./vue-CfKg12kH.cjs");
|
|
4
|
+
const xmlJs = require("./xml-js-B_rfwhrZ.cjs");
|
|
5
|
+
const url = require("./url-7PXI9_kJ.cjs");
|
|
6
6
|
var streamHttp = {};
|
|
7
7
|
var request = { exports: {} };
|
|
8
8
|
var capability = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as global$2, r as ref$1, c as createApp, a as computed, b as createElementBlock, o as openBlock, F as Fragment$1, d as renderList, n as normalizeClass, w as withModifiers, e as createCommentVNode, t as toDisplayString, f as createBaseVNode, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, q as getCurrentInstance, s as onDeactivated, u as nextTick, v as createBlock, x as createVNode, y as unref, z as withCtx, A as createTextVNode, B as normalizeStyle, C as h, D as toRef, E as provide, G as mergeProps, H as cloneVNode, T as Text$2, I as withDirectives, J as watchEffect, K as shallowRef, L as vModelText, M as withKeys, N as reactive, O as readonly, P as Transition, Q as vShow, R as Comment, S as renderSlot, U as onActivated, V as Teleport, W as isVNode, X as onUnmounted, Y as resolveDynamicComponent, Z as normalizeProps, _ as guardReactiveProps, $ as markRaw } from "./vue-
|
|
1
|
+
import { g as global$2, r as ref$1, c as createApp, a as computed, b as createElementBlock, o as openBlock, F as Fragment$1, d as renderList, n as normalizeClass, w as withModifiers, e as createCommentVNode, t as toDisplayString, f as createBaseVNode, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, q as getCurrentInstance, s as onDeactivated, u as nextTick, v as createBlock, x as createVNode, y as unref, z as withCtx, A as createTextVNode, B as normalizeStyle, C as h, D as toRef, E as provide, G as mergeProps, H as cloneVNode, T as Text$2, I as withDirectives, J as watchEffect, K as shallowRef, L as vModelText, M as withKeys, N as reactive, O as readonly, P as Transition, Q as vShow, R as Comment, S as renderSlot, U as onActivated, V as Teleport, W as isVNode, X as onUnmounted, Y as resolveDynamicComponent, Z as normalizeProps, _ as guardReactiveProps, $ as markRaw } from "./vue-B_OPNNfX.es.js";
|
|
2
2
|
import * as Y from "yjs";
|
|
3
3
|
import { UndoManager, Item as Item$2, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
4
4
|
var __defProp$2 = Object.defineProperty;
|
|
@@ -26083,7 +26083,7 @@ function generateTableCellProperties(node2) {
|
|
|
26083
26083
|
const cellBordersElement = {
|
|
26084
26084
|
name: "w:tcBorders",
|
|
26085
26085
|
elements: Object.entries(borders).map(([key, value]) => {
|
|
26086
|
-
if (!value.size) {
|
|
26086
|
+
if (!value.size || value.val === "none") {
|
|
26087
26087
|
return {
|
|
26088
26088
|
name: `w:${key}`,
|
|
26089
26089
|
attributes: {
|
|
@@ -28903,7 +28903,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
28903
28903
|
return;
|
|
28904
28904
|
}
|
|
28905
28905
|
}
|
|
28906
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.
|
|
28906
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.7-next.2") {
|
|
28907
28907
|
const customLocation = "docProps/custom.xml";
|
|
28908
28908
|
if (!docx[customLocation]) {
|
|
28909
28909
|
docx[customLocation] = generateCustomXml();
|
|
@@ -29382,7 +29382,7 @@ function storeSuperdocVersion(docx) {
|
|
|
29382
29382
|
function generateCustomXml() {
|
|
29383
29383
|
return DEFAULT_CUSTOM_XML;
|
|
29384
29384
|
}
|
|
29385
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.15.
|
|
29385
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.15.7-next.2") {
|
|
29386
29386
|
return {
|
|
29387
29387
|
type: "element",
|
|
29388
29388
|
name: "property",
|
|
@@ -45709,7 +45709,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
45709
45709
|
* @returns {Object | void} Migration results
|
|
45710
45710
|
*/
|
|
45711
45711
|
processCollaborationMigrations() {
|
|
45712
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.15.
|
|
45712
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.15.7-next.2");
|
|
45713
45713
|
if (!this.options.ydoc) return;
|
|
45714
45714
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
45715
45715
|
let docVersion = metaMap.get("version");
|
|
@@ -72552,7 +72552,7 @@ const _sfc_main$b = {
|
|
|
72552
72552
|
class: "remove-btn__icon",
|
|
72553
72553
|
innerHTML: unref(toolbarIcons).removeLink
|
|
72554
72554
|
}, null, 8, _hoisted_12),
|
|
72555
|
-
_cache[5] || (_cache[5] = createTextVNode(" Remove "
|
|
72555
|
+
_cache[5] || (_cache[5] = createTextVNode(" Remove "))
|
|
72556
72556
|
])) : createCommentVNode("", true),
|
|
72557
72557
|
createBaseVNode("button", {
|
|
72558
72558
|
class: normalizeClass(["submit-btn", { "disable-btn": isDisabled2.value }]),
|
|
@@ -72751,7 +72751,7 @@ const _sfc_main$9 = {
|
|
|
72751
72751
|
innerHTML: unref(DropIcon),
|
|
72752
72752
|
class: "none-icon"
|
|
72753
72753
|
}, null, 8, _hoisted_2$5),
|
|
72754
|
-
_cache[1] || (_cache[1] = createTextVNode(" None "
|
|
72754
|
+
_cache[1] || (_cache[1] = createTextVNode(" None "))
|
|
72755
72755
|
])) : createCommentVNode("", true),
|
|
72756
72756
|
createBaseVNode("div", _hoisted_3$4, [
|
|
72757
72757
|
createVNode(IconGridRow, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const vue = require("./vue-
|
|
2
|
+
const vue = require("./vue-CfKg12kH.cjs");
|
|
3
3
|
const Y = require("yjs");
|
|
4
4
|
function _interopNamespaceDefault(e) {
|
|
5
5
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -26100,7 +26100,7 @@ function generateTableCellProperties(node2) {
|
|
|
26100
26100
|
const cellBordersElement = {
|
|
26101
26101
|
name: "w:tcBorders",
|
|
26102
26102
|
elements: Object.entries(borders).map(([key, value]) => {
|
|
26103
|
-
if (!value.size) {
|
|
26103
|
+
if (!value.size || value.val === "none") {
|
|
26104
26104
|
return {
|
|
26105
26105
|
name: `w:${key}`,
|
|
26106
26106
|
attributes: {
|
|
@@ -28920,7 +28920,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
28920
28920
|
return;
|
|
28921
28921
|
}
|
|
28922
28922
|
}
|
|
28923
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.
|
|
28923
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.15.7-next.2") {
|
|
28924
28924
|
const customLocation = "docProps/custom.xml";
|
|
28925
28925
|
if (!docx[customLocation]) {
|
|
28926
28926
|
docx[customLocation] = generateCustomXml();
|
|
@@ -29399,7 +29399,7 @@ function storeSuperdocVersion(docx) {
|
|
|
29399
29399
|
function generateCustomXml() {
|
|
29400
29400
|
return DEFAULT_CUSTOM_XML;
|
|
29401
29401
|
}
|
|
29402
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.15.
|
|
29402
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.15.7-next.2") {
|
|
29403
29403
|
return {
|
|
29404
29404
|
type: "element",
|
|
29405
29405
|
name: "property",
|
|
@@ -45726,7 +45726,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
45726
45726
|
* @returns {Object | void} Migration results
|
|
45727
45727
|
*/
|
|
45728
45728
|
processCollaborationMigrations() {
|
|
45729
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.15.
|
|
45729
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.15.7-next.2");
|
|
45730
45730
|
if (!this.options.ydoc) return;
|
|
45731
45731
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
45732
45732
|
let docVersion = metaMap.get("version");
|
|
@@ -72569,7 +72569,7 @@ const _sfc_main$b = {
|
|
|
72569
72569
|
class: "remove-btn__icon",
|
|
72570
72570
|
innerHTML: vue.unref(toolbarIcons).removeLink
|
|
72571
72571
|
}, null, 8, _hoisted_12),
|
|
72572
|
-
_cache[5] || (_cache[5] = vue.createTextVNode(" Remove "
|
|
72572
|
+
_cache[5] || (_cache[5] = vue.createTextVNode(" Remove "))
|
|
72573
72573
|
])) : vue.createCommentVNode("", true),
|
|
72574
72574
|
vue.createBaseVNode("button", {
|
|
72575
72575
|
class: vue.normalizeClass(["submit-btn", { "disable-btn": isDisabled2.value }]),
|
|
@@ -72768,7 +72768,7 @@ const _sfc_main$9 = {
|
|
|
72768
72768
|
innerHTML: vue.unref(DropIcon),
|
|
72769
72769
|
class: "none-icon"
|
|
72770
72770
|
}, null, 8, _hoisted_2$5),
|
|
72771
|
-
_cache[1] || (_cache[1] = vue.createTextVNode(" None "
|
|
72771
|
+
_cache[1] || (_cache[1] = vue.createTextVNode(" None "))
|
|
72772
72772
|
])) : vue.createCommentVNode("", true),
|
|
72773
72773
|
vue.createBaseVNode("div", _hoisted_3$4, [
|
|
72774
72774
|
vue.createVNode(IconGridRow, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const jszip = require("./jszip-
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
2
|
+
const jszip = require("./jszip-DWfnW2xV.cjs");
|
|
3
|
+
const xmlJs = require("./xml-js-B_rfwhrZ.cjs");
|
|
4
4
|
const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
|
|
5
5
|
var punycode$2 = { exports: {} };
|
|
6
6
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-
|
|
2
|
-
import { h as requireType, i as requireGetIntrinsic, j as requireCallBound } from "./xml-js-
|
|
1
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-BwJb6_S5.es.js";
|
|
2
|
+
import { h as requireType, i as requireGetIntrinsic, j as requireCallBound } from "./xml-js-Bn0K9fTK.es.js";
|
|
3
3
|
import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
|
|
4
4
|
var punycode$2 = { exports: {} };
|
|
5
5
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -162,7 +162,7 @@ process.umask = function() {
|
|
|
162
162
|
var browserExports = browser.exports;
|
|
163
163
|
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
164
164
|
/**
|
|
165
|
-
* @vue/shared v3.5.
|
|
165
|
+
* @vue/shared v3.5.17
|
|
166
166
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
167
167
|
* @license MIT
|
|
168
168
|
**/
|
|
@@ -4285,8 +4285,7 @@ function applyOptions(instance) {
|
|
|
4285
4285
|
expose.forEach((key) => {
|
|
4286
4286
|
Object.defineProperty(exposed, key, {
|
|
4287
4287
|
get: () => publicThis[key],
|
|
4288
|
-
set: (val) => publicThis[key] = val
|
|
4289
|
-
enumerable: true
|
|
4288
|
+
set: (val) => publicThis[key] = val
|
|
4290
4289
|
});
|
|
4291
4290
|
});
|
|
4292
4291
|
} else if (!instance.exposed) {
|
|
@@ -4732,7 +4731,7 @@ function provide(key, value) {
|
|
|
4732
4731
|
}
|
|
4733
4732
|
}
|
|
4734
4733
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
4735
|
-
const instance =
|
|
4734
|
+
const instance = currentInstance || currentRenderingInstance;
|
|
4736
4735
|
if (instance || currentApp) {
|
|
4737
4736
|
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
4738
4737
|
if (provides && key in provides) {
|
|
@@ -4747,7 +4746,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
4747
4746
|
}
|
|
4748
4747
|
}
|
|
4749
4748
|
function hasInjectionContext() {
|
|
4750
|
-
return !!(
|
|
4749
|
+
return !!(currentInstance || currentRenderingInstance || currentApp);
|
|
4751
4750
|
}
|
|
4752
4751
|
const internalObjectProto = {};
|
|
4753
4752
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
@@ -5170,7 +5169,7 @@ function isExplicable(type) {
|
|
|
5170
5169
|
function isBoolean(...args) {
|
|
5171
5170
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
|
5172
5171
|
}
|
|
5173
|
-
const isInternalKey = (key) => key === "_" || key === "
|
|
5172
|
+
const isInternalKey = (key) => key[0] === "_" || key === "$stable";
|
|
5174
5173
|
const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
|
|
5175
5174
|
const normalizeSlot = (key, rawSlot, ctx) => {
|
|
5176
5175
|
if (rawSlot._n) {
|
|
@@ -5932,7 +5931,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5932
5931
|
if (!initialVNode.el) {
|
|
5933
5932
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
5934
5933
|
processCommentNode(null, placeholder, container, anchor);
|
|
5935
|
-
initialVNode.placeholder = placeholder.el;
|
|
5936
5934
|
}
|
|
5937
5935
|
} else {
|
|
5938
5936
|
setupRenderEffect(
|
|
@@ -6402,11 +6400,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6402
6400
|
for (i = toBePatched - 1; i >= 0; i--) {
|
|
6403
6401
|
const nextIndex = s2 + i;
|
|
6404
6402
|
const nextChild = c2[nextIndex];
|
|
6405
|
-
const
|
|
6406
|
-
const anchor = nextIndex + 1 < l2 ? (
|
|
6407
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
6408
|
-
anchorVNode.el || anchorVNode.placeholder
|
|
6409
|
-
) : parentAnchor;
|
|
6403
|
+
const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;
|
|
6410
6404
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
6411
6405
|
patch(
|
|
6412
6406
|
null,
|
|
@@ -7625,7 +7619,6 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
7625
7619
|
suspense: vnode.suspense,
|
|
7626
7620
|
ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
|
|
7627
7621
|
ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
|
|
7628
|
-
placeholder: vnode.placeholder,
|
|
7629
7622
|
el: vnode.el,
|
|
7630
7623
|
anchor: vnode.anchor,
|
|
7631
7624
|
ctx: vnode.ctx,
|
|
@@ -8358,7 +8351,7 @@ function initCustomFormatter() {
|
|
|
8358
8351
|
window.devtoolsFormatters = [formatter];
|
|
8359
8352
|
}
|
|
8360
8353
|
}
|
|
8361
|
-
const version = "3.5.
|
|
8354
|
+
const version = "3.5.17";
|
|
8362
8355
|
const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8363
8356
|
!!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
8364
8357
|
!!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
|
|
@@ -163,7 +163,7 @@ process.umask = function() {
|
|
|
163
163
|
var browserExports = browser.exports;
|
|
164
164
|
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
165
165
|
/**
|
|
166
|
-
* @vue/shared v3.5.
|
|
166
|
+
* @vue/shared v3.5.17
|
|
167
167
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
168
168
|
* @license MIT
|
|
169
169
|
**/
|
|
@@ -4286,8 +4286,7 @@ function applyOptions(instance) {
|
|
|
4286
4286
|
expose.forEach((key) => {
|
|
4287
4287
|
Object.defineProperty(exposed, key, {
|
|
4288
4288
|
get: () => publicThis[key],
|
|
4289
|
-
set: (val) => publicThis[key] = val
|
|
4290
|
-
enumerable: true
|
|
4289
|
+
set: (val) => publicThis[key] = val
|
|
4291
4290
|
});
|
|
4292
4291
|
});
|
|
4293
4292
|
} else if (!instance.exposed) {
|
|
@@ -4733,7 +4732,7 @@ function provide(key, value) {
|
|
|
4733
4732
|
}
|
|
4734
4733
|
}
|
|
4735
4734
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
4736
|
-
const instance =
|
|
4735
|
+
const instance = currentInstance || currentRenderingInstance;
|
|
4737
4736
|
if (instance || currentApp) {
|
|
4738
4737
|
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
4739
4738
|
if (provides && key in provides) {
|
|
@@ -4748,7 +4747,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
4748
4747
|
}
|
|
4749
4748
|
}
|
|
4750
4749
|
function hasInjectionContext() {
|
|
4751
|
-
return !!(
|
|
4750
|
+
return !!(currentInstance || currentRenderingInstance || currentApp);
|
|
4752
4751
|
}
|
|
4753
4752
|
const internalObjectProto = {};
|
|
4754
4753
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
@@ -5171,7 +5170,7 @@ function isExplicable(type) {
|
|
|
5171
5170
|
function isBoolean(...args) {
|
|
5172
5171
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
|
5173
5172
|
}
|
|
5174
|
-
const isInternalKey = (key) => key === "_" || key === "
|
|
5173
|
+
const isInternalKey = (key) => key[0] === "_" || key === "$stable";
|
|
5175
5174
|
const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
|
|
5176
5175
|
const normalizeSlot = (key, rawSlot, ctx) => {
|
|
5177
5176
|
if (rawSlot._n) {
|
|
@@ -5933,7 +5932,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5933
5932
|
if (!initialVNode.el) {
|
|
5934
5933
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
5935
5934
|
processCommentNode(null, placeholder, container, anchor);
|
|
5936
|
-
initialVNode.placeholder = placeholder.el;
|
|
5937
5935
|
}
|
|
5938
5936
|
} else {
|
|
5939
5937
|
setupRenderEffect(
|
|
@@ -6403,11 +6401,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6403
6401
|
for (i = toBePatched - 1; i >= 0; i--) {
|
|
6404
6402
|
const nextIndex = s2 + i;
|
|
6405
6403
|
const nextChild = c2[nextIndex];
|
|
6406
|
-
const
|
|
6407
|
-
const anchor = nextIndex + 1 < l2 ? (
|
|
6408
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
6409
|
-
anchorVNode.el || anchorVNode.placeholder
|
|
6410
|
-
) : parentAnchor;
|
|
6404
|
+
const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;
|
|
6411
6405
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
6412
6406
|
patch(
|
|
6413
6407
|
null,
|
|
@@ -7626,7 +7620,6 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
7626
7620
|
suspense: vnode.suspense,
|
|
7627
7621
|
ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
|
|
7628
7622
|
ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
|
|
7629
|
-
placeholder: vnode.placeholder,
|
|
7630
7623
|
el: vnode.el,
|
|
7631
7624
|
anchor: vnode.anchor,
|
|
7632
7625
|
ctx: vnode.ctx,
|
|
@@ -8359,7 +8352,7 @@ function initCustomFormatter() {
|
|
|
8359
8352
|
window.devtoolsFormatters = [formatter];
|
|
8360
8353
|
}
|
|
8361
8354
|
}
|
|
8362
|
-
const version = "3.5.
|
|
8355
|
+
const version = "3.5.17";
|
|
8363
8356
|
const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8364
8357
|
!!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
8365
8358
|
!!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const vue = require("./vue-
|
|
3
|
-
const jszip = require("./jszip-
|
|
2
|
+
const vue = require("./vue-CfKg12kH.cjs");
|
|
3
|
+
const jszip = require("./jszip-DWfnW2xV.cjs");
|
|
4
4
|
var inherits_browser = { exports: {} };
|
|
5
5
|
var hasRequiredInherits_browser;
|
|
6
6
|
function requireInherits_browser() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as process$1 } from "./vue-
|
|
2
|
-
import { c as commonjsGlobal } from "./jszip-
|
|
1
|
+
import { p as process$1 } from "./vue-B_OPNNfX.es.js";
|
|
2
|
+
import { c as commonjsGlobal } from "./jszip-BwJb6_S5.es.js";
|
|
3
3
|
var inherits_browser = { exports: {} };
|
|
4
4
|
var hasRequiredInherits_browser;
|
|
5
5
|
function requireInherits_browser() {
|
package/dist/core/SuperDoc.d.ts
CHANGED
|
@@ -192,7 +192,6 @@ export class SuperDoc extends EventEmitter<string | symbol, any> {
|
|
|
192
192
|
* @param {boolean} isOpened
|
|
193
193
|
*/
|
|
194
194
|
broadcastSidebarToggle(isOpened: boolean): void;
|
|
195
|
-
log(...args: any[]): void;
|
|
196
195
|
/**
|
|
197
196
|
* Set the active editor
|
|
198
197
|
* @param {Editor} editor The editor to set as active
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../src/core/SuperDoc.js"],"names":[],"mappings":"AAeA;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;GAQG;AAEH,2EAA2E;AAE3E;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AQ,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI;;;;uBACxC,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,KAAK,IAAI;;;;wBAC/C,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,QAAQ,CAAC;QAAC,MAAM,QAAO;KAAE,KAAK,IAAI;;;;eACtD,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE,KAAK,IAAI;;;;yBACvD,MAAM,IAAI;;;;sBACV,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI;;;;2BAC3B,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;;;qBACpC,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;;;kBACpC,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,KAAK,IAAI;;;;2BAClC,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI;;;;8BACzC,CAAC,MAAM,EAAE,EAAE,KAAC,GAAA;;;;aACZ,MAAM;;;;uBACN,KAAQ;;;;iBACR,OAAO;;;;YACP,MAAM;;;;oBACN,KAAQ;;;;eACR,OAAO;;;;;;;;wBAEP,CAAS,IAAI,EAAJ,IAAI,KAAG,OAAO,CAAC,MAAM,CAAC;;;;eAC/B,IAAI;;;;aACJ,OAAO;;;;gCACP,OAAO;;;;mBACP,OAAO;;;;yBACP,OAAO;;6BAzGQ,eAAe;0BASlB,0CAA0C;6BAJ5B,mCAAmC;8BAC7C,iEAAiE"}
|
|
@@ -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-BZEnzKq4.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-BQwbteiR.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 = {}) {
|
|
@@ -26081,7 +26081,7 @@ function generateTableCellProperties(node2) {
|
|
|
26081
26081
|
const cellBordersElement = {
|
|
26082
26082
|
name: "w:tcBorders",
|
|
26083
26083
|
elements: Object.entries(borders).map(([key, value]) => {
|
|
26084
|
-
if (!value.size) {
|
|
26084
|
+
if (!value.size || value.val === "none") {
|
|
26085
26085
|
return {
|
|
26086
26086
|
name: `w:${key}`,
|
|
26087
26087
|
attributes: {
|
|
@@ -28901,7 +28901,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
28901
28901
|
return;
|
|
28902
28902
|
}
|
|
28903
28903
|
}
|
|
28904
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.15.
|
|
28904
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.15.7-next.2") {
|
|
28905
28905
|
const customLocation = "docProps/custom.xml";
|
|
28906
28906
|
if (!docx[customLocation]) {
|
|
28907
28907
|
docx[customLocation] = generateCustomXml();
|
|
@@ -29383,7 +29383,7 @@ function storeSuperdocVersion(docx) {
|
|
|
29383
29383
|
function generateCustomXml() {
|
|
29384
29384
|
return DEFAULT_CUSTOM_XML;
|
|
29385
29385
|
}
|
|
29386
|
-
function generateSuperdocVersion(pid = 2, version = "0.15.
|
|
29386
|
+
function generateSuperdocVersion(pid = 2, version = "0.15.7-next.2") {
|
|
29387
29387
|
return {
|
|
29388
29388
|
type: "element",
|
|
29389
29389
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as process$1, at as commonjsGlobal, I as Buffer, au as getDefaultExportFromCjs, av as getContentTypesFromXml, aw as xmljs } from "./converter-
|
|
1
|
+
import { H as process$1, at as commonjsGlobal, I as Buffer, au as getDefaultExportFromCjs, av as getContentTypesFromXml, aw as xmljs } from "./converter-BZEnzKq4.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,9 +12,9 @@ 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, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _css, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createDocFromHTML_fn, createView_fn, onCollaborationReady_fn, initComments_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, _ListItemNodeView_instances, init_fn2, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn, _DocumentSectionView_instances, init_fn3, addToolTip_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, c as callOrGet, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, i as canSplit, l as liftTarget, A as AllSelection, j as canJoin, k as joinPoint, N as NodeSelection, m as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, n as Slice, o as defaultBlockAt$1, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, y as findParentNode, L as ListHelpers, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as helpers, a2 as posToDOMRect, a3 as CommandService, a4 as SuperConverter, a5 as createDocument, a6 as EditorState, a7 as hasSomeParentWithClass, a8 as isActive, a9 as unflattenListsInHtml, aa as parseSizeUnit, ab as minMax, ac as getLineHeightValueString, ad as InputRule, ae as kebabCase, af as generateOrderedListIndex, ag as getListItemStyleDefinitions, ah as docxNumberigHelpers, ai as parseIndentElement, aj as combineIndents, ak as getColStyleDeclaration, al as SelectionRange, am as Transform, an as findParentNodeClosestToPos, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId, ar as SectionHelpers, as as htmlHandler } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, i as canSplit, l as liftTarget, A as AllSelection, j as canJoin, k as joinPoint, N as NodeSelection, m as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, n as Slice, o as defaultBlockAt$1, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, y as findParentNode, L as ListHelpers, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as helpers, a2 as posToDOMRect, a3 as CommandService, a4 as SuperConverter, a5 as createDocument, a6 as EditorState, a7 as hasSomeParentWithClass, a8 as isActive, a9 as unflattenListsInHtml, aa as parseSizeUnit, ab as minMax, ac as getLineHeightValueString, ad as InputRule, ae as kebabCase, af as generateOrderedListIndex, ag as getListItemStyleDefinitions, ah as docxNumberigHelpers, ai as parseIndentElement, aj as combineIndents, ak as getColStyleDeclaration, al as SelectionRange, am as Transform, an as findParentNodeClosestToPos, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId, ar as SectionHelpers, as as htmlHandler } from "./converter-BZEnzKq4.js";
|
|
16
16
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
17
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
17
|
+
import { D as DocxZipper } from "./docx-zipper-D-LQtmTY.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -13845,7 +13845,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13845
13845
|
* @returns {Object | void} Migration results
|
|
13846
13846
|
*/
|
|
13847
13847
|
processCollaborationMigrations() {
|
|
13848
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.15.
|
|
13848
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.15.7-next.2");
|
|
13849
13849
|
if (!this.options.ydoc) return;
|
|
13850
13850
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
13851
13851
|
let docVersion = metaMap.get("version");
|
|
@@ -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 { H as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { H as process$1 } from "./converter-BZEnzKq4.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BQwbteiR.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-BQwbteiR.js";
|
|
2
|
+
import "./chunks/converter-BZEnzKq4.js";
|
|
3
|
+
import "./chunks/docx-zipper-D-LQtmTY.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -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, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { au as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, ax as vClickOutside, y as findParentNode, ay as getActiveFormatting, ao as isInTable, az as readFromClipboard, aA as handleClipboardPaste, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { ar, a4, d, a1 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { k, C, T, i, l, j } from "./chunks/editor-
|
|
12
|
+
import { au as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, ax as vClickOutside, y as findParentNode, ay as getActiveFormatting, ao as isInTable, az as readFromClipboard, aA as handleClipboardPaste, a as Plugin } from "./chunks/converter-BZEnzKq4.js";
|
|
13
|
+
import { ar, a4, d, a1 } from "./chunks/converter-BZEnzKq4.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-BQwbteiR.js";
|
|
15
|
+
import { k, C, T, i, l, j } from "./chunks/editor-BQwbteiR.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, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, N as NSkeleton } from "./chunks/toolbar-DqErzAFu.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-D-LQtmTY.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -789,7 +789,7 @@ const _sfc_main$b = {
|
|
|
789
789
|
class: "remove-btn__icon",
|
|
790
790
|
innerHTML: unref(toolbarIcons).removeLink
|
|
791
791
|
}, null, 8, _hoisted_12),
|
|
792
|
-
_cache[5] || (_cache[5] = createTextVNode(" Remove "
|
|
792
|
+
_cache[5] || (_cache[5] = createTextVNode(" Remove "))
|
|
793
793
|
])) : createCommentVNode("", true),
|
|
794
794
|
createElementVNode("button", {
|
|
795
795
|
class: normalizeClass(["submit-btn", { "disable-btn": isDisabled.value }]),
|
|
@@ -988,7 +988,7 @@ const _sfc_main$9 = {
|
|
|
988
988
|
innerHTML: unref(DropIcon),
|
|
989
989
|
class: "none-icon"
|
|
990
990
|
}, null, 8, _hoisted_2$5),
|
|
991
|
-
_cache[1] || (_cache[1] = createTextVNode(" None "
|
|
991
|
+
_cache[1] || (_cache[1] = createTextVNode(" None "))
|
|
992
992
|
])) : createCommentVNode("", true),
|
|
993
993
|
createElementVNode("div", _hoisted_3$4, [
|
|
994
994
|
createVNode(IconGridRow, {
|