@opencxh/domain 1.88.0 → 1.90.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.
@@ -41,6 +41,7 @@ export interface InternalSDK<LocalServices extends ServiceMap = {}, TranslationK
41
41
  open(key: string, props?: any): void;
42
42
  close(key: string): void;
43
43
  minimize(key: string, minimized?: boolean): void;
44
+ expand(key: string, expanded?: boolean): void;
44
45
  };
45
46
  settings: {
46
47
  open(initialPageId?: string): void;
@@ -26,6 +26,34 @@ export interface DockConfig {
26
26
  hideHeader?: boolean;
27
27
  /** Rendered collapsed to just its title bar when true. */
28
28
  minimized?: boolean;
29
+ /**
30
+ * Size the (normal, corner) dock to its content — grows with the content up
31
+ * to a max cap — instead of always using the full fixed height. Good for
32
+ * surfaces whose height varies a lot (e.g. a call: compact for audio, taller
33
+ * for video). Ignored when `expanded` (theater fills) or `minimized`.
34
+ */
35
+ autoHeight?: boolean;
36
+ /**
37
+ * Rendered as a large centered "theater" surface instead of the corner dock
38
+ * (still non-blocking, no backdrop). Mutually exclusive with `minimized`.
39
+ * Used e.g. to give a video call room. The dock's content can toggle this
40
+ * via the `dockControls` it receives.
41
+ */
42
+ expanded?: boolean;
43
+ }
44
+ /**
45
+ * Control handle passed to a dock's rendered resource (via its `dockControls`
46
+ * prop) so the content can drive its own chrome — a call surface renders its own
47
+ * header, a compact minimized call-bar, and an expand-to-theater button.
48
+ */
49
+ export interface DockControls {
50
+ minimized: boolean;
51
+ expanded: boolean;
52
+ minimize: () => void;
53
+ expand: () => void;
54
+ /** Return to the normal (corner) dock state from minimized or expanded. */
55
+ restore: () => void;
56
+ close: () => void;
29
57
  }
30
58
  /**
31
59
  * Settings page registered by an app. Shown in the shell's settings overlay.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.88.0",
3
+ "version": "1.90.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",