code: storybook,src,tsx (2 files)

This commit is contained in:
Richard Ward
2025-12-30 23:31:40 +00:00
parent f03bd92d84
commit 5dc72d5bc3
2 changed files with 5 additions and 1 deletions

View File

@@ -1144,6 +1144,9 @@ export const componentRegistry: Record<string, AnyComponent> = {
AppHeader,
AppFooter,
Sidebar,
// Script viewer
LuaScriptViewer,
}
/**

View File

@@ -102,7 +102,8 @@ function createTemplateVars(ctx: LuaRenderContext): TemplateVariables {
*/
function componentsToRenders(
components: PackageComponent[],
scripts: Array<{ file: string; name: string; description?: string; category?: string }> = []
scripts: Array<{ file: string; name: string; description?: string; category?: string }> = [],
packageId?: string
): Record<string, (ctx: LuaRenderContext) => LuaUIComponent> {
const renders: Record<string, (ctx: LuaRenderContext) => LuaUIComponent> = {}