@opencxh/domain 1.88.0 → 1.89.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,27 @@ export interface DockConfig {
26
26
  hideHeader?: boolean;
27
27
  /** Rendered collapsed to just its title bar when true. */
28
28
  minimized?: boolean;
29
+ /**
30
+ * Rendered as a large centered "theater" surface instead of the corner dock
31
+ * (still non-blocking, no backdrop). Mutually exclusive with `minimized`.
32
+ * Used e.g. to give a video call room. The dock's content can toggle this
33
+ * via the `dockControls` it receives.
34
+ */
35
+ expanded?: boolean;
36
+ }
37
+ /**
38
+ * Control handle passed to a dock's rendered resource (via its `dockControls`
39
+ * prop) so the content can drive its own chrome — a call surface renders its own
40
+ * header, a compact minimized call-bar, and an expand-to-theater button.
41
+ */
42
+ export interface DockControls {
43
+ minimized: boolean;
44
+ expanded: boolean;
45
+ minimize: () => void;
46
+ expand: () => void;
47
+ /** Return to the normal (corner) dock state from minimized or expanded. */
48
+ restore: () => void;
49
+ close: () => void;
29
50
  }
30
51
  /**
31
52
  * 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.89.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",