jssm 5.60.3 → 5.60.4
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/es6/jssm.d.ts +3 -0
- package/dist/es6/jssm.js +15 -0
- package/dist/es6/jssm_types.d.ts +0 -6
- package/dist/es6/version.js +1 -1
- package/dist/jssm.es5.cjs.js +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/jssm.d.ts +3 -0
- package/jssm_types.d.ts +0 -6
- package/package.json +1 -1
package/jssm.d.ts
CHANGED
|
@@ -106,6 +106,9 @@ declare class Machine<mDT> {
|
|
|
106
106
|
hook_action(from: string, to: string, action: string, handler: HookHandler): Machine<mDT>;
|
|
107
107
|
hook_global_action(action: string, handler: HookHandler): Machine<mDT>;
|
|
108
108
|
hook_any_action(handler: HookHandler): Machine<mDT>;
|
|
109
|
+
hook_standard_transition(handler: HookHandler): Machine<mDT>;
|
|
110
|
+
hook_main_transition(handler: HookHandler): Machine<mDT>;
|
|
111
|
+
hook_forced_transition(handler: HookHandler): Machine<mDT>;
|
|
109
112
|
hook_any_transition(handler: HookHandler): Machine<mDT>;
|
|
110
113
|
hook_entry(to: string, handler: HookHandler): Machine<mDT>;
|
|
111
114
|
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 = {
|