@superdoc-dev/mcp 0.10.0 → 0.11.0-next.1

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 +102 -92
  2. package/package.json +3 -3
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") {} else {}
14572
+ } else if (ctx.target === "openapi-3.0") {}
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
- } else {}
14837
+ }
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");
@@ -52208,7 +52208,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
52208
52208
  emptyOptions2 = {};
52209
52209
  });
52210
52210
 
52211
- // ../../packages/superdoc/dist/chunks/SuperConverter-C6hKp29w.es.js
52211
+ // ../../packages/superdoc/dist/chunks/SuperConverter-CQg2Zq8Z.es.js
52212
52212
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
52213
52213
  const fieldValue = extension$1.config[field];
52214
52214
  if (typeof fieldValue === "function")
@@ -107929,7 +107929,7 @@ var isRegExp = (value) => {
107929
107929
  if (id)
107930
107930
  return trackedChanges.filter(({ mark }) => mark.attrs.id === id);
107931
107931
  return trackedChanges;
107932
- }, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", SDT_INLINE_NAME = "structuredContent", SDT_NODE_TYPES, VALID_CONTROL_TYPES, VALID_LOCK_MODES, VALID_APPEARANCES, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, BIBLIOGRAPHY_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography", CUSTOM_XML_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", DEFAULT_SELECTED_STYLE = "/APA.XSL", DEFAULT_STYLE_NAME = "APA", DEFAULT_VERSION = "6", API_TO_OOXML_SOURCE_TYPE, OOXML_TO_API_SOURCE_TYPE, SIMPLE_FIELD_TO_XML_TAG, XML_TAG_TO_SIMPLE_FIELD, import_lib2, FONT_FAMILY_FALLBACKS, DEFAULT_GENERIC_FALLBACK = "sans-serif", DEFAULT_FONT_SIZE_PT = 10, CURRENT_APP_VERSION = "1.37.0", SUPERDOC_DOCUMENT_ORIGIN_PROPERTY = "SuperdocDocumentOrigin", STORED_DOCUMENT_ORIGINS, collectRunDefaultProperties = (runProps, { allowOverrideTypeface = true, allowOverrideSize = true, themeResolver, state }) => {
107932
+ }, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", SDT_INLINE_NAME = "structuredContent", SDT_NODE_TYPES, VALID_CONTROL_TYPES, VALID_LOCK_MODES, VALID_APPEARANCES, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, BIBLIOGRAPHY_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography", CUSTOM_XML_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", DEFAULT_SELECTED_STYLE = "/APA.XSL", DEFAULT_STYLE_NAME = "APA", DEFAULT_VERSION = "6", API_TO_OOXML_SOURCE_TYPE, OOXML_TO_API_SOURCE_TYPE, SIMPLE_FIELD_TO_XML_TAG, XML_TAG_TO_SIMPLE_FIELD, import_lib2, FONT_FAMILY_FALLBACKS, DEFAULT_GENERIC_FALLBACK = "sans-serif", DEFAULT_FONT_SIZE_PT = 10, CURRENT_APP_VERSION = "1.38.0", SUPERDOC_DOCUMENT_ORIGIN_PROPERTY = "SuperdocDocumentOrigin", STORED_DOCUMENT_ORIGINS, collectRunDefaultProperties = (runProps, { allowOverrideTypeface = true, allowOverrideSize = true, themeResolver, state }) => {
107933
107933
  if (!runProps?.elements?.length || !state)
107934
107934
  return;
107935
107935
  const fontsNode = runProps.elements.find((el) => el.name === "w:rFonts");
@@ -107963,7 +107963,7 @@ var isRegExp = (value) => {
107963
107963
  state.kern = kernNode.attributes["w:val"];
107964
107964
  }
107965
107965
  }, SuperConverter;
107966
- var init_SuperConverter_C6hKp29w_es = __esm(() => {
107966
+ var init_SuperConverter_CQg2Zq8Z_es = __esm(() => {
107967
107967
  init_rolldown_runtime_Bg48TavK_es();
107968
107968
  init_jszip_C49i9kUs_es();
107969
107969
  init_xml_js_CqGKpaft_es();
@@ -146279,7 +146279,7 @@ var init_SuperConverter_C6hKp29w_es = __esm(() => {
146279
146279
  };
146280
146280
  });
146281
146281
 
146282
- // ../../packages/superdoc/dist/chunks/create-headless-toolbar-ISx0N5AS.es.js
146282
+ // ../../packages/superdoc/dist/chunks/create-headless-toolbar-BjHgBUHt.es.js
146283
146283
  function parseSizeUnit(val = "0") {
146284
146284
  const length = val.toString() || "0";
146285
146285
  const value = Number.parseFloat(length);
@@ -156628,8 +156628,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
156628
156628
  }
156629
156629
  };
156630
156630
  };
156631
- var init_create_headless_toolbar_ISx0N5AS_es = __esm(() => {
156632
- init_SuperConverter_C6hKp29w_es();
156631
+ var init_create_headless_toolbar_BjHgBUHt_es = __esm(() => {
156632
+ init_SuperConverter_CQg2Zq8Z_es();
156633
156633
  init_uuid_qzgm05fK_es();
156634
156634
  init_constants_D_X7xF4s_es();
156635
156635
  init_dist_B8HfvhaK_es();
@@ -186102,8 +186102,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
186102
186102
  patchFlag |= 2048;
186103
186103
  }
186104
186104
  root2.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root2.children, patchFlag, undefined, undefined, true, undefined, false);
186105
- } else
186106
- ;
186105
+ }
186107
186106
  }
186108
186107
  function traverseChildren(parent, context) {
186109
186108
  let i4 = 0;
@@ -211379,7 +211378,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
211379
211378
  init_remark_gfm_BhnWr3yf_es();
211380
211379
  });
211381
211380
 
