@industry-theme/markdown-panels 0.2.10 → 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 +126 -9
- 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 +35 -19
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
|
@@ -47136,13 +47136,24 @@ var SlidePresentationBook = ({
|
|
|
47136
47136
|
}) : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, effectiveTocDisplayMode === "overlay" && /* @__PURE__ */ React2__default.createElement("div", {
|
|
47137
47137
|
style: {
|
|
47138
47138
|
position: "absolute",
|
|
47139
|
-
|
|
47140
|
-
|
|
47141
|
-
|
|
47142
|
-
|
|
47139
|
+
...isMobile ? {
|
|
47140
|
+
bottom: 0,
|
|
47141
|
+
left: 0,
|
|
47142
|
+
right: 0,
|
|
47143
|
+
width: "100%",
|
|
47144
|
+
maxHeight: "70vh",
|
|
47145
|
+
borderTop: `1px solid ${theme2.colors.border}`,
|
|
47146
|
+
borderRadius: `${theme2.radii[2]}px ${theme2.radii[2]}px 0 0`,
|
|
47147
|
+
transform: showTOC ? "translateY(0)" : "translateY(100%)"
|
|
47148
|
+
} : {
|
|
47149
|
+
top: 0,
|
|
47150
|
+
left: 0,
|
|
47151
|
+
bottom: 0,
|
|
47152
|
+
width: "300px",
|
|
47153
|
+
borderRight: `1px solid ${theme2.colors.border}`,
|
|
47154
|
+
transform: showTOC ? "translateX(0)" : "translateX(-100%)"
|
|
47155
|
+
},
|
|
47143
47156
|
backgroundColor: theme2.colors.backgroundSecondary,
|
|
47144
|
-
borderRight: `1px solid ${theme2.colors.border}`,
|
|
47145
|
-
transform: showTOC ? "translateX(0)" : "translateX(-100%)",
|
|
47146
47157
|
transition: "transform 0.3s ease",
|
|
47147
47158
|
zIndex: 10,
|
|
47148
47159
|
overflowY: "auto",
|
|
@@ -47960,7 +47971,7 @@ const MarkdownPanel = ({
|
|
|
47960
47971
|
enableKeyboardScrolling: true,
|
|
47961
47972
|
tocDisplayMode: "sidebar",
|
|
47962
47973
|
tocSidebarPosition: "left",
|
|
47963
|
-
initialTocOpen:
|
|
47974
|
+
initialTocOpen: false
|
|
47964
47975
|
}
|
|
47965
47976
|
)
|
|
47966
47977
|
}
|
|
@@ -47969,6 +47980,105 @@ const MarkdownPanel = ({
|
|
|
47969
47980
|
}
|
|
47970
47981
|
);
|
|
47971
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
|
+
};
|
|
47972
48082
|
const panels = [
|
|
47973
48083
|
{
|
|
47974
48084
|
metadata: {
|
|
@@ -47977,7 +48087,9 @@ const panels = [
|
|
|
47977
48087
|
icon: "📄",
|
|
47978
48088
|
version: "0.2.0",
|
|
47979
48089
|
author: "Principal ADE",
|
|
47980
|
-
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
|
|
47981
48093
|
},
|
|
47982
48094
|
component: MarkdownPanel,
|
|
47983
48095
|
// Optional: Called when this specific panel is mounted
|
|
@@ -47999,8 +48111,13 @@ const onPackageUnload = async () => {
|
|
|
47999
48111
|
console.log("Panel package unloading - Industry-Themed Markdown Panels");
|
|
48000
48112
|
};
|
|
48001
48113
|
export {
|
|
48114
|
+
changeFontSizeTool,
|
|
48115
|
+
markdownPanelTools,
|
|
48116
|
+
markdownPanelToolsMetadata,
|
|
48117
|
+
navigateSlideTool,
|
|
48002
48118
|
onPackageLoad,
|
|
48003
48119
|
onPackageUnload,
|
|
48004
|
-
panels
|
|
48120
|
+
panels,
|
|
48121
|
+
scrollToSectionTool
|
|
48005
48122
|
};
|
|
48006
48123
|
//# sourceMappingURL=panels.bundle.js.map
|