@hanzo/app 0.2.51 → 0.2.53

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/dist/Chrome.d.ts CHANGED
@@ -7,7 +7,17 @@
7
7
  * At the end, once someone is signed in, who it is: the face, the name and the
8
8
  * address, the other accounts signed in on this browser to be one tap away
9
9
  * (lib/accounts), Add account and Log out. Signed out, nothing but the brand. Under gui's `md` the account folds into its face, a menu of the address
10
- * and the same two ways out.
10
+ * and the same two ways out. A host with an account control of its own hands it
11
+ * in as `account`, and the bar draws that in this one's place (null: none).
12
+ *
13
+ * THE WORDMARK STANDS WHERE THE MARKETING BAR'S DOES: the bar's side is the
14
+ * page's gutter (@hanzo/design `--page-gutter`), 60px tall, and the name is a
15
+ * pill whose 12px of padding the bar takes back with a -12px start margin, the
16
+ * shape hanzo.ai's own bar gives it. So the name's first letter is at the gutter
17
+ * on every page of every host, the focused ones and the marketing ones alike.
18
+ * Under a pointer or keyboard focus the pill takes the soft outline a section's
19
+ * label wears (`--border-strong`) and an arrow opens before the name: this goes
20
+ * back to the site.
11
21
  *
12
22
  * Being another account, and adding one, write this page down first
13
23
  * (destination.ts `rememberDestination`), so the sign-in that follows comes back
@@ -16,6 +26,7 @@
16
26
  * host mounts `IamProvider`.
17
27
  */
18
28
  import { type ReactNode } from 'react';