211382
- // ../../packages/superdoc/dist/chunks/src-Bm7Xq4ys.es.js
211381
+ // ../../packages/superdoc/dist/chunks/src-GT3sTaEO.es.js
211383
211382
  function deleteProps(obj, propOrProps) {
211384
211383
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
211385
211384
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -211453,7 +211452,7 @@ function prosemirrorToYXmlFragment(doc$12, xmlFragment) {
211453
211452
  }
211454
211453
  function getSuperdocVersion() {
211455
211454
  try {
211456
- return "1.37.0";
211455
+ return "1.38.0";
211457
211456
  } catch {
211458
211457
  return "unknown";
211459
211458
  }
@@ -271967,7 +271966,7 @@ var Node$13 = class Node$14 {
271967
271966
  }, isToolbarInput = (target) => {
271968
271967
  return !!target?.closest(".button-text-input") || target?.classList?.contains("button-text-input");
271969
271968
  }, isToolbarButton = (target) => {
271970
- return !!target?.closest(".toolbar-button") || target?.classList?.contains("toolbar-button");
271969
+ return !!target?.closest(".sd-toolbar-button") || !!target?.closest(".toolbar-button") || target?.classList?.contains("sd-toolbar-button") || target?.classList?.contains("toolbar-button");
271971
271970
  }, CustomSelection, History, createUndoPlugin = () => {
271972
271971
  return yUndoPlugin();
271973
271972
  }, Color, FontFamily, FontSize, LetterSpacing, TextAlign, toggleMarkCascade = (markName, options = {}) => ({ state, chain, editor }) => {
@@ -285367,7 +285366,7 @@ var Node$13 = class Node$14 {
285367
285366
  disabled: role !== "editor",
285368
285367
  attributes: {
285369
285368
  dropdownPosition: "right",
285370
- className: "toolbar-item--doc-mode",
285369
+ className: "sd-toolbar-item--doc-mode",
285371
285370
  ariaLabel: "Document mode"
285372
285371
  },
285373
285372
  options: [{
@@ -285455,7 +285454,7 @@ var Node$13 = class Node$14 {
285455
285454
  suppressActiveHighlight: true,
285456
285455
  disabled: false,
285457
285456
  attributes: {
285458
- className: "toolbar-item--linked-styles",
285457
+ className: "sd-toolbar-item--linked-styles",
285459
285458
  ariaLabel: "Linked styles"
285460
285459
  },
285461
285460
  options: [{
@@ -285538,8 +285537,7 @@ var Node$13 = class Node$14 {
285538
285537
  "clearFormatting",
285539
285538
  "copyFormat",
285540
285539
  "ruler",
285541
- "formattingMarks",
285542
- "tableOfContents"
285540
+ "formattingMarks"
285543
285541
  ];
285544
285542
  const itemsToHideSM = [
285545
285543
  "zoom",
@@ -285549,15 +285547,16 @@ var Node$13 = class Node$14 {
285549
285547
  ];
285550
285548
  const shouldUseLgCompactStyles = availableWidth <= RESPONSIVE_BREAKPOINTS.lg;
285551
285549
  const shouldIncludeFormattingMarks = superToolbar.config?.showFormattingMarksButton === true;
285550
+ const shouldIncludeTableOfContents = superToolbar.config?.showTableOfContentsButton === true;
285552
285551
  if (shouldUseLgCompactStyles)
285553
285552
  documentMode.attributes.value = {
285554
285553
  ...documentMode.attributes.value,
285555
- className: `${documentMode.attributes.value.className} toolbar-item--doc-mode-compact`
285554
+ className: `${documentMode.attributes.value.className} sd-toolbar-item--doc-mode-compact`
285556
285555
  };
285557
285556
  if (shouldUseLgCompactStyles)
285558
285557
  linkedStyles.attributes.value = {
285559
285558
  ...linkedStyles.attributes.value,
285560
- className: `${linkedStyles.attributes.value.className} toolbar-item--linked-styles-compact`
285559
+ className: `${linkedStyles.attributes.value.className} sd-toolbar-item--linked-styles-compact`
285561
285560
  };
285562
285561
  let toolbarItems = [
285563
285562
  undo$2,
@@ -285578,7 +285577,7 @@ var Node$13 = class Node$14 {
285578
285577
  separator,
285579
285578
  link2,
285580
285579
  image2,
285581
- tableOfContents,
285580
+ ...shouldIncludeTableOfContents ? [tableOfContents] : [],
285582
285581
  tableItem,
285583
285582
  tableActionsItem,
285584
285583
  separator,
@@ -286499,7 +286498,7 @@ var Node$13 = class Node$14 {
286499
286498
  domAvailabilityCache = false;
286500
286499
  return false;
286501
286500
  }
286502
- }, summaryVersion = "1.37.0", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
286501
+ }, summaryVersion = "1.38.0", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
286503
286502
  const container = document.createElement("div");
286504
286503
  container.innerHTML = html3;
286505
286504
  const result = [];
@@ -287684,7 +287683,7 @@ var Node$13 = class Node$14 {
287684
287683
  return () => {};
287685
287684
  const handle3 = setInterval(callback, intervalMs);
287686
287685
  return () => clearInterval(handle3);
287687
- }, HISTORY_UNSAFE_OPS, CANONICAL_COMMENT_IGNORED_KEYS, INITIAL_HASH, ROUND_CONSTANTS, V1_COVERAGE, V2_COVERAGE, SNAPSHOT_VERSION_V2 = "sd-diff-snapshot/v2", PAYLOAD_VERSION_V1 = "sd-diff-payload/v1", PAYLOAD_VERSION_V2 = "sd-diff-payload/v2", ENGINE_ID = "super-editor", STAGED_CONVERTER_KEYS, DiffServiceError, TC_LEVEL_MIN = 1, TC_LEVEL_MAX = 9, ALLOWED_WRAP_ATTRS, WRAP_TYPES_SUPPORTING_SIDE, WRAP_TYPES_SUPPORTING_DISTANCES, RELATIVE_HEIGHT_MIN = 0, RELATIVE_HEIGHT_MAX = 4294967295, FORBIDDEN_RAW_PATCH_NAMES, CONTROL_TYPE_SDT_PR_ELEMENTS, DEFAULT_CHECKBOX_SYMBOL_FONT2 = "MS Gothic", DEFAULT_CHECKBOX_CHECKED_HEX2 = "2612", DEFAULT_CHECKBOX_UNCHECKED_HEX2 = "2610", VARIANT_ORDER, KIND_ORDER, HEADER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", DOCUMENT_RELS_PATH2 = "word/_rels/document.xml.rels", HEADER_FILE_PATTERN2, FOOTER_FILE_PATTERN2, SPECIAL_NOTE_TYPES, BOOKMARK_SCAN_REVISION_PREFIX = "bookmark-scan:", import_lib4, CUSTOM_XML_DATA_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", CUSTOM_XML_DATASTORE_NAMESPACE = "http://schemas.openxmlformats.org/officeDocument/2006/customXml", SETTINGS_PART, RESTART_POLICY_TO_OOXML, VALID_DISPLAYS, REFERENCE_BLOCK_PREFIX, CAPTION_STYLE_NAMES, CAPTION_PARAGRAPH_STYLE_ID = "Caption", CAPTION_FORMAT_TO_OOXML, DOCUMENT_STAT_FIELD_TYPES, TOA_LEADER_REVERSE_MAP, EDGE_NODE_TYPES, CONTENT_TYPES_PART_ID = "[Content_Types].xml", CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types", contentTypesPartDescriptor, empty_exports, init_empty, CURRENT_APP_VERSION2 = "1.37.0", PIXELS_PER_INCH2 = 96, MAX_HEIGHT_BUFFER_PX = 50, MAX_WIDTH_BUFFER_PX = 20, TRACKED_REVIEW_MARK_NAMES2, isTrackedReviewMark = (mark2) => Boolean(mark2?.type?.name && TRACKED_REVIEW_MARK_NAMES2.has(mark2.type.name)), trackedReviewMarkKey = (mark2) => {
287686
+ }, HISTORY_UNSAFE_OPS, CANONICAL_COMMENT_IGNORED_KEYS, INITIAL_HASH, ROUND_CONSTANTS, V1_COVERAGE, V2_COVERAGE, SNAPSHOT_VERSION_V2 = "sd-diff-snapshot/v2", PAYLOAD_VERSION_V1 = "sd-diff-payload/v1", PAYLOAD_VERSION_V2 = "sd-diff-payload/v2", ENGINE_ID = "super-editor", STAGED_CONVERTER_KEYS, DiffServiceError, TC_LEVEL_MIN = 1, TC_LEVEL_MAX = 9, ALLOWED_WRAP_ATTRS, WRAP_TYPES_SUPPORTING_SIDE, WRAP_TYPES_SUPPORTING_DISTANCES, RELATIVE_HEIGHT_MIN = 0, RELATIVE_HEIGHT_MAX = 4294967295, FORBIDDEN_RAW_PATCH_NAMES, CONTROL_TYPE_SDT_PR_ELEMENTS, DEFAULT_CHECKBOX_SYMBOL_FONT2 = "MS Gothic", DEFAULT_CHECKBOX_CHECKED_HEX2 = "2612", DEFAULT_CHECKBOX_UNCHECKED_HEX2 = "2610", VARIANT_ORDER, KIND_ORDER, HEADER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", DOCUMENT_RELS_PATH2 = "word/_rels/document.xml.rels", HEADER_FILE_PATTERN2, FOOTER_FILE_PATTERN2, SPECIAL_NOTE_TYPES, BOOKMARK_SCAN_REVISION_PREFIX = "bookmark-scan:", import_lib4, CUSTOM_XML_DATA_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", CUSTOM_XML_DATASTORE_NAMESPACE = "http://schemas.openxmlformats.org/officeDocument/2006/customXml", SETTINGS_PART, RESTART_POLICY_TO_OOXML, VALID_DISPLAYS, REFERENCE_BLOCK_PREFIX, CAPTION_STYLE_NAMES, CAPTION_PARAGRAPH_STYLE_ID = "Caption", CAPTION_FORMAT_TO_OOXML, DOCUMENT_STAT_FIELD_TYPES, TOA_LEADER_REVERSE_MAP, EDGE_NODE_TYPES, CONTENT_TYPES_PART_ID = "[Content_Types].xml", CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types", contentTypesPartDescriptor, empty_exports, init_empty, CURRENT_APP_VERSION2 = "1.38.0", PIXELS_PER_INCH2 = 96, MAX_HEIGHT_BUFFER_PX = 50, MAX_WIDTH_BUFFER_PX = 20, TRACKED_REVIEW_MARK_NAMES2, isTrackedReviewMark = (mark2) => Boolean(mark2?.type?.name && TRACKED_REVIEW_MARK_NAMES2.has(mark2.type.name)), trackedReviewMarkKey = (mark2) => {
287688
287687
  if (!isTrackedReviewMark(mark2))
287689
287688
  return null;
287690
287689
  const id2 = typeof mark2.attrs?.id === "string" ? mark2.attrs.id : "";
@@ -308416,13 +308415,13 @@ menclose::after {
308416
308415
  return;
308417
308416
  console.log(...args$1);
308418
308417
  }, 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, TRACKED_MARK_NAMES;
308419
- var init_src_Bm7Xq4ys_es = __esm(() => {
308418
+ var init_src_GT3sTaEO_es = __esm(() => {
308420
308419
  init_rolldown_runtime_Bg48TavK_es();
308421
- init_SuperConverter_C6hKp29w_es();
308420
+ init_SuperConverter_CQg2Zq8Z_es();
308422
308421
  init_jszip_C49i9kUs_es();
308423
308422
  init_xml_js_CqGKpaft_es();
308424
308423
  init_uuid_qzgm05fK_es();
308425
- init_create_headless_toolbar_ISx0N5AS_es();
308424
+ init_create_headless_toolbar_BjHgBUHt_es();
308426
308425
  init_constants_D_X7xF4s_es();
308427
308426
  init_dist_B8HfvhaK_es();
308428
308427
  init_unified_Dsuw2be5_es();
@@ -326161,12 +326160,12 @@ function print() { __p += __j.call(arguments, '') }
326161
326160
  onMouseenter: ($event) => activeUserIndex.value = index2,
326162
326161
  onMouseleave: _cache[0] || (_cache[0] = ($event) => activeUserIndex.value = null),
326163
326162
  key: user.email,
326164
- class: exports_vue.normalizeClass(["user-row", { selected: activeUserIndex.value === index2 }])
326163
+ class: exports_vue.normalizeClass(["user-row", { "sd-selected": activeUserIndex.value === index2 }])
326165
326164
  }, [user.name ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_2$17, [user.name ? (exports_vue.openBlock(), exports_vue.createElementBlock("span", _hoisted_3$13, exports_vue.toDisplayString(user.name), 1)) : exports_vue.createCommentVNode("", true), user.name && user.email ? (exports_vue.openBlock(), exports_vue.createElementBlock("span", _hoisted_4$9, " (" + exports_vue.toDisplayString(user.email) + ")", 1)) : exports_vue.createCommentVNode("", true)])) : (exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_5$7, [exports_vue.createElementVNode("span", null, exports_vue.toDisplayString(user.email), 1)]))], 42, _hoisted_1$22);
326166
326165
  }), 128))], 544);
326167
326166
  };
326168
326167
  }
