feat: make more node group features work
This commit is contained in:
@@ -81,7 +81,10 @@ export const GroupSchema = z.object({
|
||||
nodes: z.array(NodeSchema),
|
||||
edges: z.array(z.tuple([z.number(), z.number(), z.number(), z.string()])),
|
||||
inputs: z.record(z.string(), NodeInputSchema).optional(),
|
||||
outputs: z.array(z.string()).optional()
|
||||
outputs: z.array(z.object({
|
||||
type: z.string(),
|
||||
label: z.string().optional()
|
||||
})).optional()
|
||||
});
|
||||
|
||||
export type GroupDefinition = z.infer<typeof GroupSchema>;
|
||||
|
||||
@@ -6,6 +6,13 @@
|
||||
}
|
||||
|
||||
let { options = [], value = $bindable(0), id = '' }: Props = $props();
|
||||
|
||||
$effect(() => {
|
||||
console.log({ options, value });
|
||||
if (typeof value !== typeof options[0]) {
|
||||
console.trace('WARNING: value type does not match options type');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<select {id} bind:value class="bg-layer-2 text-text">
|
||||
|
||||
Reference in New Issue
Block a user