@superdoc-dev/cli 0.5.0-next.50 → 0.5.0-next.51
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 +31 -19
- package/package.json +8 -8
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-B9qjgVFm.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$5 = "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,49 +247375,61 @@ 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$5, 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$4 = "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
|
-
const numRow = doc$12.createElementNS(MATHML_NS$
|
|
247387
|
+
const frac = doc$12.createElementNS(MATHML_NS$4, "mfrac");
|
|
247388
|
+
const numRow = doc$12.createElementNS(MATHML_NS$4, "mrow");
|
|
247389
247389
|
numRow.appendChild(convertChildren(num?.elements ?? []));
|
|
247390
247390
|
frac.appendChild(numRow);
|
|
247391
|
-
const denRow = doc$12.createElementNS(MATHML_NS$
|
|
247391
|
+
const denRow = doc$12.createElementNS(MATHML_NS$4, "mrow");
|
|
247392
247392
|
denRow.appendChild(convertChildren(den?.elements ?? []));
|
|
247393
247393
|
frac.appendChild(denRow);
|
|
247394
247394
|
return frac;
|
|
247395
|
-
}, MATHML_NS$
|
|
247395
|
+
}, MATHML_NS$3 = "http://www.w3.org/1998/Math/MathML", convertBar = (node3, doc$12, convertChildren) => {
|
|
247396
247396
|
const elements = node3.elements ?? [];
|
|
247397
247397
|
const isUnder = elements.find((e) => e.name === "m:barPr")?.elements?.find((e) => e.name === "m:pos")?.attributes?.["m:val"] !== "top";
|
|
247398
247398
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
247399
|
-
const wrapper = doc$12.createElementNS(MATHML_NS$
|
|
247399
|
+
const wrapper = doc$12.createElementNS(MATHML_NS$3, isUnder ? "munder" : "mover");
|
|
247400
247400
|
const baseContent = convertChildren(base5?.elements ?? []);
|
|
247401
|
-
const mrow = doc$12.createElementNS(MATHML_NS$
|
|
247401
|
+
const mrow = doc$12.createElementNS(MATHML_NS$3, "mrow");
|
|
247402
247402
|
mrow.appendChild(baseContent);
|
|
247403
247403
|
wrapper.appendChild(mrow);
|
|
247404
|
-
const accent = doc$12.createElementNS(MATHML_NS$
|
|
247404
|
+
const accent = doc$12.createElementNS(MATHML_NS$3, "mo");
|
|
247405
247405
|
accent.setAttribute("stretchy", "true");
|
|
247406
247406
|
accent.textContent = "‾";
|
|
247407
247407
|
wrapper.appendChild(accent);
|
|
247408
247408
|
return wrapper;
|
|
247409
|
-
}, MATHML_NS$
|
|
247409
|
+
}, MATHML_NS$2 = "http://www.w3.org/1998/Math/MathML", convertSubscript = (node3, doc$12, convertChildren) => {
|
|
247410
247410
|
const elements = node3.elements ?? [];
|
|
247411
247411
|
const base5 = elements.find((e) => e.name === "m:e");
|
|
247412
247412
|
const sub = elements.find((e) => e.name === "m:sub");
|
|
247413
|
-
const msub = doc$12.createElementNS(MATHML_NS$
|
|
247414
|
-
const baseRow = doc$12.createElementNS(MATHML_NS$
|
|
247413
|
+
const msub = doc$12.createElementNS(MATHML_NS$2, "msub");
|
|
247414
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$2, "mrow");
|
|
247415
247415
|
baseRow.appendChild(convertChildren(base5?.elements ?? []));
|
|
247416
247416
|
msub.appendChild(baseRow);
|
|
247417
|
-
const subRow = doc$12.createElementNS(MATHML_NS$
|
|
247417
|
+
const subRow = doc$12.createElementNS(MATHML_NS$2, "mrow");
|
|
247418
247418
|
subRow.appendChild(convertChildren(sub?.elements ?? []));
|
|
247419
247419
|
msub.appendChild(subRow);
|
|
247420
247420
|
return msub;
|
|
247421
|
+
}, MATHML_NS$1 = "http://www.w3.org/1998/Math/MathML", convertSuperscript = (node3, doc$12, convertChildren) => {
|
|
247422
|
+
const elements = node3.elements ?? [];
|
|
247423
|
+
const base5 = elements.find((e) => e.name === "m:e");
|
|
247424
|
+
const sup = elements.find((e) => e.name === "m:sup");
|
|
247425
|
+
const msup = doc$12.createElementNS(MATHML_NS$1, "msup");
|
|
247426
|
+
const baseRow = doc$12.createElementNS(MATHML_NS$1, "mrow");
|
|
247427
|
+
baseRow.appendChild(convertChildren(base5?.elements ?? []));
|
|
247428
|
+
msup.appendChild(baseRow);
|
|
247429
|
+
const supRow = doc$12.createElementNS(MATHML_NS$1, "mrow");
|
|
247430
|
+
supRow.appendChild(convertChildren(sup?.elements ?? []));
|
|
247431
|
+
msup.appendChild(supRow);
|
|
247432
|
+
return msup;
|
|
247421
247433
|
}, 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) => {
|
|
247422
247434
|
if (typeof value !== "string")
|
|
247423
247435
|
return null;
|
|
@@ -257490,7 +257502,7 @@ var Node$13 = class Node$14 {
|
|
|
257490
257502
|
return;
|
|
257491
257503
|
console.log(...args$1);
|
|
257492
257504
|
}, 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;
|
|
257493
|
-
var
|
|
257505
|
+
var init_src_B9qjgVFm_es = __esm(() => {
|
|
257494
257506
|
init_rolldown_runtime_B2q5OVn9_es();
|
|
257495
257507
|
init_SuperConverter_DlxycwCE_es();
|
|
257496
257508
|
init_jszip_ChlR43oI_es();
|
|
@@ -283277,6 +283289,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
283277
283289
|
"m:bar": convertBar,
|
|
283278
283290
|
"m:f": convertFraction,
|
|
283279
283291
|
"m:sSub": convertSubscript,
|
|
283292
|
+
"m:sSup": convertSuperscript,
|
|
283280
283293
|
"m:acc": null,
|
|
283281
283294
|
"m:borderBox": null,
|
|
283282
283295
|
"m:box": null,
|
|
@@ -283291,8 +283304,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
283291
283304
|
"m:phant": null,
|
|
283292
283305
|
"m:rad": null,
|
|
283293
283306
|
"m:sPre": null,
|
|
283294
|
-
"m:sSubSup": null
|
|
283295
|
-
"m:sSup": null
|
|
283307
|
+
"m:sSubSup": null
|
|
283296
283308
|
};
|
|
283297
283309
|
ARGUMENT_ELEMENTS = new Set([
|
|
283298
283310
|
"m:e",
|
|
@@ -292080,7 +292092,7 @@ var init_zipper_YmNpPIyc_es = __esm(() => {
|
|
|
292080
292092
|
|
|
292081
292093
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
292082
292094
|
var init_super_editor_es = __esm(() => {
|
|
292083
|
-
|
|
292095
|
+
init_src_B9qjgVFm_es();
|
|
292084
292096
|
init_SuperConverter_DlxycwCE_es();
|
|
292085
292097
|
init_jszip_ChlR43oI_es();
|
|
292086
292098
|
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.51",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
27
|
"@superdoc/document-api": "0.0.1",
|
|
28
|
+
"@superdoc/pm-adapter": "0.0.0",
|
|
28
29
|
"@superdoc/super-editor": "0.0.1",
|
|
29
|
-
"superdoc": "1.24.0"
|
|
30
|
-
"@superdoc/pm-adapter": "0.0.0"
|
|
30
|
+
"superdoc": "1.24.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.51",
|
|
38
|
+
"@superdoc-dev/cli-linux-x64": "0.5.0-next.51",
|
|
39
|
+
"@superdoc-dev/cli-linux-arm64": "0.5.0-next.51",
|
|
40
|
+
"@superdoc-dev/cli-darwin-x64": "0.5.0-next.51",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.5.0-next.51"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|