jssm 5.162.7 → 5.162.9
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/README.md +7 -7
- package/custom-elements.json +24 -24
- package/dist/cdn/instance.js +5 -3
- package/dist/cdn/viz.js +1 -1
- package/dist/cli/fsl-export-system-prompt.cjs +27 -24
- package/dist/cli/fsl-render.cjs +1 -1
- package/dist/cli/fsl.cjs +1 -1
- package/dist/cli/lib.cjs +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/cm6/fsl_language.js +10 -14
- package/dist/deno/README.md +7 -7
- package/dist/deno/fence.d.ts +0 -1
- package/dist/deno/fsl_fence_highlight.d.ts +0 -4
- package/dist/deno/fsl_fence_render.d.ts +0 -8
- package/dist/deno/fsl_gif.d.ts +0 -8
- package/dist/deno/fsl_markdown_fence.d.ts +0 -5
- package/dist/deno/fsl_svg_patch.d.ts +0 -6
- package/dist/deno/fsl_walk.d.ts +0 -2
- package/dist/deno/jssm.d.ts +214 -503
- package/dist/deno/jssm.js +1 -1
- package/dist/deno/jssm_compiler.d.ts +1 -1
- package/dist/deno/jssm_constants.d.ts +0 -3
- package/dist/deno/jssm_intern.d.ts +0 -15
- package/dist/deno/jssm_theme.d.ts +2 -2
- package/dist/deno/jssm_types.d.ts +13 -34
- package/dist/deno/jssm_util.d.ts +20 -6
- package/dist/deno/jssm_viz.d.ts +5 -51
- package/dist/es6/cm6/fsl_language.d.ts +0 -2
- package/dist/fence/fence.js +2052 -1857
- package/dist/jssm.es5.cjs +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/dist/jssm.es6.mjs +1 -1
- package/dist/jssm_viz.cjs +1 -1
- package/dist/jssm_viz.iife.cjs +1 -1
- package/dist/jssm_viz.mjs +1 -1
- package/dist/wc/docs.define.js +0 -5
- package/dist/wc/docs.js +79 -43
- package/dist/wc/editor.define.js +0 -5
- package/dist/wc/editor.js +1 -7
- package/dist/wc/instance.define.js +0 -6
- package/dist/wc/instance.js +93 -115
- package/dist/wc/viz.define.js +0 -6
- package/dist/wc/viz.js +22 -36
- package/dist/wc/widgets.define.js +0 -5
- package/dist/wc/widgets.js +117 -95
- package/jssm.cli.d.cts +0 -8
- package/jssm.cli.d.ts +0 -8
- package/jssm.es5.d.cts +449 -808
- package/jssm.es6.d.ts +449 -808
- package/jssm.fence.d.ts +213 -508
- package/jssm_viz.es5.d.cts +216 -529
- package/jssm_viz.es6.d.ts +216 -529
- package/package.json +21 -11
package/README.md
CHANGED
|
@@ -18,10 +18,10 @@ 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.162.
|
|
21
|
+
* Generated for version 5.162.9 at 7/12/2026, 3:21:43 AM
|
|
22
22
|
|
|
23
23
|
-->
|
|
24
|
-
# jssm 5.162.
|
|
24
|
+
# jssm 5.162.9
|
|
25
25
|
|
|
26
26
|
[**Try the live editor**](https://stonecypher.github.io/jssm-viz-demo/graph_explorer.html) ·
|
|
27
27
|
[Documentation](https://stonecypher.github.io/jssm/docs/) ·
|
|
@@ -333,7 +333,7 @@ That decision shows up everywhere downstream:
|
|
|
333
333
|
or run `npm run benny` against your own machine.
|
|
334
334
|
|
|
335
335
|
- **More thoroughly tested than any other JavaScript state-machine
|
|
336
|
-
library.** 8,
|
|
336
|
+
library.** 8,151 tests at 100.0% line coverage
|
|
337
337
|
([report](https://coveralls.io/github/StoneCypher/jssm)), plus
|
|
338
338
|
fuzz testing via `fast-check`, with parser test data across ten natural
|
|
339
339
|
languages and Emoji.
|
|
@@ -466,11 +466,11 @@ If your contribution is missing here, please open an issue.
|
|
|
466
466
|
|
|
467
467
|
<br/>
|
|
468
468
|
|
|
469
|
-
***8,
|
|
469
|
+
***8,151 tests***, run 83,589 times.
|
|
470
470
|
|
|
471
|
-
- 7,
|
|
472
|
-
- 762 fuzz tests with
|
|
473
|
-
- 10,
|
|
471
|
+
- 7,389 specs with 100.0% coverage
|
|
472
|
+
- 762 fuzz tests with 47.9% coverage
|
|
473
|
+
- 10,882 TypeScript lines - 0.7 tests per line, 7.7 generated tests per line
|
|
474
474
|
|
|
475
475
|
[](https://github.com/StoneCypher/jssm/actions)
|
|
476
476
|
[](https://www.npmjs.com/package/jssm)
|
package/custom-elements.json
CHANGED
|
@@ -1309,7 +1309,7 @@
|
|
|
1309
1309
|
"text": "void"
|
|
1310
1310
|
}
|
|
1311
1311
|
},
|
|
1312
|
-
"description": "Recompute the machine-derived counts: local transitions out of the current\r\
|
|
1312
|
+
"description": "Recompute the machine-derived counts: local transitions out of the current\r\n state, and the global action / action-start / transition totals. Only\r\n called while a host is attached, so `_host` is non-null here."
|
|
1313
1313
|
}
|
|
1314
1314
|
],
|
|
1315
1315
|
"superclass": {
|
|
@@ -2266,7 +2266,7 @@
|
|
|
2266
2266
|
"name": "_overrides",
|
|
2267
2267
|
"privacy": "private",
|
|
2268
2268
|
"default": "new Map<string, boolean>()",
|
|
2269
|
-
"description": "Per-panel runtime visibility overrides set by the user via the toolbar\r\
|
|
2269
|
+
"description": "Per-panel runtime visibility overrides set by the user via the toolbar\r\n toggles; a slot absent here falls back to its mode-resolved base."
|
|
2270
2270
|
},
|
|
2271
2271
|
{
|
|
2272
2272
|
"kind": "field",
|
|
@@ -2276,7 +2276,7 @@
|
|
|
2276
2276
|
"text": "PanelMode"
|
|
2277
2277
|
},
|
|
2278
2278
|
"default": "'default'",
|
|
2279
|
-
"description": "Control-level default PanelMode; panelModes overrides it\r\
|
|
2279
|
+
"description": "Control-level default PanelMode; panelModes overrides it\r\n per panel. `default` shows only the editor + renderer; every other panel\r\n starts hidden and is opt-in.",
|
|
2280
2280
|
"attribute": "panel-mode",
|
|
2281
2281
|
"reflects": true
|
|
2282
2282
|
},
|
|
@@ -2288,7 +2288,7 @@
|
|
|
2288
2288
|
"text": "Record<string, PanelMode>"
|
|
2289
2289
|
},
|
|
2290
2290
|
"default": "{}",
|
|
2291
|
-
"description": "Per-panel PanelMode overrides (slot → mode), each overriding the\r\
|
|
2291
|
+
"description": "Per-panel PanelMode overrides (slot → mode), each overriding the\r\n control-level panelMode."
|
|
2292
2292
|
},
|
|
2293
2293
|
{
|
|
2294
2294
|
"kind": "field",
|
|
@@ -2298,7 +2298,7 @@
|
|
|
2298
2298
|
"text": "string[]"
|
|
2299
2299
|
},
|
|
2300
2300
|
"default": "[]",
|
|
2301
|
-
"description": "Panels the FSL \"requests\" — the embedder-set stand-in for the\r\
|
|
2301
|
+
"description": "Panels the FSL \"requests\" — the embedder-set stand-in for the\r\n editor-defaults-in-FSL mechanism (fsl#1334). `request`-mode panels listed\r\n here are shown; others fall back to the default."
|
|
2302
2302
|
},
|
|
2303
2303
|
{
|
|
2304
2304
|
"kind": "field",
|
|
@@ -2783,7 +2783,7 @@
|
|
|
2783
2783
|
"text": "void"
|
|
2784
2784
|
}
|
|
2785
2785
|
},
|
|
2786
|
-
"description": "Adopt the FSL's `editor: {}` panel request (fsl#1334): when the machine\r\
|
|
2786
|
+
"description": "Adopt the FSL's `editor: {}` panel request (fsl#1334): when the machine\r\n declares `panels`, drive requestedPanels from it so `request` panel\r\n mode honors the source. The embedder's value persists when the FSL is\r\n silent. Called after each (re)build, with `_machine` freshly assigned."
|
|
2787
2787
|
},
|
|
2788
2788
|
{
|
|
2789
2789
|
"kind": "method",
|
|
@@ -2876,7 +2876,7 @@
|
|
|
2876
2876
|
"description": "True when hook-log + data-inspector are rendered as side\r\ndocks (split layouts); they are then omitted from this stack."
|
|
2877
2877
|
}
|
|
2878
2878
|
],
|
|
2879
|
-
"description": "The stacked middle panels, shared by both layouts. The toolbar slot is\r\
|
|
2879
|
+
"description": "The stacked middle panels, shared by both layouts. The toolbar slot is\r\n rendered at the top of render. In split mode the `hook-log` (events)\r\n and `data-inspector` panels are lifted out into easing side docks, so\r\n `docked` is true there and they are skipped here to avoid duplicating\r\n their slots; `actions` instead lives here as a horizontal bar. The\r\n state-section + footer stay in render so the dynamic state-slot\r\n name binds at the top level."
|
|
2880
2880
|
}
|
|
2881
2881
|
],
|
|
2882
2882
|
"events": [
|
|
@@ -2953,7 +2953,7 @@
|
|
|
2953
2953
|
"text": "PanelMode"
|
|
2954
2954
|
},
|
|
2955
2955
|
"default": "'default'",
|
|
2956
|
-
"description": "Control-level default PanelMode; panelModes overrides it\r\
|
|
2956
|
+
"description": "Control-level default PanelMode; panelModes overrides it\r\n per panel. `default` shows only the editor + renderer; every other panel\r\n starts hidden and is opt-in.",
|
|
2957
2957
|
"fieldName": "panelMode"
|
|
2958
2958
|
}
|
|
2959
2959
|
],
|
|
@@ -4236,7 +4236,7 @@
|
|
|
4236
4236
|
}
|
|
4237
4237
|
}
|
|
4238
4238
|
],
|
|
4239
|
-
"description": "Set the theme mode (System/Light/Dark). The host applies the palette + drives\r\
|
|
4239
|
+
"description": "Set the theme mode (System/Light/Dark). The host applies the palette + drives\r\n the editor; the menu stays open so a theme can be picked in the same trip."
|
|
4240
4240
|
},
|
|
4241
4241
|
{
|
|
4242
4242
|
"kind": "method",
|
|
@@ -4255,7 +4255,7 @@
|
|
|
4255
4255
|
}
|
|
4256
4256
|
}
|
|
4257
4257
|
],
|
|
4258
|
-
"description": "Select a named theme from the host's registry. The theme-name buttons only\r\
|
|
4258
|
+
"description": "Select a named theme from the host's registry. The theme-name buttons only\r\n render when a host exists, so `_host` is non-null here."
|
|
4259
4259
|
},
|
|
4260
4260
|
{
|
|
4261
4261
|
"kind": "method",
|
|
@@ -4292,7 +4292,7 @@
|
|
|
4292
4292
|
}
|
|
4293
4293
|
}
|
|
4294
4294
|
],
|
|
4295
|
-
"description": "Set the active export destination; the menu stays open so a format can be\r\
|
|
4295
|
+
"description": "Set the active export destination; the menu stays open so a format can be\r\n chosen next."
|
|
4296
4296
|
},
|
|
4297
4297
|
{
|
|
4298
4298
|
"kind": "method",
|
|
@@ -4311,7 +4311,7 @@
|
|
|
4311
4311
|
}
|
|
4312
4312
|
}
|
|
4313
4313
|
],
|
|
4314
|
-
"description": "Emit `fsl-export` with the chosen format's content + the active destination.\r\
|
|
4314
|
+
"description": "Emit `fsl-export` with the chosen format's content + the active destination.\r\n The embedder performs the actual clipboard / file save."
|
|
4315
4315
|
},
|
|
4316
4316
|
{
|
|
4317
4317
|
"kind": "method",
|
|
@@ -4330,7 +4330,7 @@
|
|
|
4330
4330
|
}
|
|
4331
4331
|
}
|
|
4332
4332
|
],
|
|
4333
|
-
"description": "Fire a workspace-action intent (validate / lint) for the consumer to\r\
|
|
4333
|
+
"description": "Fire a workspace-action intent (validate / lint) for the consumer to\r\n fulfill — the toolbar presents the action; the embedder runs it. The\r\n current machine source rides along in the detail as a convenience. The\r\n buttons only render with a host, so `_host` is non-null here."
|
|
4334
4334
|
},
|
|
4335
4335
|
{
|
|
4336
4336
|
"kind": "method",
|
|
@@ -4396,34 +4396,34 @@
|
|
|
4396
4396
|
"exports": [
|
|
4397
4397
|
{
|
|
4398
4398
|
"kind": "js",
|
|
4399
|
-
"name": "
|
|
4399
|
+
"name": "embed_snippet_for",
|
|
4400
4400
|
"declaration": {
|
|
4401
|
-
"name": "
|
|
4401
|
+
"name": "embed_snippet_for",
|
|
4402
4402
|
"module": "src/ts/wc/fsl_toolbar_wc.ts"
|
|
4403
4403
|
}
|
|
4404
4404
|
},
|
|
4405
4405
|
{
|
|
4406
4406
|
"kind": "js",
|
|
4407
|
-
"name": "
|
|
4407
|
+
"name": "FslToolbar",
|
|
4408
4408
|
"declaration": {
|
|
4409
|
-
"name": "
|
|
4409
|
+
"name": "FslToolbar",
|
|
4410
4410
|
"module": "src/ts/wc/fsl_toolbar_wc.ts"
|
|
4411
4411
|
}
|
|
4412
4412
|
},
|
|
4413
4413
|
{
|
|
4414
4414
|
"kind": "js",
|
|
4415
|
-
"name": "
|
|
4415
|
+
"name": "fsl_from_permalink",
|
|
4416
4416
|
"declaration": {
|
|
4417
|
-
"name": "
|
|
4418
|
-
"module": "
|
|
4417
|
+
"name": "fsl_from_permalink",
|
|
4418
|
+
"module": "./fsl_permalink.js"
|
|
4419
4419
|
}
|
|
4420
4420
|
},
|
|
4421
4421
|
{
|
|
4422
4422
|
"kind": "js",
|
|
4423
|
-
"name": "
|
|
4423
|
+
"name": "permalink_for",
|
|
4424
4424
|
"declaration": {
|
|
4425
|
-
"name": "
|
|
4426
|
-
"module": "
|
|
4425
|
+
"name": "permalink_for",
|
|
4426
|
+
"module": "./fsl_permalink.js"
|
|
4427
4427
|
}
|
|
4428
4428
|
}
|
|
4429
4429
|
]
|
|
@@ -4578,7 +4578,7 @@
|
|
|
4578
4578
|
"type": {
|
|
4579
4579
|
"text": "HighlightOptions"
|
|
4580
4580
|
},
|
|
4581
|
-
"description": "Highlight styling; see {@link HighlightOptions}. Defaults\r\n * to crimson with off-trace fading enabled.\r\n
|
|
4581
|
+
"description": "Highlight styling; see {@link HighlightOptions}. Defaults\r\n * to crimson with off-trace fading enabled.\r\n * "
|
|
4582
4582
|
}
|
|
4583
4583
|
],
|
|
4584
4584
|
"description": "Programmatically highlights one execution trace (a path of state names)\r\nthrough the rendered graph, optionally fading everything off the path.\r\n\r\nMatches nodes by their Graphviz `<title>` (the state name) and edges by\r\nthe `from->to` title Graphviz emits, applying inline style overrides so\r\nthe highlight composes over — and is reversible against — the default\r\nrendering (see clearHighlights, which this calls first). No-ops\r\nwhen detached, before the first render, or given an empty trace.\r\n\r\n```typescript\r\n// Highlight a -> b -> c in green, without dimming the rest:\r\nviz.highlightTrace(['a', 'b', 'c'], { color: '#2e7d32', fadeOthers: false });\r\n```"
|