@harbour-enterprises/superdoc 0.30.0-next.5 → 0.30.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-8rHRTfmB.es.js → PdfViewer-CBfKTlkO.es.js} +1 -1
- package/dist/chunks/{PdfViewer-DlTGU48f.cjs → PdfViewer-DAfhpENU.cjs} +1 -1
- package/dist/chunks/{index-BAQ7G8ip.es.js → index-D11q4Kk4.es.js} +7 -6
- package/dist/chunks/{index-1OJ4hRlJ.cjs → index-D6ktUpVF.cjs} +7 -6
- package/dist/chunks/{index-DuZ0Zcpx-CD37LqbK.es.js → index-K8x_ZMJI-BhsVHeXy.es.js} +1 -1
- package/dist/chunks/{index-DuZ0Zcpx-DkylYv_-.cjs → index-K8x_ZMJI-BrnvF8W6.cjs} +1 -1
- package/dist/chunks/{super-editor.es-CItbU3fH.cjs → super-editor.es-DKjs4Vsm.cjs} +51 -27
- package/dist/chunks/{super-editor.es-D0SDU51r.es.js → super-editor.es-DgBDoeNs.es.js} +51 -27
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/packages/superdoc/src/stores/comments-store.d.ts.map +1 -1
- package/dist/style.css +1 -0
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DlG29jx8.js → converter-CV0ojpfw.js} +10 -9
- package/dist/super-editor/chunks/{docx-zipper-DGDhr6WV.js → docx-zipper-OIsx4R0Z.js} +1 -1
- package/dist/super-editor/chunks/{editor-Bp_OjOzF.js → editor-Dj784nAk.js} +43 -20
- package/dist/super-editor/chunks/{index-DuZ0Zcpx.js → index-K8x_ZMJI.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-DWYE9phW.js → toolbar-B9Usxj75.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +1 -0
- package/dist/super-editor/super-editor/src/core/helpers/list-numbering-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/helpers/orderedListUtils.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/paragraph/ParagraphNodeView.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/paragraph/numberingPlugin.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +1 -0
- package/dist/super-editor/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.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 +57 -32
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -15376,6 +15376,9 @@ const getLineHeightValueString = (lineHeight, defaultUnit, lineRule = "", isObje
|
|
|
15376
15376
|
let [value, unit] = parseSizeUnit(lineHeight);
|
|
15377
15377
|
if (Number.isNaN(value) || value === 0) return {};
|
|
15378
15378
|
if (lineRule === "atLeast" && value < 1) return {};
|
|
15379
|
+
if (!unit && value < 1) {
|
|
15380
|
+
value = 1;
|
|
15381
|
+
}
|
|
15379
15382
|
unit = unit ? unit : defaultUnit;
|
|
15380
15383
|
return isObject ? { ["line-height"]: `${value}${unit}` } : `line-height: ${value}${unit}`;
|
|
15381
15384
|
};
|
|
@@ -27468,7 +27471,12 @@ const getListDefinitionDetails = ({ numId, level, listType, editor, tries = 0 })
|
|
|
27468
27471
|
}
|
|
27469
27472
|
const findElement = (name) => listDefinition.elements?.find((item) => item.name === name);
|
|
27470
27473
|
const startElement = findElement("w:start");
|
|
27471
|
-
|
|
27474
|
+
let numFmtElement = findElement("w:numFmt");
|
|
27475
|
+
if (!numFmtElement) {
|
|
27476
|
+
const mcAlternate = listDefinition.elements?.find((item) => item.name === "mc:AlternateContent");
|
|
27477
|
+
const choice = mcAlternate?.elements?.find((el) => el.name === "mc:Choice");
|
|
27478
|
+
numFmtElement = choice?.elements?.find((item) => item.name === "w:numFmt");
|
|
27479
|
+
}
|
|
27472
27480
|
const lvlTextElement = findElement("w:lvlText");
|
|
27473
27481
|
const suffixElement = findElement("w:suff");
|
|
27474
27482
|
const lvlJcElement = findElement("w:lvlJc");
|
|
@@ -34213,13 +34221,6 @@ function getNumberingDefinitions(docx, converter) {
|
|
|
34213
34221
|
importListDefs[numericKey] = value;
|
|
34214
34222
|
}
|
|
34215
34223
|
});
|
|
34216
|
-
const listDefsEntries = Object.entries(importListDefs);
|
|
34217
|
-
const foundByDurableId = listDefsEntries.filter(([, def]) => def.attributes?.["w16cid:durableId"] === "485517411");
|
|
34218
|
-
if (foundByDurableId.length > 1) {
|
|
34219
|
-
importListDefs = Object.fromEntries(
|
|
34220
|
-
listDefsEntries.filter(([, def]) => def.attributes?.["w16cid:durableId"] !== "485517411")
|
|
34221
|
-
);
|
|
34222
|
-
}
|
|
34223
34224
|
return {
|
|
34224
34225
|
abstracts: abstractDefinitions,
|
|
34225
34226
|
definitions: importListDefs
|
|
@@ -35527,7 +35528,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
35527
35528
|
static getStoredSuperdocVersion(docx) {
|
|
35528
35529
|
return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35529
35530
|
}
|
|
35530
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.30.0-next.
|
|
35531
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.30.0-next.7") {
|
|
35531
35532
|
return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
35532
35533
|
}
|
|
35533
35534
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, aE as commonjsGlobal, B as Buffer, aF as getDefaultExportFromCjs, aG as getContentTypesFromXml, aH as xmljs } from "./converter-
|
|
1
|
+
import { p as process$1, aE as commonjsGlobal, B as Buffer, aF as getDefaultExportFromCjs, aG as getContentTypesFromXml, aH as xmljs } from "./converter-CV0ojpfw.js";
|
|
2
2
|
function commonjsRequire(path) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -12,8 +12,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _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, _ParagraphNodeView_instances, updateHTMLAttributes_fn, updateListStyles_fn, initList_fn, checkIsList_fn, createMarker_fn, createSeparator_fn, calculateTabSeparatorStyle_fn, calculateMarkerStyle_fn, removeList_fn, getParagraphContext_fn, scheduleAnimation_fn, cancelScheduledAnimation_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, L as ListHelpers, G as updateNumberingProperties, H as changeListLevel, I as findParentNode, J as isList, K as isMacOS, O as isIOS, Q as getSchemaTypeByName, U as inputRulesPlugin, V as TrackDeleteMarkName, W as TrackInsertMarkName, X as v4, Y as TrackFormatMarkName, Z as comments_module_events, _ as findMark, $ as objectIncludes, a0 as AddMarkStep, a1 as RemoveMarkStep, a2 as twipsToLines, a3 as pixelsToTwips, a4 as helpers, a5 as posToDOMRect, a6 as CommandService, a7 as SuperConverter, a8 as createDocument, a9 as createDocFromMarkdown, aa as createDocFromHTML, ab as EditorState, ac as hasSomeParentWithClass, ad as isActive, ae as unflattenListsInHtml, af as parseSizeUnit, ag as minMax, ah as getLineHeightValueString, ai as updateDOMAttributes, aj as findChildren$5, ak as generateRandomSigned32BitIntStrId, al as kebabCase, am as twipsToPixels, an as halfPointToPixels, ao as getUnderlineCssString, ap as findParentNodeClosestToPos, aq as resolveRunProperties, ar as encodeCSSFromRPr, as as docxNumberingHelpers, at as InputRule, au as resolveParagraphProperties, av as eighthPointsToPixels, aw as linesToTwips, ax as PIXELS_PER_INCH, ay as SelectionRange, az as Transform, aA as isInTable$1, aB as generateDocxRandomId, aC as insertNewRelationship, aD as inchesToPixels } from "./converter-
|
|
16
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, L as ListHelpers, G as updateNumberingProperties, H as changeListLevel, I as findParentNode, J as isList, K as isMacOS, O as isIOS, Q as getSchemaTypeByName, U as inputRulesPlugin, V as TrackDeleteMarkName, W as TrackInsertMarkName, X as v4, Y as TrackFormatMarkName, Z as comments_module_events, _ as findMark, $ as objectIncludes, a0 as AddMarkStep, a1 as RemoveMarkStep, a2 as twipsToLines, a3 as pixelsToTwips, a4 as helpers, a5 as posToDOMRect, a6 as CommandService, a7 as SuperConverter, a8 as createDocument, a9 as createDocFromMarkdown, aa as createDocFromHTML, ab as EditorState, ac as hasSomeParentWithClass, ad as isActive, ae as unflattenListsInHtml, af as parseSizeUnit, ag as minMax, ah as getLineHeightValueString, ai as updateDOMAttributes, aj as findChildren$5, ak as generateRandomSigned32BitIntStrId, al as kebabCase, am as twipsToPixels, an as halfPointToPixels, ao as getUnderlineCssString, ap as findParentNodeClosestToPos, aq as resolveRunProperties, ar as encodeCSSFromRPr, as as docxNumberingHelpers, at as InputRule, au as resolveParagraphProperties, av as eighthPointsToPixels, aw as linesToTwips, ax as PIXELS_PER_INCH, ay as SelectionRange, az as Transform, aA as isInTable$1, aB as generateDocxRandomId, aC as insertNewRelationship, aD as inchesToPixels } from "./converter-CV0ojpfw.js";
|
|
16
|
+
import { D as DocxZipper } from "./docx-zipper-OIsx4R0Z.js";
|
|
17
17
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
@@ -519,7 +519,7 @@ function history(config = {}) {
|
|
|
519
519
|
beforeinput(view, e) {
|
|
520
520
|
let inputType = e.inputType;
|
|
521
521
|
let command2 = inputType == "historyUndo" ? undo$1 : inputType == "historyRedo" ? redo$1 : null;
|
|
522
|
-
if (!command2)
|
|
522
|
+
if (!command2 || !view.editable)
|
|
523
523
|
return false;
|
|
524
524
|
e.preventDefault();
|
|
525
525
|
return command2(view.state, view.dispatch);
|
|
@@ -14202,7 +14202,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14202
14202
|
{ default: remarkStringify },
|
|
14203
14203
|
{ default: remarkGfm }
|
|
14204
14204
|
] = await Promise.all([
|
|
14205
|
-
import("./index-
|
|
14205
|
+
import("./index-K8x_ZMJI.js"),
|
|
14206
14206
|
import("./index-DRCvimau.js"),
|
|
14207
14207
|
import("./index-C_x_N6Uh.js"),
|
|
14208
14208
|
import("./index-D_sWOSiG.js"),
|
|
@@ -14420,7 +14420,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14420
14420
|
* @returns {Object | void} Migration results
|
|
14421
14421
|
*/
|
|
14422
14422
|
processCollaborationMigrations() {
|
|
14423
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.
|
|
14423
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.7");
|
|
14424
14424
|
if (!this.options.ydoc) return;
|
|
14425
14425
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
14426
14426
|
let docVersion = metaMap.get("version");
|
|
@@ -17137,12 +17137,6 @@ const StructuredContentCommands = Extension.create({
|
|
|
17137
17137
|
content = node.content;
|
|
17138
17138
|
}
|
|
17139
17139
|
const updatedNode = node.type.create({ ...node.attrs, ...options.attrs }, content, node.marks);
|
|
17140
|
-
try {
|
|
17141
|
-
updatedNode.check();
|
|
17142
|
-
} catch {
|
|
17143
|
-
console.error("Updated node does not conform to the schema");
|
|
17144
|
-
return false;
|
|
17145
|
-
}
|
|
17146
17140
|
tr.replaceWith(posFrom, posTo, updatedNode);
|
|
17147
17141
|
}
|
|
17148
17142
|
return true;
|
|
@@ -18163,6 +18157,9 @@ const getSpacingStyle = (spacing) => {
|
|
|
18163
18157
|
const getSpacingStyleString = (spacing, marks, isListItem) => {
|
|
18164
18158
|
let { before, after, line, lineRule, beforeAutospacing, afterAutospacing } = spacing;
|
|
18165
18159
|
line = twipsToLines(line);
|
|
18160
|
+
if (line != null && line < 1) {
|
|
18161
|
+
line = 1;
|
|
18162
|
+
}
|
|
18166
18163
|
if (lineRule === "exact" && line) {
|
|
18167
18164
|
line = String(line);
|
|
18168
18165
|
}
|
|
@@ -18764,6 +18761,9 @@ function calculateTabStyle(nodeSize2, view, pos, blockParent2, paragraphContext,
|
|
|
18764
18761
|
if (paragraphContext.tabHeight === void 0) {
|
|
18765
18762
|
paragraphContext.tabHeight = calcTabHeight(blockParent2);
|
|
18766
18763
|
}
|
|
18764
|
+
if (paragraphContext.paragraphWidth === void 0) {
|
|
18765
|
+
paragraphContext.paragraphWidth = getBlockNodeWidth(view, startPos);
|
|
18766
|
+
}
|
|
18767
18767
|
const indentWidth = paragraphContext.indentWidth;
|
|
18768
18768
|
const hanging = twipsToPixels(Number(paragraphContext.indent.hanging) || 0);
|
|
18769
18769
|
if (hanging > 0) {
|
|
@@ -18775,7 +18775,7 @@ function calculateTabStyle(nodeSize2, view, pos, blockParent2, paragraphContext,
|
|
|
18775
18775
|
if (tabStops.length) {
|
|
18776
18776
|
const tabStop = tabStops.find((stop) => stop.pos > currentWidth && stop.val !== "clear");
|
|
18777
18777
|
if (tabStop) {
|
|
18778
|
-
tabWidth = tabStop.pos - currentWidth;
|
|
18778
|
+
tabWidth = Math.min(tabStop.pos, paragraphContext.paragraphWidth) - currentWidth;
|
|
18779
18779
|
let val = tabStop.val;
|
|
18780
18780
|
const aliases = { left: "start", right: "end" };
|
|
18781
18781
|
if (aliases[val]) val = aliases[val];
|
|
@@ -18943,6 +18943,15 @@ function getIndentWidth(view, paragraphStartPos, indentAttrs = {}, coordCache =
|
|
|
18943
18943
|
}
|
|
18944
18944
|
return calculateIndentFallback(indentAttrs);
|
|
18945
18945
|
}
|
|
18946
|
+
function getBlockNodeWidth(view, blockStartPos) {
|
|
18947
|
+
const blockDom = view.nodeDOM(blockStartPos - 1);
|
|
18948
|
+
if (blockDom instanceof HTMLElement) {
|
|
18949
|
+
const styles = window.getComputedStyle(blockDom);
|
|
18950
|
+
const width = blockDom.clientWidth + parseFloat(styles.marginLeft || "0") + parseFloat(styles.marginRight || "0") + parseFloat(styles.borderLeftWidth || "0") + parseFloat(styles.borderRightWidth || "0") + parseFloat(styles.paddingLeft || "0") + parseFloat(styles.paddingRight || "0");
|
|
18951
|
+
return width;
|
|
18952
|
+
}
|
|
18953
|
+
return defaultLineLength;
|
|
18954
|
+
}
|
|
18946
18955
|
function calculateIndentFallback(indentAttrs = {}) {
|
|
18947
18956
|
if (!indentAttrs) return 0;
|
|
18948
18957
|
const left2 = twipsToPixels(Number(indentAttrs.left) || 0);
|
|
@@ -19071,6 +19080,20 @@ class ParagraphNodeView {
|
|
|
19071
19080
|
if (mutation.type === "attributes" && mutation.target === this.dom && mutation.attributeName === "style") {
|
|
19072
19081
|
return true;
|
|
19073
19082
|
}
|
|
19083
|
+
if (mutation.type === "childList") {
|
|
19084
|
+
if (this.marker && Array.from(mutation.removedNodes).includes(this.marker)) {
|
|
19085
|
+
return true;
|
|
19086
|
+
}
|
|
19087
|
+
if (this.marker && Array.from(mutation.addedNodes).includes(this.marker)) {
|
|
19088
|
+
return true;
|
|
19089
|
+
}
|
|
19090
|
+
if (this.separator && Array.from(mutation.removedNodes).includes(this.separator)) {
|
|
19091
|
+
return true;
|
|
19092
|
+
}
|
|
19093
|
+
if (this.separator && Array.from(mutation.addedNodes).includes(this.separator)) {
|
|
19094
|
+
return true;
|
|
19095
|
+
}
|
|
19096
|
+
}
|
|
19074
19097
|
return false;
|
|
19075
19098
|
}
|
|
19076
19099
|
destroy() {
|
|
@@ -19116,10 +19139,10 @@ checkIsList_fn = function() {
|
|
|
19116
19139
|
createMarker_fn = function(markerText) {
|
|
19117
19140
|
if (!this.marker) {
|
|
19118
19141
|
this.marker = document.createElement("span");
|
|
19142
|
+
this.dom.insertBefore(this.marker, this.contentDOM);
|
|
19119
19143
|
}
|
|
19120
19144
|
this.marker.contentEditable = "false";
|
|
19121
19145
|
this.marker.className = "list-marker";
|
|
19122
|
-
this.dom.insertBefore(this.marker, this.contentDOM);
|
|
19123
19146
|
this.marker.textContent = markerText;
|
|
19124
19147
|
};
|
|
19125
19148
|
/**
|
|
@@ -19130,7 +19153,7 @@ createSeparator_fn = function(suffix) {
|
|
|
19130
19153
|
if (this.separator == null || this.separator.tagName?.toLowerCase() !== "span") {
|
|
19131
19154
|
this.separator?.parentNode?.removeChild(this.separator);
|
|
19132
19155
|
this.separator = document.createElement("span");
|
|
19133
|
-
this.
|
|
19156
|
+
this.marker.after(this.separator);
|
|
19134
19157
|
}
|
|
19135
19158
|
this.separator.className = "sd-editor-tab";
|
|
19136
19159
|
this.separator.contentEditable = "false";
|
|
@@ -19138,14 +19161,14 @@ createSeparator_fn = function(suffix) {
|
|
|
19138
19161
|
if (this.separator == null || this.separator.nodeType !== Node.TEXT_NODE) {
|
|
19139
19162
|
this.separator?.parentNode?.removeChild(this.separator);
|
|
19140
19163
|
this.separator = document.createTextNode(" ");
|
|
19141
|
-
this.
|
|
19164
|
+
this.marker.after(this.separator);
|
|
19142
19165
|
}
|
|
19143
19166
|
this.separator.textContent = " ";
|
|
19144
19167
|
} else if (suffix === "nothing") {
|
|
19145
19168
|
if (this.separator == null || this.separator.nodeType !== Node.TEXT_NODE) {
|
|
19146
19169
|
this.separator?.parentNode?.removeChild(this.separator);
|
|
19147
19170
|
this.separator = document.createTextNode("");
|
|
19148
|
-
this.
|
|
19171
|
+
this.marker.after(this.separator);
|
|
19149
19172
|
}
|
|
19150
19173
|
this.separator.textContent = "";
|
|
19151
19174
|
}
|
|
@@ -19387,7 +19410,7 @@ function NumberingManager() {
|
|
|
19387
19410
|
abstractIdMap[numId] = abstractId;
|
|
19388
19411
|
const restartSetting = startsMap?.[numId]?.[level]?.restart;
|
|
19389
19412
|
const startValue = startsMap?.[numId]?.[level]?.start ?? 1;
|
|
19390
|
-
const levelData =
|
|
19413
|
+
const levelData = abstractCountersMap?.[abstractId]?.[level] || {};
|
|
19391
19414
|
let previousPos = null;
|
|
19392
19415
|
let previousCount = startValue - 1;
|
|
19393
19416
|
if (cacheEnabled) {
|
|
@@ -19559,13 +19582,12 @@ const ordinalFormatter = (level) => {
|
|
|
19559
19582
|
return p;
|
|
19560
19583
|
};
|
|
19561
19584
|
const generateFromCustom = (path, lvlText, customFormat) => {
|
|
19562
|
-
if (customFormat
|
|
19585
|
+
if (customFormat.match(/(?:[0]+\d,\s){3}\.{3}/) == null) return generateNumbering(path, lvlText, String);
|
|
19563
19586
|
const match = customFormat.match(/(\d+)/);
|
|
19564
19587
|
if (!match) throw new Error("Invalid format string: no numeric pattern found");
|
|
19565
19588
|
const sample = match[1];
|
|
19566
19589
|
const digitCount = sample.length;
|
|
19567
|
-
|
|
19568
|
-
return String(index2).padStart(digitCount, "0");
|
|
19590
|
+
return generateNumbering(path, lvlText, (p) => String(p).padStart(digitCount, "0"));
|
|
19569
19591
|
};
|
|
19570
19592
|
const intToRoman = (num) => {
|
|
19571
19593
|
const romanNumeralMap = [
|
|
@@ -19690,6 +19712,7 @@ function createNumberingPlugin(editor) {
|
|
|
19690
19712
|
}
|
|
19691
19713
|
let { lvlText, customFormat, listNumberingType, suffix, justification, abstractId } = definitionDetails;
|
|
19692
19714
|
let markerText = "";
|
|
19715
|
+
listNumberingType = listNumberingType || "decimal";
|
|
19693
19716
|
const count = numberingManager.calculateCounter(numId, level, pos, abstractId);
|
|
19694
19717
|
numberingManager.setCounter(numId, level, pos, count, abstractId);
|
|
19695
19718
|
const path = numberingManager.calculatePath(numId, level, pos);
|
|
@@ -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-CV0ojpfw.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Dj784nAk.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-Dj784nAk.js";
|
|
2
|
+
import "./chunks/converter-CV0ojpfw.js";
|
|
3
|
+
import "./chunks/docx-zipper-OIsx4R0Z.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-numbering-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/list-numbering-helpers.js"],"names":[],"mappings":"AAoBO,gGATJ;IAAuB,KAAK,EAApB,MAAM;IACS,QAAQ;IACP,KAAK,GAArB,MAAM;IACU,KAAK,GAArB,MAAM;IACU,IAAI,GAApB,MAAM;IACU,GAAG,GAAnB,MAAM;IAC6B,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;CAClC,OA+EF;AAEM,+EAYN;AAUM,+CANI,MAAM,SACN,MAAM,YACN,OAAO,mBAAmB,EAAE,QAAQ,UACpC,OAAO,WAAW,EAAE,MAAM,GACxB,MAAM,CA+BlB;AAQM,wCAJI,MAAM,cACN,MAAM,OAYhB;AASM,qCAHI,OAAO,WAAW,EAAE,MAAM,sBACxB,MAAM,CASlB;AAeM,oFAPJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACwC,QAAQ,GAAtD,OAAO,mBAAmB,EAAE,QAAQ;IACrB,MAAM;IACL,KAAK,GAArB,MAAM;CACd,
|
|
1
|
+
{"version":3,"file":"list-numbering-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/list-numbering-helpers.js"],"names":[],"mappings":"AAoBO,gGATJ;IAAuB,KAAK,EAApB,MAAM;IACS,QAAQ;IACP,KAAK,GAArB,MAAM;IACU,KAAK,GAArB,MAAM;IACU,IAAI,GAApB,MAAM;IACU,GAAG,GAAnB,MAAM;IAC6B,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;CAClC,OA+EF;AAEM,+EAYN;AAUM,+CANI,MAAM,SACN,MAAM,YACN,OAAO,mBAAmB,EAAE,QAAQ,UACpC,OAAO,WAAW,EAAE,MAAM,GACxB,MAAM,CA+BlB;AAQM,wCAJI,MAAM,cACN,MAAM,OAYhB;AASM,qCAHI,OAAO,WAAW,EAAE,MAAM,sBACxB,MAAM,CASlB;AAeM,oFAPJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACwC,QAAQ,GAAtD,OAAO,mBAAmB,EAAE,QAAQ;IACrB,MAAM;IACL,KAAK,GAArB,MAAM;CACd,OA6GF;AAOM,8CAHI,OAAO,WAAW,EAAE,MAAM,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;IAAC,KAAK,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,iBAAiB,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,YAAY,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAO,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,GAAC,SAAS,CAAA;CAAC,CAAC,CAAC,CA+ChP;AAUM,8CAJI,MAAM,UACN,OAAO,WAAW,EAAE,MAAM,GACxB,IAAI,CAehB;AAYM,sEALJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,WAAW;CAClC,OAsBF;AAaM,mFANJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IAC6B,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;IACX,WAAW;CAClC,OAQF;AAUM,wDALJ;IAA8B,QAAQ,EAA9B,MAAM,MAAO;IACsB,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;IACsB,EAAE,EAAlD,OAAO,mBAAmB,EAAE,WAAW;CAC/C,WAyBF;AAWM,+DANJ;IAAuB,EAAE;IACF,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;IACO,OAAO,EAApB,IAAI;CACZ,GAAU,IAAI,CAIhB;;;;;;;;;;;;;;;;;mCA3dkD,uBAAuB;+BAAvB,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orderedListUtils.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/orderedListUtils.js"],"names":[],"mappings":"AAAO;;;;;QAGN;
|
|
1
|
+
{"version":3,"file":"orderedListUtils.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/orderedListUtils.js"],"names":[],"mappings":"AAAO;;;;;QAGN;AAyGM,2CAHI,MAAM,GACJ,MAAM,CAqClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAGA,8BAAwB,EAAE,CAAC;AAE3B,mDAIC;AAED,kDAKC;AAED,kDAIC;AAED,mDAGC;AAQD,oDAIC;AAoDD,mDAGC;AAjED,oDAIC;AAQD,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,gEAKC;AAYD,yDAGC;AAbD,mDAGC;AAsBD,+CAGC;AAED,mDAGC;AAgDD;;;;;;;GAOG;AACH,qCAHW,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACrB,MAAO,IAAI,CAyCvB;AA7ED;;;;;;;GAOG;AACH,gDAFa,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAC,IAAI,CAsBxC;AAsED,4FAyDC;AAED,uEAKC;AAmCD,kEAGC;AAED,mEASC;AA5BD,iDAYC;AAkBD,qDAaC;AAOD,2CAEC;AA1QD,2CAGC;AARD,8CAGC;AA8QD;;;;
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAGA,8BAAwB,EAAE,CAAC;AAE3B,mDAIC;AAED,kDAKC;AAED,kDAIC;AAED,mDAGC;AAQD,oDAIC;AAoDD,mDAGC;AAjED,oDAIC;AAQD,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,gEAKC;AAYD,yDAGC;AAbD,mDAGC;AAsBD,+CAGC;AAED,mDAGC;AAgDD;;;;;;;GAOG;AACH,qCAHW,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACrB,MAAO,IAAI,CAyCvB;AA7ED;;;;;;;GAOG;AACH,gDAFa,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAC,IAAI,CAsBxC;AAsED,4FAyDC;AAED,uEAKC;AAmCD,kEAGC;AAED,mEASC;AA5BD,iDAYC;AAkBD,qDAaC;AAOD,2CAEC;AA1QD,2CAGC;AARD,8CAGC;AA8QD;;;;EAUC;AAED,qEAuBC;AAED,0EAGC;AAtMD;;;;GAIG;AACH,iDAHW,MAAM,GAAC,MAAM,GACX,MAAM,CAWlB;AApGD,sDAKC;AAdD,0DAOC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/linked-styles/helpers.js"],"names":[],"mappings":"AAiBO,wCANI,MAAM,uBAWhB;AASM,mDAiBN;AAUM,oFAHM,MAAM,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/linked-styles/helpers.js"],"names":[],"mappings":"AAiBO,wCANI,MAAM,uBAWhB;AASM,mDAiBN;AAUM,oFAHM,MAAM,CA0ClB;AASM,6CAHM,MAAM,CA2BlB;AAWM,uDAUN;AAcM,wHALI,OAAO,GACL,MAAM,CA2KlB;AAcM,iFANM,OAAO,CA4GnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParagraphNodeView.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/ParagraphNodeView.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,OAAO,mBAAmB,EAAE,IAAI,UAChC,OAAO,mBAAmB,EAAE,MAAM,UAClC,MAAM,MAAM,eACZ,OAAO,kBAAkB,EAAE,UAAU,EAAE,kBACvC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAuBjC;IApBC,uCAAgB;IAChB,wCAAoB;IACpB,cAPe,MAAM,CAOD;IACpB,qDAA8B;IAC9B,wCAAoC;IACpC,4BAAkC;IAElC,0BAAsC;IACtC,4BAAgD;IAclD;;;OAGG;IACH,aAHW,OAAO,mBAAmB,EAAE,IAAI,eAChC,OAAO,kBAAkB,EAAE,UAAU,EAAE,WAwBjD;IA2BD;;OAEG;IACH,yBAFW,cAAc,
|
|
1
|
+
{"version":3,"file":"ParagraphNodeView.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/ParagraphNodeView.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,OAAO,mBAAmB,EAAE,IAAI,UAChC,OAAO,mBAAmB,EAAE,MAAM,UAClC,MAAM,MAAM,eACZ,OAAO,kBAAkB,EAAE,UAAU,EAAE,kBACvC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAuBjC;IApBC,uCAAgB;IAChB,wCAAoB;IACpB,cAPe,MAAM,CAOD;IACpB,qDAA8B;IAC9B,wCAAoC;IACpC,4BAAkC;IAElC,0BAAsC;IACtC,4BAAgD;IAclD;;;OAGG;IACH,aAHW,OAAO,mBAAmB,EAAE,IAAI,eAChC,OAAO,kBAAkB,EAAE,UAAU,EAAE,WAwBjD;IA2BD;;OAEG;IACH,yBAFW,cAAc,WA+BxB;IAmBG,wBAA4C;IAe1C,kCAA+C;IA2LrD,gBAEC;;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numberingPlugin.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/numberingPlugin.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,8CAHW,OAAO,mBAAmB,EAAE,MAAM,GAChC,OAAO,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"numberingPlugin.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/numberingPlugin.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,8CAHW,OAAO,mBAAmB,EAAE,MAAM,GAChC,OAAO,mBAAmB,EAAE,MAAM,CA2H9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-content-commands.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/structured-content/structured-content-commands.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH,
|
|
1
|
+
{"version":3,"file":"structured-content-commands.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/structured-content/structured-content-commands.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH,kDAoUG;;;;;WAhWW,MAAM;;;;;;;;;;;;;;WAON,MAAM;;;;;;;;;;;;;;WAON,MAAM;;;;WACN,MAAM;;;;;;;;;;;;;;QAON,MAAM;;;;iBACN,MAAM;;;;UACN,KAAK,CAAC,MAAM,EAAE,CAAC,GAAC,KAAK,CAAC,MAAM,CAAC;;;;mBAC7B,OAAO;;0BApCK,aAAa"}
|
|
@@ -18,6 +18,7 @@ export function findNextTabIndex(flattened: any, fromIndex: any): any;
|
|
|
18
18
|
export function findDecimalBreakPos(flattened: any, startIndex: any, breakChar: any): any;
|
|
19
19
|
export function measureRangeWidth(view: any, from: any, to: any, coordCache?: any, domPosCache?: any): number;
|
|
20
20
|
export function getIndentWidth(view: any, paragraphStartPos: any, indentAttrs?: {}, coordCache?: any, domPosCache?: any): number;
|
|
21
|
+
export function getBlockNodeWidth(view: any, blockStartPos: any): number;
|
|
21
22
|
export function calculateIndentFallback(indentAttrs?: {}): number;
|
|
22
23
|
export function getLeftCoord(view: any, pos: any, coordCache?: any, domPosCache?: any): any;
|
|
23
24
|
export function getCachedDomAtPos(view: any, pos: any, domPosCache?: any): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabDecorations.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/tab/helpers/tabDecorations.js"],"names":[],"mappings":"AAoCA,
|
|
1
|
+
{"version":3,"file":"tabDecorations.d.ts","sourceRoot":"","sources":["../../../../../../src/extensions/tab/helpers/tabDecorations.js"],"names":[],"mappings":"AAoCA,4JAkGC;AAED,+EAaC;AAED;;;;;;;;;EA+BC;AAED;;;EAyBC;AAED,sEAOC;AAED,0FAcC;AAED,8GAiBC;AAED,iIAUC;AAED,yEAgBC;AAED,kEAmBC;AAED,4FA+BC;AAED,+EAYC;AAED,wDAUC;AAxWD,iCAAkC,EAAE,CAAC;AACrC,gCAAiC,GAAG,CAAC;AAE9B,qGA4BN"}
|
package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/track-changes/permission-helpers.js"],"names":[],"mappings":"AAgDO,2DALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACxB,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;CACd,GAAU,KAAK,KAAQ,CAkBzB;AA+BM,iFALJ;IAAmE,MAAM,EAAjE;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"permission-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/track-changes/permission-helpers.js"],"names":[],"mappings":"AAgDO,2DALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACxB,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;CACd,GAAU,KAAK,KAAQ,CAkBzB;AA+BM,iFALJ;IAAmE,MAAM,EAAjE;;;;;;;;;;;;0BAsDw4zd,aAAa;;;;2BAAgoB,IAAI;;;;;;;6BAAwmI,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAA4jb,aAAa;0BAA/6uB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAA06lC,UAAU;kDAAuV,UAAU,aAA+E,UAAU;oCAAgZ,UAAU;;;;;;;;;KAtD3gxf;IACxB,MAAM,EAAhC,QAAQ,GAAC,QAAQ;IACK,cAAc,EAApC,KAAK,KAAQ;CACrB,GAAU,OAAO,CAkCnB;AAWM,iFALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACnB,GAAG,EAAvB,MAAM,GAAC,IAAI;IACS,eAAe,EAAnC,MAAM,GAAC,IAAI;CACnB,GAAU,KAAK,KAAQ,CAOzB"}
|
|
@@ -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 { aF as getDefaultExportFromCjs, X as v4, T as TextSelection$1, v as getMarkRange, aI as vClickOutside, aJ as getActiveFormatting, aA as isInTable, I as findParentNode, J as isList, aK as readFromClipboard, aL as handleClipboardPaste, aM as getFileObject, aN as translator, aO as translator$1, aP as translator$2, aQ as translator$3, aR as translator$4, aS as translator$5, aT as translator$6, aU as translator$7, aV as translator$8, aW as translator$9, aX as translator$a, aY as translator$b, aZ as translator$c, a_ as translator$d, a$ as translator$e, b0 as commentRangeEndTranslator, b1 as commentRangeStartTranslator, b2 as translator$f, b3 as translator$g, b4 as translator$h, b5 as translator$i, b6 as translator$j, b7 as translator$k, b8 as translator$l, b9 as translator$m, ba as translator$n, bb as translator$o, bc as translator$p, bd as translator$q, be as translator$r, bf as translator$s, bg as translator$t, bh as translator$u, bi as translator$v, bj as translator$w, bk as translator$x, bl as translator$y, bm as translator$z, bn as translator$A, bo as translator$B, bp as translator$C, bq as translator$D, br as translator$E, bs as translator$F, bt as translator$G, bu as translator$H, bv as translator$I, bw as translator$J, bx as translator$K, by as translator$L, bz as translator$M, bA as translator$N, bB as translator$O, bC as translator$P, bD as translator$Q, bE as translator$R, bF as translator$S, bG as translator$T, bH as translator$U, bI as translator$V, bJ as translator$W, bK as translator$X, bL as translator$Y, bM as translator$Z, bN as translator$_, bO as translator$$, bP as translator$10, bQ as translator$11, bR as translator$12, bS as translator$13, bT as translator$14, bU as translator$15, bV as translator$16, bW as translator$17, bX as translator$18, bY as translator$19, bZ as translator$1a, b_ as translator$1b, b$ as translator$1c, c0 as translator$1d, c1 as translator$1e, c2 as translator$1f, c3 as translator$1g, c4 as translator$1h, c5 as translator$1i, c6 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { a7, i, a4 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, l as isHeadless, 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 { aF as getDefaultExportFromCjs, X as v4, T as TextSelection$1, v as getMarkRange, aI as vClickOutside, aJ as getActiveFormatting, aA as isInTable, I as findParentNode, J as isList, aK as readFromClipboard, aL as handleClipboardPaste, aM as getFileObject, aN as translator, aO as translator$1, aP as translator$2, aQ as translator$3, aR as translator$4, aS as translator$5, aT as translator$6, aU as translator$7, aV as translator$8, aW as translator$9, aX as translator$a, aY as translator$b, aZ as translator$c, a_ as translator$d, a$ as translator$e, b0 as commentRangeEndTranslator, b1 as commentRangeStartTranslator, b2 as translator$f, b3 as translator$g, b4 as translator$h, b5 as translator$i, b6 as translator$j, b7 as translator$k, b8 as translator$l, b9 as translator$m, ba as translator$n, bb as translator$o, bc as translator$p, bd as translator$q, be as translator$r, bf as translator$s, bg as translator$t, bh as translator$u, bi as translator$v, bj as translator$w, bk as translator$x, bl as translator$y, bm as translator$z, bn as translator$A, bo as translator$B, bp as translator$C, bq as translator$D, br as translator$E, bs as translator$F, bt as translator$G, bu as translator$H, bv as translator$I, bw as translator$J, bx as translator$K, by as translator$L, bz as translator$M, bA as translator$N, bB as translator$O, bC as translator$P, bD as translator$Q, bE as translator$R, bF as translator$S, bG as translator$T, bH as translator$U, bI as translator$V, bJ as translator$W, bK as translator$X, bL as translator$Y, bM as translator$Z, bN as translator$_, bO as translator$$, bP as translator$10, bQ as translator$11, bR as translator$12, bS as translator$13, bT as translator$14, bU as translator$15, bV as translator$16, bW as translator$17, bX as translator$18, bY as translator$19, bZ as translator$1a, b_ as translator$1b, b$ as translator$1c, c0 as translator$1d, c1 as translator$1e, c2 as translator$1f, c3 as translator$1g, c4 as translator$1h, c5 as translator$1i, c6 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-CV0ojpfw.js";
|
|
13
|
+
import { a7, i, a4 } from "./chunks/converter-CV0ojpfw.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, l as isHeadless, 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-Dj784nAk.js";
|
|
15
|
+
import { v, C, w, T, q, x, t } from "./chunks/editor-Dj784nAk.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, defineComponent, 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-B9Usxj75.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-OIsx4R0Z.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-DKjs4Vsm.cjs");
|
|
4
4
|
require("./chunks/vue-Cwv-wUpm.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-DgBDoeNs.es.js";
|
|
2
2
|
import "./chunks/vue-CKmzTNVs.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-DKjs4Vsm.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-D6ktUpVF.cjs");
|
|
5
5
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
7
7
|
exports.Editor = superEditor_es.Editor;
|
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-DgBDoeNs.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-D11q4Kk4.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|