@superdoc-dev/mcp 0.3.0-next.100 → 0.3.0-next.101
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 +39 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -200676,7 +200676,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
200676
200676
|
init_remark_gfm_BhnWr3yf_es();
|
|
200677
200677
|
});
|
|
200678
200678
|
|
|
200679
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
200679
|
+
// ../../packages/superdoc/dist/chunks/src-K3nVkG8Q.es.js
|
|
200680
200680
|
function deleteProps(obj, propOrProps) {
|
|
200681
200681
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
200682
200682
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -256389,7 +256389,7 @@ function normalizeFieldAnnotationMetadata(attrs) {
|
|
|
256389
256389
|
};
|
|
256390
256390
|
}
|
|
256391
256391
|
function normalizeStructuredContentMetadata(nodeType, attrs) {
|
|
256392
|
-
|
|
256392
|
+
const metadata = {
|
|
256393
256393
|
type: "structuredContent",
|
|
256394
256394
|
scope: nodeType === "structuredContentBlock" ? "block" : "inline",
|
|
256395
256395
|
id: toNullableString(attrs.id),
|
|
@@ -256398,6 +256398,10 @@ function normalizeStructuredContentMetadata(nodeType, attrs) {
|
|
|
256398
256398
|
lockMode: attrs.lockMode,
|
|
256399
256399
|
sdtPr: attrs.sdtPr
|
|
256400
256400
|
};
|
|
256401
|
+
const rawAppearance = toOptionalString(attrs.appearance);
|
|
256402
|
+
if (rawAppearance === "boundingBox" || rawAppearance === "tags" || rawAppearance === "hidden")
|
|
256403
|
+
metadata.appearance = rawAppearance;
|
|
256404
|
+
return metadata;
|
|
256401
256405
|
}
|
|
256402
256406
|
function normalizeDocumentSectionMetadata(attrs) {
|
|
256403
256407
|
return {
|
|
@@ -281348,13 +281352,38 @@ var Node$13 = class Node$14 {
|
|
|
281348
281352
|
display: none;
|
|
281349
281353
|
}
|
|
281350
281354
|
|
|
281355
|
+
/* Hidden appearance per ECMA-376 (w15:appearance val="hidden"). SDT
|
|
281356
|
+
* exists in the document for anchoring but is visually transparent: no
|
|
281357
|
+
* padding, no border, no hover background, no selected outline. The
|
|
281358
|
+
* alias label is not emitted into the DOM at all (see renderer.ts), so
|
|
281359
|
+
* there is nothing to hide from copy-paste or screen readers. */
|
|
281360
|
+
.superdoc-structured-content-inline[data-appearance='hidden'] {
|
|
281361
|
+
padding: 0;
|
|
281362
|
+
border: none;
|
|
281363
|
+
border-radius: 0;
|
|
281364
|
+
}
|
|
281365
|
+
.superdoc-structured-content-inline[data-appearance='hidden']:hover {
|
|
281366
|
+
background-color: transparent;
|
|
281367
|
+
border: none;
|
|
281368
|
+
}
|
|
281369
|
+
.superdoc-structured-content-inline[data-appearance='hidden'].ProseMirror-selectednode {
|
|
281370
|
+
border-color: transparent;
|
|
281371
|
+
background-color: transparent;
|
|
281372
|
+
}
|
|
281373
|
+
|
|
281351
281374
|
/* Hover highlight for SDT containers.
|
|
281352
281375
|
* Hover adds background highlight and z-index boost.
|
|
281353
281376
|
* Block SDTs use .sdt-group-hover class (event delegation for multi-fragment coordination).
|
|
281354
281377
|
* Inline SDTs use :hover (single element, no coordination needed).
|
|
281355
|
-
* Hover is suppressed when the node is selected (SD-1584).
|
|
281378
|
+
* Hover is suppressed when the node is selected (SD-1584).
|
|
281379
|
+
*
|
|
281380
|
+
* Inline SDTs with appearance=hidden are excluded via the same :not()
|
|
281381
|
+
* that handles selection. Both predicates live in one :not(a, b) so the
|
|
281382
|
+
* selector keeps (0,4,0) specificity. A second chained :not() would push
|
|
281383
|
+
* it to (0,5,0) and beat the viewing-mode suppression rule below, which
|
|
281384
|
+
* also sits at (0,4,0). */
|
|
281356
281385
|
.superdoc-structured-content-block[data-lock-mode].sdt-group-hover:not(.ProseMirror-selectednode),
|
|
281357
|
-
.superdoc-structured-content-inline[data-lock-mode]:hover:not(.ProseMirror-selectednode) {
|
|
281386
|
+
.superdoc-structured-content-inline[data-lock-mode]:hover:not(.ProseMirror-selectednode, [data-appearance='hidden']) {
|
|
281358
281387
|
background-color: var(--sd-content-controls-lock-hover-bg, rgba(98, 155, 231, 0.08));
|
|
281359
281388
|
z-index: 9999999;
|
|
281360
281389
|
}
|
|
@@ -295144,7 +295173,7 @@ menclose::after {
|
|
|
295144
295173
|
return;
|
|
295145
295174
|
console.log(...args$1);
|
|
295146
295175
|
}, 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;
|
|
295147
|
-
var
|
|
295176
|
+
var init_src_K3nVkG8Q_es = __esm(() => {
|
|
295148
295177
|
init_rolldown_runtime_Bg48TavK_es();
|
|
295149
295178
|
init_SuperConverter_ByqzBuoW_es();
|
|
295150
295179
|
init_jszip_C49i9kUs_es();
|
|
@@ -325782,6 +325811,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
325782
325811
|
wrapper.className = DOM_CLASS_NAMES.INLINE_SDT_WRAPPER;
|
|
325783
325812
|
wrapper.dataset.layoutEpoch = String(this.layoutEpoch);
|
|
325784
325813
|
this.applySdtDataset(wrapper, sdt);
|
|
325814
|
+
if ((sdt.type === "structuredContent" ? sdt.appearance : undefined) === "hidden") {
|
|
325815
|
+
wrapper.dataset.appearance = "hidden";
|
|
325816
|
+
return wrapper;
|
|
325817
|
+
}
|
|
325785
325818
|
const alias = sdt?.alias || "Inline content";
|
|
325786
325819
|
const labelEl = this.doc.createElement("span");
|
|
325787
325820
|
labelEl.className = `${DOM_CLASS_NAMES.INLINE_SDT_WRAPPER}__label`;
|
|
@@ -333261,7 +333294,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
333261
333294
|
|
|
333262
333295
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
333263
333296
|
var init_super_editor_es = __esm(() => {
|
|
333264
|
-
|
|
333297
|
+
init_src_K3nVkG8Q_es();
|
|
333265
333298
|
init_SuperConverter_ByqzBuoW_es();
|
|
333266
333299
|
init_jszip_C49i9kUs_es();
|
|
333267
333300
|
init_xml_js_CqGKpaft_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/mcp",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.101",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"@types/bun": "^1.3.8",
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
|
-
"@superdoc/
|
|
22
|
+
"@superdoc/document-api": "0.0.1",
|
|
23
23
|
"superdoc": "1.32.0",
|
|
24
|
-
"@superdoc/
|
|
24
|
+
"@superdoc/super-editor": "0.0.1"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|