@pepperdash/mobile-control-react-app-core 1.21.0-type-updates.1 → 1.21.0-type-updates.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.
@@ -1,16 +1,109 @@
1
- /**
2
- * Used for an individual display state
3
- */
4
1
  import { Volume } from '../volume/volume';
5
2
  import { DeviceState } from './DeviceState';
6
- import { IHasCurrentSourceInfoChangeState } from './IHasCurrentSourceInfoChangeState';
7
- export interface DisplayState extends DeviceState, IHasCurrentSourceInfoChangeState {
3
+ import { ICurrentSourcesState } from './ICurrentSourcesState';
4
+ /**
5
+ * Represents the state of an individual display device in the AV system.
6
+ * This interface extends DeviceState and ICurrentSourcesState to provide
7
+ * comprehensive display-specific functionality including power management,
8
+ * input selection, volume control, and thermal state monitoring.
9
+ *
10
+ * @interface DisplayState
11
+ * @extends {DeviceState}
12
+ * @extends {ICurrentSourcesState}
13
+ * @since 1.0.0
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * const displayState: DisplayState = {
18
+ * // DeviceState properties
19
+ * key: 'main-display',
20
+ * name: 'Conference Room Display',
21
+ * isOnline: true,
22
+ *
23
+ * // DisplayState-specific properties
24
+ * hasFeedback: true,
25
+ * powerState: true,
26
+ * isWarming: false,
27
+ * isCooling: false,
28
+ * currentInput: 'hdmi-1',
29
+ * volume: {
30
+ * level: 75,
31
+ * isMuted: false
32
+ * },
33
+ * inputKeys: ['hdmi-1', 'hdmi-2', 'vga', 'usb-c']
34
+ * };
35
+ * ```
36
+ */
37
+ export interface DisplayState extends DeviceState, ICurrentSourcesState {
38
+ /**
39
+ * Indicates whether the display provides feedback about its current state.
40
+ * When true, the system can receive status updates from the display device.
41
+ * When false, the system operates in "blind" mode without confirmation.
42
+ *
43
+ * @type {boolean}
44
+ * @example true // Display sends status updates
45
+ * @example false // Display operates without feedback
46
+ */
8
47
  hasFeedback: boolean;
48
+ /**
49
+ * The current power state of the display.
50
+ * True indicates the display is powered on and operational.
51
+ * False indicates the display is powered off or in standby mode.
52
+ *
53
+ * @type {boolean}
54
+ * @example true // Display is on
55
+ * @example false // Display is off or in standby
56
+ */
9
57
  powerState: boolean;
58
+ /**
59
+ * Indicates whether the display is currently in a warming-up phase.
60
+ * Many displays require a warm-up period after power-on before they
61
+ * can display content or accept input changes.
62
+ *
63
+ * @type {boolean}
64
+ * @example true // Display is warming up after power-on
65
+ * @example false // Display is ready for normal operation
66
+ */
10
67
  isWarming: boolean;
68
+ /**
69
+ * Indicates whether the display is currently in a cooling-down phase.
70
+ * Some displays enter a cooling period after power-off to protect
71
+ * internal components before fully shutting down.
72
+ *
73
+ * @type {boolean}
74
+ * @example true // Display is cooling down after power-off
75
+ * @example false // Display is not in cooling phase
76
+ */
11
77
  isCooling: boolean;
78
+ /**
79
+ * The identifier of the currently selected input on the display.
80
+ * This should match one of the keys in the inputKeys array.
81
+ *
82
+ * @type {string}
83
+ * @example 'hdmi-1', 'hdmi-2', 'vga', 'usb-c', 'displayport'
84
+ */
12
85
  currentInput: string;
86
+ /**
87
+ * The current volume state of the display's built-in audio system.
88
+ * Optional as not all displays have audio capabilities.
89
+ *
90
+ * @type {Volume | undefined}
91
+ * @optional
92
+ * @example { level: 75, isMuted: false }
93
+ * @example undefined // Display has no audio capabilities
94
+ */
13
95
  volume?: Volume;
96
+ /**
97
+ * Array of available input identifiers that can be selected on this display.
98
+ * Each key represents a physical input port or connection type.
99
+ * Optional as some displays may not expose their input list.
100
+ *
101
+ * @type {string[] | undefined}
102
+ * @optional
103
+ * @example ['hdmi-1', 'hdmi-2', 'vga', 'usb-c']
104
+ * @example ['displayport-1', 'displayport-2', 'dvi']
105
+ * @example undefined // Input list not available
106
+ */
14
107
  inputKeys?: string[];
15
108
  }
16
109
  //# sourceMappingURL=DisplayState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DisplayState.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/state/state/DisplayState.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAEtF,MAAM,WAAW,YAAa,SAAQ,WAAW,EAAE,gCAAgC;IACjF,WAAW,EAAE,OAAO,CAAC;IAErB,UAAU,EAAE,OAAO,CAAC;IAEpB,SAAS,EAAE,OAAO,CAAC;IAEnB,SAAS,EAAE,OAAO,CAAC;IAEnB,YAAY,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB"}
1
+ {"version":3,"file":"DisplayState.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/state/state/DisplayState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW,EAAE,oBAAoB;IACrE;;;;;;;;OAQG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;;;;;;OAQG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;;;;;OAQG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;;;;;OAQG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;OAUG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB"}
@@ -9,11 +9,11 @@ export interface ICurrentSourcesState extends IHasCurrentSourceInfoChangeState {
9
9
  * A record of all current sources keyed by their unique source key.
10
10
  * This allows quick access to the source information.
11
11
  */
12
- currentSources: Record<string, SourceListItem>;
12
+ currentSources?: Record<string, SourceListItem>;
13
13
  /**
14
14
  * A record of current source keys, mapping device keys to their corresponding source keys.
15
15
  * This is useful for tracking which sources are currently active on each device.
16
16
  */
17
- currentSourceKeys: Record<string, string>;
17
+ currentSourceKeys?: Record<string, string>;
18
18
  }
19
19
  //# sourceMappingURL=ICurrentSourcesState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ICurrentSourcesState.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/state/state/ICurrentSourcesState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAEtF;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,gCAAgC;IAC5E;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAE/C;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3C"}
1
+ {"version":3,"file":"ICurrentSourcesState.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/state/state/ICurrentSourcesState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAEtF;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,gCAAgC;IAC5E;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAEhD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5C"}
@@ -9,11 +9,11 @@ export interface IHasCurrentSourceInfoChangeState extends DeviceState {
9
9
  * The key of the current source.
10
10
  * This is used to identify which source is currently active.
11
11
  */
12
- currentSourceKey: string;
12
+ currentSourceKey?: string;
13
13
  /**
14
14
  * The current source item.
15
15
  * This provides detailed information about the currently active source.
16
16
  */
17
- currentSource: SourceListItem;
17
+ currentSource?: SourceListItem;
18
18
  }
19
19
  //# sourceMappingURL=IHasCurrentSourceInfoChangeState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IHasCurrentSourceInfoChangeState.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/state/state/IHasCurrentSourceInfoChangeState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;GAGG;AACH,MAAM,WAAW,gCAAiC,SAAQ,WAAW;IACnE;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,aAAa,EAAE,cAAc,CAAC;CAC/B"}
1
+ {"version":3,"file":"IHasCurrentSourceInfoChangeState.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/state/state/IHasCurrentSourceInfoChangeState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;GAGG;AACH,MAAM,WAAW,gCAAiC,SAAQ,WAAW;IACnE;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pepperdash/mobile-control-react-app-core",
3
3
  "private": false,
4
- "version": "1.21.0-type-updates.1",
4
+ "version": "1.21.0-type-updates.3",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",