xstate 5.20.0 → 5.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/declarations/src/createMachine.d.ts +1 -2
- package/dist/declarations/src/graph/TestModel.d.ts +1 -2
- package/dist/declarations/src/index.d.ts +1 -1
- package/dist/declarations/src/inspection.d.ts +1 -1
- package/dist/xstate.umd.min.js.map +1 -1
- package/graph/dist/xstate-graph.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StateMachine } from "./StateMachine.js";
|
|
2
|
-
import { ResolvedStateMachineTypes, TODO } from "./types.js";
|
|
3
|
-
import { AnyActorRef, EventObject, AnyEventObject, Cast, InternalMachineImplementations, MachineConfig, MachineContext, MachineTypes, NonReducibleUnknown, ParameterizedObject, ProvidedActor, StateValue, ToChildren, MetaObject } from "./types.js";
|
|
2
|
+
import { ResolvedStateMachineTypes, TODO, AnyActorRef, EventObject, AnyEventObject, Cast, InternalMachineImplementations, MachineConfig, MachineContext, MachineTypes, NonReducibleUnknown, ParameterizedObject, ProvidedActor, StateValue, ToChildren, MetaObject } from "./types.js";
|
|
4
3
|
/**
|
|
5
4
|
* Creates a state machine (statechart) with the given configuration.
|
|
6
5
|
*
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { AdjacencyMap, StatePath, Step, TraversalOptions } from "./types.js";
|
|
1
|
+
import type { AdjacencyMap, StatePath, Step, TraversalOptions, PathGenerator, TestModelOptions, TestParam, TestPath, TestPathResult } from "./types.js";
|
|
2
2
|
import { EventObject, ActorLogic, Snapshot, AnyStateMachine, EventFromLogic, SnapshotFrom, InputFrom } from "../index.js";
|
|
3
|
-
import type { PathGenerator, TestModelOptions, TestParam, TestPath, TestPathResult } from "./types.js";
|
|
4
3
|
type GetPathOptions<TSnapshot extends Snapshot<unknown>, TEvent extends EventObject, TInput> = Partial<TraversalOptions<TSnapshot, TEvent, TInput>> & {
|
|
5
4
|
/**
|
|
6
5
|
* Whether to allow deduplicate paths so that paths that are contained by
|
|
@@ -5,7 +5,7 @@ export { Actor, createActor, interpret, type Interpreter, type RequiredActorOpti
|
|
|
5
5
|
export { createMachine } from "./createMachine.js";
|
|
6
6
|
export { getInitialSnapshot, getNextSnapshot } from "./getNextSnapshot.js";
|
|
7
7
|
export { and, not, or, stateIn } from "./guards.js";
|
|
8
|
-
export type { InspectedActorEvent, InspectedEventEvent, InspectedSnapshotEvent, InspectionEvent } from "./inspection.js";
|
|
8
|
+
export type { InspectedActionEvent, InspectedActorEvent, InspectedEventEvent, InspectedMicrostepEvent, InspectedSnapshotEvent, InspectionEvent } from "./inspection.js";
|
|
9
9
|
export { setup } from "./setup.js";
|
|
10
10
|
export { SimulatedClock } from "./SimulatedClock.js";
|
|
11
11
|
export { type Spawner } from "./spawn.js";
|
|
@@ -16,7 +16,7 @@ export interface InspectedSnapshotEvent extends BaseInspectionEventProperties {
|
|
|
16
16
|
event: AnyEventObject;
|
|
17
17
|
snapshot: Snapshot<unknown>;
|
|
18
18
|
}
|
|
19
|
-
interface InspectedMicrostepEvent extends BaseInspectionEventProperties {
|
|
19
|
+
export interface InspectedMicrostepEvent extends BaseInspectionEventProperties {
|
|
20
20
|
type: '@xstate.microstep';
|
|
21
21
|
event: AnyEventObject;
|
|
22
22
|
snapshot: Snapshot<unknown>;
|