jssm 5.60.3 → 5.61.2

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.d.ts CHANGED
@@ -42,6 +42,8 @@ declare class Machine<mDT> {
42
42
  _has_named_hooks: boolean;
43
43
  _has_entry_hooks: boolean;
44
44
  _has_exit_hooks: boolean;
45
+ _has_global_action_hooks: boolean;
46
+ _has_transition_hooks: boolean;
45
47
  _hooks: Map<string, Function>;
46
48
  _named_hooks: Map<string, Function>;
47
49
  _entry_hooks: Map<string, Function>;
@@ -106,6 +108,9 @@ declare class Machine<mDT> {
106
108
  hook_action(from: string, to: string, action: string, handler: HookHandler): Machine<mDT>;
107
109
  hook_global_action(action: string, handler: HookHandler): Machine<mDT>;
108
110
  hook_any_action(handler: HookHandler): Machine<mDT>;
111
+ hook_standard_transition(handler: HookHandler): Machine<mDT>;
112
+ hook_main_transition(handler: HookHandler): Machine<mDT>;
113
+ hook_forced_transition(handler: HookHandler): Machine<mDT>;
109
114
  hook_any_transition(handler: HookHandler): Machine<mDT>;
110
115
  hook_entry(to: string, handler: HookHandler): Machine<mDT>;
111
116
  hook_exit(from: string, handler: HookHandler): Machine<mDT>;
package/jssm_types.d.ts CHANGED
@@ -164,20 +164,14 @@ declare type HookDescriptionWithAction = {
164
164
  };
165
165
  declare type StandardTransitionHook = {
166
166
  kind: 'standard transition';
167
- from: string;
168
- to: string;
169
167
  handler: HookHandler;
170
168
  };
171
169
  declare type MainTransitionHook = {
172
170
  kind: 'main transition';
173
- from: string;
174
- to: string;
175
171
  handler: HookHandler;
176
172
  };
177
173
  declare type ForcedTransitionHook = {
178
174
  kind: 'forced transition';
179
- from: string;
180
- to: string;
181
175
  handler: HookHandler;
182
176
  };
183
177
  declare type AnyTransitionHook = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.60.3",
3
+ "version": "5.61.2",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },