@industry-theme/markdown-panels 0.2.11 → 0.2.12
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 +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/panels.bundle.js +108 -2
- package/dist/panels.bundle.js.map +1 -1
- package/dist/tools/index.d.ts +32 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools.bundle.js +107 -0
- package/package.json +34 -18
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -47980,6 +47980,105 @@ const MarkdownPanel = ({
|
|
|
47980
47980
|
}
|
|
47981
47981
|
);
|
|
47982
47982
|
};
|
|
47983
|
+
const scrollToSectionTool = {
|
|
47984
|
+
name: "scroll_to_section",
|
|
47985
|
+
description: "Scrolls the markdown panel to a specific heading section",
|
|
47986
|
+
inputs: {
|
|
47987
|
+
type: "object",
|
|
47988
|
+
properties: {
|
|
47989
|
+
sectionId: {
|
|
47990
|
+
type: "string",
|
|
47991
|
+
description: "The ID or slug of the section heading to scroll to"
|
|
47992
|
+
},
|
|
47993
|
+
animate: {
|
|
47994
|
+
type: "boolean",
|
|
47995
|
+
description: "Whether to animate the scroll transition"
|
|
47996
|
+
}
|
|
47997
|
+
},
|
|
47998
|
+
required: ["sectionId"]
|
|
47999
|
+
},
|
|
48000
|
+
outputs: {
|
|
48001
|
+
type: "object",
|
|
48002
|
+
properties: {
|
|
48003
|
+
success: { type: "boolean" },
|
|
48004
|
+
message: { type: "string" }
|
|
48005
|
+
}
|
|
48006
|
+
},
|
|
48007
|
+
tags: ["markdown", "navigation", "scroll"],
|
|
48008
|
+
tool_call_template: {
|
|
48009
|
+
call_template_type: "panel_event",
|
|
48010
|
+
event_type: "industry-theme.markdown-panels:scroll-to-section"
|
|
48011
|
+
}
|
|
48012
|
+
};
|
|
48013
|
+
const navigateSlideTool = {
|
|
48014
|
+
name: "navigate_slide",
|
|
48015
|
+
description: "Navigates to a specific slide in presentation mode",
|
|
48016
|
+
inputs: {
|
|
48017
|
+
type: "object",
|
|
48018
|
+
properties: {
|
|
48019
|
+
slideIndex: {
|
|
48020
|
+
type: "number",
|
|
48021
|
+
description: "The index of the slide to navigate to (0-based)"
|
|
48022
|
+
},
|
|
48023
|
+
direction: {
|
|
48024
|
+
type: "string",
|
|
48025
|
+
enum: ["next", "previous", "first", "last"],
|
|
48026
|
+
description: "Navigate relative to current slide"
|
|
48027
|
+
}
|
|
48028
|
+
}
|
|
48029
|
+
},
|
|
48030
|
+
outputs: {
|
|
48031
|
+
type: "object",
|
|
48032
|
+
properties: {
|
|
48033
|
+
success: { type: "boolean" },
|
|
48034
|
+
currentSlide: { type: "number" },
|
|
48035
|
+
totalSlides: { type: "number" }
|
|
48036
|
+
}
|
|
48037
|
+
},
|
|
48038
|
+
tags: ["markdown", "presentation", "slide"],
|
|
48039
|
+
tool_call_template: {
|
|
48040
|
+
call_template_type: "panel_event",
|
|
48041
|
+
event_type: "industry-theme.markdown-panels:navigate-slide"
|
|
48042
|
+
}
|
|
48043
|
+
};
|
|
48044
|
+
const changeFontSizeTool = {
|
|
48045
|
+
name: "change_font_size",
|
|
48046
|
+
description: "Changes the font size of the markdown content",
|
|
48047
|
+
inputs: {
|
|
48048
|
+
type: "object",
|
|
48049
|
+
properties: {
|
|
48050
|
+
size: {
|
|
48051
|
+
type: "string",
|
|
48052
|
+
enum: ["small", "medium", "large"],
|
|
48053
|
+
description: "The font size to apply"
|
|
48054
|
+
}
|
|
48055
|
+
},
|
|
48056
|
+
required: ["size"]
|
|
48057
|
+
},
|
|
48058
|
+
outputs: {
|
|
48059
|
+
type: "object",
|
|
48060
|
+
properties: {
|
|
48061
|
+
success: { type: "boolean" },
|
|
48062
|
+
currentSize: { type: "string" }
|
|
48063
|
+
}
|
|
48064
|
+
},
|
|
48065
|
+
tags: ["markdown", "display", "font"],
|
|
48066
|
+
tool_call_template: {
|
|
48067
|
+
call_template_type: "panel_event",
|
|
48068
|
+
event_type: "industry-theme.markdown-panels:change-font-size"
|
|
48069
|
+
}
|
|
48070
|
+
};
|
|
48071
|
+
const markdownPanelTools = [
|
|
48072
|
+
scrollToSectionTool,
|
|
48073
|
+
navigateSlideTool,
|
|
48074
|
+
changeFontSizeTool
|
|
48075
|
+
];
|
|
48076
|
+
const markdownPanelToolsMetadata = {
|
|
48077
|
+
id: "industry-theme.markdown-panels",
|
|
48078
|
+
name: "Markdown Panel",
|
|
48079
|
+
description: "Tools provided by the markdown rendering panel extension",
|
|
48080
|
+
tools: markdownPanelTools
|
|
48081
|
+
};
|
|
47983
48082
|
const panels = [
|
|
47984
48083
|
{
|
|
47985
48084
|
metadata: {
|
|
@@ -47988,7 +48087,9 @@ const panels = [
|
|
|
47988
48087
|
icon: "📄",
|
|
47989
48088
|
version: "0.2.0",
|
|
47990
48089
|
author: "Principal ADE",
|
|
47991
|
-
description: "Themed markdown rendering panel with document and slide views"
|
|
48090
|
+
description: "Themed markdown rendering panel with document and slide views",
|
|
48091
|
+
// UTCP-compatible tools this panel exposes
|
|
48092
|
+
tools: markdownPanelTools
|
|
47992
48093
|
},
|
|
47993
48094
|
component: MarkdownPanel,
|
|
47994
48095
|
// Optional: Called when this specific panel is mounted
|
|
@@ -48010,8 +48111,13 @@ const onPackageUnload = async () => {
|
|
|
48010
48111
|
console.log("Panel package unloading - Industry-Themed Markdown Panels");
|
|
48011
48112
|
};
|
|
48012
48113
|
export {
|
|
48114
|
+
changeFontSizeTool,
|
|
48115
|
+
markdownPanelTools,
|
|
48116
|
+
markdownPanelToolsMetadata,
|
|
48117
|
+
navigateSlideTool,
|
|
48013
48118
|
onPackageLoad,
|
|
48014
48119
|
onPackageUnload,
|
|
48015
|
-
panels
|
|
48120
|
+
panels,
|
|
48121
|
+
scrollToSectionTool
|
|
48016
48122
|
};
|
|
48017
48123
|
//# sourceMappingURL=panels.bundle.js.map
|