xstate 5.27.0 → 5.28.0

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.
Files changed (49) hide show
  1. package/actions/dist/xstate-actions.cjs.js +3 -3
  2. package/actions/dist/xstate-actions.development.cjs.js +3 -3
  3. package/actions/dist/xstate-actions.development.esm.js +3 -3
  4. package/actions/dist/xstate-actions.esm.js +3 -3
  5. package/actions/dist/xstate-actions.umd.min.js.map +1 -1
  6. package/actors/dist/xstate-actors.cjs.js +1 -1
  7. package/actors/dist/xstate-actors.development.cjs.js +1 -1
  8. package/actors/dist/xstate-actors.development.esm.js +1 -1
  9. package/actors/dist/xstate-actors.esm.js +1 -1
  10. package/dist/{StateMachine-93271b59.development.esm.js → StateMachine-65637d4d.development.esm.js} +3 -2
  11. package/dist/{StateMachine-a4db5a91.esm.js → StateMachine-9ef88566.esm.js} +3 -2
  12. package/dist/{StateMachine-e93afc18.cjs.js → StateMachine-a2656b8a.cjs.js} +3 -2
  13. package/dist/{StateMachine-c3376229.development.cjs.js → StateMachine-b5c57433.development.cjs.js} +3 -2
  14. package/dist/{assign-d5291869.development.esm.js → assign-2343d091.development.esm.js} +1 -1
  15. package/dist/{assign-227b928a.esm.js → assign-5f7ff891.esm.js} +1 -1
  16. package/dist/{assign-e36553db.cjs.js → assign-6b5249c3.cjs.js} +1 -1
  17. package/dist/{assign-8ef0e332.development.cjs.js → assign-ec9d7c67.development.cjs.js} +1 -1
  18. package/dist/declarations/src/actions/spawnChild.d.ts +1 -1
  19. package/dist/declarations/src/actions.d.ts +1 -1
  20. package/dist/declarations/src/index.d.ts +2 -1
  21. package/dist/declarations/src/setup.d.ts +6 -3
  22. package/dist/declarations/src/stateUtils.d.ts +5 -0
  23. package/dist/declarations/src/types.d.ts +14 -0
  24. package/dist/{log-fa76d888.esm.js → log-1324d455.esm.js} +2 -2
  25. package/dist/{log-7dbbb7c2.development.esm.js → log-39288d72.development.esm.js} +2 -2
  26. package/dist/{log-72d5ee02.development.cjs.js → log-96e4ebaa.development.cjs.js} +2 -2
  27. package/dist/{log-e54c2eff.cjs.js → log-b8ad8428.cjs.js} +2 -2
  28. package/dist/{raise-e5d81555.esm.js → raise-34c45204.esm.js} +42 -1
  29. package/dist/{raise-ecea0c53.development.cjs.js → raise-4c2b495e.development.cjs.js} +42 -0
  30. package/dist/{raise-a7794093.development.esm.js → raise-cb04d847.development.esm.js} +42 -1
  31. package/dist/{raise-3a84be1f.cjs.js → raise-f23ccfcb.cjs.js} +42 -0
  32. package/dist/xstate.cjs.js +4 -4
  33. package/dist/xstate.development.cjs.js +4 -4
  34. package/dist/xstate.development.esm.js +8 -8
  35. package/dist/xstate.esm.js +8 -8
  36. package/dist/xstate.umd.min.js +1 -1
  37. package/dist/xstate.umd.min.js.map +1 -1
  38. package/graph/dist/xstate-graph.cjs.js +3 -3
  39. package/graph/dist/xstate-graph.development.cjs.js +3 -3
  40. package/graph/dist/xstate-graph.development.esm.js +3 -3
  41. package/graph/dist/xstate-graph.esm.js +3 -3
  42. package/graph/dist/xstate-graph.umd.min.js +1 -1
  43. package/graph/dist/xstate-graph.umd.min.js.map +1 -1
  44. package/guards/dist/xstate-guards.cjs.js +1 -1
  45. package/guards/dist/xstate-guards.development.cjs.js +1 -1
  46. package/guards/dist/xstate-guards.development.esm.js +1 -1
  47. package/guards/dist/xstate-guards.esm.js +1 -1
  48. package/guards/dist/xstate-guards.umd.min.js.map +1 -1
  49. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var guards_dist_xstateGuards = require('../../dist/raise-3a84be1f.cjs.js');
5
+ var guards_dist_xstateGuards = require('../../dist/raise-f23ccfcb.cjs.js');
6
6
  require('../../dev/dist/xstate-dev.cjs.js');
7
7
 