326169
- }, [["__scopeId", "data-v-dde587fd"]]);
326168
+ }, [["__scopeId", "data-v-b9684aad"]]);
326170
326169
  popoverPluginKey = new PluginKey("popoverPlugin");
326171
326170
  PopoverPlugin = Extension.create({
326172
326171
  name: "popoverPlugin",
@@ -327633,7 +327632,7 @@ function print() { __p += __j.call(arguments, '') }
327633
327632
  }, null, 8, _hoisted_5$6)) : exports_vue.createCommentVNode("", true)])], 544);
327634
327633
  };
327635
327634
  }
327636
- }, [["__scopeId", "data-v-79953d57"]]);
327635
+ }, [["__scopeId", "data-v-5444b0c8"]]);
327637
327636
  isHighContrastMode = exports_vue.ref(false);
327638
327637
  toolbarIcons = {
327639
327638
  undo: rotate_left_solid_default,
@@ -327797,7 +327796,7 @@ function print() { __p += __j.call(arguments, '') }
327797
327796
  return exports_vue.openBlock(), exports_vue.createElementBlock("div", { class: exports_vue.normalizeClass(["alignment-buttons", { "high-contrast": exports_vue.unref(isHighContrastMode$1) }]) }, [(exports_vue.openBlock(), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(alignmentButtons, (button, index2) => {
327798
327797
  return exports_vue.createElementVNode("div", {
327799
327798
  key: button.key,
327800
- class: "button-icon",
327799
+ class: "sd-button-icon",
327801
327800
  onClick: ($event) => select2(button.key),
327802
327801
  innerHTML: button.icon,
327803
327802
  "data-item": "btn-textAlign-option",
@@ -327811,7 +327810,7 @@ function print() { __p += __j.call(arguments, '') }
327811
327810
  }), 64))], 2);
327812
327811
  };
327813
327812
  }
