xstate 5.6.2 → 5.7.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.
Files changed (37) hide show
  1. package/actions/dist/xstate-actions.cjs.js +2 -2
  2. package/actions/dist/xstate-actions.development.cjs.js +2 -2
  3. package/actions/dist/xstate-actions.development.esm.js +2 -2
  4. package/actions/dist/xstate-actions.esm.js +2 -2
  5. package/actions/dist/xstate-actions.umd.min.js +1 -1
  6. package/actions/dist/xstate-actions.umd.min.js.map +1 -1
  7. package/actors/dist/xstate-actors.cjs.js +1 -1
  8. package/actors/dist/xstate-actors.development.cjs.js +1 -1
  9. package/actors/dist/xstate-actors.development.esm.js +1 -1
  10. package/actors/dist/xstate-actors.esm.js +1 -1
  11. package/actors/dist/xstate-actors.umd.min.js +1 -1
  12. package/actors/dist/xstate-actors.umd.min.js.map +1 -1
  13. package/dist/declarations/src/State.d.ts +5 -5
  14. package/dist/declarations/src/index.d.ts +3 -2
  15. package/dist/declarations/src/inspection.d.ts +38 -0
  16. package/dist/declarations/src/system.d.ts +2 -25
  17. package/dist/declarations/src/types.d.ts +2 -1
  18. package/dist/{log-75c83841.development.cjs.js → log-9b34dd45.development.cjs.js} +1 -1
  19. package/dist/{log-c5c46d15.cjs.js → log-c2d7ade7.cjs.js} +1 -1
  20. package/dist/{log-edca19d9.development.esm.js → log-dc9ca1e2.development.esm.js} +1 -1
  21. package/dist/{log-b6ecfc82.esm.js → log-f78f0918.esm.js} +1 -1
  22. package/dist/{raise-d7d9caaa.development.cjs.js → raise-0ce4ccae.development.cjs.js} +55 -26
  23. package/dist/{raise-2fdbadc6.development.esm.js → raise-4593d184.development.esm.js} +55 -26
  24. package/dist/{raise-309d511a.esm.js → raise-6420fe44.esm.js} +55 -26
  25. package/dist/{raise-540fdaf2.cjs.js → raise-932934e8.cjs.js} +55 -26
  26. package/dist/xstate.cjs.js +2 -2
  27. package/dist/xstate.development.cjs.js +2 -2
  28. package/dist/xstate.development.esm.js +4 -4
  29. package/dist/xstate.esm.js +4 -4
  30. package/dist/xstate.umd.min.js +1 -1
  31. package/dist/xstate.umd.min.js.map +1 -1
  32. package/guards/dist/xstate-guards.cjs.js +1 -1
  33. package/guards/dist/xstate-guards.development.cjs.js +1 -1
  34. package/guards/dist/xstate-guards.development.esm.js +1 -1
  35. package/guards/dist/xstate-guards.esm.js +1 -1
  36. package/guards/dist/xstate-guards.umd.min.js.map +1 -1
  37. package/package.json +1 -1
@@ -134,7 +134,7 @@ function createSystem(rootActor, options) {
134
134
  const children = new Map();
135
135
  const keyedActors = new Map();
136
136
  const reverseKeyedActors = new WeakMap();
137
- const observers = new Set();
137
+ const inspectionObservers = new Set();
138
138
  const timerMap = {};
139
139
  const clock = options.clock;
140
140
  const scheduler = {
@@ -172,6 +172,16 @@ function createSystem(rootActor, options) {
172
172
  }
173
173
  }
174
174
  };
