@zag-js/collapsible
Advanced tools
Comparing version 0.0.0-dev-20240619115122 to 0.0.0-dev-20240619194623
import * as _zag_js_anatomy from '@zag-js/anatomy'; | ||
import { RequiredBy, PropTypes, DirectionProperty, CommonProperties, NormalizeProps } from '@zag-js/types'; | ||
import * as _zag_js_core from '@zag-js/core'; | ||
import { StateMachine } from '@zag-js/core'; | ||
import { Machine, StateMachine } from '@zag-js/core'; | ||
@@ -53,2 +53,3 @@ declare const anatomy: _zag_js_anatomy.AnatomyInstance<"root" | "trigger" | "content">; | ||
type Send = StateMachine.Send<StateMachine.AnyEventObject>; | ||
type Service = Machine<MachineContext, MachineState, StateMachine.AnyEventObject>; | ||
interface MachineApi<T extends PropTypes = PropTypes> { | ||
@@ -83,2 +84,2 @@ /** | ||
export { type MachineApi as Api, type UserDefinedContext as Context, type ElementIds, type OpenChangeDetails, anatomy, connect, machine, props, splitProps }; | ||
export { type MachineApi as Api, type UserDefinedContext as Context, type ElementIds, type OpenChangeDetails, type Service, anatomy, connect, machine, props, splitProps }; |
{ | ||
"name": "@zag-js/collapsible", | ||
"version": "0.0.0-dev-20240619115122", | ||
"version": "0.0.0-dev-20240619194623", | ||
"description": "Core logic for the collapsible widget implemented as a state machine", | ||
@@ -31,7 +31,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/anatomy": "0.0.0-dev-20240619115122", | ||
"@zag-js/core": "0.0.0-dev-20240619115122", | ||
"@zag-js/dom-query": "0.0.0-dev-20240619115122", | ||
"@zag-js/utils": "0.0.0-dev-20240619115122", | ||
"@zag-js/types": "0.0.0-dev-20240619115122" | ||
"@zag-js/anatomy": "0.0.0-dev-20240619194623", | ||
"@zag-js/core": "0.0.0-dev-20240619194623", | ||
"@zag-js/dom-query": "0.0.0-dev-20240619194623", | ||
"@zag-js/utils": "0.0.0-dev-20240619194623", | ||
"@zag-js/types": "0.0.0-dev-20240619194623" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
import type { StateMachine as S } from "@zag-js/core" | ||
import type { Machine, StateMachine as S } from "@zag-js/core" | ||
import type { CommonProperties, DirectionProperty, PropTypes, RequiredBy } from "@zag-js/types" | ||
@@ -96,2 +96,4 @@ | ||
export type Service = Machine<MachineContext, MachineState, S.AnyEventObject> | ||
/* ----------------------------------------------------------------------------- | ||
@@ -98,0 +100,0 @@ * Component API |
@@ -10,2 +10,3 @@ export { anatomy } from "./collapsible.anatomy" | ||
OpenChangeDetails, | ||
Service, | ||
} from "./collapsible.types" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
70703
1023
+ Added@zag-js/anatomy@0.0.0-dev-20240619194623(transitive)
+ Added@zag-js/core@0.0.0-dev-20240619194623(transitive)
+ Added@zag-js/dom-query@0.0.0-dev-20240619194623(transitive)
+ Added@zag-js/store@0.0.0-dev-20240619194623(transitive)
+ Added@zag-js/types@0.0.0-dev-20240619194623(transitive)
+ Added@zag-js/utils@0.0.0-dev-20240619194623(transitive)
- Removed@zag-js/anatomy@0.0.0-dev-20240619115122(transitive)
- Removed@zag-js/core@0.0.0-dev-20240619115122(transitive)
- Removed@zag-js/dom-query@0.0.0-dev-20240619115122(transitive)
- Removed@zag-js/store@0.0.0-dev-20240619115122(transitive)
- Removed@zag-js/types@0.0.0-dev-20240619115122(transitive)
- Removed@zag-js/utils@0.0.0-dev-20240619115122(transitive)