327814
- }, [["__scopeId", "data-v-3f7f0d98"]]);
327813
+ }, [["__scopeId", "data-v-ceb338e0"]]);
327815
327814
  _hoisted_1$19 = [
327816
327815
  "onClick",
327817
327816
  "innerHTML",
@@ -327891,7 +327890,7 @@ function print() { __p += __j.call(arguments, '') }
327891
327890
  return exports_vue.openBlock(), exports_vue.createElementBlock("div", { class: exports_vue.normalizeClass(["style-buttons-list", { "high-contrast": exports_vue.unref(isHighContrastMode$1) }]) }, [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(props.buttons, (button, index2) => {
327892
327891
  return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
327893
327892
  key: button.key,
327894
- class: exports_vue.normalizeClass(["button-icon", { selected: props.selectedStyle === button.key }]),
327893
+ class: exports_vue.normalizeClass(["sd-button-icon", { "sd-selected": props.selectedStyle === button.key }]),
327895
327894
  style: exports_vue.normalizeStyle(iconStyle.value),
327896
327895
  onClick: ($event) => select2(button.key),
327897
327896
  innerHTML: button.icon,
@@ -327905,7 +327904,7 @@ function print() { __p += __j.call(arguments, '') }
327905
327904
  }), 128))], 2);
327906
327905
  };
327907
327906
  }
327908
- }, [["__scopeId", "data-v-d374ab76"]]);
327907
+ }, [["__scopeId", "data-v-701c1d54"]]);
327909
327908
  bulletStyleButtons = [
327910
327909
  {
327911
327910
  key: "disc",
@@ -328023,7 +328022,7 @@ function print() { __p += __j.call(arguments, '') }
328023
328022
  return (_ctx, _cache) => {
328024
328023
  return exports_vue.openBlock(), exports_vue.createElementBlock("div", { class: exports_vue.normalizeClass(["document-mode", { "high-contrast": exports_vue.unref(isHighContrastMode$1) }]) }, [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(__props.options, (option, index2) => {
328025
328024
  return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
328026
- class: exports_vue.normalizeClass(["option-item", { disabled: option.disabled }]),
328025
+ class: exports_vue.normalizeClass(["sd-option-item", { "sd-disabled": option.disabled }]),
328027
328026
  onClick: ($event) => handleClick$1(option),
328028
328027
  "data-item": "btn-documentMode-option",
328029
328028
  role: "menuitem",
@@ -328038,7 +328037,7 @@ function print() { __p += __j.call(arguments, '') }
328038
328037
  }), 256))], 2);
328039
328038
  };
328040
328039
  }
328041
- }, [["__scopeId", "data-v-8587478e"]]);
328040
+ }, [["__scopeId", "data-v-abd514d9"]]);
328042
328041
  _hoisted_1$17 = {
328043
328042
  key: 0,
328044
328043
  class: "linked-style-buttons",
@@ -328340,13 +328339,13 @@ function print() { __p += __j.call(arguments, '') }
328340
328339
  type: "text",
328341
328340
  name: "link",
328342
328341
  placeholder: "Type or paste a link",
328343
- class: exports_vue.normalizeClass({ error: urlError.value }),
328342
+ class: exports_vue.normalizeClass({ "sd-error": urlError.value }),
328344
328343
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => rawUrl.value = $event),
328345
328344
  readonly: isViewingMode.value,
328346
328345
  onKeydown: [exports_vue.withKeys(exports_vue.withModifiers(handleSubmit, ["stop", "prevent"]), ["enter"]), _cache[3] || (_cache[3] = ($event) => urlError.value = false)]
328347
328346
  }, null, 42, _hoisted_10$1), [[exports_vue.vModelText, rawUrl.value]]),
328348
328347
  exports_vue.createElementVNode("div", {
328349
- class: exports_vue.normalizeClass(["open-link-icon", { disabled: !validUrl.value }]),
328348
+ class: exports_vue.normalizeClass(["open-link-icon", { "sd-disabled": !validUrl.value }]),
328350
328349
  innerHTML: exports_vue.unref(toolbarIcons).openLink,
328351
328350
  onClick: openLink,
328352
328351
  "data-item": "btn-link-open"
@@ -328361,14 +328360,14 @@ function print() { __p += __j.call(arguments, '') }
328361
328360
  class: "remove-btn__icon",
328362
328361
  innerHTML: exports_vue.unref(toolbarIcons).removeLink
328363
328362
  }, null, 8, _hoisted_13), _cache[6] || (_cache[6] = exports_vue.createTextVNode(" Remove ", -1))])) : exports_vue.createCommentVNode("", true), exports_vue.createElementVNode("button", {
328364
- class: exports_vue.normalizeClass(["submit-btn", { "disable-btn": isDisabled.value }]),
328363
+ class: exports_vue.normalizeClass(["sd-submit-btn", { "disable-btn": isDisabled.value }]),
328365
328364
  onClick: handleSubmit,
328366
328365
  "data-item": "btn-link-apply"
328367
328366
  }, " Apply ", 2)])) : exports_vue.createCommentVNode("", true)
328368
328367
  ])) : isAnchor.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_14, [exports_vue.createElementVNode("a", { onClick: _cache[4] || (_cache[4] = exports_vue.withModifiers(($event) => navigateToAnchor(rawUrl.value), ["stop", "prevent"])) }, "Go to " + exports_vue.toDisplayString(rawUrl.value.startsWith("#_") ? rawUrl.value.substring(2) : rawUrl.value), 1)])) : exports_vue.createCommentVNode("", true)], 2);
328369
328368
  };
328370
328369
  }