175
+ const sendInspectionEvent = event => {
176
+ if (!inspectionObservers.size) {
177
+ return;
178
+ }
179
+ const resolvedInspectionEvent = {
180
+ ...event,
181
+ rootId: rootActor.sessionId
182
+ };
183
+ inspectionObservers.forEach(observer => observer.next?.(resolvedInspectionEvent));
184
+ };
175
185
  const system = {
176
186
  _snapshot: {
177
187
  _scheduledEvents: (options?.snapshot && options.snapshot.scheduler) ?? {}
@@ -201,15 +211,9 @@ function createSystem(rootActor, options) {
201
211
  reverseKeyedActors.set(actorRef, systemId);
202
212
  },
203
213
  inspect: observer => {
204
- observers.add(observer);
205
- },
206
- _sendInspectionEvent: event => {
207
- const resolvedInspectionEvent = {
208
- ...event,
209
- rootId: rootActor.sessionId
210
- };
211
- observers.forEach(observer => observer.next?.(resolvedInspectionEvent));
214
+ inspectionObservers.add(observer);
212
215
  },
216
+ _sendInspectionEvent: sendInspectionEvent,
213
217
  _relay: (source, target, event) => {
214
218
  system._sendInspectionEvent({
215
219
  type: '@xstate.event',
@@ -228,16 +232,16 @@ function createSystem(rootActor, options) {
228
232
  };
229
233
  },
230
234
  start: () => {
231
- const scheduledEvets = system._snapshot._scheduledEvents;
235
+ const scheduledEvents = system._snapshot._scheduledEvents;
232
236
  system._snapshot._scheduledEvents = {};
233
- for (const scheduledId in scheduledEvets) {
237
+ for (const scheduledId in scheduledEvents) {
234
238
  const {
235
239
  source,
236
240
  target,
237
241
  event,
238
242
  delay,
239
243
  id
240
- } = scheduledEvets[scheduledId];
244
+ } = scheduledEvents[scheduledId];
241
245
  scheduler.schedule(source, target, event, delay, id);
242
246
  }
243
247
  }
@@ -1743,7 +1747,11 @@ function getStateNodeByPath(stateNode, statePath) {
1743
1747
  */
1744
1748
  function getStateNodes(stateNode, stateValue) {
1745
1749
  if (typeof stateValue === 'string') {
1746
- return [stateNode, stateNode.states[stateValue]];
1750
+ const childStateNode = stateNode.states[stateValue];
1751
+ if (!childStateNode) {
1752
+ throw new Error(`State '${stateValue}' does not exist on '${stateNode.id}'`);
1753
+ }
1754
+ return [stateNode, childStateNode];
1747
1755
  }
1748
1756
  const childStateKeys = Object.keys(stateValue);
1749
1757
  const childStateNodes = childStateKeys.map(subStateKey => getStateNode(stateNode, subStateKey)).filter(Boolean);
@@ -2156,7 +2164,7 @@ function exitStates(currentSnapshot, event, actorScope, transitions, mutStateNod
2156
2164
  }
2157
2165
  return [nextSnapshot, changedHistory || historyValue];
2158
2166
  }
2159
- function resolveActionsAndContextWorker(currentSnapshot, event, actorScope, actions, extra, retries) {
2167
+ function resolveAndExecuteActionsWithContext(currentSnapshot, event, actorScope, actions, extra, retries) {
2160
2168
  const {
2161
2169
  machine
2162
2170
  } = currentSnapshot;
@@ -2181,12 +2189,23 @@ function resolveActionsAndContextWorker(currentSnapshot, event, actorScope, acti
2181
2189
  context: intermediateSnapshot.context,
2182
2190
  event
2183
2191
  }) : action.params : undefined;
2192
+ function executeAction() {
2193
+ actorScope.system._sendInspectionEvent({
2194
+ type: '@xstate.action',
2195
+ actorRef: actorScope.self,
2196
+ action: {
2197
+ type: typeof action === 'string' ? action : typeof action === 'object' ? action.type : action.name || '(anonymous)',
2198
+ params: actionParams
2199
+ }
2200
+ });
2201
+ resolvedAction(actionArgs, actionParams);
2202
+ }
2184
2203
  if (!('resolve' in resolvedAction)) {
2185
2204
  if (actorScope.self._processingStatus === ProcessingStatus.Running) {
2186
- resolvedAction(actionArgs, actionParams);
2205
+ executeAction();
2187
2206
  } else {
2188
2207
  actorScope.defer(() => {
2189
- resolvedAction(actionArgs, actionParams);
2208
+ executeAction();
2190
2209
  });
2191
2210
  }
2192
2211
  continue;
@@ -2207,14 +2226,14 @@ function resolveActionsAndContextWorker(currentSnapshot, event, actorScope, acti
2207
2226
  }
2208
2227
  }
2209
2228
  if (actions) {
2210
- intermediateSnapshot = resolveActionsAndContextWorker(intermediateSnapshot, event, actorScope, actions, extra, retries);
2229
+ intermediateSnapshot = resolveAndExecuteActionsWithContext(intermediateSnapshot, event, actorScope, actions, extra, retries);
2211
2230
  }
2212
2231
  }
2213
2232
  return intermediateSnapshot;
2214
2233
  }
2215
2234
  function resolveActionsAndContext(currentSnapshot, event, actorScope, actions, internalQueue, deferredActorIds) {
2216
2235
  const retries = deferredActorIds ? [] : undefined;
2217
- const nextState = resolveActionsAndContextWorker(currentSnapshot, event, actorScope, actions, {
2236
+ const nextState = resolveAndExecuteActionsWithContext(currentSnapshot, event, actorScope, actions, {
2218
2237
  internalQueue,
2219
2238
  deferredActorIds
2220
2239
  }, retries);
@@ -2225,17 +2244,27 @@ function resolveActionsAndContext(currentSnapshot, event, actorScope, actions, i
2225
2244
  }
2226
2245
  function macrostep(snapshot, event, actorScope, internalQueue = []) {
2227
2246
  let nextSnapshot = snapshot;
2228
- const states = [];
2247
+ const microstates = [];
2248
+ function addMicrostate(microstate, event, transitions) {
2249
+ actorScope.system._sendInspectionEvent({
2250
+ type: '@xstate.microstep',
2251
+ actorRef: actorScope.self,
2252
+ event,
2253
+ snapshot: microstate,
2254
+ _transitions: transitions
2255
+ });
2256
+ microstates.push(microstate);
2257
+ }
2229
2258
 
2230
2259
  // Handle stop event
2231
2260
  if (event.type === XSTATE_STOP) {
2232
2261
  nextSnapshot = cloneMachineSnapshot(stopChildren(nextSnapshot, event, actorScope), {
2233
2262
  status: 'stopped'
2234
2263
  });
2235
- states.push(nextSnapshot);
2264
+ addMicrostate(nextSnapshot, event, []);
2236
2265
  return {
2237
2266
  snapshot: nextSnapshot,
2238
- microstates: states
2267
+ microstates
2239
2268
  };
2240
2269
  }
2241
2270
  let nextEvent = event;
@@ -2254,16 +2283,16 @@ function macrostep(snapshot, event, actorScope, internalQueue = []) {
2254
2283
  status: 'error',
2255
2284
  error: currentEvent.error
2256
2285
  });
2257
- states.push(nextSnapshot);
2286
+ addMicrostate(nextSnapshot, currentEvent, []);
2258
2287
  return {
2259
2288
  snapshot: nextSnapshot,
2260
- microstates: states
2289
+ microstates
2261
2290
  };
2262
2291
  }
2263
2292
  nextSnapshot = microstep(transitions, snapshot, actorScope, nextEvent, false,
2264
2293
  // isInitial
2265
2294
  internalQueue);
2266
- states.push(nextSnapshot);
2295
+ addMicrostate(nextSnapshot, currentEvent, transitions);
2267
2296
  }
2268
2297
  let shouldSelectEventlessTransitions = true;
2269
2298
  while (nextSnapshot.status === 'active') {
@@ -2281,14 +2310,14 @@ function macrostep(snapshot, event, actorScope, internalQueue = []) {
2281
2310
  }
2282
2311
  nextSnapshot = microstep(enabledTransitions, nextSnapshot, actorScope, nextEvent, false, internalQueue);
2283
2312
  shouldSelectEventlessTransitions = nextSnapshot !== previousState;
2284
- states.push(nextSnapshot);
2313
+ addMicrostate(nextSnapshot, nextEvent, enabledTransitions);
2285
2314
  }
2286
2315
  if (nextSnapshot.status !== 'active') {
2287
2316
  stopChildren(nextSnapshot, nextEvent, actorScope);
2288
2317
  }
2289
2318
  return {
2290
2319
  snapshot: nextSnapshot,
2291
- microstates: states
2320
+ microstates
2292
2321
  };
2293
2322
  }
2294
2323
  function stopChildren(nextState, event, actorScope) {
@@ -136,7 +136,7 @@ function createSystem(rootActor, options) {
136
136
  const children = new Map();
137
137
  const keyedActors = new Map();
138
138
  const reverseKeyedActors = new WeakMap();
139
- const observers = new Set();
139
+ const inspectionObservers = new Set();
140
140
  const timerMap = {};
141
141
  const clock = options.clock;
142
142
  const scheduler = {
@@ -174,6 +174,16 @@ function createSystem(rootActor, options) {
174
174
  }
175
175
  }
176
176
  };
177
+ const sendInspectionEvent = event => {
178
+ if (!inspectionObservers.size) {
179
+ return;
180
+ }
181
+ const resolvedInspectionEvent = {
182
+ ...event,
183
+ rootId: rootActor.sessionId
184
+ };
185
+ inspectionObservers.forEach(observer => observer.next?.(resolvedInspectionEvent));
186
+ };
177
187
  const system = {
178
188
  _snapshot: {
179
189
  _scheduledEvents: (options?.snapshot && options.snapshot.scheduler) ?? {}
@@ -203,15 +213,9 @@ function createSystem(rootActor, options) {
203
213
  reverseKeyedActors.set(actorRef, systemId);
204
214
  },
205
215
  inspect: observer => {
206
- observers.add(observer);
207
- },
208
- _sendInspectionEvent: event => {
209
- const resolvedInspectionEvent = {
210
- ...event,
211
- rootId: rootActor.sessionId
212
- };
213
- observers.forEach(observer => observer.next?.(resolvedInspectionEvent));
216
+ inspectionObservers.add(observer);
214
217
  },
218
+ _sendInspectionEvent: sendInspectionEvent,
215
219
  _relay: (source, target, event) => {
216
220
  system._sendInspectionEvent({
217
221
  type: '@xstate.event',
@@ -230,16 +234,16 @@ function createSystem(rootActor, options) {
230
234
  };
231
235
  },
232
236
  start: () => {
233
- const scheduledEvets = system._snapshot._scheduledEvents;
237
+ const scheduledEvents = system._snapshot._scheduledEvents;
234
238
  system._snapshot._scheduledEvents = {};
235
- for (const scheduledId in scheduledEvets) {
239
+ for (const scheduledId in scheduledEvents) {
236
240
  const {
237
241
  source,
238
242
  target,
239
243
  event,
240
244
  delay,
241
245
  id
242
- } = scheduledEvets[scheduledId];
246
+ } = scheduledEvents[scheduledId];
243
247
  scheduler.schedule(source, target, event, delay, id);
244
248
  }
245
249
  }
@@ -1745,7 +1749,11 @@ function getStateNodeByPath(stateNode, statePath) {
1745
1749
  */
1746
1750
  function getStateNodes(stateNode, stateValue) {
1747
1751
  if (typeof stateValue === 'string') {
1748
- return [stateNode, stateNode.states[stateValue]];
1752
+ const childStateNode = stateNode.states[stateValue];
1753
+ if (!childStateNode) {
1754
+ throw new Error(`State '${stateValue}' does not exist on '${stateNode.id}'`);
1755
+ }
1756
+ return [stateNode, childStateNode];
1749
1757
  }
1750
1758
  const childStateKeys = Object.keys(stateValue);
1751
1759
  const childStateNodes = childStateKeys.map(subStateKey => getStateNode(stateNode, subStateKey)).filter(Boolean);
@@ -2158,7 +2166,7 @@ function exitStates(currentSnapshot, event, actorScope, transitions, mutStateNod
2158
2166
  }
2159
2167
  return [nextSnapshot, changedHistory || historyValue];
2160
2168
  }
2161
- function resolveActionsAndContextWorker(currentSnapshot, event, actorScope, actions, extra, retries) {
2169
+ function resolveAndExecuteActionsWithContext(currentSnapshot, event, actorScope, actions, extra, retries) {
2162
2170
  const {
2163
2171
  machine
2164
2172
  } = currentSnapshot;
@@ -2183,12 +2191,23 @@ function resolveActionsAndContextWorker(currentSnapshot, event, actorScope, acti
2183
2191
  context: intermediateSnapshot.context,
2184
2192
  event
2185
2193
  }) : action.params : undefined;
2194
+ function executeAction() {
2195
+ actorScope.system._sendInspectionEvent({
2196
+ type: '@xstate.action',
2197
+ actorRef: actorScope.self,
2198
+ action: {
2199
+ type: typeof action === 'string' ? action : typeof action === 'object' ? action.type : action.name || '(anonymous)',
2200
+ params: actionParams
2201
+ }
2202
+ });
2203
+ resolvedAction(actionArgs, actionParams);
2204
+ }
2186
2205
  if (!('resolve' in resolvedAction)) {
2187
2206
  if (actorScope.self._processingStatus === ProcessingStatus.Running) {
2188
- resolvedAction(actionArgs, actionParams);
2207
+ executeAction();
2189
2208
  } else {
2190
2209
  actorScope.defer(() => {
2191
- resolvedAction(actionArgs, actionParams);
2210
+ executeAction();
2192
2211
  });
2193
2212
  }
2194
2213
  continue;
@@ -2209,14 +2228,14 @@ function resolveActionsAndContextWorker(currentSnapshot, event, actorScope, acti
2209
2228
  }
2210
2229
  }
2211
2230
  if (actions) {
2212
- intermediateSnapshot = resolveActionsAndContextWorker(intermediateSnapshot, event, actorScope, actions, extra, retries);
2231
+ intermediateSnapshot = resolveAndExecuteActionsWithContext(intermediateSnapshot, event, actorScope, actions, extra, retries);
2213
2232
  }
2214
2233
  }
2215
2234
  return intermediateSnapshot;
2216
2235
  }
2217
2236
  function resolveActionsAndContext(currentSnapshot, event, actorScope, actions, internalQueue, deferredActorIds) {
2218
2237
  const retries = deferredActorIds ? [] : undefined;
2219
- const nextState = resolveActionsAndContextWorker(currentSnapshot, event, actorScope, actions, {
2238
+ const nextState = resolveAndExecuteActionsWithContext(currentSnapshot, event, actorScope, actions, {
2220
2239
  internalQueue,
2221
2240
  deferredActorIds
2222
2241
  }, retries);
@@ -2227,17 +2246,27 @@ function resolveActionsAndContext(currentSnapshot, event, actorScope, actions, i
2227
2246
  }
2228
2247
  function macrostep(snapshot, event, actorScope, internalQueue = []) {
2229
2248
  let nextSnapshot = snapshot;
2230
- const states = [];
2249
+ const microstates = [];
2250
+ function addMicrostate(microstate, event, transitions) {
2251
+ actorScope.system._sendInspectionEvent({
2252
+ type: '@xstate.microstep',
2253
+ actorRef: actorScope.self,
2254
+ event,
2255
+ snapshot: microstate,
2256
+ _transitions: transitions
2257
+ });
2258
+ microstates.push(microstate);
2259
+ }
2231
2260
 
2232
2261
  // Handle stop event
2233
2262
  if (event.type === XSTATE_STOP) {
2234
2263
  nextSnapshot = cloneMachineSnapshot(stopChildren(nextSnapshot, event, actorScope), {
2235
2264
  status: 'stopped'
2236
2265
  });
2237
- states.push(nextSnapshot);
2266
+ addMicrostate(nextSnapshot, event, []);
2238
2267
  return {
2239
2268
  snapshot: nextSnapshot,
2240
- microstates: states
2269
+ microstates
2241
2270
  };
2242
2271
  }
2243
2272
  let nextEvent = event;
@@ -2256,16 +2285,16 @@ function macrostep(snapshot, event, actorScope, internalQueue = []) {
2256
2285
  status: 'error',
2257
2286
  error: currentEvent.error
2258
2287
  });
2259
- states.push(nextSnapshot);
2288
+ addMicrostate(nextSnapshot, currentEvent, []);
2260
2289
  return {
2261
2290
  snapshot: nextSnapshot,
2262
- microstates: states
2291
+ microstates
2263
2292
  };
2264
2293
  }
2265
2294
  nextSnapshot = microstep(transitions, snapshot, actorScope, nextEvent, false,
2266
2295
  // isInitial
2267
2296
  internalQueue);
2268
- states.push(nextSnapshot);
2297
+ addMicrostate(nextSnapshot, currentEvent, transitions);
2269
2298
  }
2270
2299
  let shouldSelectEventlessTransitions = true;
2271
2300
  while (nextSnapshot.status === 'active') {
@@ -2283,14 +2312,14 @@ function macrostep(snapshot, event, actorScope, internalQueue = []) {
2283
2312
  }
2284
2313
  nextSnapshot = microstep(enabledTransitions, nextSnapshot, actorScope, nextEvent, false, internalQueue);
2285
2314
  shouldSelectEventlessTransitions = nextSnapshot !== previousState;
2286
- states.push(nextSnapshot);
2315
+ addMicrostate(nextSnapshot, nextEvent, enabledTransitions);
2287
2316
  }
2288
2317
  if (nextSnapshot.status !== 'active') {
2289
2318
  stopChildren(nextSnapshot, nextEvent, actorScope);
2290
2319
  }
2291
2320
  return {
2292
2321
  snapshot: nextSnapshot,
2293
- microstates: states
2322
+ microstates
2294
2323
  };
2295
2324
  }
2296
2325
  function stopChildren(nextState, event, actorScope) {
@@ -3,8 +3,8 @@
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-540fdaf2.cjs.js');
7
- var log = require('./log-c5c46d15.cjs.js');
6
+ var guards_dist_xstateGuards = require('./raise-932934e8.cjs.js');
7
+ var log = require('./log-c2d7ade7.cjs.js');
8
8
  require('../dev/dist/xstate-dev.cjs.js');
9
9
 
10
10
  class SimulatedClock {
@@ -3,8 +3,8 @@
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-d7d9caaa.development.cjs.js');
7
- var log = require('./log-75c83841.development.cjs.js');
6
+ var guards_dist_xstateGuards = require('./raise-0ce4ccae.development.cjs.js');
7
+ var log = require('./log-9b34dd45.development.cjs.js');
8
8
  require('../dev/dist/xstate-dev.development.cjs.js');
9
9
 
10
10
  class SimulatedClock {
@@ -1,8 +1,8 @@
1
1
  export { createEmptyActor, fromCallback, fromEventObservable, fromObservable, fromPromise, fromTransition } from '../actors/dist/xstate-actors.development.esm.js';
2
- import { S as STATE_DELIMITER, m as mapValues, t as toArray, f as formatTransitions, a as toTransitionConfigArray, b as formatTransition, N as NULL_EVENT, e as evaluateGuard, c as createInvokeId, g as getDelayedTransitions, d as formatInitialTransition, h as getCandidates, r as resolveStateValue, i as getAllStateNodes, j as getStateNodes, k as createMachineSnapshot, l as isInFinalState, n as macrostep, o as transitionNode, p as resolveActionsAndContext, q as createInitEvent, s as microstep, u as getInitialStateNodes, v as toStatePath, w as isStateId, x as getStateNodeByPath, y as getPersistedSnapshot, z as resolveReferencedActor, A as createActor, $ as $$ACTOR_TYPE } from './raise-2fdbadc6.development.esm.js';
3
- export { B as Actor, I as __unsafe_getAllOwnEventDescriptors, E as and, M as cancel, A as createActor, j as getStateNodes, C as interpret, D as isMachineSnapshot, J as matchesState, F as not, G as or, K as pathToStateValue, O as raise, P as spawnChild, H as stateIn, Q as stop, R as stopChild, L as toObserver } from './raise-2fdbadc6.development.esm.js';
4
- import { a as assign } from './log-edca19d9.development.esm.js';
5
- export { S as SpecialTargets, a as assign, e as enqueueActions, f as forwardTo, l as log, s as sendParent, b as sendTo } from './log-edca19d9.development.esm.js';
2
+ import { S as STATE_DELIMITER, m as mapValues, t as toArray, f as formatTransitions, a as toTransitionConfigArray, b as formatTransition, N as NULL_EVENT, e as evaluateGuard, c as createInvokeId, g as getDelayedTransitions, d as formatInitialTransition, h as getCandidates, r as resolveStateValue, i as getAllStateNodes, j as getStateNodes, k as createMachineSnapshot, l as isInFinalState, n as macrostep, o as transitionNode, p as resolveActionsAndContext, q as createInitEvent, s as microstep, u as getInitialStateNodes, v as toStatePath, w as isStateId, x as getStateNodeByPath, y as getPersistedSnapshot, z as resolveReferencedActor, A as createActor, $ as $$ACTOR_TYPE } from './raise-4593d184.development.esm.js';
3
+ export { B as Actor, I as __unsafe_getAllOwnEventDescriptors, E as and, M as cancel, A as createActor, j as getStateNodes, C as interpret, D as isMachineSnapshot, J as matchesState, F as not, G as or, K as pathToStateValue, O as raise, P as spawnChild, H as stateIn, Q as stop, R as stopChild, L as toObserver } from './raise-4593d184.development.esm.js';
4
+ import { a as assign } from './log-dc9ca1e2.development.esm.js';
5
+ export { S as SpecialTargets, a as assign, e as enqueueActions, f as forwardTo, l as log, s as sendParent, b as sendTo } from './log-dc9ca1e2.development.esm.js';
6
6
  import '../dev/dist/xstate-dev.development.esm.js';
7
7
 
8
8
  class SimulatedClock {
@@ -1,8 +1,8 @@
1
1
  export { createEmptyActor, fromCallback, fromEventObservable, fromObservable, fromPromise, fromTransition } from '../actors/dist/xstate-actors.esm.js';
2
- import { S as STATE_DELIMITER, m as mapValues, t as toArray, f as formatTransitions, a as toTransitionConfigArray, b as formatTransition, N as NULL_EVENT, e as evaluateGuard, c as createInvokeId, g as getDelayedTransitions, d as formatInitialTransition, h as getCandidates, r as resolveStateValue, i as getAllStateNodes, j as getStateNodes, k as createMachineSnapshot, l as isInFinalState, n as macrostep, o as transitionNode, p as resolveActionsAndContext, q as createInitEvent, s as microstep, u as getInitialStateNodes, v as toStatePath, w as isStateId, x as getStateNodeByPath, y as getPersistedSnapshot, z as resolveReferencedActor, A as createActor, $ as $$ACTOR_TYPE } from './raise-309d511a.esm.js';
3
- export { B as Actor, I as __unsafe_getAllOwnEventDescriptors, E as and, M as cancel, A as createActor, j as getStateNodes, C as interpret, D as isMachineSnapshot, J as matchesState, F as not, G as or, K as pathToStateValue, O as raise, P as spawnChild, H as stateIn, Q as stop, R as stopChild, L as toObserver } from './raise-309d511a.esm.js';
4
- import { a as assign } from './log-b6ecfc82.esm.js';
5
- export { S as SpecialTargets, a as assign, e as enqueueActions, f as forwardTo, l as log, s as sendParent, b as sendTo } from './log-b6ecfc82.esm.js';
2
+ import { S as STATE_DELIMITER, m as mapValues, t as toArray, f as formatTransitions, a as toTransitionConfigArray, b as formatTransition, N as NULL_EVENT, e as evaluateGuard, c as createInvokeId, g as getDelayedTransitions, d as formatInitialTransition, h as getCandidates, r as resolveStateValue, i as getAllStateNodes, j as getStateNodes, k as createMachineSnapshot, l as isInFinalState, n as macrostep, o as transitionNode, p as resolveActionsAndContext, q as createInitEvent, s as microstep, u as getInitialStateNodes, v as toStatePath, w as isStateId, x as getStateNodeByPath, y as getPersistedSnapshot, z as resolveReferencedActor, A as createActor, $ as $$ACTOR_TYPE } from './raise-6420fe44.esm.js';
3
+ export { B as Actor, I as __unsafe_getAllOwnEventDescriptors, E as and, M as cancel, A as createActor, j as getStateNodes, C as interpret, D as isMachineSnapshot, J as matchesState, F as not, G as or, K as pathToStateValue, O as raise, P as spawnChild, H as stateIn, Q as stop, R as stopChild, L as toObserver } from './raise-6420fe44.esm.js';
4
+ import { a as assign } from './log-f78f0918.esm.js';
5
+ export { S as SpecialTargets, a as assign, e as enqueueActions, f as forwardTo, l as log, s as sendParent, b as sendTo } from './log-f78f0918.esm.js';
6
6
  import '../dev/dist/xstate-dev.esm.js';
7
7
 
8
8
  class SimulatedClock {