@superdoc-dev/mcp 0.12.0-next.29 → 0.12.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 +2 -2
package/dist/index.js
CHANGED
|
@@ -225139,7 +225139,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
225139
225139
|
init_remark_gfm_BhnWr3yf_es();
|
|
225140
225140
|
});
|
|
225141
225141
|
|
|
225142
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
225142
|
+
// ../../packages/superdoc/dist/chunks/src-DGC_pZIT.es.js
|
|
225143
225143
|
function deleteProps(obj, propOrProps) {
|
|
225144
225144
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
225145
225145
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -272273,7 +272273,7 @@ function layoutDocument(blocks2, measures, options = {}) {
|
|
|
272273
272273
|
if (measure.kind !== "pageBreak")
|
|
272274
272274
|
throw new Error(`layoutDocument: expected pageBreak measure for block ${block.id}`);
|
|
272275
272275
|
const currentState = states[states.length - 1];
|
|
272276
|
-
if (shouldSkipRedundantPageBreakBefore(block, currentState))
|
|
272276
|
+
if (shouldSkipRedundantPageBreakBefore(block, currentState) || isPageBreakBeforeSatisfiedByExplicitBreak(blocks2, index2))
|
|
272277
272277
|
continue;
|
|
272278
272278
|
paginator.startNewPage();
|
|
272279
272279
|
continue;
|
|
@@ -314476,6 +314476,20 @@ menclose::after {
|
|
|
314476
314476
|
if (!state)
|
|
314477
314477
|
return true;
|
|
314478
314478
|
return state.page.fragments.length === 0 && state.columnIndex === 0 && Math.abs(state.cursorY - state.topMargin) <= PAGE_START_EPSILON;
|
|
314479
|
+
}, isExplicitPageBreakBlock = (block) => {
|
|
314480
|
+
return block?.kind === "pageBreak" && block.attrs?.source !== "pageBreakBefore";
|
|
314481
|
+
}, isEmptyParagraphBlock = (block) => {
|
|
314482
|
+
if (block?.kind !== "paragraph")
|
|
314483
|
+
return false;
|
|
314484
|
+
const paragraph2 = block;
|
|
314485
|
+
if (paragraph2.attrs?.numberingProperties || paragraph2.attrs?.wordLayout?.marker)
|
|
314486
|
+
return false;
|
|
314487
|
+
return (paragraph2.runs ?? []).every((run2) => (run2.kind === undefined || run2.kind === "text") && run2.text === "");
|
|
314488
|
+
}, isPageBreakBeforeSatisfiedByExplicitBreak = (blocks2, index2) => {
|
|
314489
|
+
const block = blocks2[index2];
|
|
314490
|
+
if (block?.kind !== "pageBreak" || block.attrs?.source !== "pageBreakBefore")
|
|
314491
|
+
return false;
|
|
314492
|
+
return isEmptyParagraphBlock(blocks2[index2 - 1]) && isExplicitPageBreakBlock(blocks2[index2 - 2]);
|
|
314479
314493
|
}, hasOnlySectionBreakBlocks = (blocks2) => {
|
|
314480
314494
|
return blocks2.length > 0 && blocks2.every((block) => block.kind === "sectionBreak");
|
|
314481
314495
|
}, layoutDebugEnabled$2, layoutLog = (...args$1) => {
|
|
@@ -323369,7 +323383,7 @@ menclose::after {
|
|
|
323369
323383
|
return;
|
|
323370
323384
|
console.log(...args$1);
|
|
323371
323385
|
}, 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;
|
|
323372
|
-
var
|
|
323386
|
+
var init_src_DGC_pZIT_es = __esm(() => {
|
|
323373
323387
|
init_rolldown_runtime_Bg48TavK_es();
|
|
323374
323388
|
init_SuperConverter_DAuqlmYY_es();
|
|
323375
323389
|
init_jszip_C49i9kUs_es();
|
|
@@ -359457,7 +359471,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
359457
359471
|
|
|
359458
359472
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
359459
359473
|
var init_super_editor_es = __esm(() => {
|
|
359460
|
-
|
|
359474
|
+
init_src_DGC_pZIT_es();
|
|
359461
359475
|
init_SuperConverter_DAuqlmYY_es();
|
|
359462
359476
|
init_jszip_C49i9kUs_es();
|
|
359463
359477
|
init_xml_js_CqGKpaft_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/mcp",
|
|
3
|
-
"version": "0.12.0-next.
|
|
3
|
+
"version": "0.12.0-next.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@types/bun": "^1.3.8",
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
|
-
"@superdoc/super-editor": "0.0.1",
|
|
23
22
|
"@superdoc/document-api": "0.0.1",
|
|
23
|
+
"@superdoc/super-editor": "0.0.1",
|
|
24
24
|
"superdoc": "1.39.0"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|