@superdoc-dev/mcp 0.3.0-next.103 → 0.3.0-next.105
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 +72 -9
- 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-C3dDgx5S.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) => {
|
|
@@ -277407,7 +277407,7 @@ var Node$13 = class Node$14 {
|
|
|
277407
277407
|
defaultItems: visibleItems,
|
|
277408
277408
|
overflowItems: overflowItems.filter((item) => item.type !== "separator")
|
|
277409
277409
|
};
|
|
277410
|
-
}, _hoisted_1$10, _hoisted_2$7, ToolbarButtonIcon_default, _hoisted_1$9, _hoisted_2$6, _hoisted_3$5, _hoisted_4$4, _hoisted_5$2, _hoisted_6$1, _hoisted_7$1, _hoisted_8, _hoisted_9, _hoisted_10, _hoisted_11, _hoisted_12, ToolbarButton_default, _hoisted_1$8, ToolbarSeparator_default, _hoisted_1$7, _hoisted_2$5, _hoisted_3$4, OverflowMenu_default, _hoisted_1$6, _hoisted_2$4, _hoisted_3$3, _hoisted_4$3, ToolbarDropdown_default, SdTooltip_default, _hoisted_1$5, _hoisted_2$3, _hoisted_3$2, _hoisted_4$2, ButtonGroup_default, DEFAULT_UI_FONT_FAMILY = "Arial, Helvetica, sans-serif", Toolbar_default, toolbarTexts, getParagraphFontFamilyFromProperties = (paragraphProps, convertedXml = {}) => {
|
|
277410
|
+
}, _hoisted_1$10, _hoisted_2$7, ToolbarButtonIcon_default, _hoisted_1$9, _hoisted_2$6, _hoisted_3$5, _hoisted_4$4, _hoisted_5$2, _hoisted_6$1, _hoisted_7$1, _hoisted_8, _hoisted_9, _hoisted_10, _hoisted_11, _hoisted_12, ToolbarButton_default, _hoisted_1$8, ToolbarSeparator_default, _hoisted_1$7, _hoisted_2$5, _hoisted_3$4, OverflowMenu_default, _hoisted_1$6, _hoisted_2$4, _hoisted_3$3, _hoisted_4$3, TRIGGER_FOCUS_SELECTOR = 'button, [href], input, select, textarea, [role="button"], [tabindex]:not([tabindex="-1"])', ToolbarDropdown_default, SdTooltip_default, _hoisted_1$5, _hoisted_2$3, _hoisted_3$2, _hoisted_4$2, ButtonGroup_default, DEFAULT_UI_FONT_FAMILY = "Arial, Helvetica, sans-serif", Toolbar_default, toolbarTexts, getParagraphFontFamilyFromProperties = (paragraphProps, convertedXml = {}) => {
|
|
277411
277411
|
const fontFamilyProps = paragraphProps?.runProperties?.fontFamily;
|
|
277412
277412
|
if (!fontFamilyProps)
|
|
277413
277413
|
return null;
|
|
@@ -295180,7 +295180,7 @@ menclose::after {
|
|
|
295180
295180
|
return;
|
|
295181
295181
|
console.log(...args$1);
|
|
295182
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;
|
|
295183
|
-
var
|
|
295183
|
+
var init_src_C3dDgx5S_es = __esm(() => {
|
|
295184
295184
|
init_rolldown_runtime_Bg48TavK_es();
|
|
295185
295185
|
init_SuperConverter_ByqzBuoW_es();
|
|
295186
295186
|
init_jszip_C49i9kUs_es();
|
|
@@ -315582,6 +315582,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315582
315582
|
isOverflowItem: {
|
|
315583
315583
|
type: Boolean,
|
|
315584
315584
|
default: false
|
|
315585
|
+
},
|
|
315586
|
+
allowEnterPropagation: {
|
|
315587
|
+
type: Boolean,
|
|
315588
|
+
default: false
|
|
315585
315589
|
}
|
|
315586
315590
|
},
|
|
315587
315591
|
emits: [
|
|
@@ -315623,6 +315627,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315623
315627
|
}
|
|
315624
315628
|
handleClick$1();
|
|
315625
315629
|
};
|
|
315630
|
+
const onEnterKeydown = (event) => {
|
|
315631
|
+
if (!props.allowEnterPropagation)
|
|
315632
|
+
event.stopPropagation();
|
|
315633
|
+
handleOuterEnter(event);
|
|
315634
|
+
};
|
|
315626
315635
|
const handleInputSubmit = () => {
|
|
315627
315636
|
const value = inlineTextInput.value;
|
|
315628
315637
|
const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
|
|
@@ -315644,7 +315653,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315644
315653
|
role: __props.isOverflowItem ? "menuitem" : "button",
|
|
315645
315654
|
"aria-label": exports_vue.unref(attributes).ariaLabel,
|
|
315646
315655
|
onClick: handleOuterClick,
|
|
315647
|
-
onKeydown: _cache[3] || (_cache[3] = exports_vue.withKeys(
|
|
315656
|
+
onKeydown: _cache[3] || (_cache[3] = exports_vue.withKeys(($event) => onEnterKeydown($event), ["enter"])),
|
|
315648
315657
|
tabindex: "0"
|
|
315649
315658
|
}, [exports_vue.createElementVNode("div", {
|
|
315650
315659
|
class: exports_vue.normalizeClass(["toolbar-button", {
|
|
@@ -315730,7 +315739,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
315730
315739
|
], 10, _hoisted_2$6)], 46, _hoisted_1$9);
|
|
315731
315740
|
};
|
|
315732
315741
|
}
|
|
315733
|
-
}, [["__scopeId", "data-v-
|
|
315742
|
+
}, [["__scopeId", "data-v-dcf6ef0b"]]);
|
|
315734
315743
|
_hoisted_1$8 = {
|
|
315735
315744
|
class: "toolbar-separator",
|
|
315736
315745
|
role: "separator",
|
|
@@ -316062,6 +316071,33 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
316062
316071
|
return;
|
|
316063
316072
|
close2();
|
|
316064
316073
|
};
|
|
316074
|
+
const triggerFocusTargetRef = exports_vue.ref(null);
|
|
316075
|
+
const rememberTriggerFocusTarget = () => {
|
|
316076
|
+
const trigger = triggerRef.value;
|
|
316077
|
+
const active = document.activeElement;
|
|
316078
|
+
if (trigger && active instanceof HTMLElement && trigger.contains(active)) {
|
|
316079
|
+
triggerFocusTargetRef.value = active;
|
|
316080
|
+
return;
|
|
316081
|
+
}
|
|
316082
|
+
triggerFocusTargetRef.value = trigger?.matches?.(TRIGGER_FOCUS_SELECTOR) ? trigger : trigger?.querySelector(TRIGGER_FOCUS_SELECTOR);
|
|
316083
|
+
};
|
|
316084
|
+
const focusTrigger = () => {
|
|
316085
|
+
const remembered = triggerFocusTargetRef.value;
|
|
316086
|
+
if (remembered instanceof HTMLElement && document.contains(remembered)) {
|
|
316087
|
+
remembered.focus();
|
|
316088
|
+
return;
|
|
316089
|
+
}
|
|
316090
|
+
const trigger = triggerRef.value;
|
|
316091
|
+
if (!trigger)
|
|
316092
|
+
return;
|
|
316093
|
+
const fallback = trigger.matches?.(TRIGGER_FOCUS_SELECTOR) ? trigger : trigger.querySelector(TRIGGER_FOCUS_SELECTOR);
|
|
316094
|
+
if (fallback instanceof HTMLElement) {
|
|
316095
|
+
fallback.focus();
|
|
316096
|
+
return;
|
|
316097
|
+
}
|
|
316098
|
+
trigger.setAttribute("tabindex", "-1");
|
|
316099
|
+
trigger.focus();
|
|
316100
|
+
};
|
|
316065
316101
|
const handleKeyDown$1 = (event) => {
|
|
316066
316102
|
if (!isOpen.value)
|
|
316067
316103
|
return;
|
|
@@ -316074,7 +316110,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
316074
316110
|
].includes(key2))
|
|
316075
316111
|
return;
|
|
316076
316112
|
if (key2 === "Escape") {
|
|
316113
|
+
event.preventDefault();
|
|
316077
316114
|
close2();
|
|
316115
|
+
exports_vue.nextTick(() => {
|
|
316116
|
+
requestAnimationFrame(focusTrigger);
|
|
316117
|
+
});
|
|
316078
316118
|
return;
|
|
316079
316119
|
}
|
|
316080
316120
|
if (hasRenderOptions.value)
|
|
@@ -316099,6 +316139,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
316099
316139
|
optionRefs.value = [];
|
|
316100
316140
|
return;
|
|
316101
316141
|
}
|
|
316142
|
+
rememberTriggerFocusTarget();
|
|
316102
316143
|
await exports_vue.nextTick();
|
|
316103
316144
|
updateMenuPosition();
|
|
316104
316145
|
if (hasRenderOptions.value)
|
|
@@ -316165,7 +316206,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
316165
316206
|
})]))]);
|
|
316166
316207
|
};
|
|
316167
316208
|
}
|
|
316168
|
-
}, [["__scopeId", "data-v-
|
|
316209
|
+
}, [["__scopeId", "data-v-261e2a66"]]);
|
|
316169
316210
|
SdTooltip_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
316170
316211
|
__name: "SdTooltip",
|
|
316171
316212
|
props: {
|
|
@@ -316563,15 +316604,36 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
316563
316604
|
previousButtonGroup.focus();
|
|
316564
316605
|
}
|
|
316565
316606
|
};
|
|
316607
|
+
const activateToolbarItem = (item) => {
|
|
316608
|
+
if (item.disabled.value)
|
|
316609
|
+
return;
|
|
316610
|
+
if (isDropdown(item)) {
|
|
316611
|
+
handleDropdownUpdateShowForItem(!getExpanded(item), item);
|
|
316612
|
+
return;
|
|
316613
|
+
}
|
|
316614
|
+
handleToolbarButtonClick(item, null, false);
|
|
316615
|
+
};
|
|
316566
316616
|
const handleKeyDown$1 = (e, item) => {
|
|
316567
316617
|
const isTypingField = e.target.nodeName === "INPUT" || e.target.nodeName === "TEXTAREA";
|
|
316568
316618
|
const isTypingToolbarItem = item.name.value === "fontSize";
|
|
316569
316619
|
if (isTypingField && isTypingToolbarItem)
|
|
316570
316620
|
return;
|
|
316621
|
+
if (![
|
|
316622
|
+
"Enter",
|
|
316623
|
+
" ",
|
|
316624
|
+
"Spacebar",
|
|
316625
|
+
"Escape",
|
|
316626
|
+
"ArrowRight",
|
|
316627
|
+
"ArrowLeft",
|
|
316628
|
+
"Tab"
|
|
316629
|
+
].includes(e.key))
|
|
316630
|
+
return;
|
|
316571
316631
|
e.preventDefault();
|
|
316572
316632
|
switch (e.key) {
|
|
316573
316633
|
case "Enter":
|
|
316574
|
-
|
|
316634
|
+
case " ":
|
|
316635
|
+
case "Spacebar":
|
|
316636
|
+
activateToolbarItem(item);
|
|
316575
316637
|
break;
|
|
316576
316638
|
case "Escape":
|
|
316577
316639
|
closeDropdowns();
|
|
@@ -316690,6 +316752,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
316690
316752
|
trigger: exports_vue.withCtx(() => [exports_vue.createVNode(ToolbarButton_default, {
|
|
316691
316753
|
"toolbar-item": item,
|
|
316692
316754
|
disabled: item.disabled.value,
|
|
316755
|
+
"allow-enter-propagation": true,
|
|
316693
316756
|
onTextSubmit: ($event) => handleToolbarButtonTextSubmit(item, $event),
|
|
316694
316757
|
onMainClick: ($event) => handleSplitButtonMainClick(item)
|
|
316695
316758
|
}, null, 8, [
|
|
@@ -316747,7 +316810,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
316747
316810
|
}), 128))], 36);
|
|
316748
316811
|
};
|
|
316749
316812
|
}
|
|
316750
|
-
}, [["__scopeId", "data-v-
|
|
316813
|
+
}, [["__scopeId", "data-v-109576cd"]]);
|
|
316751
316814
|
Toolbar_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
316752
316815
|
__name: "Toolbar",
|
|
316753
316816
|
emits: [
|
|
@@ -333303,7 +333366,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
|
|
|
333303
333366
|
|
|
333304
333367
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
333305
333368
|
var init_super_editor_es = __esm(() => {
|
|
333306
|
-
|
|
333369
|
+
init_src_C3dDgx5S_es();
|
|
333307
333370
|
init_SuperConverter_ByqzBuoW_es();
|
|
333308
333371
|
init_jszip_C49i9kUs_es();
|
|
333309
333372
|
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.105",
|
|
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"
|