feat: Anchor integration and Anchor Note widget (#5040)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-04-10 20:43:43 +02:00
1 parent 57ea82f088
commit 7879b31630
20 files changed
+949 -2

No files matched your search

+7
View File
@@ -19,6 +19,8 @@ interface TextInput extends CommonInput<string> {
validate?: z.ZodType<string>;
}
type AnchorNoteInput = CommonInput<string>;
interface MultiSelectInput<TOptions extends SelectOption[]> extends CommonInput<
inferSelectOptionValue<TOptions[number]>[]
> {
@@ -86,6 +88,11 @@ const optionsFactory = {
withDescription: input?.withDescription ?? false,
validate: input?.validate,
}),
anchorNote: (input?: AnchorNoteInput) => ({
type: "anchorNote" as const,
defaultValue: input?.defaultValue ?? "",
withDescription: input?.withDescription ?? false,
}),
multiSelect: <const TOptions extends SelectOption[]>(input: MultiSelectInput<TOptions>) => ({
type: "multiSelect" as const,
defaultValue: input.defaultValue ?? [],