@superdoc-dev/mcp 0.8.0-next.8 → 0.8.0

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 +42 -16
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14569,7 +14569,7 @@ function finalize(ctx, schema) {
14569
14569
  result.$schema = "http://json-schema.org/draft-07/schema#";
14570
14570
  } else if (ctx.target === "draft-04") {
14571
14571
  result.$schema = "http://json-schema.org/draft-04/schema#";
14572
- } else if (ctx.target === "openapi-3.0") {}
14572
+ } else if (ctx.target === "openapi-3.0") {} else {}
14573
14573
  if (ctx.external?.uri) {
14574
14574
  const id = ctx.external.registry.get(schema)?.id;
14575
14575
  if (!id)
@@ -14834,7 +14834,7 @@ var formatMap, stringProcessor = (schema, ctx, _json, _params) => {
14834
14834
  if (val === undefined) {
14835
14835
  if (ctx.unrepresentable === "throw") {
14836
14836
  throw new Error("Literal `undefined` cannot be represented in JSON Schema");
14837
- }
14837
+ } else {}
14838
14838
  } else if (typeof val === "bigint") {
14839
14839
  if (ctx.unrepresentable === "throw") {
14840
14840
  throw new Error("BigInt literals cannot be represented in JSON Schema");
@@ -183666,7 +183666,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
183666
183666
  patchFlag |= 2048;
183667
183667
  }
183668
183668
  root2.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root2.children, patchFlag, undefined, undefined, true, undefined, false);
183669
- }
183669
+ } else
183670
+ ;
183670
183671
  }
183671
183672
  function traverseChildren(parent, context) {
183672
183673
  let i4 = 0;
@@ -208942,7 +208943,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
208942
208943
  init_remark_gfm_BhnWr3yf_es();
208943
208944
  });
208944
208945
 
208945
- // ../../packages/superdoc/dist/chunks/src-CYTyP_ze.es.js
208946
+ // ../../packages/superdoc/dist/chunks/src-BqPSwjtZ.es.js
208946
208947
  function deleteProps(obj, propOrProps) {
208947
208948
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
208948
208949
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -210868,27 +210869,52 @@ function normalizeYjsFragmentEventsForSchema(events, fallbackFragment) {
210868
210869
  function stripSchemaAtomChildren(parent) {
210869
210870
  if (!isTraversableYjsXml(parent))
210870
210871
  return false;
210871
- if (parent instanceof YXmlElement && SCHEMA_ATOM_NODE_NAMES.has(parent.nodeName)) {
210872
- if (parent.length === 0)
210873
- return false;
210874
- parent.delete(0, parent.length);
210875
- return true;
210876
- }
210872
+ if (parent instanceof YXmlElement && SCHEMA_ATOM_NODE_NAMES.has(parent.nodeName))
210873
+ return normalizeSchemaAtomElement(parent);
210877
210874
  let changed = false;
210878
210875
  for (const child of parent.toArray()) {
210879
210876
  if (!(child instanceof YXmlElement))
210880
210877
  continue;
210881
210878
  if (SCHEMA_ATOM_NODE_NAMES.has(child.nodeName)) {
210882
- if (child.length > 0) {
210883
- child.delete(0, child.length);
210884
- changed = true;
210885
- }
210879
+ changed = normalizeSchemaAtomElement(child) || changed;
210886
210880
  continue;
210887
210881
  }
210888
210882
  changed = stripSchemaAtomChildren(child) || changed;
210889
210883
  }
210890
210884
  return changed;
210891
210885
  }
210886
+ function normalizeSchemaAtomElement(element3) {
210887
+ let changed = false;
210888
+ if (isEmptyResolvedText(element3.getAttribute("resolvedText"))) {
210889
+ const visibleText = extractVisibleXmlText(element3);
210890
+ if (visibleText.length > 0) {
210891
+ element3.setAttribute("resolvedText", visibleText);
210892
+ changed = true;
210893
+ }
210894
+ }
210895
+ if (element3.length > 0) {
210896
+ element3.delete(0, element3.length);
210897
+ changed = true;
210898
+ }
210899
+ return changed;
210900
+ }
210901
+ function isEmptyResolvedText(value) {
210902
+ return typeof value !== "string" || value.length === 0;
210903
+ }
210904
+ function extractVisibleXmlText(parent) {
210905
+ let text5 = "";
210906
+ for (const child of parent.toArray())
210907
+ if (child instanceof YXmlText)
210908
+ text5 += extractVisibleTextFromXmlText(child);
210909
+ else if (child instanceof YXmlElement)
210910
+ text5 += extractVisibleXmlText(child);
210911
+ return text5;
210912
+ }
210913
+ function extractVisibleTextFromXmlText(textNode) {
210914
+ return textNode.toDelta().reduce((visibleText, op) => {
210915
+ return typeof op.insert === "string" ? visibleText + op.insert : visibleText;
210916
+ }, "");
210917
+ }
210892
210918
  function findNormalizableEventTarget(target) {
210893
210919
  let current = target;
210894
210920
  while (current) {
@@ -297491,7 +297517,7 @@ menclose::after {
297491
297517
  return;
297492
297518
  console.log(...args$1);
297493
297519
  }, 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;
297494
- var init_src_CYTyP_ze_es = __esm(() => {
297520
+ var init_src_BqPSwjtZ_es = __esm(() => {
297495
297521
  init_rolldown_runtime_Bg48TavK_es();
297496
297522
  init_SuperConverter_k7GHkV_c_es();
297497
297523
  init_jszip_C49i9kUs_es();
@@ -335358,7 +335384,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
335358
335384
 
335359
335385
  // ../../packages/superdoc/dist/super-editor.es.js
335360
335386
  var init_super_editor_es = __esm(() => {
335361
- init_src_CYTyP_ze_es();
335387
+ init_src_BqPSwjtZ_es();
335362
335388
  init_SuperConverter_k7GHkV_c_es();
335363
335389
  init_jszip_C49i9kUs_es();
335364
335390
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.8.0-next.8",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"