jssm 5.85.7 → 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
8
  import { version, build_time } 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;
59
9
  /*********
60
10
  *
61
11
  * This method wraps the parser call that comes from the peg grammar,
@@ -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.7",
3
+ "version": "5.85.8",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },