@harbour-enterprises/superdoc 0.15.3-next.4 → 0.15.3-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{super-editor.es-bv3S9L-4.es.js → super-editor.es-BP3SXura.es.js} +99 -38
- package/dist/chunks/{super-editor.es-Qa8EXNdK.cjs → super-editor.es-DDMJy7qM.cjs} +99 -38
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Bzvjvd9K.js → converter-Dv28F4Os.js} +40 -27
- package/dist/super-editor/chunks/{docx-zipper-CwDRuXVt.js → docx-zipper-DulJ_j0U.js} +1 -1
- package/dist/super-editor/chunks/{editor-D4Lw4qWd.js → editor-BgxpYGE3.js} +61 -13
- package/dist/super-editor/chunks/{toolbar-CsE2H8Ac.js → toolbar-BJShk4vA.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts +5 -0
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/markImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/runNodeImporter.d.ts.map +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/extensions/bold/bold.d.ts.map +1 -1
- package/dist/super-editor/extensions/index.d.ts +2 -1
- package/dist/super-editor/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts.map +1 -1
- package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
- package/dist/super-editor/extensions/text-transform/index.d.ts +2 -0
- package/dist/super-editor/extensions/text-transform/index.d.ts.map +1 -0
- package/dist/super-editor/extensions/text-transform/text-transform.d.ts +2 -0
- package/dist/super-editor/extensions/text-transform/text-transform.d.ts.map +1 -0
- package/dist/super-editor/file-zipper.es.js +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 +3 -3
- package/dist/superdoc.umd.js +100 -39
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -19596,7 +19596,7 @@ function parseMarks(property, unknownMarks = [], docx = null) {
|
|
|
19596
19596
|
const marks = [];
|
|
19597
19597
|
const seen = /* @__PURE__ */ new Set();
|
|
19598
19598
|
const lang = property?.elements?.find((el) => el.name === "w:lang");
|
|
19599
|
-
|
|
19599
|
+
lang?.attributes || {};
|
|
19600
19600
|
property?.elements?.forEach((element) => {
|
|
19601
19601
|
const marksForType = SuperConverter.markTypes.filter((mark) => mark.name === element.name);
|
|
19602
19602
|
if (!marksForType.length) {
|
|
@@ -19623,13 +19623,21 @@ function parseMarks(property, unknownMarks = [], docx = null) {
|
|
|
19623
19623
|
seen.add(m.type);
|
|
19624
19624
|
const { attributes = {} } = element;
|
|
19625
19625
|
const newMark = { type: m.type };
|
|
19626
|
-
|
|
19626
|
+
const exceptionMarks = ["w:b", "w:caps"];
|
|
19627
|
+
if ((attributes["w:val"] === "0" || attributes["w:val"] === "none") && !exceptionMarks.includes(m.name)) {
|
|
19627
19628
|
return;
|
|
19628
19629
|
}
|
|
19629
|
-
if (
|
|
19630
|
+
if (m.mark) newMark.type = m.mark;
|
|
19631
|
+
if (m.name === "w:caps") {
|
|
19632
|
+
newMark.attrs = {};
|
|
19633
|
+
if (attributes["w:val"] === "0") {
|
|
19634
|
+
newMark.attrs[m.property] = "none";
|
|
19635
|
+
} else {
|
|
19636
|
+
newMark.attrs[m.property] = "uppercase";
|
|
19637
|
+
}
|
|
19638
|
+
marks.push(newMark);
|
|
19630
19639
|
return;
|
|
19631
19640
|
}
|
|
19632
|
-
if (m.mark) newMark.type = m.mark;
|
|
19633
19641
|
if (Object.keys(attributes).length) {
|
|
19634
19642
|
const value = getMarkValue(m.type, attributes, docx);
|
|
19635
19643
|
if (value === null || value === void 0) return;
|
|
@@ -19912,12 +19920,6 @@ const handleParagraphNode = (params) => {
|
|
|
19912
19920
|
};
|
|
19913
19921
|
}
|
|
19914
19922
|
}
|
|
19915
|
-
if (docx) {
|
|
19916
|
-
const { textCase } = getDefaultParagraphStyle(docx, styleId);
|
|
19917
|
-
if (textCase) {
|
|
19918
|
-
schemaNode.attrs.textCase = textCase;
|
|
19919
|
-
}
|
|
19920
|
-
}
|
|
19921
19923
|
if (framePr && framePr.attributes["w:dropCap"]) {
|
|
19922
19924
|
schemaNode.attrs.dropcap = {
|
|
19923
19925
|
type: framePr.attributes["w:dropCap"],
|
|
@@ -20026,19 +20028,11 @@ const getDefaultParagraphStyle = (docx, styleId = "") => {
|
|
|
20026
20028
|
let pPrStyleIdSpacingTag = {};
|
|
20027
20029
|
let pPrStyleIdIndentTag = {};
|
|
20028
20030
|
let pPrStyleJc = {};
|
|
20029
|
-
let textCase = null;
|
|
20030
20031
|
if (styleId) {
|
|
20031
20032
|
const stylesById = styles.elements[0].elements?.find(
|
|
20032
20033
|
(el) => el.name === "w:style" && el.attributes["w:styleId"] === styleId
|
|
20033
20034
|
);
|
|
20034
20035
|
const pPrById = stylesById?.elements?.find((el) => el.name === "w:pPr");
|
|
20035
|
-
const basedOn = stylesById?.elements.find((el) => el.name === "w:basedOn");
|
|
20036
|
-
const baseStyles = styles.elements[0].elements?.find(
|
|
20037
|
-
(el) => el.name === "w:style" && el.attributes["w:styleId"] === basedOn?.attributes["w:val"]
|
|
20038
|
-
);
|
|
20039
|
-
const rprBaseStyles = baseStyles?.elements?.find((el) => el.name === "w:rPr");
|
|
20040
|
-
const caps = rprBaseStyles?.elements?.find((el) => el.name === "w:caps");
|
|
20041
|
-
if (caps) textCase = "uppercase";
|
|
20042
20036
|
pPrStyleIdSpacingTag = pPrById?.elements?.find((el) => el.name === "w:spacing") || {};
|
|
20043
20037
|
pPrStyleIdIndentTag = pPrById?.elements?.find((el) => el.name === "w:ind") || {};
|
|
20044
20038
|
pPrStyleJc = pPrById?.elements?.find((el) => el.name === "w:jc") || {};
|
|
@@ -20055,8 +20049,7 @@ const getDefaultParagraphStyle = (docx, styleId = "") => {
|
|
|
20055
20049
|
return {
|
|
20056
20050
|
spacing: pPrByIdSpacingAttr || spacingRest,
|
|
20057
20051
|
indent: pPrByIdIndentAttr || indentRest,
|
|
20058
|
-
justify: pPrByIdJcAttr
|
|
20059
|
-
textCase
|
|
20052
|
+
justify: pPrByIdJcAttr
|
|
20060
20053
|
};
|
|
20061
20054
|
};
|
|
20062
20055
|
const paragraphNodeHandlerEntity = {
|
|
@@ -26123,6 +26116,13 @@ function translateMark(mark) {
|
|
|
26123
26116
|
let value;
|
|
26124
26117
|
switch (mark.type) {
|
|
26125
26118
|
case "bold":
|
|
26119
|
+
if (attrs?.value) {
|
|
26120
|
+
markElement.attributes["w:val"] = attrs.value;
|
|
26121
|
+
} else {
|
|
26122
|
+
delete markElement.attributes;
|
|
26123
|
+
}
|
|
26124
|
+
markElement.type = "element";
|
|
26125
|
+
break;
|
|
26126
26126
|
case "italic":
|
|
26127
26127
|
delete markElement.attributes;
|
|
26128
26128
|
markElement.type = "element";
|
|
@@ -26156,6 +26156,14 @@ function translateMark(mark) {
|
|
|
26156
26156
|
case "textIndent":
|
|
26157
26157
|
markElement.attributes["w:firstline"] = inchesToTwips(attrs.textIndent);
|
|
26158
26158
|
break;
|
|
26159
|
+
case "textTransform":
|
|
26160
|
+
if (attrs?.textTransform === "none") {
|
|
26161
|
+
markElement.attributes["w:val"] = "0";
|
|
26162
|
+
} else {
|
|
26163
|
+
delete markElement.attributes;
|
|
26164
|
+
}
|
|
26165
|
+
markElement.type = "element";
|
|
26166
|
+
break;
|
|
26159
26167
|
case "lineHeight":
|
|
26160
26168
|
markElement.attributes["w:line"] = linesToTwips(attrs.lineHeight);
|
|
26161
26169
|
break;
|
|
@@ -27578,7 +27586,11 @@ const handleRunNode = (params) => {
|
|
|
27578
27586
|
const textStyleMark = marks.find((m) => m.type === "textStyle");
|
|
27579
27587
|
const hasFontStyle = textStyleMark && Object.keys(textStyleMark.attrs).length > 0;
|
|
27580
27588
|
if (defaultNodeStyles.marks && !hasFontStyle) {
|
|
27581
|
-
marks.
|
|
27589
|
+
const hasBoldDisabled = marks.find((m) => m.type === "bold")?.attrs?.value === "0";
|
|
27590
|
+
for (let mark of defaultNodeStyles.marks) {
|
|
27591
|
+
if (["bold"].includes(mark.type) && hasBoldDisabled) continue;
|
|
27592
|
+
marks.push(mark);
|
|
27593
|
+
}
|
|
27582
27594
|
}
|
|
27583
27595
|
if (node2.marks) marks.push(...node2.marks);
|
|
27584
27596
|
const newMarks = createImportMarks(marks);
|
|
@@ -28747,7 +28759,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
28747
28759
|
return;
|
|
28748
28760
|
}
|
|
28749
28761
|
}
|
|
28750
|
-
static updateDocumentVersion(docx = this.convertedXml, version = "0.15.3-next.
|
|
28762
|
+
static updateDocumentVersion(docx = this.convertedXml, version = "0.15.3-next.6") {
|
|
28751
28763
|
const customLocation = "docProps/custom.xml";
|
|
28752
28764
|
if (!docx[customLocation]) {
|
|
28753
28765
|
docx[customLocation] = generateCustomXml();
|
|
@@ -29179,10 +29191,10 @@ __publicField(_SuperConverter, "allowedElements", Object.freeze({
|
|
|
29179
29191
|
"w:commentReference": "commentReference"
|
|
29180
29192
|
}));
|
|
29181
29193
|
__publicField(_SuperConverter, "markTypes", [
|
|
29182
|
-
{ name: "w:b", type: "bold" },
|
|
29183
|
-
{ name:
|
|
29194
|
+
{ name: "w:b", type: "bold", property: "value" },
|
|
29195
|
+
// { name: 'w:bCs', type: 'bold' },
|
|
29184
29196
|
{ name: "w:i", type: "italic" },
|
|
29185
|
-
{ name:
|
|
29197
|
+
// { name: 'w:iCs', type: 'italic' },
|
|
29186
29198
|
{ name: "w:u", type: "underline", mark: "underline", property: "underlineType" },
|
|
29187
29199
|
{ name: "w:strike", type: "strike", mark: "strike" },
|
|
29188
29200
|
{ name: "w:color", type: "color", mark: "textStyle", property: "color" },
|
|
@@ -29194,7 +29206,8 @@ __publicField(_SuperConverter, "markTypes", [
|
|
|
29194
29206
|
{ name: "w:spacing", type: "lineHeight", mark: "textStyle", property: "lineHeight" },
|
|
29195
29207
|
{ name: "link", type: "link", mark: "link", property: "href" },
|
|
29196
29208
|
{ name: "w:highlight", type: "highlight", mark: "highlight", property: "color" },
|
|
29197
|
-
{ name: "w:shd", type: "highlight", mark: "highlight", property: "color" }
|
|
29209
|
+
{ name: "w:shd", type: "highlight", mark: "highlight", property: "color" },
|
|
29210
|
+
{ name: "w:caps", type: "textTransform", mark: "textStyle", property: "textTransform" }
|
|
29198
29211
|
]);
|
|
29199
29212
|
__publicField(_SuperConverter, "propertyTypes", Object.freeze({
|
|
29200
29213
|
"w:pPr": "paragraphProperties",
|
|
@@ -29228,7 +29241,7 @@ function storeSuperdocVersion(docx) {
|
|
|
29228
29241
|
function generateCustomXml() {
|
|
29229
29242
|
return DEFAULT_CUSTOM_XML;
|
|
29230
29243
|
}
|
|
29231
|
-
function generateSuperdocVersion(pid = 2, version = "0.15.3-next.
|
|
29244
|
+
function generateSuperdocVersion(pid = 2, version = "0.15.3-next.6") {
|
|
29232
29245
|
return {
|
|
29233
29246
|
type: "element",
|
|
29234
29247
|
name: "property",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as process$1, at as commonjsGlobal, I as Buffer, au as getDefaultExportFromCjs, av as getContentTypesFromXml, aw as xmljs } from "./converter-
|
|
1
|
+
import { H as process$1, at as commonjsGlobal, I as Buffer, au as getDefaultExportFromCjs, av as getContentTypesFromXml, aw as xmljs } from "./converter-Dv28F4Os.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, _commandService, _css, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createDocFromHTML_fn, createView_fn, onCollaborationReady_fn, initComments_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, _ListItemNodeView_instances, init_fn2, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn, _DocumentSectionView_instances, init_fn3, addToolTip_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, i as canSplit, l as liftTarget, A as AllSelection, j as canJoin, k as joinPoint, N as NodeSelection, m as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, n as Slice, o as defaultBlockAt$1, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, y as findParentNode, L as ListHelpers, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as findParentNodeClosestToPos, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as EditorState, a8 as hasSomeParentWithClass, a9 as isActive, aa as unflattenListsInHtml, ab as parseSizeUnit, ac as minMax, ad as getLineHeightValueString, ae as InputRule, af as kebabCase, ag as generateOrderedListIndex, ah as getListItemStyleDefinitions, ai as docxNumberigHelpers, aj as parseIndentElement, ak as combineIndents, al as getColStyleDeclaration, am as SelectionRange, an as Transform, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId, ar as SectionHelpers, as as htmlHandler } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, c as callOrGet, g as getExtensionConfigField, b as getMarkType, d as getMarksFromSelection, e as getNodeType, f as getSchemaTypeNameByName, S as Schema$1, h as cleanSchemaItem, T as TextSelection, i as canSplit, l as liftTarget, A as AllSelection, j as canJoin, k as joinPoint, N as NodeSelection, m as Selection, r as replaceStep$1, F as Fragment, R as ReplaceAroundStep$1, n as Slice, o as defaultBlockAt$1, p as isTextSelection, q as getMarkRange, s as isMarkActive, t as isNodeActive, u as deleteProps, D as DOMParser$1, v as ReplaceStep, w as NodeRange, x as findWrapping, y as findParentNode, L as ListHelpers, z as isMacOS, B as isIOS, C as DOMSerializer, E as Mark$1, G as dropPoint, H as process$1, I as Buffer2, J as getSchemaTypeByName, K as inputRulesPlugin, O as TrackDeleteMarkName, Q as TrackInsertMarkName, U as v4, V as TrackFormatMarkName, W as comments_module_events, X as findMark, Y as objectIncludes, Z as AddMarkStep, _ as RemoveMarkStep, $ as twipsToLines, a0 as pixelsToTwips, a1 as findParentNodeClosestToPos, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as EditorState, a8 as hasSomeParentWithClass, a9 as isActive, aa as unflattenListsInHtml, ab as parseSizeUnit, ac as minMax, ad as getLineHeightValueString, ae as InputRule, af as kebabCase, ag as generateOrderedListIndex, ah as getListItemStyleDefinitions, ai as docxNumberigHelpers, aj as parseIndentElement, ak as combineIndents, al as getColStyleDeclaration, am as SelectionRange, an as Transform, ao as isInTable$1, ap as createColGroup, aq as generateDocxRandomId, ar as SectionHelpers, as as htmlHandler } from "./converter-Dv28F4Os.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-DulJ_j0U.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -13685,7 +13685,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
13685
13685
|
* @returns {Object | void} Migration results
|
|
13686
13686
|
*/
|
|
13687
13687
|
processCollaborationMigrations() {
|
|
13688
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.15.3-next.
|
|
13688
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.15.3-next.6");
|
|
13689
13689
|
if (!this.options.ydoc) return;
|
|
13690
13690
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
13691
13691
|
let docVersion = metaMap.get("version");
|
|
@@ -15910,6 +15910,9 @@ const generateLinkedStyleString = (linkedStyle, basedOnStyle, node, parent, incl
|
|
|
15910
15910
|
if (!linkedDefinitionStyles["font-size"] && basedOnDefinitionStyles["font-size"]) {
|
|
15911
15911
|
resultStyles["font-size"] = basedOnDefinitionStyles["font-size"];
|
|
15912
15912
|
}
|
|
15913
|
+
if (!linkedDefinitionStyles["text-transform"] && basedOnDefinitionStyles["text-transform"]) {
|
|
15914
|
+
resultStyles["text-transform"] = basedOnDefinitionStyles["text-transform"];
|
|
15915
|
+
}
|
|
15913
15916
|
Object.entries(resultStyles).forEach(([k, value]) => {
|
|
15914
15917
|
const key = kebabCase(k);
|
|
15915
15918
|
const flattenedMarks = [];
|
|
@@ -15927,6 +15930,7 @@ const generateLinkedStyleString = (linkedStyle, basedOnStyle, node, parent, incl
|
|
|
15927
15930
|
const mark = flattenedMarks.find((n) => n.key === key);
|
|
15928
15931
|
const hasParentIndent = Object.keys(parent?.attrs?.indent || {});
|
|
15929
15932
|
const hasParentSpacing = Object.keys(parent?.attrs?.spacing || {});
|
|
15933
|
+
const listTypes = ["orderedList", "listItem"];
|
|
15930
15934
|
if (!mark) {
|
|
15931
15935
|
if (key === "spacing" && includeSpacing && !hasParentSpacing) {
|
|
15932
15936
|
const space = getSpacingStyle(value);
|
|
@@ -15939,7 +15943,18 @@ const generateLinkedStyleString = (linkedStyle, basedOnStyle, node, parent, incl
|
|
|
15939
15943
|
if (rightIndent) markValue["margin-right"] = rightIndent + "px";
|
|
15940
15944
|
if (firstLine) markValue["text-indent"] = firstLine + "px";
|
|
15941
15945
|
} else if (key === "bold") {
|
|
15942
|
-
|
|
15946
|
+
const val = value?.value;
|
|
15947
|
+
if (!listTypes.includes(node.type.name) && val !== "0") {
|
|
15948
|
+
markValue["font-weight"] = "bold";
|
|
15949
|
+
}
|
|
15950
|
+
} else if (key === "text-transform") {
|
|
15951
|
+
if (!listTypes.includes(node.type.name)) {
|
|
15952
|
+
markValue[key] = value;
|
|
15953
|
+
}
|
|
15954
|
+
} else if (key === "font-size") {
|
|
15955
|
+
if (!listTypes.includes(node.type.name)) {
|
|
15956
|
+
markValue[key] = value;
|
|
15957
|
+
}
|
|
15943
15958
|
} else if (typeof value === "string") {
|
|
15944
15959
|
markValue[key] = value;
|
|
15945
15960
|
}
|
|
@@ -16545,14 +16560,6 @@ const Paragraph = Node$1.create({
|
|
|
16545
16560
|
else if (jc === "both") style += "text-align: justify;";
|
|
16546
16561
|
return { style };
|
|
16547
16562
|
}
|
|
16548
|
-
},
|
|
16549
|
-
textCase: {
|
|
16550
|
-
renderDOM: (attrs) => {
|
|
16551
|
-
if (!attrs.textCase) return {};
|
|
16552
|
-
return {
|
|
16553
|
-
style: `text-transform: ${attrs.textCase}`
|
|
16554
|
-
};
|
|
16555
|
-
}
|
|
16556
16563
|
}
|
|
16557
16564
|
};
|
|
16558
16565
|
},
|
|
@@ -22604,6 +22611,20 @@ const Bold = Mark.create({
|
|
|
22604
22611
|
htmlAttributes: {}
|
|
22605
22612
|
};
|
|
22606
22613
|
},
|
|
22614
|
+
addAttributes() {
|
|
22615
|
+
return {
|
|
22616
|
+
value: {
|
|
22617
|
+
default: null,
|
|
22618
|
+
renderDOM: (attrs) => {
|
|
22619
|
+
if (!attrs.value) return {};
|
|
22620
|
+
if (attrs.value === "0") {
|
|
22621
|
+
return { style: "font-weight: normal" };
|
|
22622
|
+
}
|
|
22623
|
+
return {};
|
|
22624
|
+
}
|
|
22625
|
+
}
|
|
22626
|
+
};
|
|
22627
|
+
},
|
|
22607
22628
|
parseDOM() {
|
|
22608
22629
|
return [
|
|
22609
22630
|
{ tag: "strong" },
|
|
@@ -23374,6 +23395,32 @@ const getChangesByIdToResolve = (state, id) => {
|
|
|
23374
23395
|
}
|
|
23375
23396
|
return [matchingChange, linkedChange].filter(Boolean);
|
|
23376
23397
|
};
|
|
23398
|
+
const TextTransform = Extension.create({
|
|
23399
|
+
name: "textTransform",
|
|
23400
|
+
addOptions() {
|
|
23401
|
+
return {
|
|
23402
|
+
types: ["textStyle"]
|
|
23403
|
+
};
|
|
23404
|
+
},
|
|
23405
|
+
addGlobalAttributes() {
|
|
23406
|
+
return [
|
|
23407
|
+
{
|
|
23408
|
+
types: this.options.types,
|
|
23409
|
+
attributes: {
|
|
23410
|
+
textTransform: {
|
|
23411
|
+
default: null,
|
|
23412
|
+
renderDOM: (attrs) => {
|
|
23413
|
+
if (!attrs.textCase) return {};
|
|
23414
|
+
return {
|
|
23415
|
+
style: `text-transform: ${attrs.textCase}`
|
|
23416
|
+
};
|
|
23417
|
+
}
|
|
23418
|
+
}
|
|
23419
|
+
}
|
|
23420
|
+
}
|
|
23421
|
+
];
|
|
23422
|
+
}
|
|
23423
|
+
});
|
|
23377
23424
|
const Placeholder = Extension.create({
|
|
23378
23425
|
name: "placeholder",
|
|
23379
23426
|
addOptions() {
|
|
@@ -28852,7 +28899,8 @@ const getStarterExtensions = () => {
|
|
|
28852
28899
|
StructuredContent,
|
|
28853
28900
|
DocumentSection,
|
|
28854
28901
|
NodeResizer,
|
|
28855
|
-
CustomSelection
|
|
28902
|
+
CustomSelection,
|
|
28903
|
+
TextTransform
|
|
28856
28904
|
];
|
|
28857
28905
|
};
|
|
28858
28906
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { H as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { H as process$1 } from "./converter-Dv28F4Os.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BgxpYGE3.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -21,8 +21,13 @@ export class SuperConverter {
|
|
|
21
21
|
static markTypes: ({
|
|
22
22
|
name: string;
|
|
23
23
|
type: string;
|
|
24
|
+
property: string;
|
|
24
25
|
mark?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
25
29
|
property?: undefined;
|
|
30
|
+
mark?: undefined;
|
|
26
31
|
} | {
|
|
27
32
|
name: string;
|
|
28
33
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAeA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH
|
|
1
|
+
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAeA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;;;;;;;;;;;SAkBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IAwFtF,gDAsBC;IAED,6DAuBC;IArID,0BA8DC;IA5DC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,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;IAM9C,qBAgBC;IAED,8BAEC;IAmDD;;;;;;;;;;MAmDC;IAED,2BAoDC;IAED,8BAsBC;IAED;;;;;;MAWC;IAED;;;;;;MAiBC;IAED,2EAeC;IAED,gDAGC;IAED,uLAmEC;IAED;;;;;;;;;;;;MA8BC;;CA0NF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AA0BA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAyCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB;
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AA0BA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAyCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB;AA6lED;;;;;;;;;EAgBC;AAyFD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAsEF;;;;;;;;;;;;;mBAh8Ea,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
|
|
@@ -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,
|
|
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,CA4ExB;AAED;;;;;GAKG;AACH,4CAJW,OAAO,gBACP,UAAU,EAAE,GACV,UAAU,EAAE,CAiBxB;AAED;;;;GAIG;AACH,yCAHW,UAAU,EAAE,GACV,UAAU,EAAE,CAoBxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AAmTA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4GpB;AAED;;;;;;GAMG;AACH,kDAHW,OAAO,EAAE,SA4CnB;AA7cD;;;;;;;GAOG;AACH,sCAwIE;AAEK;;;;;;EAwCN;AAEM;;;;;EA6CN;AA4DD;;GAEG;AACH,6CAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/runNodeImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/runNodeImporter.js"],"names":[],"mappings":"AA0DA;;GAEG;AACH,uCAGE"}
|
|
@@ -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-BgxpYGE3.js";
|
|
2
|
+
import "./chunks/converter-Dv28F4Os.js";
|
|
3
|
+
import "./chunks/docx-zipper-DulJ_j0U.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bold.d.ts","sourceRoot":"","sources":["../../../src/extensions/bold/bold.js"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"bold.d.ts","sourceRoot":"","sources":["../../../src/extensions/bold/bold.js"],"names":[],"mappings":"AAEA,uBAqDG"}
|
|
@@ -59,5 +59,6 @@ import { StructuredContent } from './structured-content/index.js';
|
|
|
59
59
|
import { DocumentSection } from './structured-content/index.js';
|
|
60
60
|
import { NodeResizer } from './noderesizer/index.js';
|
|
61
61
|
import { CustomSelection } from './custom-selection/index.js';
|
|
62
|
-
|
|
62
|
+
import { TextTransform } from './text-transform/index.js';
|
|
63
|
+
export { History, Heading, Document, Text, RunItem, BulletList, OrderedList, ListItem, Paragraph, CommentRangeStart, CommentRangeEnd, CommentReference, TabNode, LineBreak, HardBreak, Bold, Italic, Underline, Highlight, Strike, Color, FontFamily, FontSize, TextAlign, TextIndent, TextStyle, LineHeight, FormatCommands, CommentsPlugin, Gapcursor, Table, TableRow, TableCell, TableHeader, Placeholder, DropCursor, FieldAnnotation, fieldAnnotationHelpers, Image, BookmarkStart, PopoverPlugin, Mention, Collaboration, CollaborationCursor, TrackChanges, TrackInsert, TrackDelete, TrackFormat, CommentsMark, trackChangesHelpers, AiMark, AiAnimationMark, AiLoaderNode, AiPlugin, Search, StructuredContent, DocumentSection, NodeResizer, CustomSelection, TextTransform };
|
|
63
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.js"],"names":[],"mappings":"wBACwB,oBAAoB;wBAuBpB,oBAAoB;yBAPnB,qBAAqB;qBACzB,iBAAiB;wBACd,qBAAqB;2BAClB,wBAAwB;4BACvB,yBAAyB;yBAC5B,sBAAsB;0BACrB,sBAAsB;kCAEqB,oBAAoB;gCAApB,oBAAoB;iCAApB,oBAAoB;wBACjE,gBAAgB;0BACH,uBAAuB;0BAAvB,uBAAuB;qBAiBvC,iBAAiB;uBACf,mBAAmB;0BAChB,sBAAsB;0BACtB,sBAAsB;uBACzB,mBAAmB;sBA9CpB,kBAAkB;2BACb,wBAAwB;yBAC1B,sBAAsB;0BACrB,uBAAuB;2BACtB,wBAAwB;0BAqCzB,4BAA4B;2BApC3B,wBAAwB;+BACpB,4BAA4B;+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.js"],"names":[],"mappings":"wBACwB,oBAAoB;wBAuBpB,oBAAoB;yBAPnB,qBAAqB;qBACzB,iBAAiB;wBACd,qBAAqB;2BAClB,wBAAwB;4BACvB,yBAAyB;yBAC5B,sBAAsB;0BACrB,sBAAsB;kCAEqB,oBAAoB;gCAApB,oBAAoB;iCAApB,oBAAoB;wBACjE,gBAAgB;0BACH,uBAAuB;0BAAvB,uBAAuB;qBAiBvC,iBAAiB;uBACf,mBAAmB;0BAChB,sBAAsB;0BACtB,sBAAsB;uBACzB,mBAAmB;sBA9CpB,kBAAkB;2BACb,wBAAwB;yBAC1B,sBAAsB;0BACrB,uBAAuB;2BACtB,wBAAwB;0BAqCzB,4BAA4B;2BApC3B,wBAAwB;+BACpB,4BAA4B;+BA+C5B,oBAAoB;0BA7CzB,sBAAsB;sBAkB1B,kBAAkB;yBAEf,sBAAsB;0BACrB,uBAAuB;4BAFrB,yBAAyB;4BA2BzB,wBAAwB;2BA/CzB,uBAAuB;gCAuBM,6BAA6B;uCAA7B,6BAA6B;sBAC/D,kBAAkB;8BACV,sBAAsB;8BAuBtB,2BAA2B;wBAtBjC,oBAAoB;8BAxBd,0BAA0B;oCACpB,iCAAiC;6BA8CxC,0BAA0B;4BARD,0BAA0B;4BAA1B,0BAA0B;4BAA1B,0BAA0B;6BACnD,oBAAoB;oCAeb,0BAA0B;AA6C9D,8CAoEC;AA/GD,+CAyCC;uBAhG+D,eAAe;gCAAf,eAAe;6BAAf,eAAe;yBAAf,eAAe;uBAgDxD,mBAAmB;kCArBS,+BAA+B;gCAA/B,+BAA+B;4BAsBtD,wBAAwB;gCACpB,6BAA6B;8BAX/B,2BAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linked-styles.d.ts","sourceRoot":"","sources":["../../../src/extensions/linked-styles/linked-styles.js"],"names":[],"mappings":"AAOA,mDAAmE;AAEnE,+BAiCG;AAiFI,
|
|
1
|
+
{"version":3,"file":"linked-styles.d.ts","sourceRoot":"","sources":["../../../src/extensions/linked-styles/linked-styles.js"],"names":[],"mappings":"AAOA,mDAAmE;AAEnE,+BAiCG;AAiFI,yIA4EN;AAgBM,mDAON;AAQM,4DAON;AAEM,kDAuBN;AAEM,qDAUN;0BAlRiC,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAMA,4BA2JG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/extensions/text-transform/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-transform.d.ts","sourceRoot":"","sources":["../../../src/extensions/text-transform/text-transform.js"],"names":[],"mappings":"AAEA,gCA2BG"}
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { au as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, ax as vClickOutside, y as findParentNode, ay as getActiveFormatting, ao as isInTable, az as readFromClipboard, aA as handleClipboardPaste, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { ar, a5, d, a2 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { k, C, T, i, l, j } from "./chunks/editor-
|
|
12
|
+
import { au as getDefaultExportFromCjs, U as v4, T as TextSelection$1, q as getMarkRange, ax as vClickOutside, y as findParentNode, ay as getActiveFormatting, ao as isInTable, az as readFromClipboard, aA as handleClipboardPaste, a as Plugin } from "./chunks/converter-Dv28F4Os.js";
|
|
13
|
+
import { ar, a5, d, a2 } from "./chunks/converter-Dv28F4Os.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, s as startImageUpload, y as yUndoPluginKey, d as undoDepth, r as redoDepth, S as SlashMenuPluginKey, E as Editor, e as getStarterExtensions, P as Placeholder, f as getRichTextExtensions, M as Mark, h as Extension, A as Attribute, N as Node } from "./chunks/editor-BgxpYGE3.js";
|
|
15
|
+
import { k, C, T, i, l, j } from "./chunks/editor-BgxpYGE3.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, N as NSkeleton } from "./chunks/toolbar-BJShk4vA.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-DulJ_j0U.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-DDMJy7qM.cjs");
|
|
4
4
|
require("./chunks/vue-CfKg12kH.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, 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, q } from "./chunks/super-editor.es-BP3SXura.es.js";
|
|
2
2
|
import "./chunks/vue-B_OPNNfX.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.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-DDMJy7qM.cjs");
|
|
4
4
|
const vue = require("./chunks/vue-CfKg12kH.cjs");
|
|
5
5
|
const jszip = require("./chunks/jszip-DWfnW2xV.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
|
@@ -47833,7 +47833,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
47833
47833
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47834
47834
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47835
47835
|
this.colorIndex = 0;
|
|
47836
|
-
this.version = "0.15.3-next.
|
|
47836
|
+
this.version = "0.15.3-next.6";
|
|
47837
47837
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47838
47838
|
this.superdocId = config.superdocId || uuid.v4();
|
|
47839
47839
|
this.colors = this.config.colors;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as index$1, 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 "./chunks/super-editor.es-
|
|
2
|
-
import { a, S, d, j, p } from "./chunks/super-editor.es-
|
|
1
|
+
import { q as index$1, 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 "./chunks/super-editor.es-BP3SXura.es.js";
|
|
2
|
+
import { a, S, d, j, p } from "./chunks/super-editor.es-BP3SXura.es.js";
|
|
3
3
|
import { a0 as effectScope, r as ref, $ as markRaw, p as process$1, a1 as toRaw, a as computed, a2 as isRef, a3 as isReactive, D as toRef, i as inject, q as getCurrentInstance, l as watch, y as unref, a4 as hasInjectionContext, N as reactive, u as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, K as shallowRef, O as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, U as onActivated, s as onDeactivated, A as createTextVNode, F as Fragment, R as Comment, m as defineComponent, E as provide, I as withDirectives, C as h, V as Teleport, S as renderSlot, W as isVNode, J as watchEffect, P as Transition, G as mergeProps, Q as vShow, H as cloneVNode, T as Text, b as createElementBlock, o as openBlock, t as toDisplayString, x as createVNode, z as withCtx, f as createBaseVNode, B as normalizeStyle, e as createCommentVNode, v as createBlock, w as withModifiers, n as normalizeClass, a8 as resolveDirective, d as renderList, c as createApp, X as onUnmounted, Y as resolveDynamicComponent } from "./chunks/vue-B_OPNNfX.es.js";
|
|
4
4
|
import { B as Buffer$2 } from "./chunks/jszip-BwJb6_S5.es.js";
|
|
5
5
|
import { B as BlankDOCX } from "./chunks/blank-docx-iwdyG9RH.es.js";
|
|
@@ -47816,7 +47816,7 @@ class SuperDoc extends EventEmitter {
|
|
|
47816
47816
|
this.config.colors = shuffleArray(this.config.colors);
|
|
47817
47817
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
47818
47818
|
this.colorIndex = 0;
|
|
47819
|
-
this.version = "0.15.3-next.
|
|
47819
|
+
this.version = "0.15.3-next.6";
|
|
47820
47820
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
47821
47821
|
this.superdocId = config.superdocId || v4();
|
|
47822
47822
|
this.colors = this.config.colors;
|