jssm 5.60.0 → 5.60.3
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 +2 -0
- package/dist/es6/jssm.js +28 -2
- package/dist/es6/jssm_types.d.ts +13 -1
- 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 +2 -0
- package/jssm_types.d.ts +13 -1
- package/package.json +1 -1
package/jssm.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ declare class Machine<mDT> {
|
|
|
49
49
|
_global_action_hooks: Map<string, Function>;
|
|
50
50
|
_any_action_hook: HookHandler | undefined;
|
|
51
51
|
_standard_transition_hook: HookHandler | undefined;
|
|
52
|
+
_main_transition_hook: HookHandler | undefined;
|
|
53
|
+
_forced_transition_hook: HookHandler | undefined;
|
|
52
54
|
_any_transition_hook: HookHandler | undefined;
|
|
53
55
|
constructor({ start_states, complete, transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, state_declaration, fsl_version, dot_preamble, arrange_declaration, arrange_start_declaration, arrange_end_declaration, theme, flow, graph_layout }: JssmGenericConfig<mDT>);
|
|
54
56
|
_new_state(state_config: JssmGenericState): StateType;
|
package/jssm_types.d.ts
CHANGED
|
@@ -168,6 +168,18 @@ declare type StandardTransitionHook = {
|
|
|
168
168
|
to: string;
|
|
169
169
|
handler: HookHandler;
|
|
170
170
|
};
|
|
171
|
+
declare type MainTransitionHook = {
|
|
172
|
+
kind: 'main transition';
|
|
173
|
+
from: string;
|
|
174
|
+
to: string;
|
|
175
|
+
handler: HookHandler;
|
|
176
|
+
};
|
|
177
|
+
declare type ForcedTransitionHook = {
|
|
178
|
+
kind: 'forced transition';
|
|
179
|
+
from: string;
|
|
180
|
+
to: string;
|
|
181
|
+
handler: HookHandler;
|
|
182
|
+
};
|
|
171
183
|
declare type AnyTransitionHook = {
|
|
172
184
|
kind: 'any transition';
|
|
173
185
|
handler: HookHandler;
|
|
@@ -191,5 +203,5 @@ declare type ExitHook = {
|
|
|
191
203
|
from: string;
|
|
192
204
|
handler: HookHandler;
|
|
193
205
|
};
|
|
194
|
-
declare type HookDescription = BasicHookDescription | HookDescriptionWithAction | GlobalActionHook | AnyActionHook | StandardTransitionHook | AnyTransitionHook | EntryHook | ExitHook;
|
|
206
|
+
declare type HookDescription = BasicHookDescription | HookDescriptionWithAction | GlobalActionHook | AnyActionHook | StandardTransitionHook | MainTransitionHook | ForcedTransitionHook | AnyTransitionHook | EntryHook | ExitHook;
|
|
195
207
|
export { JssmColor, JssmTransition, JssmTransitions, JssmTransitionList, JssmTransitionRule, JssmArrow, JssmArrowKind, JssmArrowDirection, JssmGenericConfig, JssmGenericState, JssmGenericMachine, JssmParseTree, JssmCompileSe, JssmCompileSeStart, JssmCompileRule, JssmPermitted, JssmPermittedOpt, JssmResult, JssmStateDeclaration, JssmStateDeclarationRule, JssmLayout, JssmParseFunctionType, JssmMachineInternalState, FslDirection, FslTheme, HookDescription, HookHandler };
|