jssm 5.81.0 → 5.81.2

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- 1031 merges; 148 releases; Changlogging the last 10 commits; Full changelog at [CHANGELOG.long.md](CHANGELOG.long.md)
5
+ 1033 merges; 148 releases; Changlogging the last 10 commits; Full changelog at [CHANGELOG.long.md](CHANGELOG.long.md)
6
6
 
7
7
 
8
8
 
@@ -18,6 +18,36 @@ Published tags:
18
18
 
19
19
 
20
20
 
21
+  
22
+
23
+  
24
+
25
+ ## [Untagged] - 8/11/2022 9:01:49 PM
26
+
27
+ Commit [df1dd4c1d190b6571cf43637183b831229793eba](https://github.com/StoneCypher/jssm/commit/df1dd4c1d190b6571cf43637183b831229793eba)
28
+
29
+ Author: `John Haugeland <stonecypher@gmail.com>`
30
+
31
+ * Small type changes preparing for theme
32
+
33
+
34
+
35
+
36
+ &nbsp;
37
+
38
+ &nbsp;
39
+
40
+ ## [Untagged] - 8/10/2022 11:32:42 PM
41
+
42
+ Commit [5162f2299530514aecba1bf78fbfe77910e3a417](https://github.com/StoneCypher/jssm/commit/5162f2299530514aecba1bf78fbfe77910e3a417)
43
+
44
+ Author: `John Haugeland <stonecypher@gmail.com>`
45
+
46
+ * Engine and parser support for label substitution (no viz yet,) fixes StoneCypher/fsl#117; fixes StoneCypher/fsl#263
47
+
48
+
49
+
50
+
21
51
  &nbsp;
22
52
 
23
53
  &nbsp;
@@ -145,34 +175,4 @@ Commit [89948de7b9857909a6132c95cd6019be08e82d18](https://github.com/StoneCypher
145
175
 
146
176
  Author: `John Haugeland <stonecypher@gmail.com>`
147
177
 
148
- * Semi-working implementation of style condensation, fixes StoneCypher/fsl#1141; added base stylesheet, fixes StoneCypher/fsl#1142
149
-
150
-
151
-
152
-
153
- &nbsp;
154
-
155
- &nbsp;
156
-
157
- ## [Untagged] - 8/2/2022 3:50:45 PM
158
-
159
- Commit [9001216af66f3fc719a406402d1d07f66cea465c](https://github.com/StoneCypher/jssm/commit/9001216af66f3fc719a406402d1d07f66cea465c)
160
-
161
- Author: `John Haugeland <stonecypher@gmail.com>`
162
-
163
- * Six style modalities exposed, fixes StoneCypher/fsl#1136, fixes StoneCypher/fsl#1137, fixes StoneCypher/fsl#1138, fixes StoneCypher/fsl#1139, fixes StoneCypher/fsl#1140
164
-
165
-
166
-
167
-
168
- &nbsp;
169
-
170
- &nbsp;
171
-
172
- ## [Untagged] - 8/1/2022 12:08:55 PM
173
-
174
- Commit [1c4fcaaf1b15087b8d2aaa4fcf08ee386fb7c90c](https://github.com/StoneCypher/jssm/commit/1c4fcaaf1b15087b8d2aaa4fcf08ee386fb7c90c)
175
-
176
- Author: `John Haugeland <stonecypher@gmail.com>`
177
-
178
- * all six state styles (start end standard hooked terminal current) now make it through to the machine, fixes StoneCypher/fsl#1131, fixes StoneCypher/fsl#1132, fixes StoneCypher/fsl#1133, fixes StoneCypher/fsl#1134, fixes StoneCypher/fsl#1135
178
+ * Semi-working implementation of style condensation, fixes StoneCypher/fsl#1141; added base stylesheet, fixes StoneCypher/fsl#1142
package/README.md CHANGED
@@ -18,7 +18,7 @@ Please edit the file it's derived from, instead: `./src/md/readme_base.md`
18
18
 
19
19
 
20
20
 
21
- * Generated for version 5.81.0 at 8/10/2022, 11:31:22 PM
21
+ * Generated for version 5.81.2 at 8/14/2022, 4:21:54 PM
22
22
 
23
23
  -->
24
24
  # jssm
@@ -29,7 +29,7 @@ share online. Easy to embed.
29
29
 
30
30
  Readable, useful state machines as one-liner strings.
31
31
 
32
- ***4,832 tests*** run 5,723 times. 4,823 specs with 100.0% coverage, 9 fuzz tests with 5.4% coverage. With 2,223 lines, that's about 2.2 tests per line, or 2.6 generated tests per line.
32
+ ***4,832 tests*** run 5,723 times. 4,823 specs with 100.0% coverage, 9 fuzz tests with 5.4% coverage. With 2,272 lines, that's about 2.1 tests per line, or 2.5 generated tests per line.
33
33
 
34
34
  ***Meet your new state machine library.***
35
35
 
@@ -1,4 +1,4 @@
1
- import { JssmStateConfig } from './jssm_types';
1
+ import { JssmStateConfig, JssmBaseTheme } from './jssm_types';
2
2
  declare const base_state_style: JssmStateConfig;
3
3
  declare const base_active_state_style: JssmStateConfig;
4
4
  declare const base_terminal_state_style: JssmStateConfig;
@@ -7,4 +7,5 @@ declare const base_start_state_style: JssmStateConfig;
7
7
  declare const base_active_start_state_style: JssmStateConfig;
8
8
  declare const base_end_state_style: JssmStateConfig;
9
9
  declare const base_active_end_state_style: JssmStateConfig;
10
- export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style };
10
+ declare const base_theme: JssmBaseTheme;
11
+ export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, base_theme };
@@ -8,6 +8,9 @@ const base_active_state_style = {
8
8
  textColor: 'white',
9
9
  backgroundColor: 'dodgerblue4'
10
10
  };
11
+ const base_hooked_state_style = {
12
+ shape: 'component'
13
+ };
11
14
  const base_terminal_state_style = {
12
15
  textColor: 'white',
13
16
  backgroundColor: 'crimson'
@@ -22,6 +25,9 @@ const base_start_state_style = {
22
25
  const base_active_start_state_style = {
23
26
  backgroundColor: 'yellowgreen'
24
27
  };
28
+ const base_active_hooked_state_style = {
29
+ backgroundColor: 'yellowgreen'
30
+ };
25
31
  const base_end_state_style = {
26
32
  textColor: 'white',
27
33
  backgroundColor: 'darkolivegreen'
@@ -30,4 +36,22 @@ const base_active_end_state_style = {
30
36
  textColor: 'white',
31
37
  backgroundColor: 'darkgreen'
32
38
  };
33
- export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style };
39
+ const base_theme = {
40
+ state: base_state_style,
41
+ start: base_start_state_style,
42
+ end: base_end_state_style,
43
+ terminal: base_terminal_state_style,
44
+ hooked: base_hooked_state_style,
45
+ active: base_active_state_style,
46
+ active_start: base_active_start_state_style,
47
+ active_end: base_active_end_state_style,
48
+ active_terminal: base_active_terminal_state_style,
49
+ active_hooked: base_active_hooked_state_style,
50
+ legal: undefined,
51
+ main: undefined,
52
+ forced: undefined,
53
+ action: undefined,
54
+ graph: undefined,
55
+ title: undefined // TODO FIXME
56
+ };
57
+ export { base_state_style, base_active_state_style, base_terminal_state_style, base_active_terminal_state_style, base_start_state_style, base_active_start_state_style, base_end_state_style, base_active_end_state_style, base_theme };
@@ -151,6 +151,25 @@ declare type JssmStateStyleBorderColor = {
151
151
  };
152
152
  declare type JssmStateStyleKey = JssmStateStyleShape | JssmStateStyleColor | JssmStateStyleTextColor | JssmStateStyleCorners | JssmStateStyleLineStyle | JssmStateStyleBackgroundColor | JssmStateStyleStateLabel | JssmStateStyleBorderColor;
153
153
  declare type JssmStateStyleKeyList = JssmStateStyleKey[];
154
+ declare type JssmBaseTheme = {
155
+ state: JssmStateConfig;
156
+ hooked: JssmStateConfig;
157
+ start: JssmStateConfig;
158
+ end: JssmStateConfig;
159
+ terminal: JssmStateConfig;
160
+ active: JssmStateConfig;
161
+ active_hooked: JssmStateConfig;
162
+ active_start: JssmStateConfig;
163
+ active_end: JssmStateConfig;
164
+ active_terminal: JssmStateConfig;
165
+ graph: undefined;
166
+ legal: undefined;
167
+ main: undefined;
168
+ forced: undefined;
169
+ action: undefined;
170
+ title: undefined;
171
+ };
172
+ declare type JssmTheme = Partial<JssmBaseTheme>;
154
173
  declare type JssmGenericConfig<DataType> = {
155
174
  graph_layout?: JssmLayout;
156
175
  complete?: Array<StateType>;
@@ -332,4 +351,4 @@ declare type JssmErrorExtendedInfo = {
332
351
  requested_state?: StateType | undefined;
333
352
  };
334
353
  declare type JssmHistory<mDT> = circular_buffer<[StateType, mDT]>;
335
- export { JssmColor, JssmShape, JssmTransition, JssmTransitions, JssmTransitionList, JssmTransitionRule, JssmArrow, JssmArrowKind, JssmArrowDirection, JssmGenericConfig, JssmGenericState, JssmGenericMachine, JssmParseTree, JssmCompileSe, JssmCompileSeStart, JssmCompileRule, JssmPermitted, JssmPermittedOpt, JssmResult, JssmStateDeclaration, JssmStateDeclarationRule, JssmStateConfig, JssmStateStyleKey, JssmStateStyleKeyList, JssmLayout, JssmHistory, JssmSerialization, JssmPropertyDefinition, JssmParseFunctionType, JssmMachineInternalState, JssmErrorExtendedInfo, FslDirection, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult };
354
+ export { JssmColor, JssmShape, JssmTransition, JssmTransitions, JssmTransitionList, JssmTransitionRule, JssmArrow, JssmArrowKind, JssmArrowDirection, JssmGenericConfig, JssmGenericState, JssmGenericMachine, JssmParseTree, JssmCompileSe, JssmCompileSeStart, JssmCompileRule, JssmPermitted, JssmPermittedOpt, JssmResult, JssmStateDeclaration, JssmStateDeclarationRule, JssmStateConfig, JssmStateStyleKey, JssmStateStyleKeyList, JssmBaseTheme, JssmTheme, JssmLayout, JssmHistory, JssmSerialization, JssmPropertyDefinition, JssmParseFunctionType, JssmMachineInternalState, JssmErrorExtendedInfo, FslDirection, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult };
@@ -1,2 +1,2 @@
1
- const version = "5.81.0";
1
+ const version = "5.81.2";
2
2
  export { version };