8
8
  /**
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var guards_dist_xstateGuards = require('../../dist/raise-ecea0c53.development.cjs.js');
5
+ var guards_dist_xstateGuards = require('../../dist/raise-4c2b495e.development.cjs.js');
6
6
  require('../../dev/dist/xstate-dev.development.cjs.js');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { X as XSTATE_STOP, c as createActor } from '../../dist/raise-a7794093.development.esm.js';
1
+ import { X as XSTATE_STOP, c as createActor } from '../../dist/raise-cb04d847.development.esm.js';
2
2
  import '../../dev/dist/xstate-dev.development.esm.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { X as XSTATE_STOP, c as createActor } from '../../dist/raise-e5d81555.esm.js';
1
+ import { X as XSTATE_STOP, c as createActor } from '../../dist/raise-34c45204.esm.js';
2
2
  import '../../dev/dist/xstate-dev.esm.js';
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { S as STATE_DELIMITER, y as mapValues, t as toArray, z as formatTransitions, B as toTransitionConfigArray, C as formatTransition, N as NULL_EVENT, D as evaluateGuard, E as createInvokeId, F as getDelayedTransitions, G as formatInitialTransition, H as getCandidates, I as resolveStateValue, J as getAllStateNodes, p as getStateNodes, K as createMachineSnapshot, L as isInFinalState, d as macrostep, M as transitionNode, O as resolveActionsAndContext, e as createInitEvent, i as initialMicrostep, P as toStatePath, Q as isStateId, R as getStateNodeByPath, T as getPersistedSnapshot, U as resolveReferencedActor, c as createActor, $ as $$ACTOR_TYPE } from './raise-a7794093.development.esm.js';
2
- import { a as assign } from './assign-d5291869.development.esm.js';
1
+ import { S as STATE_DELIMITER, y as mapValues, t as toArray, z as formatTransitions, B as toTransitionConfigArray, C as formatTransition, N as NULL_EVENT, D as evaluateGuard, E as createInvokeId, F as getDelayedTransitions, G as formatInitialTransition, H as getCandidates, I as formatRouteTransitions, J as resolveStateValue, K as getAllStateNodes, p as getStateNodes, L as createMachineSnapshot, M as isInFinalState, d as macrostep, O as transitionNode, P as resolveActionsAndContext, e as createInitEvent, i as initialMicrostep, Q as toStatePath, R as isStateId, T as getStateNodeByPath, U as getPersistedSnapshot, V as resolveReferencedActor, c as createActor, $ as $$ACTOR_TYPE } from './raise-cb04d847.development.esm.js';
2
+ import { a as assign } from './assign-2343d091.development.esm.js';
3
3
 
4
4
  const cache = new WeakMap();
5
5
  function memo(object, key, fn) {
@@ -326,6 +326,7 @@ class StateMachine {
326
326
  _machine: this
327
327
  });
328
328
  this.root._initialize();
329
+ formatRouteTransitions(this.root);
329
330
  this.states = this.root.states; // TODO: remove!
330
331
  this.events = this.root.events;
331
332
  if (!('output' in this.root) && Object.values(this.states).some(state => state.type === 'final' && 'output' in state)) {
@@ -1,5 +1,5 @@
1
- import { S as STATE_DELIMITER, y as mapValues, t as toArray, z as formatTransitions, B as toTransitionConfigArray, C as formatTransition, N as NULL_EVENT, D as evaluateGuard, E as createInvokeId, F as getDelayedTransitions, G as formatInitialTransition, H as getCandidates, I as resolveStateValue, J as getAllStateNodes, p as getStateNodes, K as createMachineSnapshot, L as isInFinalState, d as macrostep, M as transitionNode, O as resolveActionsAndContext, e as createInitEvent, i as initialMicrostep, P as toStatePath, Q as isStateId, R as getStateNodeByPath, T as getPersistedSnapshot, U as resolveReferencedActor, c as createActor, $ as $$ACTOR_TYPE } from './raise-e5d81555.esm.js';
2
- import { a as assign } from './assign-227b928a.esm.js';
1
+ import { S as STATE_DELIMITER, y as mapValues, t as toArray, z as formatTransitions, B as toTransitionConfigArray, C as formatTransition, N as NULL_EVENT, D as evaluateGuard, E as createInvokeId, F as getDelayedTransitions, G as formatInitialTransition, H as getCandidates, I as formatRouteTransitions, J as resolveStateValue, K as getAllStateNodes, p as getStateNodes, L as createMachineSnapshot, M as isInFinalState, d as macrostep, O as transitionNode, P as resolveActionsAndContext, e as createInitEvent, i as initialMicrostep, Q as toStatePath, R as isStateId, T as getStateNodeByPath, U as getPersistedSnapshot, V as resolveReferencedActor, c as createActor, $ as $$ACTOR_TYPE } from './raise-34c45204.esm.js';
2
+ import { a as assign } from './assign-5f7ff891.esm.js';
3
3
 
4
4
  const cache = new WeakMap();
5
5
  function memo(object, key, fn) {
@@ -326,6 +326,7 @@ class StateMachine {
326
326
  _machine: this
327
327
  });
328
328
  this.root._initialize();
329
+ formatRouteTransitions(this.root);
329
330
  this.states = this.root.states; // TODO: remove!
330
331
  this.events = this.root.events;
331
332
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var guards_dist_xstateGuards = require('./raise-3a84be1f.cjs.js');
4
- var assign = require('./assign-e36553db.cjs.js');
3
+ var guards_dist_xstateGuards = require('./raise-f23ccfcb.cjs.js');
4
+ var assign = require('./assign-6b5249c3.cjs.js');
5
5
 
6
6
  const cache = new WeakMap();
7
7
  function memo(object, key, fn) {
@@ -328,6 +328,7 @@ class StateMachine {
328
328
  _machine: this
329
329
  });
330
330
  this.root._initialize();
331
+ guards_dist_xstateGuards.formatRouteTransitions(this.root);
331
332
  this.states = this.root.states; // TODO: remove!
332
333
  this.events = this.root.events;
333
334
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var guards_dist_xstateGuards = require('./raise-ecea0c53.development.cjs.js');
4
- var assign = require('./assign-8ef0e332.development.cjs.js');
3
+ var guards_dist_xstateGuards = require('./raise-4c2b495e.development.cjs.js');
4
+ var assign = require('./assign-ec9d7c67.development.cjs.js');
5
5
 
6
6
  const cache = new WeakMap();
7
7
  function memo(object, key, fn) {
@@ -328,6 +328,7 @@ class StateMachine {
328
328
  _machine: this
329
329
  });
330
330
  this.root._initialize();
331
+ guards_dist_xstateGuards.formatRouteTransitions(this.root);
331
332
  this.states = this.root.states; // TODO: remove!
332
333
  this.events = this.root.events;
333
334
  if (!('output' in this.root) && Object.values(this.states).some(state => state.type === 'final' && 'output' in state)) {
@@ -1,4 +1,4 @@
1
- import { Z as ProcessingStatus, U as resolveReferencedActor, c as createActor, _ as cloneMachineSnapshot, V as executingCustomAction } from './raise-a7794093.development.esm.js';
1
+ import { _ as ProcessingStatus, V as resolveReferencedActor, c as createActor, a0 as cloneMachineSnapshot, W as executingCustomAction } from './raise-cb04d847.development.esm.js';
2
2
 
3
3
  function createSpawner(actorScope, {
4
4
  machine,
@@ -1,4 +1,4 @@
1
- import { Y as ProcessingStatus, U as resolveReferencedActor, c as createActor, Z as cloneMachineSnapshot } from './raise-e5d81555.esm.js';
1
+ import { Z as ProcessingStatus, V as resolveReferencedActor, c as createActor, _ as cloneMachineSnapshot } from './raise-34c45204.esm.js';
2
2
 
3
3
  function createSpawner(actorScope, {
4
4
  machine,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var guards_dist_xstateGuards = require('./raise-3a84be1f.cjs.js');
3
+ var guards_dist_xstateGuards = require('./raise-f23ccfcb.cjs.js');
4
4
 
5
5
  function createSpawner(actorScope, {
6
6
  machine,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var guards_dist_xstateGuards = require('./raise-ecea0c53.development.cjs.js');
3
+ var guards_dist_xstateGuards = require('./raise-4c2b495e.development.cjs.js');
4
4
 
5
5
  function createSpawner(actorScope, {
6
6
  machine,
@@ -4,7 +4,7 @@ export interface SpawnAction<TContext extends MachineContext, TExpressionEvent e
4
4
  (args: ActionArgs<TContext, TExpressionEvent, TEvent>, params: TParams): void;
5
5
  _out_TActor?: TActor;
6
6
  }
7
- interface SpawnActionOptions<TContext extends MachineContext, TExpressionEvent extends EventObject, TEvent extends EventObject, TActor extends ProvidedActor> {
7
+ export interface SpawnActionOptions<TContext extends MachineContext, TExpressionEvent extends EventObject, TEvent extends EventObject, TActor extends ProvidedActor> {
8
8
  id?: ResolvableActorId<TContext, TExpressionEvent, TEvent, TActor['id']>;
9
9
  systemId?: string;
10
10
  input?: Mapper<TContext, TEvent, InputFrom<TActor['logic']>, TEvent> | InputFrom<TActor['logic']>;
@@ -5,5 +5,5 @@ export { enqueueActions, type EnqueueActionsAction } from "./actions/enqueueActi
5
5
  export { log, type LogAction } from "./actions/log.js";
6
6
  export { raise, type RaiseAction } from "./actions/raise.js";
7
7
  export { forwardTo, sendParent, sendTo, type SendToAction } from "./actions/send.js";
8
- export { spawnChild, type SpawnAction } from "./actions/spawnChild.js";
8
+ export { spawnChild, type SpawnAction, type SpawnActionOptions } from "./actions/spawnChild.js";
9
9
  export { stop, stopChild, type StopAction } from "./actions/stopChild.js";
@@ -5,8 +5,9 @@ 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 { GuardPredicate, GuardArgs } from "./guards.js";
8
9
  export type { InspectedActionEvent, InspectedActorEvent, InspectedEventEvent, InspectedMicrostepEvent, InspectedSnapshotEvent, InspectionEvent } from "./inspection.js";
9
- export { setup } from "./setup.js";
10
+ export { setup, type SetupReturn } from "./setup.js";
10
11
  export { SimulatedClock } from "./SimulatedClock.js";
11
12
  export { type Spawner } from "./spawn.js";
12
13
  export { isMachineSnapshot, type MachineSnapshot } from "./State.js";
@@ -9,7 +9,7 @@ import { sendTo } from "./actions/send.js";
9
9
  import { spawnChild } from "./actions/spawnChild.js";
10
10
  import { stopChild } from "./actions/stopChild.js";
11
11
  import { GuardPredicate } from "./guards.js";
12
- import { ActionFunction, AnyActorRef, AnyEventObject, Cast, DelayConfig, EventObject, Invert, IsNever, MachineConfig, MachineContext, MetaObject, NonReducibleUnknown, ParameterizedObject, SetupTypes, StateNodeConfig, StateSchema, ToChildren, ToStateValue, UnknownActorLogic, Values } from "./types.js";
12
+ import { ActionFunction, AnyActorRef, AnyEventObject, Cast, DelayConfig, EventObject, Invert, IsNever, MachineConfig, MachineContext, MetaObject, NonReducibleUnknown, ParameterizedObject, RoutableStateId, SetupTypes, StateNodeConfig, StateSchema, ToChildren, ToStateValue, UnknownActorLogic, Values } from "./types.js";
13
13
  type ToParameterizedObject<TParameterizedMap extends Record<string, ParameterizedObject['params'] | undefined>> = Values<{
14
14
  [K in keyof TParameterizedMap as K & string]: {
15
15
  type: K & string;
@@ -29,7 +29,7 @@ type ToStateSchema<TSchema extends StateSchema> = {
29
29
  } : TSchema[K];
30
30
  };
31
31
  type RequiredSetupKeys<TChildrenMap> = IsNever<keyof TChildrenMap> extends true ? never : 'actors';
32
- type SetupReturn<TContext extends MachineContext, TEvent extends AnyEventObject, TActors extends Record<string, UnknownActorLogic>, TChildrenMap extends Record<string, string>, TActions extends Record<string, ParameterizedObject['params'] | undefined>, TGuards extends Record<string, ParameterizedObject['params'] | undefined>, TDelay extends string, TTag extends string, TInput, TOutput extends NonReducibleUnknown, TEmitted extends EventObject, TMeta extends MetaObject> = {
32
+ export type SetupReturn<TContext extends MachineContext, TEvent extends AnyEventObject, TActors extends Record<string, UnknownActorLogic>, TChildrenMap extends Record<string, string>, TActions extends Record<string, ParameterizedObject['params'] | undefined>, TGuards extends Record<string, ParameterizedObject['params'] | undefined>, TDelay extends string, TTag extends string, TInput, TOutput extends NonReducibleUnknown, TEmitted extends EventObject, TMeta extends MetaObject> = {
33
33
  extend: <TExtendActions extends Record<string, ParameterizedObject['params'] | undefined> = {}, TExtendGuards extends Record<string, ParameterizedObject['params'] | undefined> = {}, TExtendDelays extends string = never>({ actions, guards, delays }: {
34
34
  actions?: {
35
35
  [K in keyof TExtendActions]: ActionFunction<TContext, TEvent, TEvent, TExtendActions[K], ToProvidedActor<TChildrenMap, TActors>, ToParameterizedObject<TActions & TExtendActions>, ToParameterizedObject<TGuards & TExtendGuards>, TDelay | TExtendDelays, TEmitted>;
@@ -96,7 +96,10 @@ type SetupReturn<TContext extends MachineContext, TEvent extends AnyEventObject,
96
96
  * ```
97
97
  */
