@nadicodeai/ui 12.1.208 → 12.1.209

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 (36) hide show
  1. package/dist/components/account-menu.d.ts +40 -9
  2. package/dist/components/account-menu.d.ts.map +1 -1
  3. package/dist/components/account-menu.js +31 -15
  4. package/dist/components/empty-art.d.ts +5 -3
  5. package/dist/components/empty-art.d.ts.map +1 -1
  6. package/dist/components/empty-art.js +7 -4
  7. package/dist/components/product-shell.d.ts +132 -0
  8. package/dist/components/product-shell.d.ts.map +1 -0
  9. package/dist/components/product-shell.js +83 -0
  10. package/dist/components/sidebar-sections.d.ts +3 -1
  11. package/dist/components/sidebar-sections.d.ts.map +1 -1
  12. package/dist/components/sidebar-sections.js +9 -6
  13. package/dist/components/sidebar.d.ts +12 -8
  14. package/dist/components/sidebar.d.ts.map +1 -1
  15. package/dist/components/sidebar.js +12 -9
  16. package/dist/components/update-card.d.ts +37 -10
  17. package/dist/components/update-card.d.ts.map +1 -1
  18. package/dist/components/update-card.js +63 -15
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +1 -0
  22. package/dist/internal/badge-frame.d.ts +1 -1
  23. package/dist/internal/command-runner.d.ts +10 -1
  24. package/dist/internal/command-runner.d.ts.map +1 -1
  25. package/dist/internal/command-runner.js +21 -3
  26. package/dist/showcase/specimens/feedback.d.ts.map +1 -1
  27. package/dist/showcase/specimens/feedback.js +1 -1
  28. package/dist/showcase/specimens/index.d.ts +1 -0
  29. package/dist/showcase/specimens/index.d.ts.map +1 -1
  30. package/dist/showcase/specimens/navigation.d.ts +2 -0
  31. package/dist/showcase/specimens/navigation.d.ts.map +1 -1
  32. package/dist/showcase/specimens/navigation.js +59 -2
  33. package/dist/showcase/usage.generated.d.ts +1 -1
  34. package/dist/showcase/usage.generated.d.ts.map +1 -1
  35. package/dist/showcase/usage.generated.js +27 -16
  36. package/package.json +2 -2
@@ -30,7 +30,7 @@ type SidebarContextProps = {
30
30
  }) => void;
31
31
  };
32
32
  declare function useSidebar(): SidebarContextProps;
