@zag-js/core
Advanced tools
Comparing version 0.0.0-dev-20220416152643 to 0.0.0-dev-20220417135151
@@ -482,13 +482,5 @@ var __defProp = Object.defineProperty; | ||
}; | ||
this.withOptions = (options) => { | ||
this.detachComputed(); | ||
return new Machine(this.config, __spreadValues(__spreadValues({}, this.options), options)); | ||
}; | ||
this.setActions = (actions) => { | ||
this.actionMap = __spreadValues(__spreadValues({}, this.actionMap), actions); | ||
}; | ||
this.clone = () => { | ||
this.detachComputed(); | ||
return new Machine(this.config, this.options); | ||
}; | ||
this.getStateNode = (state) => { | ||
@@ -784,3 +776,2 @@ var _a; | ||
send: this.send.bind(this), | ||
listen: this.onEvent.bind(this), | ||
self: this.self, | ||
@@ -787,0 +778,0 @@ getState: () => this.stateSnapshot |
@@ -57,5 +57,3 @@ import { Dict, MachineStatus, MachineType, StateMachine as S, Writable } from "./types"; | ||
withContext: (context: Partial<Writable<TContext>>) => Machine<TContext, TState, TEvent>; | ||
withOptions: (options: Partial<S.MachineOptions<TContext, TState, TEvent>>) => Machine<TContext, TState, TEvent>; | ||
setActions: (actions: Partial<S.MachineOptions<TContext, TState, TEvent>>["actions"]) => void; | ||
clone: () => Machine<TContext, TState, TEvent>; | ||
private getStateNode; | ||
@@ -62,0 +60,0 @@ private getNextStateInfo; |
@@ -32,3 +32,2 @@ export declare type Dict<T = any> = Record<string, T>; | ||
getState: () => State<TContext, TState, TEvent>; | ||
listen: (fn: EventListener<TEvent>) => void; | ||
}; | ||
@@ -227,3 +226,2 @@ type ExpressionWithMeta<TContext extends Dict, TState extends StateSchema, TEvent extends EventObject, TReturn> = (context: TContext, event: TEvent, meta: Meta<TContext, TState, TEvent>) => TReturn; | ||
context?: UserContext<TContext>; | ||
preserve?: boolean; | ||
}; | ||
@@ -230,0 +228,0 @@ type Self<TContext, TState extends StateSchema, TEvent extends EventObject> = { |
{ | ||
"name": "@zag-js/core", | ||
"version": "0.0.0-dev-20220416152643", | ||
"version": "0.0.0-dev-20220417135151", | ||
"description": "A minimal implementation of xstate fsm for UI machines", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/utils": "^0.0.0-dev-20220416152643", | ||
"@zag-js/utils": "^0.0.0-dev-20220417135151", | ||
"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
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
224642
2030