98
98
  createAction: (action: ActionFunction<TContext, TEvent, TEvent, unknown, ToProvidedActor<TChildrenMap, TActors>, ToParameterizedObject<TActions>, ToParameterizedObject<TGuards>, TDelay, TEmitted>) => typeof action;
99
- createMachine: <const TConfig extends MachineConfig<TContext, TEvent, ToProvidedActor<TChildrenMap, TActors>, ToParameterizedObject<TActions>, ToParameterizedObject<TGuards>, TDelay, TTag, TInput, TOutput, TEmitted, TMeta>>(config: TConfig) => StateMachine<TContext, TEvent, Cast<ToChildren<ToProvidedActor<TChildrenMap, TActors>>, Record<string, AnyActorRef | undefined>>, ToProvidedActor<TChildrenMap, TActors>, ToParameterizedObject<TActions>, ToParameterizedObject<TGuards>, TDelay, ToStateValue<TConfig>, TTag, TInput, TOutput, TEmitted, TMeta, ToStateSchema<TConfig>>;
99
+ createMachine: <const TConfig extends MachineConfig<TContext, TEvent, ToProvidedActor<TChildrenMap, TActors>, ToParameterizedObject<TActions>, ToParameterizedObject<TGuards>, TDelay, TTag, TInput, TOutput, TEmitted, TMeta>>(config: TConfig) => StateMachine<TContext, TEvent | ([RoutableStateId<TConfig>] extends [never] ? never : {
100
+ type: 'xstate.route';
101
+ to: RoutableStateId<TConfig>;
102
+ }), Cast<ToChildren<ToProvidedActor<TChildrenMap, TActors>>, Record<string, AnyActorRef | undefined>>, ToProvidedActor<TChildrenMap, TActors>, ToParameterizedObject<TActions>, ToParameterizedObject<TGuards>, TDelay, ToStateValue<TConfig>, TTag, TInput, TOutput, TEmitted, TMeta, ToStateSchema<TConfig>>;
100
103
  assign: typeof assign<TContext, TEvent, undefined, TEvent, ToProvidedActor<TChildrenMap, TActors>>;
