@domicile-desktop/component-library 0.0.0-alpha-e1457b57e6b2 → 0.0.0-alpha-e2ddcb67524d

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/package.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "dependencies": {
3
3
  "@base-ui/react": "^1.8.0",
4
4
  "@cprussin/option-result": "^2.0.1",
5
- "@domicile-desktop/sdk": "0.0.0-alpha-e1457b57e6b2",
6
- "@domicile-desktop/system-apps": "0.0.0-alpha-e1457b57e6b2",
5
+ "@domicile-desktop/sdk": "0.0.0-alpha-e2ddcb67524d",
6
+ "@domicile-desktop/system-apps": "0.0.0-alpha-e2ddcb67524d",
7
7
  "@phosphor-icons/react": "^2.1.10"
8
8
  },
9
9
  "description": "React components and the Panda CSS design system that Domicile's shells are built from.",
@@ -103,5 +103,5 @@
103
103
  "test:unit": "bun test"
104
104
  },
105
105
  "type": "module",
106
- "version": "0.0.0-alpha-e1457b57e6b2"
106
+ "version": "0.0.0-alpha-e2ddcb67524d"
107
107
  }
@@ -7,6 +7,7 @@ import {
7
7
  CastSourceKind,
8
8
  PortalAnswer,
9
9
  PortalKind,
10
+ SHELL_APP_ID,
10
11
  stopCapturing,
11
12
  watchCapturing,
12
13
  watchPortalRequests,
@@ -274,7 +275,7 @@ const Dialog = ({
274
275
  return (
275
276
  <ScreenshotDialog
276
277
  answer={answer}
277
- asker={asker}
278
+ asker={request.appId === SHELL_APP_ID ? undefined : asker}
278
279
  body={request.body}
279
280
  screen={screen}
280
281
  />
@@ -15,8 +15,8 @@ import { draggedArea, framePoint } from "./frame-point";
15
15
 
16
16
  type Props = {
17
17
  answer: (answer: PortalAnswer) => void;
18
- /** Who asks, as the dialog names them. */
19
- asker: string;
18
+ /** Who asks, as the dialog names them; absent when the shell itself asks. */
19
+ asker: string | undefined;
20
20
  body: FrozenDesk;
21
21
  screen: string | undefined;
22
22
  };
@@ -79,7 +79,7 @@ export const ScreenshotDialog = ({ answer, asker, body, screen }: Props) => {
79
79
  size="xl"
80
80
  title="Take a screenshot"
81
81
  >
82
- <p className={askerStyles}>{`${asker} asks`}</p>
82
+ {asker !== undefined && <p className={askerStyles}>{`${asker} asks`}</p>}
83
83
  <div className={choicesStyles}>
84
84
  {choices.map((choice, index) => (
85
85
  <Button