diff --git a/assets/svelte/components/ComponentsSidebar.svelte b/assets/svelte/components/ComponentsSidebar.svelte index c56211c8..8361cca6 100644 --- a/assets/svelte/components/ComponentsSidebar.svelte +++ b/assets/svelte/components/ComponentsSidebar.svelte @@ -3,9 +3,11 @@ import { translate } from '$lib/utils/animations'; import { currentComponentCategory } from '$lib/stores/currentComponentCategory'; import { draggedObject } from '$lib/stores/dragAndDrop'; - import type { ComponentCategory, ComponentDefinition } from '$lib/types'; - export let components; + import type { ComponentCategory, ComponentDefinition, MenuCategory } from '$lib/types'; + export let components: ComponentDefinition[]; + export let live; + let menuCategories: MenuCategory[] = []; $: menuCategories = [{ name: 'Base', items: Array.from(new Set(componentDefinitions.map(d => d.category))).map(id => ({ id, name: id })) diff --git a/assets/svelte/components/PagePreview.svelte b/assets/svelte/components/PagePreview.svelte index ff99eba6..608756fe 100644 --- a/assets/svelte/components/PagePreview.svelte +++ b/assets/svelte/components/PagePreview.svelte @@ -1,42 +1,46 @@