101
104
  sendTo: <TTargetActor extends AnyActorRef>(...args: Parameters<typeof sendTo<TContext, TEvent, undefined, TTargetActor, TEvent, TDelay, TDelay>>) => ReturnType<typeof sendTo<TContext, TEvent, undefined, TTargetActor, TEvent, TDelay, TDelay>>;
102
105
  raise: typeof raise<TContext, TEvent, TEvent, undefined, TDelay, TDelay>;
@@ -14,6 +14,11 @@ export declare function getCandidates<TEvent extends EventObject>(stateNode: Sta
14
14
  export declare function getDelayedTransitions(stateNode: AnyStateNode): Array<DelayedTransitionDefinition<MachineContext, EventObject>>;
15
15
  export declare function formatTransition(stateNode: AnyStateNode, descriptor: string, transitionConfig: AnyTransitionConfig): AnyTransitionDefinition;
16
16
  export declare function formatTransitions<TContext extends MachineContext, TEvent extends EventObject>(stateNode: AnyStateNode): Map<string, TransitionDefinition<TContext, TEvent>[]>;
17
+ /**
18
+ * Collects route transitions from all descendants with explicit IDs. Called
19
+ * once on the root node to avoid O(N²) repeated traversals.
20
+ */
21
+ export declare function formatRouteTransitions(rootStateNode: AnyStateNode): void;
17
22
  export declare function formatInitialTransition<TContext extends MachineContext, TEvent extends EventObject>(stateNode: AnyStateNode, _target: string | undefined | InitialTransitionConfig<TContext, TEvent, TODO, TODO, TODO, TODO>): InitialTransitionDefinition<TContext, TEvent>;
18
23
  /**
19
24
  * Returns the relative state node from the given `statePath`, or throws.
@@ -341,6 +341,13 @@ export interface StateNodeConfig<TContext extends MachineContext, TEvent extends
341
341
  description?: string;
342
342
  /** A default target for a history state */
343
343
  target?: string | undefined;
344
+ route?: RouteTransitionConfig<TContext, TEvent, TEvent, TActor, TAction, TGuard, TDelay, TEmitted>;
345
+ }
346
+ export interface RouteTransitionConfig<TContext extends MachineContext, TExpressionEvent extends EventObject, TEvent extends EventObject, TActor extends ProvidedActor, TAction extends ParameterizedObject, TGuard extends ParameterizedObject, TDelay extends string, TEmitted extends EventObject> {
347
+ guard?: Guard<TContext, TExpressionEvent, undefined, TGuard>;
348
+ actions?: Actions<TContext, TExpressionEvent, TEvent, undefined, TActor, TAction, TGuard, TDelay, TEmitted>;
349
+ meta?: Record<string, any>;
350
+ description?: string;
344
351
  }
345
352
  export type AnyStateNodeConfig = StateNodeConfig<any, any, any, any, any, any, any, any, any, // emitted
346
353
  any>;
@@ -907,6 +914,7 @@ export type ToChildren<TActor extends ProvidedActor> = string extends TActor['sr
907
914
  }[undefined extends TActor['id'] ? 'include' : string extends TActor['id'] ? 'include' : 'exclude']>;
908
915
  export type StateSchema = {
909
916
  id?: string;
917
+ route?: unknown;
910
918
  states?: Record<string, StateSchema>;
911
919
  type?: unknown;
912
920
  invoke?: unknown;
@@ -926,6 +934,12 @@ export type StateId<TSchema extends StateSchema, TKey extends string = '(machine
926
934
  } ? TSchema['id'] : TParentKey extends null ? TKey : `${TParentKey}.${TKey}`) | (TSchema['states'] extends Record<string, any> ? Values<{
927
935
  [K in keyof TSchema['states'] & string]: StateId<TSchema['states'][K], K, TParentKey extends string ? `${TParentKey}.${TKey}` : TSchema['id'] extends string ? TSchema['id'] : TKey>;
928
936
  }> : never);
