@zag-js/toast 0.2.1 → 0.2.3

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.ts CHANGED
@@ -198,4 +198,4 @@ declare const group: {
198
198
  };
199
199
  declare function api(): Toaster | undefined;
200
200
 
201
- export { GroupMachineContext, MachineContext, MachineState, Placement, Service, Type, api, connect, createToastMachine as createMachine, group };
201
+ export { GroupMachineContext, MachineContext, MachineState, Placement, Service, ToastOptions, Type, api, connect, createToastMachine as createMachine, group };
package/dist/index.js CHANGED
@@ -347,7 +347,7 @@ var import_core3 = require("@zag-js/core");
347
347
  var import_core2 = require("@zag-js/core");
348
348
  var { not, and, or } = import_core2.guards;
349
349
  function createToastMachine(options = {}) {
350
- const { type = "info", duration, id = "toast", placement = "bottom", removeDelay = 500, ...restProps } = options;
350
+ const { type = "info", duration, id = "toast", placement = "bottom", removeDelay = 0, ...restProps } = options;
351
351
  const ctx = compact(restProps);
352
352
  const computedDuration = getToastDuration(duration, type);
353
353
  return (0, import_core2.createMachine)(
package/dist/index.mjs CHANGED
@@ -318,7 +318,7 @@ import { createMachine as createMachine2 } from "@zag-js/core";
318
318
  import { createMachine, guards } from "@zag-js/core";
319
319
  var { not, and, or } = guards;
320
320
  function createToastMachine(options = {}) {
321
- const { type = "info", duration, id = "toast", placement = "bottom", removeDelay = 500, ...restProps } = options;
321
+ const { type = "info", duration, id = "toast", placement = "bottom", removeDelay = 0, ...restProps } = options;
322
322
  const ctx = compact(restProps);
323
323
  const computedDuration = getToastDuration(duration, type);
324
324
  return createMachine(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/toast",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Core logic for the toast widget implemented as a state machine",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -29,12 +29,12 @@
29
29
  "url": "https://github.com/chakra-ui/zag/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@zag-js/core": "0.2.1",
33
- "@zag-js/types": "0.3.0"
32
+ "@zag-js/core": "0.2.2",
33
+ "@zag-js/types": "0.3.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@zag-js/dom-utils": "0.2.0",
37
- "@zag-js/utils": "0.3.0"
36
+ "@zag-js/dom-utils": "0.2.1",
37
+ "@zag-js/utils": "0.3.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build-fast": "tsup src/index.ts --format=esm,cjs",