@harbour-enterprises/superdoc 0.29.0-next.5 → 0.29.0-next.7
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-B0-i_xj1.es.js → PdfViewer-D2cnJhM1.es.js} +1 -1
- package/dist/chunks/{PdfViewer-GDvgD4EV.cjs → PdfViewer-DyUG4__F.cjs} +1 -1
- package/dist/chunks/{index-kFcrcUyP-CmyweStu.es.js → index-BqhJhdcP-B9XbOefk.es.js} +1 -1
- package/dist/chunks/{index-kFcrcUyP-C6zZ0EM9.cjs → index-BqhJhdcP-Dm9pUO-L.cjs} +1 -1
- package/dist/chunks/{index-DyPYyfC3.es.js → index-DC11bH-A.es.js} +3 -3
- package/dist/chunks/{index-BNH18425.cjs → index-DZIAPuKc.cjs} +3 -3
- package/dist/chunks/{super-editor.es-C5LZbA8E.cjs → super-editor.es-607cvQXw.cjs} +13 -8
- package/dist/chunks/{super-editor.es-BmSmyoDe.es.js → super-editor.es-DNPslOnx.es.js} +13 -8
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CDG8w12p.js → converter--SREdiqQ.js} +8 -4
- package/dist/super-editor/chunks/{docx-zipper-JWGA5kNp.js → docx-zipper-BRGsc2Y2.js} +1 -1
- package/dist/super-editor/chunks/{editor-COcBSJ6s.js → editor-DsKLhlKe.js} +7 -6
- package/dist/super-editor/chunks/{index-kFcrcUyP.js → index-BqhJhdcP.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-B_CGMnHE.js → toolbar-Dqed7MP7.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/SuperConverter.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/SuperConverter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/strike/strike.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 +15 -10
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as defineComponent, B as h, O as Transition, $ as process$1, I as watchEffect, d as computed, r as ref, j as onMounted, W as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, f as createCommentVNode, v as createVNode, x as unref } from "./vue-DVNiXx7E.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-DC11bH-A.es.js";
|
|
3
3
|
function self(vars) {
|
|
4
4
|
const {
|
|
5
5
|
opacityDisabled,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("./vue-BQxRC6G7.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-DZIAPuKc.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
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-607cvQXw.cjs");
|
|
4
4
|
const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
|
|
5
5
|
function bail(error) {
|
|
6
6
|
if (error) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, 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-DNPslOnx.es.js";
|
|
2
2
|
import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, d as computed, a2 as isRef, a3 as isReactive, C as toRef, i as inject, p as getCurrentInstance, l as watch, x as unref, a4 as hasInjectionContext, M as reactive, s as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, J as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, H as withDirectives, B as h, U as Teleport, R as renderSlot, V as isVNode, I as watchEffect, O as Transition, a8 as TransitionGroup, E as mergeProps, P as vShow, G as cloneVNode, T as Text, c as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, a as createBaseVNode, A as normalizeStyle, f as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, e as renderList, b as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-DVNiXx7E.es.js";
|
|
3
3
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
import { E as EventEmitter } from "./eventemitter3-xrnx5jJP.es.js";
|
|
@@ -17156,7 +17156,7 @@ const _sfc_main = {
|
|
|
17156
17156
|
__name: "SuperDoc",
|
|
17157
17157
|
emits: ["selection-update"],
|
|
17158
17158
|
setup(__props, { emit: __emit }) {
|
|
17159
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
17159
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-D2cnJhM1.es.js"));
|
|
17160
17160
|
const superdocStore = useSuperdocStore();
|
|
17161
17161
|
const commentsStore = useCommentsStore();
|
|
17162
17162
|
const {
|
|
@@ -17920,7 +17920,7 @@ class SuperDoc extends EventEmitter {
|
|
|
17920
17920
|
this.config.colors = shuffleArray(this.config.colors);
|
|
17921
17921
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
17922
17922
|
this.colorIndex = 0;
|
|
17923
|
-
this.version = "0.29.0-next.
|
|
17923
|
+
this.version = "0.29.0-next.7";
|
|
17924
17924
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
17925
17925
|
this.superdocId = config.superdocId || v4();
|
|
17926
17926
|
this.colors = this.config.colors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const superEditor_es = require("./super-editor.es-
|
|
2
|
+
const superEditor_es = require("./super-editor.es-607cvQXw.cjs");
|
|
3
3
|
const vue = require("./vue-BQxRC6G7.cjs");
|
|
4
4
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
5
5
|
const eventemitter3 = require("./eventemitter3-BvTILlBo.cjs");
|
|
@@ -17173,7 +17173,7 @@ const _sfc_main = {
|
|
|
17173
17173
|
__name: "SuperDoc",
|
|
17174
17174
|
emits: ["selection-update"],
|
|
17175
17175
|
setup(__props, { emit: __emit }) {
|
|
17176
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
17176
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-DyUG4__F.cjs")));
|
|
17177
17177
|
const superdocStore = useSuperdocStore();
|
|
17178
17178
|
const commentsStore = useCommentsStore();
|
|
17179
17179
|
const {
|
|
@@ -17937,7 +17937,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
17937
17937
|
this.config.colors = shuffleArray(this.config.colors);
|
|
17938
17938
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
17939
17939
|
this.colorIndex = 0;
|
|
17940
|
-
this.version = "0.29.0-next.
|
|
17940
|
+
this.version = "0.29.0-next.7";
|
|
17941
17941
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
17942
17942
|
this.superdocId = config.superdocId || uuid.v4();
|
|
17943
17943
|
this.colors = this.config.colors;
|
|
@@ -25010,7 +25010,7 @@ function parseMarks(property2, unknownMarks = [], docx = null) {
|
|
|
25010
25010
|
seen.add(m2.type);
|
|
25011
25011
|
const { attributes = {} } = element;
|
|
25012
25012
|
const newMark = { type: m2.type };
|
|
25013
|
-
const exceptionMarks = ["w:b", "w:caps"];
|
|
25013
|
+
const exceptionMarks = ["w:b", "w:caps", "w:strike", "w:dstrike"];
|
|
25014
25014
|
if ((attributes["w:val"] === "0" || attributes["w:val"] === "none") && !exceptionMarks.includes(m2.name)) {
|
|
25015
25015
|
return;
|
|
25016
25016
|
}
|
|
@@ -25133,7 +25133,8 @@ function getStrikeValue(attributes) {
|
|
|
25133
25133
|
if (raw === void 0 || raw === null) return "1";
|
|
25134
25134
|
const value = String(raw).trim().toLowerCase();
|
|
25135
25135
|
if (value === "1" || value === "true" || value === "on") return "1";
|
|
25136
|
-
return
|
|
25136
|
+
if (value === "0" || value === "false" || value === "off") return "0";
|
|
25137
|
+
return "1";
|
|
25137
25138
|
}
|
|
25138
25139
|
const parseParagraphBorders = (pBdr) => {
|
|
25139
25140
|
if (!pBdr || !pBdr.elements) return {};
|
|
@@ -35045,6 +35046,9 @@ function translateMark(mark) {
|
|
|
35045
35046
|
const translated = translator$1r.decode({ node: { attrs: { highlight: highlightValue } } });
|
|
35046
35047
|
return translated || {};
|
|
35047
35048
|
}
|
|
35049
|
+
case "strike":
|
|
35050
|
+
if (attrs?.value === "0") markElement.attributes["w:val"] = attrs.value;
|
|
35051
|
+
break;
|
|
35048
35052
|
case "link":
|
|
35049
35053
|
return {};
|
|
35050
35054
|
}
|
|
@@ -35606,7 +35610,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35606
35610
|
static getStoredSuperdocVersion(docx) {
|
|
35607
35611
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35608
35612
|
}
|
|
35609
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.
|
|
35613
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.7") {
|
|
35610
35614
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35611
35615
|
}
|
|
35612
35616
|
/**
|
|
@@ -36156,7 +36160,7 @@ __publicField$2(_SuperConverter, "markTypes", [
|
|
|
36156
36160
|
{ name: "w:i", type: "italic" },
|
|
36157
36161
|
// { name: 'w:iCs', type: 'italic' },
|
|
36158
36162
|
{ name: "w:u", type: "underline", mark: "underline", property: "underlineType" },
|
|
36159
|
-
{ name: "w:strike", type: "strike", mark: "strike" },
|
|
36163
|
+
{ name: "w:strike", type: "strike", mark: "strike", property: "value" },
|
|
36160
36164
|
{ name: "w:color", type: "color", mark: "textStyle", property: "color" },
|
|
36161
36165
|
{ name: "w:sz", type: "fontSize", mark: "textStyle", property: "fontSize" },
|
|
36162
36166
|
// { name: 'w:szCs', type: 'fontSize', mark: 'textStyle', property: 'fontSize' },
|
|
@@ -53795,7 +53799,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53795
53799
|
{ default: remarkStringify },
|
|
53796
53800
|
{ default: remarkGfm }
|
|
53797
53801
|
] = await Promise.all([
|
|
53798
|
-
Promise.resolve().then(() => require("./index-
|
|
53802
|
+
Promise.resolve().then(() => require("./index-BqhJhdcP-Dm9pUO-L.cjs")),
|
|
53799
53803
|
Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
|
|
53800
53804
|
Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
|
|
53801
53805
|
Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
|
|
@@ -54013,7 +54017,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
54013
54017
|
* @returns {Object | void} Migration results
|
|
54014
54018
|
*/
|
|
54015
54019
|
processCollaborationMigrations() {
|
|
54016
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.
|
|
54020
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.7");
|
|
54017
54021
|
if (!this.options.ydoc) return;
|
|
54018
54022
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
54019
54023
|
let docVersion = metaMap.get("version");
|
|
@@ -70453,9 +70457,10 @@ const Strike = Mark2.create({
|
|
|
70453
70457
|
{ style: "text-decoration=auto", clearMark: (m2) => m2.type.name == "s" }
|
|
70454
70458
|
];
|
|
70455
70459
|
},
|
|
70456
|
-
renderDOM({ htmlAttributes }) {
|
|
70460
|
+
renderDOM({ mark, htmlAttributes }) {
|
|
70457
70461
|
const merged = Attribute2.mergeAttributes(this.options.htmlAttributes, htmlAttributes);
|
|
70458
|
-
const { value
|
|
70462
|
+
const { value } = mark.attrs;
|
|
70463
|
+
const { ...rest } = merged || {};
|
|
70459
70464
|
if (value === "0") {
|
|
70460
70465
|
return ["span", rest, 0];
|
|
70461
70466
|
}
|
|
@@ -24993,7 +24993,7 @@ function parseMarks(property2, unknownMarks = [], docx = null) {
|
|
|
24993
24993
|
seen.add(m2.type);
|
|
24994
24994
|
const { attributes = {} } = element;
|
|
24995
24995
|
const newMark = { type: m2.type };
|
|
24996
|
-
const exceptionMarks = ["w:b", "w:caps"];
|
|
24996
|
+
const exceptionMarks = ["w:b", "w:caps", "w:strike", "w:dstrike"];
|
|
24997
24997
|
if ((attributes["w:val"] === "0" || attributes["w:val"] === "none") && !exceptionMarks.includes(m2.name)) {
|
|
24998
24998
|
return;
|
|
24999
24999
|
}
|
|
@@ -25116,7 +25116,8 @@ function getStrikeValue(attributes) {
|
|
|
25116
25116
|
if (raw === void 0 || raw === null) return "1";
|
|
25117
25117
|
const value = String(raw).trim().toLowerCase();
|
|
25118
25118
|
if (value === "1" || value === "true" || value === "on") return "1";
|
|
25119
|
-
return
|
|
25119
|
+
if (value === "0" || value === "false" || value === "off") return "0";
|
|
25120
|
+
return "1";
|
|
25120
25121
|
}
|
|
25121
25122
|
const parseParagraphBorders = (pBdr) => {
|
|
25122
25123
|
if (!pBdr || !pBdr.elements) return {};
|
|
@@ -35028,6 +35029,9 @@ function translateMark(mark) {
|
|
|
35028
35029
|
const translated = translator$1r.decode({ node: { attrs: { highlight: highlightValue } } });
|
|
35029
35030
|
return translated || {};
|
|
35030
35031
|
}
|
|
35032
|
+
case "strike":
|
|
35033
|
+
if (attrs?.value === "0") markElement.attributes["w:val"] = attrs.value;
|
|
35034
|
+
break;
|
|
35031
35035
|
case "link":
|
|
35032
35036
|
return {};
|
|
35033
35037
|
}
|
|
@@ -35589,7 +35593,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35589
35593
|
static getStoredSuperdocVersion(docx) {
|
|
35590
35594
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35591
35595
|
}
|
|
35592
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.
|
|
35596
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.7") {
|
|
35593
35597
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35594
35598
|
}
|
|
35595
35599
|
/**
|
|
@@ -36139,7 +36143,7 @@ __publicField$2(_SuperConverter, "markTypes", [
|
|
|
36139
36143
|
{ name: "w:i", type: "italic" },
|
|
36140
36144
|
// { name: 'w:iCs', type: 'italic' },
|
|
36141
36145
|
{ name: "w:u", type: "underline", mark: "underline", property: "underlineType" },
|
|
36142
|
-
{ name: "w:strike", type: "strike", mark: "strike" },
|
|
36146
|
+
{ name: "w:strike", type: "strike", mark: "strike", property: "value" },
|
|
36143
36147
|
{ name: "w:color", type: "color", mark: "textStyle", property: "color" },
|
|
36144
36148
|
{ name: "w:sz", type: "fontSize", mark: "textStyle", property: "fontSize" },
|
|
36145
36149
|
// { name: 'w:szCs', type: 'fontSize', mark: 'textStyle', property: 'fontSize' },
|
|
@@ -53778,7 +53782,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53778
53782
|
{ default: remarkStringify },
|
|
53779
53783
|
{ default: remarkGfm }
|
|
53780
53784
|
] = await Promise.all([
|
|
53781
|
-
import("./index-
|
|
53785
|
+
import("./index-BqhJhdcP-B9XbOefk.es.js"),
|
|
53782
53786
|
import("./index-DRCvimau-Cw339678.es.js"),
|
|
53783
53787
|
import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
|
|
53784
53788
|
import("./index-D_sWOSiG-DE96TaT5.es.js"),
|
|
@@ -53996,7 +54000,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53996
54000
|
* @returns {Object | void} Migration results
|
|
53997
54001
|
*/
|
|
53998
54002
|
processCollaborationMigrations() {
|
|
53999
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.
|
|
54003
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.7");
|
|
54000
54004
|
if (!this.options.ydoc) return;
|
|
54001
54005
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
54002
54006
|
let docVersion = metaMap.get("version");
|
|
@@ -70436,9 +70440,10 @@ const Strike = Mark2.create({
|
|
|
70436
70440
|
{ style: "text-decoration=auto", clearMark: (m2) => m2.type.name == "s" }
|
|
70437
70441
|
];
|
|
70438
70442
|
},
|
|
70439
|
-
renderDOM({ htmlAttributes }) {
|
|
70443
|
+
renderDOM({ mark, htmlAttributes }) {
|
|
70440
70444
|
const merged = Attribute2.mergeAttributes(this.options.htmlAttributes, htmlAttributes);
|
|
70441
|
-
const { value
|
|
70445
|
+
const { value } = mark.attrs;
|
|
70446
|
+
const { ...rest } = merged || {};
|
|
70442
70447
|
if (value === "0") {
|
|
70443
70448
|
return ["span", rest, 0];
|
|
70444
70449
|
}
|
|
@@ -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--SREdiqQ.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-DsKLhlKe.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 = {}) {
|
|
@@ -25000,7 +25000,7 @@ function parseMarks(property, unknownMarks = [], docx = null) {
|
|
|
25000
25000
|
seen.add(m2.type);
|
|
25001
25001
|
const { attributes = {} } = element;
|
|
25002
25002
|
const newMark = { type: m2.type };
|
|
25003
|
-
const exceptionMarks = ["w:b", "w:caps"];
|
|
25003
|
+
const exceptionMarks = ["w:b", "w:caps", "w:strike", "w:dstrike"];
|
|
25004
25004
|
if ((attributes["w:val"] === "0" || attributes["w:val"] === "none") && !exceptionMarks.includes(m2.name)) {
|
|
25005
25005
|
return;
|
|
25006
25006
|
}
|
|
@@ -25123,7 +25123,8 @@ function getStrikeValue(attributes) {
|
|
|
25123
25123
|
if (raw === void 0 || raw === null) return "1";
|
|
25124
25124
|
const value = String(raw).trim().toLowerCase();
|
|
25125
25125
|
if (value === "1" || value === "true" || value === "on") return "1";
|
|
25126
|
-
return
|
|
25126
|
+
if (value === "0" || value === "false" || value === "off") return "0";
|
|
25127
|
+
return "1";
|
|
25127
25128
|
}
|
|
25128
25129
|
const parseParagraphBorders = (pBdr) => {
|
|
25129
25130
|
if (!pBdr || !pBdr.elements) return {};
|
|
@@ -35035,6 +35036,9 @@ function translateMark(mark) {
|
|
|
35035
35036
|
const translated = translator$1r.decode({ node: { attrs: { highlight: highlightValue } } });
|
|
35036
35037
|
return translated || {};
|
|
35037
35038
|
}
|
|
35039
|
+
case "strike":
|
|
35040
|
+
if (attrs?.value === "0") markElement.attributes["w:val"] = attrs.value;
|
|
35041
|
+
break;
|
|
35038
35042
|
case "link":
|
|
35039
35043
|
return {};
|
|
35040
35044
|
}
|
|
@@ -35596,7 +35600,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
35596
35600
|
static getStoredSuperdocVersion(docx) {
|
|
35597
35601
|
return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35598
35602
|
}
|
|
35599
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.29.0-next.
|
|
35603
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.29.0-next.7") {
|
|
35600
35604
|
return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
35601
35605
|
}
|
|
35602
35606
|
/**
|
|
@@ -36149,7 +36153,7 @@ __publicField(_SuperConverter, "markTypes", [
|
|
|
36149
36153
|
{ name: "w:i", type: "italic" },
|
|
36150
36154
|
// { name: 'w:iCs', type: 'italic' },
|
|
36151
36155
|
{ name: "w:u", type: "underline", mark: "underline", property: "underlineType" },
|
|
36152
|
-
{ name: "w:strike", type: "strike", mark: "strike" },
|
|
36156
|
+
{ name: "w:strike", type: "strike", mark: "strike", property: "value" },
|
|
36153
36157
|
{ name: "w:color", type: "color", mark: "textStyle", property: "color" },
|
|
36154
36158
|
{ name: "w:sz", type: "fontSize", mark: "textStyle", property: "fontSize" },
|
|
36155
36159
|
// { name: 'w:szCs', type: 'fontSize', mark: 'textStyle', property: 'fontSize' },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, az as commonjsGlobal, B as Buffer, aA as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter
|
|
1
|
+
import { p as process$1, az as commonjsGlobal, B as Buffer, aA as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter--SREdiqQ.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, _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, _ListItemNodeView_instances, init_fn3, applyIndentStyling_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 ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter
|
|
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 ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter--SREdiqQ.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-BRGsc2Y2.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -15072,7 +15072,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15072
15072
|
{ default: remarkStringify },
|
|
15073
15073
|
{ default: remarkGfm }
|
|
15074
15074
|
] = await Promise.all([
|
|
15075
|
-
import("./index-
|
|
15075
|
+
import("./index-BqhJhdcP.js"),
|
|
15076
15076
|
import("./index-DRCvimau.js"),
|
|
15077
15077
|
import("./index-C_x_N6Uh.js"),
|
|
15078
15078
|
import("./index-D_sWOSiG.js"),
|
|
@@ -15290,7 +15290,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15290
15290
|
* @returns {Object | void} Migration results
|
|
15291
15291
|
*/
|
|
15292
15292
|
processCollaborationMigrations() {
|
|
15293
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.
|
|
15293
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.7");
|
|
15294
15294
|
if (!this.options.ydoc) return;
|
|
15295
15295
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
15296
15296
|
let docVersion = metaMap.get("version");
|
|
@@ -31851,9 +31851,10 @@ const Strike = Mark.create({
|
|
|
31851
31851
|
{ style: "text-decoration=auto", clearMark: (m) => m.type.name == "s" }
|
|
31852
31852
|
];
|
|
31853
31853
|
},
|
|
31854
|
-
renderDOM({ htmlAttributes }) {
|
|
31854
|
+
renderDOM({ mark, htmlAttributes }) {
|
|
31855
31855
|
const merged = Attribute.mergeAttributes(this.options.htmlAttributes, htmlAttributes);
|
|
31856
|
-
const { value
|
|
31856
|
+
const { value } = mark.attrs;
|
|
31857
|
+
const { ...rest } = merged || {};
|
|
31857
31858
|
if (value === "0") {
|
|
31858
31859
|
return ["span", rest, 0];
|
|
31859
31860
|
}
|
|
@@ -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--SREdiqQ.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-DsKLhlKe.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-DsKLhlKe.js";
|
|
2
|
+
import "./chunks/converter--SREdiqQ.js";
|
|
3
|
+
import "./chunks/docx-zipper-BRGsc2Y2.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAsEA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH
|
|
1
|
+
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAsEA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;;;;;;SAoBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAEtF,wDAOC;IAED,+DAMC;IAED,sDAgBC;IA2GD;;;;;;OAMG;IACH,0DAHW,MAAM,GACJ,MAAM,GAAC,IAAI,CAqBvB;IAED;;;;;;;;OAQG;IACH,wDALW,MAAM,SACN,MAAM,WAAS,qBACf,OAAO,GACL,MAAM,CA2DlB;IAED,mDAEC;IAED,mEAEC;IAED;;;;;OAKG;IACH,yCAFa,MAAM,GAAC,IAAI,CAyBvB;IA0nBD,8CAGC;IAED,8DAGC;IAh3BD,0BAoEC;IAlEC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAClB,2BAA6B;IAG7B,4BAAoC;IAGpC,SAAsB;IAItB,cAAmB;IAInB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IACvB,YAAiB;IACjB;;;;;MAAsE;IACtE,qBAAuB;IAGvB,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAG5C,kBAAwB;IACxB,qBAAwB;IACxB,0BAA6B;IAM/B;;;OAGG;IACH,uBAEC;IAED,qBAmBC;IAED,8BAIC;IAyID;;;OAGG;IACH,mBAFa,MAAM,GAAC,IAAI,CAIvB;IAED;;;OAGG;IACH,sBAFa,MAAM,GAAC,IAAI,CAOvB;IAED;;OAEG;IACH,4BAcC;IAED;;OAEG;IACH,yBAMC;IA8BD;;OAEG;IACH,sCAUC;IAED;;OAEG;IACH,qBAUC;IAED,+BAmDC;IAED,0BAsBC;IAED;;;MA4DC;IAED,8BAeC;IAED;;;;;;MAYC;IAED;;;;;;MAiBC;IAED,2EAqBC;IAED,gDAGC;IAED,iNA+EC;IAED;;;;;;;;;;;;;MAgCC;;CA4MF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAiHA;;;;GAIG;AACH,kDAHW,KAAK,KAAQ,MAAO,GAClB,KAAK,KAAQ,CAgDzB;AAED;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAwDxB;AAyFD;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB;AAoBD;;;;;GAKG;AACH,kDAHW,UAAU,GACR,YAAY,CAwLxB;AAiDD;;;;;;;GAOG;AAEH,0DAJW,KAAQ,gBACN,YAAY,CA0DxB;AAED;;;;;GAKG;AACH,6DAFa,YAAY,CAYxB;AAED;;;;;GAKG;AACH,yCAHW,KAAQ;;;EAQlB;AAED;;;;;GAKG;AACH,2CAHW,QAAQ,EAAE,SAgBpB;AAED,uDA2CC;AAED;;;;;;GAMG;AACH,+CAJW,YAAY,QACZ,MAAM,GACJ,MAAM,CAqBlB;
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAiHA;;;;GAIG;AACH,kDAHW,KAAK,KAAQ,MAAO,GAClB,KAAK,KAAQ,CAgDzB;AAED;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAwDxB;AAyFD;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB;AAoBD;;;;;GAKG;AACH,kDAHW,UAAU,GACR,YAAY,CAwLxB;AAiDD;;;;;;;GAOG;AAEH,0DAJW,KAAQ,gBACN,YAAY,CA0DxB;AAED;;;;;GAKG;AACH,6DAFa,YAAY,CAYxB;AAED;;;;;GAKG;AACH,yCAHW,KAAQ;;;EAQlB;AAED;;;;;GAKG;AACH,2CAHW,QAAQ,EAAE,SAgBpB;AAED,uDA2CC;AAED;;;;;;GAMG;AACH,+CAJW,YAAY,QACZ,MAAM,GACJ,MAAM,CAqBlB;AA6UD;;;;;;;;;EAgBC;AAtmCM,8EAiDN;AAEM,mDAON;AA8iCD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAoFF;;;;;;;;;;;;;oBA/kCa,KAAQ;;;;;;;;;;UAMR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
|
package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts
CHANGED
|
@@ -28,5 +28,5 @@ export function getFontFamilyValue(attributes: any, docx: any): any;
|
|
|
28
28
|
export function getIndentValue(attributes: any): string;
|
|
29
29
|
export function getLineHeightValue(attributes: any): string;
|
|
30
30
|
export function getHighLightValue(attributes: any): string;
|
|
31
|
-
export function getStrikeValue(attributes: any):
|
|
31
|
+
export function getStrikeValue(attributes: any): "1" | "0";
|
|
32
32
|
//# sourceMappingURL=markImporter.d.ts.map
|
package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/markImporter.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,6EAFa,UAAU,EAAE,CAsGxB;AAED;;;;;GAKG;AACH,4CAJW,OAAO,gBACP,UAAU,EAAE,GACV,UAAU,EAAE,CAiBxB;AAED;;;;GAIG;AACH,yCAHW,UAAU,EAAE,GACV,UAAU,EAAE,CAoBxB;AAED;;;;;GAKG;AACH,uCAJW,MAAM,+BAEJ,GAAC,CA6Bb;AAED,oEAsBC;AAED,wDAIC;AAED,4DAYC;AAED,2DAKC;AAED,
|
|
1
|
+
{"version":3,"file":"markImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/markImporter.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,6EAFa,UAAU,EAAE,CAsGxB;AAED;;;;;GAKG;AACH,4CAJW,OAAO,gBACP,UAAU,EAAE,GACV,UAAU,EAAE,CAiBxB;AAED;;;;GAIG;AACH,yCAHW,UAAU,EAAE,GACV,UAAU,EAAE,CAoBxB;AAED;;;;;GAKG;AACH,uCAJW,MAAM,+BAEJ,GAAC,CA6Bb;AAED,oEAsBC;AAED,wDAIC;AAED,4DAYC;AAED,2DAKC;AAED,2DAOC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strike.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/strike/strike.js"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"strike.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/strike/strike.js"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH;;;;;GAKG;AACH,0BAoFG;;;;;qBApG6B,gBAAgB"}
|
|
@@ -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 { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter
|
|
13
|
-
import { c1, a5, i, a2 } from "./chunks/converter
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, 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 { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter--SREdiqQ.js";
|
|
13
|
+
import { c1, a5, i, a2 } from "./chunks/converter--SREdiqQ.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, 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-DsKLhlKe.js";
|
|
15
|
+
import { v, C, w, T, q, x, t } from "./chunks/editor-DsKLhlKe.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, 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-Dqed7MP7.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-BRGsc2Y2.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-607cvQXw.cjs");
|
|
4
4
|
require("./chunks/vue-BQxRC6G7.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-DNPslOnx.es.js";
|
|
2
2
|
import "./chunks/vue-DVNiXx7E.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-607cvQXw.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-DZIAPuKc.cjs");
|
|
5
5
|
require("./chunks/vue-BQxRC6G7.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
7
7
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
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-DNPslOnx.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-DC11bH-A.es.js";
|
|
3
3
|
import "./chunks/vue-DVNiXx7E.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
export {
|