@zag-js/core
Advanced tools
Comparing version 0.0.0-dev-20240411202552 to 0.0.0-dev-20240412181302
@@ -1,2 +0,2 @@ | ||
export { proxy, ref, snapshot, subscribe } from '@zag-js/store'; | ||
export { Ref, proxy, ref, snapshot, subscribe } from '@zag-js/store'; | ||
@@ -408,2 +408,3 @@ declare function deepMerge<T extends Record<string, any>>(source: T, ...objects: T[]): T; | ||
declare const createMachine: <TContext extends Dict, TState extends StateMachine.StateSchema = StateMachine.StateSchema, TEvent extends StateMachine.EventObject = StateMachine.AnyEventObject>(config: StateMachine.MachineConfig<TContext, TState, TEvent>, options?: StateMachine.MachineOptions<TContext, TState, TEvent>) => Machine<TContext, TState, TEvent>; | ||
declare const isMachine: (value: any) => value is AnyMachine; | ||
@@ -423,2 +424,2 @@ interface Props { | ||
export { type AnyMachine, type ContextFrom, type EventFrom, Machine, type MachineSrc, type StateFrom, StateMachine, choose, createMachine, deepMerge, guards, mergeProps }; | ||
export { type AnyMachine, type ContextFrom, type EventFrom, Machine, type MachineSrc, type StateFrom, StateMachine, choose, createMachine, deepMerge, guards, isMachine, mergeProps }; |
@@ -33,2 +33,3 @@ "use strict"; | ||
guards: () => guards, | ||
isMachine: () => isMachine, | ||
mergeProps: () => mergeProps, | ||
@@ -865,2 +866,5 @@ proxy: () => import_store3.proxy, | ||
var createMachine = (config, options) => new Machine(config, options); | ||
var isMachine = (value) => { | ||
return value instanceof Machine || value?.type === "machine" /* Machine */; | ||
}; | ||
@@ -922,2 +926,3 @@ // src/merge-props.ts | ||
guards, | ||
isMachine, | ||
mergeProps, | ||
@@ -924,0 +929,0 @@ proxy, |
{ | ||
"name": "@zag-js/core", | ||
"version": "0.0.0-dev-20240411202552", | ||
"version": "0.0.0-dev-20240412181302", | ||
"description": "A minimal implementation of xstate fsm for UI machines", | ||
@@ -30,7 +30,7 @@ "keywords": [ | ||
"klona": "2.0.6", | ||
"@zag-js/store": "0.0.0-dev-20240411202552" | ||
"@zag-js/store": "0.0.0-dev-20240412181302" | ||
}, | ||
"devDependencies": { | ||
"clean-package": "2.2.0", | ||
"@zag-js/utils": "0.0.0-dev-20240411202552" | ||
"@zag-js/utils": "0.0.0-dev-20240412181302" | ||
}, | ||
@@ -37,0 +37,0 @@ "clean-package": "../../clean-package.config.json", |
@@ -1,2 +0,2 @@ | ||
export { proxy, ref, snapshot, subscribe } from "@zag-js/store" | ||
export { proxy, ref, snapshot, subscribe, type Ref } from "@zag-js/store" | ||
export { deepMerge } from "./deep-merge" | ||
@@ -3,0 +3,0 @@ export { choose, guards } from "./guard-utils" |
@@ -817,1 +817,5 @@ import { ref, snapshot, subscribe } from "@zag-js/store" | ||
) => new Machine(config, options) | ||
export const isMachine = (value: any): value is AnyMachine => { | ||
return value instanceof Machine || value?.type === MachineType.Machine | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
296843
3574
+ Added@zag-js/store@0.0.0-dev-20240412181302(transitive)
- Removed@zag-js/store@0.0.0-dev-20240411202552(transitive)