33
- declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, onWidthChange, passive, mobileSheet, className, style, children, ...props }: React.ComponentProps<"div"> & {
33
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, onWidthChange, defaultWidth, passive, mobileSheet, className, style, children, ...props }: React.ComponentProps<"div"> & {
34
34
  defaultOpen?: boolean;
35
35
  open?: boolean;
36
36
  onOpenChange?: (open: boolean) => void;
@@ -39,6 +39,8 @@ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: se
39
39
  * 224 to 384, 256 until changed.
40
40
  */
41
41
  onWidthChange?: (width: number) => void;
42
+ /** The expanded width in px it opens at, such as the one a host kept: 224 to 384, 256 when left out. */
43
+ defaultWidth?: number;
42
44
  /**
43
45
  * The provider keeps its state to itself: it takes no keyboard shortcut from
44
46
  * the window and writes no cookie, for a sidebar shown inside another page.
@@ -76,7 +78,7 @@ type SidebarProps = React.ComponentProps<"div"> & ({
76
78
  * A product's navigation column: where a person can go, with the account at its foot.
77
79
  *
78
80
  * @family Navigation
79
- * @when The one left column of the Portal and Nadia: a header, Find, groups of places, an object's sections when the column swaps, a band for the update or the way out, and the account. 256 px wide; the Portal's can be dragged between 224 and 384 px or collapsed to icons.
81
+ * @when The one left column of every product: a header, Find, groups of places, an object's sections when the column swaps, a band for the update or the way out, and the account. 256 px wide, dragged between 224 and 384 px or collapsed to icons (owner ruling, 6 November 2026). `ProductShell` draws it; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).
80
82
  * @instead Never a second column: an object's sections either swap this column (`SidebarSections`) or stand in a `TabsNav` band under the top bar, as the product's section navigation says. A page's own views are Tabs. A row that opens an area ends in `SidebarMenuChevron`.
81
83
  * @behaviour Fills the cell its host gives it and stays in the page flow. `collapsible="icon"` (the default) collapses to 48 px icons with a tooltip name and becomes a sheet under 768 px; with `resize` a handle on its trailing edge drags it, steps it with the arrow keys, resets it on a double-click and collapses it on Enter. `collapsible="none"` is always open and never a sheet. A group is told apart by its label and its padding, never by a rule.
82
84
  * @words Each row is a place's noun: "Agents", "Tasks", "Customers"; a count is a bare number. A sheet's title, description and Close label (`mobileTitle`, `mobileDescription`, `mobileCloseLabel`) are required; `resize`, when given, names the handle and comes from the catalogue.
@@ -142,14 +144,16 @@ declare function SidebarMenuChevron({ className, ...props }: React.ComponentProp
142
144
  * The company's wordmark and the product's name on one line: what the header of a product's column says.
143
145
  *
144
146
  * @family Navigation
145
- * @when The `header` of a `SidebarFrame` in the Portal and its sample. Nadia's header is her company row instead.
147
+ * @when The `header` of a `SidebarFrame` in the Portal and its sample, and in Alveare Server's window with its own mark. Nadia's header is her company row instead.
146
148
  * @instead A switcher between companies or teams is a menu in the header, not this mark.
147
- * @behaviour A `ProductWordmark` with an 18 px wordmark, smaller as the column narrows, so the name stays whole. Inside a link, the link is the row.
148
- * @words `product` names the product the column belongs to: "Portal".
149
- * @access Decorative: the link or button around it carries the accessible name.
149
+ * @behaviour A `ProductWordmark` with an 18 px wordmark, smaller as the column narrows, so the name stays whole. A product with a mark of its own, as Alveare Server's server rack, gives `mark`: the 24 px mark and the product's name in medium weight, cut with an ellipsis only when the column cannot hold it. Inside a link, the link is the row.
150
+ * @words `product` names the product the column belongs to: "Portal", "Alveare Server".
151
+ * @access Decorative: the link or button around it carries the accessible name; the mark is decorative beside the name.
150
152
  */
151
- declare function SidebarBrand({ product, className }: {
153
+ declare function SidebarBrand({ product, mark, className, }: {
152
154
  product: string;
155
+ /** The product's own mark, from its brand package: drawn with its name in place of nadicode's wordmark. */
156
+ mark?: string;
153
157
  className?: string;
154
158
  }): React.JSX.Element;
155
159
  type SidebarEntryCardProps = Omit<React.ComponentProps<typeof SidebarMenuButton>, "children"> & {
@@ -211,7 +215,7 @@ type SidebarFrameProps = {
211
215
  * The regions of a product's `Sidebar`, in order: header, Find, groups, band, account.
212
216
  *
213
217
  * @family Navigation
214
- * @when The content of every product's `Sidebar`: the Portal's brand and Nadia's company row go in `header`, their Find in `find`, their places in the children.
218
+ * @when The content of every product's `Sidebar`, which `ProductShell` fills from its `home`, `find`, `places`, `band` and `account`.
215
219
  * @instead A product lays no region of its own: no grid of rows, no hand-drawn rule between regions.
216
220
  * @behaviour A 56 px header with the collapse control under a 1 px rule, Find under it, the groups scrolling in the middle and fading at an edge with more beyond it, then the band and the account pinned at the foot above 1 px rules. The host gives the frame a bounded height. `header`, `find` and `account` are required; an absent band leaves no rule. Collapsed, the header shows only the collapse control and the icon rows still scroll.
217
221
  * @words None of its own; every word arrives in the regions.
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/components/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,OAAO,EAAE,KAAK,cAAc,EAAU,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAS,YAAY,EAA6C,MAAM,oBAAoB,CAAC;AAEpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAA6B,MAAM,cAAc,CAAC;AAI3E,QAAA,MAAM,aAAa,MAAM,CAAC;AAC1B,QAAA,MAAM,iBAAiB,MAAM,CAAC;AAC9B,QAAA,MAAM,iBAAiB,MAAM,CAAC;AAC9B,QAAA,MAAM,kBAAkB,KAAK,CAAC;AAK9B,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAA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,EAAE,gBAAgB,qBA0BnE;AAED,KAAK,iBAAiB,GAAG;IACvB,0GAA0G;IAC1G,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,kEAAkE;IAClE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,0CAA0C;IAC1C,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,mEAAmE;IACnE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,mFAAmF;IACnF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,0CAA0C;IAC1C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,yDAAyD;IACzD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;GASG;AACH,iBAAS,YAAY,CAAC,EACpB,MAAM,EACN,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,OAAO,GACR,EAAE,iBAAiB,qBAiCnB;AAED,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,UAAU,GACX,CAAC"}
@@ -36,7 +36,7 @@ function useSidebar() {
36
36
  }
37
37
  return context;
38
38
  }
39
- function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, onWidthChange, passive = false, mobileSheet = true, className, style, children, ...props }) {
39
+ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, onWidthChange, defaultWidth = SIDEBAR_WIDTH, passive = false, mobileSheet = true, className, style, children, ...props }) {
40
40
  const isMobile = useIsMobile() && mobileSheet;
41
41
  const [openMobile, setOpenMobile] = React.useState(false);
42
42
  const [_open, _setOpen] = React.useState(defaultOpen);
@@ -53,7 +53,7 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
53
53
  return;
54
54
  document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
55
55
  }, [setOpenProp, open, passive]);
