@zag-js/toast 1.22.1 → 1.23.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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -359,7 +359,7 @@ declare function connect<T extends PropTypes, O>(service: Service<ToastSchema<O>
|
|
|
359
359
|
|
|
360
360
|
declare const machine: _zag_js_core.Machine<ToastSchema>;
|
|
361
361
|
|
|
362
|
-
declare function createToastStore<V = any>(props
|
|
362
|
+
declare function createToastStore<V = any>(props?: ToastStoreProps): ToastStore<V>;
|
|
363
363
|
|
|
364
364
|
declare const group: {
|
|
365
365
|
connect: typeof groupConnect;
|
package/dist/index.d.ts
CHANGED
|
@@ -359,7 +359,7 @@ declare function connect<T extends PropTypes, O>(service: Service<ToastSchema<O>
|
|
|
359
359
|
|
|
360
360
|
declare const machine: _zag_js_core.Machine<ToastSchema>;
|
|
361
361
|
|
|
362
|
-
declare function createToastStore<V = any>(props
|
|
362
|
+
declare function createToastStore<V = any>(props?: ToastStoreProps): ToastStore<V>;
|
|
363
363
|
|
|
364
364
|
declare const group: {
|
|
365
365
|
connect: typeof groupConnect;
|
package/dist/index.js
CHANGED
|
@@ -821,7 +821,7 @@ function setHeight(parent, item) {
|
|
|
821
821
|
var withDefaults = (options, defaults) => {
|
|
822
822
|
return { ...defaults, ...utils.compact(options) };
|
|
823
823
|
};
|
|
824
|
-
function createToastStore(props) {
|
|
824
|
+
function createToastStore(props = {}) {
|
|
825
825
|
const attrs = withDefaults(props, {
|
|
826
826
|
placement: "bottom",
|
|
827
827
|
overlap: false,
|
package/dist/index.mjs
CHANGED
|
@@ -819,7 +819,7 @@ function setHeight(parent, item) {
|
|
|
819
819
|
var withDefaults = (options, defaults) => {
|
|
820
820
|
return { ...defaults, ...compact(options) };
|
|
821
821
|
};
|
|
822
|
-
function createToastStore(props) {
|
|
822
|
+
function createToastStore(props = {}) {
|
|
823
823
|
const attrs = withDefaults(props, {
|
|
824
824
|
placement: "bottom",
|
|
825
825
|
overlap: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/toast",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.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/core": "1.
|
|
31
|
-
"@zag-js/dom-query": "1.
|
|
32
|
-
"@zag-js/dismissable": "1.
|
|
33
|
-
"@zag-js/utils": "1.
|
|
34
|
-
"@zag-js/types": "1.
|
|
29
|
+
"@zag-js/anatomy": "1.23.0",
|
|
30
|
+
"@zag-js/core": "1.23.0",
|
|
31
|
+
"@zag-js/dom-query": "1.23.0",
|
|
32
|
+
"@zag-js/dismissable": "1.23.0",
|
|
33
|
+
"@zag-js/utils": "1.23.0",
|
|
34
|
+
"@zag-js/types": "1.23.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"clean-package": "2.2.0"
|