@superdoc-dev/cli 0.5.0-next.49 → 0.5.0-next.50
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/index.js +30 -14
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -173716,7 +173716,7 @@ var init_remark_gfm_DCND_V_3_es = __esm(() => {
|
|
|
173716
173716
|
init_remark_gfm_BUJjZJLy_es();
|
|
173717
173717
|
});
|
|
173718
173718
|
|
|
173719
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
173719
|
+
// ../../packages/superdoc/dist/chunks/src-BKQDdwIR.es.js
|
|
173720
173720
|
function deleteProps(obj, propOrProps) {
|
|
173721
173721
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
173722
173722
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -247361,7 +247361,7 @@ var Node$13 = class Node$14 {
|
|
|
247361
247361
|
}
|
|
247362
247362
|
element3.style.textAlign = resolveTextAlign(attrs?.alignment, rtl);
|
|
247363
247363
|
return rtl;
|
|
247364
|
-
}, shouldUseSegmentPositioning = (hasExplicitPositioning, hasSegments, isRtl) => hasExplicitPositioning && hasSegments && !isRtl, MATHML_NS$
|
|
247364
|
+
}, shouldUseSegmentPositioning = (hasExplicitPositioning, hasSegments, isRtl) => hasExplicitPositioning && hasSegments && !isRtl, MATHML_NS$4 = "http://www.w3.org/1998/Math/MathML", OPERATOR_CHARS, convertMathRun = (node3, doc$12) => {
|
|
247365
247365
|
const elements = node3.elements ?? [];
|
|
247366
247366
|
let text5 = "";
|
|
247367
247367
|
for (const child of elements)
|
|
@@ -247375,33 +247375,49 @@ var Node$13 = class Node$14 {
|
|
|
247375
247375
|
return null;
|
|
247376
247376
|
const isNormalText = elements.find((el$1) => el$1.name === "m:rPr")?.elements?.some((el$1) => el$1.name === "m:nor") ?? false;
|
|
247377
247377
|
const tag = classifyMathText(text5);
|
|
247378
|
-
const el = doc$12.createElementNS(MATHML_NS$
|
|
247378
|
+
const el = doc$12.createElementNS(MATHML_NS$4, tag);
|
|
247379
247379
|
el.textContent = text5;
|
|
247380
247380
|
if (tag === "mi" && isNormalText)
|
|
247381
247381
|
el.setAttribute("mathvariant", "normal");
|
|
247382
247382
|
return el;
|
|
247383
|
-
}, MATHML_NS$
|
|
247383
|
+
}, MATHML_NS$3 = "http://www.w3.org/1998/Math/MathML", convertFraction = (node3, doc$12, convertChildren) => {
|
|
247384
247384
|
const elements = node3.elements ?? [];
|
|
247385
247385
|
const num = elements.find((e) => e.name === "m:num");
|
|
247386
247386
|
const den = elements.find((e) => e.name === "m:den");
|
|
247387
|
-
const frac = doc$12.createElementNS(MATHML_NS$
|
|
247388
|
-
|
|
247389
|
-
|
|
247387
|
+
const frac = doc$12.createElementNS(MATHML_NS$3, "mfrac");
|
|
247388
|
+
const numRow = doc$12.createElementNS(MATHML_NS$3, "mrow");
|
|
247389
|
+
numRow.appendChild(convertChildren(num?.elements ?? []));
|
|
247390
|
+
frac.appendChild(numRow);
|
|
247391
|
+
const denRow = doc$12.createElementNS(MATHML_NS$3, "mrow");
|
|
247392
|
+
denRow.appendChild(convertChildren(den?.elements ?? []));
|
|
247393
|
+
frac.appendChild(denRow);
|
|
247390
247394
|
return frac;
|
|
247391
|
-
}, MATHML_NS$
|
|
247395
|
+
}, MATHML_NS$2 = "http://www.w3.org/1998/Math/MathML", convertBar = (node3, doc$12, convertChildren) => {
|
|
247392
247396
|
const elements = node3.elements ?? [];
|
|
247393
247397
|
const isUnder = elements.find((e) => e.name === "m:barPr")?.elements?.find((e) => e.name === "m:pos")?.attributes?.["m:val"] !== "top";
|
|
247394
247398
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
247395
|
-
const wrapper = doc$12.createElementNS(MATHML_NS$
|
|
247399
|
+
const wrapper = doc$12.createElementNS(MATHML_NS$2, isUnder ? "munder" : "mover");
|
|
247396
247400
|
const baseContent = convertChildren(base5?.elements ?? []);
|
|
247397
|
-
const mrow = doc$12.createElementNS(MATHML_NS$
|
|
247401
|
+
const mrow = doc$12.createElementNS(MATHML_NS$2, "mrow");
|
|
247398
247402
|
mrow.appendChild(baseContent);
|
|
247399
247403
|
wrapper.appendChild(mrow);
|
|
247400
|
-
const accent = doc$12.createElementNS(MATHML_NS$
|
|
247404
|
+
const accent = doc$12.createElementNS(MATHML_NS$2, "mo");
|
|
247401
247405
|
accent.setAttribute("stretchy", "true");
|
|
247402
247406
|
accent.textContent = "‾";
|
|
247403
247407
|
wrapper.appendChild(accent);
|
|
247404
247408
|
return wrapper;
|
|
247409
|
+
}, MATHML_NS$1 = "http://www.w3.org/1998/Math/MathML", convertSubscript = (node3, doc$12, convertChildren) => {
|
|
247410
|
+
const elements = node3.elements ?? [];
|
|
247411
|
+
const base5 = elements.find((e) => e.name === "m:e");
|
|
247412
|
+
const sub = elements.find((e) => e.name === "m:sub");
|
|
247413
|
+
const msub = doc$12.createElementNS(MATHML_NS$1, "msub");
|
|
247414
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$1, "mrow");
|
|
247415
|
+
baseRow.appendChild(convertChildren(base5?.elements ?? []));
|
|
247416
|
+
msub.appendChild(baseRow);
|
|
247417
|
+
const subRow = doc$12.createElementNS(MATHML_NS$1, "mrow");
|
|
247418
|
+
subRow.appendChild(convertChildren(sub?.elements ?? []));
|
|
247419
|
+
msub.appendChild(subRow);
|
|
247420
|
+
return msub;
|
|
247405
247421
|
}, MATHML_NS = "http://www.w3.org/1998/Math/MathML", MATH_OBJECT_REGISTRY, ARGUMENT_ELEMENTS, LIST_MARKER_GAP$1 = 8, DEFAULT_PAGE_HEIGHT_PX = 1056, DEFAULT_VIRTUALIZED_PAGE_GAP = 72, LINK_DATASET_KEYS, MAX_HREF_LENGTH = 2048, SAFE_ANCHOR_PATTERN, MAX_DATA_URL_LENGTH, VALID_IMAGE_DATA_URL, MAX_RESIZE_MULTIPLIER = 3, FALLBACK_MAX_DIMENSION = 1000, MIN_IMAGE_DIMENSION = 20, AMBIGUOUS_LINK_PATTERNS, linkMetrics, TRACK_CHANGE_BASE_CLASS, TRACK_CHANGE_MODIFIER_CLASS, LINK_TARGET_SET, normalizeAnchor$1 = (value) => {
|
|
247406
247422
|
if (typeof value !== "string")
|
|
247407
247423
|
return null;
|
|
@@ -257474,7 +257490,7 @@ var Node$13 = class Node$14 {
|
|
|
257474
257490
|
return;
|
|
257475
257491
|
console.log(...args$1);
|
|
257476
257492
|
}, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
|
|
257477
|
-
var
|
|
257493
|
+
var init_src_BKQDdwIR_es = __esm(() => {
|
|
257478
257494
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
257479
257495
|
init_SuperConverter_DlxycwCE_es();
|
|
257480
257496
|
init_jszip_ChlR43oI_es();
|
|
@@ -283260,6 +283276,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
283260
283276
|
"m:r": convertMathRun,
|
|
283261
283277
|
"m:bar": convertBar,
|
|
283262
283278
|
"m:f": convertFraction,
|
|
283279
|
+
"m:sSub": convertSubscript,
|
|
283263
283280
|
"m:acc": null,
|
|
283264
283281
|
"m:borderBox": null,
|
|
283265
283282
|
"m:box": null,
|
|
@@ -283274,7 +283291,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
283274
283291
|
"m:phant": null,
|
|
283275
283292
|
"m:rad": null,
|
|
283276
283293
|
"m:sPre": null,
|
|
283277
|
-
"m:sSub": null,
|
|
283278
283294
|
"m:sSubSup": null,
|
|
283279
283295
|
"m:sSup": null
|
|
283280
283296
|
};
|
|
@@ -292064,7 +292080,7 @@ var init_zipper_YmNpPIyc_es = __esm(() => {
|
|
|
292064
292080
|
|
|
292065
292081
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
292066
292082
|
var init_super_editor_es = __esm(() => {
|
|
292067
|
-
|
|
292083
|
+
init_src_BKQDdwIR_es();
|
|
292068
292084
|
init_SuperConverter_DlxycwCE_es();
|
|
292069
292085
|
init_jszip_ChlR43oI_es();
|
|
292070
292086
|
init_xml_js_40FWvL78_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.5.0-next.
|
|
3
|
+
"version": "0.5.0-next.50",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
"@types/node": "22.19.2",
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
|
-
"@superdoc/
|
|
28
|
-
"superdoc": "1.24.0",
|
|
27
|
+
"@superdoc/document-api": "0.0.1",
|
|
29
28
|
"@superdoc/super-editor": "0.0.1",
|
|
30
|
-
"
|
|
29
|
+
"superdoc": "1.24.0",
|
|
30
|
+
"@superdoc/pm-adapter": "0.0.0"
|
|
31
31
|
},
|
|
32
32
|
"module": "src/index.ts",
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-arm64": "0.5.0-next.
|
|
38
|
-
"@superdoc-dev/cli-
|
|
39
|
-
"@superdoc-dev/cli-linux-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-windows-x64": "0.5.0-next.
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.5.0-next.50",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.5.0-next.50",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.5.0-next.50",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.5.0-next.50",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.5.0-next.50"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|