jssm 5.85.10 → 5.86.0
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/CHANGELOG.md +54 -48
- package/README.md +2 -2
- package/dist/es6/jssm.d.ts +16 -2
- package/dist/es6/jssm.js +29 -8
- 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 +16 -2
- package/package.json +1 -1
package/jssm.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ declare class Machine<mDT> {
|
|
|
56
56
|
_has_exit_hooks: boolean;
|
|
57
57
|
_has_global_action_hooks: boolean;
|
|
58
58
|
_has_transition_hooks: boolean;
|
|
59
|
+
_has_forced_transitions: boolean;
|
|
59
60
|
_hooks: Map<string, HookHandler<mDT>>;
|
|
60
61
|
_named_hooks: Map<string, HookHandler<mDT>>;
|
|
61
62
|
_entry_hooks: Map<string, HookHandler<mDT>>;
|
|
@@ -73,6 +74,7 @@ declare class Machine<mDT> {
|
|
|
73
74
|
_has_post_exit_hooks: boolean;
|
|
74
75
|
_has_post_global_action_hooks: boolean;
|
|
75
76
|
_has_post_transition_hooks: boolean;
|
|
77
|
+
_allows_override: boolean;
|
|
76
78
|
_post_hooks: Map<string, HookHandler<mDT>>;
|
|
77
79
|
_post_named_hooks: Map<string, HookHandler<mDT>>;
|
|
78
80
|
_post_entry_hooks: Map<string, HookHandler<mDT>>;
|
|
@@ -481,6 +483,13 @@ declare class Machine<mDT> {
|
|
|
481
483
|
list_named_transitions(): Map<StateType, number>;
|
|
482
484
|
list_actions(): Array<StateType>;
|
|
483
485
|
get uses_actions(): boolean;
|
|
486
|
+
get uses_forced_transitions(): boolean;
|
|
487
|
+
/*********
|
|
488
|
+
*
|
|
489
|
+
* Check if a machine allows overriding state and data.
|
|
490
|
+
*
|
|
491
|
+
*/
|
|
492
|
+
get allows_override(): boolean;
|
|
484
493
|
all_themes(): FslTheme[];
|
|
485
494
|
get themes(): FslTheme | FslTheme[];
|
|
486
495
|
set themes(to: FslTheme | FslTheme[]);
|
|
@@ -511,7 +520,10 @@ declare class Machine<mDT> {
|
|
|
511
520
|
/********
|
|
512
521
|
*
|
|
513
522
|
* List all entrances attached to the current state. Please note that the
|
|
514
|
-
* order of the list is not defined.
|
|
523
|
+
* order of the list is not defined. This list includes both unforced and
|
|
524
|
+
* forced entrances; if this isn't desired, consider
|
|
525
|
+
* {@link list_unforced_entrances} or {@link list_forced_entrances} as
|
|
526
|
+
* appropriate.
|
|
515
527
|
*
|
|
516
528
|
* ```typescript
|
|
517
529
|
* import { sm } from 'jssm';
|
|
@@ -531,7 +543,9 @@ declare class Machine<mDT> {
|
|
|
531
543
|
/********
|
|
532
544
|
*
|
|
533
545
|
* List all exits attached to the current state. Please note that the order
|
|
534
|
-
* of the list is not defined.
|
|
546
|
+
* of the list is not defined. This list includes both unforced and forced
|
|
547
|
+
* exits; if this isn't desired, consider {@link list_unforced_exits} or
|
|
548
|
+
* {@link list_forced_exits} as appropriate.
|
|
535
549
|
*
|
|
536
550
|
* ```typescript
|
|
537
551
|
* import { sm } from 'jssm';
|