@statewalker/fsm-charts 0.1.9 → 0.1.11

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.
@@ -19,7 +19,8 @@ function getStateDescriptionRenderer({
19
19
  const rootStateFilter = getStateDescriptionFilter(splitHeader, rootStateKey);
20
20
  const rootDescription = findSection(docSections, rootStateFilter);
21
21
  if (!rootDescription) {
22
- return () => {
22
+ return (statesStack) => {
23
+ return void 0;
23
24
  };
24
25
  }
25
26
  for (const node of visitSectionNodes(rootDescription)) {
@@ -1008,6 +1008,15 @@ function shiftRanks(t, g, delta) {
1008
1008
  });
1009
1009
  }
1010
1010
 
1011
+ // src/graphlib/alg/dijkstra.js
1012
+ _.constant(1);
1013
+
1014
+ // src/graphlib/alg/floyd-warshall.js
1015
+ _.constant(1);
1016
+ function CycleException() {
1017
+ }
1018
+ CycleException.prototype = new Error();
1019
+
1011
1020
  // src/graphlib/alg/dfs.js
1012
1021
  function dfs(g, vs, order2) {
1013
1022
  if (!_.isArray(vs)) {
@@ -338,6 +338,7 @@ var BasisCurve = class {
338
338
  switch (this._point) {
339
339
  case 3:
340
340
  this.$point(this._x1, this._y1);
341
+ // falls through
341
342
  case 2:
342
343
  this._context.lineTo(this._x1, this._y1);
343
344
  break;
@@ -362,6 +363,7 @@ var BasisCurve = class {
362
363
  (5 * this._x0 + this._x1) / 6,
363
364
  (5 * this._y0 + this._y1) / 6
364
365
  );
366
+ // falls through
365
367
  default:
366
368
  this.$point(x, y);
367
369
  break;
@@ -1 +1 @@
1
- export { concatTransitionsToString, serializeProcessConfig, splitTransitionString, toFsmStateConfig } from './chunk-SLWDNGWK.js';
1
+ export { concatTransitionsToString, serializeProcessConfig, splitTransitionString, toFsmStateConfig } from './chunk-SVKVQY7B.js';
@@ -6,8 +6,8 @@ type DomSection = {
6
6
  declare function getStateDescriptionRenderer({ element, rootStateKey, splitHeader, }: {
7
7
  element: HTMLElement;
8
8
  rootStateKey: string;
9
- splitHeader: (header?: HTMLElement) => [stateKey: undefined | string, label: string];
10
- }): (() => void) | ((statesStack: string[]) => HTMLDivElement | undefined);
9
+ splitHeader?: (header?: HTMLElement) => [stateKey: undefined | string, label: string];
10
+ }): (statesStack: string[]) => HTMLDivElement | undefined;
11
11
  declare function visitDom(elm: Node): Iterable<Node>;
12
12
  declare function visitSectionNodes(section: DomSection): Iterable<Node>;
13
13
  declare function vistSections(root: DomSection, ignoreRoot?: boolean): Generator<DomSection>;
package/dist/index-dom.js CHANGED
@@ -1 +1 @@
1
- export { buildSections, findSection, getStateDescriptionRenderer, renderSections, visitDom, visitSectionNodes, vistSections } from './chunk-TZRPE2VD.js';
1
+ export { buildSections, findSection, getStateDescriptionRenderer, renderSections, visitDom, visitSectionNodes, vistSections } from './chunk-2OGGKHD6.js';
@@ -1,2 +1,2 @@
1
- export { activeStatesStyle, activeTransitionsStyle, buildStateDetailsStyle, buildStateDetailsStyleWithModifier, buildStatechartCss, buildStatechartStyles, buildStatechartStylesWithModifier, buildStatechartSvg, buildStatechartsPanel, selectedStatesStyle, selectedTransitionsStyle } from './chunk-2XPO6T2M.js';
1
+ export { activeStatesStyle, activeTransitionsStyle, buildStateDetailsStyle, buildStateDetailsStyleWithModifier, buildStatechartCss, buildStatechartStyles, buildStatechartStylesWithModifier, buildStatechartSvg, buildStatechartsPanel, selectedStatesStyle, selectedTransitionsStyle } from './chunk-SURKRLPB.js';
2
2
  import './chunk-FIQDLBWD.js';
@@ -1,2 +1,2 @@
1
- export { buildCharts, buildFlatCharts, getGraphParamsProvider, getLabelDimensions } from './chunk-U5LUJ7JS.js';
1
+ export { buildCharts, buildFlatCharts, getGraphParamsProvider, getLabelDimensions } from './chunk-HQZXOJPG.js';
2
2
  import './chunk-FIQDLBWD.js';
@@ -1 +1 @@
1
- export { RuntimeStatechartApi, StateChartIndex } from './chunk-FS3L6FBI.js';
1
+ export { RuntimeStatechartApi, StateChartIndex } from './chunk-N77KKO5K.js';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { buildSections, findSection, getStateDescriptionRenderer, renderSections, visitDom, visitSectionNodes, vistSections } from './chunk-TZRPE2VD.js';
2
- export { concatTransitionsToString, serializeProcessConfig, splitTransitionString, toFsmStateConfig } from './chunk-SLWDNGWK.js';
3
- export { buildCharts, buildFlatCharts, getGraphParamsProvider, getLabelDimensions } from './chunk-U5LUJ7JS.js';
4
- export { activeStatesStyle, activeTransitionsStyle, buildStateDetailsStyle, buildStateDetailsStyleWithModifier, buildStatechartCss, buildStatechartStyles, buildStatechartStylesWithModifier, buildStatechartSvg, buildStatechartsPanel, selectedStatesStyle, selectedTransitionsStyle, serializeCss, toKebabCase } from './chunk-2XPO6T2M.js';
1
+ export { concatTransitionsToString, serializeProcessConfig, splitTransitionString, toFsmStateConfig } from './chunk-SVKVQY7B.js';
2
+ export { buildSections, findSection, getStateDescriptionRenderer, renderSections, visitDom, visitSectionNodes, vistSections } from './chunk-2OGGKHD6.js';
3
+ export { activeStatesStyle, activeTransitionsStyle, buildStateDetailsStyle, buildStateDetailsStyleWithModifier, buildStatechartCss, buildStatechartStyles, buildStatechartStylesWithModifier, buildStatechartSvg, buildStatechartsPanel, selectedStatesStyle, selectedTransitionsStyle, serializeCss, toKebabCase } from './chunk-SURKRLPB.js';
4
+ export { buildCharts, buildFlatCharts, getGraphParamsProvider, getLabelDimensions } from './chunk-HQZXOJPG.js';
5
5
  import './chunk-FIQDLBWD.js';
6
- export { RuntimeStatechartApi, StateChartIndex } from './chunk-FS3L6FBI.js';
6
+ export { RuntimeStatechartApi, StateChartIndex } from './chunk-N77KKO5K.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statewalker/fsm-charts",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "HFSM Implementation",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/statewalker/statewalker-fsm-charts",
@@ -14,6 +14,7 @@
14
14
  "dist",
15
15
  "src"
16
16
  ],
17
+ "source": "./src/index.ts",
17
18
  "module": "./dist/index.js",
18
19
  "main": "./dist/index.js",
19
20
  "jsdelivr": "./dist/index.js",
@@ -21,14 +22,10 @@
21
22
  "types": "./dist/index.d.ts",
22
23
  "exports": {
23
24
  ".": {
25
+ "source": "./src/index.ts",
26
+ "types": "./dist/index.d.ts",
24
27
  "import": "./dist/index.js",
25
- "require": "./dist/index.js"
26
- },
27
- "./src": {
28
- "import": "./src"
29
- },
30
- "./src/index.ts": {
31
- "import": "./src/index.ts"
28
+ "default": "./dist/index.js"
32
29
  }
33
30
  },
34
31
  "devDependencies": {
@@ -60,9 +57,9 @@
60
57
  "lint": "eslint",
61
58
  "lint:fix": "yarn lint -- --fix",
62
59
  "test": "vitest --run",
63
- "test:watch": "vitest"
60
+ "test:watch": "vitest",
61
+ "prepublish": "yarn build"
64
62
  },
65
- "sideEffects": false,
66
63
  "publishConfig": {
67
64
  "access": "public"
68
65
  }
package/src/dom/index.ts CHANGED
@@ -24,7 +24,7 @@ export function getStateDescriptionRenderer({
24
24
  }: {
25
25
  element: HTMLElement;
26
26
  rootStateKey: string;
27
- splitHeader: (
27
+ splitHeader?: (
28
28
  header?: HTMLElement,
29
29
  ) => [stateKey: undefined | string, label: string];
30
30
  }) {
@@ -33,7 +33,9 @@ export function getStateDescriptionRenderer({
33
33
  const rootDescription = findSection(docSections, rootStateFilter);
34
34
 
35
35
  if (!rootDescription) {
36
- return () => {};
36
+ return (statesStack: string[]) => {
37
+ return undefined;
38
+ };
37
39
  }
38
40
 
39
41
  // Remove description nodes from DOM
File without changes
File without changes