937
+ export type RoutableStateId<TSchema extends StateSchema> = (TSchema extends {
938
+ route: any;
939
+ id: string;
940
+ } ? `#${TSchema['id']}` : never) | (TSchema['states'] extends Record<string, any> ? Values<{
941
+ [K in keyof TSchema['states'] & string]: RoutableStateId<TSchema['states'][K]>;
942
+ }> : never);
929
943
  export interface StateMachineTypes {
930
944
  context: MachineContext;
931
945
  events: EventObject;
@@ -1,5 +1,5 @@
1
- import { V as XSTATE_ERROR, W as createErrorActorEvent, D as evaluateGuard, a as cancel, r as raise, b as spawnChild, s as stopChild } from './raise-e5d81555.esm.js';
2
- import { a as assign } from './assign-227b928a.esm.js';
1
+ import { W as XSTATE_ERROR, Y as createErrorActorEvent, D as evaluateGuard, a as cancel, r as raise, b as spawnChild, s as stopChild } from './raise-34c45204.esm.js';
2
+ import { a as assign } from './assign-5f7ff891.esm.js';
3
3
 
4
4
  function resolveEmit(_, snapshot, args, actionParams, {
5
5
  event: eventOrExpr
@@ -1,5 +1,5 @@
1
- import { V as executingCustomAction, W as XSTATE_ERROR, Y as createErrorActorEvent, D as evaluateGuard, a as cancel, r as raise, b as spawnChild, s as stopChild } from './raise-a7794093.development.esm.js';
2
- import { a as assign } from './assign-d5291869.development.esm.js';
1
+ import { W as executingCustomAction, Y as XSTATE_ERROR, Z as createErrorActorEvent, D as evaluateGuard, a as cancel, r as raise, b as spawnChild, s as stopChild } from './raise-cb04d847.development.esm.js';
2
+ import { a as assign } from './assign-2343d091.development.esm.js';
3
3
 
4
4
  function resolveEmit(_, snapshot, args, actionParams, {
5
5
  event: eventOrExpr
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var guards_dist_xstateGuards = require('./raise-ecea0c53.development.cjs.js');
4
- var assign = require('./assign-8ef0e332.development.cjs.js');
3
+ var guards_dist_xstateGuards = require('./raise-4c2b495e.development.cjs.js');
4
+ var assign = require('./assign-ec9d7c67.development.cjs.js');
5
5
 
6
6
  function resolveEmit(_, snapshot, args, actionParams, {
7
7
  event: eventOrExpr
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var guards_dist_xstateGuards = require('./raise-3a84be1f.cjs.js');
4
- var assign = require('./assign-e36553db.cjs.js');
3
+ var guards_dist_xstateGuards = require('./raise-f23ccfcb.cjs.js');
4
+ var assign = require('./assign-6b5249c3.cjs.js');
5
5
 
6
6
  function resolveEmit(_, snapshot, args, actionParams, {
7
7
  event: eventOrExpr
@@ -1742,6 +1742,47 @@ function formatTransitions(stateNode) {
1742
1742
  }
1743
1743
  return transitions;
1744
1744
  }
1745
+
1746
+ /**
1747
+ * Collects route transitions from all descendants with explicit IDs. Called
1748
+ * once on the root node to avoid O(N²) repeated traversals.
1749
+ */
1750
+ function formatRouteTransitions(rootStateNode) {
1751
+ const routeTransitions = [];
1752
+ const collectRoutes = states => {
1753
+ Object.values(states).forEach(sn => {
1754
+ if (sn.config.route && sn.config.id) {
1755
+ const routeId = sn.config.id;
1756
+ const userGuard = sn.config.route.guard;
1757
+ const routeGuard = (args, params) => {
1758
+ if (args.event.to !== `#${routeId}`) {
1759
+ return false;
1760
+ }
1761
+ if (!userGuard) {
1762
+ return true;
1763
+ }
1764
+ if (typeof userGuard === 'function') {
1765
+ return userGuard(args, params);
1766
+ }
1767
+ return true;
1768
+ };
1769
+ const transition = {
1770
+ ...sn.config.route,
1771
+ guard: routeGuard,
1772
+ target: `#${routeId}`
1773
+ };
1774
+ routeTransitions.push(formatTransition(rootStateNode, 'xstate.route', transition));
1775
+ }
1776
+ if (sn.states) {
1777
+ collectRoutes(sn.states);
1778
+ }
1779
+ });
1780
+ };
1781
+ collectRoutes(rootStateNode.states);
1782
+ if (routeTransitions.length > 0) {
1783
+ rootStateNode.transitions.set('xstate.route', routeTransitions);
1784
+ }
1785
+ }
1745
1786
  function formatInitialTransition(stateNode, _target) {
1746
1787
  const resolvedTarget = typeof _target === 'string' ? stateNode.states[_target] : _target ? stateNode.states[_target.target] : undefined;
1747
1788
  if (!resolvedTarget && _target) {
@@ -2703,4 +2744,4 @@ function raise(eventOrExpr, options) {
2703
2744
  return raise;
2704
2745
  }
2705
2746
 
2706
- export { $$ACTOR_TYPE as $, Actor as A, toTransitionConfigArray as B, formatTransition as C, evaluateGuard as D, createInvokeId as E, getDelayedTransitions as F, formatInitialTransition as G, getCandidates as H, resolveStateValue as I, getAllStateNodes as J, createMachineSnapshot as K, isInFinalState as L, transitionNode as M, NULL_EVENT as N, resolveActionsAndContext as O, toStatePath as P, isStateId as Q, getStateNodeByPath as R, STATE_DELIMITER as S, getPersistedSnapshot as T, resolveReferencedActor as U, XSTATE_ERROR as V, createErrorActorEvent as W, XSTATE_STOP as X, ProcessingStatus as Y, cloneMachineSnapshot as Z, cancel as a, spawnChild as b, createActor as c, macrostep as d, createInitEvent as e, isAtomicStateNode as f, getProperAncestors as g, interpret as h, initialMicrostep as i, and as j, stateIn as k, isMachineSnapshot as l, matchesEventDescriptor as m, not as n, or as o, getStateNodes as p, getAllOwnEventDescriptors as q, raise as r, stopChild as s, toArray as t, matchesState as u, pathToStateValue as v, toObserver as w, stop as x, mapValues as y, formatTransitions as z };
2747
+ export { $$ACTOR_TYPE as $, Actor as A, toTransitionConfigArray as B, formatTransition as C, evaluateGuard as D, createInvokeId as E, getDelayedTransitions as F, formatInitialTransition as G, getCandidates as H, formatRouteTransitions as I, resolveStateValue as J, getAllStateNodes as K, createMachineSnapshot as L, isInFinalState as M, NULL_EVENT as N, transitionNode as O, resolveActionsAndContext as P, toStatePath as Q, isStateId as R, STATE_DELIMITER as S, getStateNodeByPath as T, getPersistedSnapshot as U, resolveReferencedActor as V, XSTATE_ERROR as W, XSTATE_STOP as X, createErrorActorEvent as Y, ProcessingStatus as Z, cloneMachineSnapshot as _, cancel as a, spawnChild as b, createActor as c, macrostep as d, createInitEvent as e, isAtomicStateNode as f, getProperAncestors as g, interpret as h, initialMicrostep as i, and as j, stateIn as k, isMachineSnapshot as l, matchesEventDescriptor as m, not as n, or as o, getStateNodes as p, getAllOwnEventDescriptors as q, raise as r, stopChild as s, toArray as t, matchesState as u, pathToStateValue as v, toObserver as w, stop as x, mapValues as y, formatTransitions as z };
@@ -1791,6 +1791,47 @@ function formatTransitions(stateNode) {
1791
1791
  }
1792
1792
  return transitions;
1793
1793
  }
1794
+
1795
+ /**
1796
+ * Collects route transitions from all descendants with explicit IDs. Called
1797
+ * once on the root node to avoid O(N²) repeated traversals.
1798
+ */
1799
+ function formatRouteTransitions(rootStateNode) {
1800
+ const routeTransitions = [];
1801
+ const collectRoutes = states => {
1802
+ Object.values(states).forEach(sn => {
1803
+ if (sn.config.route && sn.config.id) {
1804
+ const routeId = sn.config.id;
1805
+ const userGuard = sn.config.route.guard;
1806
+ const routeGuard = (args, params) => {
1807
+ if (args.event.to !== `#${routeId}`) {
1808
+ return false;
1809
+ }
1810
+ if (!userGuard) {
1811
+ return true;
1812
+ }
1813
+ if (typeof userGuard === 'function') {
1814
+ return userGuard(args, params);
1815
+ }
1816
+ return true;
1817
+ };
1818
+ const transition = {
1819
+ ...sn.config.route,
1820
+ guard: routeGuard,
1821
+ target: `#${routeId}`
1822
+ };
1823
+ routeTransitions.push(formatTransition(rootStateNode, 'xstate.route', transition));
1824
+ }
1825
+ if (sn.states) {
1826
+ collectRoutes(sn.states);
1827
+ }
1828
+ });
1829
+ };
1830
+ collectRoutes(rootStateNode.states);
1831
+ if (routeTransitions.length > 0) {
1832
+ rootStateNode.transitions.set('xstate.route', routeTransitions);
1833
+ }
1834
+ }
1794
1835
  function formatInitialTransition(stateNode, _target) {
1795
1836
  const resolvedTarget = typeof _target === 'string' ? stateNode.states[_target] : _target ? stateNode.states[_target.target] : undefined;
1796
1837
  if (!resolvedTarget && _target) {
@@ -2784,6 +2825,7 @@ exports.createInvokeId = createInvokeId;
2784
2825
  exports.createMachineSnapshot = createMachineSnapshot;
2785
2826
  exports.evaluateGuard = evaluateGuard;
2786
2827
  exports.formatInitialTransition = formatInitialTransition;
2828
+ exports.formatRouteTransitions = formatRouteTransitions;
2787
2829
  exports.formatTransition = formatTransition;
2788
2830
  exports.formatTransitions = formatTransitions;
2789
2831
  exports.getAllOwnEventDescriptors = getAllOwnEventDescriptors;
@@ -1789,6 +1789,47 @@ function formatTransitions(stateNode) {
1789
1789
  }
1790
1790
  return transitions;
1791
1791
  }
1792
+
1793
+ /**
1794
+ * Collects route transitions from all descendants with explicit IDs. Called
1795
+ * once on the root node to avoid O(N²) repeated traversals.
1796
+ */
1797
+ function formatRouteTransitions(rootStateNode) {
1798
+ const routeTransitions = [];
1799
+ const collectRoutes = states => {
1800
+ Object.values(states).forEach(sn => {
1801
+ if (sn.config.route && sn.config.id) {
1802
+ const routeId = sn.config.id;
1803
+ const userGuard = sn.config.route.guard;
1804
+ const routeGuard = (args, params) => {
1805
+ if (args.event.to !== `#${routeId}`) {
1806
+ return false;
1807
+ }
1808
+ if (!userGuard) {
1809
+ return true;
1810
+ }
1811
+ if (typeof userGuard === 'function') {
1812
+ return userGuard(args, params);
1813
+ }
1814
+ return true;
1815
+ };
1816
+ const transition = {
1817
+ ...sn.config.route,
1818
+ guard: routeGuard,
1819
+ target: `#${routeId}`
1820
+ };
1821
+ routeTransitions.push(formatTransition(rootStateNode, 'xstate.route', transition));
1822
+ }
1823
+ if (sn.states) {
1824
+ collectRoutes(sn.states);
1825
+ }
1826
+ });
1827
+ };
1828
+ collectRoutes(rootStateNode.states);
1829
+ if (routeTransitions.length > 0) {
1830
+ rootStateNode.transitions.set('xstate.route', routeTransitions);
1831
+ }
1832
+ }
1792
1833
  function formatInitialTransition(stateNode, _target) {
1793
1834
  const resolvedTarget = typeof _target === 'string' ? stateNode.states[_target] : _target ? stateNode.states[_target.target] : undefined;
1794
1835
  if (!resolvedTarget && _target) {
@@ -2765,4 +2806,4 @@ function raise(eventOrExpr, options) {
2765
2806
  return raise;
2766
2807
  }
2767
2808
 
2768
- export { $$ACTOR_TYPE as $, Actor as A, toTransitionConfigArray as B, formatTransition as C, evaluateGuard as D, createInvokeId as E, getDelayedTransitions as F, formatInitialTransition as G, getCandidates as H, resolveStateValue as I, getAllStateNodes as J, createMachineSnapshot as K, isInFinalState as L, transitionNode as M, NULL_EVENT as N, resolveActionsAndContext as O, toStatePath as P, isStateId as Q, getStateNodeByPath as R, STATE_DELIMITER as S, getPersistedSnapshot as T, resolveReferencedActor as U, executingCustomAction as V, XSTATE_ERROR as W, XSTATE_STOP as X, createErrorActorEvent as Y, ProcessingStatus as Z, cloneMachineSnapshot as _, cancel as a, spawnChild as b, createActor as c, macrostep as d, createInitEvent as e, isAtomicStateNode as f, getProperAncestors as g, interpret as h, initialMicrostep as i, and as j, stateIn as k, isMachineSnapshot as l, matchesEventDescriptor as m, not as n, or as o, getStateNodes as p, getAllOwnEventDescriptors as q, raise as r, stopChild as s, toArray as t, matchesState as u, pathToStateValue as v, toObserver as w, stop as x, mapValues as y, formatTransitions as z };
2809
+ export { $$ACTOR_TYPE as $, Actor as A, toTransitionConfigArray as B, formatTransition as C, evaluateGuard as D, createInvokeId as E, getDelayedTransitions as F, formatInitialTransition as G, getCandidates as H, formatRouteTransitions as I, resolveStateValue as J, getAllStateNodes as K, createMachineSnapshot as L, isInFinalState as M, NULL_EVENT as N, transitionNode as O, resolveActionsAndContext as P, toStatePath as Q, isStateId as R, STATE_DELIMITER as S, getStateNodeByPath as T, getPersistedSnapshot as U, resolveReferencedActor as V, executingCustomAction as W, XSTATE_STOP as X, XSTATE_ERROR as Y, createErrorActorEvent as Z, ProcessingStatus as _, cancel as a, cloneMachineSnapshot as a0, spawnChild as b, createActor as c, macrostep as d, createInitEvent as e, isAtomicStateNode as f, getProperAncestors as g, interpret as h, initialMicrostep as i, and as j, stateIn as k, isMachineSnapshot as l, matchesEventDescriptor as m, not as n, or as o, getStateNodes as p, getAllOwnEventDescriptors as q, raise as r, stopChild as s, toArray as t, matchesState as u, pathToStateValue as v, toObserver as w, stop as x, mapValues as y, formatTransitions as z };
@@ -1744,6 +1744,47 @@ function formatTransitions(stateNode) {
1744
1744
  }
1745
1745
  return transitions;
1746
1746
  }
1747
+
1748
+ /**
1749
+ * Collects route transitions from all descendants with explicit IDs. Called
1750
+ * once on the root node to avoid O(N²) repeated traversals.
1751
+ */
1752
+ function formatRouteTransitions(rootStateNode) {
1753
+ const routeTransitions = [];
1754
+ const collectRoutes = states => {
1755
+ Object.values(states).forEach(sn => {
1756
+ if (sn.config.route && sn.config.id) {
1757
+ const routeId = sn.config.id;
1758
+ const userGuard = sn.config.route.guard;
1759
+ const routeGuard = (args, params) => {
1760
+ if (args.event.to !== `#${routeId}`) {
1761
+ return false;
1762
+ }
1763
+ if (!userGuard) {
1764
+ return true;
1765
+ }
1766
+ if (typeof userGuard === 'function') {
1767
+ return userGuard(args, params);
1768
+ }
1769
+ return true;
1770
+ };
1771
+ const transition = {
1772
+ ...sn.config.route,
1773
+ guard: routeGuard,
1774
+ target: `#${routeId}`
1775
+ };
1776
+ routeTransitions.push(formatTransition(rootStateNode, 'xstate.route', transition));
1777
+ }
1778
+ if (sn.states) {
1779
+ collectRoutes(sn.states);
1780
+ }
1781
+ });
1782
+ };
1783
+ collectRoutes(rootStateNode.states);
1784
+ if (routeTransitions.length > 0) {
1785
+ rootStateNode.transitions.set('xstate.route', routeTransitions);
1786
+ }
1787
+ }
1747
1788
  function formatInitialTransition(stateNode, _target) {
1748
1789
  const resolvedTarget = typeof _target === 'string' ? stateNode.states[_target] : _target ? stateNode.states[_target.target] : undefined;
1749
1790
  if (!resolvedTarget && _target) {
@@ -2722,6 +2763,7 @@ exports.createInvokeId = createInvokeId;
2722
2763
  exports.createMachineSnapshot = createMachineSnapshot;
2723
2764
  exports.evaluateGuard = evaluateGuard;
2724
2765
  exports.formatInitialTransition = formatInitialTransition;
2766
+ exports.formatRouteTransitions = formatRouteTransitions;
2725
2767
  exports.formatTransition = formatTransition;
2726
2768
  exports.formatTransitions = formatTransitions;
2727
2769
  exports.getAllOwnEventDescriptors = getAllOwnEventDescriptors;
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var actors_dist_xstateActors = require('../actors/dist/xstate-actors.cjs.js');
6
- var guards_dist_xstateGuards = require('./raise-3a84be1f.cjs.js');
7
- var StateMachine = require('./StateMachine-e93afc18.cjs.js');
8
- var assign = require('./assign-e36553db.cjs.js');
9
- var log = require('./log-e54c2eff.cjs.js');
6
+ var guards_dist_xstateGuards = require('./raise-f23ccfcb.cjs.js');
7
+ var StateMachine = require('./StateMachine-a2656b8a.cjs.js');
8
+ var assign = require('./assign-6b5249c3.cjs.js');
9
+ var log = require('./log-b8ad8428.cjs.js');
10
10
  require('../dev/dist/xstate-dev.cjs.js');
11
11
 
12
12
  /**
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var actors_dist_xstateActors = require('../actors/dist/xstate-actors.development.cjs.js');
6
- var guards_dist_xstateGuards = require('./raise-ecea0c53.development.cjs.js');
7
- var StateMachine = require('./StateMachine-c3376229.development.cjs.js');
8
- var assign = require('./assign-8ef0e332.development.cjs.js');
9
- var log = require('./log-72d5ee02.development.cjs.js');
6
+ var guards_dist_xstateGuards = require('./raise-4c2b495e.development.cjs.js');
7
+ var StateMachine = require('./StateMachine-b5c57433.development.cjs.js');
8
+ var assign = require('./assign-ec9d7c67.development.cjs.js');
9
+ var log = require('./log-96e4ebaa.development.cjs.js');
10
10
  require('../dev/dist/xstate-dev.development.cjs.js');
11
11
 
12
12
  /**
@@ -1,12 +1,12 @@
1
1
  export { createEmptyActor, fromCallback, fromEventObservable, fromObservable, fromPromise, fromTransition } from '../actors/dist/xstate-actors.development.esm.js';
2
- import { m as matchesEventDescriptor, t as toArray, c as createActor, r as raise, a as cancel, s as stopChild, b as spawnChild, d as macrostep, e as createInitEvent, i as initialMicrostep, f as isAtomicStateNode, g as getProperAncestors } from './raise-a7794093.development.esm.js';
3
- export { A as Actor, q as __unsafe_getAllOwnEventDescriptors, j as and, a as cancel, c as createActor, p as getStateNodes, h as interpret, l as isMachineSnapshot, u as matchesState, n as not, o as or, v as pathToStateValue, r as raise, b as spawnChild, k as stateIn, x as stop, s as stopChild, w as toObserver } from './raise-a7794093.development.esm.js';
4
- import { S as StateMachine } from './StateMachine-93271b59.development.esm.js';
5
- export { S as StateMachine, a as StateNode } from './StateMachine-93271b59.development.esm.js';
6
- import { a as assign } from './assign-d5291869.development.esm.js';
7
- export { a as assign } from './assign-d5291869.development.esm.js';
8
- import { s as sendTo, l as log, e as enqueueActions, a as emit } from './log-7dbbb7c2.development.esm.js';
9
- export { S as SpecialTargets, a as emit, e as enqueueActions, f as forwardTo, l as log, b as sendParent, s as sendTo } from './log-7dbbb7c2.development.esm.js';
2
+ import { m as matchesEventDescriptor, t as toArray, c as createActor, r as raise, a as cancel, s as stopChild, b as spawnChild, d as macrostep, e as createInitEvent, i as initialMicrostep, f as isAtomicStateNode, g as getProperAncestors } from './raise-cb04d847.development.esm.js';
3
+ export { A as Actor, q as __unsafe_getAllOwnEventDescriptors, j as and, a as cancel, c as createActor, p as getStateNodes, h as interpret, l as isMachineSnapshot, u as matchesState, n as not, o as or, v as pathToStateValue, r as raise, b as spawnChild, k as stateIn, x as stop, s as stopChild, w as toObserver } from './raise-cb04d847.development.esm.js';
4
+ import { S as StateMachine } from './StateMachine-65637d4d.development.esm.js';
5
+ export { S as StateMachine, a as StateNode } from './StateMachine-65637d4d.development.esm.js';
6
+ import { a as assign } from './assign-2343d091.development.esm.js';
7
+ export { a as assign } from './assign-2343d091.development.esm.js';
8
+ import { s as sendTo, l as log, e as enqueueActions, a as emit } from './log-39288d72.development.esm.js';
9
+ export { S as SpecialTargets, a as emit, e as enqueueActions, f as forwardTo, l as log, b as sendParent, s as sendTo } from './log-39288d72.development.esm.js';
10
10
  import '../dev/dist/xstate-dev.development.esm.js';
11
11
 
12
12
  /**
@@ -1,12 +1,12 @@
1
1
  export { createEmptyActor, fromCallback, fromEventObservable, fromObservable, fromPromise, fromTransition } from '../actors/dist/xstate-actors.esm.js';
2
- import { m as matchesEventDescriptor, t as toArray, c as createActor, r as raise, a as cancel, s as stopChild, b as spawnChild, d as macrostep, e as createInitEvent, i as initialMicrostep, f as isAtomicStateNode, g as getProperAncestors } from './raise-e5d81555.esm.js';
3
- export { A as Actor, q as __unsafe_getAllOwnEventDescriptors, j as and, a as cancel, c as createActor, p as getStateNodes, h as interpret, l as isMachineSnapshot, u as matchesState, n as not, o as or, v as pathToStateValue, r as raise, b as spawnChild, k as stateIn, x as stop, s as stopChild, w as toObserver } from './raise-e5d81555.esm.js';
4
- import { S as StateMachine } from './StateMachine-a4db5a91.esm.js';
5
- export { S as StateMachine, a as StateNode } from './StateMachine-a4db5a91.esm.js';
6
- import { a as assign } from './assign-227b928a.esm.js';
7
- export { a as assign } from './assign-227b928a.esm.js';
8
- import { s as sendTo, l as log, e as enqueueActions, a as emit } from './log-fa76d888.esm.js';
9
- export { S as SpecialTargets, a as emit, e as enqueueActions, f as forwardTo, l as log, b as sendParent, s as sendTo } from './log-fa76d888.esm.js';
2
+ import { m as matchesEventDescriptor, t as toArray, c as createActor, r as raise, a as cancel, s as stopChild, b as spawnChild, d as macrostep, e as createInitEvent, i as initialMicrostep, f as isAtomicStateNode, g as getProperAncestors } from './raise-34c45204.esm.js';
3
+ export { A as Actor, q as __unsafe_getAllOwnEventDescriptors, j as and, a as cancel, c as createActor, p as getStateNodes, h as interpret, l as isMachineSnapshot, u as matchesState, n as not, o as or, v as pathToStateValue, r as raise, b as spawnChild, k as stateIn, x as stop, s as stopChild, w as toObserver } from './raise-34c45204.esm.js';
4
+ import { S as StateMachine } from './StateMachine-9ef88566.esm.js';
5
+ export { S as StateMachine, a as StateNode } from './StateMachine-9ef88566.esm.js';
6
+ import { a as assign } from './assign-5f7ff891.esm.js';
7
+ export { a as assign } from './assign-5f7ff891.esm.js';
8
+ import { s as sendTo, l as log, e as enqueueActions, a as emit } from './log-1324d455.esm.js';
9
+ export { S as SpecialTargets, a as emit, e as enqueueActions, f as forwardTo, l as log, b as sendParent, s as sendTo } from './log-1324d455.esm.js';
10
10
  import '../dev/dist/xstate-dev.esm.js';
11
11
 
12
12
  /**