@zag-js/toast 0.0.0-dev-20220704094439 → 0.0.0-dev-20220704151659

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.mjs CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __defProps = Object.defineProperties;
4
3
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
@@ -1,5 +1,5 @@
1
1
  import type { NormalizeProps, PropTypes } from "@zag-js/types";
2
- import { GroupMachineContext, GroupProps, GroupSend, GroupState, Placement, PromiseOptions, Toaster, Options } from "./toast.types";
2
+ import type { GroupMachineContext, GroupProps, GroupSend, GroupState, Placement, PromiseOptions, Toaster, Options } from "./toast.types";
3
3
  export declare let toaster: Toaster;
4
4
  export declare function groupConnect<T extends PropTypes>(state: GroupState, send: GroupSend, normalize: NormalizeProps<T>): {
5
5
  count: number;
@@ -1,4 +1,4 @@
1
- import { GroupMachineContext as GroupCtx, MachineContext as Ctx, Placement } from "./toast.types";
1
+ import type { GroupMachineContext as GroupCtx, MachineContext as Ctx, Placement } from "./toast.types";
2
2
  export declare const dom: {
3
3
  getDoc: (ctx: Ctx | GroupCtx) => Document;
4
4
  getRootNode: (ctx: Ctx | GroupCtx) => Document | ShadowRoot;
@@ -1,2 +1,2 @@
1
- import { MachineContext, MachineState, Options } from "./toast.types";
1
+ import type { MachineContext, MachineState, Options } from "./toast.types";
2
2
  export declare function createToastMachine(options?: Options): import("@zag-js/core").Machine<MachineContext, MachineState, import("@zag-js/core").StateMachine.AnyEventObject>;
@@ -1,5 +1,5 @@
1
- import { Style } from "@zag-js/types";
2
- import { GroupMachineContext, MachineContext, Placement, Service, Type } from "./toast.types";
1
+ import type { Style } from "@zag-js/types";
2
+ import type { GroupMachineContext, MachineContext, Placement, Service, Type } from "./toast.types";
3
3
  export declare function getToastsByPlacement(toasts: Service[]): Partial<Record<Placement, Service[]>>;
4
4
  export declare const defaultTimeouts: Record<Type, number>;
5
5
  export declare function getToastDuration(duration: number | undefined, type: MachineContext["type"]): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/toast",
3
- "version": "0.0.0-dev-20220704094439",
3
+ "version": "0.0.0-dev-20220704151659",
4
4
  "description": "Core logic for the toast widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -29,9 +29,9 @@
29
29
  "url": "https://github.com/chakra-ui/zag/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@zag-js/core": "0.0.0-dev-20220704094439",
33
- "@zag-js/dom-utils": "0.0.0-dev-20220704094439",
34
- "@zag-js/types": "0.0.0-dev-20220704094439",
32
+ "@zag-js/core": "0.0.0-dev-20220704151659",
33
+ "@zag-js/dom-utils": "0.0.0-dev-20220704151659",
34
+ "@zag-js/types": "0.0.0-dev-20220704151659",
35
35
  "@zag-js/utils": "0.1.2"
36
36
  },
37
37
  "scripts": {