@harbour-enterprises/superdoc 1.3.0-next.10 → 1.3.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-BBQ-ukct.cjs → PdfViewer-B4cw8sRa.cjs} +2 -2
- package/dist/chunks/{PdfViewer-CgwCQZZ6.es.js → PdfViewer-D4-tXW9I.es.js} +2 -2
- package/dist/chunks/{SuperConverter-BO5wIcsr.es.js → SuperConverter-BQHQ2WON.es.js} +13 -12
- package/dist/chunks/{SuperConverter-BIATaPlu.cjs → SuperConverter-BauKfBRr.cjs} +2 -1
- package/dist/chunks/{index-D9yb-45i.cjs → index-BC056HXc.cjs} +4 -4
- package/dist/chunks/{index-yNMvRgm_.es.js → index-BPi2Cjky.es.js} +4 -4
- package/dist/chunks/{index-Bv9MbOsf.es.js → index-BRomAwaA.es.js} +156 -18
- package/dist/chunks/{index-B045iT2T.cjs → index-CCWqRqAf.cjs} +156 -18
- package/dist/style.css +6 -6
- package/dist/super-editor/converter.cjs +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +3 -3
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +157 -19
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-C8_CqJxM.cjs");
|
|
3
3
|
const helpers$1 = require("./helpers-nOdwpmwb.cjs");
|
|
4
|
-
const superEditor_converter = require("./SuperConverter-
|
|
4
|
+
const superEditor_converter = require("./SuperConverter-BauKfBRr.cjs");
|
|
5
5
|
const vue = require("./vue-De9wkgLl.cjs");
|
|
6
6
|
require("./jszip.min-BPh2MMAa.cjs");
|
|
7
7
|
const eventemitter3 = require("./eventemitter3-BQuRcMPI.cjs");
|
|
@@ -10953,6 +10953,105 @@ const setSectionHeaderFooterAtSelection = ({ headerInches, footerInches } = {})
|
|
|
10953
10953
|
tr.setNodeMarkup(pos, void 0, nextAttrs, node.marks);
|
|
10954
10954
|
return true;
|
|
10955
10955
|
};
|
|
10956
|
+
function findGoverningSectPrParagraph(doc2, selectionPos) {
|
|
10957
|
+
const candidates = [];
|
|
10958
|
+
doc2.descendants((node, nodePos) => {
|
|
10959
|
+
if (node.type?.name === "paragraph" && node.attrs?.paragraphProperties?.sectPr) {
|
|
10960
|
+
candidates.push({ node, pos: nodePos });
|
|
10961
|
+
}
|
|
10962
|
+
});
|
|
10963
|
+
if (!candidates.length) return null;
|
|
10964
|
+
const inside = candidates.find((c2) => selectionPos >= c2.pos && selectionPos < c2.pos + c2.node.nodeSize);
|
|
10965
|
+
if (inside) return inside;
|
|
10966
|
+
const atOrAfter = candidates.find((c2) => c2.pos >= selectionPos);
|
|
10967
|
+
return atOrAfter ?? candidates[candidates.length - 1];
|
|
10968
|
+
}
|
|
10969
|
+
const setSectionPageMarginsAtSelection = ({ topInches, rightInches, bottomInches, leftInches } = {}) => ({ tr, state, editor }) => {
|
|
10970
|
+
if (!state || !editor) {
|
|
10971
|
+
console.warn("[setSectionPageMarginsAtSelection] Missing state or editor");
|
|
10972
|
+
return false;
|
|
10973
|
+
}
|
|
10974
|
+
const hasTop = typeof topInches === "number";
|
|
10975
|
+
const hasRight = typeof rightInches === "number";
|
|
10976
|
+
const hasBottom = typeof bottomInches === "number";
|
|
10977
|
+
const hasLeft = typeof leftInches === "number";
|
|
10978
|
+
if (!hasTop && !hasRight && !hasBottom && !hasLeft) {
|
|
10979
|
+
console.warn("[setSectionPageMarginsAtSelection] No margin values provided");
|
|
10980
|
+
return false;
|
|
10981
|
+
}
|
|
10982
|
+
if (hasTop && topInches < 0 || hasRight && rightInches < 0 || hasBottom && bottomInches < 0 || hasLeft && leftInches < 0) {
|
|
10983
|
+
console.warn("[setSectionPageMarginsAtSelection] Margin values must be >= 0");
|
|
10984
|
+
return false;
|
|
10985
|
+
}
|
|
10986
|
+
const updates = {};
|
|
10987
|
+
if (hasTop) updates.topInches = topInches;
|
|
10988
|
+
if (hasRight) updates.rightInches = rightInches;
|
|
10989
|
+
if (hasBottom) updates.bottomInches = bottomInches;
|
|
10990
|
+
if (hasLeft) updates.leftInches = leftInches;
|
|
10991
|
+
const { from: from3 } = state.selection;
|
|
10992
|
+
const governing = findGoverningSectPrParagraph(state.doc, from3);
|
|
10993
|
+
if (governing) {
|
|
10994
|
+
const { node, pos } = governing;
|
|
10995
|
+
const paraProps = node.attrs?.paragraphProperties || null;
|
|
10996
|
+
const existingSectPr = paraProps?.sectPr || null;
|
|
10997
|
+
if (!existingSectPr) {
|
|
10998
|
+
console.warn("[setSectionPageMarginsAtSelection] Paragraph found but has no sectPr");
|
|
10999
|
+
return false;
|
|
11000
|
+
}
|
|
11001
|
+
const sectPr2 = JSON.parse(JSON.stringify(existingSectPr));
|
|
11002
|
+
try {
|
|
11003
|
+
updateSectionMargins({ type: "sectPr", sectPr: sectPr2 }, updates);
|
|
11004
|
+
} catch (err) {
|
|
11005
|
+
console.error("[setSectionPageMarginsAtSelection] Failed to update sectPr:", err);
|
|
11006
|
+
return false;
|
|
11007
|
+
}
|
|
11008
|
+
const resolved = getSectPrMargins(sectPr2);
|
|
11009
|
+
const normalizedSectionMargins = {
|
|
11010
|
+
top: resolved.top ?? null,
|
|
11011
|
+
right: resolved.right ?? null,
|
|
11012
|
+
bottom: resolved.bottom ?? null,
|
|
11013
|
+
left: resolved.left ?? null,
|
|
11014
|
+
header: resolved.header ?? null,
|
|
11015
|
+
footer: resolved.footer ?? null
|
|
11016
|
+
};
|
|
11017
|
+
const newParagraphProperties = { ...paraProps || {}, sectPr: sectPr2 };
|
|
11018
|
+
const nextAttrs = {
|
|
11019
|
+
...node.attrs,
|
|
11020
|
+
paragraphProperties: newParagraphProperties,
|
|
11021
|
+
sectionMargins: normalizedSectionMargins
|
|
11022
|
+
};
|
|
11023
|
+
tr.setNodeMarkup(pos, void 0, nextAttrs, node.marks);
|
|
11024
|
+
tr.setMeta("forceUpdatePagination", true);
|
|
11025
|
+
return true;
|
|
11026
|
+
}
|
|
11027
|
+
const docAttrs = state.doc.attrs ?? {};
|
|
11028
|
+
const converter = editor.converter ?? null;
|
|
11029
|
+
const baseBodySectPr = docAttrs.bodySectPr || converter?.bodySectPr || null;
|
|
11030
|
+
const sectPr = baseBodySectPr != null ? JSON.parse(JSON.stringify(baseBodySectPr)) : { type: "element", name: "w:sectPr", elements: [] };
|
|
11031
|
+
try {
|
|
11032
|
+
updateSectionMargins({ type: "sectPr", sectPr }, updates);
|
|
11033
|
+
} catch (err) {
|
|
11034
|
+
console.error("[setSectionPageMarginsAtSelection] Failed to update sectPr:", err);
|
|
11035
|
+
return false;
|
|
11036
|
+
}
|
|
11037
|
+
if (converter) {
|
|
11038
|
+
converter.bodySectPr = sectPr;
|
|
11039
|
+
if (!converter.pageStyles) converter.pageStyles = {};
|
|
11040
|
+
if (!converter.pageStyles.pageMargins) converter.pageStyles.pageMargins = {};
|
|
11041
|
+
const pageMargins = converter.pageStyles.pageMargins;
|
|
11042
|
+
const resolved = getSectPrMargins(sectPr);
|
|
11043
|
+
if (resolved.top != null) pageMargins.top = resolved.top;
|
|
11044
|
+
if (resolved.right != null) pageMargins.right = resolved.right;
|
|
11045
|
+
if (resolved.bottom != null) pageMargins.bottom = resolved.bottom;
|
|
11046
|
+
if (resolved.left != null) pageMargins.left = resolved.left;
|
|
11047
|
+
if (resolved.header != null) pageMargins.header = resolved.header;
|
|
11048
|
+
if (resolved.footer != null) pageMargins.footer = resolved.footer;
|
|
11049
|
+
}
|
|
11050
|
+
const nextDocAttrs = { ...docAttrs, bodySectPr: sectPr };
|
|
11051
|
+
tr.setNodeMarkup(0, void 0, nextDocAttrs);
|
|
11052
|
+
tr.setMeta("forceUpdatePagination", true);
|
|
11053
|
+
return true;
|
|
11054
|
+
};
|
|
10956
11055
|
const insertSectionBreakAtSelection = ({ headerInches, footerInches } = {}) => ({ tr, state, editor }) => {
|
|
10957
11056
|
if (!state || !editor) {
|
|
10958
11057
|
console.warn("[insertSectionBreakAtSelection] Missing state or editor");
|
|
@@ -11484,6 +11583,7 @@ const commands$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
11484
11583
|
setMeta,
|
|
11485
11584
|
setNode,
|
|
11486
11585
|
setSectionHeaderFooterAtSelection,
|
|
11586
|
+
setSectionPageMarginsAtSelection,
|
|
11487
11587
|
setTextIndentation,
|
|
11488
11588
|
setTextSelection,
|
|
11489
11589
|
skipTab,
|
|
@@ -15351,7 +15451,7 @@ const canUseDOM = () => {
|
|
|
15351
15451
|
return false;
|
|
15352
15452
|
}
|
|
15353
15453
|
};
|
|
15354
|
-
const summaryVersion = "1.3.0-next.
|
|
15454
|
+
const summaryVersion = "1.3.0-next.12";
|
|
15355
15455
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
15356
15456
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
15357
15457
|
function mapAttributes(attrs) {
|
|
@@ -17353,9 +17453,8 @@ class Editor extends EventEmitter {
|
|
|
17353
17453
|
try {
|
|
17354
17454
|
const jsonObj = json;
|
|
17355
17455
|
const attrs = jsonObj.attrs;
|
|
17356
|
-
const hasBody = attrs && "bodySectPr" in attrs;
|
|
17357
17456
|
const converter = this.converter;
|
|
17358
|
-
if (
|
|
17457
|
+
if (converter && converter.bodySectPr) {
|
|
17359
17458
|
jsonObj.attrs = attrs || {};
|
|
17360
17459
|
jsonObj.attrs.bodySectPr = converter.bodySectPr;
|
|
17361
17460
|
}
|
|
@@ -17984,7 +18083,7 @@ class Editor extends EventEmitter {
|
|
|
17984
18083
|
* Process collaboration migrations
|
|
17985
18084
|
*/
|
|
17986
18085
|
processCollaborationMigrations() {
|
|
17987
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.3.0-next.
|
|
18086
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.3.0-next.12");
|
|
17988
18087
|
if (!this.options.ydoc) return;
|
|
17989
18088
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
17990
18089
|
let docVersion = metaMap.get("version");
|
|
@@ -40283,6 +40382,13 @@ const applyTrackedChangesModeToRuns = (runs, config, hyperlinkConfig, applyMarks
|
|
|
40283
40382
|
);
|
|
40284
40383
|
}
|
|
40285
40384
|
});
|
|
40385
|
+
if ((config.mode === "original" || config.mode === "final") && config.enabled) {
|
|
40386
|
+
filtered.forEach((run) => {
|
|
40387
|
+
if (isTextRun$1(run) && run.trackedChange && (run.trackedChange.kind === "insert" || run.trackedChange.kind === "delete")) {
|
|
40388
|
+
delete run.trackedChange;
|
|
40389
|
+
}
|
|
40390
|
+
});
|
|
40391
|
+
}
|
|
40286
40392
|
}
|
|
40287
40393
|
return filtered;
|
|
40288
40394
|
};
|
|
@@ -43348,7 +43454,16 @@ const computeParagraphAttrs = (para, styleContext, listCounterContext, converter
|
|
|
43348
43454
|
if (!value || typeof value !== "object") return;
|
|
43349
43455
|
return normalizePxIndent(value) ?? convertIndentTwipsToPx(value);
|
|
43350
43456
|
};
|
|
43351
|
-
const
|
|
43457
|
+
const hydratedIndentPx = convertIndentTwipsToPx(hydrated?.indent);
|
|
43458
|
+
const paragraphIndentPx = convertIndentTwipsToPx(paragraphProps.indent);
|
|
43459
|
+
const textIndentPx = normalizeParagraphIndent(attrs.textIndent);
|
|
43460
|
+
const attrsIndentPx = normalizeIndentObject(attrs.indent);
|
|
43461
|
+
const indentChain = [];
|
|
43462
|
+
if (hydratedIndentPx) indentChain.push({ indent: hydratedIndentPx });
|
|
43463
|
+
if (paragraphIndentPx) indentChain.push({ indent: paragraphIndentPx });
|
|
43464
|
+
if (textIndentPx) indentChain.push({ indent: textIndentPx });
|
|
43465
|
+
if (attrsIndentPx) indentChain.push({ indent: attrsIndentPx });
|
|
43466
|
+
const normalizedIndent = indentChain.length ? superEditor_converter.combineIndentProperties(indentChain).indent : void 0;
|
|
43352
43467
|
const unwrapTabStops = (tabStops) => {
|
|
43353
43468
|
if (!Array.isArray(tabStops)) {
|
|
43354
43469
|
return void 0;
|
|
@@ -49604,7 +49719,11 @@ async function measureTableBlock(block, constraints) {
|
|
|
49604
49719
|
}
|
|
49605
49720
|
async function measureImageBlock(block, constraints) {
|
|
49606
49721
|
const intrinsic = getIntrinsicImageSize(block, constraints.maxWidth);
|
|
49607
|
-
const
|
|
49722
|
+
const isBlockBehindDoc = block.anchor?.behindDoc;
|
|
49723
|
+
const isBlockWrapBehindDoc = block.wrap?.type === "None" && block.wrap?.behindDoc;
|
|
49724
|
+
const bypassWidthConstraint = isBlockBehindDoc || isBlockWrapBehindDoc;
|
|
49725
|
+
const isWidthConstraintBypassed = bypassWidthConstraint || constraints.maxWidth <= 0;
|
|
49726
|
+
const maxWidth = isWidthConstraintBypassed ? intrinsic.width : constraints.maxWidth;
|
|
49608
49727
|
const hasNegativeVerticalPosition = block.anchor?.isAnchored && (typeof block.anchor?.offsetV === "number" && block.anchor.offsetV < 0 || typeof block.margin?.top === "number" && block.margin.top < 0);
|
|
49609
49728
|
const maxHeight = hasNegativeVerticalPosition || !constraints.maxHeight || constraints.maxHeight <= 0 ? Infinity : constraints.maxHeight;
|
|
49610
49729
|
const widthScale = maxWidth / intrinsic.width;
|
|
@@ -50771,9 +50890,10 @@ class PresentationEditor extends EventEmitter {
|
|
|
50771
50890
|
throw new TypeError("[PresentationEditor] setTrackedChangesOverrides expects an object or undefined");
|
|
50772
50891
|
}
|
|
50773
50892
|
if (overrides !== void 0) {
|
|
50774
|
-
|
|
50893
|
+
const validModes = ["review", "original", "final", "off"];
|
|
50894
|
+
if (overrides.mode !== void 0 && !validModes.includes(overrides.mode)) {
|
|
50775
50895
|
throw new TypeError(
|
|
50776
|
-
`[PresentationEditor] Invalid tracked changes mode "${overrides.mode}". Must be one of:
|
|
50896
|
+
`[PresentationEditor] Invalid tracked changes mode "${overrides.mode}". Must be one of: ${validModes.join(", ")}`
|
|
50777
50897
|
);
|
|
50778
50898
|
}
|
|
50779
50899
|
if (overrides.enabled !== void 0 && typeof overrides.enabled !== "boolean") {
|
|
@@ -57835,7 +57955,11 @@ const Document = Node$1.create({
|
|
|
57835
57955
|
*/
|
|
57836
57956
|
clearDocument: () => ({ commands: commands2 }) => {
|
|
57837
57957
|
return commands2.setContent("<p></p>");
|
|
57838
|
-
}
|
|
57958
|
+
},
|
|
57959
|
+
/**
|
|
57960
|
+
* Set section page margins (top/right/bottom/left) for the section at the current selection.
|
|
57961
|
+
*/
|
|
57962
|
+
setSectionPageMarginsAtSelection
|
|
57839
57963
|
};
|
|
57840
57964
|
}
|
|
57841
57965
|
});
|
|
@@ -64344,6 +64468,10 @@ const Image = Node$1.create({
|
|
|
64344
64468
|
}
|
|
64345
64469
|
const hasAnchorData = Boolean(anchorData);
|
|
64346
64470
|
const hasMarginOffsets = marginOffset?.horizontal != null || marginOffset?.top != null;
|
|
64471
|
+
const isWrapBehindDoc = wrap?.attrs?.behindDoc;
|
|
64472
|
+
const isAnchorBehindDoc = anchorData?.behindDoc;
|
|
64473
|
+
const isBehindDocAnchor = wrap?.type === "None" && (isWrapBehindDoc || isAnchorBehindDoc);
|
|
64474
|
+
const isAbsolutelyPositioned = style2.includes("position: absolute;");
|
|
64347
64475
|
if (hasAnchorData) {
|
|
64348
64476
|
switch (anchorData.hRelativeFrom) {
|
|
64349
64477
|
case "page":
|
|
@@ -64371,7 +64499,6 @@ const Image = Node$1.create({
|
|
|
64371
64499
|
style2 += "float: left;";
|
|
64372
64500
|
}
|
|
64373
64501
|
} else if (!anchorData.alignH && marginOffset?.horizontal != null) {
|
|
64374
|
-
const isAbsolutelyPositioned = style2.includes("position: absolute;");
|
|
64375
64502
|
if (isAbsolutelyPositioned) {
|
|
64376
64503
|
style2 += `left: ${baseHorizontal}px;`;
|
|
64377
64504
|
style2 += "max-width: none;";
|
|
@@ -64385,7 +64512,8 @@ const Image = Node$1.create({
|
|
|
64385
64512
|
const relativeFromPageV = anchorData?.vRelativeFrom === "page";
|
|
64386
64513
|
const relativeFromMarginV = anchorData?.vRelativeFrom === "margin";
|
|
64387
64514
|
const maxMarginV = 500;
|
|
64388
|
-
const
|
|
64515
|
+
const allowNegativeTopOffset = isBehindDocAnchor;
|
|
64516
|
+
const baseTop = allowNegativeTopOffset ? marginOffset?.top ?? 0 : Math.max(0, marginOffset?.top ?? 0);
|
|
64389
64517
|
let rotationHorizontal = 0;
|
|
64390
64518
|
let rotationTop = 0;
|
|
64391
64519
|
const { rotation: rotation2 } = transformData ?? {};
|
|
@@ -64404,7 +64532,10 @@ const Image = Node$1.create({
|
|
|
64404
64532
|
margin.left += horizontal;
|
|
64405
64533
|
}
|
|
64406
64534
|
}
|
|
64407
|
-
|
|
64535
|
+
const appliedTopViaStyle = isAbsolutelyPositioned && allowNegativeTopOffset && !relativeFromMarginV;
|
|
64536
|
+
if (appliedTopViaStyle) {
|
|
64537
|
+
style2 += `top: ${top2}px;`;
|
|
64538
|
+
} else if (top2 && !relativeFromMarginV) {
|
|
64408
64539
|
if (relativeFromPageV && top2 >= maxMarginV) margin.top += maxMarginV;
|
|
64409
64540
|
else margin.top += top2;
|
|
64410
64541
|
}
|
|
@@ -64417,6 +64548,9 @@ const Image = Node$1.create({
|
|
|
64417
64548
|
}
|
|
64418
64549
|
if (margin.top) style2 += `margin-top: ${margin.top}px;`;
|
|
64419
64550
|
if (margin.bottom) style2 += `margin-bottom: ${margin.bottom}px;`;
|
|
64551
|
+
if (isBehindDocAnchor) {
|
|
64552
|
+
style2 += "max-width: none;";
|
|
64553
|
+
}
|
|
64420
64554
|
const finalAttributes = { ...htmlAttributes };
|
|
64421
64555
|
if (style2) {
|
|
64422
64556
|
const existingStyle = finalAttributes.style || "";
|
|
@@ -90226,10 +90360,14 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
90226
90360
|
const handleMarginChange = ({ side, value }) => {
|
|
90227
90361
|
const base2 = activeEditor.value;
|
|
90228
90362
|
if (!base2) return;
|
|
90229
|
-
const
|
|
90230
|
-
const
|
|
90231
|
-
|
|
90232
|
-
|
|
90363
|
+
const payload = side === "left" ? { leftInches: value } : side === "right" ? { rightInches: value } : side === "top" ? { topInches: value } : side === "bottom" ? { bottomInches: value } : {};
|
|
90364
|
+
const didUpdateSection = typeof base2.commands?.setSectionPageMarginsAtSelection === "function" ? base2.commands.setSectionPageMarginsAtSelection(payload) : false;
|
|
90365
|
+
if (!didUpdateSection) {
|
|
90366
|
+
const pageStyles2 = base2.getPageStyles();
|
|
90367
|
+
const { pageMargins } = pageStyles2;
|
|
90368
|
+
const update = { ...pageMargins, [side]: value };
|
|
90369
|
+
base2?.updatePageStyle({ pageMargins: update });
|
|
90370
|
+
}
|
|
90233
90371
|
};
|
|
90234
90372
|
vue.onBeforeUnmount(() => {
|
|
90235
90373
|
stopPolling();
|
|
@@ -90365,7 +90503,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
90365
90503
|
};
|
|
90366
90504
|
}
|
|
90367
90505
|
});
|
|
90368
|
-
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
90506
|
+
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-3e9da07c"]]);
|
|
90369
90507
|
const _hoisted_1 = ["innerHTML"];
|
|
90370
90508
|
const _sfc_main = {
|
|
90371
90509
|
__name: "SuperInput",
|
package/dist/style.css
CHANGED
|
@@ -1978,10 +1978,10 @@ to {
|
|
|
1978
1978
|
box-shadow: 0 0 4px rgba(74, 144, 226, 0.5);
|
|
1979
1979
|
}
|
|
1980
1980
|
|
|
1981
|
-
.editor-element[data-v-
|
|
1981
|
+
.editor-element[data-v-3e9da07c] {
|
|
1982
1982
|
position: relative;
|
|
1983
1983
|
}
|
|
1984
|
-
.super-editor-container[data-v-
|
|
1984
|
+
.super-editor-container[data-v-3e9da07c] {
|
|
1985
1985
|
width: auto;
|
|
1986
1986
|
height: auto;
|
|
1987
1987
|
/* min-width is controlled via inline style (containerStyle) to scale with zoom */
|
|
@@ -1990,14 +1990,14 @@ to {
|
|
|
1990
1990
|
display: flex;
|
|
1991
1991
|
flex-direction: column;
|
|
1992
1992
|
}
|
|
1993
|
-
.ruler[data-v-
|
|
1993
|
+
.ruler[data-v-3e9da07c] {
|
|
1994
1994
|
margin-bottom: 2px;
|
|
1995
1995
|
}
|
|
1996
|
-
.super-editor[data-v-
|
|
1996
|
+
.super-editor[data-v-3e9da07c] {
|
|
1997
1997
|
color: initial;
|
|
1998
1998
|
overflow: hidden;
|
|
1999
1999
|
}
|
|
2000
|
-
.placeholder-editor[data-v-
|
|
2000
|
+
.placeholder-editor[data-v-3e9da07c] {
|
|
2001
2001
|
position: absolute;
|
|
2002
2002
|
top: 0;
|
|
2003
2003
|
left: 0;
|
|
@@ -2009,7 +2009,7 @@ to {
|
|
|
2009
2009
|
background-color: white;
|
|
2010
2010
|
box-sizing: border-box;
|
|
2011
2011
|
}
|
|
2012
|
-
.placeholder-title[data-v-
|
|
2012
|
+
.placeholder-title[data-v-3e9da07c] {
|
|
2013
2013
|
display: flex;
|
|
2014
2014
|
justify-content: center;
|
|
2015
2015
|
margin-bottom: 40px;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../chunks/jszip-C8_CqJxM.cjs");
|
|
4
4
|
require("../chunks/helpers-nOdwpmwb.cjs");
|
|
5
|
-
const superEditor_converter = require("../chunks/SuperConverter-
|
|
5
|
+
const superEditor_converter = require("../chunks/SuperConverter-BauKfBRr.cjs");
|
|
6
6
|
require("../chunks/uuid-R7L08bOx.cjs");
|
|
7
7
|
exports.SuperConverter = superEditor_converter.SuperConverter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunks/jszip-B1fkPkPJ.es.js";
|
|
2
2
|
import "../chunks/helpers-C8e9wR5l.es.js";
|
|
3
|
-
import { S } from "../chunks/SuperConverter-
|
|
3
|
+
import { S } from "../chunks/SuperConverter-BQHQ2WON.es.js";
|
|
4
4
|
import "../chunks/uuid-CjlX8hrF.es.js";
|
|
5
5
|
export {
|
|
6
6
|
S as SuperConverter
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./chunks/index-
|
|
3
|
+
const index = require("./chunks/index-CCWqRqAf.cjs");
|
|
4
4
|
const superEditor_docxZipper = require("./super-editor/docx-zipper.cjs");
|
|
5
5
|
const superEditor_fileZipper = require("./super-editor/file-zipper.cjs");
|
|
6
6
|
const vue = require("./chunks/vue-De9wkgLl.cjs");
|
|
7
|
-
const superEditor_converter = require("./chunks/SuperConverter-
|
|
7
|
+
const superEditor_converter = require("./chunks/SuperConverter-BauKfBRr.cjs");
|
|
8
8
|
function isNodeType(node, name) {
|
|
9
9
|
return node.type.name === name;
|
|
10
10
|
}
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ax as Node, ay as Mark } from "./chunks/index-
|
|
2
|
-
import { ao, au, a9, ab, aw, am, av, aA, an, ak, aq, az, aa, as, aC, aE, aB, ac, aD, ar, at } from "./chunks/index-
|
|
1
|
+
import { ax as Node, ay as Mark } from "./chunks/index-BRomAwaA.es.js";
|
|
2
|
+
import { ao, au, a9, ab, aw, am, av, aA, an, ak, aq, az, aa, as, aC, aE, aB, ac, aD, ar, at } from "./chunks/index-BRomAwaA.es.js";
|
|
3
3
|
import { default as default2 } from "./super-editor/docx-zipper.es.js";
|
|
4
4
|
import { createZip } from "./super-editor/file-zipper.es.js";
|
|
5
5
|
import { d as defineComponent, E as createElementBlock, G as openBlock, K as createBaseVNode } from "./chunks/vue-BnBKJwCW.es.js";
|
|
6
|
-
import { S, r } from "./chunks/SuperConverter-
|
|
6
|
+
import { S, r } from "./chunks/SuperConverter-BQHQ2WON.es.js";
|
|
7
7
|
function isNodeType(node, name) {
|
|
8
8
|
return node.type.name === name;
|
|
9
9
|
}
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./chunks/index-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
5
|
-
const superEditor_converter = require("./chunks/SuperConverter-
|
|
3
|
+
const index = require("./chunks/index-CCWqRqAf.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-BC056HXc.cjs");
|
|
5
|
+
const superEditor_converter = require("./chunks/SuperConverter-BauKfBRr.cjs");
|
|
6
6
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
7
7
|
require("./chunks/jszip-C8_CqJxM.cjs");
|
|
8
8
|
require("./chunks/helpers-nOdwpmwb.cjs");
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { au, ab, aw, av, as, a7, ac, ar, at } from "./chunks/index-
|
|
2
|
-
import { D, H, P, S, c } from "./chunks/index-
|
|
3
|
-
import { S as S2, r } from "./chunks/SuperConverter-
|
|
1
|
+
import { au, ab, aw, av, as, a7, ac, ar, at } from "./chunks/index-BRomAwaA.es.js";
|
|
2
|
+
import { D, H, P, S, c } from "./chunks/index-BPi2Cjky.es.js";
|
|
3
|
+
import { S as S2, r } from "./chunks/SuperConverter-BQHQ2WON.es.js";
|
|
4
4
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
5
5
|
import "./chunks/jszip-B1fkPkPJ.es.js";
|
|
6
6
|
import "./chunks/helpers-C8e9wR5l.es.js";
|