@adea-ai/app-framework 0.39.4 → 0.40.1

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/README.md CHANGED
@@ -227,7 +227,8 @@ surfaces. Apps that already supply `onSettings` or `onHelp` keep their own
227
227
  surfaces.
228
228
 
229
229
  `utilities.accountMenu` adjusts the account menu without replacing it: `label`
230
- (default `Application settings`), `busy` for an in-flight sign-in or sign-out,
230
+ (default `Application settings`), `avatarSrc` (a profile photo drawn on the
231
+ trigger in place of the user glyph), `busy` for an in-flight sign-in or sign-out,
231
232
  `onIntent` (hover or focus, for prefetching), `settingsShortcut` and
232
233
  `settingsKeyshortcuts` for the Settings row, `appearance: false` to hide the
233
234
  Appearance item, and `updates: 'always'` to keep Updates visible and enabled on
@@ -1 +1 @@
1
- {"version":"0.39.4","commit":"d2410b715d3fc91dc7fe7b20814e9e92b66fb4a7"}
1
+ {"version":"0.40.1","commit":"1d5a57686baffdbcc116148a313b66dc9d2747ad"}
@@ -74,6 +74,8 @@ export type ApplicationHelpConfig = Readonly<{
74
74
  export type ApplicationAccountMenuConfig = Readonly<{
75
75
  /** The trigger's accessible name; defaults to `Application settings`. */
76
76
  label?: string;
77
+ /** A profile photo drawn on the trigger in place of the user glyph. */
78
+ avatarSrc?: string;
77
79
  /** Disable the session row while a sign-in or sign-out is in flight. */
78
80
  busy?: boolean;
79
81
  /** Fires on hover or focus of the trigger, e.g. to prefetch. */
@@ -213,6 +213,9 @@ function ApplicationUtilities(props) {
213
213
  get label() {
214
214
  return props.accountMenu?.label ?? "Application settings";
215
215
  },
216
+ get avatarSrc() {
217
+ return props.accountMenu?.avatarSrc;
218
+ },
216
219
  railTrigger: true,
217
220
  placement: "right-end",
218
221
  gutter: 4,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/app-framework",
3
- "version": "0.39.4",
3
+ "version": "0.40.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -426,7 +426,7 @@
426
426
  "tar": "^7.5.22"
427
427
  },
428
428
  "devDependencies": {
429
- "@adea-ai/ui": "0.151.15",
429
+ "@adea-ai/ui": "0.154.0",
430
430
  "@babel/core": "8.1.0",
431
431
  "@babel/preset-typescript": "^8.0.7",
432
432
  "@happy-dom/global-registrator": "^21.0.4",
@@ -448,7 +448,7 @@
448
448
  "vite-plus": "1.5.1"
449
449
  },
450
450
  "peerDependencies": {
451
- "@adea-ai/ui": "^0.151.12",
451
+ "@adea-ai/ui": "^0.154.0",
452
452
  "lucide-solid": "^1.51.0",
453
453
  "solid-js": "^1.9.15"
454
454
  },
@@ -128,6 +128,8 @@ export type ApplicationHelpConfig = Readonly<{
128
128
  export type ApplicationAccountMenuConfig = Readonly<{
129
129
  /** The trigger's accessible name; defaults to `Application settings`. */
130
130
  label?: string
131
+ /** A profile photo drawn on the trigger in place of the user glyph. */
132
+ avatarSrc?: string
131
133
  /** Disable the session row while a sign-in or sign-out is in flight. */
132
134
  busy?: boolean
133
135
  /** Fires on hover or focus of the trigger, e.g. to prefetch. */
@@ -386,6 +388,7 @@ export function ApplicationUtilities(props: ApplicationUtilitiesProps) {
386
388
  onSignOut={props.onSignOut}
387
389
  updateAvailable={props.updateAvailable}
388
390
  label={props.accountMenu?.label ?? 'Application settings'}
391
+ avatarSrc={props.accountMenu?.avatarSrc}
389
392
  railTrigger
390
393
  placement="right-end"
391
394
  gutter={4}