jssm 5.157.13 → 5.157.15

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.es5.d.cts CHANGED
@@ -3436,6 +3436,29 @@ declare class Machine<mDT> {
3436
3436
  *
3437
3437
  * @internal
3438
3438
  */
3439
+ /**
3440
+ * Whether at least one live subscriber is registered for `name`. Used by
3441
+ * the transition-commit observation block to skip building a detail
3442
+ * literal that {@link Machine._fire} would immediately discard — a panel
3443
+ * listening only to `'transition'` (fsl-bind, fsl-viz, fsl-info-panel)
3444
+ * previously paid for the exit/entry/data-change detail allocations on
3445
+ * every transition. Read at fire time, so a listener installed by a
3446
+ * pre-hook is still seen (#671).
3447
+ *
3448
+ * @param name The event name to probe.
3449
+ * @returns `true` when a subsequent `_fire(name, ...)` would reach at
3450
+ * least one handler.
3451
+ *
3452
+ * ```typescript
3453
+ * machine.on('transition', () => {});
3454
+ * machine._has_subscribers('transition'); // true
3455
+ * machine._has_subscribers('exit'); // false
3456
+ * ```
3457
+ *
3458
+ * @see Machine._fire
3459
+ * @internal
3460
+ */
3461
+ _has_subscribers(name: JssmEventName): boolean;
3439
3462
  _fire<Ev extends JssmEventName>(name: Ev, detail: JssmEventDetailMap<mDT>[Ev]): void;
3440
3463
  /** Low-level hook registration. Installs a handler described by a
3441
3464
  * {@link HookDescription} into the appropriate internal map. Prefer the
package/jssm.es6.d.ts CHANGED
@@ -3436,6 +3436,29 @@ declare class Machine<mDT> {
3436
3436
  *
3437
3437
  * @internal
3438
3438
  */
3439
+ /**
3440
+ * Whether at least one live subscriber is registered for `name`. Used by
3441
+ * the transition-commit observation block to skip building a detail
3442
+ * literal that {@link Machine._fire} would immediately discard — a panel
3443
+ * listening only to `'transition'` (fsl-bind, fsl-viz, fsl-info-panel)
3444
+ * previously paid for the exit/entry/data-change detail allocations on
3445
+ * every transition. Read at fire time, so a listener installed by a
3446
+ * pre-hook is still seen (#671).
3447
+ *
3448
+ * @param name The event name to probe.
3449
+ * @returns `true` when a subsequent `_fire(name, ...)` would reach at
3450
+ * least one handler.
3451
+ *
3452
+ * ```typescript
3453
+ * machine.on('transition', () => {});
3454
+ * machine._has_subscribers('transition'); // true
3455
+ * machine._has_subscribers('exit'); // false
3456
+ * ```
3457
+ *
3458
+ * @see Machine._fire
3459
+ * @internal
3460
+ */
3461
+ _has_subscribers(name: JssmEventName): boolean;
3439
3462
  _fire<Ev extends JssmEventName>(name: Ev, detail: JssmEventDetailMap<mDT>[Ev]): void;
3440
3463
  /** Low-level hook registration. Installs a handler described by a
3441
3464
  * {@link HookDescription} into the appropriate internal map. Prefer the
@@ -2606,6 +2606,29 @@ declare class Machine<mDT> {
2606
2606
  *
2607
2607
  * @internal
2608
2608
  */
2609
+ /**
2610
+ * Whether at least one live subscriber is registered for `name`. Used by
2611
+ * the transition-commit observation block to skip building a detail
2612
+ * literal that {@link Machine._fire} would immediately discard — a panel
2613
+ * listening only to `'transition'` (fsl-bind, fsl-viz, fsl-info-panel)
2614
+ * previously paid for the exit/entry/data-change detail allocations on
2615
+ * every transition. Read at fire time, so a listener installed by a
2616
+ * pre-hook is still seen (#671).
2617
+ *
2618
+ * @param name The event name to probe.
2619
+ * @returns `true` when a subsequent `_fire(name, ...)` would reach at
2620
+ * least one handler.
2621
+ *
2622
+ * ```typescript
2623
+ * machine.on('transition', () => {});
2624
+ * machine._has_subscribers('transition'); // true
2625
+ * machine._has_subscribers('exit'); // false
2626
+ * ```
2627
+ *
2628
+ * @see Machine._fire
2629
+ * @internal
2630
+ */
2631
+ _has_subscribers(name: JssmEventName): boolean;
2609
2632
  _fire<Ev extends JssmEventName>(name: Ev, detail: JssmEventDetailMap<mDT>[Ev]): void;
2610
2633
  /** Low-level hook registration. Installs a handler described by a
2611
2634
  * {@link HookDescription} into the appropriate internal map. Prefer the
package/jssm_viz.es6.d.ts CHANGED
@@ -2606,6 +2606,29 @@ declare class Machine<mDT> {
2606
2606
  *
2607
2607
  * @internal
2608
2608
  */
2609
+ /**
2610
+ * Whether at least one live subscriber is registered for `name`. Used by
2611
+ * the transition-commit observation block to skip building a detail
2612
+ * literal that {@link Machine._fire} would immediately discard — a panel
2613
+ * listening only to `'transition'` (fsl-bind, fsl-viz, fsl-info-panel)
2614
+ * previously paid for the exit/entry/data-change detail allocations on
2615
+ * every transition. Read at fire time, so a listener installed by a
2616
+ * pre-hook is still seen (#671).
2617
+ *
2618
+ * @param name The event name to probe.
2619
+ * @returns `true` when a subsequent `_fire(name, ...)` would reach at
2620
+ * least one handler.
2621
+ *
2622
+ * ```typescript
2623
+ * machine.on('transition', () => {});
2624
+ * machine._has_subscribers('transition'); // true
2625
+ * machine._has_subscribers('exit'); // false
2626
+ * ```
2627
+ *
2628
+ * @see Machine._fire
2629
+ * @internal
2630
+ */
2631
+ _has_subscribers(name: JssmEventName): boolean;
2609
2632
  _fire<Ev extends JssmEventName>(name: Ev, detail: JssmEventDetailMap<mDT>[Ev]): void;
2610
2633
  /** Low-level hook registration. Installs a handler described by a
2611
2634
  * {@link HookDescription} into the appropriate internal map. Prefer the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.157.13",
3
+ "version": "5.157.15",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },