Skip to content

Commit

Permalink
feat: hidden until found and beforematch (#13612)
Browse files Browse the repository at this point in the history
* add types

* changeset
  • Loading branch information
fcrozatier authored Oct 15, 2024
1 parent 68a2263 commit 76067a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/bright-seas-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

feat: add hidden until-found and beforematch
5 changes: 4 additions & 1 deletion packages/svelte/elements.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,9 @@ export interface DOMAttributes<T extends EventTarget> {
onvisibilitychangecapture?: EventHandler<Event, T> | undefined | null;

// Global Events
'on:beforematch'?: EventHandler<Event, T> | undefined | null;
onbeforematch?: EventHandler<Event, T> | undefined | null;
onbeforematchcapture?: EventHandler<Event, T> | undefined | null;
'on:cancel'?: EventHandler<Event, T> | undefined | null;
oncancel?: EventHandler<Event, T> | undefined | null;
oncancelcapture?: EventHandler<Event, T> | undefined | null;
Expand Down Expand Up @@ -735,7 +738,7 @@ export interface HTMLAttributes<T extends EventTarget> 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;
Expand Down

0 comments on commit 76067a5

Please sign in to comment.