@superdoc-dev/mcp 0.10.0-next.4 → 0.10.0-next.5
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 +95 -17
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -211378,7 +211378,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
211378
211378
|
init_remark_gfm_BhnWr3yf_es();
|
|
211379
211379
|
});
|
|
211380
211380
|
|
|
211381
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
211381
|
+
// ../../packages/superdoc/dist/chunks/src-B9A7ox0h.es.js
|
|
211382
211382
|
function deleteProps(obj, propOrProps) {
|
|
211383
211383
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
211384
211384
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -249854,7 +249854,7 @@ function getSdtSiblingBoundaries(containerKeys) {
|
|
|
249854
249854
|
};
|
|
249855
249855
|
});
|
|
249856
249856
|
}
|
|
249857
|
-
function applySdtContainerChrome(doc$12, container, sdt, containerSdt, boundaryOptions, options) {
|
|
249857
|
+
function applySdtContainerChrome(doc$12, container, sdt, containerSdt, boundaryOptions, options, chrome2) {
|
|
249858
249858
|
if (!shouldRenderSdtContainerChrome(sdt, containerSdt, options))
|
|
249859
249859
|
return false;
|
|
249860
249860
|
const metadata = getSdtContainerMetadata(sdt, containerSdt);
|
|
@@ -249876,6 +249876,8 @@ function applySdtContainerChrome(doc$12, container, sdt, containerSdt, boundaryO
|
|
|
249876
249876
|
container.style.setProperty("--sd-sdt-chrome-bottom-extension", `${boundaryOptions.paddingBottomOverride}px`);
|
|
249877
249877
|
}
|
|
249878
249878
|
if (boundaryOptions?.showLabel ?? isStart) {
|
|
249879
|
+
if (chrome2 === "none" && isStructuredContentMetadata(metadata))
|
|
249880
|
+
return true;
|
|
249879
249881
|
const labelEl = doc$12.createElement("div");
|
|
249880
249882
|
labelEl.className = config3.labelClassName;
|
|
249881
249883
|
const labelText = doc$12.createElement("span");
|
|
@@ -250175,7 +250177,7 @@ function computeCellVisibleHeight(cell2, cellFrom, cellTo) {
|
|
|
250175
250177
|
return cellVisHeight;
|
|
250176
250178
|
}
|
|
250177
250179
|
function renderPartialEmbeddedTable(params$1) {
|
|
250178
|
-
const { doc: doc$12, block, blockMeasure: tableMeasure, cumulativeLineCount, globalFromLine, globalToLine, contentWidthPx, context, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, applySdtDataset: applySdtDataset$1, sdtBoundary, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome } = params$1;
|
|
250180
|
+
const { doc: doc$12, block, blockMeasure: tableMeasure, cumulativeLineCount, globalFromLine, globalToLine, contentWidthPx, context, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, applySdtDataset: applySdtDataset$1, chrome: chrome2, sdtBoundary, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome } = params$1;
|
|
250179
250181
|
const rowSegmentCounts = tableMeasure.rows.map((row2) => getEmbeddedRowSegmentCount(row2));
|
|
250180
250182
|
const totalTableSegments = rowSegmentCounts.reduce((s2, c) => s2 + c, 0);
|
|
250181
250183
|
const tableStartSegment = cumulativeLineCount;
|
|
@@ -250261,6 +250263,7 @@ function renderPartialEmbeddedTable(params$1) {
|
|
|
250261
250263
|
captureLineSnapshot,
|
|
250262
250264
|
renderDrawingContent,
|
|
250263
250265
|
applySdtDataset: applySdtDataset$1,
|
|
250266
|
+
chrome: chrome2,
|
|
250264
250267
|
fromRow: embeddedFromRow,
|
|
250265
250268
|
toRow: embeddedToRow,
|
|
250266
250269
|
partialRow: partialRowInfo,
|
|
@@ -289784,6 +289787,35 @@ var Node$13 = class Node$14 {
|
|
|
289784
289787
|
background-color: transparent;
|
|
289785
289788
|
}
|
|
289786
289789
|
|
|
289790
|
+
/* Global content-control chrome opt-out: preserve SDT wrappers/datasets while
|
|
289791
|
+
* suppressing built-in visual chrome on structured-content controls. Their
|
|
289792
|
+
* label elements are not emitted by renderer/helpers when this class is
|
|
289793
|
+
* present (DOM non-emission), and these rules neutralize
|
|
289794
|
+
* border/padding/hover/selection visuals. documentSection chrome (e.g. the
|
|
289795
|
+
* locked-section tooltip) is intentionally preserved and not in scope. */
|
|
289796
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-inline,
|
|
289797
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block {
|
|
289798
|
+
border: none;
|
|
289799
|
+
padding: 0;
|
|
289800
|
+
border-radius: 0;
|
|
289801
|
+
background: none;
|
|
289802
|
+
}
|
|
289803
|
+
|
|
289804
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-inline:hover,
|
|
289805
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block:hover,
|
|
289806
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block.sdt-group-hover,
|
|
289807
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block[data-lock-mode].sdt-group-hover,
|
|
289808
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-inline[data-lock-mode]:hover {
|
|
289809
|
+
border: none;
|
|
289810
|
+
background: none;
|
|
289811
|
+
}
|
|
289812
|
+
|
|
289813
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-inline.ProseMirror-selectednode,
|
|
289814
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block.ProseMirror-selectednode {
|
|
289815
|
+
border-color: transparent;
|
|
289816
|
+
background: none;
|
|
289817
|
+
}
|
|
289818
|
+
|
|
289787
289819
|
/* Hover highlight for SDT containers.
|
|
289788
289820
|
* Hover adds background highlight and z-index boost.
|
|
289789
289821
|
* Block SDTs use .sdt-group-hover class (event delegation for multi-fragment coordination).
|
|
@@ -289809,6 +289841,35 @@ var Node$13 = class Node$14 {
|
|
|
289809
289841
|
background-color: var(--sd-content-controls-lock-hover-bg, rgba(98, 155, 231, 0.08));
|
|
289810
289842
|
}
|
|
289811
289843
|
|
|
289844
|
+
/* Chrome opt-out for block SDTs. Main paints block chrome through ::before
|
|
289845
|
+
* (background) and ::after (border) pseudo-elements, which the element-level
|
|
289846
|
+
* .superdoc-cc-chrome-none rules above cannot reach. Suppress the pseudo
|
|
289847
|
+
* chrome directly, including the selected-node border and the lock-hover
|
|
289848
|
+
* ::before background. Declared after every chrome-showing pseudo rule so
|
|
289849
|
+
* source order resolves equal-specificity ties, the same way the
|
|
289850
|
+
* viewing-mode rules below do. */
|
|
289851
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block::before,
|
|
289852
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block:hover::before,
|
|
289853
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block.sdt-group-hover::before,
|
|
289854
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block[data-lock-mode].sdt-group-hover::before {
|
|
289855
|
+
background: none;
|
|
289856
|
+
}
|
|
289857
|
+
|
|
289858
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block::after,
|
|
289859
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block:hover::after,
|
|
289860
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block.sdt-group-hover::after,
|
|
289861
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block.ProseMirror-selectednode::after {
|
|
289862
|
+
border: none;
|
|
289863
|
+
}
|
|
289864
|
+
|
|
289865
|
+
/* Reset the lock-hover z-index boost so a suppressed SDT does not stack
|
|
289866
|
+
* above host-attached custom UI. Mirrors the base lock-hover selectors with
|
|
289867
|
+
* the chrome-none prefix so specificity stays above the boost rule. */
|
|
289868
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block[data-lock-mode].sdt-group-hover:not(.ProseMirror-selectednode),
|
|
289869
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-inline[data-lock-mode]:hover:not(.ProseMirror-selectednode, [data-appearance='hidden']) {
|
|
289870
|
+
z-index: auto;
|
|
289871
|
+
}
|
|
289872
|
+
|
|
289812
289873
|
/* Viewing mode: remove structured content affordances */
|
|
289813
289874
|
.presentation-editor--viewing .superdoc-structured-content-block,
|
|
289814
289875
|
.presentation-editor--viewing .superdoc-structured-content-inline {
|
|
@@ -291340,7 +291401,7 @@ menclose::after {
|
|
|
291340
291401
|
if (element3.style.textIndent)
|
|
291341
291402
|
element3.style.removeProperty("text-indent");
|
|
291342
291403
|
}, INLINE_SDT_CHROME_EXTRA_WIDTH_PX = 4, renderParagraphContent = (params$1) => {
|
|
291343
|
-
const { doc: doc$12, frameEl, block, measure, linesOverride, width, localStartLine, localEndLine, lineIndexOffset = 0, continuesFromPrev, continuesOnNext, resolvedContent, betweenInfo, sdtBoundary, spacingPolicy, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome, applySdtDataset: applySdtDataset$1, applyContainerSdtDataset: applyContainerSdtDataset$1, renderDropCap: renderDropCap$1, lineTopOffset = 0 } = params$1;
|
|
291404
|
+
const { doc: doc$12, frameEl, block, measure, linesOverride, width, localStartLine, localEndLine, lineIndexOffset = 0, continuesFromPrev, continuesOnNext, resolvedContent, betweenInfo, sdtBoundary, spacingPolicy, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome, applySdtDataset: applySdtDataset$1, applyContainerSdtDataset: applyContainerSdtDataset$1, contentControlsChrome, renderDropCap: renderDropCap$1, lineTopOffset = 0 } = params$1;
|
|
291344
291405
|
applyParagraphBlockStyles(frameEl, block.attrs);
|
|
291345
291406
|
const { shadingLayer, borderLayer } = createParagraphDecorationLayers(doc$12, width, block.attrs, betweenInfo);
|
|
291346
291407
|
if (shadingLayer)
|
|
@@ -291361,7 +291422,7 @@ menclose::after {
|
|
|
291361
291422
|
ancestorContainerSdts
|
|
291362
291423
|
});
|
|
291363
291424
|
if (applySdtChrome) {
|
|
291364
|
-
if (applySdtContainerChrome(doc$12, frameEl, block.attrs?.sdt, block.attrs?.containerSdt, sdtBoundary))
|
|
291425
|
+
if (applySdtContainerChrome(doc$12, frameEl, block.attrs?.sdt, block.attrs?.containerSdt, sdtBoundary, undefined, contentControlsChrome))
|
|
291365
291426
|
onSdtContainerChrome?.();
|
|
291366
291427
|
}
|
|
291367
291428
|
renderParagraphDropCap({
|
|
@@ -291760,7 +291821,7 @@ menclose::after {
|
|
|
291760
291821
|
el.style[key2] = String(value);
|
|
291761
291822
|
});
|
|
291762
291823
|
}, renderEmbeddedTable = (params$1) => {
|
|
291763
|
-
const { doc: doc$12, table: table2, measure, availableWidth, context, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, applySdtDataset: applySdtDataset$1, fromRow: paramFromRow, toRow: paramToRow, partialRow: paramPartialRow, sdtBoundary, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome } = params$1;
|
|
291824
|
+
const { doc: doc$12, table: table2, measure, availableWidth, context, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, applySdtDataset: applySdtDataset$1, chrome: chrome2, fromRow: paramFromRow, toRow: paramToRow, partialRow: paramPartialRow, sdtBoundary, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome } = params$1;
|
|
291764
291825
|
const effectiveFromRow = paramFromRow ?? 0;
|
|
291765
291826
|
const effectiveToRow = paramToRow ?? table2.rows.length;
|
|
291766
291827
|
const visibleHeight = computeVisibleHeight(measure.rows, effectiveFromRow, effectiveToRow, paramPartialRow);
|
|
@@ -291801,6 +291862,7 @@ menclose::after {
|
|
|
291801
291862
|
renderDrawingContent,
|
|
291802
291863
|
applyFragmentFrame,
|
|
291803
291864
|
applySdtDataset: applySdtDataset$1,
|
|
291865
|
+
chrome: chrome2,
|
|
291804
291866
|
applyStyles: applyInlineStyles,
|
|
291805
291867
|
sdtBoundary,
|
|
291806
291868
|
ancestorContainerKey,
|
|
@@ -291815,7 +291877,7 @@ menclose::after {
|
|
|
291815
291877
|
hasSdtContainerChrome
|
|
291816
291878
|
};
|
|
291817
291879
|
}, renderTableCell = (deps) => {
|
|
291818
|
-
const { doc: doc$12, x, y: y$1, rowHeight, cellMeasure, cell: cell2, borders, useDefaultBorder, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, context, applySdtDataset: applySdtDataset$1, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome, tableIndent, isRtl, cellWidth, fromLine, toLine } = deps;
|
|
291880
|
+
const { doc: doc$12, x, y: y$1, rowHeight, cellMeasure, cell: cell2, borders, useDefaultBorder, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, context, applySdtDataset: applySdtDataset$1, chrome: chrome2, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome, tableIndent, isRtl, cellWidth, fromLine, toLine } = deps;
|
|
291819
291881
|
const padding = cell2?.attrs?.padding || {
|
|
291820
291882
|
top: 0,
|
|
291821
291883
|
left: 4,
|
|
@@ -291902,6 +291964,7 @@ menclose::after {
|
|
|
291902
291964
|
captureLineSnapshot,
|
|
291903
291965
|
renderDrawingContent,
|
|
291904
291966
|
applySdtDataset: applySdtDataset$1,
|
|
291967
|
+
chrome: chrome2,
|
|
291905
291968
|
sdtBoundary: sdtBoundaries[i4],
|
|
291906
291969
|
ancestorContainerKey,
|
|
291907
291970
|
ancestorContainerSdt,
|
|
@@ -292064,6 +292127,7 @@ menclose::after {
|
|
|
292064
292127
|
cellEl.style.overflow = "visible";
|
|
292065
292128
|
onSdtContainerChrome?.();
|
|
292066
292129
|
},
|
|
292130
|
+
contentControlsChrome: chrome2,
|
|
292067
292131
|
applySdtDataset: applySdtDataset$1,
|
|
292068
292132
|
renderLine: ({ block: block$1, line, lineIndex, isLastLine, resolvedListTextStartPx }) => renderLine$1(block$1, line, {
|
|
292069
292133
|
...context,
|
|
@@ -292241,7 +292305,7 @@ menclose::after {
|
|
|
292241
292305
|
left: baseBorders.left
|
|
292242
292306
|
};
|
|
292243
292307
|
}, renderTableRow = (deps) => {
|
|
292244
|
-
const { doc: doc$12, container, rowIndex, y: y$1, rowMeasure, row: row2, totalRows, tableBorders, columnWidths, allRowHeights, tableIndent, isRtl, context, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, applySdtDataset: applySdtDataset$1, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome, continuesFromPrev, continuesOnNext, partialRow, cellSpacingPx = 0 } = deps;
|
|
292308
|
+
const { doc: doc$12, container, rowIndex, y: y$1, rowMeasure, row: row2, totalRows, tableBorders, columnWidths, allRowHeights, tableIndent, isRtl, context, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, applySdtDataset: applySdtDataset$1, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome, continuesFromPrev, continuesOnNext, partialRow, cellSpacingPx = 0, chrome: chrome2 } = deps;
|
|
292245
292309
|
const totalCols = columnWidths.length;
|
|
292246
292310
|
const calculateXPosition = (gridColumnStart) => {
|
|
292247
292311
|
let x = cellSpacingPx;
|
|
@@ -292327,12 +292391,13 @@ menclose::after {
|
|
|
292327
292391
|
toLine,
|
|
292328
292392
|
tableIndent,
|
|
292329
292393
|
isRtl,
|
|
292330
|
-
cellWidth: computedCellWidth > 0 ? computedCellWidth : undefined
|
|
292394
|
+
cellWidth: computedCellWidth > 0 ? computedCellWidth : undefined,
|
|
292395
|
+
chrome: chrome2
|
|
292331
292396
|
});
|
|
292332
292397
|
container.appendChild(cellElement);
|
|
292333
292398
|
}
|
|
292334
292399
|
}, renderTableFragment = (deps) => {
|
|
292335
|
-
const { doc: doc$12, fragment, block, measure, cellSpacingPx, effectiveColumnWidths, context, sdtBoundary, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, applyFragmentFrame, applySdtDataset: applySdtDataset$1, applyContainerSdtDataset: applyContainerSdtDataset$1, applyStyles: applyStyles$3 } = deps;
|
|
292400
|
+
const { doc: doc$12, fragment, block, measure, cellSpacingPx, effectiveColumnWidths, chrome: chrome2, context, sdtBoundary, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, applyFragmentFrame, applySdtDataset: applySdtDataset$1, applyContainerSdtDataset: applyContainerSdtDataset$1, applyStyles: applyStyles$3 } = deps;
|
|
292336
292401
|
if (!doc$12) {
|
|
292337
292402
|
console.error("DomPainter: document is not available");
|
|
292338
292403
|
if (typeof document !== "undefined") {
|
|
@@ -292370,7 +292435,7 @@ menclose::after {
|
|
|
292370
292435
|
ancestorContainerSdt,
|
|
292371
292436
|
ancestorContainerKeys,
|
|
292372
292437
|
ancestorContainerSdts
|
|
292373
|
-
}))
|
|
292438
|
+
}, chrome2))
|
|
292374
292439
|
onSdtContainerChrome?.();
|
|
292375
292440
|
const tableContainerSdt = getSdtContainerMetadata(block.attrs?.sdt, block.attrs?.containerSdt);
|
|
292376
292441
|
const tableContainerKey = getSdtContainerKey(block.attrs?.sdt, block.attrs?.containerSdt);
|
|
@@ -292511,6 +292576,7 @@ menclose::after {
|
|
|
292511
292576
|
ancestorContainerKeys: nextAncestorContainerKeys,
|
|
292512
292577
|
ancestorContainerSdts: nextAncestorContainerSdts,
|
|
292513
292578
|
onSdtContainerChrome,
|
|
292579
|
+
chrome: chrome2,
|
|
292514
292580
|
continuesFromPrev: false,
|
|
292515
292581
|
continuesOnNext: false,
|
|
292516
292582
|
cellSpacingPx
|
|
@@ -292627,6 +292693,7 @@ menclose::after {
|
|
|
292627
292693
|
ancestorContainerKeys: nextAncestorContainerKeys,
|
|
292628
292694
|
ancestorContainerSdts: nextAncestorContainerSdts,
|
|
292629
292695
|
onSdtContainerChrome,
|
|
292696
|
+
chrome: chrome2,
|
|
292630
292697
|
continuesFromPrev: isFirstRenderedBodyRow && fragment.continuesFromPrev === true,
|
|
292631
292698
|
continuesOnNext: isLastRenderedBodyRow && fragment.continuesOnNext === true,
|
|
292632
292699
|
partialRow: partialRowData,
|
|
@@ -292767,6 +292834,8 @@ menclose::after {
|
|
|
292767
292834
|
wrapper.dataset.appearance = "hidden";
|
|
292768
292835
|
return wrapper;
|
|
292769
292836
|
}
|
|
292837
|
+
if (context.contentControlsChrome === "none")
|
|
292838
|
+
return wrapper;
|
|
292770
292839
|
const alias = sdt?.alias || "Inline content";
|
|
292771
292840
|
const labelEl = context.doc.createElement("span");
|
|
292772
292841
|
labelEl.className = DOM_CLASS_NAMES.INLINE_SDT_LABEL;
|
|
@@ -292846,7 +292915,7 @@ menclose::after {
|
|
|
292846
292915
|
else
|
|
292847
292916
|
delete el.dataset.continuesOnNext;
|
|
292848
292917
|
}, isMinimalWordLayout$2 = (value) => isMinimalWordLayout(value), renderParagraphFragment = (params$1) => {
|
|
292849
|
-
const { doc: doc$12, fragment, sdtBoundary, betweenInfo, resolvedItem, applyStyles: applyStyles$3, applyResolvedFragmentFrame, applyFragmentFrame, applySdtDataset: applySdtDataset$1, applyContainerSdtDataset: applyContainerSdtDataset$1, renderLine: renderLine$1, captureLineSnapshot, createErrorPlaceholder } = params$1;
|
|
292918
|
+
const { doc: doc$12, fragment, sdtBoundary, betweenInfo, resolvedItem, applyStyles: applyStyles$3, applyResolvedFragmentFrame, applyFragmentFrame, applySdtDataset: applySdtDataset$1, applyContainerSdtDataset: applyContainerSdtDataset$1, renderLine: renderLine$1, captureLineSnapshot, createErrorPlaceholder, contentControlsChrome } = params$1;
|
|
292850
292919
|
try {
|
|
292851
292920
|
if (!doc$12)
|
|
292852
292921
|
throw new Error("DomPainter: document is not available");
|
|
@@ -292913,7 +292982,8 @@ menclose::after {
|
|
|
292913
292982
|
wrapperEl: fragmentEl
|
|
292914
292983
|
});
|
|
292915
292984
|
},
|
|
292916
|
-
sourceAnchor: resolvedItem?.sourceAnchor
|
|
292985
|
+
sourceAnchor: resolvedItem?.sourceAnchor,
|
|
292986
|
+
contentControlsChrome
|
|
292917
292987
|
});
|
|
292918
292988
|
return fragmentEl;
|
|
292919
292989
|
} catch (error48) {
|
|
@@ -294559,12 +294629,14 @@ menclose::after {
|
|
|
294559
294629
|
this.mountedPageIndices = [];
|
|
294560
294630
|
this.resolvedLayout = null;
|
|
294561
294631
|
this.showFormattingMarks = false;
|
|
294632
|
+
this.contentControlsChrome = "default";
|
|
294562
294633
|
this.options = options;
|
|
294563
294634
|
this.layoutMode = options.layoutMode ?? "vertical";
|
|
294564
294635
|
this.isSemanticFlow = (options.flowMode ?? "paginated") === "semantic";
|
|
294565
294636
|
this.headerProvider = options.headerProvider;
|
|
294566
294637
|
this.footerProvider = options.footerProvider;
|
|
294567
294638
|
this.showFormattingMarks = options.showFormattingMarks === true;
|
|
294639
|
+
this.contentControlsChrome = options.contentControlsChrome ?? "default";
|
|
294568
294640
|
const defaultGap = this.layoutMode === "horizontal" ? 20 : 24;
|
|
294569
294641
|
this.pageGap = typeof options.pageGap === "number" && Number.isFinite(options.pageGap) ? Math.max(0, options.pageGap) : defaultGap;
|
|
294570
294642
|
if (!this.isSemanticFlow && this.layoutMode === "vertical" && options.virtualization?.enabled) {
|
|
@@ -294595,6 +294667,7 @@ menclose::after {
|
|
|
294595
294667
|
}
|
|
294596
294668
|
applyFormattingMarksClass(mount = this.mount) {
|
|
294597
294669
|
mount?.classList.toggle("superdoc-show-formatting-marks", this.showFormattingMarks);
|
|
294670
|
+
mount?.classList.toggle("superdoc-cc-chrome-none", this.contentControlsChrome === "none");
|
|
294598
294671
|
}
|
|
294599
294672
|
invalidateRenderedContent() {
|
|
294600
294673
|
this.pageStates = [];
|
|
@@ -295725,6 +295798,7 @@ menclose::after {
|
|
|
295725
295798
|
sourceAnchor: options?.sourceAnchor
|
|
295726
295799
|
});
|
|
295727
295800
|
},
|
|
295801
|
+
contentControlsChrome: this.contentControlsChrome,
|
|
295728
295802
|
createErrorPlaceholder: this.createErrorPlaceholder.bind(this)
|
|
295729
295803
|
});
|
|
295730
295804
|
}
|
|
@@ -296459,6 +296533,7 @@ menclose::after {
|
|
|
296459
296533
|
measure: tableRenderData.measure,
|
|
296460
296534
|
cellSpacingPx: tableRenderData.cellSpacingPx,
|
|
296461
296535
|
effectiveColumnWidths: tableRenderData.effectiveColumnWidths,
|
|
296536
|
+
chrome: this.contentControlsChrome,
|
|
296462
296537
|
sdtBoundary,
|
|
296463
296538
|
renderLine: renderLineForTableCell,
|
|
296464
296539
|
captureLineSnapshot: (lineEl, lineContext, options) => {
|
|
@@ -296512,6 +296587,7 @@ menclose::after {
|
|
|
296512
296587
|
doc: this.doc,
|
|
296513
296588
|
layoutEpoch: this.layoutEpoch,
|
|
296514
296589
|
showFormattingMarks: this.showFormattingMarks,
|
|
296590
|
+
contentControlsChrome: this.contentControlsChrome,
|
|
296515
296591
|
pendingTooltips: this.pendingTooltips,
|
|
296516
296592
|
getNextLinkId: () => `superdoc-link-${++this.linkIdCounter}`,
|
|
296517
296593
|
applySdtDataset,
|
|
@@ -308284,7 +308360,7 @@ menclose::after {
|
|
|
308284
308360
|
return;
|
|
308285
308361
|
console.log(...args$1);
|
|
308286
308362
|
}, 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;
|
|
308287
|
-
var
|
|
308363
|
+
var init_src_B9A7ox0h_es = __esm(() => {
|
|
308288
308364
|
init_rolldown_runtime_Bg48TavK_es();
|
|
308289
308365
|
init_SuperConverter_C6hKp29w_es();
|
|
308290
308366
|
init_jszip_C49i9kUs_es();
|
|
@@ -336417,7 +336493,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
336417
336493
|
enableCommentsInViewing: options.layoutEngineOptions?.enableCommentsInViewing,
|
|
336418
336494
|
presence: validatedPresence,
|
|
336419
336495
|
showBookmarks: options.layoutEngineOptions?.showBookmarks ?? false,
|
|
336420
|
-
showFormattingMarks: options.layoutEngineOptions?.showFormattingMarks ?? false
|
|
336496
|
+
showFormattingMarks: options.layoutEngineOptions?.showFormattingMarks ?? false,
|
|
336497
|
+
contentControlsChrome: options.layoutEngineOptions?.contentControlsChrome
|
|
336421
336498
|
};
|
|
336422
336499
|
this.#trackedChangesOverrides = options.layoutEngineOptions?.trackedChanges;
|
|
336423
336500
|
this.#viewportHost = doc$12.createElement("div");
|
|
@@ -339868,7 +339945,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
339868
339945
|
footerProvider: this.#headerFooterSession?.footerDecorationProvider,
|
|
339869
339946
|
ruler: this.#layoutOptions.ruler,
|
|
339870
339947
|
pageGap: this.#layoutState.layout?.pageGap ?? effectiveGap,
|
|
339871
|
-
showFormattingMarks: this.#layoutOptions.showFormattingMarks ?? false
|
|
339948
|
+
showFormattingMarks: this.#layoutOptions.showFormattingMarks ?? false,
|
|
339949
|
+
contentControlsChrome: this.#layoutOptions.contentControlsChrome ?? "default"
|
|
339872
339950
|
});
|
|
339873
339951
|
const currentZoom = this.#layoutOptions.zoom ?? 1;
|
|
339874
339952
|
if (currentZoom !== 1)
|
|
@@ -342535,7 +342613,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
342535
342613
|
|
|
342536
342614
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
342537
342615
|
var init_super_editor_es = __esm(() => {
|
|
342538
|
-
|
|
342616
|
+
init_src_B9A7ox0h_es();
|
|
342539
342617
|
init_SuperConverter_C6hKp29w_es();
|
|
342540
342618
|
init_jszip_C49i9kUs_es();
|
|
342541
342619
|
init_xml_js_CqGKpaft_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/mcp",
|
|
3
|
-
"version": "0.10.0-next.
|
|
3
|
+
"version": "0.10.0-next.5",
|
|
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.37.0"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|