diff --git a/.changeset/beige-hornets-think.md b/.changeset/beige-hornets-think.md new file mode 100644 index 00000000..22884014 --- /dev/null +++ b/.changeset/beige-hornets-think.md @@ -0,0 +1,5 @@ +--- +"@svelte-put/clickoutside": major +--- + +`onclickoutside` is now `onclickoutside` (see Svelte 5 docs) diff --git a/packages/clickoutside/README.md b/packages/clickoutside/README.md index d455aa41..fc5cb9b8 100644 --- a/packages/clickoutside/README.md +++ b/packages/clickoutside/README.md @@ -29,7 +29,7 @@ This package is part of the [@svelte-put][github.monorepo] family. For contribut } -
+
``` ## [Changelog][github.changelog] diff --git a/packages/clickoutside/src/clickoutside.js b/packages/clickoutside/src/clickoutside.js index 31e8db91..74a1810a 100644 --- a/packages/clickoutside/src/clickoutside.js +++ b/packages/clickoutside/src/clickoutside.js @@ -28,7 +28,7 @@ * diff --git a/packages/clickoutside/src/public.d.ts b/packages/clickoutside/src/public.d.ts index 93079c04..431a50d2 100644 --- a/packages/clickoutside/src/public.d.ts +++ b/packages/clickoutside/src/public.d.ts @@ -12,15 +12,15 @@ import { ActionReturn, Action } from 'svelte/action'; * import { clickoutside } from '@svelte-put/clickoutside'; * * - * + * *
* ``` */ export interface ClickOutsideAttributes { - 'on:clickoutside'?: (event: CustomEvent) => void; + 'onclickoutside'?: (event: CustomEvent) => void; } /**