56
- const [width, setWidthState] = React.useState(SIDEBAR_WIDTH);
56
+ const [width, setWidthState] = React.useState(() => clampWidth(defaultWidth));
57
57
  const setWidth = React.useCallback((value) => {
58
58
  const next = clampWidth(value);
59
59
  setWidthState(next);
@@ -117,7 +117,7 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
117
117
  * A product's navigation column: where a person can go, with the account at its foot.
118
118
  *
119
119
  * @family Navigation
120
- * @when The one left column of the Portal and Nadia: a header, Find, groups of places, an object's sections when the column swaps, a band for the update or the way out, and the account. 256 px wide; the Portal's can be dragged between 224 and 384 px or collapsed to icons.
120
+ * @when The one left column of every product: a header, Find, groups of places, an object's sections when the column swaps, a band for the update or the way out, and the account. 256 px wide, dragged between 224 and 384 px or collapsed to icons (owner ruling, 6 November 2026). `ProductShell` draws it; a product never renders it, which `nadicodeai/page-composition` refuses (nadicode decision).
121
121
  * @instead Never a second column: an object's sections either swap this column (`SidebarSections`) or stand in a `TabsNav` band under the top bar, as the product's section navigation says. A page's own views are Tabs. A row that opens an area ends in `SidebarMenuChevron`.
122
122
  * @behaviour Fills the cell its host gives it and stays in the page flow. `collapsible="icon"` (the default) collapses to 48 px icons with a tooltip name and becomes a sheet under 768 px; with `resize` a handle on its trailing edge drags it, steps it with the arrow keys, resets it on a double-click and collapses it on Enter. `collapsible="none"` is always open and never a sheet. A group is told apart by its label and its padding, never by a rule.
123
123
  * @words Each row is a place's noun: "Agents", "Tasks", "Customers"; a count is a bare number. A sheet's title, description and Close label (`mobileTitle`, `mobileDescription`, `mobileCloseLabel`) are required; `resize`, when given, names the handle and comes from the catalogue.
@@ -372,13 +372,16 @@ function SidebarMenuChevron({ className, ...props }) {
372
372
  * The company's wordmark and the product's name on one line: what the header of a product's column says.
373
373
  *
374
374
  * @family Navigation
375
- * @when The `header` of a `SidebarFrame` in the Portal and its sample. Nadia's header is her company row instead.
375
+ * @when The `header` of a `SidebarFrame` in the Portal and its sample, and in Alveare Server's window with its own mark. Nadia's header is her company row instead.
376
376
  * @instead A switcher between companies or teams is a menu in the header, not this mark.
377
- * @behaviour A `ProductWordmark` with an 18 px wordmark, smaller as the column narrows, so the name stays whole. Inside a link, the link is the row.
378
- * @words `product` names the product the column belongs to: "Portal".
379
- * @access Decorative: the link or button around it carries the accessible name.
377
+ * @behaviour A `ProductWordmark` with an 18 px wordmark, smaller as the column narrows, so the name stays whole. A product with a mark of its own, as Alveare Server's server rack, gives `mark`: the 24 px mark and the product's name in medium weight, cut with an ellipsis only when the column cannot hold it. Inside a link, the link is the row.
378
+ * @words `product` names the product the column belongs to: "Portal", "Alveare Server".
379
+ * @access Decorative: the link or button around it carries the accessible name; the mark is decorative beside the name.
380
380
  */
381
- function SidebarBrand({ product, className }) {
381
+ function SidebarBrand({ product, mark, className, }) {
382
+ if (mark) {
383
+ return (_jsxs("span", { "data-slot": "sidebar-brand", className: cn("flex w-full min-w-0 items-center gap-2", className), children: [_jsx("img", { alt: "", className: "size-6 shrink-0", src: mark }), _jsx("span", { className: "truncate text-sm font-medium text-sidebar-foreground", children: product })] }));
384
+ }
382
385
  return (_jsx("span", { "data-slot": "sidebar-brand", className: cn("@container block w-full min-w-0", className), children: _jsx(ProductWordmark, { alt: "", className: "max-w-full text-[clamp(0.9375rem,calc(100cqi/10.3),1.125rem)]", product: product }) }));
383
386
  }
384
387
  /**
@@ -413,7 +416,7 @@ function SidebarFind({ label, shortcut, ...props }) {
413
416
  * The regions of a product's `Sidebar`, in order: header, Find, groups, band, account.
414
417
  *
415
418
  * @family Navigation
416
- * @when The content of every product's `Sidebar`: the Portal's brand and Nadia's company row go in `header`, their Find in `find`, their places in the children.
419
+ * @when The content of every product's `Sidebar`, which `ProductShell` fills from its `home`, `find`, `places`, `band` and `account`.
417
420
  * @instead A product lays no region of its own: no grid of rows, no hand-drawn rule between regions.
418
421
  * @behaviour A 56 px header with the collapse control under a 1 px rule, Find under it, the groups scrolling in the middle and fading at an edge with more beyond it, then the band and the account pinned at the foot above 1 px rules. The host gives the frame a bounded height. `header`, `find` and `account` are required; an absent band leaves no rule. Collapsed, the header shows only the collapse control and the icon rows still scroll.
419
422
  * @words None of its own; every word arrives in the regions.
@@ -1,12 +1,40 @@
1
+ import type { CommandConfirmation } from "./action-menu.js";
1
2
  import { type PageCommand } from "./page-actions.js";
3
+ import { type ResolvedMessage } from "./product-message.js";
4
+ /**
5
+ * Restarting into the update stops someone's work: Nadia's working Agents, Alveare Server's
6
+ * workspace for every colleague. Update, and Try again, open this confirmation first.
7
+ */
8
+ export type UpdateRestart = CommandConfirmation;
9
+ /** Update or Try again: a button that runs, with its pending word while it does. */
10
+ export type UpdateCommand = PageCommand & {
11
+ onClick: () => void;
12
+ };
2
13
  export type UpdateCardProps = {
14
+ /** The rail is too narrow for words: one icon button, the line in its tooltip. */
15
+ narrow?: boolean;
16
+ } & ({
3
17
  state: "available";
4
18
  /** The version on offer and that it is ready: "Nadia 0.42.0 is ready". */
5
19
  title: string;
6
20
  /** "Update", with its pending word while it runs. */
7
- action: PageCommand;
8
- /** The rail is too narrow for words: one icon button. */
9
- narrow?: boolean;
21
+ action: UpdateCommand;
22
+ restart?: UpdateRestart;
23
+ } | {
24
+ state: "downloading";
25
+ /** What runs, from the catalogue: "Downloading update", "Installing update". */
26
+ title: string;
27
+ /** How much has arrived, 0 to 1; null while the download has not said its size, or while it installs. */
28
+ progress: number | null;
29
+ } | {
30
+ state: "failed";
31
+ /** The version still on offer: "Nadia 0.42.0 is ready". */
32
+ title: string;
33
+ /** Why it did not install, from the catalogue: "Nadia couldn't install the update. Try again now, or next time you open Nadia." */
34
+ message: ResolvedMessage;
35
+ /** "Try again", which installs the same version again. */
36
+ retry: UpdateCommand;
37
+ restart?: UpdateRestart;
10
38
  } | {
11
39
  state: "updated";
12
40
  /** The version now running: "Updated to Nadia 0.42.0". */
@@ -16,17 +44,16 @@ export type UpdateCardProps = {
16
44
  label: string;
17
45
  onClick: () => void;
18
46
  };
19
- narrow?: boolean;
20
- };
47
+ });
21
48
  /**
22
49
  * The update offer at the foot of a desktop app's sidebar, above the account.
23
50
  *
24
51
  * @family Feedback
25
- * @when Nadia's and Alveare's sidebar foot, only while an update is on offer or has just been installed.
26
- * @instead A failed update or a download that needs the person is a NoticeBanner; the Portal's way to get the app is its Downloads row.
27
- * @behaviour One outlined row of the column's width, shaped as the sidebar's Find: available, a download icon in the primary colour, the line, and a small primary command at the end that keeps its place and says its pending word while it runs; updated, a check, the line and a ghost close. A line too long for the column is cut with an ellipsis. Narrow, the row is one icon button whose tooltip shows the line. Nothing else in the window offers the update: no toast, no banner.
28
- * @words One line names the product, its number and what happened ("Nadia 0.42.0 is ready", "Updated to Nadia 0.42.0"); the command is one verb ("Update").
29
- * @access The row is a region named by its line. The narrow button is named by its command and the line ("Update: Nadia 0.42.0 is ready"), and the close carries its label; a running command is aria-busy.
52
+ * @when The one place a desktop app offers its own update: Nadia's, Alveare's and Alveare Server's sidebar foot, from the moment a newer version is found until the person closes the line naming the version that now runs. `ProductShell` draws it from its `band.update`; Alveare keeps Buzz's sidebar and mounts it there, and Alveare Server's stopped and failed screens, which have no sidebar, show it in their body (owner ruling, 6 November 2026).
53
+ * @instead Nothing else offers the update: no toast, no banner, no window of its own (owner ruling, 6 November 2026). The Portal's way to get an app is its Downloads row.
54
+ * @behaviour One outlined row of the column's width, shaped as the sidebar's Find, in four states (nadicode decision). Available: a download icon in the primary colour, the line, and a small primary command at the end that keeps its place and says its pending word while it runs. Downloading: the line, and under it a 4 px bar of what has arrived, while the app stays usable; with no size known, or while it installs, the line alone. Failed: the line still offering the version, the reason under it in the error colour, and Try again at the end. Updated: a check, the line and a ghost close. With `restart`, Update and Try again open its confirmation first, because restarting stops someone's work (Nadia's working Agents, Alveare Server's workspace for every colleague); the confirmation closes as the update starts, and the card shows it from there (owner ruling, 6 November 2026). Nothing is cut: an offer whose line and command, or pending word, do not fit one row puts the command on a second row at its end, as "Alveare Server 0.7.0 è pronto" with "Aggiornamento in corso" does in a 256 px column; any other line wraps (nadicode decision). Narrow, the row is one icon button whose tooltip shows the line: Update, Try again or Close, or, while it downloads, a busy button that does nothing (nadicode decision).
55
+ * @words One line names the product, its number and what happened ("Nadia 0.42.0 is ready", "Updated to Nadia 0.42.0"); while it runs, the stage ("Downloading update"); a failure is the catalogue's message, its retry "Try again". The command is one verb ("Update") and the confirmation's button names what it does ("Update and restart") (nadicode decision).
56
+ * @access The row is a region named by its line; the bar is a progressbar named by it. The narrow button is named by its command and the line ("Update: Nadia 0.42.0 is ready"), and the close carries its label; a running command or download is aria-busy; a failure is an alert.
30
57
  */
31
58
  export declare function UpdateCard(props: UpdateCardProps): import("react").JSX.Element;
32
59
  //# sourceMappingURL=update-card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-card.d.ts","sourceRoot":"","sources":["../../src/components/update-card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGhF,MAAM,MAAM,eAAe,GACvB;IACE,KAAK,EAAE,WAAW,CAAC;IACnB,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,MAAM,EAAE,WAAW,CAAC;IACpB,yDAAyD;IACzD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GACD;IACE,KAAK,EAAE,SAAS,CAAC;IACjB,0DAA0D;IAC1D,KAAK,EAAE,MAA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OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GACD;IACE,KAAK,EAAE,SAAS,CAAC;IACjB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;CACjD,CACJ,CAAC;AA4BF;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,+BAGhD"}
@@ -1,27 +1,75 @@
1
1
  "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { ArrowDownToLine, CircleCheck, X } from "lucide-react";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { ArrowDownToLine, CircleAlert, CircleCheck, X } from "lucide-react";
4
4
  import { Button } from "./button.js";
5
5
  import { PageCommandButton } from "./page-actions.js";
6
+ import { messageSentences } from "./product-message.js";
7
+ import { Progress } from "./progress.js";
6
8
  import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.js";
9
+ import { useCommandRunner } from "../internal/command-runner.js";
10
+ import { cn } from "../lib/utils.js";
11
+ /** The command the card draws: as given, or asking first when restarting stops someone's work. */
12
+ function useRestartFirst(command, restart) {
13
+ const { arm, dialog } = useCommandRunner();
14
+ if (!restart)
15
+ return { command, dialog: null };
16
+ const asked = arm({
17
+ label: command.label,
18
+ icon: command.icon ?? _jsx(ArrowDownToLine, {}),
19
+ accessibleName: command.accessibleName,
20
+ disabledReason: command.disabledReason,
21
+ pending: command.pending === true,
22
+ pendingLabel: command.pendingLabel ?? command.label,
23
+ confirm: restart,
24
+ // The confirmation closes once the update starts; the card shows it from there.
25
+ onClick: () => {
26
+ command.onClick();
27
+ return Promise.resolve(null);
28
+ },
29
+ });
30
+ return { command: { ...asked, disabled: command.disabled }, dialog };
31
+ }
7
32
  /**
8
33
  * The update offer at the foot of a desktop app's sidebar, above the account.
9
34
  *
10
35
  * @family Feedback
11
- * @when Nadia's and Alveare's sidebar foot, only while an update is on offer or has just been installed.
12
- * @instead A failed update or a download that needs the person is a NoticeBanner; the Portal's way to get the app is its Downloads row.
13
- * @behaviour One outlined row of the column's width, shaped as the sidebar's Find: available, a download icon in the primary colour, the line, and a small primary command at the end that keeps its place and says its pending word while it runs; updated, a check, the line and a ghost close. A line too long for the column is cut with an ellipsis. Narrow, the row is one icon button whose tooltip shows the line. Nothing else in the window offers the update: no toast, no banner.
14
- * @words One line names the product, its number and what happened ("Nadia 0.42.0 is ready", "Updated to Nadia 0.42.0"); the command is one verb ("Update").
15
- * @access The row is a region named by its line. The narrow button is named by its command and the line ("Update: Nadia 0.42.0 is ready"), and the close carries its label; a running command is aria-busy.
36
+ * @when The one place a desktop app offers its own update: Nadia's, Alveare's and Alveare Server's sidebar foot, from the moment a newer version is found until the person closes the line naming the version that now runs. `ProductShell` draws it from its `band.update`; Alveare keeps Buzz's sidebar and mounts it there, and Alveare Server's stopped and failed screens, which have no sidebar, show it in their body (owner ruling, 6 November 2026).
37
+ * @instead Nothing else offers the update: no toast, no banner, no window of its own (owner ruling, 6 November 2026). The Portal's way to get an app is its Downloads row.
38
+ * @behaviour One outlined row of the column's width, shaped as the sidebar's Find, in four states (nadicode decision). Available: a download icon in the primary colour, the line, and a small primary command at the end that keeps its place and says its pending word while it runs. Downloading: the line, and under it a 4 px bar of what has arrived, while the app stays usable; with no size known, or while it installs, the line alone. Failed: the line still offering the version, the reason under it in the error colour, and Try again at the end. Updated: a check, the line and a ghost close. With `restart`, Update and Try again open its confirmation first, because restarting stops someone's work (Nadia's working Agents, Alveare Server's workspace for every colleague); the confirmation closes as the update starts, and the card shows it from there (owner ruling, 6 November 2026). Nothing is cut: an offer whose line and command, or pending word, do not fit one row puts the command on a second row at its end, as "Alveare Server 0.7.0 è pronto" with "Aggiornamento in corso" does in a 256 px column; any other line wraps (nadicode decision). Narrow, the row is one icon button whose tooltip shows the line: Update, Try again or Close, or, while it downloads, a busy button that does nothing (nadicode decision).
39
+ * @words One line names the product, its number and what happened ("Nadia 0.42.0 is ready", "Updated to Nadia 0.42.0"); while it runs, the stage ("Downloading update"); a failure is the catalogue's message, its retry "Try again". The command is one verb ("Update") and the confirmation's button names what it does ("Update and restart") (nadicode decision).
40
+ * @access The row is a region named by its line; the bar is a progressbar named by it. The narrow button is named by its command and the line ("Update: Nadia 0.42.0 is ready"), and the close carries its label; a running command or download is aria-busy; a failure is an alert.
16
41
  */
17
42
  export function UpdateCard(props) {
18
- if (props.narrow)
19
- return _jsx(NarrowUpdate, { ...props });
20
- return (_jsxs("section", { "aria-label": props.title, className: "flex h-control-height min-w-0 items-center gap-2 rounded-sm border border-sidebar-border bg-background py-2 pr-1 pl-2 text-sm text-sidebar-foreground [&>svg]:size-5 [&>svg]:shrink-0", "data-slot": "update-card", "data-state": props.state, children: [props.state === "available" ? (_jsx(ArrowDownToLine, { "aria-hidden": "true", className: "text-primary" })) : (_jsx(CircleCheck, { "aria-hidden": "true", className: "text-muted-foreground" })), _jsx("span", { className: "min-w-0 flex-1 truncate", children: props.title }), props.state === "available" ? (_jsx(PageCommandButton, { command: props.action, size: "xs", variant: "default" })) : (_jsx(Button, { "aria-label": props.dismiss.label, onClick: props.dismiss.onClick, size: "icon-xs", type: "button", variant: "ghost", children: _jsx(X, { "aria-hidden": "true" }) }))] }));
43
+ if (props.state === "available" || props.state === "failed")
44
+ return _jsx(RunnableCard, { ...props });
45
+ return props.narrow ? _jsx(NarrowCard, { ...props }) : _jsx(Card, { ...props });
46
+ }
47
+ function RunnableCard(props) {
48
+ const given = props.state === "available" ? props.action : props.retry;
49
+ const { command, dialog } = useRestartFirst(given, props.restart);
50
+ return (_jsxs(_Fragment, { children: [props.narrow ? (_jsx(NarrowCard, { ...props, command: command })) : (_jsx(Card, { ...props, command: command })), dialog] }));
51
+ }
52
+ const ICON = {
53
+ available: ArrowDownToLine,
54
+ downloading: ArrowDownToLine,
55
+ failed: CircleAlert,
56
+ updated: CircleCheck,
57
+ };
58
+ function Card(props) {
59
+ const Icon = ICON[props.state];
60
+ const failure = props.state === "failed" ? props.message : null;
61
+ return (_jsxs("section", { "aria-busy": props.state === "downloading" || undefined, "aria-label": props.title, className: cn("flex min-h-control-height min-w-0 flex-wrap items-center gap-x-2 gap-y-1 rounded-sm border border-sidebar-border bg-background py-1 pr-1 pl-2 text-sm text-sidebar-foreground", props.state !== "available" && props.state !== "failed" && "pr-2"), "data-slot": "update-card", "data-state": props.state, children: [_jsxs("span", { className: "flex min-w-0 max-w-full grow basis-auto items-center gap-2 [&>svg]:size-5 [&>svg]:shrink-0", children: [_jsx(Icon, { "aria-hidden": "true", className: cn(props.state === "available" || props.state === "downloading"
62
+ ? "text-primary"
63
+ : props.state === "failed"
64
+ ? "text-destructive"
65
+ : "text-muted-foreground") }), _jsx("span", { className: "min-w-0 wrap-break-word", children: props.title })] }), props.command ? (_jsx("span", { className: "ms-auto flex shrink-0", children: _jsx(PageCommandButton, { command: props.command, size: "xs", variant: "default" }) })) : null, props.state === "updated" ? (_jsx(Button, { "aria-label": props.dismiss.label, className: "ms-auto shrink-0", onClick: props.dismiss.onClick, size: "icon-xs", type: "button", variant: "ghost", children: _jsx(X, { "aria-hidden": "true" }) })) : null, props.state === "downloading" && props.progress !== null ? (_jsx(Progress, { "aria-label": props.title, className: "basis-full pb-1", max: 1, size: "sm", value: props.progress })) : null, failure ? (_jsx("p", { className: "basis-full pb-1 text-xs wrap-break-word text-destructive", "data-message-code": failure.code, role: "alert", children: messageSentences(failure) })) : null] }));
21
66
  }
22
- function NarrowUpdate(props) {
23
- const button = props.state === "available" ? (_jsx(Button, { "aria-label": `${props.action.pending ? (props.action.pendingLabel ?? props.action.label) : props.action.label}: ${props.title}`, disabled: props.action.disabled, loading: props.action.pending, size: "icon", variant: "ghost", ...(props.action.render
24
- ? { render: props.action.render, nativeButton: false }
25
- : { onClick: props.action.onClick, type: "button" }), children: _jsx(ArrowDownToLine, { "aria-hidden": "true" }) })) : (_jsx(Button, { "aria-label": `${props.dismiss.label}: ${props.title}`, onClick: props.dismiss.onClick, size: "icon", type: "button", variant: "ghost", children: _jsx(CircleCheck, { "aria-hidden": "true" }) }));
26
- return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { render: button }), _jsx(TooltipContent, { side: "right", children: props.title })] }));
67
+ function NarrowCard(props) {
68
+ const Icon = ICON[props.state];
69
+ const line = props.state === "failed" ? `${props.title}. ${messageSentences(props.message)}` : props.title;
70
+ const { command } = props;
71
+ const button = command ? (_jsx(Button, { "aria-label": `${command.pending ? (command.pendingLabel ?? command.label) : command.label}: ${props.title}`, disabled: command.disabled, loading: command.pending, size: "icon", variant: "ghost", ...(command.render
72
+ ? { render: command.render, nativeButton: false }
73
+ : { onClick: command.onClick, type: "button" }), children: _jsx(Icon, { "aria-hidden": "true" }) })) : props.state === "updated" ? (_jsx(Button, { "aria-label": `${props.dismiss.label}: ${props.title}`, onClick: props.dismiss.onClick, size: "icon", type: "button", variant: "ghost", children: _jsx(Icon, { "aria-hidden": "true" }) })) : (_jsx(Button, { "aria-label": props.title, loading: true, size: "icon", type: "button", variant: "ghost", children: _jsx(Icon, { "aria-hidden": "true" }) }));
74
+ return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { render: button }), _jsx(TooltipContent, { side: "right", children: line })] }));
27
75
  }
