jssm 5.141.5 → 5.141.8

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/jssm.es5.d.cts CHANGED
@@ -2706,6 +2706,33 @@ declare class Machine<mDT> {
2706
2706
  *
2707
2707
  */
2708
2708
  override(newState: StateType, newData?: mDT | undefined): void;
2709
+ /*********
2710
+ *
2711
+ * Fire a `'rejection'` event caused by a hook vetoing a pending transition.
2712
+ * Extracted from the per-call closures inside {@link transition_impl} so
2713
+ * that it is allocated once at class-definition time rather than on every
2714
+ * hooked transition.
2715
+ *
2716
+ * @param hook_name Name of the hook that rejected (e.g. `'exit'`).
2717
+ * @param fromState State the machine was in when the transition was
2718
+ * attempted; used as the `from` field of the rejection event.
2719
+ * @param newState State that would have been entered had the hook
2720
+ * passed; used as the `to` field of the rejection event.
2721
+ * @param fromAction Action name when the transition was initiated by an
2722
+ * action call; `undefined` for plain state transitions.
2723
+ * @param oldData Machine data at the moment the transition was
2724
+ * attempted, before any hook mutations.
2725
+ * @param newData The `next_data` value passed to the transition call.
2726
+ * @param wasForced Whether the transition was attempted via
2727
+ * `force_transition`.
2728
+ *
2729
+ * @see transition_impl
2730
+ * @see _fire
2731
+ *
2732
+ * @internal
2733
+ *
2734
+ */
2735
+ _fire_hook_rejection(hook_name: string, fromState: StateType, newState: StateType, fromAction: StateType | undefined, oldData: mDT, newData: mDT | undefined, wasForced: boolean): void;
2709
2736
  /*********
2710
2737
  *
2711
2738
  * Shared transition core used by {@link transition}, {@link force_transition},
package/jssm.es6.d.ts CHANGED
@@ -2706,6 +2706,33 @@ declare class Machine<mDT> {
2706
2706
  *
2707
2707
  */
2708
2708
  override(newState: StateType, newData?: mDT | undefined): void;
2709
+ /*********
2710
+ *
2711
+ * Fire a `'rejection'` event caused by a hook vetoing a pending transition.
2712
+ * Extracted from the per-call closures inside {@link transition_impl} so
2713
+ * that it is allocated once at class-definition time rather than on every
2714
+ * hooked transition.
2715
+ *
2716
+ * @param hook_name Name of the hook that rejected (e.g. `'exit'`).
2717
+ * @param fromState State the machine was in when the transition was
2718
+ * attempted; used as the `from` field of the rejection event.
2719
+ * @param newState State that would have been entered had the hook
2720
+ * passed; used as the `to` field of the rejection event.
2721
+ * @param fromAction Action name when the transition was initiated by an
2722
+ * action call; `undefined` for plain state transitions.
2723
+ * @param oldData Machine data at the moment the transition was
2724
+ * attempted, before any hook mutations.
2725
+ * @param newData The `next_data` value passed to the transition call.
2726
+ * @param wasForced Whether the transition was attempted via
2727
+ * `force_transition`.
2728
+ *
2729
+ * @see transition_impl
2730
+ * @see _fire
2731
+ *
2732
+ * @internal
2733
+ *
2734
+ */
2735
+ _fire_hook_rejection(hook_name: string, fromState: StateType, newState: StateType, fromAction: StateType | undefined, oldData: mDT, newData: mDT | undefined, wasForced: boolean): void;
2709
2736
  /*********
2710
2737
  *
2711
2738
  * Shared transition core used by {@link transition}, {@link force_transition},
@@ -2104,6 +2104,33 @@ declare class Machine<mDT> {
2104
2104
  *
2105
2105
  */
2106
2106
  override(newState: StateType, newData?: mDT | undefined): void;
2107
+ /*********
2108
+ *
2109
+ * Fire a `'rejection'` event caused by a hook vetoing a pending transition.
2110
+ * Extracted from the per-call closures inside {@link transition_impl} so
2111
+ * that it is allocated once at class-definition time rather than on every
2112
+ * hooked transition.
2113
+ *
2114
+ * @param hook_name Name of the hook that rejected (e.g. `'exit'`).
2115
+ * @param fromState State the machine was in when the transition was
2116
+ * attempted; used as the `from` field of the rejection event.
2117
+ * @param newState State that would have been entered had the hook
2118
+ * passed; used as the `to` field of the rejection event.
2119
+ * @param fromAction Action name when the transition was initiated by an
2120
+ * action call; `undefined` for plain state transitions.
2121
+ * @param oldData Machine data at the moment the transition was
2122
+ * attempted, before any hook mutations.
2123
+ * @param newData The `next_data` value passed to the transition call.
2124
+ * @param wasForced Whether the transition was attempted via
2125
+ * `force_transition`.
2126
+ *
2127
+ * @see transition_impl
2128
+ * @see _fire
2129
+ *
2130
+ * @internal
2131
+ *
2132
+ */
2133
+ _fire_hook_rejection(hook_name: string, fromState: StateType, newState: StateType, fromAction: StateType | undefined, oldData: mDT, newData: mDT | undefined, wasForced: boolean): void;
2107
2134
  /*********
2108
2135
  *
2109
2136
  * Shared transition core used by {@link transition}, {@link force_transition},
package/jssm_viz.es6.d.ts CHANGED
@@ -2104,6 +2104,33 @@ declare class Machine<mDT> {
2104
2104
  *
2105
2105
  */
2106
2106
  override(newState: StateType, newData?: mDT | undefined): void;
2107
+ /*********
2108
+ *
2109
+ * Fire a `'rejection'` event caused by a hook vetoing a pending transition.
2110
+ * Extracted from the per-call closures inside {@link transition_impl} so
2111
+ * that it is allocated once at class-definition time rather than on every
2112
+ * hooked transition.
2113
+ *
2114
+ * @param hook_name Name of the hook that rejected (e.g. `'exit'`).
2115
+ * @param fromState State the machine was in when the transition was
2116
+ * attempted; used as the `from` field of the rejection event.
2117
+ * @param newState State that would have been entered had the hook
2118
+ * passed; used as the `to` field of the rejection event.
2119
+ * @param fromAction Action name when the transition was initiated by an
2120
+ * action call; `undefined` for plain state transitions.
2121
+ * @param oldData Machine data at the moment the transition was
2122
+ * attempted, before any hook mutations.
2123
+ * @param newData The `next_data` value passed to the transition call.
2124
+ * @param wasForced Whether the transition was attempted via
2125
+ * `force_transition`.
2126
+ *
2127
+ * @see transition_impl
2128
+ * @see _fire
2129
+ *
2130
+ * @internal
2131
+ *
2132
+ */
2133
+ _fire_hook_rejection(hook_name: string, fromState: StateType, newState: StateType, fromAction: StateType | undefined, oldData: mDT, newData: mDT | undefined, wasForced: boolean): void;
2107
2134
  /*********
2108
2135
  *
2109
2136
  * Shared transition core used by {@link transition}, {@link force_transition},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.141.5",
3
+ "version": "5.141.8",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },