superdoc 1.14.0 → 1.15.0-next.1
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/{SuperConverter-BGuW-x9Y.es.js → SuperConverter-0JXEABCU.es.js} +1 -1
- package/dist/chunks/{SuperConverter-BWKP_jTL.cjs → SuperConverter-D4bnFDP0.cjs} +1 -1
- package/dist/chunks/{src-B-a8oU-W.cjs → src-C4usUjkO.cjs} +49 -46
- package/dist/chunks/{src-Bff1txuA.es.js → src-CF15O-H9.es.js} +49 -46
- package/dist/super-editor/converter.cjs +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/src/core/commands/tests/test-schema.d.ts +1 -1
- package/dist/super-editor/src/extensions/table/table.d.ts +1 -1
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +50 -47
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -33581,7 +33581,7 @@ var SuperConverter = class SuperConverter {
|
|
|
33581
33581
|
static getStoredSuperdocVersion(docx) {
|
|
33582
33582
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
33583
33583
|
}
|
|
33584
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.
|
|
33584
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.15.0-next.1") {
|
|
33585
33585
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
33586
33586
|
}
|
|
33587
33587
|
static generateWordTimestamp() {
|
|
@@ -33599,7 +33599,7 @@ var SuperConverter = class SuperConverter {
|
|
|
33599
33599
|
static getStoredSuperdocVersion(docx) {
|
|
33600
33600
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
33601
33601
|
}
|
|
33602
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.
|
|
33602
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.15.0-next.1") {
|
|
33603
33603
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
33604
33604
|
}
|
|
33605
33605
|
static generateWordTimestamp() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Dp2H1eGw.cjs");
|
|
2
|
-
const require_SuperConverter = require("./SuperConverter-
|
|
2
|
+
const require_SuperConverter = require("./SuperConverter-D4bnFDP0.cjs");
|
|
3
3
|
const require_jszip = require("./jszip-DCT9QYaK.cjs");
|
|
4
4
|
const require_uuid = require("./uuid-CHj_rjgt.cjs");
|
|
5
5
|
const require_helpers = require("./helpers-Cs_Zz44i.cjs");
|
|
@@ -243,7 +243,7 @@ var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
|
243
243
|
const COMMUNITY_LICENSE_KEY = "community-and-eval-agplv3";
|
|
244
244
|
function getSuperdocVersion() {
|
|
245
245
|
try {
|
|
246
|
-
return "1.
|
|
246
|
+
return "1.15.0-next.1";
|
|
247
247
|
} catch {
|
|
248
248
|
return "unknown";
|
|
249
249
|
}
|
|
@@ -20355,7 +20355,7 @@ const canUseDOM = () => {
|
|
|
20355
20355
|
return false;
|
|
20356
20356
|
}
|
|
20357
20357
|
};
|
|
20358
|
-
var summaryVersion = "1.
|
|
20358
|
+
var summaryVersion = "1.15.0-next.1";
|
|
20359
20359
|
var nodeKeys = [
|
|
20360
20360
|
"group",
|
|
20361
20361
|
"content",
|
|
@@ -22074,7 +22074,7 @@ var Editor = class Editor extends EventEmitter$1 {
|
|
|
22074
22074
|
return migrations.length > 0;
|
|
22075
22075
|
}
|
|
22076
22076
|
processCollaborationMigrations() {
|
|
22077
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.
|
|
22077
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.15.0-next.1");
|
|
22078
22078
|
if (!this.options.ydoc) return;
|
|
22079
22079
|
let docVersion = this.options.ydoc.getMap("meta").get("version");
|
|
22080
22080
|
if (!docVersion) docVersion = "initial";
|
|
@@ -27730,7 +27730,7 @@ const renderTableCell = (deps) => {
|
|
|
27730
27730
|
lineEl.style.paddingLeft = "";
|
|
27731
27731
|
lineEl.style.paddingRight = "";
|
|
27732
27732
|
lineEl.style.textIndent = "";
|
|
27733
|
-
if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0) {
|
|
27733
|
+
if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0 && !markerLayout.run?.vanish) {
|
|
27734
27734
|
const lineContainer = renderListMarker({
|
|
27735
27735
|
doc: doc$2,
|
|
27736
27736
|
lineEl,
|
|
@@ -29690,47 +29690,49 @@ var DomPainter = class DomPainter {
|
|
|
29690
29690
|
if (isListFirstLine) {
|
|
29691
29691
|
const marker = wordLayout.marker;
|
|
29692
29692
|
lineEl.style.paddingLeft = `${paraIndentLeft + (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0)}px`;
|
|
29693
|
-
|
|
29694
|
-
|
|
29695
|
-
|
|
29696
|
-
|
|
29697
|
-
|
|
29698
|
-
|
|
29699
|
-
|
|
29700
|
-
|
|
29701
|
-
|
|
29702
|
-
|
|
29703
|
-
|
|
29704
|
-
|
|
29705
|
-
|
|
29706
|
-
|
|
29707
|
-
|
|
29708
|
-
|
|
29709
|
-
|
|
29710
|
-
|
|
29711
|
-
|
|
29712
|
-
|
|
29713
|
-
|
|
29714
|
-
|
|
29715
|
-
|
|
29716
|
-
|
|
29717
|
-
|
|
29718
|
-
|
|
29719
|
-
|
|
29720
|
-
|
|
29721
|
-
|
|
29722
|
-
|
|
29723
|
-
|
|
29724
|
-
|
|
29725
|
-
|
|
29726
|
-
|
|
29727
|
-
|
|
29728
|
-
|
|
29729
|
-
|
|
29730
|
-
|
|
29731
|
-
|
|
29693
|
+
if (!marker.run.vanish) {
|
|
29694
|
+
const markerContainer = this.doc.createElement("span");
|
|
29695
|
+
markerContainer.style.display = "inline-block";
|
|
29696
|
+
markerContainer.style.wordSpacing = "0px";
|
|
29697
|
+
const markerEl = this.doc.createElement("span");
|
|
29698
|
+
markerEl.classList.add("superdoc-paragraph-marker");
|
|
29699
|
+
markerEl.textContent = marker.markerText ?? "";
|
|
29700
|
+
markerEl.style.pointerEvents = "none";
|
|
29701
|
+
const markerJustification = marker.justification ?? "left";
|
|
29702
|
+
markerContainer.style.position = "relative";
|
|
29703
|
+
if (markerJustification === "right") {
|
|
29704
|
+
markerContainer.style.position = "absolute";
|
|
29705
|
+
markerContainer.style.left = `${markerStartPos}px`;
|
|
29706
|
+
} else if (markerJustification === "center") {
|
|
29707
|
+
markerContainer.style.position = "absolute";
|
|
29708
|
+
markerContainer.style.left = `${markerStartPos - fragment.markerTextWidth / 2}px`;
|
|
29709
|
+
lineEl.style.paddingLeft = parseFloat(lineEl.style.paddingLeft) + fragment.markerTextWidth / 2 + "px";
|
|
29710
|
+
}
|
|
29711
|
+
markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
|
|
29712
|
+
markerEl.style.fontSize = `${marker.run.fontSize}px`;
|
|
29713
|
+
markerEl.style.fontWeight = marker.run.bold ? "bold" : "";
|
|
29714
|
+
markerEl.style.fontStyle = marker.run.italic ? "italic" : "";
|
|
29715
|
+
if (marker.run.color) markerEl.style.color = marker.run.color;
|
|
29716
|
+
if (marker.run.letterSpacing != null) markerEl.style.letterSpacing = `${marker.run.letterSpacing}px`;
|
|
29717
|
+
markerContainer.appendChild(markerEl);
|
|
29718
|
+
const suffix$1 = marker.suffix ?? "tab";
|
|
29719
|
+
if (suffix$1 === "tab") {
|
|
29720
|
+
const tabEl = this.doc.createElement("span");
|
|
29721
|
+
tabEl.className = "superdoc-tab";
|
|
29722
|
+
tabEl.innerHTML = " ";
|
|
29723
|
+
tabEl.style.display = "inline-block";
|
|
29724
|
+
tabEl.style.wordSpacing = "0px";
|
|
29725
|
+
tabEl.style.width = `${listTabWidth}px`;
|
|
29726
|
+
lineEl.prepend(tabEl);
|
|
29727
|
+
} else if (suffix$1 === "space") {
|
|
29728
|
+
const spaceEl = this.doc.createElement("span");
|
|
29729
|
+
spaceEl.classList.add("superdoc-marker-suffix-space");
|
|
29730
|
+
spaceEl.style.wordSpacing = "0px";
|
|
29731
|
+
spaceEl.textContent = "\xA0";
|
|
29732
|
+
lineEl.prepend(spaceEl);
|
|
29733
|
+
}
|
|
29734
|
+
lineEl.prepend(markerContainer);
|
|
29732
29735
|
}
|
|
29733
|
-
lineEl.prepend(markerContainer);
|
|
29734
29736
|
}
|
|
29735
29737
|
fragmentEl.appendChild(lineEl);
|
|
29736
29738
|
});
|
|
@@ -33914,7 +33916,8 @@ const computeRunAttrs = (runProps, converterContext, defaultFontSizePx = 12, def
|
|
|
33914
33916
|
smallCaps: runProps.smallCaps,
|
|
33915
33917
|
allCaps: runProps?.textTransform === "uppercase",
|
|
33916
33918
|
letterSpacing: runProps.letterSpacing ? twipsToPx$2(runProps.letterSpacing) : void 0,
|
|
33917
|
-
lang: runProps.lang?.val || void 0
|
|
33919
|
+
lang: runProps.lang?.val || void 0,
|
|
33920
|
+
vanish: runProps.vanish
|
|
33918
33921
|
};
|
|
33919
33922
|
};
|
|
33920
33923
|
const VALID_LINK_TARGETS = new Set([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, n as __esmMin, r as __export, t as __commonJSMin } from "./rolldown-runtime-B2q5OVn9.es.js";
|
|
2
|
-
import { $ as AddMarkStep, A as getMarksFromSelection, At as Schema$1, B as getMarkType, C as generateOrderedListIndex, Ct as TrackFormatMarkName, D as findChildren$1, Dt as DOMSerializer, E as posToDOMRect, Et as DOMParser$1, F as getMarkRange, G as AllSelection, H as cleanSchemaItem, I as isTextSelection, J as Plugin, K as EditorState, L as findParentNode, M as isNodeActive, Mt as minMax, N as getSchemaTypeNameByName, Nt as callOrGet, O as getActiveFormatting, Ot as Fragment$1, P as isMarkActive, Pt as getExtensionConfigField, Q as TextSelection$1, R as findParentNodeClosestToPos, S as docxNumberingHelpers, St as TrackDeleteMarkName, T as isInTable, Tt as carbonCopy, U as getSchemaTypeByName, V as getNodeType, W as createDocument, X as Selection, Y as PluginKey, Z as SelectionRange, _ as changeListLevel, _t as resolveDocxFontFamily, a as _getReferencedTableStyles, at as canJoin, b as calculateResolvedParagraphProperties, bt as resolveTableCellProperties, c as processContent, ct as joinPoint, d as InputRule, dt as generateDocxRandomId, et as Mapping, f as handleClipboardPaste, ft as generateRandomSigned32BitIntStrId, g as ListHelpers, gt as encodeMarksFromRPr, h as unflattenListsInHtml, ht as encodeCSSFromRPr, it as Transform, j as isActive, jt as Slice, k as findMark, kt as Mark$1, l as createDocFromMarkdown, lt as liftTarget, m as inputRulesPlugin, mt as encodeCSSFromPPr, n as kebabCase$1, nt as ReplaceAroundStep$1, o as helpers_exports, ot as canSplit, p as htmlHandler, pt as decodeRPrFromMarks, q as NodeSelection, r as insertNewRelationship, rt as ReplaceStep, s as updateDOMAttributes, st as dropPoint, t as SuperConverter, tt as RemoveMarkStep, u as createDocFromHTML, ut as replaceStep$1, v as updateNumberingProperties, vt as resolveParagraphProperties, w as CommandService, wt as TrackInsertMarkName, x as getResolvedParagraphProperties, xt as getUnderlineCssString, y as isList, yt as resolveRunProperties, z as defaultBlockAt$1 } from "./SuperConverter-
|
|
2
|
+
import { $ as AddMarkStep, A as getMarksFromSelection, At as Schema$1, B as getMarkType, C as generateOrderedListIndex, Ct as TrackFormatMarkName, D as findChildren$1, Dt as DOMSerializer, E as posToDOMRect, Et as DOMParser$1, F as getMarkRange, G as AllSelection, H as cleanSchemaItem, I as isTextSelection, J as Plugin, K as EditorState, L as findParentNode, M as isNodeActive, Mt as minMax, N as getSchemaTypeNameByName, Nt as callOrGet, O as getActiveFormatting, Ot as Fragment$1, P as isMarkActive, Pt as getExtensionConfigField, Q as TextSelection$1, R as findParentNodeClosestToPos, S as docxNumberingHelpers, St as TrackDeleteMarkName, T as isInTable, Tt as carbonCopy, U as getSchemaTypeByName, V as getNodeType, W as createDocument, X as Selection, Y as PluginKey, Z as SelectionRange, _ as changeListLevel, _t as resolveDocxFontFamily, a as _getReferencedTableStyles, at as canJoin, b as calculateResolvedParagraphProperties, bt as resolveTableCellProperties, c as processContent, ct as joinPoint, d as InputRule, dt as generateDocxRandomId, et as Mapping, f as handleClipboardPaste, ft as generateRandomSigned32BitIntStrId, g as ListHelpers, gt as encodeMarksFromRPr, h as unflattenListsInHtml, ht as encodeCSSFromRPr, it as Transform, j as isActive, jt as Slice, k as findMark, kt as Mark$1, l as createDocFromMarkdown, lt as liftTarget, m as inputRulesPlugin, mt as encodeCSSFromPPr, n as kebabCase$1, nt as ReplaceAroundStep$1, o as helpers_exports, ot as canSplit, p as htmlHandler, pt as decodeRPrFromMarks, q as NodeSelection, r as insertNewRelationship, rt as ReplaceStep, s as updateDOMAttributes, st as dropPoint, t as SuperConverter, tt as RemoveMarkStep, u as createDocFromHTML, ut as replaceStep$1, v as updateNumberingProperties, vt as resolveParagraphProperties, w as CommandService, wt as TrackInsertMarkName, x as getResolvedParagraphProperties, xt as getUnderlineCssString, y as isList, yt as resolveRunProperties, z as defaultBlockAt$1 } from "./SuperConverter-0JXEABCU.es.js";
|
|
3
3
|
import { a as init_dist$2, i as global, n as init_dist, o as Buffer$3, r as process$1, s as init_dist$1 } from "./jszip-ChlR43oI.es.js";
|
|
4
4
|
import { t as v4_default } from "./uuid-2IzDu5nl.es.js";
|
|
5
5
|
import { A as twipsToLines, T as resolveOpcTargetPath, c as getArrayBufferFromUrl, f as halfPointToPoints, g as linesToTwips, j as twipsToPixels, k as twipsToInches, m as inchesToTwips, p as inchesToPixels, r as convertSizeToCSS, w as ptToTwips, x as pixelsToTwips } from "./helpers-BGD_wEOi.es.js";
|
|
@@ -242,7 +242,7 @@ var v_click_outside_default = {
|
|
|
242
242
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
243
243
|
function getSuperdocVersion() {
|
|
244
244
|
try {
|
|
245
|
-
return "1.
|
|
245
|
+
return "1.15.0-next.1";
|
|
246
246
|
} catch {
|
|
247
247
|
return "unknown";
|
|
248
248
|
}
|
|
@@ -20336,7 +20336,7 @@ const canUseDOM = () => {
|
|
|
20336
20336
|
return false;
|
|
20337
20337
|
}
|
|
20338
20338
|
};
|
|
20339
|
-
var summaryVersion = "1.
|
|
20339
|
+
var summaryVersion = "1.15.0-next.1";
|
|
20340
20340
|
var nodeKeys = [
|
|
20341
20341
|
"group",
|
|
20342
20342
|
"content",
|
|
@@ -22053,7 +22053,7 @@ var Editor = class Editor extends EventEmitter$1 {
|
|
|
22053
22053
|
return migrations.length > 0;
|
|
22054
22054
|
}
|
|
22055
22055
|
processCollaborationMigrations() {
|
|
22056
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.
|
|
22056
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.15.0-next.1");
|
|
22057
22057
|
if (!this.options.ydoc) return;
|
|
22058
22058
|
let docVersion = this.options.ydoc.getMap("meta").get("version");
|
|
22059
22059
|
if (!docVersion) docVersion = "initial";
|
|
@@ -27699,7 +27699,7 @@ const renderTableCell = (deps) => {
|
|
|
27699
27699
|
lineEl.style.paddingLeft = "";
|
|
27700
27700
|
lineEl.style.paddingRight = "";
|
|
27701
27701
|
lineEl.style.textIndent = "";
|
|
27702
|
-
if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0) {
|
|
27702
|
+
if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0 && !markerLayout.run?.vanish) {
|
|
27703
27703
|
const lineContainer = renderListMarker({
|
|
27704
27704
|
doc: doc$2,
|
|
27705
27705
|
lineEl,
|
|
@@ -29659,47 +29659,49 @@ var DomPainter = class DomPainter {
|
|
|
29659
29659
|
if (isListFirstLine) {
|
|
29660
29660
|
const marker = wordLayout.marker;
|
|
29661
29661
|
lineEl.style.paddingLeft = `${paraIndentLeft + (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0)}px`;
|
|
29662
|
-
|
|
29663
|
-
|
|
29664
|
-
|
|
29665
|
-
|
|
29666
|
-
|
|
29667
|
-
|
|
29668
|
-
|
|
29669
|
-
|
|
29670
|
-
|
|
29671
|
-
|
|
29672
|
-
|
|
29673
|
-
|
|
29674
|
-
|
|
29675
|
-
|
|
29676
|
-
|
|
29677
|
-
|
|
29678
|
-
|
|
29679
|
-
|
|
29680
|
-
|
|
29681
|
-
|
|
29682
|
-
|
|
29683
|
-
|
|
29684
|
-
|
|
29685
|
-
|
|
29686
|
-
|
|
29687
|
-
|
|
29688
|
-
|
|
29689
|
-
|
|
29690
|
-
|
|
29691
|
-
|
|
29692
|
-
|
|
29693
|
-
|
|
29694
|
-
|
|
29695
|
-
|
|
29696
|
-
|
|
29697
|
-
|
|
29698
|
-
|
|
29699
|
-
|
|
29700
|
-
|
|
29662
|
+
if (!marker.run.vanish) {
|
|
29663
|
+
const markerContainer = this.doc.createElement("span");
|
|
29664
|
+
markerContainer.style.display = "inline-block";
|
|
29665
|
+
markerContainer.style.wordSpacing = "0px";
|
|
29666
|
+
const markerEl = this.doc.createElement("span");
|
|
29667
|
+
markerEl.classList.add("superdoc-paragraph-marker");
|
|
29668
|
+
markerEl.textContent = marker.markerText ?? "";
|
|
29669
|
+
markerEl.style.pointerEvents = "none";
|
|
29670
|
+
const markerJustification = marker.justification ?? "left";
|
|
29671
|
+
markerContainer.style.position = "relative";
|
|
29672
|
+
if (markerJustification === "right") {
|
|
29673
|
+
markerContainer.style.position = "absolute";
|
|
29674
|
+
markerContainer.style.left = `${markerStartPos}px`;
|
|
29675
|
+
} else if (markerJustification === "center") {
|
|
29676
|
+
markerContainer.style.position = "absolute";
|
|
29677
|
+
markerContainer.style.left = `${markerStartPos - fragment.markerTextWidth / 2}px`;
|
|
29678
|
+
lineEl.style.paddingLeft = parseFloat(lineEl.style.paddingLeft) + fragment.markerTextWidth / 2 + "px";
|
|
29679
|
+
}
|
|
29680
|
+
markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
|
|
29681
|
+
markerEl.style.fontSize = `${marker.run.fontSize}px`;
|
|
29682
|
+
markerEl.style.fontWeight = marker.run.bold ? "bold" : "";
|
|
29683
|
+
markerEl.style.fontStyle = marker.run.italic ? "italic" : "";
|
|
29684
|
+
if (marker.run.color) markerEl.style.color = marker.run.color;
|
|
29685
|
+
if (marker.run.letterSpacing != null) markerEl.style.letterSpacing = `${marker.run.letterSpacing}px`;
|
|
29686
|
+
markerContainer.appendChild(markerEl);
|
|
29687
|
+
const suffix$1 = marker.suffix ?? "tab";
|
|
29688
|
+
if (suffix$1 === "tab") {
|
|
29689
|
+
const tabEl = this.doc.createElement("span");
|
|
29690
|
+
tabEl.className = "superdoc-tab";
|
|
29691
|
+
tabEl.innerHTML = " ";
|
|
29692
|
+
tabEl.style.display = "inline-block";
|
|
29693
|
+
tabEl.style.wordSpacing = "0px";
|
|
29694
|
+
tabEl.style.width = `${listTabWidth}px`;
|
|
29695
|
+
lineEl.prepend(tabEl);
|
|
29696
|
+
} else if (suffix$1 === "space") {
|
|
29697
|
+
const spaceEl = this.doc.createElement("span");
|
|
29698
|
+
spaceEl.classList.add("superdoc-marker-suffix-space");
|
|
29699
|
+
spaceEl.style.wordSpacing = "0px";
|
|
29700
|
+
spaceEl.textContent = "\xA0";
|
|
29701
|
+
lineEl.prepend(spaceEl);
|
|
29702
|
+
}
|
|
29703
|
+
lineEl.prepend(markerContainer);
|
|
29701
29704
|
}
|
|
29702
|
-
lineEl.prepend(markerContainer);
|
|
29703
29705
|
}
|
|
29704
29706
|
fragmentEl.appendChild(lineEl);
|
|
29705
29707
|
});
|
|
@@ -33877,7 +33879,8 @@ const computeRunAttrs = (runProps, converterContext, defaultFontSizePx = 12, def
|
|
|
33877
33879
|
smallCaps: runProps.smallCaps,
|
|
33878
33880
|
allCaps: runProps?.textTransform === "uppercase",
|
|
33879
33881
|
letterSpacing: runProps.letterSpacing ? twipsToPx$2(runProps.letterSpacing) : void 0,
|
|
33880
|
-
lang: runProps.lang?.val || void 0
|
|
33882
|
+
lang: runProps.lang?.val || void 0,
|
|
33883
|
+
vanish: runProps.vanish
|
|
33881
33884
|
};
|
|
33882
33885
|
};
|
|
33883
33886
|
const VALID_LINK_TARGETS = new Set([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("../chunks/rolldown-runtime-Dp2H1eGw.cjs");
|
|
3
|
-
const require_SuperConverter = require("../chunks/SuperConverter-
|
|
3
|
+
const require_SuperConverter = require("../chunks/SuperConverter-D4bnFDP0.cjs");
|
|
4
4
|
require("../chunks/jszip-DCT9QYaK.cjs");
|
|
5
5
|
require("../chunks/xml-js--DznO7Gk.cjs");
|
|
6
6
|
require("../chunks/helpers-Cs_Zz44i.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SuperConverter } from "../chunks/SuperConverter-
|
|
1
|
+
import { t as SuperConverter } from "../chunks/SuperConverter-0JXEABCU.es.js";
|
|
2
2
|
import "../chunks/jszip-ChlR43oI.es.js";
|
|
3
3
|
import "../chunks/xml-js-DLE8mr0n.es.js";
|
|
4
4
|
import "../chunks/helpers-BGD_wEOi.es.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Schema } from 'prosemirror-model';
|
|
2
|
-
export const testSchema: Schema<"text" | "tab" | "paragraph" | "doc" | "
|
|
2
|
+
export const testSchema: Schema<"text" | "tab" | "paragraph" | "doc" | "listItem" | "orderedList" | "bulletList", never>;
|
|
3
3
|
//# sourceMappingURL=test-schema.d.ts.map
|
|
@@ -354,7 +354,7 @@ export type TableProperties = {
|
|
|
354
354
|
/**
|
|
355
355
|
* - Specifies whether the current table should allow other floating tables to overlap its extents when the tables are displayed in a document
|
|
356
356
|
*/
|
|
357
|
-
overlap?: "
|
|
357
|
+
overlap?: "overlap" | "never" | undefined;
|
|
358
358
|
/**
|
|
359
359
|
* - Reference to table style ID
|
|
360
360
|
*/
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./chunks/rolldown-runtime-Dp2H1eGw.cjs");
|
|
3
|
-
const require_src = require("./chunks/src-
|
|
4
|
-
const require_SuperConverter = require("./chunks/SuperConverter-
|
|
3
|
+
const require_src = require("./chunks/src-C4usUjkO.cjs");
|
|
4
|
+
const require_SuperConverter = require("./chunks/SuperConverter-D4bnFDP0.cjs");
|
|
5
5
|
require("./chunks/jszip-DCT9QYaK.cjs");
|
|
6
6
|
require("./chunks/xml-js--DznO7Gk.cjs");
|
|
7
7
|
require("./chunks/helpers-Cs_Zz44i.cjs");
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as SectionHelpers, Bt as assertNodeType, J as AIWriter_default, Lt as defineMark, Q as getAllowedImageDimensions, Rt as defineNode, Vt as isNodeType, X as getStarterExtensions, Y as getRichTextExtensions, Z as trackChangesHelpers_exports, a as SlashMenu_default, at as TrackChangesBasePluginKey, et as PresentationEditor, i as BasicUpload_default, it as CommentsPluginKey, n as SuperInput_default, nt as fieldAnnotationHelpers_exports, o as SuperToolbar, r as SuperEditor_default, rt as AnnotatorHelpers, s as Toolbar_default, t as Extensions, tt as Editor, zt as isMarkType } from "./chunks/src-
|
|
2
|
-
import { A as getMarksFromSelection, O as getActiveFormatting, i as registeredHandlers, o as helpers_exports, t as SuperConverter } from "./chunks/SuperConverter-
|
|
1
|
+
import { $ as SectionHelpers, Bt as assertNodeType, J as AIWriter_default, Lt as defineMark, Q as getAllowedImageDimensions, Rt as defineNode, Vt as isNodeType, X as getStarterExtensions, Y as getRichTextExtensions, Z as trackChangesHelpers_exports, a as SlashMenu_default, at as TrackChangesBasePluginKey, et as PresentationEditor, i as BasicUpload_default, it as CommentsPluginKey, n as SuperInput_default, nt as fieldAnnotationHelpers_exports, o as SuperToolbar, r as SuperEditor_default, rt as AnnotatorHelpers, s as Toolbar_default, t as Extensions, tt as Editor, zt as isMarkType } from "./chunks/src-CF15O-H9.es.js";
|
|
2
|
+
import { A as getMarksFromSelection, O as getActiveFormatting, i as registeredHandlers, o as helpers_exports, t as SuperConverter } from "./chunks/SuperConverter-0JXEABCU.es.js";
|
|
3
3
|
import "./chunks/jszip-ChlR43oI.es.js";
|
|
4
4
|
import "./chunks/xml-js-DLE8mr0n.es.js";
|
|
5
5
|
import "./chunks/helpers-BGD_wEOi.es.js";
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./chunks/rolldown-runtime-Dp2H1eGw.cjs");
|
|
3
|
-
const require_src = require("./chunks/src-
|
|
4
|
-
const require_SuperConverter = require("./chunks/SuperConverter-
|
|
3
|
+
const require_src = require("./chunks/src-C4usUjkO.cjs");
|
|
4
|
+
const require_SuperConverter = require("./chunks/SuperConverter-D4bnFDP0.cjs");
|
|
5
5
|
const require_jszip = require("./chunks/jszip-DCT9QYaK.cjs");
|
|
6
6
|
require("./chunks/xml-js--DznO7Gk.cjs");
|
|
7
7
|
const require_uuid = require("./chunks/uuid-CHj_rjgt.cjs");
|
|
@@ -19677,7 +19677,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
19677
19677
|
this.config.colors = shuffleArray(this.config.colors);
|
|
19678
19678
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
19679
19679
|
this.colorIndex = 0;
|
|
19680
|
-
this.version = "1.
|
|
19680
|
+
this.version = "1.15.0-next.1";
|
|
19681
19681
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
19682
19682
|
this.superdocId = config.superdocId || require_uuid.v4_default();
|
|
19683
19683
|
this.colors = this.config.colors;
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as SectionHelpers, A as useMergedState, At as writeVarUint8Array, B as createKey, C as render, Ct as readVarString, D as useSsrAdapter, Dt as length, E as warnOnce, Et as createEncoder, F as c, Ft as getFileObject, G as xmark_solid_default, H as insidePopover, I as cB, It as comments_module_events, J as AIWriter_default, K as check_solid_default, L as cE, M as on, Mt as min, N as createId, Nt as pow, O as createInjectionKey, Ot as toUint8Array, P as changeColor, Pt as v_click_outside_default, R as cM, S as resolveWrappedSlot, St as createDecoder, T as throwError, Tt as readVarUint8Array, U as caret_down_solid_default, V as insideModal, W as ellipsis_vertical_solid_default, X as getStarterExtensions, Y as getRichTextExtensions, Z as trackChangesHelpers_exports, _ as cssrAnchorMetaName, _t as removeAwarenessStates, at as TrackChangesBasePluginKey, b as useConfig, bt as setIfUndefined, c as messageApiInjectionKey, ct as fromBase64, d as ConfigProvider_default, dt as offChange, et as PresentationEditor, f as light_default$1, ft as onChange, g as useRtl, gt as encodeAwarenessUpdate, h as _common_default$2, ht as applyAwarenessUpdate, it as CommentsPluginKey, j as use_memo_default, jt as create, k as isMounted, kt as writeVarUint, l as messageProviderInjectionKey, lt as toBase64, m as index_cssr_default$5, mt as Awareness, n as SuperInput_default, nt as fieldAnnotationHelpers_exports, o as SuperToolbar, ot as getTrackChanges, p as use_theme_default, pt as varStorage, q as comment_solid_default, r as SuperEditor_default, rt as AnnotatorHelpers, st as createUint8ArrayFromArrayBuffer, t as Extensions, tt as Editor, u as Dropdown_default, ut as isNode, v as toString_default, vt as map, w as call, wt as readVarUint, x as configProviderInjectionKey, xt as getUnixTime, y as useThemeClass, yt as ObservableV2, z as cNotM } from "./chunks/src-
|
|
2
|
-
import { i as registeredHandlers, o as helpers_exports, t as SuperConverter } from "./chunks/SuperConverter-
|
|
1
|
+
import { $ as SectionHelpers, A as useMergedState, At as writeVarUint8Array, B as createKey, C as render, Ct as readVarString, D as useSsrAdapter, Dt as length, E as warnOnce, Et as createEncoder, F as c, Ft as getFileObject, G as xmark_solid_default, H as insidePopover, I as cB, It as comments_module_events, J as AIWriter_default, K as check_solid_default, L as cE, M as on, Mt as min, N as createId, Nt as pow, O as createInjectionKey, Ot as toUint8Array, P as changeColor, Pt as v_click_outside_default, R as cM, S as resolveWrappedSlot, St as createDecoder, T as throwError, Tt as readVarUint8Array, U as caret_down_solid_default, V as insideModal, W as ellipsis_vertical_solid_default, X as getStarterExtensions, Y as getRichTextExtensions, Z as trackChangesHelpers_exports, _ as cssrAnchorMetaName, _t as removeAwarenessStates, at as TrackChangesBasePluginKey, b as useConfig, bt as setIfUndefined, c as messageApiInjectionKey, ct as fromBase64, d as ConfigProvider_default, dt as offChange, et as PresentationEditor, f as light_default$1, ft as onChange, g as useRtl, gt as encodeAwarenessUpdate, h as _common_default$2, ht as applyAwarenessUpdate, it as CommentsPluginKey, j as use_memo_default, jt as create, k as isMounted, kt as writeVarUint, l as messageProviderInjectionKey, lt as toBase64, m as index_cssr_default$5, mt as Awareness, n as SuperInput_default, nt as fieldAnnotationHelpers_exports, o as SuperToolbar, ot as getTrackChanges, p as use_theme_default, pt as varStorage, q as comment_solid_default, r as SuperEditor_default, rt as AnnotatorHelpers, st as createUint8ArrayFromArrayBuffer, t as Extensions, tt as Editor, u as Dropdown_default, ut as isNode, v as toString_default, vt as map, w as call, wt as readVarUint, x as configProviderInjectionKey, xt as getUnixTime, y as useThemeClass, yt as ObservableV2, z as cNotM } from "./chunks/src-CF15O-H9.es.js";
|
|
2
|
+
import { i as registeredHandlers, o as helpers_exports, t as SuperConverter } from "./chunks/SuperConverter-0JXEABCU.es.js";
|
|
3
3
|
import { a as init_dist$1, i as global, n as init_dist, r as process$1 } from "./chunks/jszip-ChlR43oI.es.js";
|
|
4
4
|
import "./chunks/xml-js-DLE8mr0n.es.js";
|
|
5
5
|
import { t as v4_default } from "./chunks/uuid-2IzDu5nl.es.js";
|
|
@@ -19636,7 +19636,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
19636
19636
|
this.config.colors = shuffleArray(this.config.colors);
|
|
19637
19637
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
19638
19638
|
this.colorIndex = 0;
|
|
19639
|
-
this.version = "1.
|
|
19639
|
+
this.version = "1.15.0-next.1";
|
|
19640
19640
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
19641
19641
|
this.superdocId = config.superdocId || v4_default();
|
|
19642
19642
|
this.colors = this.config.colors;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -33148,7 +33148,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33148
33148
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
33149
33149
|
function getSuperdocVersion() {
|
|
33150
33150
|
try {
|
|
33151
|
-
return "1.
|
|
33151
|
+
return "1.15.0-next.1";
|
|
33152
33152
|
} catch {
|
|
33153
33153
|
return "unknown";
|
|
33154
33154
|
}
|
|
@@ -36090,7 +36090,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36090
36090
|
static getStoredSuperdocVersion(docx) {
|
|
36091
36091
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
36092
36092
|
}
|
|
36093
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version$2 = "1.
|
|
36093
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version$2 = "1.15.0-next.1") {
|
|
36094
36094
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version$2, false);
|
|
36095
36095
|
}
|
|
36096
36096
|
static generateWordTimestamp() {
|
|
@@ -65083,7 +65083,7 @@ while (n$2 === a$3[++i$3] && n$2 === a$3[++i$3] && n$2 === a$3[++i$3] && n$2 ===
|
|
|
65083
65083
|
return false;
|
|
65084
65084
|
}
|
|
65085
65085
|
};
|
|
65086
|
-
var summaryVersion = "1.
|
|
65086
|
+
var summaryVersion = "1.15.0-next.1";
|
|
65087
65087
|
var nodeKeys = [
|
|
65088
65088
|
"group",
|
|
65089
65089
|
"content",
|
|
@@ -84180,7 +84180,7 @@ while (n$2 === a$3[++i$3] && n$2 === a$3[++i$3] && n$2 === a$3[++i$3] && n$2 ===
|
|
|
84180
84180
|
return migrations.length > 0;
|
|
84181
84181
|
}
|
|
84182
84182
|
processCollaborationMigrations() {
|
|
84183
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.
|
|
84183
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.15.0-next.1");
|
|
84184
84184
|
if (!this.options.ydoc) return;
|
|
84185
84185
|
let docVersion = this.options.ydoc.getMap("meta").get("version");
|
|
84186
84186
|
if (!docVersion) docVersion = "initial";
|
|
@@ -89824,7 +89824,7 @@ ${o}
|
|
|
89824
89824
|
lineEl.style.paddingLeft = "";
|
|
89825
89825
|
lineEl.style.paddingRight = "";
|
|
89826
89826
|
lineEl.style.textIndent = "";
|
|
89827
|
-
if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0) {
|
|
89827
|
+
if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0 && !markerLayout.run?.vanish) {
|
|
89828
89828
|
const lineContainer = renderListMarker({
|
|
89829
89829
|
doc: doc$4,
|
|
89830
89830
|
lineEl,
|
|
@@ -91782,47 +91782,49 @@ ${o}
|
|
|
91782
91782
|
if (isListFirstLine) {
|
|
91783
91783
|
const marker = wordLayout.marker;
|
|
91784
91784
|
lineEl.style.paddingLeft = `${paraIndentLeft + (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0)}px`;
|
|
91785
|
-
|
|
91786
|
-
|
|
91787
|
-
|
|
91788
|
-
|
|
91789
|
-
|
|
91790
|
-
|
|
91791
|
-
|
|
91792
|
-
|
|
91793
|
-
|
|
91794
|
-
|
|
91795
|
-
|
|
91796
|
-
|
|
91797
|
-
|
|
91798
|
-
|
|
91799
|
-
|
|
91800
|
-
|
|
91801
|
-
|
|
91802
|
-
|
|
91803
|
-
|
|
91804
|
-
|
|
91805
|
-
|
|
91806
|
-
|
|
91807
|
-
|
|
91808
|
-
|
|
91809
|
-
|
|
91810
|
-
|
|
91811
|
-
|
|
91812
|
-
|
|
91813
|
-
|
|
91814
|
-
|
|
91815
|
-
|
|
91816
|
-
|
|
91817
|
-
|
|
91818
|
-
|
|
91819
|
-
|
|
91820
|
-
|
|
91821
|
-
|
|
91822
|
-
|
|
91823
|
-
|
|
91785
|
+
if (!marker.run.vanish) {
|
|
91786
|
+
const markerContainer = this.doc.createElement("span");
|
|
91787
|
+
markerContainer.style.display = "inline-block";
|
|
91788
|
+
markerContainer.style.wordSpacing = "0px";
|
|
91789
|
+
const markerEl = this.doc.createElement("span");
|
|
91790
|
+
markerEl.classList.add("superdoc-paragraph-marker");
|
|
91791
|
+
markerEl.textContent = marker.markerText ?? "";
|
|
91792
|
+
markerEl.style.pointerEvents = "none";
|
|
91793
|
+
const markerJustification = marker.justification ?? "left";
|
|
91794
|
+
markerContainer.style.position = "relative";
|
|
91795
|
+
if (markerJustification === "right") {
|
|
91796
|
+
markerContainer.style.position = "absolute";
|
|
91797
|
+
markerContainer.style.left = `${markerStartPos}px`;
|
|
91798
|
+
} else if (markerJustification === "center") {
|
|
91799
|
+
markerContainer.style.position = "absolute";
|
|
91800
|
+
markerContainer.style.left = `${markerStartPos - fragment.markerTextWidth / 2}px`;
|
|
91801
|
+
lineEl.style.paddingLeft = parseFloat(lineEl.style.paddingLeft) + fragment.markerTextWidth / 2 + "px";
|
|
91802
|
+
}
|
|
91803
|
+
markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
|
|
91804
|
+
markerEl.style.fontSize = `${marker.run.fontSize}px`;
|
|
91805
|
+
markerEl.style.fontWeight = marker.run.bold ? "bold" : "";
|
|
91806
|
+
markerEl.style.fontStyle = marker.run.italic ? "italic" : "";
|
|
91807
|
+
if (marker.run.color) markerEl.style.color = marker.run.color;
|
|
91808
|
+
if (marker.run.letterSpacing != null) markerEl.style.letterSpacing = `${marker.run.letterSpacing}px`;
|
|
91809
|
+
markerContainer.appendChild(markerEl);
|
|
91810
|
+
const suffix$1 = marker.suffix ?? "tab";
|
|
91811
|
+
if (suffix$1 === "tab") {
|
|
91812
|
+
const tabEl = this.doc.createElement("span");
|
|
91813
|
+
tabEl.className = "superdoc-tab";
|
|
91814
|
+
tabEl.innerHTML = " ";
|
|
91815
|
+
tabEl.style.display = "inline-block";
|
|
91816
|
+
tabEl.style.wordSpacing = "0px";
|
|
91817
|
+
tabEl.style.width = `${listTabWidth}px`;
|
|
91818
|
+
lineEl.prepend(tabEl);
|
|
91819
|
+
} else if (suffix$1 === "space") {
|
|
91820
|
+
const spaceEl = this.doc.createElement("span");
|
|
91821
|
+
spaceEl.classList.add("superdoc-marker-suffix-space");
|
|
91822
|
+
spaceEl.style.wordSpacing = "0px";
|
|
91823
|
+
spaceEl.textContent = "\xA0";
|
|
91824
|
+
lineEl.prepend(spaceEl);
|
|
91825
|
+
}
|
|
91826
|
+
lineEl.prepend(markerContainer);
|
|
91824
91827
|
}
|
|
91825
|
-
lineEl.prepend(markerContainer);
|
|
91826
91828
|
}
|
|
91827
91829
|
fragmentEl.appendChild(lineEl);
|
|
91828
91830
|
});
|
|
@@ -95995,7 +95997,8 @@ ${o}
|
|
|
95995
95997
|
smallCaps: runProps.smallCaps,
|
|
95996
95998
|
allCaps: runProps?.textTransform === "uppercase",
|
|
95997
95999
|
letterSpacing: runProps.letterSpacing ? twipsToPx$2(runProps.letterSpacing) : void 0,
|
|
95998
|
-
lang: runProps.lang?.val || void 0
|
|
96000
|
+
lang: runProps.lang?.val || void 0,
|
|
96001
|
+
vanish: runProps.vanish
|
|
95999
96002
|
};
|
|
96000
96003
|
};
|
|
96001
96004
|
const VALID_LINK_TARGETS = new Set([
|
|
@@ -166952,7 +166955,7 @@ js: import "konva/skia-backend";
|
|
|
166952
166955
|
this.config.colors = shuffleArray(this.config.colors);
|
|
166953
166956
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
166954
166957
|
this.colorIndex = 0;
|
|
166955
|
-
this.version = "1.
|
|
166958
|
+
this.version = "1.15.0-next.1";
|
|
166956
166959
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
166957
166960
|
this.superdocId = config$31.superdocId || v4_default();
|
|
166958
166961
|
this.colors = this.config.colors;
|