@harbour-enterprises/superdoc 0.28.0-next.11 → 0.28.0-next.12
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-CLpN99Rl.es.js → PdfViewer-BsJq49rR.es.js} +1 -1
- package/dist/chunks/{PdfViewer-CvsrAT4c.cjs → PdfViewer-D8L8mpOs.cjs} +1 -1
- package/dist/chunks/{index-DL9bff78-Cf4UBVvQ.cjs → index-BNr0wgOU-Bg5kSvF0.cjs} +1 -1
- package/dist/chunks/{index-DL9bff78-8izww2lB.es.js → index-BNr0wgOU-j0xGZdr7.es.js} +1 -1
- package/dist/chunks/{index-CNPV5EVY.es.js → index-ByV1n--x.es.js} +3 -3
- package/dist/chunks/{index-sLveeSfi.cjs → index-x4srxOl3.cjs} +3 -3
- package/dist/chunks/{super-editor.es-0SXIzzbj.es.js → super-editor.es-C0LbO3l0.es.js} +103 -45
- package/dist/chunks/{super-editor.es-Dy32MdYk.cjs → super-editor.es-CANt5-KH.cjs} +103 -45
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DMwo26F4.js → converter-AHcrZseN.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-CuoYR_fZ.js → docx-zipper-BAc8o9wi.js} +1 -1
- package/dist/super-editor/chunks/{editor-BQ9mPcm5.js → editor-BwNyV6ke.js} +104 -46
- package/dist/super-editor/chunks/{index-DL9bff78.js → index-BNr0wgOU.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-D59d-aMm.js → toolbar-Bx1rJX7n.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/tab/helpers/tabDecorations.d.ts +4 -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 +105 -47
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ListItemNodeView_instances, init_fn3, applyIndentStyling_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-AHcrZseN.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-BAc8o9wi.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -15002,7 +15002,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15002
15002
|
{ default: remarkStringify },
|
|
15003
15003
|
{ default: remarkGfm }
|
|
15004
15004
|
] = await Promise.all([
|
|
15005
|
-
import("./index-
|
|
15005
|
+
import("./index-BNr0wgOU.js"),
|
|
15006
15006
|
import("./index-DRCvimau.js"),
|
|
15007
15007
|
import("./index-C_x_N6Uh.js"),
|
|
15008
15008
|
import("./index-D_sWOSiG.js"),
|
|
@@ -15220,7 +15220,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15220
15220
|
* @returns {Object | void} Migration results
|
|
15221
15221
|
*/
|
|
15222
15222
|
processCollaborationMigrations() {
|
|
15223
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.
|
|
15223
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.28.1");
|
|
15224
15224
|
if (!this.options.ydoc) return;
|
|
15225
15225
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
15226
15226
|
let docVersion = metaMap.get("version");
|
|
@@ -20972,10 +20972,16 @@ const getTabDecorations = (doc2, view, helpers2, from2 = 0, to = null) => {
|
|
|
20972
20972
|
const paragraphContext = getParagraphContext($pos, paragraphCache, helpers2);
|
|
20973
20973
|
if (!paragraphContext) return;
|
|
20974
20974
|
try {
|
|
20975
|
-
const { tabStops, flattened, startPos } = paragraphContext;
|
|
20976
|
-
const entryIndex =
|
|
20977
|
-
if (entryIndex ===
|
|
20978
|
-
|
|
20975
|
+
const { tabStops, flattened, positionMap, startPos } = paragraphContext;
|
|
20976
|
+
const entryIndex = positionMap.get(pos);
|
|
20977
|
+
if (entryIndex === void 0) return;
|
|
20978
|
+
if (paragraphContext.indentWidth === void 0) {
|
|
20979
|
+
paragraphContext.indentWidth = getIndentWidth(view, startPos, paragraphContext.indent, coordCache, domPosCache);
|
|
20980
|
+
}
|
|
20981
|
+
if (paragraphContext.tabHeight === void 0) {
|
|
20982
|
+
paragraphContext.tabHeight = calcTabHeight($pos);
|
|
20983
|
+
}
|
|
20984
|
+
const indentWidth = paragraphContext.indentWidth;
|
|
20979
20985
|
const accumulatedTabWidth = paragraphContext.accumulatedTabWidth || 0;
|
|
20980
20986
|
const currentWidth = indentWidth + measureRangeWidth(view, startPos + 1, pos, coordCache, domPosCache) + accumulatedTabWidth;
|
|
20981
20987
|
let tabWidth;
|
|
@@ -21017,7 +21023,7 @@ const getTabDecorations = (doc2, view, helpers2, from2 = 0, to = null) => {
|
|
|
21017
21023
|
tabWidth = defaultTabDistance - currentWidth % defaultLineLength % defaultTabDistance;
|
|
21018
21024
|
if (tabWidth === 0) tabWidth = defaultTabDistance;
|
|
21019
21025
|
}
|
|
21020
|
-
const tabHeight =
|
|
21026
|
+
const tabHeight = paragraphContext.tabHeight;
|
|
21021
21027
|
decorations.push(
|
|
21022
21028
|
Decoration.node(pos, pos + node.nodeSize, {
|
|
21023
21029
|
style: `width: ${tabWidth}px; height: ${tabHeight};${extraStyles}`
|
|
@@ -21045,13 +21051,16 @@ function getParagraphContext($pos, cache, helpers2) {
|
|
|
21045
21051
|
tabStops = style.definition.styles.tabStops;
|
|
21046
21052
|
}
|
|
21047
21053
|
}
|
|
21054
|
+
const { entries, positionMap } = flattenParagraph(node, startPos);
|
|
21048
21055
|
cache.set(startPos, {
|
|
21049
21056
|
paragraph: node,
|
|
21050
21057
|
paragraphDepth: depth,
|
|
21051
21058
|
startPos,
|
|
21052
21059
|
indent: node.attrs?.indent || {},
|
|
21053
21060
|
tabStops,
|
|
21054
|
-
flattened:
|
|
21061
|
+
flattened: entries,
|
|
21062
|
+
positionMap,
|
|
21063
|
+
// Store position map for O(1) lookups
|
|
21055
21064
|
accumulatedTabWidth: 0
|
|
21056
21065
|
});
|
|
21057
21066
|
}
|
|
@@ -21062,6 +21071,7 @@ function getParagraphContext($pos, cache, helpers2) {
|
|
|
21062
21071
|
}
|
|
21063
21072
|
function flattenParagraph(paragraph, paragraphStartPos) {
|
|
21064
21073
|
const entries = [];
|
|
21074
|
+
const positionMap = /* @__PURE__ */ new Map();
|
|
21065
21075
|
const walk = (node, basePos) => {
|
|
21066
21076
|
if (!node) return;
|
|
21067
21077
|
if (node.type?.name === "run") {
|
|
@@ -21071,13 +21081,16 @@ function flattenParagraph(paragraph, paragraphStartPos) {
|
|
|
21071
21081
|
});
|
|
21072
21082
|
return;
|
|
21073
21083
|
}
|
|
21074
|
-
|
|
21084
|
+
const pos = basePos - 1;
|
|
21085
|
+
const index2 = entries.length;
|
|
21086
|
+
entries.push({ node, pos });
|
|
21087
|
+
positionMap.set(pos, index2);
|
|
21075
21088
|
};
|
|
21076
21089
|
paragraph.forEach((child, offset2) => {
|
|
21077
21090
|
const childPos = paragraphStartPos + offset2 + 1;
|
|
21078
21091
|
walk(child, childPos);
|
|
21079
21092
|
});
|
|
21080
|
-
return entries;
|
|
21093
|
+
return { entries, positionMap };
|
|
21081
21094
|
}
|
|
21082
21095
|
function findNextTabIndex(flattened, fromIndex) {
|
|
21083
21096
|
for (let i = fromIndex; i < flattened.length; i++) {
|
|
@@ -21235,6 +21248,21 @@ const TabNode = Node$1.create({
|
|
|
21235
21248
|
},
|
|
21236
21249
|
addPmPlugins() {
|
|
21237
21250
|
const { view, helpers: helpers2 } = this.editor;
|
|
21251
|
+
const mergeRanges = (ranges) => {
|
|
21252
|
+
if (ranges.length === 0) return [];
|
|
21253
|
+
const sorted = ranges.slice().sort((a, b) => a[0] - b[0]);
|
|
21254
|
+
const merged = [sorted[0]];
|
|
21255
|
+
for (let i = 1; i < sorted.length; i++) {
|
|
21256
|
+
const [start2, end2] = sorted[i];
|
|
21257
|
+
const last = merged[merged.length - 1];
|
|
21258
|
+
if (start2 <= last[1]) {
|
|
21259
|
+
last[1] = Math.max(last[1], end2);
|
|
21260
|
+
} else {
|
|
21261
|
+
merged.push([start2, end2]);
|
|
21262
|
+
}
|
|
21263
|
+
}
|
|
21264
|
+
return merged;
|
|
21265
|
+
};
|
|
21238
21266
|
const tabPlugin = new Plugin({
|
|
21239
21267
|
name: "tabPlugin",
|
|
21240
21268
|
key: new PluginKey("tabPlugin"),
|
|
@@ -21245,43 +21273,56 @@ const TabNode = Node$1.create({
|
|
|
21245
21273
|
apply(tr, { decorations }, _oldState, newState) {
|
|
21246
21274
|
if (!decorations) {
|
|
21247
21275
|
decorations = DecorationSet.create(newState.doc, getTabDecorations(newState.doc, view, helpers2));
|
|
21276
|
+
return { decorations };
|
|
21248
21277
|
}
|
|
21249
|
-
if (!tr.docChanged || tr.getMeta("blockNodeInitialUpdate")
|
|
21278
|
+
if (!tr.docChanged || tr.getMeta("blockNodeInitialUpdate")) {
|
|
21250
21279
|
return { decorations };
|
|
21251
21280
|
}
|
|
21252
21281
|
decorations = decorations.map(tr.mapping, tr.doc);
|
|
21253
|
-
|
|
21282
|
+
const rangesToRecalculate = [];
|
|
21283
|
+
const containsTab = (node) => node.type.name === "tab";
|
|
21254
21284
|
tr.steps.forEach((step, index2) => {
|
|
21255
|
-
|
|
21256
|
-
|
|
21257
|
-
|
|
21258
|
-
|
|
21259
|
-
|
|
21260
|
-
|
|
21261
|
-
|
|
21262
|
-
|
|
21263
|
-
|
|
21264
|
-
addRange = true;
|
|
21285
|
+
if (!(step instanceof ReplaceStep || step instanceof ReplaceAroundStep$1)) {
|
|
21286
|
+
return;
|
|
21287
|
+
}
|
|
21288
|
+
let hasTabInRange = false;
|
|
21289
|
+
if (step.slice?.content) {
|
|
21290
|
+
step.slice.content.descendants((node) => {
|
|
21291
|
+
if (containsTab(node)) {
|
|
21292
|
+
hasTabInRange = true;
|
|
21293
|
+
return false;
|
|
21265
21294
|
}
|
|
21266
21295
|
});
|
|
21267
|
-
if (!addRange && step.slice?.content) {
|
|
21268
|
-
step.slice.content.descendants((node) => {
|
|
21269
|
-
if (node.type.name === "tab") {
|
|
21270
|
-
addRange = true;
|
|
21271
|
-
}
|
|
21272
|
-
});
|
|
21273
|
-
}
|
|
21274
|
-
if (addRange) {
|
|
21275
|
-
rangesToRecalculate.push([start2, end2]);
|
|
21276
|
-
}
|
|
21277
21296
|
}
|
|
21278
|
-
|
|
21279
|
-
|
|
21280
|
-
|
|
21281
|
-
|
|
21282
|
-
|
|
21297
|
+
if (!hasTabInRange) {
|
|
21298
|
+
tr.docs[index2].nodesBetween(step.from, step.to, (node) => {
|
|
21299
|
+
if (containsTab(node)) {
|
|
21300
|
+
hasTabInRange = true;
|
|
21301
|
+
return false;
|
|
21302
|
+
}
|
|
21303
|
+
});
|
|
21304
|
+
}
|
|
21305
|
+
if (!hasTabInRange) {
|
|
21306
|
+
return;
|
|
21307
|
+
}
|
|
21308
|
+
let fromPos = step.from;
|
|
21309
|
+
let toPos = step.to;
|
|
21310
|
+
for (let i = index2; i < tr.steps.length; i++) {
|
|
21311
|
+
const stepMap = tr.steps[i].getMap();
|
|
21312
|
+
fromPos = stepMap.map(fromPos, -1);
|
|
21313
|
+
toPos = stepMap.map(toPos, 1);
|
|
21314
|
+
}
|
|
21315
|
+
const $from = newState.doc.resolve(fromPos);
|
|
21316
|
+
const $to = newState.doc.resolve(toPos);
|
|
21317
|
+
const start2 = $from.start(Math.min($from.depth, 1));
|
|
21318
|
+
const end2 = $to.end(Math.min($to.depth, 1));
|
|
21319
|
+
rangesToRecalculate.push([start2, end2]);
|
|
21283
21320
|
});
|
|
21284
|
-
rangesToRecalculate.
|
|
21321
|
+
if (rangesToRecalculate.length === 0) {
|
|
21322
|
+
return { decorations };
|
|
21323
|
+
}
|
|
21324
|
+
const mergedRanges = mergeRanges(rangesToRecalculate);
|
|
21325
|
+
mergedRanges.forEach(([start2, end2]) => {
|
|
21285
21326
|
const oldDecorations = decorations.find(start2, end2);
|
|
21286
21327
|
decorations = decorations.remove(oldDecorations);
|
|
21287
21328
|
const newDecorations = getTabDecorations(newState.doc, view, helpers2, start2, end2);
|
|
@@ -27445,15 +27486,15 @@ const Image = Node$1.create({
|
|
|
27445
27486
|
style += "float: right;";
|
|
27446
27487
|
floatRight = true;
|
|
27447
27488
|
} else if (["largest", "bothSides"].includes(attrs.wrapText)) {
|
|
27448
|
-
const
|
|
27489
|
+
const pageStylesData = getDataFromPageStyles({
|
|
27449
27490
|
editor: this.editor,
|
|
27450
27491
|
marginOffset,
|
|
27451
27492
|
size,
|
|
27452
27493
|
attrs
|
|
27453
27494
|
});
|
|
27454
|
-
style +=
|
|
27455
|
-
floatRight =
|
|
27456
|
-
baseHorizontal =
|
|
27495
|
+
style += pageStylesData.style;
|
|
27496
|
+
floatRight = pageStylesData.floatRight;
|
|
27497
|
+
baseHorizontal = pageStylesData.baseHorizontal;
|
|
27457
27498
|
}
|
|
27458
27499
|
if (attrs.distTop) margin.top += attrs.distTop;
|
|
27459
27500
|
if (attrs.distBottom) margin.bottom += attrs.distBottom;
|
|
@@ -27461,7 +27502,7 @@ const Image = Node$1.create({
|
|
|
27461
27502
|
if (attrs.distRight) margin.right += attrs.distRight;
|
|
27462
27503
|
break;
|
|
27463
27504
|
case "Through":
|
|
27464
|
-
case "Tight":
|
|
27505
|
+
case "Tight": {
|
|
27465
27506
|
style += "clear: both;";
|
|
27466
27507
|
const pageStylesData = getDataFromPageStyles({
|
|
27467
27508
|
editor: this.editor,
|
|
@@ -27498,11 +27539,14 @@ const Image = Node$1.create({
|
|
|
27498
27539
|
style += `shape-outside: polygon(${points});`;
|
|
27499
27540
|
}
|
|
27500
27541
|
break;
|
|
27542
|
+
}
|
|
27501
27543
|
case "TopAndBottom":
|
|
27502
27544
|
style += "display: block; clear: both;";
|
|
27545
|
+
if (!anchorData) {
|
|
27546
|
+
centered = true;
|
|
27547
|
+
}
|
|
27503
27548
|
if (attrs.distTop) margin.top += attrs.distTop;
|
|
27504
27549
|
if (attrs.distBottom) margin.bottom += attrs.distBottom;
|
|
27505
|
-
centered = true;
|
|
27506
27550
|
break;
|
|
27507
27551
|
}
|
|
27508
27552
|
}
|
|
@@ -27522,6 +27566,20 @@ const Image = Node$1.create({
|
|
|
27522
27566
|
style += `position: absolute; ${anchorData.alignH}: 0;`;
|
|
27523
27567
|
}
|
|
27524
27568
|
break;
|
|
27569
|
+
case "column":
|
|
27570
|
+
if (anchorData.alignH === "center") {
|
|
27571
|
+
centered = true;
|
|
27572
|
+
} else if (anchorData.alignH === "right") {
|
|
27573
|
+
floatRight = true;
|
|
27574
|
+
if (!style.includes("float: right;")) {
|
|
27575
|
+
style += "float: right;";
|
|
27576
|
+
}
|
|
27577
|
+
} else if (anchorData.alignH === "left") {
|
|
27578
|
+
if (!style.includes("float: left;")) {
|
|
27579
|
+
style += "float: left;";
|
|
27580
|
+
}
|
|
27581
|
+
}
|
|
27582
|
+
break;
|
|
27525
27583
|
}
|
|
27526
27584
|
}
|
|
27527
27585
|
if (hasAnchorData || hasMarginOffsets) {
|
|
@@ -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-AHcrZseN.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BwNyV6ke.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-BwNyV6ke.js";
|
|
2
|
+
import "./chunks/converter-AHcrZseN.js";
|
|
3
|
+
import "./chunks/docx-zipper-BAc8o9wi.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export function getParagraphContext($pos: any, cache: any, helpers: any): any;
|
|
2
|
-
export function flattenParagraph(paragraph: any, paragraphStartPos: any):
|
|
2
|
+
export function flattenParagraph(paragraph: any, paragraphStartPos: any): {
|
|
3
|
+
entries: any[];
|
|
4
|
+
positionMap: Map<any, any>;
|
|
5
|
+
};
|
|
3
6
|
export function findNextTabIndex(flattened: any, fromIndex: any): any;
|
|
4
7
|
export function findDecimalBreakPos(flattened: any, startIndex: any, breakChar: any): any;
|
|
5
8
|
export function measureRangeWidth(view: any, from: any, to: any, coordCache?: any, domPosCache?: any): number;
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { c1, a5, i, a2 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { v, C, w, T, q, x, t } from "./chunks/editor-
|
|
12
|
+
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-AHcrZseN.js";
|
|
13
|
+
import { c1, a5, i, a2 } from "./chunks/converter-AHcrZseN.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-BwNyV6ke.js";
|
|
15
|
+
import { v, C, w, T, q, x, t } from "./chunks/editor-BwNyV6ke.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-Bx1rJX7n.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-BAc8o9wi.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-CANt5-KH.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-C0LbO3l0.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-CANt5-KH.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-x4srxOl3.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-C0LbO3l0.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-ByV1n--x.es.js";
|
|
3
3
|
import "./chunks/vue-ZWZLQtoU.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
export {
|