19
- export declare function Chrome({ back }: {
29
+ export declare function Chrome({ back, account }: {
20
30
  back?: ReactNode;
31
+ account?: ReactNode;
21
32
  }): import("react").JSX.Element;
package/dist/Chrome.js CHANGED
@@ -9,7 +9,17 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  * At the end, once someone is signed in, who it is: the face, the name and the
10
10
  * address, the other accounts signed in on this browser to be one tap away
11
11
  * (lib/accounts), Add account and Log out. Signed out, nothing but the brand. Under gui's `md` the account folds into its face, a menu of the address
12
- * and the same two ways out.
12
+ * and the same two ways out. A host with an account control of its own hands it
13
+ * in as `account`, and the bar draws that in this one's place (null: none).
14
+ *
15
+ * THE WORDMARK STANDS WHERE THE MARKETING BAR'S DOES: the bar's side is the
16
+ * page's gutter (@hanzo/design `--page-gutter`), 60px tall, and the name is a
17
+ * pill whose 12px of padding the bar takes back with a -12px start margin, the
18
+ * shape hanzo.ai's own bar gives it. So the name's first letter is at the gutter
19
+ * on every page of every host, the focused ones and the marketing ones alike.
20
+ * Under a pointer or keyboard focus the pill takes the soft outline a section's
21
+ * label wears (`--border-strong`) and an arrow opens before the name: this goes
22
+ * back to the site.
13
23
  *
14
24
  * Being another account, and adding one, write this page down first
15
25
  * (destination.ts `rememberDestination`), so the sign-in that follows comes back
@@ -18,6 +28,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
28
  * host mounts `IamProvider`.
19
29
  */
20
30
  import { useEffect, useState } from 'react';
31
+ import { ArrowLeft, ArrowRight } from 'lucide-react';
21
32
  import { useI18n } from '@hanzo/i18n/react';
22
33
  import { useIam } from '@hanzo/iam/react';
23
34
  import { Text, View, XStack, YStack } from '@hanzo/gui';
@@ -31,6 +42,15 @@ import { brand, site } from './where.js';
31
42
  import { dragWindow, toggleWindowMaximize, WindowControls } from './WindowControls.js';
32
43
  /** The bar's height under the notch: hanzo.ai's masthead's. */
33
44
  const HEIGHT = 60;
45
+ /** The bar's side: the page's gutter, as hanzo.ai's marketing bar has it. */
46
+ const GUTTER = 'var(--page-gutter, 20px)';
47
+ /** The name's pill: its padding, which the bar takes back so the name's first letter is at the gutter. */
48
+ const PAD = 12;
49
+ /** The pill lit: the soft outline a section's label wears, on no ground. */
50
+ const OUTLINE = 'inset 0 0 0 1px var(--border-strong)';
51
+ /** The arrow that opens before the name, and the space after it. */
52
+ const CUE = 14;
53
+ const CUE_GAP = 6;
34
54
  /** The bar's ground once the page has moved under it: the page's own, frosted. At rest it has none. */
35
55
  const GLASS = '$background/72';
36
56
  const BLUR = 'blur(20px) saturate(1.8)';
@@ -49,7 +69,7 @@ function useMoved() {
49
69
  }
50
70
  /** The notch's inset. gui carries a CSS function to the page unchanged; its types only name custom properties. */
51
71
  const NOTCH = 'env(safe-area-inset-top)';
52
- export function Chrome({ back }) {
72
+ export function Chrome({ back, account }) {
53
73
  const { t, dir } = useI18n();
54
74
  const { user, isAuthenticated } = useIam();
55
75
  const signOut = useSignOut();
@@ -64,9 +84,25 @@ export function Chrome({ back }) {
64
84
  const others = accounts.filter((a) => a.sub !== current?.sub);
65
85
  const signed = isAuthenticated && Boolean(who);
66
86
  const moved = useMoved();
67
- return (_jsxs(XStack, { render: "header", "data-slot": "masthead", "data-scrolled": moved ? 'true' : 'false', "data-tauri-drag-region": "deep", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, position: "sticky", t: 0, z: "var(--z-header)", shrink: 0, boxSizing: "content-box", height: HEIGHT, pt: NOTCH, px: 20, gap: 12, items: "center", bg: moved ? GLASS : 'transparent', backdropFilter: moved ? BLUR : 'none', transition: "quickest", borderBottomWidth: 0, children: [_jsx(Text, { render: _jsx("a", { href: "/", "aria-label": t('{brand} home', { brand: brand() }), "data-tauri-drag-region": "deep", onClick: (e) => {
68
- if (typeof document !== 'undefined' && document.documentElement.getAttribute('data-desktop') === 'true') {
69
- e.preventDefault();
70
- }
71
- } }), display: "flex", items: "center", shrink: 0, color: "var(--foreground)", textDecorationLine: "none", "data-tauri-drag-region": "deep", children: _jsx(HanzoWordmark, { label: brand(), size: 22, "data-tauri-drag-region": "deep" }) }), back, _jsx(View, { flex: 1, "data-tauri-drag-region": "deep" }), signed ? (_jsx(View, { render: "section", "aria-label": t('Account'), display: "flex", children: _jsxs(DropdownMenu, { placement: dir === 'rtl' ? 'bottom-start' : 'bottom-end', offset: 8, children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(XStack, { render: "button", "aria-label": t('Account: {name}', { name: who }), width: 40, height: 40, rounded: 999, items: "center", justify: "center", borderWidth: 0, bg: "transparent", hoverStyle: { bg: '$hover' }, focusVisibleStyle: { outlineWidth: 2, outlineStyle: 'solid', outlineColor: '$outlineColor' }, cursor: "pointer", children: _jsx(Avatar, { src: avatar || null, name: who, alt: "" }) }) }), _jsxs(DropdownMenuContent, { minW: 240, maxW: "calc(100vw - 16px)", "aria-labelledby": undefined, "aria-label": t('Account'), children: [_jsx(DropdownMenuLabel, { children: _jsxs(YStack, { minW: 0, gap: 2, children: [_jsx(Text, { fontSize: "$3", fontWeight: "500", color: "$ink", numberOfLines: 1, children: who }), name && email ? (_jsx(Text, { fontSize: "$2", color: "$soft", numberOfLines: 1, children: email })) : null] }) }), _jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuItem, { onSelect: () => window.location.assign(site('/support')), children: _jsx(Text, { fontSize: "$3", color: "$ink", children: t('Help') }) }), _jsx(DropdownMenuSeparator, {}), others.map((a) => (_jsx(DropdownMenuItem, { onSelect: () => void switchTo(a), children: _jsx(XStack, { items: "center", gap: 10, minW: 0, children: _jsx(Face, { account: a }) }) }, a.sub))), _jsx(DropdownMenuItem, { onSelect: () => void add(), children: _jsx(Text, { fontSize: "$3", color: "$ink", children: t('Add account') }) }), _jsx(DropdownMenuItem, { onSelect: out, children: _jsx(Text, { fontSize: "$3", color: "$ink", children: t('Log out') }) })] })] }) })) : null, _jsx(WindowControls, {})] }));
87
+ return (_jsxs(XStack, { render: "header", "data-slot": "masthead", "data-scrolled": moved ? 'true' : 'false', "data-tauri-drag-region": "deep", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, position: "sticky", t: 0, z: "var(--z-header)", shrink: 0, boxSizing: "content-box", height: HEIGHT, pt: NOTCH, px: GUTTER, gap: 12, items: "center", bg: moved ? GLASS : 'transparent', backdropFilter: moved ? BLUR : 'none', transition: "quickest", borderBottomWidth: 0, children: [_jsx(Home, {}), back, _jsx(View, { flex: 1, "data-tauri-drag-region": "deep" }), account !== undefined ? account : signed ? (_jsx(View, { render: "section", "aria-label": t('Account'), display: "flex", children: _jsxs(DropdownMenu, { placement: dir === 'rtl' ? 'bottom-start' : 'bottom-end', offset: 8, children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(XStack, { render: "button", "aria-label": t('Account: {name}', { name: who }), width: 40, height: 40, rounded: 999, items: "center", justify: "center", borderWidth: 0, bg: "transparent", hoverStyle: { bg: '$hover' }, focusVisibleStyle: { outlineWidth: 2, outlineStyle: 'solid', outlineColor: '$outlineColor' }, cursor: "pointer", children: _jsx(Avatar, { src: avatar || null, name: who, alt: "" }) }) }), _jsxs(DropdownMenuContent, { minW: 240, maxW: "calc(100vw - 16px)", "aria-labelledby": undefined, "aria-label": t('Account'), children: [_jsx(DropdownMenuLabel, { children: _jsxs(YStack, { minW: 0, gap: 2, children: [_jsx(Text, { fontSize: "$3", fontWeight: "500", color: "$ink", numberOfLines: 1, children: who }), name && email ? (_jsx(Text, { fontSize: "$2", color: "$soft", numberOfLines: 1, children: email })) : null] }) }), _jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuItem, { onSelect: () => window.location.assign(site('/support')), children: _jsx(Text, { fontSize: "$3", color: "$ink", children: t('Help') }) }), _jsx(DropdownMenuSeparator, {}), others.map((a) => (_jsx(DropdownMenuItem, { onSelect: () => void switchTo(a), children: _jsx(XStack, { items: "center", gap: 10, minW: 0, children: _jsx(Face, { account: a }) }) }, a.sub))), _jsx(DropdownMenuItem, { onSelect: () => void add(), children: _jsx(Text, { fontSize: "$3", color: "$ink", children: t('Add account') }) }), _jsx(DropdownMenuItem, { onSelect: out, children: _jsx(Text, { fontSize: "$3", color: "$ink", children: t('Log out') }) })] })] }) })) : null, _jsx(WindowControls, {})] }));
88
+ }
89
+ /**
90
+ * The name, going to this host's root. Lit (the outline and the arrow before the
91
+ * name) under a mouse or pen and under keyboard focus; a finger's tap navigates
92
+ * and is not a hover, so it does not light.
93
+ */
94
+ function Home() {
95
+ const { t, dir } = useI18n();
96
+ const [lit, setLit] = useState(false);
97
+ const Arrow = dir === 'rtl' ? ArrowRight : ArrowLeft;
98
+ const point = (on) => (e) => {
99
+ if (e.pointerType !== 'touch')
100
+ setLit(on);
101
+ };
102
+ const focus = (e) => setLit(e.currentTarget.matches(':focus-visible'));
103
+ return (_jsxs(Text, { render: _jsx("a", { href: "/", "aria-label": t('{brand} home', { brand: brand() }), "data-lit": lit ? 'true' : 'false', "data-tauri-drag-region": "deep", onClick: (e) => {
104
+ if (typeof document !== 'undefined' && document.documentElement.getAttribute('data-desktop') === 'true') {
105
+ e.preventDefault();
106
+ }
107
+ }, onPointerEnter: point(true), onPointerLeave: point(false), onFocus: focus, onBlur: () => setLit(false) }), "data-slot": "home", display: "flex", items: "center", shrink: 0, height: 34, marginInlineStart: -PAD, paddingInline: PAD, rounded: 999, color: "var(--foreground)", textDecorationLine: "none", boxShadow: lit ? OUTLINE : 'none', focusVisibleStyle: { outlineWidth: 2, outlineStyle: 'solid', outlineColor: '$outlineColor', outlineOffset: 2 }, transition: "quickest", "data-tauri-drag-region": "deep", children: [_jsx(View, { "aria-hidden": true, display: "flex", items: "center", overflow: "hidden", width: lit ? CUE : 0, marginInlineEnd: lit ? CUE_GAP : 0, opacity: lit ? 1 : 0, transition: "quickest", children: _jsx(Arrow, { size: CUE, strokeWidth: 2.2 }) }), _jsx(HanzoWordmark, { label: brand(), size: 22, "data-tauri-drag-region": "deep" })] }));
72
108
  }
