@superdoc-dev/cli 0.17.0-next.29 → 0.17.0-next.30
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 +18 -4
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -235773,7 +235773,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
235773
235773
|
init_remark_gfm_BhnWr3yf_es();
|
|
235774
235774
|
});
|
|
235775
235775
|
|
|
235776
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
235776
|
+
// ../../packages/superdoc/dist/chunks/src-DGC_pZIT.es.js
|
|
235777
235777
|
function deleteProps(obj, propOrProps) {
|
|
235778
235778
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
235779
235779
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -283040,7 +283040,7 @@ function layoutDocument(blocks2, measures, options = {}) {
|
|
|
283040
283040
|
if (measure.kind !== "pageBreak")
|
|
283041
283041
|
throw new Error(`layoutDocument: expected pageBreak measure for block ${block.id}`);
|
|
283042
283042
|
const currentState = states[states.length - 1];
|
|
283043
|
-
if (shouldSkipRedundantPageBreakBefore(block, currentState))
|
|
283043
|
+
if (shouldSkipRedundantPageBreakBefore(block, currentState) || isPageBreakBeforeSatisfiedByExplicitBreak(blocks2, index2))
|
|
283044
283044
|
continue;
|
|
283045
283045
|
paginator.startNewPage();
|
|
283046
283046
|
continue;
|
|
@@ -325243,6 +325243,20 @@ menclose::after {
|
|
|
325243
325243
|
if (!state)
|
|
325244
325244
|
return true;
|
|
325245
325245
|
return state.page.fragments.length === 0 && state.columnIndex === 0 && Math.abs(state.cursorY - state.topMargin) <= PAGE_START_EPSILON;
|
|
325246
|
+
}, isExplicitPageBreakBlock = (block) => {
|
|
325247
|
+
return block?.kind === "pageBreak" && block.attrs?.source !== "pageBreakBefore";
|
|
325248
|
+
}, isEmptyParagraphBlock = (block) => {
|
|
325249
|
+
if (block?.kind !== "paragraph")
|
|
325250
|
+
return false;
|
|
325251
|
+
const paragraph2 = block;
|
|
325252
|
+
if (paragraph2.attrs?.numberingProperties || paragraph2.attrs?.wordLayout?.marker)
|
|
325253
|
+
return false;
|
|
325254
|
+
return (paragraph2.runs ?? []).every((run2) => (run2.kind === undefined || run2.kind === "text") && run2.text === "");
|
|
325255
|
+
}, isPageBreakBeforeSatisfiedByExplicitBreak = (blocks2, index2) => {
|
|
325256
|
+
const block = blocks2[index2];
|
|
325257
|
+
if (block?.kind !== "pageBreak" || block.attrs?.source !== "pageBreakBefore")
|
|
325258
|
+
return false;
|
|
325259
|
+
return isEmptyParagraphBlock(blocks2[index2 - 1]) && isExplicitPageBreakBlock(blocks2[index2 - 2]);
|
|
325246
325260
|
}, hasOnlySectionBreakBlocks = (blocks2) => {
|
|
325247
325261
|
return blocks2.length > 0 && blocks2.every((block) => block.kind === "sectionBreak");
|
|
325248
325262
|
}, layoutDebugEnabled$2, layoutLog = (...args$1) => {
|
|
@@ -334136,7 +334150,7 @@ menclose::after {
|
|
|
334136
334150
|
return;
|
|
334137
334151
|
console.log(...args$1);
|
|
334138
334152
|
}, 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, TRACKED_MARK_NAMES;
|
|
334139
|
-
var
|
|
334153
|
+
var init_src_DGC_pZIT_es = __esm(() => {
|
|
334140
334154
|
init_rolldown_runtime_Bg48TavK_es();
|
|
334141
334155
|
init_SuperConverter_DAuqlmYY_es();
|
|
334142
334156
|
init_jszip_C49i9kUs_es();
|
|
@@ -370224,7 +370238,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
370224
370238
|
|
|
370225
370239
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
370226
370240
|
var init_super_editor_es = __esm(() => {
|
|
370227
|
-
|
|
370241
|
+
init_src_DGC_pZIT_es();
|
|
370228
370242
|
init_SuperConverter_DAuqlmYY_es();
|
|
370229
370243
|
init_jszip_C49i9kUs_es();
|
|
370230
370244
|
init_xml_js_CqGKpaft_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.17.0-next.
|
|
3
|
+
"version": "0.17.0-next.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"@types/node": "22.19.2",
|
|
25
25
|
"@types/ws": "^8.5.13",
|
|
26
26
|
"typescript": "^5.9.2",
|
|
27
|
-
"superdoc": "1.39.0",
|
|
28
27
|
"@superdoc/document-api": "0.0.1",
|
|
29
|
-
"@superdoc/super-editor": "0.0.1"
|
|
28
|
+
"@superdoc/super-editor": "0.0.1",
|
|
29
|
+
"superdoc": "1.39.0"
|
|
30
30
|
},
|
|
31
31
|
"module": "src/index.ts",
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@superdoc-dev/cli-darwin-
|
|
37
|
-
"@superdoc-dev/cli-darwin-
|
|
38
|
-
"@superdoc-dev/cli-linux-
|
|
39
|
-
"@superdoc-dev/cli-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
36
|
+
"@superdoc-dev/cli-darwin-arm64": "0.17.0-next.30",
|
|
37
|
+
"@superdoc-dev/cli-darwin-x64": "0.17.0-next.30",
|
|
38
|
+
"@superdoc-dev/cli-linux-arm64": "0.17.0-next.30",
|
|
39
|
+
"@superdoc-dev/cli-windows-x64": "0.17.0-next.30",
|
|
40
|
+
"@superdoc-dev/cli-linux-x64": "0.17.0-next.30"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"predev": "node scripts/ensure-superdoc-build.js",
|