@zag-js/core
Advanced tools
Comparing version 0.0.0-dev-20220425073521 to 0.0.0-dev-20220425184023
@@ -750,3 +750,5 @@ var __defProp = Object.defineProperty; | ||
self: this.self, | ||
getState: () => this.stateSnapshot | ||
getState: () => this.stateSnapshot, | ||
getAction: (key) => this.actionMap[key], | ||
getGuard: (key) => this.guardMap[key] | ||
}; | ||
@@ -753,0 +755,0 @@ } |
@@ -32,2 +32,4 @@ export declare type Dict<T = any> = Record<string, T>; | ||
getState: () => State<TContext, TState, TEvent>; | ||
getAction: (key: string) => ExpressionWithMeta<TContext, TState, TEvent, void>; | ||
getGuard: (key: string) => GuardExpression<TContext, TEvent>; | ||
}; | ||
@@ -34,0 +36,0 @@ type ExpressionWithMeta<TContext extends Dict, TState extends StateSchema, TEvent extends EventObject, TReturn> = (context: TContext, event: TEvent, meta: Meta<TContext, TState, TEvent>) => TReturn; |
{ | ||
"name": "@zag-js/core", | ||
"version": "0.0.0-dev-20220425073521", | ||
"version": "0.0.0-dev-20220425184023", | ||
"description": "A minimal implementation of xstate fsm for UI machines", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/utils": "^0.0.0-dev-20220425073521", | ||
"@zag-js/utils": "^0.0.0-dev-20220425184023", | ||
"klona": "^2.0.5", | ||
@@ -43,0 +43,0 @@ "valtio": "^1.5.2" |
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
Sorry, the diff of this file is not supported yet
221939
1978