@zag-js/toast 1.33.1 → 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 +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -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
|
@@ -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.
|
|
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.
|
|
30
|
-
"@zag-js/
|
|
31
|
-
"@zag-js/
|
|
32
|
-
"@zag-js/
|
|
33
|
-
"@zag-js/utils": "1.
|
|
34
|
-
"@zag-js/types": "1.
|
|
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"
|