328371
- }, [["__scopeId", "data-v-56a53c8c"]]);
328370
+ }, [["__scopeId", "data-v-c490d677"]]);
328372
328371
  _hoisted_1$15 = [
328373
328372
  "aria-label",
328374
328373
  "onClick",
@@ -328475,7 +328474,7 @@ function print() { __p += __j.call(arguments, '') }
328475
328474
  return (_ctx, _cache) => {
328476
328475
  return exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(__props.icons, (row2, rowIndex) => {
328477
328476
  return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
328478
- class: "option-row",
328477
+ class: "sd-option-row",
328479
328478
  key: rowIndex,
328480
328479
  role: "group",
328481
328480
  ref_for: true,
@@ -328483,7 +328482,7 @@ function print() { __p += __j.call(arguments, '') }
328483
328482
  ref: rowRefs
328484
328483
  }, [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(row2, (option, optionIndex) => {
328485
328484
  return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
328486
- class: "option",
328485
+ class: "sd-option",
328487
328486
  key: optionIndex,
328488
328487
  "aria-label": option.label,
328489
328488
  role: "menuitem",
@@ -328493,12 +328492,12 @@ function print() { __p += __j.call(arguments, '') }
328493
328492
  onClick: exports_vue.withModifiers(($event) => handleClick$1(option), ["stop", "prevent"]),
328494
328493
  onKeydown: exports_vue.withModifiers((event) => handleKeyDown$1(event, rowIndex, optionIndex, option), ["prevent"])
328495
328494
  }, [exports_vue.createElementVNode("div", {
328496
- class: "option__icon",
328495
+ class: "sd-option__icon",
328497
328496
  innerHTML: option.icon,
328498
328497
  style: exports_vue.normalizeStyle(option.style)
328499
328498
  }, null, 12, _hoisted_2$12), isActive$1.value(option) ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
328500
328499
  key: 0,
328501
- class: "option__check",
328500
+ class: "sd-option__check",
328502
328501
  innerHTML: exports_vue.unref(toolbarIcons).colorOptionCheck,
328503
328502
  style: exports_vue.normalizeStyle(getCheckStyle(option.value, optionIndex))
328504
328503
  }, null, 12, _hoisted_3$9)) : exports_vue.createCommentVNode("", true)], 40, _hoisted_1$15);
@@ -328506,7 +328505,7 @@ function print() { __p += __j.call(arguments, '') }
328506
328505
  }), 128);
328507
328506
  };
328508
328507
  }
328509
- }, [["__scopeId", "data-v-59855ce7"]]);
328508
+ }, [["__scopeId", "data-v-30cad300"]]);
328510
328509
  _hoisted_1$14 = { class: "options-grid-wrap" };
328511
328510
  _hoisted_2$11 = ["innerHTML"];
328512
328511
  _hoisted_3$8 = { class: "option-grid-ctn" };
@@ -328662,9 +328661,9 @@ function print() { __p += __j.call(arguments, '') }
328662
328661
  let itemsCols = parseInt(item.dataset.cols, 10);
328663
328662
  let itemsRows = parseInt(item.dataset.rows, 10);
328664
328663
  if (itemsCols <= cols && itemsRows <= rows)
328665
- item.classList.add("selected");
328664
+ item.classList.add("sd-selected");
328666
328665
  else
328667
- item.classList.remove("selected");
328666
+ item.classList.remove("sd-selected");
328668
328667
  }
328669
328668
  };
328670
328669
  const handleClick$1 = ({ cols, rows }) => {
@@ -328757,7 +328756,7 @@ function print() { __p += __j.call(arguments, '') }
328757
328756
  }, exports_vue.toDisplayString(selectedRows.value) + " x " + exports_vue.toDisplayString(selectedCols.value), 9, _hoisted_2$10)], 2);
328758
328757
  };
328759
328758
  }
328760
- }, [["__scopeId", "data-v-5cefb109"]]);
328759
+ }, [["__scopeId", "data-v-168b91ce"]]);
328761
328760
  _hoisted_1$12 = { class: "toolbar-table-actions" };
328762
328761
  _hoisted_2$9 = [
328763
328762
  "onClick",
@@ -328793,7 +328792,7 @@ function print() { __p += __j.call(arguments, '') }
328793
328792
  }
328794
328793
  }, [["__scopeId", "data-v-652015c8"]]);
328795
328794
  _hoisted_1$11 = { class: "search-input-ctn" };
328796
- _hoisted_2$8 = { class: "row" };
328795
+ _hoisted_2$8 = { class: "sd-row" };
328797
328796
  _hoisted_3$6 = ["onKeydown"];
328798
328797
  SearchInput_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
328799
328798
  __name: "SearchInput",
@@ -328814,13 +328813,13 @@ function print() { __p += __j.call(arguments, '') }
328814
328813
  name: "search",
328815
328814
  placeholder: "Type search string",
328816
328815
  onKeydown: exports_vue.withKeys(exports_vue.withModifiers(handleSubmit, ["stop", "prevent"]), ["enter"])
328817
- }, null, 40, _hoisted_3$6), [[exports_vue.vModelText, searchValue.value]])]), exports_vue.createElementVNode("div", { class: "row submit" }, [exports_vue.createElementVNode("button", {
328818
- class: "submit-btn",
328816
+ }, null, 40, _hoisted_3$6), [[exports_vue.vModelText, searchValue.value]])]), exports_vue.createElementVNode("div", { class: "sd-row sd-submit" }, [exports_vue.createElementVNode("button", {
328817
+ class: "sd-submit-btn",
328819
328818
  onClick: handleSubmit
328820
328819
  }, "Apply")])]);
328821
328820
  };
328822
328821
  }
328823
- }, [["__scopeId", "data-v-bfe34b7b"]]);
328822
+ }, [["__scopeId", "data-v-d25821a5"]]);
328824
328823
  TOOLBAR_FONTS = [
328825
328824
  {
328826
328825
  label: "Georgia",
@@ -328987,7 +328986,7 @@ function print() { __p += __j.call(arguments, '') }
328987
328986
  HEADLESS_TOOLBAR_COMMANDS = [...new Set([...Object.values(HEADLESS_ITEM_MAP), ...TABLE_ACTION_COMMAND_IDS])];
328988
328987
  NON_HEADLESS_EXECUTE_ITEM_NAMES = new Set(["link"]);
328989
328988
  HEADLESS_EXECUTE_ITEMS = new Set(Object.keys(HEADLESS_ITEM_MAP).filter((itemName) => !NON_HEADLESS_EXECUTE_ITEM_NAMES.has(itemName)));
328990
- _hoisted_1$10 = { class: "toolbar-icon" };
328989
+ _hoisted_1$10 = { class: "sd-toolbar-icon" };
328991
328990
  _hoisted_2$7 = ["innerHTML"];
328992
328991
  ToolbarButtonIcon_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
328993
328992
  __name: "ToolbarButtonIcon",
@@ -329018,7 +329017,7 @@ function print() { __p += __j.call(arguments, '') }
329018
329017
  });
329019
329018
  return (_ctx, _cache) => {
329020
329019
  return exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_1$10, [exports_vue.createElementVNode("div", {
329021
- class: exports_vue.normalizeClass(["toolbar-icon__icon", [`toolbar-icon__icon--${props.name}`]]),
329020
+ class: exports_vue.normalizeClass(["sd-toolbar-icon__icon", [`sd-toolbar-icon__icon--${props.name}`]]),
329022
329021
  innerHTML: __props.icon
329023
329022
  }, null, 10, _hoisted_2$7), hasColorBar.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
329024
329023
  key: 0,
@@ -329027,19 +329026,19 @@ function print() { __p += __j.call(arguments, '') }
329027
329026
  }, null, 4)) : exports_vue.createCommentVNode("", true)]);
329028
329027
  };
329029
329028
  }
329030
- }, [["__scopeId", "data-v-8c30c125"]]);
329029
+ }, [["__scopeId", "data-v-521c3d93"]]);
329031
329030
  _hoisted_1$9 = ["role", "aria-label"];
329032
329031
  _hoisted_2$6 = ["data-item"];
329033
329032
  _hoisted_3$5 = ["data-item"];
329034
329033
  _hoisted_4$4 = {
329035
329034
  key: 1,
329036
- class: "button-label"
329035
+ class: "sd-button-label"
329037
329036
  };
329038
329037
  _hoisted_5$2 = ["data-item", "aria-label"];
329039
329038
  _hoisted_6$1 = ["innerHTML"];
329040
329039
  _hoisted_7$1 = {
329041
329040
  key: 1,
329042
- class: "button-label"
329041
+ class: "sd-button-label"
329043
329042
  };
329044
329043
  _hoisted_8 = { key: 2 };
329045
329044
  _hoisted_9 = ["onKeydown", "id"];
@@ -329051,7 +329050,7 @@ function print() { __p += __j.call(arguments, '') }
329051
329050
  _hoisted_11 = ["innerHTML"];
329052
329051
  _hoisted_12 = {
329053
329052
  "aria-live": "polite",
329054
- class: "visually-hidden"
329053
+ class: "sd-visually-hidden"
329055
329054
  };
329056
329055
  ToolbarButton_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
329057
329056
  __name: "ToolbarButton",
@@ -329149,17 +329148,18 @@ function print() { __p += __j.call(arguments, '') }
329149
329148
  });
329150
329149
  return (_ctx, _cache) => {
329151
329150
  return exports_vue.openBlock(), exports_vue.createElementBlock("div", {
329152
- class: exports_vue.normalizeClass(["toolbar-item", exports_vue.unref(attributes).className]),
329151
+ class: exports_vue.normalizeClass(["sd-toolbar-item", exports_vue.unref(attributes).className]),
329153
329152
  style: exports_vue.normalizeStyle(getStyle.value),
329154
329153
  role: __props.isOverflowItem ? "menuitem" : "button",
329155
329154
  "aria-label": exports_vue.unref(attributes).ariaLabel,
329155
+ "data-sd-part": "toolbar-item",
329156
329156
  onClick: handleOuterClick,
329157
329157
  onKeydown: _cache[3] || (_cache[3] = exports_vue.withKeys(($event) => onEnterKeydown($event), ["enter"])),
329158
329158
  tabindex: "0"
329159
329159
  }, [exports_vue.createElementVNode("div", {
329160
- class: exports_vue.normalizeClass(["toolbar-button", {
329161
- active: exports_vue.unref(active),
329162
- disabled: exports_vue.unref(disabled),
329160
+ class: exports_vue.normalizeClass(["sd-toolbar-button", {
329161
+ "sd-active": exports_vue.unref(active),
329162
+ "sd-disabled": exports_vue.unref(disabled),
329163
329163
  narrow: __props.isNarrow,
329164
329164
  wide: __props.isWide,
329165
329165
  split: isSplit.value,
@@ -329170,13 +329170,13 @@ function print() { __p += __j.call(arguments, '') }
329170
329170
  }, [
329171
329171
  isSplit.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
329172
329172
  key: 0,
329173
- class: "toolbar-button__main",
329173
+ class: "sd-toolbar-button__main",
329174
329174
  "data-item": `btn-${exports_vue.unref(name) || ""}-main`,
329175
329175
  onClick: _cache[0] || (_cache[0] = ($event) => handleSplitMainClick($event))
329176
329176
  }, [exports_vue.unref(icon) ? (exports_vue.openBlock(), exports_vue.createBlock(ToolbarButtonIcon_default, {
329177
329177
  key: 0,
329178
329178
  color: exports_vue.unref(iconColor),
329179
- class: "toolbar-icon",
329179
+ class: "sd-toolbar-icon",
329180
329180
  icon: exports_vue.unref(icon),
329181
329181
  name: exports_vue.unref(name)
329182
329182
  }, null, 8, [
@@ -329186,19 +329186,19 @@ function print() { __p += __j.call(arguments, '') }
329186
329186
  ])) : exports_vue.createCommentVNode("", true), exports_vue.unref(label) && !exports_vue.unref(hideLabel) && !exports_vue.unref(inlineTextInputVisible) ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", _hoisted_4$4, exports_vue.toDisplayString(exports_vue.unref(label)), 1)) : exports_vue.createCommentVNode("", true)], 8, _hoisted_3$5)) : exports_vue.createCommentVNode("", true),
329187
329187
  isSplit.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
329188
329188
  key: 1,
329189
- class: "toolbar-button__caret",
329189
+ class: "sd-toolbar-button__caret",
329190
329190
  "data-item": `btn-${exports_vue.unref(name) || ""}-caret`,
329191
329191
  "aria-label": `${exports_vue.unref(attributes).ariaLabel} options`,
329192
329192
  role: "button"
329193
329193
  }, [exports_vue.createElementVNode("div", {
329194
- class: "dropdown-caret",
329194
+ class: "sd-dropdown-caret",
329195
329195
  innerHTML: caretIcon.value,
329196
329196
  style: exports_vue.normalizeStyle({ opacity: exports_vue.unref(disabled) ? 0.6 : 1 })
329197
329197
  }, null, 12, _hoisted_6$1)], 8, _hoisted_5$2)) : (exports_vue.openBlock(), exports_vue.createElementBlock(exports_vue.Fragment, { key: 2 }, [
329198
329198
  exports_vue.unref(icon) ? (exports_vue.openBlock(), exports_vue.createBlock(ToolbarButtonIcon_default, {
329199
329199
  key: 0,
329200
329200
  color: exports_vue.unref(iconColor),
329201
- class: "toolbar-icon",
329201
+ class: "sd-toolbar-icon",
329202
329202
  icon: exports_vue.unref(icon),
329203
329203
  name: exports_vue.unref(name)
329204
329204
  }, null, 8, [
@@ -329231,7 +329231,7 @@ function print() { __p += __j.call(arguments, '') }
329231
329231
  }, null, 40, _hoisted_10)), [[exports_vue.vModelText, inlineTextInput.value]])])) : exports_vue.createCommentVNode("", true),
329232
329232
  exports_vue.unref(hasCaret) ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", {
329233
329233
  key: 3,
329234
- class: "dropdown-caret",
329234
+ class: "sd-dropdown-caret",
329235
329235
  innerHTML: caretIcon.value,
329236
329236
  style: exports_vue.normalizeStyle({ opacity: exports_vue.unref(disabled) ? 0.6 : 1 })
329237
329237
  }, null, 12, _hoisted_11)) : exports_vue.createCommentVNode("", true)
@@ -329240,7 +329240,7 @@ function print() { __p += __j.call(arguments, '') }
329240
329240
  ], 10, _hoisted_2$6)], 46, _hoisted_1$9);