@@ -165,7 +165,7 @@ function Dots() {
165
165
  */
166
166
  export function TeamPreview(props) {
167
167
  const { compact, phone } = props;
168
- const { t, dir } = useI18n();
168
+ const { t } = useI18n();
169
169
  const still = useStill();
170
170
  const { box, seen, width, visible, held, hold } = useStage();
171
171
  const { live, end } = useHost(props);
@@ -186,8 +186,6 @@ export function TeamPreview(props) {
186
186
  useEffect(() => {
187
187
  loop.current = !driven;
188
188
  }, [driven]);
189
- // The phone's channel strip keeps the open channel in view, scrolling itself and never the page.
190
- const strip = useRef(null);
191
189
  const lines = useMemo(() => (opened ? (SCENE[opened] ?? pace([{ kind: 'open', room: opened, time: 9 * 60 }])) : DAY), [opened]);
192
190
  const run = seen && !still;
193
191
  const at = usePlay(lines, run, replay, { visible, held, loop, live, end });
@@ -195,13 +193,6 @@ export function TeamPreview(props) {
195
193
  const upto = opened || run ? at : STILL;
196
194
  const f = useMemo(() => frame(lines, upto), [lines, upto]);
197
195
  const here = f.room;
198
- useEffect(() => {
199
- const row = strip.current;
200
- const chip = row?.querySelector('[aria-pressed="true"]');
201
- if (!row || !chip)
202
- return;
203
- row.scrollTo({ left: chip.offsetLeft - (row.clientWidth - chip.offsetWidth) / 2, behavior: still ? 'auto' : 'smooth' });
204
- }, [here, still]);
205
196
  const o = orgOf(here);
206
197
  const channel = channelOf(here);
207
198
  const topic = o.channels.find((c) => c.id === channel)?.topic ?? '';
@@ -257,14 +248,10 @@ export function TeamPreview(props) {
257
248
  return (_jsxs(View, { ref: box, "data-slot": "team-preview", role: "group", "aria-label": t('Hanzo Team, playing a sample workspace'), ...hold, display: "grid", position: "relative", height: compact ? '100%' : 620, overflow: "hidden", bg: "var(--background)", gridTemplateColumns: "minmax(0, 1fr)", ...md(desk, {
258
249
  height: compact ? '100%' : 640,
259
250
  gridTemplateColumns: `60px ${breadth(width)}px minmax(0, 1fr)${roomy && parent ? ' 300px' : ''}`,
260
- }), "$platform-web": { textAlign: 'start' }, children: [_jsx(YStack, { display: "none", ...md(desk, { display: 'flex' }), minH: 0, children: rail }), _jsx(YStack, { display: "none", ...md(desk, { display: 'flex' }), minH: 0, borderColor: "$edge", borderInlineEndWidth: 1, bg: "$sunken", children: column }), _jsxs(YStack, { minW: 0, minH: 0, position: "relative", children: [_jsxs(XStack, { items: "center", gap: 10, px: 14, minH: 52, borderBottomWidth: 1, borderColor: "$edge", children: [_jsx(XStack, { ...md(desk, { display: 'none' }), children: _jsx(XStack, { render: _jsx("button", { type: "button", "aria-expanded": drawer, "aria-label": t('Channels in {org}', { org: o.name }), onClick: () => setDrawer(!drawer) }), width: 32, height: 32, rounded: 8, items: "center", justify: "center", bg: "transparent", ...ROW, "$platform-web": { borderRadius: '8px' }, children: _jsx(Menu, { size: 17, color: "var(--foreground)", "aria-hidden": true }) }) }), title, _jsxs(XStack, { display: "none", ...(width >= FACES ? { display: 'flex' } : {}), items: "center", children: [members.map((p, i) => (_jsx(View, { marginInlineStart: i ? -6 : 0, rounded: 9999, borderWidth: 2, borderColor: "var(--background)", "$platform-web": { borderRadius: '9999px' }, children: _jsx(Avatar, { id: p, size: 22 }) }, p))), _jsx(Text, { fontSize: "$1", color: "$soft", marginInlineStart: 6, "data-i18n-ltr": true, children: o.people.length + o.agents.length })] }), _jsxs(XStack, { "data-motion": "rise", items: "center", gap: 6, px: 10, height: 30, rounded: 8, borderWidth: 1, borderColor: huddle.length ? '$ink' : '$edge', bg: huddle.length ? '$ink' : 'transparent', "$platform-web": { borderRadius: '8px' }, children: [huddle.length ? _jsx(View, { "data-motion": "pulse", width: 7, height: 7, rounded: 9999, bg: "var(--state-online)", "$platform-web": { borderRadius: '9999px' } }) : null, _jsx(Headphones, { size: 14, color: huddle.length ? 'var(--background)' : 'var(--foreground)', "aria-hidden": true }), _jsx(Text, { display: "none", ...md(desk, { display: 'flex' }), fontSize: "$1", fontWeight: "600", color: huddle.length ? '$background' : '$ink', children: huddle.length ? t('Huddle · {count}', { count: huddle.length }) : t('Huddle') })] }, huddle.length ? 'on' : 'off')] }), _jsxs(YStack, { ...md(desk, { display: 'none' }), gap: 8, pt: 10, pb: 8, borderBottomWidth: 1, borderColor: "$edge", children: [_jsxs(XStack, { items: "center", gap: 10, px: 12, "$platform-web": { overflowX: 'auto', scrollbarWidth: 'none' }, children: [ORGS.map((x) => (_jsx(Tile, { org: x, on: x.id === o.id, n: x.id === o.id ? 0 : waiting(x.id), size: "lg", onPress: () => go(HOME[x.id]) }, x.id))), _jsx(Text, { "data-motion": "rise", fontSize: "$3", fontWeight: "700", color: "$ink", numberOfLines: 1, marginInlineStart: 4, children: o.name }, o.id)] }), _jsx(XStack, { ref: strip, gap: 6, px: 12, "$platform-web": { overflowX: 'auto', scrollbarWidth: 'none' }, children: o.channels.map((c) => {
251
+ }), "$platform-web": { textAlign: 'start' }, children: [_jsx(YStack, { display: "none", ...md(desk, { display: 'flex' }), minH: 0, children: rail }), _jsx(YStack, { display: "none", ...md(desk, { display: 'flex' }), minH: 0, borderColor: "$edge", borderInlineEndWidth: 1, bg: "$sunken", children: column }), _jsxs(YStack, { minW: 0, minH: 0, position: "relative", children: [_jsxs(XStack, { items: "center", gap: 10, px: 14, minH: 52, borderBottomWidth: 1, borderColor: "$edge", children: [_jsx(XStack, { ...md(desk, { display: 'none' }), children: _jsx(XStack, { render: _jsx("button", { type: "button", "aria-expanded": drawer, "aria-label": t('Channels in {org}', { org: o.name }), onClick: () => setDrawer(!drawer) }), width: 32, height: 32, rounded: 8, items: "center", justify: "center", bg: "transparent", ...ROW, "$platform-web": { borderRadius: '8px' }, children: _jsx(Menu, { size: 17, color: "var(--foreground)", "aria-hidden": true }) }) }), title, _jsxs(XStack, { display: "none", ...(width >= FACES ? { display: 'flex' } : {}), items: "center", children: [members.map((p, i) => (_jsx(View, { marginInlineStart: i ? -6 : 0, rounded: 9999, borderWidth: 2, borderColor: "var(--background)", "$platform-web": { borderRadius: '9999px' }, children: _jsx(Avatar, { id: p, size: 22 }) }, p))), _jsx(Text, { fontSize: "$1", color: "$soft", marginInlineStart: 6, "data-i18n-ltr": true, children: o.people.length + o.agents.length })] }), _jsxs(XStack, { "data-motion": "rise", items: "center", gap: 6, px: 10, height: 30, rounded: 8, borderWidth: 1, borderColor: huddle.length ? '$ink' : '$edge', bg: huddle.length ? '$ink' : 'transparent', "$platform-web": { borderRadius: '8px' }, children: [huddle.length ? _jsx(View, { "data-motion": "pulse", width: 7, height: 7, rounded: 9999, bg: "var(--state-online)", "$platform-web": { borderRadius: '9999px' } }) : null, _jsx(Headphones, { size: 14, color: huddle.length ? 'var(--background)' : 'var(--foreground)', "aria-hidden": true }), _jsx(Text, { display: "none", ...md(desk, { display: 'flex' }), fontSize: "$1", fontWeight: "600", color: huddle.length ? '$background' : '$ink', children: huddle.length ? t('Huddle · {count}', { count: huddle.length }) : t('Huddle') })] }, huddle.length ? 'on' : 'off')] }), _jsxs(YStack, { ...md(desk, { display: 'none' }), gap: 8, pt: 10, pb: 8, borderBottomWidth: 1, borderColor: "$edge", children: [_jsxs(XStack, { items: "center", gap: 10, px: 12, children: [ORGS.map((x) => (_jsx(Tile, { org: x, on: x.id === o.id, n: x.id === o.id ? 0 : waiting(x.id), size: "lg", onPress: () => go(HOME[x.id]) }, x.id))), _jsx(Text, { "data-motion": "rise", flex: 1, minW: 0, fontSize: "$3", fontWeight: "700", color: "$ink", numberOfLines: 1, marginInlineStart: 4, children: o.name }, o.id)] }), _jsx(XStack, { flexWrap: "wrap", gap: 6, px: 12, children: o.channels.map((c) => {
261
252
  const room = `${o.id}/${c.id}`;
262
253
  const on = room === here;
263
254
  const n = unread(room);
264
255
  return (_jsxs(XStack, { render: _jsx("button", { type: "button", "aria-pressed": on, "aria-label": t('Open #{channel}', { channel: c.id }), onClick: () => go(room) }), shrink: 0, items: "center", gap: 5, px: 10, height: 28, rounded: 9999, borderWidth: 1, borderColor: on ? '$ink' : '$edge', bg: on ? '$ink' : 'transparent', cursor: "pointer", focusVisibleStyle: ROW.focusVisibleStyle, "$platform-web": { borderRadius: '9999px' }, children: [_jsx(Text, { fontSize: "$1", fontWeight: on || n ? '700' : '500', color: on ? '$background' : n ? '$ink' : '$soft', "data-i18n-ltr": true, children: `#${c.id}` }), n && !on ? _jsx(Count, { n: n }) : null] }, c.id));
265
- }) })] }), list(messages, true), _jsx(XStack, { items: "center", gap: 6, px: 18, minH: 20, children: typing && typing.room === here ? (_jsxs(_Fragment, { children: [_jsx(Dots, {}), _jsx(Text, { fontSize: "$1", color: "$soft", numberOfLines: 1, children: t('{name} is typing…', { name: who(typing.who).name }) })] })) : null }), composer(t('Message #{channel}', { channel })), side && !roomy ? (_jsx(YStack, { "data-motion": "rise", position: "absolute", t: 0, b: 0, insetInlineEnd: 0, width: "100%", maxW: 420, borderColor: "$edge", borderInlineStartWidth: 1, bg: "var(--background)", boxShadow: "0 24px 60px -24px color-mix(in srgb, var(--pure-black) 60%, transparent)", children: side })) : null, _jsxs(XStack, { "aria-hidden": !drawer, position: "absolute", t: 0, b: 0, insetInlineStart: 0, width: "88%", maxW: 340, bg: "var(--background)", borderColor: "$edge", borderInlineEndWidth: 1, boxShadow: "0 24px 60px -24px color-mix(in srgb, var(--pure-black) 60%, transparent)", pointerEvents: drawer ? 'auto' : 'none', ...md(desk, { display: 'none' }), "$platform-web": {
266
- transform: drawer ? 'none' : `translateX(calc((100% + 32px) * ${dir === 'rtl' ? 1 : -1}))`,
267
- transition: still ? 'none' : 'transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1)',
268
- visibility: drawer ? 'visible' : 'hidden',
269
- }, children: [rail, _jsx(YStack, { flex: 1, minW: 0, bg: "$sunken", children: column })] })] }), side && roomy ? (_jsx(YStack, { minW: 0, minH: 0, borderColor: "$edge", borderInlineStartWidth: 1, children: side })) : null] }));
256
+ }) })] }), list(messages, true), _jsx(XStack, { items: "center", gap: 6, px: 18, minH: 20, children: typing && typing.room === here ? (_jsxs(_Fragment, { children: [_jsx(Dots, {}), _jsx(Text, { fontSize: "$1", color: "$soft", numberOfLines: 1, children: t('{name} is typing…', { name: who(typing.who).name }) })] })) : null }), composer(t('Message #{channel}', { channel })), side && !roomy ? (_jsx(YStack, { "data-motion": "rise", position: "absolute", t: 0, b: 0, insetInlineEnd: 0, width: "100%", maxW: 420, borderColor: "$edge", borderInlineStartWidth: 1, bg: "var(--background)", boxShadow: "0 24px 60px -24px color-mix(in srgb, var(--pure-black) 60%, transparent)", children: side })) : null, drawer && desk !== true ? (_jsxs(XStack, { "data-motion": "rise", position: "absolute", t: 0, b: 0, insetInlineStart: 0, width: "88%", maxW: 340, bg: "var(--background)", borderColor: "$edge", borderInlineEndWidth: 1, boxShadow: "0 24px 60px -24px color-mix(in srgb, var(--pure-black) 60%, transparent)", ...md(desk, { display: 'none' }), children: [rail, _jsx(YStack, { flex: 1, minW: 0, bg: "$sunken", children: column })] })) : null] }), side && roomy ? (_jsx(YStack, { minW: 0, minH: 0, borderColor: "$edge", borderInlineStartWidth: 1, children: side })) : null] }));
270
257
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/app",
3
- "version": "0.2.51",
3
+ "version": "0.2.53",
4
4
  "description": "Hanzo's app: the shell and its apps (Home, Chat, Inbox, Contacts, Meet, Calendar, Drive, Board, Work, Bots), once, for every Hanzo surface.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",