@zag-js/core
Advanced tools
Comparing version 0.0.0-dev-20220712223104 to 0.0.0-dev-20220713111527
@@ -462,2 +462,4 @@ "use strict"; | ||
__publicField(this, "setContext", (context) => { | ||
if (!context) | ||
return; | ||
for (const key in context) { | ||
@@ -464,0 +466,0 @@ this.state.context[key] = context[key]; |
@@ -56,3 +56,3 @@ import { Dict, MachineStatus, MachineType, StateMachine as S, Writable } from "./types"; | ||
*/ | ||
setContext: (context: Partial<Writable<TContext>>) => void; | ||
setContext: (context: Partial<Writable<TContext>> | undefined) => void; | ||
withContext: (context: Partial<Writable<TContext>>) => Machine<TContext, TState, TEvent>; | ||
@@ -59,0 +59,0 @@ setActions: (actions: Partial<S.MachineOptions<TContext, TState, TEvent>>["actions"]) => void; |
{ | ||
"name": "@zag-js/core", | ||
"version": "0.0.0-dev-20220712223104", | ||
"version": "0.0.0-dev-20220713111527", | ||
"description": "A minimal implementation of xstate fsm for UI machines", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
91550
2088