@aws-amplify/ui-vue 3.1.14 → 3.1.15

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/index.js CHANGED
@@ -1071,6 +1071,9 @@ function toObserver$1(nextHandler, errorHandler, completionHandler) {
1071
1071
  function createInvokeId(stateNodeId, index2) {
1072
1072
  return "".concat(stateNodeId, ":invocation[").concat(index2, "]");
1073
1073
  }
1074
+ function isRaisableAction(action) {
1075
+ return (action.type === raise$1 || action.type === send$1 && action.to === SpecialTargets.Internal) && typeof action.delay !== "number";
1076
+ }
1074
1077
  var initEvent = /* @__PURE__ */ toSCXMLEvent({
1075
1078
  type: init
1076
1079
  });
@@ -1133,22 +1136,31 @@ function toActivityDefinition(action) {
1133
1136
  type: actionObject.type
1134
1137
  });
1135
1138
  }
1136
- function raise(event) {
1137
- if (!isString(event)) {
1138
- return send(event, {
1139
- to: SpecialTargets.Internal
1140
- });
1141
- }
1139
+ function raise(event, options) {
1142
1140
  return {
1143
1141
  type: raise$1,
1144
- event
1142
+ event: typeof event === "function" ? event : toEventObject(event),
1143
+ delay: options ? options.delay : void 0,
1144
+ id: options === null || options === void 0 ? void 0 : options.id
1145
1145
  };
1146
1146
  }
1147
- function resolveRaise(action) {
1148
- return {
1149
- type: raise$1,
1150
- _event: toSCXMLEvent(action.event)
1147
+ function resolveRaise(action, ctx, _event, delaysMap) {
1148
+ var meta = {
1149
+ _event
1151
1150
  };
1151
+ var resolvedEvent = toSCXMLEvent(isFunction$4(action.event) ? action.event(ctx, _event.data, meta) : action.event);
1152
+ var resolvedDelay;
1153
+ if (isString(action.delay)) {
1154
+ var configDelay = delaysMap && delaysMap[action.delay];
1155
+ resolvedDelay = isFunction$4(configDelay) ? configDelay(ctx, _event.data, meta) : configDelay;
1156
+ } else {
1157
+ resolvedDelay = isFunction$4(action.delay) ? action.delay(ctx, _event.data, meta) : action.delay;
1158
+ }
1159
+ return __assign$1(__assign$1({}, action), {
1160
+ type: raise$1,
1161
+ _event: resolvedEvent,
1162
+ delay: resolvedDelay
1163
+ });
1152
1164
  }
1153
1165
  function send(event, options) {
1154
1166
  return {
@@ -1338,10 +1350,10 @@ var pluckAssigns = function(actionBlocks) {
1338
1350
  for (var actionBlocks_1 = __values(actionBlocks), actionBlocks_1_1 = actionBlocks_1.next(); !actionBlocks_1_1.done; actionBlocks_1_1 = actionBlocks_1.next()) {
1339
1351
  var block = actionBlocks_1_1.value;
1340
1352
  var i2 = 0;
1341
- while (i2 < block.length) {
1342
- if (block[i2].type === assign$2) {
1343
- assignActions.push(block[i2]);
1344
- block.splice(i2, 1);
1353
+ while (i2 < block.actions.length) {
1354
+ if (block.actions[i2].type === assign$2) {
1355
+ assignActions.push(block.actions[i2]);
1356
+ block.actions.splice(i2, 1);
1345
1357
  continue;
1346
1358
  }
1347
1359
  i2++;
@@ -1370,16 +1382,24 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1370
1382
  var updatedContext = assignActions.length ? updateContext(currentContext, _event, assignActions, currentState) : currentContext;
1371
1383
  var preservedContexts = preserveActionOrder ? [currentContext] : void 0;
1372
1384
  var deferredToBlockEnd = [];
1373
- function handleAction(actionObject) {
1385
+ function handleAction(blockType, actionObject) {
1374
1386
  var _a2;
1375
1387
  switch (actionObject.type) {
1376
1388
  case raise$1: {
1377
- return resolveRaise(actionObject);
1389
+ var raisedAction = resolveRaise(actionObject, updatedContext, _event, machine.options.delays);
1390
+ if (predictableExec && typeof raisedAction.delay === "number") {
1391
+ predictableExec(raisedAction, updatedContext, _event);
1392
+ }
1393
+ return raisedAction;
1378
1394
  }
1379
1395
  case send$1:
1380
1396
  var sendAction = resolveSend(actionObject, updatedContext, _event, machine.options.delays);
1381
1397
  if (predictableExec && sendAction.to !== SpecialTargets.Internal) {
1382
- deferredToBlockEnd.push(sendAction);
1398
+ if (blockType === "entry") {
1399
+ deferredToBlockEnd.push(sendAction);
1400
+ } else {
1401
+ predictableExec(sendAction, updatedContext, _event);
1402
+ }
1383
1403
  }
1384
1404
  return sendAction;
1385
1405
  case log$1: {
@@ -1396,7 +1416,10 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1396
1416
  if (!matchedActions) {
1397
1417
  return [];
1398
1418
  }
1399
- var _b = __read(resolveActions(machine, currentState, updatedContext, _event, [toActionObjects(toArray(matchedActions), machine.options.actions)], predictableExec, preserveActionOrder), 2), resolvedActionsFromChoose = _b[0], resolvedContextFromChoose = _b[1];
1419
+ var _b = __read(resolveActions(machine, currentState, updatedContext, _event, [{
1420
+ type: blockType,
1421
+ actions: toActionObjects(toArray(matchedActions), machine.options.actions)
1422
+ }], predictableExec, preserveActionOrder), 2), resolvedActionsFromChoose = _b[0], resolvedContextFromChoose = _b[1];
1400
1423
  updatedContext = resolvedContextFromChoose;
1401
1424
  preservedContexts === null || preservedContexts === void 0 ? void 0 : preservedContexts.push(updatedContext);
1402
1425
  return resolvedActionsFromChoose;
@@ -1406,7 +1429,10 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1406
1429
  if (!matchedActions) {
1407
1430
  return [];
1408
1431
  }
1409
- var _c = __read(resolveActions(machine, currentState, updatedContext, _event, [toActionObjects(toArray(matchedActions), machine.options.actions)], predictableExec, preserveActionOrder), 2), resolvedActionsFromPure = _c[0], resolvedContext = _c[1];
1432
+ var _c = __read(resolveActions(machine, currentState, updatedContext, _event, [{
1433
+ type: blockType,
1434
+ actions: toActionObjects(toArray(matchedActions), machine.options.actions)
1435
+ }], predictableExec, preserveActionOrder), 2), resolvedActionsFromPure = _c[0], resolvedContext = _c[1];
1410
1436
  updatedContext = resolvedContext;
1411
1437
  preservedContexts === null || preservedContexts === void 0 ? void 0 : preservedContexts.push(updatedContext);
1412
1438
  return resolvedActionsFromPure;
@@ -1428,7 +1454,7 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1428
1454
  predictableExec(resolvedActionObject, updatedContext, _event);
1429
1455
  } else if (exec_1 && preservedContexts) {
1430
1456
  var contextIndex_1 = preservedContexts.length - 1;
1431
- resolvedActionObject = __assign$1(__assign$1({}, resolvedActionObject), {
1457
+ var wrapped = __assign$1(__assign$1({}, resolvedActionObject), {
1432
1458
  exec: function(_ctx) {
1433
1459
  var args = [];
1434
1460
  for (var _i = 1; _i < arguments.length; _i++) {
@@ -1437,6 +1463,7 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1437
1463
  exec_1.apply(void 0, __spreadArray([preservedContexts[contextIndex_1]], __read(args), false));
1438
1464
  }
1439
1465
  });
1466
+ resolvedActionObject = wrapped;
1440
1467
  }
1441
1468
  return resolvedActionObject;
1442
1469
  }
@@ -1445,9 +1472,9 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1445
1472
  var e_2, _a2;
1446
1473
  var resolvedActions2 = [];
1447
1474
  try {
1448
- for (var block_1 = __values(block), block_1_1 = block_1.next(); !block_1_1.done; block_1_1 = block_1.next()) {
1449
- var action = block_1_1.value;
1450
- var resolved = handleAction(action);
1475
+ for (var _b = __values(block.actions), _c = _b.next(); !_c.done; _c = _b.next()) {
1476
+ var action = _c.value;
1477
+ var resolved = handleAction(block.type, action);
1451
1478
  if (resolved) {
1452
1479
  resolvedActions2 = resolvedActions2.concat(resolved);
1453
1480
  }
@@ -1458,8 +1485,8 @@ function resolveActions(machine, currentState, currentContext, _event, actionBlo
1458
1485
  };
1459
1486
  } finally {
1460
1487
  try {
1461
- if (block_1_1 && !block_1_1.done && (_a2 = block_1.return))
1462
- _a2.call(block_1);
1488
+ if (_c && !_c.done && (_a2 = _b.return))
1489
+ _a2.call(_b);
1463
1490
  } finally {
1464
1491
  if (e_2)
1465
1492
  throw e_2.error;
@@ -2211,7 +2238,7 @@ var Interpreter = /* @__PURE__ */ function() {
2211
2238
  };
2212
2239
  this.sendTo = function(event, to, immediate) {
2213
2240
  var isParent = _this.parent && (to === SpecialTargets.Parent || _this.parent.id === to);
2214
- var target = isParent ? _this.parent : isString(to) ? _this.children.get(to) || registry.get(to) : isActor$1(to) ? to : void 0;
2241
+ var target = isParent ? _this.parent : isString(to) ? to === SpecialTargets.Internal ? _this : _this.children.get(to) || registry.get(to) : isActor$1(to) ? to : void 0;
2215
2242
  if (!target) {
2216
2243
  if (!isParent) {
2217
2244
  throw new Error("Unable to send event to child '".concat(to, "' from service '").concat(_this.id, "'."));
@@ -2265,6 +2292,11 @@ var Interpreter = /* @__PURE__ */ function() {
2265
2292
  }
2266
2293
  }
2267
2294
  switch (action.type) {
2295
+ case raise$1: {
2296
+ var sendAction_1 = action;
2297
+ _this.defer(sendAction_1);
2298
+ break;
2299
+ }
2268
2300
  case send$1:
2269
2301
  var sendAction = action;
2270
2302
  if (typeof sendAction.delay === "number") {
@@ -2327,7 +2359,7 @@ var Interpreter = /* @__PURE__ */ function() {
2327
2359
  break;
2328
2360
  }
2329
2361
  case log$1:
2330
- var label = action.label, value = action.value;
2362
+ var _a2 = action, label = _a2.label, value = _a2.value;
2331
2363
  if (label) {
2332
2364
  _this.logger(label, value);
2333
2365
  } else {
@@ -2471,10 +2503,11 @@ var Interpreter = /* @__PURE__ */ function() {
2471
2503
  return sn.type === "final" && sn.parent === _this.machine;
2472
2504
  });
2473
2505
  var doneData = finalChildStateNode && finalChildStateNode.doneData ? mapContext(finalChildStateNode.doneData, state.context, _event) : void 0;
2506
+ this._doneEvent = doneInvoke(this.id, doneData);
2474
2507
  try {
2475
2508
  for (var _l = __values(this.doneListeners), _m = _l.next(); !_m.done; _m = _l.next()) {
2476
2509
  var listener = _m.value;
2477
- listener(doneInvoke(this.id, doneData));
2510
+ listener(this._doneEvent);
2478
2511
  }
2479
2512
  } catch (e_5_1) {
2480
2513
  e_5 = {
@@ -2491,6 +2524,7 @@ var Interpreter = /* @__PURE__ */ function() {
2491
2524
  }
2492
2525
  this._stop();
2493
2526
  this._stopChildren();
2527
+ registry.free(this.sessionId);
2494
2528
  }
2495
2529
  };
2496
2530
  Interpreter2.prototype.onTransition = function(listener) {
@@ -2543,7 +2577,11 @@ var Interpreter = /* @__PURE__ */ function() {
2543
2577
  return this;
2544
2578
  };
2545
2579
  Interpreter2.prototype.onDone = function(listener) {
2546
- this.doneListeners.add(listener);
2580
+ if (this.status === InterpreterStatus.Stopped && this._doneEvent) {
2581
+ listener(this._doneEvent);
2582
+ } else {
2583
+ this.doneListeners.add(listener);
2584
+ }
2547
2585
  return this;
2548
2586
  };
2549
2587
  Interpreter2.prototype.off = function(listener) {
@@ -2701,7 +2739,10 @@ var Interpreter = /* @__PURE__ */ function() {
2701
2739
  }).map(function(stateNode) {
2702
2740
  return toActionObjects(stateNode.onExit, _this.machine.options.actions);
2703
2741
  }));
2704
- var _a2 = __read(resolveActions(_this.machine, _this.state, _this.state.context, _event, [exitActions], _this.machine.config.predictableActionArguments ? _this._exec : void 0, _this.machine.config.predictableActionArguments || _this.machine.config.preserveActionOrder), 2), resolvedActions = _a2[0], updatedContext = _a2[1];
2742
+ var _a2 = __read(resolveActions(_this.machine, _this.state, _this.state.context, _event, [{
2743
+ type: "exit",
2744
+ actions: exitActions
2745
+ }], _this.machine.config.predictableActionArguments ? _this._exec : void 0, _this.machine.config.predictableActionArguments || _this.machine.config.preserveActionOrder), 2), resolvedActions = _a2[0], updatedContext = _a2[1];
2705
2746
  var newState = new State({
2706
2747
  value: _this.state.value,
2707
2748
  context: updatedContext,
@@ -2710,7 +2751,7 @@ var Interpreter = /* @__PURE__ */ function() {
2710
2751
  historyValue: void 0,
2711
2752
  history: _this.state,
2712
2753
  actions: resolvedActions.filter(function(action) {
2713
- return action.type !== raise$1 && (action.type !== send$1 || !!action.to && action.to !== SpecialTargets.Internal);
2754
+ return !isRaisableAction(action);
2714
2755
  }),
2715
2756
  activities: {},
2716
2757
  events: [],
@@ -2831,13 +2872,16 @@ var Interpreter = /* @__PURE__ */ function() {
2831
2872
  };
2832
2873
  Interpreter2.prototype.defer = function(sendAction) {
2833
2874
  var _this = this;
2834
- this.delayedEventsMap[sendAction.id] = this.clock.setTimeout(function() {
2835
- if (sendAction.to) {
2875
+ var timerId = this.clock.setTimeout(function() {
2876
+ if ("to" in sendAction && sendAction.to) {
2836
2877
  _this.sendTo(sendAction._event, sendAction.to, true);
2837
2878
  } else {
2838
2879
  _this.send(sendAction._event);
2839
2880
  }
2840
2881
  }, sendAction.delay);
2882
+ if (sendAction.id) {
2883
+ this.delayedEventsMap[sendAction.id] = timerId;
2884
+ }
2841
2885
  };
2842
2886
  Interpreter2.prototype.cancel = function(sendId) {
2843
2887
  this.clock.clearTimeout(this.delayedEventsMap[sendId]);
@@ -3630,15 +3674,11 @@ var StateNode = /* @__PURE__ */ function() {
3630
3674
  if (!willTransition) {
3631
3675
  return this.next(state, _event);
3632
3676
  }
3633
- var entryNodes = flatten(stateTransitions.map(function(t2) {
3634
- return t2.entrySet;
3635
- }));
3636
3677
  var configuration = flatten(Object.keys(transitionMap).map(function(key) {
3637
3678
  return transitionMap[key].configuration;
3638
3679
  }));
3639
3680
  return {
3640
3681
  transitions: enabledTransitions,
3641
- entrySet: entryNodes,
3642
3682
  exitSet: flatten(stateTransitions.map(function(t2) {
3643
3683
  return t2.exitSet;
3644
3684
  })),
@@ -3708,7 +3748,6 @@ var StateNode = /* @__PURE__ */ function() {
3708
3748
  if (!nextStateNodes.length) {
3709
3749
  return {
3710
3750
  transitions: [selectedTransition],
3711
- entrySet: [],
3712
3751
  exitSet: [],
3713
3752
  configuration: state.value ? [this] : [],
3714
3753
  source: state,
@@ -3719,24 +3758,23 @@ var StateNode = /* @__PURE__ */ function() {
3719
3758
  return _this.getRelativeStateNodes(stateNode, state.historyValue);
3720
3759
  }));
3721
3760
  var isInternal = !!selectedTransition.internal;
3722
- var reentryNodes = [];
3723
- if (!isInternal) {
3724
- nextStateNodes.forEach(function(targetNode) {
3725
- reentryNodes.push.apply(reentryNodes, __spreadArray([], __read(_this.getExternalReentryNodes(targetNode)), false));
3726
- });
3727
- }
3728
3761
  return {
3729
3762
  transitions: [selectedTransition],
3730
- entrySet: reentryNodes,
3731
- exitSet: isInternal ? [] : [this],
3763
+ exitSet: isInternal ? [] : flatten(nextStateNodes.map(function(targetNode) {
3764
+ return _this.getPotentiallyReenteringNodes(targetNode);
3765
+ })),
3732
3766
  configuration: allNextStateNodes,
3733
3767
  source: state,
3734
3768
  actions
3735
3769
  };
3736
3770
  };
3737
- StateNode2.prototype.getExternalReentryNodes = function(targetNode) {
3771
+ StateNode2.prototype.getPotentiallyReenteringNodes = function(targetNode) {
3772
+ if (this.order < targetNode.order) {
3773
+ return [this];
3774
+ }
3738
3775
  var nodes = [];
3739
- var _a2 = __read(targetNode.order > this.order ? [targetNode, this] : [this, targetNode], 2), marker = _a2[0], possibleAncestor = _a2[1];
3776
+ var marker = this;
3777
+ var possibleAncestor = targetNode;
3740
3778
  while (marker && marker !== possibleAncestor) {
3741
3779
  nodes.push(marker);
3742
3780
  marker = marker.parent;
@@ -3750,12 +3788,15 @@ var StateNode = /* @__PURE__ */ function() {
3750
3788
  StateNode2.prototype.getActions = function(resolvedConfig, isDone, transition, currentContext, _event, prevState, predictableExec) {
3751
3789
  var e_4, _a2, e_5, _b;
3752
3790
  var _this = this;
3753
- var prevConfig = getConfiguration([], prevState ? this.getStateNodes(prevState.value) : [this]);
3791
+ var prevConfig = prevState ? getConfiguration([], this.getStateNodes(prevState.value)) : [];
3792
+ var entrySet = /* @__PURE__ */ new Set();
3754
3793
  try {
3755
- for (var resolvedConfig_1 = __values(resolvedConfig), resolvedConfig_1_1 = resolvedConfig_1.next(); !resolvedConfig_1_1.done; resolvedConfig_1_1 = resolvedConfig_1.next()) {
3756
- var sn = resolvedConfig_1_1.value;
3757
- if (!has(prevConfig, sn) || has(transition.entrySet, sn.parent) && !has(transition.entrySet, sn)) {
3758
- transition.entrySet.push(sn);
3794
+ for (var _c = __values(Array.from(resolvedConfig).sort(function(a2, b2) {
3795
+ return a2.order - b2.order;
3796
+ })), _d = _c.next(); !_d.done; _d = _c.next()) {
3797
+ var sn = _d.value;
3798
+ if (!has(prevConfig, sn) || has(transition.exitSet, sn) || sn.parent && entrySet.has(sn.parent)) {
3799
+ entrySet.add(sn);
3759
3800
  }
3760
3801
  }
3761
3802
  } catch (e_4_1) {
@@ -3764,8 +3805,8 @@ var StateNode = /* @__PURE__ */ function() {
3764
3805
  };
3765
3806
  } finally {
3766
3807
  try {
3767
- if (resolvedConfig_1_1 && !resolvedConfig_1_1.done && (_a2 = resolvedConfig_1.return))
3768
- _a2.call(resolvedConfig_1);
3808
+ if (_d && !_d.done && (_a2 = _c.return))
3809
+ _a2.call(_c);
3769
3810
  } finally {
3770
3811
  if (e_4)
3771
3812
  throw e_4.error;
@@ -3791,7 +3832,14 @@ var StateNode = /* @__PURE__ */ function() {
3791
3832
  throw e_5.error;
3792
3833
  }
3793
3834
  }
3794
- var doneEvents = flatten(transition.entrySet.map(function(sn2) {
3835
+ transition.exitSet.sort(function(a2, b2) {
3836
+ return b2.order - a2.order;
3837
+ });
3838
+ var entryStates = Array.from(entrySet).sort(function(a2, b2) {
3839
+ return a2.order - b2.order;
3840
+ });
3841
+ var exitStates = new Set(transition.exitSet);
3842
+ var doneEvents = flatten(entryStates.map(function(sn2) {
3795
3843
  var events = [];
3796
3844
  if (sn2.type !== "final") {
3797
3845
  return events;
@@ -3814,36 +3862,45 @@ var StateNode = /* @__PURE__ */ function() {
3814
3862
  }
3815
3863
  return events;
3816
3864
  }));
3817
- transition.exitSet.sort(function(a2, b2) {
3818
- return b2.order - a2.order;
3819
- });
3820
- transition.entrySet.sort(function(a2, b2) {
3821
- return a2.order - b2.order;
3822
- });
3823
- var entryStates = new Set(transition.entrySet);
3824
- var exitStates = new Set(transition.exitSet);
3825
- var entryActions = Array.from(entryStates).map(function(stateNode) {
3865
+ var entryActions = entryStates.map(function(stateNode) {
3826
3866
  var entryActions2 = stateNode.onEntry;
3827
3867
  var invokeActions = stateNode.activities.map(function(activity) {
3828
3868
  return start(activity);
3829
3869
  });
3830
- return toActionObjects(predictableExec ? __spreadArray(__spreadArray([], __read(entryActions2), false), __read(invokeActions), false) : __spreadArray(__spreadArray([], __read(invokeActions), false), __read(entryActions2), false), _this.machine.options.actions);
3831
- }).concat([doneEvents.map(raise)]);
3870
+ return {
3871
+ type: "entry",
3872
+ actions: toActionObjects(predictableExec ? __spreadArray(__spreadArray([], __read(entryActions2), false), __read(invokeActions), false) : __spreadArray(__spreadArray([], __read(invokeActions), false), __read(entryActions2), false), _this.machine.options.actions)
3873
+ };
3874
+ }).concat({
3875
+ type: "state_done",
3876
+ actions: doneEvents.map(function(event) {
3877
+ return raise(event);
3878
+ })
3879
+ });
3832
3880
  var exitActions = Array.from(exitStates).map(function(stateNode) {
3833
- return toActionObjects(__spreadArray(__spreadArray([], __read(stateNode.onExit), false), __read(stateNode.activities.map(function(activity) {
3834
- return stop(activity);
3835
- })), false), _this.machine.options.actions);
3881
+ return {
3882
+ type: "exit",
3883
+ actions: toActionObjects(__spreadArray(__spreadArray([], __read(stateNode.onExit), false), __read(stateNode.activities.map(function(activity) {
3884
+ return stop(activity);
3885
+ })), false), _this.machine.options.actions)
3886
+ };
3836
3887
  });
3837
- var actions = exitActions.concat([toActionObjects(transition.actions, this.machine.options.actions)]).concat(entryActions);
3888
+ var actions = exitActions.concat({
3889
+ type: "transition",
3890
+ actions: toActionObjects(transition.actions, this.machine.options.actions)
3891
+ }).concat(entryActions);
3838
3892
  if (isDone) {
3839
3893
  var stopActions = toActionObjects(flatten(__spreadArray([], __read(resolvedConfig), false).sort(function(a2, b2) {
3840
3894
  return b2.order - a2.order;
3841
3895
  }).map(function(stateNode) {
3842
3896
  return stateNode.onExit;
3843
3897
  })), this.machine.options.actions).filter(function(action) {
3844
- return action.type !== raise$1 && (action.type !== send$1 || !!action.to && action.to !== SpecialTargets.Internal);
3898
+ return !isRaisableAction(action);
3899
+ });
3900
+ return actions.concat({
3901
+ type: "stop",
3902
+ actions: stopActions
3845
3903
  });
3846
- return actions.concat([stopActions]);
3847
3904
  }
3848
3905
  return actions;
3849
3906
  };
@@ -3868,7 +3925,6 @@ var StateNode = /* @__PURE__ */ function() {
3868
3925
  var stateTransition = this._transition(currentState.value, currentState, _event) || {
3869
3926
  transitions: [],
3870
3927
  configuration: [],
3871
- entrySet: [],
3872
3928
  exitSet: [],
3873
3929
  source: currentState,
3874
3930
  actions: []
@@ -3905,8 +3961,8 @@ var StateNode = /* @__PURE__ */ function() {
3905
3961
  for (var actionBlocks_1 = __values(actionBlocks), actionBlocks_1_1 = actionBlocks_1.next(); !actionBlocks_1_1.done; actionBlocks_1_1 = actionBlocks_1.next()) {
3906
3962
  var block = actionBlocks_1_1.value;
3907
3963
  try {
3908
- for (var block_1 = (e_7 = void 0, __values(block)), block_1_1 = block_1.next(); !block_1_1.done; block_1_1 = block_1.next()) {
3909
- var action = block_1_1.value;
3964
+ for (var _c = (e_7 = void 0, __values(block.actions)), _d = _c.next(); !_d.done; _d = _c.next()) {
3965
+ var action = _d.value;
3910
3966
  if (action.type === start$1) {
3911
3967
  activities[action.activity.id || action.activity.type] = action;
3912
3968
  } else if (action.type === stop$1) {
@@ -3919,8 +3975,8 @@ var StateNode = /* @__PURE__ */ function() {
3919
3975
  };
3920
3976
  } finally {
3921
3977
  try {
3922
- if (block_1_1 && !block_1_1.done && (_b = block_1.return))
3923
- _b.call(block_1);
3978
+ if (_d && !_d.done && (_b = _c.return))
3979
+ _b.call(_c);
3924
3980
  } finally {
3925
3981
  if (e_7)
3926
3982
  throw e_7.error;
@@ -3940,10 +3996,8 @@ var StateNode = /* @__PURE__ */ function() {
3940
3996
  throw e_6.error;
3941
3997
  }
3942
3998
  }
3943
- var _c = __read(resolveActions(this, currentState, context, _event, actionBlocks, predictableExec, this.machine.config.predictableActionArguments || this.machine.config.preserveActionOrder), 2), resolvedActions = _c[0], updatedContext = _c[1];
3944
- var _d = __read(partition(resolvedActions, function(action2) {
3945
- return action2.type === raise$1 || action2.type === send$1 && action2.to === SpecialTargets.Internal;
3946
- }), 2), raisedEvents = _d[0], nonRaisedActions = _d[1];
3999
+ var _e = __read(resolveActions(this, currentState, context, _event, actionBlocks, predictableExec, this.machine.config.predictableActionArguments || this.machine.config.preserveActionOrder), 2), resolvedActions = _e[0], updatedContext = _e[1];
4000
+ var _f = __read(partition(resolvedActions, isRaisableAction), 2), raisedEvents = _f[0], nonRaisedActions = _f[1];
3947
4001
  var invokeActions = resolvedActions.filter(function(action2) {
3948
4002
  var _a3;
3949
4003
  return action2.type === start$1 && ((_a3 = action2.activity) === null || _a3 === void 0 ? void 0 : _a3.type) === invoke;
@@ -4111,7 +4165,6 @@ var StateNode = /* @__PURE__ */ function() {
4111
4165
  var configuration = this.getStateNodes(stateValue);
4112
4166
  return this.resolveTransition({
4113
4167
  configuration,
4114
- entrySet: configuration,
4115
4168
  exitSet: [],
4116
4169
  transitions: [],
4117
4170
  source: void 0,
@@ -4407,7 +4460,7 @@ var StateNode = /* @__PURE__ */ function() {
4407
4460
  }();
4408
4461
  var warned = false;
4409
4462
  function createMachine(config, options) {
4410
- if (!IS_PRODUCTION && !config.predictableActionArguments && !warned) {
4463
+ if (!IS_PRODUCTION && !("predictableActionArguments" in config) && !warned) {
4411
4464
  warned = true;
4412
4465
  console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html");
4413
4466
  }
@@ -10770,7 +10823,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
10770
10823
  };
10771
10824
  }
10772
10825
  });
10773
- const VERSION = "3.1.14";
10826
+ const VERSION = "3.1.15";
10774
10827
  const _hoisted_1$1 = ["data-variation"];
10775
10828
  const _hoisted_2$1 = { "data-amplify-container": "" };
10776
10829
  const _hoisted_3$1 = ["data-amplify-router-content"];
@@ -15,7 +15,7 @@ export interface SignUpSetupReturnTypes {
15
15
  createAccountLabel: ComputedRef<string>;
16
16
  signUpButtonText: ComputedRef<string>;
17
17
  }
18
- export declare type InternalSlots = {
18
+ export type InternalSlots = {
19
19
  [name: string]: Slot | undefined;
20
20
  };
21
21
  export interface PrimitiveSlotReturnType {
@@ -32,7 +32,7 @@ export interface VerifyUserSetupReturnTypes {
32
32
  verifyText: ComputedRef<string>;
33
33
  defaultFormFieldOptions: DefaultFormFieldOptions;
34
34
  }
35
- export declare type InterpretService = Interpreter<AuthContext, any, AuthEvent, {
35
+ export type InterpretService = Interpreter<AuthContext, any, AuthEvent, {
36
36
  value: any;
37
37
  context: AuthContext;
38
38
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,MAAM,WAAW,sBAAsB;IACrC,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC5B,KAAK,EAAE,GAAG,CAAC;IACX,UAAU,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACrC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACxC,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACvC;AAED,oBAAY,aAAa,GAAG;IAC1B,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,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