@superdoc-dev/mcp 0.3.0-next.100 → 0.3.0-next.102

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.
Files changed (2) hide show
  1. package/dist/index.js +51 -9
  2. 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-DgG-LoR5.es.js
200679
+ // ../../packages/superdoc/dist/chunks/src-Db2DJZym.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
- return {
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 {
@@ -259014,6 +259018,13 @@ function findRenderedTrackedChangeElementsStrict(host, entityId, escapeAttrValue
259014
259018
  const storySelector = `${baseSelector}[data-story-key="${escapeAttrValue$1(storyKey)}"]`;
259015
259019
  return Array.from(host.querySelectorAll(storySelector));
259016
259020
  }
259021
+ function findRenderedContentControlElements(host, entityId, escapeAttrValue$1, _storyKey) {
259022
+ if (!host || !entityId)
259023
+ return [];
259024
+ const id2 = escapeAttrValue$1(entityId);
259025
+ const selector = `.${DOM_CLASS_NAMES.INLINE_SDT_WRAPPER}[data-sdt-id="${id2}"][data-sdt-type="structuredContent"],.${DOM_CLASS_NAMES.BLOCK_SDT}[data-sdt-id="${id2}"][data-sdt-type="structuredContent"]`;
259026
+ return Array.from(host.querySelectorAll(selector));
259027
+ }
259017
259028
  function elementsToRangeRects(elements) {
259018
259029
  const result = [];
259019
259030
  for (const element3 of elements) {
@@ -281348,13 +281359,38 @@ var Node$13 = class Node$14 {
281348
281359
  display: none;
281349
281360
  }
281350
281361
 
281362
+ /* Hidden appearance per ECMA-376 (w15:appearance val="hidden"). SDT
281363
+ * exists in the document for anchoring but is visually transparent: no
281364
+ * padding, no border, no hover background, no selected outline. The
281365
+ * alias label is not emitted into the DOM at all (see renderer.ts), so
281366
+ * there is nothing to hide from copy-paste or screen readers. */
281367
+ .superdoc-structured-content-inline[data-appearance='hidden'] {
281368
+ padding: 0;
281369
+ border: none;
281370
+ border-radius: 0;
281371
+ }
281372
+ .superdoc-structured-content-inline[data-appearance='hidden']:hover {
281373
+ background-color: transparent;
281374
+ border: none;
281375
+ }
281376
+ .superdoc-structured-content-inline[data-appearance='hidden'].ProseMirror-selectednode {
281377
+ border-color: transparent;
281378
+ background-color: transparent;
281379
+ }
281380
+
281351
281381
  /* Hover highlight for SDT containers.
281352
281382
  * Hover adds background highlight and z-index boost.
281353
281383
  * Block SDTs use .sdt-group-hover class (event delegation for multi-fragment coordination).
281354
281384
  * Inline SDTs use :hover (single element, no coordination needed).
281355
- * Hover is suppressed when the node is selected (SD-1584). */
281385
+ * Hover is suppressed when the node is selected (SD-1584).
281386
+ *
281387
+ * Inline SDTs with appearance=hidden are excluded via the same :not()
281388
+ * that handles selection. Both predicates live in one :not(a, b) so the
281389
+ * selector keeps (0,4,0) specificity. A second chained :not() would push
281390
+ * it to (0,5,0) and beat the viewing-mode suppression rule below, which
281391
+ * also sits at (0,4,0). */
281356
281392
  .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) {
281393
+ .superdoc-structured-content-inline[data-lock-mode]:hover:not(.ProseMirror-selectednode, [data-appearance='hidden']) {
281358
281394
  background-color: var(--sd-content-controls-lock-hover-bg, rgba(98, 155, 231, 0.08));
281359
281395
  z-index: 9999999;
281360
281396
  }
@@ -295144,7 +295180,7 @@ menclose::after {
295144
295180
  return;
295145
295181
  console.log(...args$1);
295146
295182
  }, 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 init_src_DgG_LoR5_es = __esm(() => {
295183
+ var init_src_Db2DJZym_es = __esm(() => {
295148
295184
  init_rolldown_runtime_Bg48TavK_es();
295149
295185
  init_SuperConverter_ByqzBuoW_es();
295150
295186
  init_jszip_C49i9kUs_es();
@@ -325782,6 +325818,10 @@ function print() { __p += __j.call(arguments, '') }
325782
325818
  wrapper.className = DOM_CLASS_NAMES.INLINE_SDT_WRAPPER;
325783
325819
  wrapper.dataset.layoutEpoch = String(this.layoutEpoch);
325784
325820
  this.applySdtDataset(wrapper, sdt);
325821
+ if ((sdt.type === "structuredContent" ? sdt.appearance : undefined) === "hidden") {
325822
+ wrapper.dataset.appearance = "hidden";
325823
+ return wrapper;
325824
+ }
325785
325825
  const alias = sdt?.alias || "Inline content";
325786
325826
  const labelEl = this.doc.createElement("span");
325787
325827
  labelEl.className = `${DOM_CLASS_NAMES.INLINE_SDT_WRAPPER}__label`;
@@ -328017,6 +328057,8 @@ function print() { __p += __j.call(arguments, '') }
328017
328057
  elements = findRenderedTrackedChangeElementsStrict(host, entityId, escapeAttrValue, storyKey);
328018
328058
  else if (entityType === "comment")
328019
328059
  elements = findRenderedCommentElements(host, entityId, storyKey);
328060
+ else if (entityType === "contentControl")
328061
+ elements = findRenderedContentControlElements(host, entityId, escapeAttrValue, storyKey);
328020
328062
  else
328021
328063
  return [];
328022
328064
  return elementsToRangeRects(elements);
@@ -333215,9 +333257,9 @@ function print() { __p += __j.call(arguments, '') }
333215
333257
  ];
333216
333258
  });
333217
333259
 
333218
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-D3eTiCDF.es.js
333260
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-ohqFuGuC.es.js
333219
333261
  var MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
333220
- var init_create_super_doc_ui_D3eTiCDF_es = __esm(() => {
333262
+ var init_create_super_doc_ui_ohqFuGuC_es = __esm(() => {
333221
333263
  init_SuperConverter_ByqzBuoW_es();
333222
333264
  init_create_headless_toolbar_CaWsmmol_es();
333223
333265
  MOD_ALIASES = new Set([
@@ -333261,7 +333303,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
333261
333303
 
333262
333304
  // ../../packages/superdoc/dist/super-editor.es.js
333263
333305
  var init_super_editor_es = __esm(() => {
333264
- init_src_DgG_LoR5_es();
333306
+ init_src_Db2DJZym_es();
333265
333307
  init_SuperConverter_ByqzBuoW_es();
333266
333308
  init_jszip_C49i9kUs_es();
333267
333309
  init_xml_js_CqGKpaft_es();
@@ -333270,7 +333312,7 @@ var init_super_editor_es = __esm(() => {
333270
333312
  init_dist_B8HfvhaK_es();
333271
333313
  init_unified_Dsuw2be5_es();
333272
333314
  init_DocxZipper_Bphhij1P_es();
333273
- init_create_super_doc_ui_D3eTiCDF_es();
333315
+ init_create_super_doc_ui_ohqFuGuC_es();
333274
333316
  init_ui_CGB3qmy3_es();
333275
333317
  init_eventemitter3_UwU_CLPU_es();
333276
333318
  init_errors_C_DoKMoN_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.3.0-next.100",
3
+ "version": "0.3.0-next.102",
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/document-api": "0.0.1",
22
23
  "@superdoc/super-editor": "0.0.1",
23
- "superdoc": "1.32.0",
24
- "@superdoc/document-api": "0.0.1"
24
+ "superdoc": "1.32.0"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"