@vived/component-pneumatic-panel 2.0.0 → 3.0.0

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 CHANGED
@@ -5,8 +5,8 @@ A 3D interactive pneumatic control panel for VIVED slide applications. Features
5
5
  ## Features
6
6
 
7
7
  - **Exhaust Valve** — Click to toggle open/closed with smooth animated rotation. Automatically manages pressure (0 PSI when open, 60 PSI when closed).
8
- - **Safety Lock** — Engage when the exhaust is open to prevent toggling. Ghost-lock preview appears on hover. Clicking a locked exhaust knob triggers a shake animation and red flash on the lock.
9
- - **Pressure Gauge** — Click to display current pressure via alert dialog.
8
+ - **Safety Lock** — Engage when the exhaust is open to prevent toggling. A ghost-lock preview marks where the lock goes, shown either by the Activity (`setShowGhostLockHint`) or by the Host on hover. Clicking a locked exhaust knob triggers a shake animation and red flash on the lock.
9
+ - **Pressure Gauge** — Click to fire a `pressureChecked` event; the Host reads `pressure` from the view model and renders the readout.
10
10
  - **Multi-instance** — Create multiple independent panels in the same scene.
11
11
 
12
12
  ## Quick Start
@@ -2,12 +2,13 @@ import { AppObject, AppObjectRepo, AppObjectUC } from "@vived/core";
2
2
  /**
3
3
  * PneumaticPanelCheckPressureUC
4
4
  *
5
- * Use Case for displaying the current pressure reading.
6
- * Shows a dialog/alert with the current pressure value.
5
+ * Use Case for the "check the pressure" intent. It records the intent and
6
+ * notifies subscribers; it renders nothing. The Host presents any dialog,
7
+ * reading the value from `PneumaticPanelVM.pressure` (ADR-0010).
7
8
  */
8
9
  export declare abstract class PneumaticPanelCheckPressureUC extends AppObjectUC {
9
10
  static readonly type = "PneumaticPanelCheckPressureUC";
10
- /** Display the current pressure */
11
+ /** Register a pressure check. Notifies subscribers; displays nothing. */
11
12
  abstract checkPressure(): void;
12
13
  /** Subscribe to check-pressure invocations. Returns an unsubscribe function. */
13
14
  abstract subscribeOnCheckPressure(callback: () => void): () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"PneumaticPanelCheckPressureUC.d.ts","sourceRoot":"","sources":["../../../src/Domain/UCs/PneumaticPanelCheckPressureUC.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAkBpE;;;;;GAKG;AACH,8BAAsB,6BAA8B,SAAQ,WAAW;IACrE,MAAM,CAAC,QAAQ,CAAC,IAAI,mCAAmC;IAEvD,mCAAmC;IACnC,QAAQ,CAAC,aAAa,IAAI,IAAI;IAE9B,gFAAgF;IAChF,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAEnE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,6BAA6B,GAAG,SAAS;IAIxE,MAAM,CAAC,OAAO,CACZ,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,aAAa,GACxB,6BAA6B,GAAG,SAAS;CAK7C;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,SAAS,GACnB,6BAA6B,CAE/B"}
1
+ {"version":3,"file":"PneumaticPanelCheckPressureUC.d.ts","sourceRoot":"","sources":["../../../src/Domain/UCs/PneumaticPanelCheckPressureUC.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpE;;;;;;GAMG;AACH,8BAAsB,6BAA8B,SAAQ,WAAW;IACrE,MAAM,CAAC,QAAQ,CAAC,IAAI,mCAAmC;IAEvD,yEAAyE;IACzE,QAAQ,CAAC,aAAa,IAAI,IAAI;IAE9B,gFAAgF;IAChF,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAEnE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,6BAA6B,GAAG,SAAS;IAIxE,MAAM,CAAC,OAAO,CACZ,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,aAAa,GACxB,6BAA6B,GAAG,SAAS;CAK7C;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,SAAS,GACnB,6BAA6B,CAE/B"}