329241
329241
  };
329242
329242
  }
329243
- }, [["__scopeId", "data-v-dcf6ef0b"]]);
329243
+ }, [["__scopeId", "data-v-360f6a95"]]);
329244
329244
  _hoisted_1$8 = {
329245
329245
  class: "toolbar-separator",
329246
329246
  role: "separator",
@@ -329477,11 +329477,11 @@ function print() { __p += __j.call(arguments, '') }
329477
329477
  if (!value)
329478
329478
  return false;
329479
329479
  if (typeof value === "string")
329480
- return value.split(/\s+/).includes("selected");
329480
+ return value.split(/\s+/).includes("sd-selected");
329481
329481
  if (Array.isArray(value))
329482
329482
  return value.some(classHasSelected);
329483
329483
  if (typeof value === "object")
329484
- return Boolean(value.selected);
329484
+ return Boolean(value["sd-selected"]);
329485
329485
  return false;
329486
329486
  };
329487
329487
  const isOptionSelected = (option) => {
@@ -329672,12 +329672,14 @@ function print() { __p += __j.call(arguments, '') }
329672
329672
  ref_key: "triggerRef",
329673
329673
  ref: triggerRef,
329674
329674
  class: "toolbar-dropdown-trigger",
329675
+ "data-sd-part": "dropdown-trigger",
329675
329676
  onClick: onTriggerClick
329676
329677
  }, [exports_vue.renderSlot(_ctx.$slots, "trigger", {}, undefined, true)], 512), (exports_vue.openBlock(), exports_vue.createBlock(exports_vue.Teleport, { to: "body" }, [exports_vue.createVNode(exports_vue.Transition, { name: "fade-in-scale-up-transition" }, {
329677
329678
  default: exports_vue.withCtx(() => [isOpen.value ? (exports_vue.openBlock(), exports_vue.createElementBlock("div", exports_vue.mergeProps({
329678
329679
  key: 0,
329679
329680
  ref_key: "menuRef",
329680
329681
  ref: menuRef,
329682
+ "data-sd-part": "dropdown-menu",
329681
329683
  class: mergedMenuClass.value,
329682
329684
  style: menuStyle.value
329683
329685
  }, computedMenuAttrs.value), [(exports_vue.openBlock(true), exports_vue.createElementBlock(exports_vue.Fragment, null, exports_vue.renderList(__props.options, (option, index2) => {
@@ -329689,8 +329691,8 @@ function print() { __p += __j.call(arguments, '') }
329689
329691
  option.class,
329690
329692
  option.props?.class,
329691
329693
  {
329692
- disabled: option.disabled,
329693
- render: isRenderOption(option)
329694
+ "sd-disabled": option.disabled,
329695
+ "sd-render": isRenderOption(option)
329694
329696
  }
329695
329697
  ]],
329696
329698
  tabindex: "-1",
@@ -329707,7 +329709,7 @@ function print() { __p += __j.call(arguments, '') }
329707
329709
  })]))]);
329708
329710
  };
329709
329711
  }
329710
- }, [["__scopeId", "data-v-261e2a66"]]);
329712
+ }, [["__scopeId", "data-v-302f7d86"]]);
329711
329713
  SdTooltip_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
329712
329714
  __name: "SdTooltip",
329713
329715
  props: {
@@ -330058,7 +330060,7 @@ function print() { __p += __j.call(arguments, '') }
330058
330060
  ...option,
330059
330061
  props: {
330060
330062
  ...option.props,
330061
- class: isSelected ? "selected" : ""
330063
+ class: isSelected ? "sd-selected" : ""
330062
330064
  }
330063
330065
  };
330064
330066
  });
@@ -330071,7 +330073,7 @@ function print() { __p += __j.call(arguments, '') }
330071
330073
  };
330072
330074
  const moveToNextButton = (e) => {
330073
330075
  const currentButton = e.target;
330074
- const nextButton = e.target.closest(".toolbar-item-ctn").nextElementSibling;
330076
+ const nextButton = e.target.closest(".sd-toolbar-item-ctn").nextElementSibling;
330075
330077
  if (nextButton) {
330076
330078
  currentButton.setAttribute("tabindex", "-1");
330077
330079
  nextButton.setAttribute("tabindex", "0");
@@ -330080,7 +330082,7 @@ function print() { __p += __j.call(arguments, '') }
330080
330082
  };
330081
330083
  const moveToPreviousButton = (e) => {
330082
330084
  const currentButton = e.target;
330083
- const previousButton = e.target.closest(".toolbar-item-ctn").previousElementSibling;
330085
+ const previousButton = e.target.closest(".sd-toolbar-item-ctn").previousElementSibling;
330084
330086
  if (previousButton) {
330085
330087
  currentButton.setAttribute("tabindex", "-1");
330086
330088
  previousButton.setAttribute("tabindex", "0");
@@ -330158,7 +330160,7 @@ function print() { __p += __j.call(arguments, '') }
330158
330160
  }
330159
330161
  };
330160
330162
  const handleFocus = (e) => {
330161
- const firstButton = toolbarItemRefs.value.find((item) => !item.classList.contains("disabled"));
330163
+ const firstButton = toolbarItemRefs.value.find((item) => !item.classList.contains("sd-disabled"));
330162
330164
  if (firstButton) {
330163
330165
  firstButton.setAttribute("tabindex", "0");
330164
330166
  firstButton.focus();
@@ -330214,8 +330216,8 @@ function print() { __p += __j.call(arguments, '') }
330214
330216
  class: exports_vue.normalizeClass([{
330215
330217
  narrow: item.isNarrow.value,
330216
330218
  wide: item.isWide.value,
330217
- disabled: item.disabled.value
330218
- }, "toolbar-item-ctn"]),
330219
+ "sd-disabled": item.disabled.value
330220
+ }, "sd-toolbar-item-ctn"]),
330219
330221
  onKeydown: (e) => handleKeyDown$1(e, item),
330220
330222
  ref_for: true,
330221
330223
  ref_key: "toolbarItemRefs",
@@ -330234,7 +330236,7 @@ function print() { __p += __j.call(arguments, '') }
330234
330236
  show: getExpanded(item),
