jssm 5.85.11 → 5.86.1

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.
@@ -74,6 +74,7 @@ declare class Machine<mDT> {
74
74
  _has_post_exit_hooks: boolean;
75
75
  _has_post_global_action_hooks: boolean;
76
76
  _has_post_transition_hooks: boolean;
77
+ _allows_override: boolean;
77
78
  _post_hooks: Map<string, HookHandler<mDT>>;
78
79
  _post_named_hooks: Map<string, HookHandler<mDT>>;
79
80
  _post_entry_hooks: Map<string, HookHandler<mDT>>;
@@ -483,6 +484,12 @@ declare class Machine<mDT> {
483
484
  list_actions(): Array<StateType>;
484
485
  get uses_actions(): boolean;
485
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;
486
493
  all_themes(): FslTheme[];
487
494
  get themes(): FslTheme | FslTheme[];
488
495
  set themes(to: FslTheme | FslTheme[]);
package/dist/es6/jssm.js CHANGED
@@ -183,6 +183,7 @@ class Machine {
183
183
  this._has_post_global_action_hooks = false;
184
184
  this._has_post_transition_hooks = true;
185
185
  // no need for a boolean for single hooks, just test for undefinedness
186
+ this._allows_override = false;
186
187
  this._post_hooks = new Map();
187
188
  this._post_named_hooks = new Map();
188
189
  this._post_entry_hooks = new Map();
@@ -900,6 +901,14 @@ class Machine {
900
901
  get uses_forced_transitions() {
901
902
  return this._has_forced_transitions;
902
903
  }
904
+ /*********
905
+ *
906
+ * Check if a machine allows overriding state and data.
907
+ *
908
+ */
909
+ get allows_override() {
910
+ return this._allows_override === true;
911
+ }
903
912
  all_themes() {
904
913
  return [...theme_mapping.keys()]; // constructor sets this to "default" otherwise
905
914
  }
@@ -1,2 +1,2 @@
1
- const version = "5.85.11", build_time = 1663395098701;
1
+ const version = "5.86.1", build_time = 1668220727832;
2
2
  export { version, build_time };