@zag-js/toast 1.12.3 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -216,7 +216,7 @@ interface ToastStore<V = any> {
216
216
  /**
217
217
  * Remove a toast by its ID
218
218
  */
219
- remove: (id: string) => void;
219
+ remove: (id?: string) => void;
220
220
  /**
221
221
  * Dismiss a toast by its ID. If no ID is provided, dismisses all toasts
222
222
  */
package/dist/index.d.ts CHANGED
@@ -216,7 +216,7 @@ interface ToastStore<V = any> {
216
216
  /**
217
217
  * Remove a toast by its ID
218
218
  */
219
- remove: (id: string) => void;
219
+ remove: (id?: string) => void;
220
220
  /**
221
221
  * Dismiss a toast by its ID. If no ID is provided, dismisses all toasts
222
222
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/toast",
3
- "version": "1.12.3",
3
+ "version": "1.13.0",
4
4
  "description": "Core logic for the toast widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,12 +26,12 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "1.12.3",
30
- "@zag-js/core": "1.12.3",
31
- "@zag-js/dom-query": "1.12.3",
32
- "@zag-js/dismissable": "1.12.3",
33
- "@zag-js/utils": "1.12.3",
34
- "@zag-js/types": "1.12.3"
29
+ "@zag-js/core": "1.13.0",
30
+ "@zag-js/dom-query": "1.13.0",
31
+ "@zag-js/dismissable": "1.13.0",
32
+ "@zag-js/utils": "1.13.0",
33
+ "@zag-js/anatomy": "1.13.0",
34
+ "@zag-js/types": "1.13.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "clean-package": "2.2.0"