@industry-theme/markdown-panels 0.2.11 → 0.2.13

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.d.ts CHANGED
@@ -14,4 +14,9 @@ export declare const onPackageLoad: () => Promise<void>;
14
14
  * Use this for package-level cleanup.
15
15
  */
16
16
  export declare const onPackageUnload: () => Promise<void>;
17
+ /**
18
+ * Export tools for server-safe imports.
19
+ * Use '@industry-theme/markdown-panels/tools' to import without React dependencies.
20
+ */
21
+ export { markdownPanelTools, markdownPanelToolsMetadata, scrollToSectionTool, navigateSlideTool, changeFontSizeTool, } from './tools';
17
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,SAAS,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EAwBnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,qBAEzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAE3B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,SAAS,CAAC;AAGlE;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EA0BnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,qBAEzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAE3B,CAAC;AAEF;;;GAGG;AACH,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownPanel.d.ts","sourceRoot":"","sources":["../../src/panels/MarkdownPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAQ5D,OAAO,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AAUrE;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+UvD,CAAC"}
1
+ {"version":3,"file":"MarkdownPanel.d.ts","sourceRoot":"","sources":["../../src/panels/MarkdownPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAQ5D,OAAO,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AAUrE;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgVvD,CAAC"}
@@ -47779,8 +47779,8 @@ const MarkdownPanel = ({
47779
47779
  "div",
47780
47780
  {
47781
47781
  style: {
47782
- height: "48px",
47783
- minHeight: "48px",
47782
+ height: "39px",
47783
+ minHeight: "39px",
47784
47784
  borderBottom: `1px solid ${theme2.colors.border}`,
47785
47785
  display: "flex",
47786
47786
  alignItems: "center",
@@ -47950,7 +47950,8 @@ const MarkdownPanel = ({
47950
47950
  },
47951
47951
  slideIdPrefix: "markdown-panel",
47952
47952
  showSectionHeaders: true,
47953
- showSeparators: true
47953
+ showSeparators: true,
47954
+ maxWidth: "100%"
47954
47955
  }
47955
47956
  ) : /* @__PURE__ */ jsx(
47956
47957
  SlidePresentationBook,
@@ -47980,6 +47981,105 @@ const MarkdownPanel = ({
47980
47981
  }
47981
47982
  );
47982
47983
  };
47984
+ const scrollToSectionTool = {
47985
+ name: "scroll_to_section",
47986
+ description: "Scrolls the markdown panel to a specific heading section",
47987
+ inputs: {
47988
+ type: "object",
47989
+ properties: {
47990
+ sectionId: {
47991
+ type: "string",
47992
+ description: "The ID or slug of the section heading to scroll to"
47993
+ },
47994
+ animate: {
47995
+ type: "boolean",
47996
+ description: "Whether to animate the scroll transition"
47997
+ }
47998
+ },
47999
+ required: ["sectionId"]
48000
+ },
48001
+ outputs: {
48002
+ type: "object",
48003
+ properties: {
48004
+ success: { type: "boolean" },
48005
+ message: { type: "string" }
48006
+ }
48007
+ },
48008
+ tags: ["markdown", "navigation", "scroll"],
48009
+ tool_call_template: {
48010
+ call_template_type: "panel_event",
48011
+ event_type: "industry-theme.markdown-panels:scroll-to-section"
48012
+ }
48013
+ };
48014
+ const navigateSlideTool = {
48015
+ name: "navigate_slide",
48016
+ description: "Navigates to a specific slide in presentation mode",
48017
+ inputs: {
48018
+ type: "object",
48019
+ properties: {
48020
+ slideIndex: {
48021
+ type: "number",
48022
+ description: "The index of the slide to navigate to (0-based)"
48023
+ },
48024
+ direction: {
48025
+ type: "string",
48026
+ enum: ["next", "previous", "first", "last"],
48027
+ description: "Navigate relative to current slide"
48028
+ }
48029
+ }
48030
+ },
48031
+ outputs: {
48032
+ type: "object",
48033
+ properties: {
48034
+ success: { type: "boolean" },
48035
+ currentSlide: { type: "number" },
48036
+ totalSlides: { type: "number" }
48037
+ }
48038
+ },
48039
+ tags: ["markdown", "presentation", "slide"],
48040
+ tool_call_template: {
48041
+ call_template_type: "panel_event",
48042
+ event_type: "industry-theme.markdown-panels:navigate-slide"
48043
+ }
48044
+ };
48045
+ const changeFontSizeTool = {
48046
+ name: "change_font_size",
48047
+ description: "Changes the font size of the markdown content",
48048
+ inputs: {
48049
+ type: "object",
48050
+ properties: {
48051
+ size: {
48052
+ type: "string",
48053
+ enum: ["small", "medium", "large"],
48054
+ description: "The font size to apply"
48055
+ }
48056
+ },
48057
+ required: ["size"]
48058
+ },
48059
+ outputs: {
48060
+ type: "object",
48061
+ properties: {
48062
+ success: { type: "boolean" },
48063
+ currentSize: { type: "string" }
48064
+ }
48065
+ },
48066
+ tags: ["markdown", "display", "font"],
48067
+ tool_call_template: {
48068
+ call_template_type: "panel_event",
48069
+ event_type: "industry-theme.markdown-panels:change-font-size"
48070
+ }
48071
+ };
48072
+ const markdownPanelTools = [
48073
+ scrollToSectionTool,
48074
+ navigateSlideTool,
48075
+ changeFontSizeTool
48076
+ ];
48077
+ const markdownPanelToolsMetadata = {
48078
+ id: "industry-theme.markdown-panels",
48079
+ name: "Markdown Panel",
48080
+ description: "Tools provided by the markdown rendering panel extension",
48081
+ tools: markdownPanelTools
48082
+ };
47983
48083
  const panels = [
47984
48084
  {
47985
48085
  metadata: {
@@ -47988,7 +48088,9 @@ const panels = [
47988
48088
  icon: "📄",
47989
48089
  version: "0.2.0",
47990
48090
  author: "Principal ADE",
47991
- description: "Themed markdown rendering panel with document and slide views"
48091
+ description: "Themed markdown rendering panel with document and slide views",
48092
+ // UTCP-compatible tools this panel exposes
48093
+ tools: markdownPanelTools
47992
48094
  },
47993
48095
  component: MarkdownPanel,
47994
48096
  // Optional: Called when this specific panel is mounted
@@ -48010,8 +48112,13 @@ const onPackageUnload = async () => {
48010
48112
  console.log("Panel package unloading - Industry-Themed Markdown Panels");
48011
48113
  };
48012
48114
  export {
48115
+ changeFontSizeTool,
48116
+ markdownPanelTools,
48117
+ markdownPanelToolsMetadata,
48118
+ navigateSlideTool,
48013
48119
  onPackageLoad,
48014
48120
  onPackageUnload,
48015
- panels
48121
+ panels,
48122
+ scrollToSectionTool
48016
48123
  };
48017
48124
  //# sourceMappingURL=panels.bundle.js.map