330235
330237
  "content-style": { fontFamily: props.uiFontFamily },
330236
330238
  placement: "bottom-start",
330237
- class: "toolbar-button sd-editor-toolbar-dropdown",
330239
+ class: "sd-toolbar-button sd-editor-toolbar-dropdown",
330238
330240
  onSelect: (key2, option) => handleSelect(item, option),
330239
330241
  "onUpdate:show": (open) => handleDropdownUpdateShowForItem(open, item),
330240
330242
  style: exports_vue.normalizeStyle(item.dropdownStyles.value),
@@ -330311,7 +330313,7 @@ function print() { __p += __j.call(arguments, '') }
330311
330313
  }), 128))], 36);
330312
330314
  };
330313
330315
  }
330314
- }, [["__scopeId", "data-v-109576cd"]]);
330316
+ }, [["__scopeId", "data-v-9c3524ec"]]);
330315
330317
  Toolbar_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
330316
330318
  __name: "Toolbar",
330317
330319
  emits: [
@@ -330405,6 +330407,7 @@ function print() { __p += __j.call(arguments, '') }
330405
330407
  key: exports_vue.unref(toolbarKey),
330406
330408
  role: "toolbar",
330407
330409
  "aria-label": "Toolbar",
330410
+ "data-sd-part": "toolbar",
330408
330411
  "data-editor-ui-surface": "",
330409
330412
  onMousedown: handleToolbarMousedown
330410
330413
  }, [
@@ -330456,7 +330459,7 @@ function print() { __p += __j.call(arguments, '') }
330456
330459
  ], 32);
330457
330460
  };
330458
330461
  }
330459
- }, [["__scopeId", "data-v-bae4cd8a"]]);
330462
+ }, [["__scopeId", "data-v-b83d488a"]]);
330460
330463
  toolbarTexts = {
330461
330464
  bold: "Bold",
330462
330465
  fontFamily: "Font",
@@ -330545,7 +330548,8 @@ function print() { __p += __j.call(arguments, '') }
330545
330548
  aiApiKey: null,
330546
330549
  aiEndpoint: null,
330547
330550
  customButtons: [],
330548
- showFormattingMarksButton: false
330551
+ showFormattingMarksButton: false,
330552
+ showTableOfContentsButton: false
330549
330553
  };
330550
330554
  toolbarItems = [];
330551
330555
  overflowItems = [];
@@ -342852,11 +342856,11 @@ function print() { __p += __j.call(arguments, '') }
342852
342856
  ]);
342853
342857
  });
342854
342858
 
342855
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui-DKJYU_qM.es.js
342859
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-BghVjsf3.es.js
342856
342860
  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;
342857
- var init_create_super_doc_ui_DKJYU_qM_es = __esm(() => {
342858
- init_SuperConverter_C6hKp29w_es();
342859
- init_create_headless_toolbar_ISx0N5AS_es();
342861
+ var init_create_super_doc_ui_BghVjsf3_es = __esm(() => {
342862
+ init_SuperConverter_CQg2Zq8Z_es();
342863
+ init_create_headless_toolbar_BjHgBUHt_es();
342860
342864
  MOD_ALIASES = new Set([
342861
342865
  "Mod",
342862
342866
  "Meta",
@@ -342898,16 +342902,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
342898
342902
 
342899
342903
  // ../../packages/superdoc/dist/super-editor.es.js
342900
342904
  var init_super_editor_es = __esm(() => {
342901
- init_src_Bm7Xq4ys_es();
342902
- init_SuperConverter_C6hKp29w_es();
342905
+ init_src_GT3sTaEO_es();
342906
+ init_SuperConverter_CQg2Zq8Z_es();
342903
342907
  init_jszip_C49i9kUs_es();
342904
342908
  init_xml_js_CqGKpaft_es();
342905
- init_create_headless_toolbar_ISx0N5AS_es();
342909
+ init_create_headless_toolbar_BjHgBUHt_es();
342906
342910
  init_constants_D_X7xF4s_es();
342907
342911
  init_dist_B8HfvhaK_es();
342908
342912
  init_unified_Dsuw2be5_es();
342909
342913
  init_DocxZipper_nv_KfOqb_es();
342910
- init_create_super_doc_ui_DKJYU_qM_es();
342914
+ init_create_super_doc_ui_BghVjsf3_es();
342911
342915
  init_ui_C5PAS9hY_es();
342912
342916
  init_eventemitter3_BnGqBE_Q_es();
342913
342917
  init_errors_CNaD6vcg_es();
@@ -464762,7 +464766,7 @@ var DEFAULT_SELECTION_STATE2, normalizeSelectionState2 = (state = {}) => ({
464762
464766
  }, isToolbarInput2 = (target) => {
464763
464767
  return !!target?.closest(".button-text-input") || target?.classList?.contains("button-text-input");
464764
464768
  }, isToolbarButton2 = (target) => {
464765
- return !!target?.closest(".toolbar-button") || target?.classList?.contains("toolbar-button");
464769
+ return !!target?.closest(".sd-toolbar-button") || !!target?.closest(".toolbar-button") || target?.classList?.contains("sd-toolbar-button") || target?.classList?.contains("toolbar-button");
464766
464770
  }, CustomSelection2;
464767
464771
  var init_custom_selection = __esm(() => {
464768
464772
  init_Extension();
@@ -486644,7 +486648,7 @@ import { createRequire as createRequire2 } from "node:module";
486644
486648
  async function main() {
486645
486649
  await server.connect(transport);
486646
486650
  }
486647
- var require2, version4, server, sessions, transport;
486651
+ var require2, version4, PRESETS_SUPPORTED, requestedPreset, server, sessions, transport;
486648
486652
  var init_server3 = __esm(() => {
486649
486653
  init_mcp();
486650
486654
  init_stdio2();
@@ -486652,6 +486656,12 @@ var init_server3 = __esm(() => {
486652
486656
  init_tools();
486653
486657
  require2 = createRequire2(import.meta.url);
486654
486658
  ({ version: version4 } = require2("../package.json"));
486659
+ PRESETS_SUPPORTED = new Set(["legacy"]);
486660
+ requestedPreset = process.env.MCP_PRESET ?? "legacy";
486661
+ if (!PRESETS_SUPPORTED.has(requestedPreset)) {
486662
+ console.error(`SuperDoc MCP: unknown preset "${requestedPreset}". Supported: ${[...PRESETS_SUPPORTED].join(", ")}.`);
486663
+ process.exit(2);
486664
+ }
486655
486665
  server = new McpServer({
486656
486666
  name: "superdoc",
486657
486667
  version: version4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.10.0",
3
+ "version": "0.11.0-next.1",
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/super-editor": "0.0.1",
24
- "superdoc": "1.37.0"
23
+ "superdoc": "1.38.0",
24
+ "@superdoc/super-editor": "0.0.1"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"