diff --git a/src/Toolkit/bin/ux-toolkit-kit-debug b/src/Toolkit/bin/ux-toolkit-kit-debug index 70ee0256e8a..ac16f8e2f3e 100755 --- a/src/Toolkit/bin/ux-toolkit-kit-debug +++ b/src/Toolkit/bin/ux-toolkit-kit-debug @@ -47,7 +47,7 @@ if (!class_exists(Application::class)) { } $filesystem = new Filesystem(); -$kitSynchronizer = new KitSynchronizer($filesystem, new RecipeSynchronizer($filesystem)); +$kitSynchronizer = new KitSynchronizer($filesystem, new RecipeSynchronizer()); $kitFactory = new KitFactory($filesystem, $kitSynchronizer); (new Application())->add($command = new DebugKitCommand($kitFactory)) diff --git a/src/Toolkit/kits/shadcn/AlertDialog/manifest.json b/src/Toolkit/kits/shadcn/AlertDialog/manifest.json index f38a2221dd8..cd1536e0eb0 100644 --- a/src/Toolkit/kits/shadcn/AlertDialog/manifest.json +++ b/src/Toolkit/kits/shadcn/AlertDialog/manifest.json @@ -4,6 +4,7 @@ "name": "AlertDialog", "description": "A modal dialog that interrupts the user with important content and expects a response.", "copy-files": { + "assets/": "assets/", "templates/": "templates/" }, "dependencies": { diff --git a/src/Toolkit/src/Kit/KitContextRunner.php b/src/Toolkit/src/Kit/KitContextRunner.php index e052380f221..cb7ac15d00a 100644 --- a/src/Toolkit/src/Kit/KitContextRunner.php +++ b/src/Toolkit/src/Kit/KitContextRunner.php @@ -105,7 +105,7 @@ public function findAnonymousComponentTemplate(string $name): ?string { foreach ($this->kit->getRecipes(type: RecipeType::Component) as $recipe) { foreach ($recipe->getFiles() as $file) { - if (str_ends_with($file->sourceRelativePathName, str_replace(':', '/', $name).'.html.twig')) { + if (str_ends_with($file->sourceRelativePathName, 'templates/components/'.str_replace(':', '/', $name).'.html.twig')) { return $file->sourceRelativePathName; } } diff --git a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Separator, code 1__1.html b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Separator, code 1__1.html index 9c299dbc2b6..06641af0b69 100644 --- a/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Separator, code 1__1.html +++ b/src/Toolkit/tests/Functional/__snapshots__/ComponentsRenderingTest__testComponentRendering with data set Kit shadcn, component Separator, code 1__1.html @@ -28,14 +28,17 @@