@zag-js/toast 1.18.4 → 1.18.5
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 +15 -15
- package/dist/index.d.ts +15 -15
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -34,7 +34,7 @@ interface ActionOptions {
|
|
|
34
34
|
/**
|
|
35
35
|
* The function to call when the action is clicked
|
|
36
36
|
*/
|
|
37
|
-
onClick:
|
|
37
|
+
onClick: VoidFunction;
|
|
38
38
|
}
|
|
39
39
|
interface Options<T = any> {
|
|
40
40
|
/**
|
|
@@ -290,16 +290,16 @@ interface ToastGroupApi<T extends PropTypes = PropTypes, O = any> {
|
|
|
290
290
|
/**
|
|
291
291
|
* The total number of toasts
|
|
292
292
|
*/
|
|
293
|
-
getCount()
|
|
293
|
+
getCount: () => number;
|
|
294
294
|
/**
|
|
295
295
|
* The toasts
|
|
296
296
|
*/
|
|
297
|
-
getToasts()
|
|
297
|
+
getToasts: () => ToastProps[];
|
|
298
298
|
/**
|
|
299
299
|
* Subscribe to the toast group
|
|
300
300
|
*/
|
|
301
|
-
subscribe(callback: (toasts: Options<O>[]) => void)
|
|
302
|
-
getGroupProps(options?: GroupProps)
|
|
301
|
+
subscribe: (callback: (toasts: Options<O>[]) => void) => VoidFunction;
|
|
302
|
+
getGroupProps: (options?: GroupProps) => T["element"];
|
|
303
303
|
}
|
|
304
304
|
interface ToastApi<T extends PropTypes = PropTypes, O = any> {
|
|
305
305
|
/**
|
|
@@ -333,22 +333,22 @@ interface ToastApi<T extends PropTypes = PropTypes, O = any> {
|
|
|
333
333
|
/**
|
|
334
334
|
* Function to pause the toast (keeping it visible).
|
|
335
335
|
*/
|
|
336
|
-
pause
|
|
336
|
+
pause: VoidFunction;
|
|
337
337
|
/**
|
|
338
338
|
* Function to resume the toast dismissing.
|
|
339
339
|
*/
|
|
340
|
-
resume
|
|
340
|
+
resume: VoidFunction;
|
|
341
341
|
/**
|
|
342
342
|
* Function to instantly dismiss the toast.
|
|
343
343
|
*/
|
|
344
|
-
dismiss
|
|
345
|
-
getRootProps()
|
|
346
|
-
getTitleProps()
|
|
347
|
-
getGhostBeforeProps()
|
|
348
|
-
getGhostAfterProps()
|
|
349
|
-
getDescriptionProps()
|
|
350
|
-
getCloseTriggerProps()
|
|
351
|
-
getActionTriggerProps()
|
|
344
|
+
dismiss: VoidFunction;
|
|
345
|
+
getRootProps: () => T["element"];
|
|
346
|
+
getTitleProps: () => T["element"];
|
|
347
|
+
getGhostBeforeProps: () => T["element"];
|
|
348
|
+
getGhostAfterProps: () => T["element"];
|
|
349
|
+
getDescriptionProps: () => T["element"];
|
|
350
|
+
getCloseTriggerProps: () => T["button"];
|
|
351
|
+
getActionTriggerProps: () => T["button"];
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
declare function groupConnect<T extends PropTypes, O = any>(service: Service<ToastGroupSchema>, normalize: NormalizeProps<T>): ToastGroupApi<T, O>;
|
package/dist/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ interface ActionOptions {
|
|
|
34
34
|
/**
|
|
35
35
|
* The function to call when the action is clicked
|
|
36
36
|
*/
|
|
37
|
-
onClick:
|
|
37
|
+
onClick: VoidFunction;
|
|
38
38
|
}
|
|
39
39
|
interface Options<T = any> {
|
|
40
40
|
/**
|
|
@@ -290,16 +290,16 @@ interface ToastGroupApi<T extends PropTypes = PropTypes, O = any> {
|
|
|
290
290
|
/**
|
|
291
291
|
* The total number of toasts
|
|
292
292
|
*/
|
|
293
|
-
getCount()
|
|
293
|
+
getCount: () => number;
|
|
294
294
|
/**
|
|
295
295
|
* The toasts
|
|
296
296
|
*/
|
|
297
|
-
getToasts()
|
|
297
|
+
getToasts: () => ToastProps[];
|
|
298
298
|
/**
|
|
299
299
|
* Subscribe to the toast group
|
|
300
300
|
*/
|
|
301
|
-
subscribe(callback: (toasts: Options<O>[]) => void)
|
|
302
|
-
getGroupProps(options?: GroupProps)
|
|
301
|
+
subscribe: (callback: (toasts: Options<O>[]) => void) => VoidFunction;
|
|
302
|
+
getGroupProps: (options?: GroupProps) => T["element"];
|
|
303
303
|
}
|
|
304
304
|
interface ToastApi<T extends PropTypes = PropTypes, O = any> {
|
|
305
305
|
/**
|
|
@@ -333,22 +333,22 @@ interface ToastApi<T extends PropTypes = PropTypes, O = any> {
|
|
|
333
333
|
/**
|
|
334
334
|
* Function to pause the toast (keeping it visible).
|
|
335
335
|
*/
|
|
336
|
-
pause
|
|
336
|
+
pause: VoidFunction;
|
|
337
337
|
/**
|
|
338
338
|
* Function to resume the toast dismissing.
|
|
339
339
|
*/
|
|
340
|
-
resume
|
|
340
|
+
resume: VoidFunction;
|
|
341
341
|
/**
|
|
342
342
|
* Function to instantly dismiss the toast.
|
|
343
343
|
*/
|
|
344
|
-
dismiss
|
|
345
|
-
getRootProps()
|
|
346
|
-
getTitleProps()
|
|
347
|
-
getGhostBeforeProps()
|
|
348
|
-
getGhostAfterProps()
|
|
349
|
-
getDescriptionProps()
|
|
350
|
-
getCloseTriggerProps()
|
|
351
|
-
getActionTriggerProps()
|
|
344
|
+
dismiss: VoidFunction;
|
|
345
|
+
getRootProps: () => T["element"];
|
|
346
|
+
getTitleProps: () => T["element"];
|
|
347
|
+
getGhostBeforeProps: () => T["element"];
|
|
348
|
+
getGhostAfterProps: () => T["element"];
|
|
349
|
+
getDescriptionProps: () => T["element"];
|
|
350
|
+
getCloseTriggerProps: () => T["button"];
|
|
351
|
+
getActionTriggerProps: () => T["button"];
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
declare function groupConnect<T extends PropTypes, O = any>(service: Service<ToastGroupSchema>, normalize: NormalizeProps<T>): ToastGroupApi<T, O>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/toast",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.5",
|
|
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.18.
|
|
30
|
-
"@zag-js/core": "1.18.
|
|
31
|
-
"@zag-js/dom-query": "1.18.
|
|
32
|
-
"@zag-js/dismissable": "1.18.
|
|
33
|
-
"@zag-js/utils": "1.18.
|
|
34
|
-
"@zag-js/types": "1.18.
|
|
29
|
+
"@zag-js/anatomy": "1.18.5",
|
|
30
|
+
"@zag-js/core": "1.18.5",
|
|
31
|
+
"@zag-js/dom-query": "1.18.5",
|
|
32
|
+
"@zag-js/dismissable": "1.18.5",
|
|
33
|
+
"@zag-js/utils": "1.18.5",
|
|
34
|
+
"@zag-js/types": "1.18.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"clean-package": "2.2.0"
|