@superdoc-dev/cli 0.8.0-next.94 → 0.8.0-next.96
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 +34 -9
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -208524,7 +208524,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
208524
208524
|
init_remark_gfm_BhnWr3yf_es();
|
|
208525
208525
|
});
|
|
208526
208526
|
|
|
208527
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
208527
|
+
// ../../packages/superdoc/dist/chunks/src-DnSeNxAx.es.js
|
|
208528
208528
|
function deleteProps(obj, propOrProps) {
|
|
208529
208529
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
208530
208530
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -265298,7 +265298,7 @@ function mergeAdjacentRuns(runs2) {
|
|
|
265298
265298
|
let current = runs2[0];
|
|
265299
265299
|
for (let i4 = 1;i4 < runs2.length; i4++) {
|
|
265300
265300
|
const next2 = runs2[i4];
|
|
265301
|
-
if (isTextRun$3(current) && isTextRun$3(next2) && !current.token && !next2.token && current.pmStart != null && current.pmEnd != null && next2.pmStart != null && next2.pmEnd != null && current.pmEnd === next2.pmStart && current.fontFamily === next2.fontFamily && current.fontSize === next2.fontSize && current.bold === next2.bold && current.italic === next2.italic && current.underline === next2.underline && current.strike === next2.strike && current.color === next2.color && current.highlight === next2.highlight && (current.letterSpacing ?? 0) === (next2.letterSpacing ?? 0) && trackedChangesCompatible(current, next2) && dataAttrsCompatible(current, next2) && commentsCompatible(current, next2)) {
|
|
265301
|
+
if (isTextRun$3(current) && isTextRun$3(next2) && !current.token && !next2.token && current.pmStart != null && current.pmEnd != null && next2.pmStart != null && next2.pmEnd != null && current.pmEnd === next2.pmStart && current.fontFamily === next2.fontFamily && current.fontSize === next2.fontSize && current.bold === next2.bold && current.italic === next2.italic && current.underline === next2.underline && current.strike === next2.strike && current.color === next2.color && current.highlight === next2.highlight && (current.letterSpacing ?? 0) === (next2.letterSpacing ?? 0) && trackedChangesCompatible(current, next2) && dataAttrsCompatible(current, next2) && commentsCompatible(current, next2) && bidiCompatible(current, next2)) {
|
|
265302
265302
|
const currText = current.text ?? "";
|
|
265303
265303
|
const nextText = next2.text ?? "";
|
|
265304
265304
|
current = {
|
|
@@ -290788,6 +290788,10 @@ menclose::after {
|
|
|
290788
290788
|
if (runToken === "totalPageCount")
|
|
290789
290789
|
return context.totalPages ? String(context.totalPages) : run2.text ?? "";
|
|
290790
290790
|
return run2.text ?? "";
|
|
290791
|
+
}, RTL_DATE_LIKE_TOKEN_RE, RLM = "", normalizeRtlDateTokenForWordParity = (text5) => {
|
|
290792
|
+
if (!RTL_DATE_LIKE_TOKEN_RE.test(text5))
|
|
290793
|
+
return text5;
|
|
290794
|
+
return text5.replace(/[./-]/g, (separator) => `${RLM}${separator}${RLM}`);
|
|
290791
290795
|
}, createDomPainter = (options) => {
|
|
290792
290796
|
const painter = new DomPainter(options);
|
|
290793
290797
|
return {
|
|
@@ -291279,7 +291283,8 @@ menclose::after {
|
|
|
291279
291283
|
textRun.baselineShift != null ? textRun.baselineShift : "",
|
|
291280
291284
|
textRun.token ?? "",
|
|
291281
291285
|
textRun.trackedChange ? 1 : 0,
|
|
291282
|
-
textRun.comments?.length ?? 0
|
|
291286
|
+
textRun.comments?.length ?? 0,
|
|
291287
|
+
textRun.bidi ? JSON.stringify(textRun.bidi) : ""
|
|
291283
291288
|
].join(",");
|
|
291284
291289
|
}).join("|");
|
|
291285
291290
|
const attrs = block.attrs;
|
|
@@ -291444,6 +291449,8 @@ menclose::after {
|
|
|
291444
291449
|
hash$3 = hashString(hash$3, getRunBooleanProp(run2, "strike") ? "1" : "");
|
|
291445
291450
|
hash$3 = hashString(hash$3, getRunStringProp(run2, "vertAlign"));
|
|
291446
291451
|
hash$3 = hashNumber(hash$3, getRunNumberProp(run2, "baselineShift"));
|
|
291452
|
+
const bidi = run2.bidi;
|
|
291453
|
+
hash$3 = hashString(hash$3, bidi ? JSON.stringify(bidi) : "");
|
|
291447
291454
|
}
|
|
291448
291455
|
}
|
|
291449
291456
|
}
|
|
@@ -291946,6 +291953,7 @@ menclose::after {
|
|
|
291946
291953
|
const fontFamily = "fontFamily" in run2 ? run2.fontFamily : undefined;
|
|
291947
291954
|
const highlight = "highlight" in run2 ? run2.highlight : undefined;
|
|
291948
291955
|
const link2 = "link" in run2 ? run2.link : undefined;
|
|
291956
|
+
const bidi = "bidi" in run2 ? run2.bidi : undefined;
|
|
291949
291957
|
return [
|
|
291950
291958
|
bold2 ? "b" : "",
|
|
291951
291959
|
italic ? "i" : "",
|
|
@@ -291955,7 +291963,8 @@ menclose::after {
|
|
|
291955
291963
|
fontSize !== undefined ? `fs:${fontSize}` : "",
|
|
291956
291964
|
fontFamily ? `ff:${fontFamily}` : "",
|
|
291957
291965
|
highlight ? `hl:${highlight}` : "",
|
|
291958
|
-
link2 ? `ln:${JSON.stringify(link2)}` : ""
|
|
291966
|
+
link2 ? `ln:${JSON.stringify(link2)}` : "",
|
|
291967
|
+
bidi ? `bd:${JSON.stringify(bidi)}` : ""
|
|
291959
291968
|
].join("");
|
|
291960
291969
|
}, MAX_CACHE_SIZE$1 = 1e4, BYTES_PER_ENTRY_ESTIMATE = 5000, hashParagraphFrame = (frame) => {
|
|
291961
291970
|
const parts = [];
|
|
@@ -297083,6 +297092,14 @@ menclose::after {
|
|
|
297083
297092
|
if (aKeys[i4] !== bKeys[i4])
|
|
297084
297093
|
return false;
|
|
297085
297094
|
return true;
|
|
297095
|
+
}, bidiCompatible = (a2, b$1) => {
|
|
297096
|
+
const aBidi = a2.bidi;
|
|
297097
|
+
const bBidi = b$1.bidi;
|
|
297098
|
+
if (!aBidi && !bBidi)
|
|
297099
|
+
return true;
|
|
297100
|
+
if (!aBidi || !bBidi)
|
|
297101
|
+
return false;
|
|
297102
|
+
return aBidi.rtl === bBidi.rtl && aBidi.embedding === bBidi.embedding && aBidi.override === bBidi.override;
|
|
297086
297103
|
}, toTrackChangeAttrs = (value) => {
|
|
297087
297104
|
if (!value || typeof value !== "object")
|
|
297088
297105
|
return;
|
|
@@ -302116,7 +302133,7 @@ menclose::after {
|
|
|
302116
302133
|
return;
|
|
302117
302134
|
console.log(...args$1);
|
|
302118
302135
|
}, 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;
|
|
302119
|
-
var
|
|
302136
|
+
var init_src_DnSeNxAx_es = __esm(() => {
|
|
302120
302137
|
init_rolldown_runtime_Bg48TavK_es();
|
|
302121
302138
|
init_SuperConverter_BInxZk0I_es();
|
|
302122
302139
|
init_jszip_C49i9kUs_es();
|
|
@@ -331669,7 +331686,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
331669
331686
|
const isActiveLink = !!(linkData && !linkData.blocked && linkData.href);
|
|
331670
331687
|
const elem = isActiveLink ? this.doc.createElement("a") : this.doc.createElement("span");
|
|
331671
331688
|
const text5 = resolveRunText(run2, context);
|
|
331672
|
-
|
|
331689
|
+
const textRun = run2;
|
|
331690
|
+
const effectiveText = textRun.bidi?.rtl === true && typeof text5 === "string" ? normalizeRtlDateTokenForWordParity(text5) : text5;
|
|
331691
|
+
this.setTextContentWithFormattingSpaceMarks(elem, effectiveText);
|
|
331673
331692
|
if (linkData?.dataset)
|
|
331674
331693
|
applyLinkDataset(elem, linkData.dataset);
|
|
331675
331694
|
if (linkData?.blocked) {
|
|
@@ -331684,7 +331703,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
331684
331703
|
this.pendingTooltips.set(elem, linkData.tooltip);
|
|
331685
331704
|
}
|
|
331686
331705
|
applyRunStyles(elem, run2, isActiveLink);
|
|
331687
|
-
|
|
331706
|
+
if (textRun.bidi?.rtl === true)
|
|
331707
|
+
elem.setAttribute("dir", "rtl");
|
|
331708
|
+
else if (typeof textRun.text === "string" && RTL_DATE_LIKE_TOKEN_RE.test(textRun.text))
|
|
331709
|
+
elem.setAttribute("dir", "ltr");
|
|
331710
|
+
const commentAnnotations = textRun.comments;
|
|
331688
331711
|
if (!!commentAnnotations?.length) {
|
|
331689
331712
|
elem.dataset.commentIds = commentAnnotations.map((c) => c.commentId).join(",");
|
|
331690
331713
|
if (commentAnnotations.some((c) => c.internal))
|
|
@@ -332146,7 +332169,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
332146
332169
|
sdt: run2.sdt ?? null,
|
|
332147
332170
|
link: run2.link ?? null,
|
|
332148
332171
|
comments: run2.comments ?? null,
|
|
332149
|
-
dataAttrs: stableDataAttrs(run2.dataAttrs) ?? null
|
|
332172
|
+
dataAttrs: stableDataAttrs(run2.dataAttrs) ?? null,
|
|
332173
|
+
bidi: run2.bidi ?? null
|
|
332150
332174
|
});
|
|
332151
332175
|
const isWhitespaceOnly = (text5) => {
|
|
332152
332176
|
if (text5.length === 0)
|
|
@@ -332794,6 +332818,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
332794
332818
|
"path(",
|
|
332795
332819
|
"rect("
|
|
332796
332820
|
];
|
|
332821
|
+
RTL_DATE_LIKE_TOKEN_RE = /^-?\d+(?:[./-]\d+)+$/;
|
|
332797
332822
|
CLIP_PATH_PREFIXES = [
|
|
332798
332823
|
"inset(",
|
|
332799
332824
|
"polygon(",
|
|
@@ -340177,7 +340202,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
340177
340202
|
|
|
340178
340203
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
340179
340204
|
var init_super_editor_es = __esm(() => {
|
|
340180
|
-
|
|
340205
|
+
init_src_DnSeNxAx_es();
|
|
340181
340206
|
init_SuperConverter_BInxZk0I_es();
|
|
340182
340207
|
init_jszip_C49i9kUs_es();
|
|
340183
340208
|
init_xml_js_CqGKpaft_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.8.0-next.
|
|
3
|
+
"version": "0.8.0-next.96",
|
|
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
|
-
"
|
|
28
|
+
"superdoc": "1.32.0",
|
|
29
29
|
"@superdoc/super-editor": "0.0.1",
|
|
30
|
-
"superdoc": "
|
|
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-
|
|
38
|
-
"@superdoc-dev/cli-
|
|
39
|
-
"@superdoc-dev/cli-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-
|
|
37
|
+
"@superdoc-dev/cli-darwin-arm64": "0.8.0-next.96",
|
|
38
|
+
"@superdoc-dev/cli-darwin-x64": "0.8.0-next.96",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.8.0-next.96",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.8.0-next.96",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.8.0-next.96"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|