@domicile-desktop/react 0.0.0-alpha-7bef54600ce4 → 0.0.0-alpha-ed4f85a3cf54

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/elements.d.ts +15 -9
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@cprussin/option-result": "^2.0.1",
4
- "@domicile-desktop/sdk": "0.0.0-alpha-7bef54600ce4"
4
+ "@domicile-desktop/sdk": "0.0.0-alpha-ed4f85a3cf54"
5
5
  },
6
6
  "description": "React for a Domicile shell or app: mount it on the desktop, read the desktop from context, and follow its state with hooks.",
7
7
  "devDependencies": {
@@ -99,7 +99,7 @@
99
99
  "test:unit": "bun test"
100
100
  },
101
101
  "type": "module",
102
- "version": "0.0.0-alpha-7bef54600ce4",
102
+ "version": "0.0.0-alpha-ed4f85a3cf54",
103
103
  "repository": {
104
104
  "type": "git",
105
105
  "url": "git+https://github.com/cprussin/domicile.git",
package/src/elements.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // React does not know. A shell loads them with
3
3
  // `/// <reference types="@domicile-desktop/react/elements" />`.
4
4
  //
5
- // Only `app-id`, `frame` and `resizing` are declared. `<app>` has no hyphen, so
5
+ // Only `app-id`, `picture-in-picture`, `frame` and `resizing` are declared. `<app>` has no hyphen, so
6
6
  // React treats it as a plain HTML element and will not set unknown properties
7
7
  // or bind its custom event; use `addEventListener` for it.
8
8
  //
@@ -34,15 +34,21 @@ declare module "react" {
34
34
  // biome-ignore lint/style/useConsistentTypeDefinitions: declaration merging into IntrinsicElements requires an interface
35
35
  interface IntrinsicElements {
36
36
  /**
37
- * A Wayland client's window. `app-id` is the host's ID for it.
38
- * `frame` is the synced frame it shows (`DomicileWindow.frame`).
39
- * `resizing`, by its presence, marks an interactive resize.
37
+ * A Wayland client's window, or a video in picture-in-picture. `app-id`
38
+ * is the host's ID for the window, and `picture-in-picture` the
39
+ * video's (`DomicilePictureInPictureVideo.id`). `frame` is the synced
40
+ * frame a window shows (`DomicileWindow.frame`). `resizing`, by its
41
+ * presence, marks an interactive resize.
40
42
  */
41
- app: DetailedHTMLProps<HTMLAttributes<HTMLAppElement>, HTMLAppElement> & {
42
- "app-id": string;
43
- frame?: string | undefined;
44
- resizing?: string | undefined;
45
- };
43
+ app: DetailedHTMLProps<HTMLAttributes<HTMLAppElement>, HTMLAppElement> &
44
+ (
45
+ | {
46
+ "app-id": string;
47
+ frame?: string | undefined;
48
+ resizing?: string | undefined;
49
+ }
50
+ | { "picture-in-picture": string }
51
+ );
46
52
  }
47
53
  }
48
54
  }