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/dist/es6/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/dist/es6/jssm.js
CHANGED
|
@@ -781,6 +781,21 @@ class Machine {
|
|
|
781
781
|
this.set_hook({ kind: 'any action', handler });
|
|
782
782
|
return this;
|
|
783
783
|
}
|
|
784
|
+
hook_standard_transition(handler) {
|
|
785
|
+
// TODO: should this throw if setting the hook fails, or ignore it and continue?
|
|
786
|
+
this.set_hook({ kind: 'standard transition', handler });
|
|
787
|
+
return this;
|
|
788
|
+
}
|
|
789
|
+
hook_main_transition(handler) {
|
|
790
|
+
// TODO: should this throw if setting the hook fails, or ignore it and continue?
|
|
791
|
+
this.set_hook({ kind: 'main transition', handler });
|
|
792
|
+
return this;
|
|
793
|
+
}
|
|
794
|
+
hook_forced_transition(handler) {
|
|
795
|
+
// TODO: should this throw if setting the hook fails, or ignore it and continue?
|
|
796
|
+
this.set_hook({ kind: 'forced transition', handler });
|
|
797
|
+
return this;
|
|
798
|
+
}
|
|
784
799
|
hook_any_transition(handler) {
|
|
785
800
|
// TODO: should this throw if setting the hook fails, or ignore it and continue?
|
|
786
801
|
this.set_hook({ kind: 'any transition', handler });
|
package/dist/es6/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/dist/es6/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.60.
|
|
1
|
+
const version = "5.60.4";
|
|
2
2
|
export { version };
|