@superdoc-dev/mcp 0.7.1-next.2 → 0.7.1-next.4

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 +12 -9
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -208797,7 +208797,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
208797
208797
  init_remark_gfm_BhnWr3yf_es();
208798
208798
  });
208799
208799
 
208800
- // ../../packages/superdoc/dist/chunks/src-BI5eBQvD.es.js
208800
+ // ../../packages/superdoc/dist/chunks/src-CZSemHps.es.js
208801
208801
  function deleteProps(obj, propOrProps) {
208802
208802
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
208803
208803
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -292357,19 +292357,22 @@ menclose::after {
292357
292357
  this.#options.collaborationProvider = provider;
292358
292358
  }
292359
292359
  setup() {
292360
- const provider = this.#options.collaborationProvider;
292361
- if (!provider?.awareness)
292360
+ const awareness = this.#options.collaborationProvider?.awareness;
292361
+ if (!awareness || typeof awareness.on !== "function" || typeof awareness.off !== "function") {
292362
+ if (awareness)
292363
+ console.warn("[remote-cursors] provider.awareness is missing on/off methods; remote cursors will not be wired.");
292362
292364
  return;
292365
+ }
292363
292366
  this.#cleanupSubscriptions();
292364
292367
  const handleAwarenessChange = () => {
292365
292368
  this.#remoteCursorDirty = true;
292366
292369
  this.scheduleUpdate();
292367
292370
  };
292368
- provider.awareness.on("change", handleAwarenessChange);
292369
- provider.awareness.on("update", handleAwarenessChange);
292371
+ awareness.on("change", handleAwarenessChange);
292372
+ awareness.on("update", handleAwarenessChange);
292370
292373
  this.#awarenessCleanup = () => {
292371
- provider.awareness?.off("change", handleAwarenessChange);
292372
- provider.awareness?.off("update", handleAwarenessChange);
292374
+ awareness.off?.("change", handleAwarenessChange);
292375
+ awareness.off?.("update", handleAwarenessChange);
292373
292376
  };
292374
292377
  const handleScroll = () => {
292375
292378
  if (this.#remoteCursorState.size > 0) {
@@ -297216,7 +297219,7 @@ menclose::after {
297216
297219
  return;
297217
297220
  console.log(...args$1);
297218
297221
  }, 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;
297219
- var init_src_BI5eBQvD_es = __esm(() => {
297222
+ var init_src_CZSemHps_es = __esm(() => {
297220
297223
  init_rolldown_runtime_Bg48TavK_es();
297221
297224
  init_SuperConverter_opYK_HD4_es();
297222
297225
  init_jszip_C49i9kUs_es();
@@ -335041,7 +335044,7 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
335041
335044
 
335042
335045
  // ../../packages/superdoc/dist/super-editor.es.js
335043
335046
  var init_super_editor_es = __esm(() => {
335044
- init_src_BI5eBQvD_es();
335047
+ init_src_CZSemHps_es();
335045
335048
  init_SuperConverter_opYK_HD4_es();
335046
335049
  init_jszip_C49i9kUs_es();
335047
335050
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.7.1-next.2",
3
+ "version": "0.7.1-next.4",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -20,8 +20,8 @@
20
20
  "@types/node": "22.19.2",
21
21
  "typescript": "^5.9.2",
22
22
  "@superdoc/document-api": "0.0.1",
23
- "superdoc": "1.35.0",
24
- "@superdoc/super-editor": "0.0.1"
23
+ "@superdoc/super-editor": "0.0.1",
24
+ "superdoc": "1.35.0"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"