jssm 5.85.5 → 5.85.8

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/jssm.d.ts CHANGED
@@ -1,61 +1,11 @@
1
1
  declare type StateType = string;
2
2
  import { JssmGenericState, JssmGenericConfig, JssmStateConfig, JssmTransition, JssmTransitionList, // JssmTransitionRule,
3
- JssmMachineInternalState, JssmParseTree, JssmStateDeclaration, JssmStateStyleKeyList, JssmArrow, JssmArrowDirection, JssmArrowKind, JssmLayout, JssmHistory, JssmSerialization, FslDirection, FslDirections, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult } from './jssm_types';
3
+ JssmMachineInternalState, JssmParseTree, JssmStateDeclaration, JssmStateStyleKeyList, JssmLayout, JssmHistory, JssmSerialization, FslDirection, FslDirections, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult } from './jssm_types';
4
+ import { arrow_direction, arrow_left_kind, arrow_right_kind } from './jssm_arrow';
4
5
  import { seq, unique, find_repeated, weighted_rand_select, weighted_sample_select, histograph, weighted_histo_key } from './jssm_util';
5
6
  import * as constants from './jssm_constants';
6
7
  declare const shapes: string[], gviz_shapes: string[], named_colors: string[];
7
- import { version } from './version';
8
- /*********
9
- *
10
- * Return the direction of an arrow - `right`, `left`, or `both`.
11
- *
12
- * ```typescript
13
- * import { arrow_direction } from 'jssm';
14
- *
15
- * arrow_direction('->'); // 'right'
16
- * arrow_direction('<~=>'); // 'both'
17
- * ```
18
- *
19
- * @param arrow The arrow to be evaluated
20
- *
21
- */
22
- declare function arrow_direction(arrow: JssmArrow): JssmArrowDirection;
23
- /*********
24
- *
25
- * Return the direction of an arrow - `right`, `left`, or `both`.
26
- *
27
- * ```typescript
28
- * import { arrow_left_kind } from 'jssm';
29
- *
30
- * arrow_left_kind('<-'); // 'legal'
31
- * arrow_left_kind('<='); // 'main'
32
- * arrow_left_kind('<~'); // 'forced'
33
- * arrow_left_kind('<->'); // 'legal'
34
- * arrow_left_kind('->'); // 'none'
35
- * ```
36
- *
37
- * @param arrow The arrow to be evaluated
38
- *
39
- */
40
- declare function arrow_left_kind(arrow: JssmArrow): JssmArrowKind;
41
- /*********
42
- *
43
- * Return the direction of an arrow - `right`, `left`, or `both`.
44
- *
45
- * ```typescript
46
- * import { arrow_left_kind } from 'jssm';
47
- *
48
- * arrow_left_kind('->'); // 'legal'
49
- * arrow_left_kind('=>'); // 'main'
50
- * arrow_left_kind('~>'); // 'forced'
51
- * arrow_left_kind('<->'); // 'legal'
52
- * arrow_left_kind('<-'); // 'none'
53
- * ```
54
- *
55
- * @param arrow The arrow to be evaluated
56
- *
57
- */
58
- declare function arrow_right_kind(arrow: JssmArrow): JssmArrowKind;
8
+ import { version, build_time } from './version';
59
9
  /*********
60
10
  *
61
11
  * This method wraps the parser call that comes from the peg grammar,
@@ -651,6 +601,7 @@ declare class Machine<mDT> {
651
601
  list_edges(): Array<JssmTransition<mDT>>;
652
602
  list_named_transitions(): Map<StateType, number>;
653
603
  list_actions(): Array<StateType>;
604
+ get uses_actions(): boolean;
654
605
  all_themes(): FslTheme[];
655
606
  get themes(): FslTheme | FslTheme[];
656
607
  set themes(to: FslTheme | FslTheme[]);
@@ -1237,4 +1188,4 @@ declare function is_hook_complex_result<mDT>(hr: unknown): hr is HookComplexResu
1237
1188
  declare function is_hook_rejection<mDT>(hr: HookResult<mDT>): boolean;
1238
1189
  declare function abstract_hook_step<mDT>(maybe_hook: HookHandler<mDT> | undefined, hook_args: HookContext<mDT>): HookComplexResult<mDT>;
1239
1190
  declare function deserialize<mDT>(machine_string: string, ser: JssmSerialization<mDT>): Machine<mDT>;
1240
- export { version, transfer_state_properties, Machine, deserialize, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind, seq, unique, find_repeated, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, constants, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step, state_style_condense, FslDirections };
1191
+ export { version, build_time, transfer_state_properties, Machine, deserialize, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind, seq, unique, find_repeated, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, constants, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step, state_style_condense, FslDirections };
@@ -0,0 +1,53 @@
1
+ import { JssmArrow, JssmArrowDirection, JssmArrowKind } from './jssm_types';
2
+ /*********
3
+ *
4
+ * Return the direction of an arrow - `right`, `left`, or `both`.
5
+ *
6
+ * ```typescript
7
+ * import { arrow_direction } from 'jssm';
8
+ *
9
+ * arrow_direction('->'); // 'right'
10
+ * arrow_direction('<~=>'); // 'both'
11
+ * ```
12
+ *
13
+ * @param arrow The arrow to be evaluated
14
+ *
15
+ */
16
+ declare function arrow_direction(arrow: JssmArrow): JssmArrowDirection;
17
+ /*********
18
+ *
19
+ * Return the direction of an arrow - `right`, `left`, or `both`.
20
+ *
21
+ * ```typescript
22
+ * import { arrow_left_kind } from 'jssm';
23
+ *
24
+ * arrow_left_kind('<-'); // 'legal'
25
+ * arrow_left_kind('<='); // 'main'
26
+ * arrow_left_kind('<~'); // 'forced'
27
+ * arrow_left_kind('<->'); // 'legal'
28
+ * arrow_left_kind('->'); // 'none'
29
+ * ```
30
+ *
31
+ * @param arrow The arrow to be evaluated
32
+ *
33
+ */
34
+ declare function arrow_left_kind(arrow: JssmArrow): JssmArrowKind;
35
+ /*********
36
+ *
37
+ * Return the direction of an arrow - `right`, `left`, or `both`.
38
+ *
39
+ * ```typescript
40
+ * import { arrow_left_kind } from 'jssm';
41
+ *
42
+ * arrow_left_kind('->'); // 'legal'
43
+ * arrow_left_kind('=>'); // 'main'
44
+ * arrow_left_kind('~>'); // 'forced'
45
+ * arrow_left_kind('<->'); // 'legal'
46
+ * arrow_left_kind('<-'); // 'none'
47
+ * ```
48
+ *
49
+ * @param arrow The arrow to be evaluated
50
+ *
51
+ */
52
+ declare function arrow_right_kind(arrow: JssmArrow): JssmArrowKind;
53
+ export { arrow_direction, arrow_left_kind, arrow_right_kind };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.85.5",
3
+ "version": "5.85.8",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },
@@ -31,7 +31,9 @@
31
31
  "jest-unicode-action": "jest unicode-actions.uspec.ts -c jest-unicode.config.js --color --verbose",
32
32
  "jest-unicode-string": "jest unicode-strings.uspec.ts -c jest-unicode.config.js --color --verbose",
33
33
  "jest-unicode-atom": "jest unicode-atoms.uspec.ts -c jest-unicode.config.js --color --verbose",
34
- "jest-unicode-full-slow": "npm run jest-unicode-atom && npm run jest-unicode-string && jest-unicode-action",
34
+ "jest-unicode-string-label": "jest unicode-atoms.uspec.ts -c jest-unicode.config.js --color --verbose",
35
+ "jest-unicode-atom-label": "jest unicode-atoms.uspec.ts -c jest-unicode.config.js --color --verbose",
36
+ "jest-unicode-full-slow": "npm run jest-unicode-atom && npm run jest-unicode-string && npm run jest-unicode-atom-label && npm run jest-unicode-string-label && jest-unicode-action",
35
37
  "jest-stoch": "jest -c jest-stoch.config.js --color --verbose",
36
38
  "jest-dragon": "jest -c jest-dragon.config.js --color --verbose",
37
39
  "jest-spec": "jest -c jest-spec.config.js --color --verbose",