@zag-js/toast 1.15.7 → 1.16.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
@@ -87,7 +87,7 @@ interface ToastProps<T = any> extends Omit<CommonProperties, "id">, Options<T> {
87
87
  /**
88
88
  * The gap of the toast
89
89
  */
90
- gap?: number;
90
+ gap?: number | undefined;
91
91
  }
92
92
  type ToastPropsWithDefault = "type" | "parent" | "duration" | "id" | "removeDelay";
93
93
  type ToastSchema<O = any> = {
@@ -275,9 +275,9 @@ interface ToastStore<V = any> {
275
275
  }
276
276
  type MaybeFunction<Value, Args> = Value | ((arg: Args) => Value);
277
277
  interface PromiseOptions<V, O = any> {
278
- loading?: Omit<Options<O>, "type">;
279
- success?: MaybeFunction<Omit<Options<O>, "type">, V>;
280
- error?: MaybeFunction<Omit<Options<O>, "type">, unknown>;
278
+ loading?: Omit<Options<O>, "type"> | undefined;
279
+ success?: MaybeFunction<Omit<Options<O>, "type">, V> | undefined;
280
+ error?: MaybeFunction<Omit<Options<O>, "type">, unknown> | undefined;
281
281
  finally?: (() => void | Promise<void>) | undefined;
282
282
  }
283
283
  interface GroupProps {
package/dist/index.d.ts CHANGED
@@ -87,7 +87,7 @@ interface ToastProps<T = any> extends Omit<CommonProperties, "id">, Options<T> {
87
87
  /**
88
88
  * The gap of the toast
89
89
  */
90
- gap?: number;
90
+ gap?: number | undefined;
91
91
  }
92
92
  type ToastPropsWithDefault = "type" | "parent" | "duration" | "id" | "removeDelay";
93
93
  type ToastSchema<O = any> = {
@@ -275,9 +275,9 @@ interface ToastStore<V = any> {
275
275
  }
276
276
  type MaybeFunction<Value, Args> = Value | ((arg: Args) => Value);
277
277
  interface PromiseOptions<V, O = any> {
278
- loading?: Omit<Options<O>, "type">;
279
- success?: MaybeFunction<Omit<Options<O>, "type">, V>;
280
- error?: MaybeFunction<Omit<Options<O>, "type">, unknown>;
278
+ loading?: Omit<Options<O>, "type"> | undefined;
279
+ success?: MaybeFunction<Omit<Options<O>, "type">, V> | undefined;
280
+ error?: MaybeFunction<Omit<Options<O>, "type">, unknown> | undefined;
281
281
  finally?: (() => void | Promise<void>) | undefined;
282
282
  }
283
283
  interface GroupProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/toast",
3
- "version": "1.15.7",
3
+ "version": "1.16.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.15.7",
30
- "@zag-js/core": "1.15.7",
31
- "@zag-js/dom-query": "1.15.7",
32
- "@zag-js/dismissable": "1.15.7",
33
- "@zag-js/utils": "1.15.7",
34
- "@zag-js/types": "1.15.7"
29
+ "@zag-js/anatomy": "1.16.0",
30
+ "@zag-js/utils": "1.16.0",
31
+ "@zag-js/core": "1.16.0",
32
+ "@zag-js/types": "1.16.0",
33
+ "@zag-js/dom-query": "1.16.0",
34
+ "@zag-js/dismissable": "1.16.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "clean-package": "2.2.0"