@zag-js/toast 1.33.0 → 1.34.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
@@ -1,6 +1,6 @@
1
1
  import * as _zag_js_core from '@zag-js/core';
2
- import { EventObject, Machine, Service } from '@zag-js/core';
3
- import { DirectionProperty, CommonProperties, Required, Direction, RequiredBy, PropTypes, NormalizeProps } from '@zag-js/types';
2
+ import { Machine, EventObject, Service } from '@zag-js/core';
3
+ import { PropTypes, CommonProperties, Direction, DirectionProperty, Required, RequiredBy, NormalizeProps } from '@zag-js/types';
4
4
  import { AnimationFrame } from '@zag-js/dom-query';
5
5
  import * as _zag_js_anatomy from '@zag-js/anatomy';
6
6
 
@@ -92,7 +92,7 @@ interface ToastProps<T = any> extends Omit<CommonProperties, "id">, Options<T> {
92
92
  }
93
93
  type ToastPropsWithDefault = "type" | "parent" | "duration" | "id" | "removeDelay";
94
94
  type ToastSchema<O = any> = {
95
- props: RequiredBy<ToastProps<O>, ToastPropsWithDefault>;
95
+ props: RequiredBy<ToastProps<O>, Extract<ToastPropsWithDefault, keyof ToastProps<O>>>;
96
96
  context: {
97
97
  mounted: boolean;
98
98
  initialHeight: number;
@@ -177,7 +177,7 @@ type ToastGroupSchema = {
177
177
  state: "stack" | "overlap";
178
178
  props: ToastGroupProps;
179
179
  context: {
180
- toasts: RequiredBy<ToastProps, ToastPropsWithDefault>[];
180
+ toasts: RequiredBy<ToastProps, Extract<ToastPropsWithDefault, keyof ToastProps>>[];
181
181
  heights: ToastHeight[];
182
182
  };
183
183
  computed: {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _zag_js_core from '@zag-js/core';
2
- import { EventObject, Machine, Service } from '@zag-js/core';
3
- import { DirectionProperty, CommonProperties, Required, Direction, RequiredBy, PropTypes, NormalizeProps } from '@zag-js/types';
2
+ import { Machine, EventObject, Service } from '@zag-js/core';
3
+ import { PropTypes, CommonProperties, Direction, DirectionProperty, Required, RequiredBy, NormalizeProps } from '@zag-js/types';
4
4
  import { AnimationFrame } from '@zag-js/dom-query';
5
5
  import * as _zag_js_anatomy from '@zag-js/anatomy';
6
6
 
@@ -92,7 +92,7 @@ interface ToastProps<T = any> extends Omit<CommonProperties, "id">, Options<T> {
92
92
  }
93
93
  type ToastPropsWithDefault = "type" | "parent" | "duration" | "id" | "removeDelay";
94
94
  type ToastSchema<O = any> = {
95
- props: RequiredBy<ToastProps<O>, ToastPropsWithDefault>;
95
+ props: RequiredBy<ToastProps<O>, Extract<ToastPropsWithDefault, keyof ToastProps<O>>>;
96
96
  context: {
97
97
  mounted: boolean;
98
98
  initialHeight: number;
@@ -177,7 +177,7 @@ type ToastGroupSchema = {
177
177
  state: "stack" | "overlap";
178
178
  props: ToastGroupProps;
179
179
  context: {
180
- toasts: RequiredBy<ToastProps, ToastPropsWithDefault>[];
180
+ toasts: RequiredBy<ToastProps, Extract<ToastPropsWithDefault, keyof ToastProps>>[];
181
181
  heights: ToastHeight[];
182
182
  };
183
183
  computed: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/toast",
3
- "version": "1.33.0",
3
+ "version": "1.34.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.33.0",
30
- "@zag-js/core": "1.33.0",
31
- "@zag-js/dom-query": "1.33.0",
32
- "@zag-js/dismissable": "1.33.0",
33
- "@zag-js/utils": "1.33.0",
34
- "@zag-js/types": "1.33.0"
29
+ "@zag-js/anatomy": "1.34.0",
30
+ "@zag-js/dom-query": "1.34.0",
31
+ "@zag-js/dismissable": "1.34.0",
32
+ "@zag-js/core": "1.34.0",
33
+ "@zag-js/utils": "1.34.0",
34
+ "@zag-js/types": "1.34.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "clean-package": "2.2.0"