@superdoc-dev/cli 0.15.0-next.4 → 0.15.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 +6 -6
package/dist/index.js
CHANGED
|
@@ -221759,7 +221759,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
221759
221759
|
init_remark_gfm_BhnWr3yf_es();
|
|
221760
221760
|
});
|
|
221761
221761
|
|
|
221762
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
221762
|
+
// ../../packages/superdoc/dist/chunks/src-B9A7ox0h.es.js
|
|
221763
221763
|
function deleteProps(obj, propOrProps) {
|
|
221764
221764
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
221765
221765
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -260368,7 +260368,7 @@ function getSdtSiblingBoundaries(containerKeys) {
|
|
|
260368
260368
|
};
|
|
260369
260369
|
});
|
|
260370
260370
|
}
|
|
260371
|
-
function applySdtContainerChrome(doc$12, container, sdt, containerSdt, boundaryOptions, options) {
|
|
260371
|
+
function applySdtContainerChrome(doc$12, container, sdt, containerSdt, boundaryOptions, options, chrome2) {
|
|
260372
260372
|
if (!shouldRenderSdtContainerChrome(sdt, containerSdt, options))
|
|
260373
260373
|
return false;
|
|
260374
260374
|
const metadata = getSdtContainerMetadata(sdt, containerSdt);
|
|
@@ -260390,6 +260390,8 @@ function applySdtContainerChrome(doc$12, container, sdt, containerSdt, boundaryO
|
|
|
260390
260390
|
container.style.setProperty("--sd-sdt-chrome-bottom-extension", `${boundaryOptions.paddingBottomOverride}px`);
|
|
260391
260391
|
}
|
|
260392
260392
|
if (boundaryOptions?.showLabel ?? isStart) {
|
|
260393
|
+
if (chrome2 === "none" && isStructuredContentMetadata(metadata))
|
|
260394
|
+
return true;
|
|
260393
260395
|
const labelEl = doc$12.createElement("div");
|
|
260394
260396
|
labelEl.className = config2.labelClassName;
|
|
260395
260397
|
const labelText = doc$12.createElement("span");
|
|
@@ -260689,7 +260691,7 @@ function computeCellVisibleHeight(cell2, cellFrom, cellTo) {
|
|
|
260689
260691
|
return cellVisHeight;
|
|
260690
260692
|
}
|
|
260691
260693
|
function renderPartialEmbeddedTable(params$1) {
|
|
260692
|
-
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;
|
|
260694
|
+
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;
|
|
260693
260695
|
const rowSegmentCounts = tableMeasure.rows.map((row2) => getEmbeddedRowSegmentCount(row2));
|
|
260694
260696
|
const totalTableSegments = rowSegmentCounts.reduce((s2, c) => s2 + c, 0);
|
|
260695
260697
|
const tableStartSegment = cumulativeLineCount;
|
|
@@ -260775,6 +260777,7 @@ function renderPartialEmbeddedTable(params$1) {
|
|
|
260775
260777
|
captureLineSnapshot,
|
|
260776
260778
|
renderDrawingContent,
|
|
260777
260779
|
applySdtDataset: applySdtDataset$1,
|
|
260780
|
+
chrome: chrome2,
|
|
260778
260781
|
fromRow: embeddedFromRow,
|
|
260779
260782
|
toRow: embeddedToRow,
|
|
260780
260783
|
partialRow: partialRowInfo,
|
|
@@ -300298,6 +300301,35 @@ var Node$13 = class Node$14 {
|
|
|
300298
300301
|
background-color: transparent;
|
|
300299
300302
|
}
|
|
300300
300303
|
|
|
300304
|
+
/* Global content-control chrome opt-out: preserve SDT wrappers/datasets while
|
|
300305
|
+
* suppressing built-in visual chrome on structured-content controls. Their
|
|
300306
|
+
* label elements are not emitted by renderer/helpers when this class is
|
|
300307
|
+
* present (DOM non-emission), and these rules neutralize
|
|
300308
|
+
* border/padding/hover/selection visuals. documentSection chrome (e.g. the
|
|
300309
|
+
* locked-section tooltip) is intentionally preserved and not in scope. */
|
|
300310
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-inline,
|
|
300311
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block {
|
|
300312
|
+
border: none;
|
|
300313
|
+
padding: 0;
|
|
300314
|
+
border-radius: 0;
|
|
300315
|
+
background: none;
|
|
300316
|
+
}
|
|
300317
|
+
|
|
300318
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-inline:hover,
|
|
300319
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block:hover,
|
|
300320
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block.sdt-group-hover,
|
|
300321
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block[data-lock-mode].sdt-group-hover,
|
|
300322
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-inline[data-lock-mode]:hover {
|
|
300323
|
+
border: none;
|
|
300324
|
+
background: none;
|
|
300325
|
+
}
|
|
300326
|
+
|
|
300327
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-inline.ProseMirror-selectednode,
|
|
300328
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block.ProseMirror-selectednode {
|
|
300329
|
+
border-color: transparent;
|
|
300330
|
+
background: none;
|
|
300331
|
+
}
|
|
300332
|
+
|
|
300301
300333
|
/* Hover highlight for SDT containers.
|
|
300302
300334
|
* Hover adds background highlight and z-index boost.
|
|
300303
300335
|
* Block SDTs use .sdt-group-hover class (event delegation for multi-fragment coordination).
|
|
@@ -300323,6 +300355,35 @@ var Node$13 = class Node$14 {
|
|
|
300323
300355
|
background-color: var(--sd-content-controls-lock-hover-bg, rgba(98, 155, 231, 0.08));
|
|
300324
300356
|
}
|
|
300325
300357
|
|
|
300358
|
+
/* Chrome opt-out for block SDTs. Main paints block chrome through ::before
|
|
300359
|
+
* (background) and ::after (border) pseudo-elements, which the element-level
|
|
300360
|
+
* .superdoc-cc-chrome-none rules above cannot reach. Suppress the pseudo
|
|
300361
|
+
* chrome directly, including the selected-node border and the lock-hover
|
|
300362
|
+
* ::before background. Declared after every chrome-showing pseudo rule so
|
|
300363
|
+
* source order resolves equal-specificity ties, the same way the
|
|
300364
|
+
* viewing-mode rules below do. */
|
|
300365
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block::before,
|
|
300366
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block:hover::before,
|
|
300367
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block.sdt-group-hover::before,
|
|
300368
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block[data-lock-mode].sdt-group-hover::before {
|
|
300369
|
+
background: none;
|
|
300370
|
+
}
|
|
300371
|
+
|
|
300372
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block::after,
|
|
300373
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block:hover::after,
|
|
300374
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block.sdt-group-hover::after,
|
|
300375
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block.ProseMirror-selectednode::after {
|
|
300376
|
+
border: none;
|
|
300377
|
+
}
|
|
300378
|
+
|
|
300379
|
+
/* Reset the lock-hover z-index boost so a suppressed SDT does not stack
|
|
300380
|
+
* above host-attached custom UI. Mirrors the base lock-hover selectors with
|
|
300381
|
+
* the chrome-none prefix so specificity stays above the boost rule. */
|
|
300382
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-block[data-lock-mode].sdt-group-hover:not(.ProseMirror-selectednode),
|
|
300383
|
+
.superdoc-cc-chrome-none .superdoc-structured-content-inline[data-lock-mode]:hover:not(.ProseMirror-selectednode, [data-appearance='hidden']) {
|
|
300384
|
+
z-index: auto;
|
|
300385
|
+
}
|
|
300386
|
+
|
|
300326
300387
|
/* Viewing mode: remove structured content affordances */
|
|
300327
300388
|
.presentation-editor--viewing .superdoc-structured-content-block,
|
|
300328
300389
|
.presentation-editor--viewing .superdoc-structured-content-inline {
|
|
@@ -301854,7 +301915,7 @@ menclose::after {
|
|
|
301854
301915
|
if (element3.style.textIndent)
|
|
301855
301916
|
element3.style.removeProperty("text-indent");
|
|
301856
301917
|
}, INLINE_SDT_CHROME_EXTRA_WIDTH_PX = 4, renderParagraphContent = (params$1) => {
|
|
301857
|
-
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;
|
|
301918
|
+
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;
|
|
301858
301919
|
applyParagraphBlockStyles(frameEl, block.attrs);
|
|
301859
301920
|
const { shadingLayer, borderLayer } = createParagraphDecorationLayers(doc$12, width, block.attrs, betweenInfo);
|
|
301860
301921
|
if (shadingLayer)
|
|
@@ -301875,7 +301936,7 @@ menclose::after {
|
|
|
301875
301936
|
ancestorContainerSdts
|
|
301876
301937
|
});
|
|
301877
301938
|
if (applySdtChrome) {
|
|
301878
|
-
if (applySdtContainerChrome(doc$12, frameEl, block.attrs?.sdt, block.attrs?.containerSdt, sdtBoundary))
|
|
301939
|
+
if (applySdtContainerChrome(doc$12, frameEl, block.attrs?.sdt, block.attrs?.containerSdt, sdtBoundary, undefined, contentControlsChrome))
|
|
301879
301940
|
onSdtContainerChrome?.();
|
|
301880
301941
|
}
|
|
301881
301942
|
renderParagraphDropCap({
|
|
@@ -302274,7 +302335,7 @@ menclose::after {
|
|
|
302274
302335
|
el.style[key2] = String(value);
|
|
302275
302336
|
});
|
|
302276
302337
|
}, renderEmbeddedTable = (params$1) => {
|
|
302277
|
-
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;
|
|
302338
|
+
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;
|
|
302278
302339
|
const effectiveFromRow = paramFromRow ?? 0;
|
|
302279
302340
|
const effectiveToRow = paramToRow ?? table2.rows.length;
|
|
302280
302341
|
const visibleHeight = computeVisibleHeight(measure.rows, effectiveFromRow, effectiveToRow, paramPartialRow);
|
|
@@ -302315,6 +302376,7 @@ menclose::after {
|
|
|
302315
302376
|
renderDrawingContent,
|
|
302316
302377
|
applyFragmentFrame,
|
|
302317
302378
|
applySdtDataset: applySdtDataset$1,
|
|
302379
|
+
chrome: chrome2,
|
|
302318
302380
|
applyStyles: applyInlineStyles,
|
|
302319
302381
|
sdtBoundary,
|
|
302320
302382
|
ancestorContainerKey,
|
|
@@ -302329,7 +302391,7 @@ menclose::after {
|
|
|
302329
302391
|
hasSdtContainerChrome
|
|
302330
302392
|
};
|
|
302331
302393
|
}, renderTableCell = (deps) => {
|
|
302332
|
-
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;
|
|
302394
|
+
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;
|
|
302333
302395
|
const padding = cell2?.attrs?.padding || {
|
|
302334
302396
|
top: 0,
|
|
302335
302397
|
left: 4,
|
|
@@ -302416,6 +302478,7 @@ menclose::after {
|
|
|
302416
302478
|
captureLineSnapshot,
|
|
302417
302479
|
renderDrawingContent,
|
|
302418
302480
|
applySdtDataset: applySdtDataset$1,
|
|
302481
|
+
chrome: chrome2,
|
|
302419
302482
|
sdtBoundary: sdtBoundaries[i4],
|
|
302420
302483
|
ancestorContainerKey,
|
|
302421
302484
|
ancestorContainerSdt,
|
|
@@ -302578,6 +302641,7 @@ menclose::after {
|
|
|
302578
302641
|
cellEl.style.overflow = "visible";
|
|
302579
302642
|
onSdtContainerChrome?.();
|
|
302580
302643
|
},
|
|
302644
|
+
contentControlsChrome: chrome2,
|
|
302581
302645
|
applySdtDataset: applySdtDataset$1,
|
|
302582
302646
|
renderLine: ({ block: block$1, line, lineIndex, isLastLine, resolvedListTextStartPx }) => renderLine$1(block$1, line, {
|
|
302583
302647
|
...context,
|
|
@@ -302755,7 +302819,7 @@ menclose::after {
|
|
|
302755
302819
|
left: baseBorders.left
|
|
302756
302820
|
};
|
|
302757
302821
|
}, renderTableRow = (deps) => {
|
|
302758
|
-
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;
|
|
302822
|
+
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;
|
|
302759
302823
|
const totalCols = columnWidths.length;
|
|
302760
302824
|
const calculateXPosition = (gridColumnStart) => {
|
|
302761
302825
|
let x = cellSpacingPx;
|
|
@@ -302841,12 +302905,13 @@ menclose::after {
|
|
|
302841
302905
|
toLine,
|
|
302842
302906
|
tableIndent,
|
|
302843
302907
|
isRtl,
|
|
302844
|
-
cellWidth: computedCellWidth > 0 ? computedCellWidth : undefined
|
|
302908
|
+
cellWidth: computedCellWidth > 0 ? computedCellWidth : undefined,
|
|
302909
|
+
chrome: chrome2
|
|
302845
302910
|
});
|
|
302846
302911
|
container.appendChild(cellElement);
|
|
302847
302912
|
}
|
|
302848
302913
|
}, renderTableFragment = (deps) => {
|
|
302849
|
-
const { doc: doc$12, fragment: fragment2, 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;
|
|
302914
|
+
const { doc: doc$12, fragment: fragment2, 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;
|
|
302850
302915
|
if (!doc$12) {
|
|
302851
302916
|
console.error("DomPainter: document is not available");
|
|
302852
302917
|
if (typeof document !== "undefined") {
|
|
@@ -302884,7 +302949,7 @@ menclose::after {
|
|
|
302884
302949
|
ancestorContainerSdt,
|
|
302885
302950
|
ancestorContainerKeys,
|
|
302886
302951
|
ancestorContainerSdts
|
|
302887
|
-
}))
|
|
302952
|
+
}, chrome2))
|
|
302888
302953
|
onSdtContainerChrome?.();
|
|
302889
302954
|
const tableContainerSdt = getSdtContainerMetadata(block.attrs?.sdt, block.attrs?.containerSdt);
|
|
302890
302955
|
const tableContainerKey = getSdtContainerKey(block.attrs?.sdt, block.attrs?.containerSdt);
|
|
@@ -303025,6 +303090,7 @@ menclose::after {
|
|
|
303025
303090
|
ancestorContainerKeys: nextAncestorContainerKeys,
|
|
303026
303091
|
ancestorContainerSdts: nextAncestorContainerSdts,
|
|
303027
303092
|
onSdtContainerChrome,
|
|
303093
|
+
chrome: chrome2,
|
|
303028
303094
|
continuesFromPrev: false,
|
|
303029
303095
|
continuesOnNext: false,
|
|
303030
303096
|
cellSpacingPx
|
|
@@ -303141,6 +303207,7 @@ menclose::after {
|
|
|
303141
303207
|
ancestorContainerKeys: nextAncestorContainerKeys,
|
|
303142
303208
|
ancestorContainerSdts: nextAncestorContainerSdts,
|
|
303143
303209
|
onSdtContainerChrome,
|
|
303210
|
+
chrome: chrome2,
|
|
303144
303211
|
continuesFromPrev: isFirstRenderedBodyRow && fragment2.continuesFromPrev === true,
|
|
303145
303212
|
continuesOnNext: isLastRenderedBodyRow && fragment2.continuesOnNext === true,
|
|
303146
303213
|
partialRow: partialRowData,
|
|
@@ -303281,6 +303348,8 @@ menclose::after {
|
|
|
303281
303348
|
wrapper.dataset.appearance = "hidden";
|
|
303282
303349
|
return wrapper;
|
|
303283
303350
|
}
|
|
303351
|
+
if (context.contentControlsChrome === "none")
|
|
303352
|
+
return wrapper;
|
|
303284
303353
|
const alias = sdt?.alias || "Inline content";
|
|
303285
303354
|
const labelEl = context.doc.createElement("span");
|
|
303286
303355
|
labelEl.className = DOM_CLASS_NAMES.INLINE_SDT_LABEL;
|
|
@@ -303360,7 +303429,7 @@ menclose::after {
|
|
|
303360
303429
|
else
|
|
303361
303430
|
delete el.dataset.continuesOnNext;
|
|
303362
303431
|
}, isMinimalWordLayout$2 = (value) => isMinimalWordLayout(value), renderParagraphFragment = (params$1) => {
|
|
303363
|
-
const { doc: doc$12, fragment: fragment2, sdtBoundary, betweenInfo, resolvedItem, applyStyles: applyStyles$3, applyResolvedFragmentFrame, applyFragmentFrame, applySdtDataset: applySdtDataset$1, applyContainerSdtDataset: applyContainerSdtDataset$1, renderLine: renderLine$1, captureLineSnapshot, createErrorPlaceholder } = params$1;
|
|
303432
|
+
const { doc: doc$12, fragment: fragment2, sdtBoundary, betweenInfo, resolvedItem, applyStyles: applyStyles$3, applyResolvedFragmentFrame, applyFragmentFrame, applySdtDataset: applySdtDataset$1, applyContainerSdtDataset: applyContainerSdtDataset$1, renderLine: renderLine$1, captureLineSnapshot, createErrorPlaceholder, contentControlsChrome } = params$1;
|
|
303364
303433
|
try {
|
|
303365
303434
|
if (!doc$12)
|
|
303366
303435
|
throw new Error("DomPainter: document is not available");
|
|
@@ -303427,7 +303496,8 @@ menclose::after {
|
|
|
303427
303496
|
wrapperEl: fragmentEl
|
|
303428
303497
|
});
|
|
303429
303498
|
},
|
|
303430
|
-
sourceAnchor: resolvedItem?.sourceAnchor
|
|
303499
|
+
sourceAnchor: resolvedItem?.sourceAnchor,
|
|
303500
|
+
contentControlsChrome
|
|
303431
303501
|
});
|
|
303432
303502
|
return fragmentEl;
|
|
303433
303503
|
} catch (error3) {
|
|
@@ -305073,12 +305143,14 @@ menclose::after {
|
|
|
305073
305143
|
this.mountedPageIndices = [];
|
|
305074
305144
|
this.resolvedLayout = null;
|
|
305075
305145
|
this.showFormattingMarks = false;
|
|
305146
|
+
this.contentControlsChrome = "default";
|
|
305076
305147
|
this.options = options;
|
|
305077
305148
|
this.layoutMode = options.layoutMode ?? "vertical";
|
|
305078
305149
|
this.isSemanticFlow = (options.flowMode ?? "paginated") === "semantic";
|
|
305079
305150
|
this.headerProvider = options.headerProvider;
|
|
305080
305151
|
this.footerProvider = options.footerProvider;
|
|
305081
305152
|
this.showFormattingMarks = options.showFormattingMarks === true;
|
|
305153
|
+
this.contentControlsChrome = options.contentControlsChrome ?? "default";
|
|
305082
305154
|
const defaultGap = this.layoutMode === "horizontal" ? 20 : 24;
|
|
305083
305155
|
this.pageGap = typeof options.pageGap === "number" && Number.isFinite(options.pageGap) ? Math.max(0, options.pageGap) : defaultGap;
|
|
305084
305156
|
if (!this.isSemanticFlow && this.layoutMode === "vertical" && options.virtualization?.enabled) {
|
|
@@ -305109,6 +305181,7 @@ menclose::after {
|
|
|
305109
305181
|
}
|
|
305110
305182
|
applyFormattingMarksClass(mount = this.mount) {
|
|
305111
305183
|
mount?.classList.toggle("superdoc-show-formatting-marks", this.showFormattingMarks);
|
|
305184
|
+
mount?.classList.toggle("superdoc-cc-chrome-none", this.contentControlsChrome === "none");
|
|
305112
305185
|
}
|
|
305113
305186
|
invalidateRenderedContent() {
|
|
305114
305187
|
this.pageStates = [];
|
|
@@ -306239,6 +306312,7 @@ menclose::after {
|
|
|
306239
306312
|
sourceAnchor: options?.sourceAnchor
|
|
306240
306313
|
});
|
|
306241
306314
|
},
|
|
306315
|
+
contentControlsChrome: this.contentControlsChrome,
|
|
306242
306316
|
createErrorPlaceholder: this.createErrorPlaceholder.bind(this)
|
|
306243
306317
|
});
|
|
306244
306318
|
}
|
|
@@ -306973,6 +307047,7 @@ menclose::after {
|
|
|
306973
307047
|
measure: tableRenderData.measure,
|
|
306974
307048
|
cellSpacingPx: tableRenderData.cellSpacingPx,
|
|
306975
307049
|
effectiveColumnWidths: tableRenderData.effectiveColumnWidths,
|
|
307050
|
+
chrome: this.contentControlsChrome,
|
|
306976
307051
|
sdtBoundary,
|
|
306977
307052
|
renderLine: renderLineForTableCell,
|
|
306978
307053
|
captureLineSnapshot: (lineEl, lineContext, options) => {
|
|
@@ -307026,6 +307101,7 @@ menclose::after {
|
|
|
307026
307101
|
doc: this.doc,
|
|
307027
307102
|
layoutEpoch: this.layoutEpoch,
|
|
307028
307103
|
showFormattingMarks: this.showFormattingMarks,
|
|
307104
|
+
contentControlsChrome: this.contentControlsChrome,
|
|
307029
307105
|
pendingTooltips: this.pendingTooltips,
|
|
307030
307106
|
getNextLinkId: () => `superdoc-link-${++this.linkIdCounter}`,
|
|
307031
307107
|
applySdtDataset,
|
|
@@ -318798,7 +318874,7 @@ menclose::after {
|
|
|
318798
318874
|
return;
|
|
318799
318875
|
console.log(...args$1);
|
|
318800
318876
|
}, 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;
|
|
318801
|
-
var
|
|
318877
|
+
var init_src_B9A7ox0h_es = __esm(() => {
|
|
318802
318878
|
init_rolldown_runtime_Bg48TavK_es();
|
|
318803
318879
|
init_SuperConverter_C6hKp29w_es();
|
|
318804
318880
|
init_jszip_C49i9kUs_es();
|
|
@@ -346931,7 +347007,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
346931
347007
|
enableCommentsInViewing: options.layoutEngineOptions?.enableCommentsInViewing,
|
|
346932
347008
|
presence: validatedPresence,
|
|
346933
347009
|
showBookmarks: options.layoutEngineOptions?.showBookmarks ?? false,
|
|
346934
|
-
showFormattingMarks: options.layoutEngineOptions?.showFormattingMarks ?? false
|
|
347010
|
+
showFormattingMarks: options.layoutEngineOptions?.showFormattingMarks ?? false,
|
|
347011
|
+
contentControlsChrome: options.layoutEngineOptions?.contentControlsChrome
|
|
346935
347012
|
};
|
|
346936
347013
|
this.#trackedChangesOverrides = options.layoutEngineOptions?.trackedChanges;
|
|
346937
347014
|
this.#viewportHost = doc$12.createElement("div");
|
|
@@ -350382,7 +350459,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
350382
350459
|
footerProvider: this.#headerFooterSession?.footerDecorationProvider,
|
|
350383
350460
|
ruler: this.#layoutOptions.ruler,
|
|
350384
350461
|
pageGap: this.#layoutState.layout?.pageGap ?? effectiveGap,
|
|
350385
|
-
showFormattingMarks: this.#layoutOptions.showFormattingMarks ?? false
|
|
350462
|
+
showFormattingMarks: this.#layoutOptions.showFormattingMarks ?? false,
|
|
350463
|
+
contentControlsChrome: this.#layoutOptions.contentControlsChrome ?? "default"
|
|
350386
350464
|
});
|
|
350387
350465
|
const currentZoom = this.#layoutOptions.zoom ?? 1;
|
|
350388
350466
|
if (currentZoom !== 1)
|
|
@@ -353049,7 +353127,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
353049
353127
|
|
|
353050
353128
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
353051
353129
|
var init_super_editor_es = __esm(() => {
|
|
353052
|
-
|
|
353130
|
+
init_src_B9A7ox0h_es();
|
|
353053
353131
|
init_SuperConverter_C6hKp29w_es();
|
|
353054
353132
|
init_jszip_C49i9kUs_es();
|
|
353055
353133
|
init_xml_js_CqGKpaft_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.15.0-next.
|
|
3
|
+
"version": "0.15.0-next.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@superdoc-dev/cli-darwin-
|
|
38
|
-
"@superdoc-dev/cli-darwin-
|
|
39
|
-
"@superdoc-dev/cli-linux-x64": "0.15.0-next.
|
|
40
|
-
"@superdoc-dev/cli-
|
|
41
|
-
"@superdoc-dev/cli-
|
|
37
|
+
"@superdoc-dev/cli-darwin-x64": "0.15.0-next.5",
|
|
38
|
+
"@superdoc-dev/cli-darwin-arm64": "0.15.0-next.5",
|
|
39
|
+
"@superdoc-dev/cli-linux-x64": "0.15.0-next.5",
|
|
40
|
+
"@superdoc-dev/cli-linux-arm64": "0.15.0-next.5",
|
|
41
|
+
"@superdoc-dev/cli-windows-x64": "0.15.0-next.5"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"predev": "node scripts/ensure-superdoc-build.js",
|