jssm 5.162.2 → 5.162.3
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 +2 -2
- package/dist/cdn/instance.js +1 -1
- package/dist/cdn/viz.js +1 -1
- package/dist/cli/fsl-export-system-prompt.cjs +1 -1
- 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/deno/README.md +2 -2
- package/dist/deno/jssm.d.ts +14 -13
- package/dist/deno/jssm.js +1 -1
- package/dist/deno/jssm_compiler.d.ts +1 -1
- package/dist/deno/jssm_types.d.ts +17 -17
- package/dist/deno/jssm_viz.d.ts +1 -1
- package/dist/fence/fence.js +11 -11
- 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/jssm.es5.d.cts +30 -29
- package/jssm.es6.d.ts +30 -29
- package/jssm.fence.d.ts +29 -28
- package/jssm_viz.es5.d.cts +30 -29
- package/jssm_viz.es6.d.ts +30 -29
- package/package.json +1 -1
package/dist/deno/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.3 at 7/10/2026, 6:50:14 AM
|
|
22
22
|
|
|
23
23
|
-->
|
|
24
|
-
# jssm 5.162.
|
|
24
|
+
# jssm 5.162.3
|
|
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/) ·
|
package/dist/deno/jssm.d.ts
CHANGED
|
@@ -573,7 +573,7 @@ declare class Machine<mDT> {
|
|
|
573
573
|
* Serialize the current machine, including all defining state but not the
|
|
574
574
|
* machine string, to a structure. This means you will need the machine
|
|
575
575
|
* string to recreate (to not waste repeated space;) if you want the machine
|
|
576
|
-
* string embedded, call
|
|
576
|
+
* string embedded, call `serialize_with_string` instead.
|
|
577
577
|
*
|
|
578
578
|
* @typeParam mDT The type of the machine data member; usually omitted
|
|
579
579
|
*
|
|
@@ -960,7 +960,7 @@ declare class Machine<mDT> {
|
|
|
960
960
|
* List all entrances attached to the current state. Please note that the
|
|
961
961
|
* order of the list is not defined. This list includes both unforced and
|
|
962
962
|
* forced entrances; if this isn't desired, consider
|
|
963
|
-
*
|
|
963
|
+
* `list_unforced_entrances` or `list_forced_entrances` as
|
|
964
964
|
* appropriate.
|
|
965
965
|
*
|
|
966
966
|
* ```typescript
|
|
@@ -982,8 +982,8 @@ declare class Machine<mDT> {
|
|
|
982
982
|
*
|
|
983
983
|
* List all exits attached to the current state. Please note that the order
|
|
984
984
|
* of the list is not defined. This list includes both unforced and forced
|
|
985
|
-
* exits; if this isn't desired, consider
|
|
986
|
-
*
|
|
985
|
+
* exits; if this isn't desired, consider `list_unforced_exits` or
|
|
986
|
+
* `list_forced_exits` as appropriate.
|
|
987
987
|
*
|
|
988
988
|
* ```typescript
|
|
989
989
|
* import { sm } from 'jssm';
|
|
@@ -1358,9 +1358,9 @@ declare class Machine<mDT> {
|
|
|
1358
1358
|
*
|
|
1359
1359
|
* @typeParam Ev The event name (drives the detail type).
|
|
1360
1360
|
* @param name The event name to subscribe to.
|
|
1361
|
-
* @param
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1361
|
+
* @param handler The handler invoked on each matching delivery. The
|
|
1362
|
+
* three-argument `(name, filter, handler)` form inserts a
|
|
1363
|
+
* filter object before the handler (see the example above).
|
|
1364
1364
|
* @returns A function that unsubscribes when called.
|
|
1365
1365
|
*
|
|
1366
1366
|
* @see Machine.off
|
|
@@ -1379,8 +1379,9 @@ declare class Machine<mDT> {
|
|
|
1379
1379
|
*
|
|
1380
1380
|
* @typeParam Ev The event name.
|
|
1381
1381
|
* @param name The event name.
|
|
1382
|
-
* @param
|
|
1383
|
-
*
|
|
1382
|
+
* @param handler The handler invoked on the first matching delivery. The
|
|
1383
|
+
* three-argument `(name, filter, handler)` form inserts a
|
|
1384
|
+
* filter object before the handler (same shapes as `on`).
|
|
1384
1385
|
* @returns A function that unsubscribes early if called before the
|
|
1385
1386
|
* handler has fired.
|
|
1386
1387
|
*
|
|
@@ -2337,7 +2338,7 @@ declare class Machine<mDT> {
|
|
|
2337
2338
|
* state's declaration into a fresh {@link JssmStateConfig} — the tier-5
|
|
2338
2339
|
* "`state foo : { … }`" contribution of the config cascade. A state with no
|
|
2339
2340
|
* declaration yields an all-`undefined` config (which contributes nothing
|
|
2340
|
-
* once folded with
|
|
2341
|
+
* once folded with `merge_state_config`).
|
|
2341
2342
|
*
|
|
2342
2343
|
* @param state The state whose per-state declared style is wanted.
|
|
2343
2344
|
*
|
|
@@ -2377,7 +2378,7 @@ declare class Machine<mDT> {
|
|
|
2377
2378
|
* overlay (tier 6) is NOT applied here; it is layered on top by
|
|
2378
2379
|
* {@link resolve_state_config} so it wins over per-state config.
|
|
2379
2380
|
*
|
|
2380
|
-
* Tiers, folded least-specific → most-specific with
|
|
2381
|
+
* Tiers, folded least-specific → most-specific with `merge_state_config`
|
|
2381
2382
|
* (later wins, never throwing on a cross-tier key collision):
|
|
2382
2383
|
*
|
|
2383
2384
|
* 1. theme defaults — `base_theme.state`, then each selected theme's
|
|
@@ -2409,7 +2410,7 @@ declare class Machine<mDT> {
|
|
|
2409
2410
|
* successor to the ad-hoc layer merge {@link style_for} used to perform.
|
|
2410
2411
|
*
|
|
2411
2412
|
* For any state OTHER than the current one, this returns the memoized static
|
|
2412
|
-
* resolution (tiers 1–5; see
|
|
2413
|
+
* resolution (tiers 1–5; see `_compose_state_config`) — theme →
|
|
2413
2414
|
* `default_state_config` → per-kind defaults → depth-ordered group metadata →
|
|
2414
2415
|
* per-state config. The cache is keyed by state and never invalidated, since
|
|
2415
2416
|
* those tiers do not depend on which state is current.
|
|
@@ -2419,7 +2420,7 @@ declare class Machine<mDT> {
|
|
|
2419
2420
|
* layers: the active-state THEME layers fold in just below the per-state
|
|
2420
2421
|
* config (tier 3-active), and the user `active_state : { … }` overlay folds
|
|
2421
2422
|
* in LAST (tier 6), on top of everything, so it wins over per-state config.
|
|
2422
|
-
* Every fold uses
|
|
2423
|
+
* Every fold uses `merge_state_config`, so a key set at a lower tier is
|
|
2423
2424
|
* overridden — never rejected — by a higher one.
|
|
2424
2425
|
*
|
|
2425
2426
|
* ```typescript
|