From 76067a5fbcf15143b0c0f9d60234f4560d0966c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Crozatier?= <48696601+fcrozatier@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:48:10 +0200 Subject: [PATCH] feat: hidden until found and beforematch (#13612) * add types * changeset --- .changeset/bright-seas-brake.md | 5 +++++ packages/svelte/elements.d.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/bright-seas-brake.md diff --git a/.changeset/bright-seas-brake.md b/.changeset/bright-seas-brake.md new file mode 100644 index 0000000000..a63350cba6 --- /dev/null +++ b/.changeset/bright-seas-brake.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +feat: add hidden until-found and beforematch diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index 7b3bc061ac..05954efdad 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -428,6 +428,9 @@ export interface DOMAttributes { onvisibilitychangecapture?: EventHandler | undefined | null; // Global Events + 'on:beforematch'?: EventHandler | undefined | null; + onbeforematch?: EventHandler | undefined | null; + onbeforematchcapture?: EventHandler | undefined | null; 'on:cancel'?: EventHandler | undefined | null; oncancel?: EventHandler | undefined | null; oncancelcapture?: EventHandler | undefined | null; @@ -735,7 +738,7 @@ export interface HTMLAttributes extends AriaAttributes, D | 'send' | undefined | null; - hidden?: boolean | undefined | null; + hidden?: boolean | 'until-found' | '' | undefined | null; id?: string | undefined | null; lang?: string | undefined | null; part?: string | undefined | null;