@harbour-enterprises/superdoc 0.28.0-next.9 → 0.28.0
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-DRCcOt2t.es.js → PdfViewer-COOBTu0Z.es.js} +1 -1
- package/dist/chunks/{PdfViewer-B13bR8VJ.cjs → PdfViewer-D-d9sxeo.cjs} +1 -1
- package/dist/chunks/{index-KRsMbx-o.es.js → index-CeV3gm4O.es.js} +3 -3
- package/dist/chunks/{index-DcpSDyC4.cjs → index-lzF76amP.cjs} +3 -3
- package/dist/chunks/{super-editor.es-DKQa7RQl.es.js → super-editor.es-CBBT9MkW.es.js} +11 -5
- package/dist/chunks/{super-editor.es-BnJV-Q-L.cjs → super-editor.es-CsOCPht5.cjs} +11 -5
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-kpd0gAZh.js → converter-3mtRTJOI.js} +5 -2
- package/dist/super-editor/chunks/{docx-zipper-1SfZh-7P.js → docx-zipper-DIkBRy6i.js} +1 -1
- package/dist/super-editor/chunks/{editor-DdEaVosL.js → editor-DakKNLen.js} +9 -17
- package/dist/super-editor/chunks/{toolbar-CTt4vWNb.js → toolbar-D4J4zzEp.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/extensions/structured-content/structured-content-block.d.ts +8 -6
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts +8 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +11 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +11 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTablesById.d.ts +8 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +11 -4
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +12 -5
- 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 +12 -6
- 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-ZWZLQtoU.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-CeV3gm4O.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-DKMj1I9B.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
4
|
+
const superdoc = require("./index-lzF76amP.cjs");
|
|
5
5
|
function self(vars) {
|
|
6
6
|
const {
|
|
7
7
|
opacityDisabled,
|
|
@@ -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-CBBT9MkW.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-ZWZLQtoU.es.js";
|
|
3
3
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
import { E as EventEmitter } from "./eventemitter3-BWEnUdTY.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-COOBTu0Z.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.27.
|
|
17923
|
+
this.version = "0.27.3";
|
|
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-CsOCPht5.cjs");
|
|
3
3
|
const vue = require("./vue-DKMj1I9B.cjs");
|
|
4
4
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
5
5
|
const eventemitter3 = require("./eventemitter3-DkXkH2rT.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-D-d9sxeo.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.27.
|
|
17940
|
+
this.version = "0.27.3";
|
|
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;
|
|
@@ -32300,6 +32300,9 @@ const encode$2 = (params2, encodedAttrs = {}) => {
|
|
|
32300
32300
|
const { node: node2 } = params2.extraParams;
|
|
32301
32301
|
const { elements, type: type2, attributes } = node2;
|
|
32302
32302
|
let text2;
|
|
32303
|
+
if (!elements) {
|
|
32304
|
+
return null;
|
|
32305
|
+
}
|
|
32303
32306
|
if (elements.length === 1) {
|
|
32304
32307
|
text2 = elements[0].text;
|
|
32305
32308
|
const xmlSpace = encodedAttrs.xmlSpace ?? elements[0]?.attributes?.["xml:space"];
|
|
@@ -32317,7 +32320,7 @@ const encode$2 = (params2, encodedAttrs = {}) => {
|
|
|
32317
32320
|
marks: []
|
|
32318
32321
|
};
|
|
32319
32322
|
};
|
|
32320
|
-
const decode$2 = (params2
|
|
32323
|
+
const decode$2 = (params2) => {
|
|
32321
32324
|
const { node: node2, extraParams } = params2;
|
|
32322
32325
|
if (!node2 || !node2.type) {
|
|
32323
32326
|
return null;
|
|
@@ -35494,7 +35497,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35494
35497
|
static getStoredSuperdocVersion(docx) {
|
|
35495
35498
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35496
35499
|
}
|
|
35497
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.27.
|
|
35500
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.27.3") {
|
|
35498
35501
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35499
35502
|
}
|
|
35500
35503
|
/**
|
|
@@ -68990,10 +68993,13 @@ const trackedTransaction = ({ tr, state: state2, user }) => {
|
|
|
68990
68993
|
}
|
|
68991
68994
|
});
|
|
68992
68995
|
if (tr.getMeta("inputType")) {
|
|
68993
|
-
newTr.setMeta(tr.getMeta("inputType"));
|
|
68996
|
+
newTr.setMeta("inputType", tr.getMeta("inputType"));
|
|
68994
68997
|
}
|
|
68995
68998
|
if (tr.getMeta("uiEvent")) {
|
|
68996
|
-
newTr.setMeta(tr.getMeta("uiEvent"));
|
|
68999
|
+
newTr.setMeta("uiEvent", tr.getMeta("uiEvent"));
|
|
69000
|
+
}
|
|
69001
|
+
if (tr.getMeta("addToHistory") !== void 0) {
|
|
69002
|
+
newTr.setMeta("addToHistory", tr.getMeta("addToHistory"));
|
|
68997
69003
|
}
|
|
68998
69004
|
if (tr.selectionSet) {
|
|
68999
69005
|
const deletionMarkSchema = state2.schema.marks[TrackDeleteMarkName];
|
|
@@ -71501,7 +71507,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
71501
71507
|
* @returns {Object | void} Migration results
|
|
71502
71508
|
*/
|
|
71503
71509
|
processCollaborationMigrations() {
|
|
71504
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.27.
|
|
71510
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.27.3");
|
|
71505
71511
|
if (!this.options.ydoc) return;
|
|
71506
71512
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
71507
71513
|
let docVersion = metaMap.get("version");
|
|
@@ -32317,6 +32317,9 @@ const encode$2 = (params2, encodedAttrs = {}) => {
|
|
|
32317
32317
|
const { node: node2 } = params2.extraParams;
|
|
32318
32318
|
const { elements, type: type2, attributes } = node2;
|
|
32319
32319
|
let text2;
|
|
32320
|
+
if (!elements) {
|
|
32321
|
+
return null;
|
|
32322
|
+
}
|
|
32320
32323
|
if (elements.length === 1) {
|
|
32321
32324
|
text2 = elements[0].text;
|
|
32322
32325
|
const xmlSpace = encodedAttrs.xmlSpace ?? elements[0]?.attributes?.["xml:space"];
|
|
@@ -32334,7 +32337,7 @@ const encode$2 = (params2, encodedAttrs = {}) => {
|
|
|
32334
32337
|
marks: []
|
|
32335
32338
|
};
|
|
32336
32339
|
};
|
|
32337
|
-
const decode$2 = (params2
|
|
32340
|
+
const decode$2 = (params2) => {
|
|
32338
32341
|
const { node: node2, extraParams } = params2;
|
|
32339
32342
|
if (!node2 || !node2.type) {
|
|
32340
32343
|
return null;
|
|
@@ -35511,7 +35514,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35511
35514
|
static getStoredSuperdocVersion(docx) {
|
|
35512
35515
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35513
35516
|
}
|
|
35514
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.27.
|
|
35517
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.27.3") {
|
|
35515
35518
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35516
35519
|
}
|
|
35517
35520
|
/**
|
|
@@ -69007,10 +69010,13 @@ const trackedTransaction = ({ tr, state: state2, user }) => {
|
|
|
69007
69010
|
}
|
|
69008
69011
|
});
|
|
69009
69012
|
if (tr.getMeta("inputType")) {
|
|
69010
|
-
newTr.setMeta(tr.getMeta("inputType"));
|
|
69013
|
+
newTr.setMeta("inputType", tr.getMeta("inputType"));
|
|
69011
69014
|
}
|
|
69012
69015
|
if (tr.getMeta("uiEvent")) {
|
|
69013
|
-
newTr.setMeta(tr.getMeta("uiEvent"));
|
|
69016
|
+
newTr.setMeta("uiEvent", tr.getMeta("uiEvent"));
|
|
69017
|
+
}
|
|
69018
|
+
if (tr.getMeta("addToHistory") !== void 0) {
|
|
69019
|
+
newTr.setMeta("addToHistory", tr.getMeta("addToHistory"));
|
|
69014
69020
|
}
|
|
69015
69021
|
if (tr.selectionSet) {
|
|
69016
69022
|
const deletionMarkSchema = state2.schema.marks[TrackDeleteMarkName];
|
|
@@ -71518,7 +71524,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
71518
71524
|
* @returns {Object | void} Migration results
|
|
71519
71525
|
*/
|
|
71520
71526
|
processCollaborationMigrations() {
|
|
71521
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.27.
|
|
71527
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.27.3");
|
|
71522
71528
|
if (!this.options.ydoc) return;
|
|
71523
71529
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
71524
71530
|
let docVersion = metaMap.get("version");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.js"],"names":[],"mappings":";;;;;;;UAEc,MAAM;;;;WACN,MAAM;;;;YACN,MAAM,GAAG,IAAI;;;;;;;;;cAKb,OAAO;;;;iBACP,MAAM;;;;eACN,MAAM;;;;sBACN,MAAM;;;;;;SAKN,MAAM;;;;UACN,MAAM;;;;WACN,IAAI,GAAG,IAAI,GAAG,IAAI;;;;WAClB,MAAM;;;;UACN,MAAM;;;;gBACN,OAAO;;;;WACP,OAAO,KAAK,EAAE,GAAG;;;;eACjB,OAAO,sBAAsB,EAAE,kBAAkB;;;;;;eAM5D;QAQqC,kBAAkB,GAR5C,CAAC,MAAM,EAAE;YAClB,UAAU,EAAE,MAAM,CAAC;YACnB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,UAAU,CAAC,EAAE,OAAO,CAAC;YACrB,OAAO,CAAC,EAAE,MAAS,IAAI,CAAC;YACxB,aAAa,CAAC,EAAE,MAAS,IAAI,CAAC;YAC9B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;YAC1B,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;SAC5B,KAAK,OAAO,GAAG,SAAS;KACzB;;;;SACA;QAAuB,MAAM,GAAlB,MAAM;QACM,QAAQ,GAApB,MAAM;KACjB;;;;;;;;;;;;gBAG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ACN,MAAM;;;;cACN,OAAO"}
|
|
@@ -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-3mtRTJOI.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-DakKNLen.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 = {}) {
|
|
@@ -32307,6 +32307,9 @@ const encode$2 = (params, encodedAttrs = {}) => {
|
|
|
32307
32307
|
const { node } = params.extraParams;
|
|
32308
32308
|
const { elements, type: type2, attributes } = node;
|
|
32309
32309
|
let text;
|
|
32310
|
+
if (!elements) {
|
|
32311
|
+
return null;
|
|
32312
|
+
}
|
|
32310
32313
|
if (elements.length === 1) {
|
|
32311
32314
|
text = elements[0].text;
|
|
32312
32315
|
const xmlSpace = encodedAttrs.xmlSpace ?? elements[0]?.attributes?.["xml:space"];
|
|
@@ -32324,7 +32327,7 @@ const encode$2 = (params, encodedAttrs = {}) => {
|
|
|
32324
32327
|
marks: []
|
|
32325
32328
|
};
|
|
32326
32329
|
};
|
|
32327
|
-
const decode$2 = (params
|
|
32330
|
+
const decode$2 = (params) => {
|
|
32328
32331
|
const { node, extraParams } = params;
|
|
32329
32332
|
if (!node || !node.type) {
|
|
32330
32333
|
return null;
|
|
@@ -35501,7 +35504,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
35501
35504
|
static getStoredSuperdocVersion(docx) {
|
|
35502
35505
|
return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35503
35506
|
}
|
|
35504
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.27.
|
|
35507
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.27.3") {
|
|
35505
35508
|
return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
35506
35509
|
}
|
|
35507
35510
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, aA as commonjsGlobal, B as Buffer, K as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter-
|
|
1
|
+
import { p as process$1, aA as commonjsGlobal, B as Buffer, K as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter-3mtRTJOI.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
|
}
|
|
@@ -9,12 +9,12 @@ 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 __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
|
-
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, _a, 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,
|
|
12
|
+
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, _a, 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$2, 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 getDefaultExportFromCjs, O as getSchemaTypeByName, Q as inputRulesPlugin, U as TrackDeleteMarkName, V as TrackInsertMarkName, W as v4, X as TrackFormatMarkName, Y as comments_module_events, Z as findMark, _ as objectIncludes, $ as AddMarkStep, a0 as RemoveMarkStep, a1 as twipsToLines, a2 as pixelsToTwips, a3 as helpers, a4 as posToDOMRect, a5 as CommandService, a6 as SuperConverter, a7 as createDocument, a8 as createDocFromMarkdown, a9 as createDocFromHTML, aa as EditorState, ab as hasSomeParentWithClass, ac as isActive, ad as unflattenListsInHtml, ae as parseSizeUnit, af as minMax, ag as getLineHeightValueString, ah as updateDOMAttributes, ai as findChildren$5, aj as htmlHandler, ak as generateRandomSigned32BitIntStrId, al as InputRule, am as kebabCase, an as findParentNodeClosestToPos, ao as getListItemStyleDefinitions, ap as docxNumberingHelpers, aq as parseIndentElement, ar as combineIndents, as as twipsToPixels, at as PIXELS_PER_INCH, au as SelectionRange, av as Transform, aw as isInTable$1, ax as generateDocxRandomId, ay as insertNewRelationship, az 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$2, 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 getDefaultExportFromCjs, O as getSchemaTypeByName, Q as inputRulesPlugin, U as TrackDeleteMarkName, V as TrackInsertMarkName, W as v4, X as TrackFormatMarkName, Y as comments_module_events, Z as findMark, _ as objectIncludes, $ as AddMarkStep, a0 as RemoveMarkStep, a1 as twipsToLines, a2 as pixelsToTwips, a3 as helpers, a4 as posToDOMRect, a5 as CommandService, a6 as SuperConverter, a7 as createDocument, a8 as createDocFromMarkdown, a9 as createDocFromHTML, aa as EditorState, ab as hasSomeParentWithClass, ac as isActive, ad as unflattenListsInHtml, ae as parseSizeUnit, af as minMax, ag as getLineHeightValueString, ah as updateDOMAttributes, ai as findChildren$5, aj as htmlHandler, ak as generateRandomSigned32BitIntStrId, al as InputRule, am as kebabCase, an as findParentNodeClosestToPos, ao as getListItemStyleDefinitions, ap as docxNumberingHelpers, aq as parseIndentElement, ar as combineIndents, as as twipsToPixels, at as PIXELS_PER_INCH, au as SelectionRange, av as Transform, aw as isInTable$1, ax as generateDocxRandomId, ay as insertNewRelationship, az as inchesToPixels } from "./converter-3mtRTJOI.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-DIkBRy6i.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -30316,10 +30316,13 @@ const trackedTransaction = ({ tr, state, user }) => {
|
|
|
30316
30316
|
}
|
|
30317
30317
|
});
|
|
30318
30318
|
if (tr.getMeta("inputType")) {
|
|
30319
|
-
newTr.setMeta(tr.getMeta("inputType"));
|
|
30319
|
+
newTr.setMeta("inputType", tr.getMeta("inputType"));
|
|
30320
30320
|
}
|
|
30321
30321
|
if (tr.getMeta("uiEvent")) {
|
|
30322
|
-
newTr.setMeta(tr.getMeta("uiEvent"));
|
|
30322
|
+
newTr.setMeta("uiEvent", tr.getMeta("uiEvent"));
|
|
30323
|
+
}
|
|
30324
|
+
if (tr.getMeta("addToHistory") !== void 0) {
|
|
30325
|
+
newTr.setMeta("addToHistory", tr.getMeta("addToHistory"));
|
|
30323
30326
|
}
|
|
30324
30327
|
if (tr.selectionSet) {
|
|
30325
30328
|
const deletionMarkSchema = state.schema.marks[TrackDeleteMarkName];
|
|
@@ -32874,7 +32877,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
32874
32877
|
* @returns {Object | void} Migration results
|
|
32875
32878
|
*/
|
|
32876
32879
|
processCollaborationMigrations() {
|
|
32877
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.27.
|
|
32880
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.27.3");
|
|
32878
32881
|
if (!this.options.ydoc) return;
|
|
32879
32882
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
32880
32883
|
let docVersion = metaMap.get("version");
|
|
@@ -33217,17 +33220,6 @@ insertNewFileData_fn = function() {
|
|
|
33217
33220
|
__privateMethod(this, _Editor_instances, initComments_fn).call(this);
|
|
33218
33221
|
}, 50);
|
|
33219
33222
|
};
|
|
33220
|
-
/**
|
|
33221
|
-
* Register a plugin by name if it doesn't already exist
|
|
33222
|
-
* @param {string} name - Plugin name
|
|
33223
|
-
* @returns {string|void}
|
|
33224
|
-
*/
|
|
33225
|
-
registerPluginByNameIfNotExists_fn = function(name) {
|
|
33226
|
-
const plugin = this.extensionService?.plugins.find((p2) => p2.key.startsWith(name));
|
|
33227
|
-
const hasPlugin = this.state?.plugins?.find((p2) => p2.key.startsWith(name));
|
|
33228
|
-
if (plugin && !hasPlugin) this.registerPlugin(plugin);
|
|
33229
|
-
return plugin?.key;
|
|
33230
|
-
};
|
|
33231
33223
|
/**
|
|
33232
33224
|
* Creates extension service.
|
|
33233
33225
|
* @returns {void}
|
|
@@ -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-3mtRTJOI.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-DakKNLen.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-DakKNLen.js";
|
|
2
|
+
import "./chunks/converter-3mtRTJOI.js";
|
|
3
|
+
import "./chunks/docx-zipper-DIkBRy6i.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -11,12 +11,14 @@ export const structuredContentInnerClass: "sd-structured-content-block__content"
|
|
|
11
11
|
* Attributes for structured content block nodes
|
|
12
12
|
* @typedef {Object} StructuredContentBlockAttributes
|
|
13
13
|
* @category Attributes
|
|
14
|
-
* @property {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* @
|
|
18
|
-
* @
|
|
19
|
-
*
|
|
14
|
+
* @property {string} [id] Unique identifier for the structured content block
|
|
15
|
+
* @property {string} [tag] Content control tag (e.g., 'block_table_sdt')
|
|
16
|
+
* @property {string} [alias] Display name for the block (falls back to 'Structured content' when omitted)
|
|
17
|
+
* @property {Object} [sdtPr] @internal Internal structured document tag properties
|
|
18
|
+
* @example
|
|
19
|
+
* // Get attributes from a structured content block
|
|
20
|
+
* const attrs = editor.getAttributes('structuredContentBlock')
|
|
21
|
+
* console.log(attrs.id, attrs.alias)
|
|
20
22
|
*/
|
|
21
23
|
export const StructuredContentBlock: Node;
|
|
22
24
|
/**
|
package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts
CHANGED
|
@@ -11,7 +11,14 @@ export const structuredContentInnerClass: "sd-structured-content__content";
|
|
|
11
11
|
* Attributes for structured content nodes
|
|
12
12
|
* @typedef {Object} StructuredContentAttributes
|
|
13
13
|
* @category Attributes
|
|
14
|
-
* @property {
|
|
14
|
+
* @property {string} [id] Unique identifier for the structured content field
|
|
15
|
+
* @property {string} [tag] Content control tag (e.g., 'inline_text_sdt')
|
|
16
|
+
* @property {string} [alias] Display name for the field (falls back to 'Structured content' when omitted)
|
|
17
|
+
* @property {Object} [sdtPr] @internal Internal structured document tag properties
|
|
18
|
+
* @example
|
|
19
|
+
* // Get attributes from a structured content field
|
|
20
|
+
* const attrs = editor.getAttributes('structuredContent')
|
|
21
|
+
* console.log(attrs.id, attrs.alias)
|
|
15
22
|
*/
|
|
16
23
|
/**
|
|
17
24
|
* @module StructuredContent
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @
|
|
4
|
-
* @
|
|
2
|
+
* Get all block-level structured content tags in the document
|
|
3
|
+
* @category Helper
|
|
4
|
+
* @param {import('prosemirror-state').EditorState} state Editor state
|
|
5
|
+
* @returns {Array<{ node: import('prosemirror-model').Node, pos: number }>} All structured content block nodes
|
|
6
|
+
* @example
|
|
7
|
+
* const blocks = editor.helpers.getStructuredContentBlockTags(editor.state)
|
|
8
|
+
* console.log(`Found ${blocks.length} structured content blocks`)
|
|
5
9
|
*/
|
|
6
|
-
export function getStructuredContentBlockTags(state: import("prosemirror-state").EditorState):
|
|
10
|
+
export function getStructuredContentBlockTags(state: import("prosemirror-state").EditorState): Array<{
|
|
11
|
+
node: import("prosemirror-model").Node;
|
|
12
|
+
pos: number;
|
|
13
|
+
}>;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @
|
|
4
|
-
* @
|
|
2
|
+
* Get all inline structured content tags in the document
|
|
3
|
+
* @category Helper
|
|
4
|
+
* @param {import('prosemirror-state').EditorState} state Editor state
|
|
5
|
+
* @returns {Array<{ node: import('prosemirror-model').Node, pos: number }>} All inline structured content nodes
|
|
6
|
+
* @example
|
|
7
|
+
* const inlines = editor.helpers.getStructuredContentInlineTags(editor.state)
|
|
8
|
+
* console.log(`Found ${inlines.length} inline fields`)
|
|
5
9
|
*/
|
|
6
|
-
export function getStructuredContentInlineTags(state: import("prosemirror-state").EditorState):
|
|
10
|
+
export function getStructuredContentInlineTags(state: import("prosemirror-state").EditorState): Array<{
|
|
11
|
+
node: import("prosemirror-model").Node;
|
|
12
|
+
pos: number;
|
|
13
|
+
}>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Find all tables inside a structured content block
|
|
3
|
-
* @
|
|
4
|
-
* @param {
|
|
5
|
-
* @
|
|
2
|
+
* Find all tables inside a structured content block by ID
|
|
3
|
+
* @category Helper
|
|
4
|
+
* @param {string} id Structured content block ID
|
|
5
|
+
* @param {import('prosemirror-state').EditorState} state Editor state
|
|
6
|
+
* @returns {Array<{ node: import('prosemirror-model').Node, pos: number }>} Tables with absolute positions
|
|
7
|
+
* @example
|
|
8
|
+
* const tables = editor.helpers.getStructuredContentTablesById('block-123', editor.state)
|
|
9
|
+
* console.log(`Block contains ${tables.length} table(s)`)
|
|
6
10
|
*/
|
|
7
11
|
export function getStructuredContentTablesById(id: string, state: import("prosemirror-state").EditorState): Array<{
|
|
8
12
|
node: import("prosemirror-model").Node;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @
|
|
4
|
-
* @
|
|
2
|
+
* Get all structured content tags (inline and block) in the document
|
|
3
|
+
* @category Helper
|
|
4
|
+
* @param {import('prosemirror-state').EditorState} state Editor state
|
|
5
|
+
* @returns {Array<{ node: import('prosemirror-model').Node, pos: number }>} All structured content nodes with positions
|
|
6
|
+
* @example
|
|
7
|
+
* const allTags = editor.helpers.getStructuredContentTags(editor.state)
|
|
8
|
+
* console.log(`Found ${allTags.length} structured content elements`)
|
|
5
9
|
*/
|
|
6
|
-
export function getStructuredContentTags(state: import("prosemirror-state").EditorState):
|
|
10
|
+
export function getStructuredContentTags(state: import("prosemirror-state").EditorState): Array<{
|
|
11
|
+
node: import("prosemirror-model").Node;
|
|
12
|
+
pos: number;
|
|
13
|
+
}>;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @
|
|
4
|
-
* @param {
|
|
5
|
-
* @
|
|
2
|
+
* Get structured content tag(s) by ID
|
|
3
|
+
* @category Helper
|
|
4
|
+
* @param {string | string[]} idOrIds Single ID or array of IDs to find
|
|
5
|
+
* @param {import('prosemirror-state').EditorState} state Editor state
|
|
6
|
+
* @returns {Array<{ node: import('prosemirror-model').Node, pos: number }>} Matching structured content nodes
|
|
7
|
+
* @example
|
|
8
|
+
* const field = editor.helpers.getStructuredContentTagsById('field-123', editor.state)
|
|
9
|
+
* if (field.length) console.log('Found field:', field[0].node.attrs)
|
|
6
10
|
*/
|
|
7
|
-
export function getStructuredContentTagsById(idOrIds: string | string[], state: import("prosemirror-state").EditorState):
|
|
11
|
+
export function getStructuredContentTagsById(idOrIds: string | string[], state: import("prosemirror-state").EditorState): Array<{
|
|
12
|
+
node: import("prosemirror-model").Node;
|
|
13
|
+
pos: number;
|
|
14
|
+
}>;
|
|
@@ -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 { K as getDefaultExportFromCjs, W as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, aw 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, a6, i, a3 } 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 { K as getDefaultExportFromCjs, W as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, aw 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-3mtRTJOI.js";
|
|
13
|
+
import { c1, a6, i, a3 } from "./chunks/converter-3mtRTJOI.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-DakKNLen.js";
|
|
15
|
+
import { v, C, w, T, q, x, t } from "./chunks/editor-DakKNLen.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-D4J4zzEp.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-DIkBRy6i.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-CsOCPht5.cjs");
|
|
4
4
|
require("./chunks/vue-DKMj1I9B.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-CBBT9MkW.es.js";
|
|
2
2
|
import "./chunks/vue-ZWZLQtoU.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-CsOCPht5.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-lzF76amP.cjs");
|
|
5
5
|
require("./chunks/vue-DKMj1I9B.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-CBBT9MkW.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-CeV3gm4O.es.js";
|
|
3
3
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
export {
|