package/dist/index.d.ts CHANGED
@@ -95,6 +95,7 @@ export * from "./components/pairing-code.js";
95
95
  export * from "./components/platform-mark.js";
96
96
  export * from "./components/popover.js";
97
97
  export * from "./components/portal-sidebar-frame.js";
98
+ export * from "./components/product-shell.js";
98
99
  export * from "./components/progress.js";
99
100
  export * from "./components/progress-checklist.js";
100
101
  export * from "./components/prose.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAA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;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -95,6 +95,7 @@ export * from "./components/pairing-code.js";
95
95
  export * from "./components/platform-mark.js";
96
96
  export * from "./components/popover.js";
97
97
  export * from "./components/portal-sidebar-frame.js";
98
+ export * from "./components/product-shell.js";
98
99
  export * from "./components/progress.js";
99
100
  export * from "./components/progress-checklist.js";
100
101
  export * from "./components/prose.js";
@@ -2,7 +2,7 @@ import type { ReactNode } from "react";
2
2
  import { useRender } from "@base-ui/react/use-render";
3
3
  import { type VariantProps } from "class-variance-authority";
4
4
  declare const badgeVariants: (props?: ({
5
- variant?: "default" | "outline" | "secondary" | "pink" | "purple" | "teal" | null | undefined;
5
+ variant?: "default" | "outline" | "secondary" | "teal" | "pink" | "purple" | null | undefined;
6
6
  size?: "sm" | "lg" | "md" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type BadgeSize = NonNullable<VariantProps<typeof badgeVariants>["size"]>;
@@ -1,4 +1,4 @@
1
- import { type ReactElement } from "react";
1
+ import { type ReactElement, type ReactNode } from "react";
2
2
  import type { MenuCommand } from "../components/action-menu.js";
3
3
  import type { PageCommandAction } from "../components/page-actions.js";
4
4
  export type DrawnCommand<TCommand extends MenuCommand = MenuCommand> = (TCommand extends unknown ? Omit<TCommand, "confirm" | "undo" | "onClick" | "link" | "render"> : never) & PageCommandAction & {
@@ -9,5 +9,14 @@ export type CommandRunner = {
9
9
  arm: <TCommand extends MenuCommand>(command: TCommand) => DrawnCommand<TCommand>;
10
10
  dialog: ReactElement | null;
11
11
  };
12
+ /**
13
+ * Holds the confirmations every composition inside it opens, so a confirmation raised from a
14
+ * phone's navigation sheet opens over the page once the sheet has closed, never over the sheet:
15
+ * `onAsk` runs as one opens. `ProductShell` is the host.
16
+ */
17
+ export declare function CommandRunnerHost({ children, onAsk }: {
18
+ children: ReactNode;
19
+ onAsk: () => void;
20
+ }): import("react").JSX.Element;
12
21
  export declare function useCommandRunner(): CommandRunner;
13
22
  //# sourceMappingURL=command-runner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command-runner.d.ts","sourceRoot":"","sources":["../../src/internal/command-runner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAY,MAAM,OAAO,CAAC;AAEpD,OAAO,KAAK,EAKV,WAAW,EACZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAInE,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,WAAW,GAAG,WAAW,IAAI,CAAC,QAAQ,SAAS,OAAO,GAC5F,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC,GAClE,KAAK,CAAC,GACR,iBAAiB,GAAG;IAAE,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAmCxD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,CAAC,QAAQ,SAAS,WAAW,EAAE,OAAO,EAAE,QAAQ,KAAK,YAAY,CAAC,QAAQ,CAAC,CAAC;IACjF,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,wBAAgB,gBAAgB,IAAI,aAAa,CAgEhD"}
1
+ {"version":3,"file":"command-runner.d.ts","sourceRoot":"","sources":["../../src/internal/command-runner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAE/F,OAAO,KAAK,EAKV,WAAW,EACZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAInE,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,WAAW,GAAG,WAAW,IAAI,CAAC,QAAQ,SAAS,OAAO,GAC5F,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC,GAClE,KAAK,CAAC,GACR,iBAAiB,GAAG;IAAE,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAmCxD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,CAAC,QAAQ,SAAS,WAAW,EAAE,OAAO,EAAE,QAAQ,KAAK,YAAY,CAAC,QAAQ,CAAC,CAAC;IACjF,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;CAC7B,CAAC;AAIF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,+BAQhG;AAED,wBAAgB,gBAAgB,IAAI,aAAa,CAIhD"}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { useState } from "react";
2
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
3
+ import { createContext, useContext, useState } from "react";
4
4
  import { ConfirmDialog } from "../components/confirm-dialog.js";
5
5
  import { showMessageToast } from "../components/toast.js";
6
6
  function asksFirst(command) {
@@ -21,7 +21,22 @@ function withAction(command, onClick) {
21
21
  const { confirm: _confirm, undo: _undo, link: _link, render: _render, ...face } = command;
22
22
  return { ...face, onClick };
23
23
  }
24
+ const HostedArm = createContext(null);
25
+ /**
26
+ * Holds the confirmations every composition inside it opens, so a confirmation raised from a
27
+ * phone's navigation sheet opens over the page once the sheet has closed, never over the sheet:
28
+ * `onAsk` runs as one opens. `ProductShell` is the host.
29
+ */
30
+ export function CommandRunnerHost({ children, onAsk }) {
31
+ const { arm, dialog } = useOwnRunner(onAsk);
32
+ return (_jsxs(HostedArm, { value: arm, children: [children, dialog] }));
33
+ }
24
34
  export function useCommandRunner() {
35
+ const hosted = useContext(HostedArm);
36
+ const own = useOwnRunner();
37
+ return hosted ? { arm: hosted, dialog: null } : own;
38
+ }
39
+ function useOwnRunner(onAsk) {
25
40
  const [asked, setAsked] = useState(null);
26
41
  async function runAtOnce(command) {
27
42
  const failure = await command.onClick();
@@ -47,7 +62,10 @@ export function useCommandRunner() {
47
62
  }
48
63
  function arm(command) {
49
64
  if (asksFirst(command)) {
50
- return withAction(command, () => setAsked({ command, open: true, pending: false, error: null }));
65
+ return withAction(command, () => {
66
+ onAsk?.();
67
+ setAsked({ command, open: true, pending: false, error: null });
68
+ });
51
69
  }
52
70
  if (undoes(command)) {
53
71
  return withAction(command, () => {
@@ -1 +1 @@
1
- {"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/feedback.tsx"],"names":[],"mappings":"AA4CA,iBAAS,kBAAkB,gCAoE1B;AAED,iBAAS,oBAAoB,gCAkB5B;AAED,iBAAS,eAAe,gCA6BvB;AAED,iBAAS,kBAAkB,gCA2B1B;AAED,iBAAS,sBAAsB,gCAwB9B;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAyLM,CAAC"}
1
+ {"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/feedback.tsx"],"names":[],"mappings":"AA4CA,iBAAS,kBAAkB,gCAoE1B;AAED,iBAAS,oBAAoB,gCAkB5B;AAED,iBAAS,eAAe,gCA6BvB;AAED,iBAAS,kBAAkB,gCAuC1B;AAED,iBAAS,sBAAsB,gCAwB9B;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAyLM,CAAC"}
@@ -45,7 +45,7 @@ function ToasterSpecimen() {
45
45
  }
46
46
  function UpdateCardSpecimen() {
47
47
  const [updated, setUpdated] = useState(false);
48
- return (_jsxs("div", { className: "flex items-start gap-4", children: [_jsx("div", { className: "w-64", children: updated ? (_jsx(UpdateCard, { dismiss: { label: "Dismiss", onClick: () => setUpdated(false) }, state: "updated", title: "Updated to Nadia 12.2.0" })) : (_jsx(UpdateCard, { action: { label: "Update", onClick: () => setUpdated(true) }, state: "available", title: "Nadia 12.2.0 is ready" })) }), _jsx(UpdateCard, { action: { label: "Update", onClick: nothing }, narrow: true, state: "available", title: "Nadia 12.2.0 is ready" })] }));
48
+ return (_jsxs("div", { className: "flex items-start gap-4", children: [_jsx("div", { className: "w-64", children: updated ? (_jsx(UpdateCard, { dismiss: { label: "Dismiss", onClick: () => setUpdated(false) }, state: "updated", title: "Updated to Nadia 12.2.0" })) : (_jsx(UpdateCard, { action: { label: "Update", onClick: () => setUpdated(true) }, state: "available", title: "Nadia 12.2.0 is ready" })) }), _jsx(UpdateCard, { action: { label: "Update", onClick: nothing }, narrow: true, state: "available", title: "Nadia 12.2.0 is ready" }), _jsxs("div", { className: "grid w-64 gap-2", children: [_jsx(UpdateCard, { progress: 0.4, state: "downloading", title: "Downloading update" }), _jsx(UpdateCard, { message: sampleMessage("Nadia couldn't install the update", "Try again now, or next time you open Nadia."), retry: { label: "Try again", onClick: nothing }, state: "failed", title: "Nadia 12.2.0 is ready" })] })] }));
49
49
  }
50
50
  function SkeletonRegionSpecimen() {
51
51
  const [busy, setBusy] = useState(true);
@@ -80,6 +80,7 @@ export declare const SPECIMENS: {
80
80
  TableValue: () => import("react").JSX.Element;
81
81
  TextWithCopyButton: () => import("react").JSX.Element;
82
82
  UsageMeter: () => import("react").JSX.Element;
83
+ ProductShell: () => import("react").JSX.Element;
83
84
  AgentListRow: () => import("react").JSX.Element;
84
85
  DocumentTabs: () => import("react").JSX.Element;
85
86
  FileTree: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
@@ -2,7 +2,9 @@ declare function CommandDialogSpecimen(): import("react").JSX.Element;
2
2
  declare function ScopeSwitcherSpecimen(): import("react").JSX.Element;
3
3
  declare function SidebarSectionsSpecimen(): import("react").JSX.Element;
4
4
  declare function TabsSpecimen(): import("react").JSX.Element;
5
+ declare function ProductShellSpecimen(): import("react").JSX.Element;
5
6
  export declare const NAVIGATION: {
7
+ ProductShell: typeof ProductShellSpecimen;
6
8
  AgentListRow: () => import("react").JSX.Element;
7
9
  DocumentTabs: () => import("react").JSX.Element;
8
10
  FileTree: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/navigation.tsx"],"names":[],"mappings":"AAwEA,iBAAS,qBAAqB,gCAkC7B;AAED,iBAAS,qBAAqB,gCAmB7B;AAED,iBAAS,uBAAuB,gCAiE/B;AAED,iBAAS,YAAY,gCAqCpB;AA6ED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CA6RI,CAAC"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/navigation.tsx"],"names":[],"mappings":"AAmFA,iBAAS,qBAAqB,gCAkC7B;AAED,iBAAS,qBAAqB,gCAmB7B;AAED,iBAAS,uBAAuB,gCAiE/B;AAED,iBAAS,YAAY,gCAqCpB;AA6ED,iBAAS,oBAAoB,gCAsE5B;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;CA8RI,CAAC"}