@hanzo/app 0.3.1 → 0.3.3
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/App.js +10 -8
- package/dist/Drawer.d.ts +20 -9
- package/dist/Drawer.js +11 -17
- package/dist/Editor.js +1 -21
- package/dist/OrgSwitcher.d.ts +18 -0
- package/dist/OrgSwitcher.js +58 -43
- package/dist/Shell.js +8 -14
- package/dist/Sidebar.js +1 -3
- package/dist/Start.js +1 -3
- package/dist/TeamPreview.js +11 -9
- package/dist/Upgrade.js +1 -5
- package/dist/span.d.ts +2 -3
- package/dist/span.js +9 -4
- package/package.json +7 -7
package/dist/App.js
CHANGED
|
@@ -76,7 +76,7 @@ import { Gate } from './Gate.js';
|
|
|
76
76
|
import { useHost } from './host.js';
|
|
77
77
|
import { useKept } from './kept.js';
|
|
78
78
|
import { Mark, raised, Rail, Toggle } from './Rail.js';
|
|
79
|
-
import { Layer, Lift,
|
|
79
|
+
import { Layer, Lift, useDrawer } from './Drawer.js';
|
|
80
80
|
import { empty, openThread, showSettings, useOpen } from './open.js';
|
|
81
81
|
import { Split } from './Shell.js';
|
|
82
82
|
import { Search } from './Search.js';
|
|
@@ -271,12 +271,14 @@ function Window({ bar, betas }) {
|
|
|
271
271
|
shut();
|
|
272
272
|
setFinding(true);
|
|
273
273
|
};
|
|
274
|
-
return (_jsx(AiProvider, { client: client ?? undefined, children: _jsx(HostProvider, { host: host, children: _jsx(PrefsProvider, { children: _jsx(UsageProvider, { children: _jsxs(YStack, { ref: windowRef, "data-slot": "window", ...(bar ? floor : null), flex: 1, minW: 0, height: bar ? '100%' : '100dvh', overflow: "hidden", rounded: bar ? '$3' : undefined, "$max-md": { position: 'fixed', t: TOP, l: 0, r: 0, height: HEIGHT, ...{ overflow: 'clip' } }, children: [bar ? (_jsxs(XStack, { "data-slot": "title-bar", height: BAR, shrink: 0, items: "center", gap: 2, pl: (bar.inset ?? 0) + 6, pr: "$2", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, ...bar.drag, children: [_jsx(XStack, { "$max-md": { display: 'none' }, children: _jsx(Toggle, { open: !closed, onPress: flip }) }), _jsx(XStack, { $md: { display: 'none' }, children: _jsx(Toggle, { open: drawer.state === 'open', onPress: drawer.open, label: t('Open sidebar') }) }), _jsx(Mark, { label: t('Back'), "data-slot": "back", onPress: () => router.back(), children: _jsx(ArrowLeft, { size: 18, "aria-hidden": true, "data-i18n-mirror": true }) }), _jsx(Mark, { label: t('Forward'), "data-slot": "forward", onPress: () => router.forward(), children: _jsx(ArrowRight, { size: 18, "aria-hidden": true, "data-i18n-mirror": true }) }), _jsx(XStack, { flex: 1, self: "stretch", ...bar.drag }), bar.controls !== undefined ? (bar.controls) : !bar.inset ? (_jsx(WindowControls, {})) : null] })) : null, _jsxs(XStack, { ref: drawer.pane, "data-app": mode, "data-slot": "frame", ...(bar ? null : floor), ...
|
|
275
|
-
// inline-style: the slide, a transform with no logical form whose sign and distance the drawer writes on the element itself, a drag every frame (Drawer.tsx).
|
|
276
|
-
style: drawer.slide ?? undefined, flex: 1, minW: 0, minH: 0, paddingInlineEnd: "var(--pane-gap)", pb: "var(--pane-gap)",
|
|
274
|
+
return (_jsx(AiProvider, { client: client ?? undefined, children: _jsx(HostProvider, { host: host, children: _jsx(PrefsProvider, { children: _jsx(UsageProvider, { children: _jsxs(YStack, { ref: windowRef, "data-slot": "window", ...(bar ? floor : null), flex: 1, minW: 0, height: bar ? '100%' : '100dvh', overflow: "hidden", rounded: bar ? '$3' : undefined, "$max-md": { position: 'fixed', t: TOP, l: 0, r: 0, height: HEIGHT, ...{ overflow: 'clip' } }, children: [bar ? (_jsxs(XStack, { "data-slot": "title-bar", height: BAR, shrink: 0, items: "center", gap: 2, pl: (bar.inset ?? 0) + 6, pr: "$2", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, ...bar.drag, children: [_jsx(XStack, { "$max-md": { display: 'none' }, children: _jsx(Toggle, { open: !closed, onPress: flip }) }), _jsx(XStack, { $md: { display: 'none' }, children: _jsx(Toggle, { open: drawer.state === 'open', onPress: drawer.open, label: t('Open sidebar') }) }), _jsx(Mark, { label: t('Back'), "data-slot": "back", onPress: () => router.back(), children: _jsx(ArrowLeft, { size: 18, "aria-hidden": true, "data-i18n-mirror": true }) }), _jsx(Mark, { label: t('Forward'), "data-slot": "forward", onPress: () => router.forward(), children: _jsx(ArrowRight, { size: 18, "aria-hidden": true, "data-i18n-mirror": true }) }), _jsx(XStack, { flex: 1, self: "stretch", ...bar.drag }), bar.controls !== undefined ? (bar.controls) : !bar.inset ? (_jsx(WindowControls, {})) : null] })) : null, _jsxs(XStack, { ref: drawer.pane, "data-app": mode, "data-slot": "frame", ...(bar ? null : floor), ...drawer.slide, flex: 1, minW: 0, minH: 0, paddingInlineEnd: "var(--pane-gap)", pb: "var(--pane-gap)",
|
|
277
275
|
// The gap above the pane is the gap at its end and foot; a window's own bar above it is that gap.
|
|
278
|
-
pt: bar ? 0 : 'var(--pane-gap)', "$max-md": { p: 0 }, children: [drawer.slide ? _jsx(Lift, {}) : null, _jsx(YStack, { height: "100%", "$max-md": { display: 'none' }, children: _jsx(Rail, { host: host, mode: mode, at: where, inside: inside, open: !closed, toggle: bar ? undefined : flip, onChat: toChat, onDev: toDev, onStudio: toStudio, onTabs: toTabs, go: move, onOrg: org }) }), closed || alone ? null : (_jsx(YStack, { "$max-md": { display: 'none' }, children: _jsx(Sidebar, { host: host, mode: mode, thread: thread, go: move, onShut: () => setClosed(true), onSeek: seek, onBack: back, places: sidebar }) })), _jsxs(YStack, { "data-slot": "stage",
|
|
279
|
-
//
|
|
280
|
-
//
|
|
281
|
-
|
|
276
|
+
pt: bar ? 0 : 'var(--pane-gap)', "$max-md": { p: 0 }, children: [drawer.slide ? _jsx(Lift, {}) : null, _jsx(YStack, { height: "100%", "$max-md": { display: 'none' }, children: _jsx(Rail, { host: host, mode: mode, at: where, inside: inside, open: !closed, toggle: bar ? undefined : flip, onChat: toChat, onDev: toDev, onStudio: toStudio, onTabs: toTabs, go: move, onOrg: org }) }), closed || alone ? null : (_jsx(YStack, { "$max-md": { display: 'none' }, children: _jsx(Sidebar, { host: host, mode: mode, thread: thread, go: move, onShut: () => setClosed(true), onSeek: seek, onBack: back, places: sidebar }) })), _jsxs(YStack, { "data-slot": "stage",
|
|
277
|
+
// A column: the phone's bar, then the panes taking the rest. Not a grid of `auto` and
|
|
278
|
+
// `1fr` rows: from md the bar is display none, which leaves the grid, so the panes were
|
|
279
|
+
// placed in the `auto` row and stood their content's height, and Dev's pane, which
|
|
280
|
+
// scrolls inside, collapsed to its border (Projects drew blank). The rest of the row
|
|
281
|
+
// beside the rail and the sidebar, never width 100%: a View does not shrink, so at the
|
|
282
|
+
// row's full width again the pane stood past the window's edge.
|
|
283
|
+
flex: 1, minW: 0, minH: 0, marginInlineStart: closed || alone ? 0 : 'var(--pane-gap)', "$max-md": { marginInlineStart: 0, pb: `max(var(--pane-gap), ${FOOT})` }, children: [bar ? null : _jsx(Bar, { host: host, mode: mode, places: sidebar, open: drawer.state !== 'shut', go: move, onMenu: drawer.open, onChat: toChat, onDev: toDev }), _jsx(XStack, { "data-slot": "panes", flex: 1, display: "grid", gridTemplateColumns: "minmax(0, 1fr)", gridTemplateRows: "minmax(0, 1fr)", minW: 0, minH: 0, children: mode === 'chat' ? (_jsx(Split, { framed: true, children: _jsx(Chat, {}) })) : mode === 'tabs' ? (_jsx(YStack, { render: "main", "data-slot": "pane", ...pane(), overflow: "hidden", flex: 1, minW: 0, minH: 0, children: _jsx(Suspense, { fallback: null, children: _jsx(Terminals, {}) }) })) : mode === 'studio' ? (_jsx(YStack, { render: "main", "data-slot": "pane", ...pane(), overflow: "hidden", flex: 1, minW: 0, minH: 0, children: _jsx(YStack, { flex: 1, minH: 0, height: "100%", children: _jsx(Suspense, { fallback: null, children: _jsx(Studio, { host: maker, rail: false }) }) }) })) : at.mode === 'hosted' ? (_jsx(YStack, { render: "main", "data-slot": "pane", ...pane(), overflow: "hidden", flex: 1, minW: 0, minH: 0, children: _jsx(Suspense, { fallback: null, children: _jsx(Hosted, { id: at.id, go: move }) }) })) : mode === 'beta' ? (_jsx(YStack, { render: "main", "data-slot": "pane", ...pane(), overflowY: "auto", overflowX: "hidden", flex: 1, minW: 0, minH: 0, p: "$4", $md: { p: '$6' }, children: betas ?? (_jsx(Suspense, { fallback: null, children: _jsx(Betas, { go: move }) })) })) : (_jsx(YStack, { render: "main", "data-slot": "pane", ...(run ? null : { ...pane(), overflow: 'hidden' }), flex: 1, minW: 0, minH: 0, children: plans ? null : _jsx(Builder, { host: host, rail: false }) })) })] })] }), drawer.state === 'shut' ? null : (_jsx(Layer, { drawer: drawer, top: bar ? BAR : 0, children: _jsxs(XStack, { flex: 1, minH: 0, children: [_jsx(YStack, { "data-slot": "drawer-rail", shrink: 0, pt: "$2", children: _jsx(Rail, { host: host, mode: mode, at: where, inside: inside, open: true, onChat: toChat, onDev: toDev, onStudio: toStudio, onTabs: toTabs, go: move, onOrg: org }) }), _jsx(YStack, { flex: 1, minW: 0, children: _jsx(Sidebar, { host: host, mode: mode, thread: thread, go: move, onShut: shut, onSeek: seek, onBack: back, drawer: true, places: sidebar }) })] }) })), finding ? _jsx(Search, { go: move, onClose: found, mode: mode, host: host }) : null, learning ? _jsx(Learning, { open: true, onClose: () => setLearning(false) }) : null] }) }) }) }) }));
|
|
282
284
|
}
|
package/dist/Drawer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import { type State } from './slide.js';
|
|
3
3
|
/** A press that moves the app: told whether it should take the menu's place in history. */
|
|
4
4
|
export type Move = (replace: boolean) => void;
|
|
@@ -22,20 +22,30 @@ export interface Drawer {
|
|
|
22
22
|
pane: (node: unknown) => void;
|
|
23
23
|
/** The menu's layer. */
|
|
24
24
|
layer: (node: unknown) => void;
|
|
25
|
-
/** The pane's slide,
|
|
26
|
-
slide:
|
|
25
|
+
/** The pane's slide, gui props to spread on it: null while shut, so nothing is transformed and nothing is raised. */
|
|
26
|
+
slide: typeof SLIDE | null;
|
|
27
27
|
}
|
|
28
|
-
export declare function useDrawer(): Drawer;
|
|
29
28
|
/**
|
|
30
|
-
* The pane while the menu is out: raised over the floor, its
|
|
31
|
-
*
|
|
32
|
-
*
|
|
29
|
+
* The pane while the menu is out: raised over the floor, opaque, its start
|
|
30
|
+
* corners round and its edge drawn, and offset as a transform: `--drawer-way`
|
|
31
|
+
* the end side's sign, `--drawer-at` the distance, both written on the pane by
|
|
32
|
+
* the drawer (a drag rewrites the distance every frame, no React commit).
|
|
33
|
+
* Spread on the pane after its floor; `Lift` is its fill.
|
|
33
34
|
*/
|
|
34
|
-
|
|
35
|
+
declare const SLIDE: {
|
|
36
|
+
readonly position: 'relative';
|
|
35
37
|
readonly z: 'var(--z-raised)';
|
|
36
38
|
readonly overflow: 'hidden';
|
|
37
|
-
readonly
|
|
39
|
+
readonly bg: 'var(--pane-solid)';
|
|
40
|
+
readonly borderStartStartRadius: 'var(--radius-composer)';
|
|
41
|
+
readonly borderEndStartRadius: 'var(--radius-composer)';
|
|
42
|
+
readonly boxShadow: '0 0 0 1px var(--border-strong), var(--shadow-floating)';
|
|
43
|
+
readonly '$platform-web': {
|
|
44
|
+
readonly transform: 'translateX(calc(var(--drawer-way, 1) * var(--drawer-at, 0px)))';
|
|
45
|
+
readonly willChange: 'transform';
|
|
46
|
+
};
|
|
38
47
|
};
|
|
48
|
+
export declare function useDrawer(): Drawer;
|
|
39
49
|
/**
|
|
40
50
|
* The raised pane's fill: the pane's own material composited opaque, a step
|
|
41
51
|
* brighter than the floor the menu stands on, in both themes. Drawn UNDER the
|
|
@@ -52,3 +62,4 @@ export declare function Layer({ drawer, top, children }: {
|
|
|
52
62
|
top?: number;
|
|
53
63
|
children: ReactNode;
|
|
54
64
|
}): import("react").JSX.Element;
|
|
65
|
+
export {};
|
package/dist/Drawer.js
CHANGED
|
@@ -41,20 +41,24 @@ import { YStack, useMedia } from '@hanzo/gui';
|
|
|
41
41
|
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
42
42
|
import { axis, OPEN, pull, settle, sign } from './slide.js';
|
|
43
43
|
/**
|
|
44
|
-
* The pane
|
|
45
|
-
*
|
|
46
|
-
*
|
|
44
|
+
* The pane while the menu is out: raised over the floor, opaque, its start
|
|
45
|
+
* corners round and its edge drawn, and offset as a transform: `--drawer-way`
|
|
46
|
+
* the end side's sign, `--drawer-at` the distance, both written on the pane by
|
|
47
|
+
* the drawer (a drag rewrites the distance every frame, no React commit).
|
|
48
|
+
* Spread on the pane after its floor; `Lift` is its fill.
|
|
47
49
|
*/
|
|
48
50
|
const SLIDE = {
|
|
49
51
|
position: 'relative',
|
|
50
|
-
|
|
52
|
+
z: 'var(--z-raised)',
|
|
51
53
|
overflow: 'hidden',
|
|
52
|
-
|
|
53
|
-
transform: 'translateX(calc(var(--drawer-way, 1) * var(--drawer-at, 0px)))',
|
|
54
|
+
bg: 'var(--pane-solid)',
|
|
54
55
|
borderStartStartRadius: 'var(--radius-composer)',
|
|
55
56
|
borderEndStartRadius: 'var(--radius-composer)',
|
|
56
57
|
boxShadow: '0 0 0 1px var(--border-strong), var(--shadow-floating)',
|
|
57
|
-
|
|
58
|
+
'$platform-web': {
|
|
59
|
+
transform: 'translateX(calc(var(--drawer-way, 1) * var(--drawer-at, 0px)))',
|
|
60
|
+
willChange: 'transform',
|
|
61
|
+
},
|
|
58
62
|
};
|
|
59
63
|
/** The slide's motion: the system's base duration on its entrance curve. */
|
|
60
64
|
const MOTION = 'transform var(--duration-base) var(--ease-emphasis)';
|
|
@@ -322,16 +326,6 @@ export function useDrawer() {
|
|
|
322
326
|
slide: state === 'shut' ? null : SLIDE,
|
|
323
327
|
};
|
|
324
328
|
}
|
|
325
|
-
/**
|
|
326
|
-
* The pane while the menu is out: raised over the floor, its edge drawn and a
|
|
327
|
-
* drop falling on the menu, clipped to its corners. Spread on the pane beside
|
|
328
|
-
* `slide`; `Lift` is its fill.
|
|
329
|
-
*/
|
|
330
|
-
export const RAISED = {
|
|
331
|
-
z: 'var(--z-raised)',
|
|
332
|
-
overflow: 'hidden',
|
|
333
|
-
boxShadow: '0 0 0 1px var(--pane-edge), var(--shadow-floating)',
|
|
334
|
-
};
|
|
335
329
|
/**
|
|
336
330
|
* The raised pane's fill: the pane's own material composited opaque, a step
|
|
337
331
|
* brighter than the floor the menu stands on, in both themes. Drawn UNDER the
|
package/dist/Editor.js
CHANGED
|
@@ -70,25 +70,5 @@ export function Editor({ filePath, fileName, onClose, onAskInChat }) {
|
|
|
70
70
|
return () => window.removeEventListener('keydown', handleKeyDown);
|
|
71
71
|
}, [handleSave, onClose]);
|
|
72
72
|
const lineCount = content.split('\n').length;
|
|
73
|
-
return (_jsxs(YStack, { position: "absolute", t: 0, r: 0, b: 0, l: 0, z: 30, bg: "$background", overflow: "hidden", "data-slot": "local-file-editor", children: [_jsxs(XStack, { height: 52, items: "center", justify: "space-between", px: "$4", borderBottomWidth: 1, borderColor: "$borderColor", bg: "$panel", shrink: 0, children: [_jsxs(XStack, { items: "center", gap: "$3", minW: 0, flex: 1, children: [_jsx(Button, { variant: "ghost", size: "icon-sm", onClick: onClose, "aria-label": t('Back'), children: _jsx(ArrowLeft, { size: 16 }) }), _jsx(FileCode, { size: 18, color: "var(--primary)", "aria-hidden": true }), _jsxs(YStack, { minW: 0, flex: 1, children: [_jsxs(XStack, { items: "center", gap: "$2", children: [_jsx(Text, { fontSize: "$3", fontWeight: "600", color: "$ink", numberOfLines: 1, children: name }), isDirty ? (_jsxs(Text, { fontSize: "$1", color: "var(--primary)", fontWeight: "600", children: ["\u25CF ", t('Modified')] })) : null] }), _jsx(Text, { fontSize: "$1", color: "$soft", numberOfLines: 1, children: filePath })] })] }), _jsxs(XStack, { items: "center", gap: "$2", children: [error ? (_jsx(Text, { fontSize: "$1", color: "var(--destructive)", numberOfLines: 1, maxW: 240, children: error })) : null, onAskInChat ? (_jsxs(Button, { variant: "outline", size: "sm", onClick: () => onAskInChat(filePath, name), "aria-label": t('Ask in Chat'), children: [_jsx(MessageSquare, { size: 14 }), t('Ask in Chat')] })) : null, _jsxs(Button, { variant: isDirty ? 'default' : 'secondary', size: "sm", onClick: () => void handleSave(), disabled: saving || !isDirty, "aria-label": t('Save'), children: [saved ? _jsx(Check, { size: 14 }) : _jsx(Save, { size: 14 }), saved ? t('Saved') : saving ? t('Saving…') : t('Save (⌘S)')] }), _jsx(Button, { variant: "ghost", size: "icon-sm", onClick: onClose, "aria-label": t('Close'), children: _jsx(X, { size: 16 }) })] })] }), loading ? (_jsx(YStack, { flex: 1, items: "center", justify: "center", gap: "$3", children: _jsx(Text, { fontSize: "$3", color: "$soft", children: t('Loading file…') }) })) : error && !content ? (_jsxs(YStack, { flex: 1, items: "center", justify: "center", p: "$6", gap: "$3", children: [_jsx(Text, { fontSize: "$4", color: "var(--destructive)", fontWeight: "600", children: t('Failed to open file') }), _jsx(Text, { fontSize: "$2", color: "$soft", text: "center", maxW: 480, children: error }), _jsx(Button, { variant: "outline", size: "sm", onClick: onClose, mt: "$3", children: t('Go back') })] })) : (_jsxs(XStack, { flex: 1, minH: 0, overflow: "hidden", children: [_jsx(YStack, { width: 48, py: "$3", px: "$2", bg: "$panel", borderRightWidth: 1, borderColor: "$borderColor",
|
|
74
|
-
// inline-style: user-select is needed to prevent selection of line numbers
|
|
75
|
-
style: { userSelect: 'none' }, overflow: "hidden", items: "flex-end", children: Array.from({ length: Math.min(lineCount, 5000) }).map((_, i) => (_jsx(Text, { fontSize: 12, lineHeight: 20, fontFamily: "$mono", color: "$faint", children: i + 1 }, i))) }), _jsx("textarea", { value: content, onChange: (e) => setContent(e.target.value), spellCheck: false, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off",
|
|
76
|
-
// inline-style: raw textarea styling for code editing
|
|
77
|
-
style: {
|
|
78
|
-
flex: 1,
|
|
79
|
-
height: '100%',
|
|
80
|
-
backgroundColor: 'transparent',
|
|
81
|
-
color: 'var(--foreground)',
|
|
82
|
-
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',
|
|
83
|
-
fontSize: 'var(--text-sm)',
|
|
84
|
-
lineHeight: '20px',
|
|
85
|
-
padding: '12px 16px',
|
|
86
|
-
border: 'none',
|
|
87
|
-
outline: 'none',
|
|
88
|
-
resize: 'none',
|
|
89
|
-
whiteSpace: 'pre',
|
|
90
|
-
overflowWrap: 'normal',
|
|
91
|
-
overflowX: 'auto',
|
|
92
|
-
overflowY: 'auto',
|
|
93
|
-
} })] }))] }));
|
|
73
|
+
return (_jsxs(YStack, { position: "absolute", t: 0, r: 0, b: 0, l: 0, z: 30, bg: "$background", overflow: "hidden", "data-slot": "local-file-editor", children: [_jsxs(XStack, { height: 52, items: "center", justify: "space-between", px: "$4", borderBottomWidth: 1, borderColor: "$borderColor", bg: "$panel", shrink: 0, children: [_jsxs(XStack, { items: "center", gap: "$3", minW: 0, flex: 1, children: [_jsx(Button, { variant: "ghost", size: "icon-sm", onClick: onClose, "aria-label": t('Back'), children: _jsx(ArrowLeft, { size: 16 }) }), _jsx(FileCode, { size: 18, color: "var(--primary)", "aria-hidden": true }), _jsxs(YStack, { minW: 0, flex: 1, children: [_jsxs(XStack, { items: "center", gap: "$2", children: [_jsx(Text, { fontSize: "$3", fontWeight: "600", color: "$ink", numberOfLines: 1, children: name }), isDirty ? (_jsxs(Text, { fontSize: "$1", color: "var(--primary)", fontWeight: "600", children: ["\u25CF ", t('Modified')] })) : null] }), _jsx(Text, { fontSize: "$1", color: "$soft", numberOfLines: 1, children: filePath })] })] }), _jsxs(XStack, { items: "center", gap: "$2", children: [error ? (_jsx(Text, { fontSize: "$1", color: "var(--destructive)", numberOfLines: 1, maxW: 240, children: error })) : null, onAskInChat ? (_jsxs(Button, { variant: "outline", size: "sm", onClick: () => onAskInChat(filePath, name), "aria-label": t('Ask in Chat'), children: [_jsx(MessageSquare, { size: 14 }), t('Ask in Chat')] })) : null, _jsxs(Button, { variant: isDirty ? 'default' : 'secondary', size: "sm", onClick: () => void handleSave(), disabled: saving || !isDirty, "aria-label": t('Save'), children: [saved ? _jsx(Check, { size: 14 }) : _jsx(Save, { size: 14 }), saved ? t('Saved') : saving ? t('Saving…') : t('Save (⌘S)')] }), _jsx(Button, { variant: "ghost", size: "icon-sm", onClick: onClose, "aria-label": t('Close'), children: _jsx(X, { size: 16 }) })] })] }), loading ? (_jsx(YStack, { flex: 1, items: "center", justify: "center", gap: "$3", children: _jsx(Text, { fontSize: "$3", color: "$soft", children: t('Loading file…') }) })) : error && !content ? (_jsxs(YStack, { flex: 1, items: "center", justify: "center", p: "$6", gap: "$3", children: [_jsx(Text, { fontSize: "$4", color: "var(--destructive)", fontWeight: "600", children: t('Failed to open file') }), _jsx(Text, { fontSize: "$2", color: "$soft", text: "center", maxW: 480, children: error }), _jsx(Button, { variant: "outline", size: "sm", onClick: onClose, mt: "$3", children: t('Go back') })] })) : (_jsxs(XStack, { flex: 1, minH: 0, overflow: "hidden", children: [_jsx(YStack, { width: 48, py: "$3", px: "$2", bg: "$panel", borderRightWidth: 1, borderColor: "$borderColor", overflow: "hidden", "$platform-web": { userSelect: 'none' }, items: "flex-end", children: Array.from({ length: Math.min(lineCount, 5000) }).map((_, i) => (_jsx(Text, { fontSize: 12, lineHeight: 20, fontFamily: "$mono", color: "$faint", children: i + 1 }, i))) }), _jsx(Text, { render: _jsx("textarea", { value: content, onChange: (e) => setContent(e.target.value), spellCheck: false, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off" }), flex: 1, height: "100%", bg: "transparent", color: "var(--foreground)", fontFamily: "$mono", fontSize: "$2", lineHeight: 20, py: 12, px: 16, borderWidth: 0, outlineStyle: "none", whiteSpace: "pre", "$platform-web": { resize: 'none', overflowWrap: 'normal', overflowX: 'auto', overflowY: 'auto' } })] }))] }));
|
|
94
74
|
}
|
package/dist/OrgSwitcher.d.ts
CHANGED
|
@@ -8,6 +8,16 @@ export interface OrganizationItem {
|
|
|
8
8
|
role?: string;
|
|
9
9
|
isPersonal?: boolean;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* The organizations a person belongs to (the account's and IAM's, merged by
|
|
13
|
+
* id), the one this page works in, and how to choose another. The dropdown and
|
|
14
|
+
* the rooms' org rail read the same list.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useOrgList(): {
|
|
17
|
+
orgs: OrganizationItem[];
|
|
18
|
+
active: string;
|
|
19
|
+
choose: (id: string) => void;
|
|
20
|
+
};
|
|
11
21
|
export declare function OrgSwitcherDropdown({ open, onClose, activeOrgId, onSelect, align, side, triggerRef, }: {
|
|
12
22
|
open: boolean;
|
|
13
23
|
onClose: () => void;
|
|
@@ -30,3 +40,11 @@ export declare function OrgSwitcherDropdown({ open, onClose, activeOrgId, onSele
|
|
|
30
40
|
* IAM answered, which is also the id a press would have switched to.
|
|
31
41
|
*/
|
|
32
42
|
export declare function TopOrgSelector(): import("react").JSX.Element;
|
|
43
|
+
/**
|
|
44
|
+
* The organizations as tiles down the far left, as a team chat draws them:
|
|
45
|
+
* each its logo, or its initial in its own hue (@hanzo/ui `Avatar` seeded on its
|
|
46
|
+
* id, as the org chooser and the landing's preview draw it), the one this page
|
|
47
|
+
* works in ringed, and "+" under them for the chooser, where another is made or
|
|
48
|
+
* joined. A press works in that organization.
|
|
49
|
+
*/
|
|
50
|
+
export declare function Tiles(): import("react").JSX.Element;
|
package/dist/OrgSwitcher.js
CHANGED
|
@@ -5,10 +5,10 @@ import { useI18n } from '@hanzo/i18n/react';
|
|
|
5
5
|
import { Check, ChevronDown, Plus, Settings } from 'lucide-react';
|
|
6
6
|
import { HanzoMark } from '@hanzogui/shell';
|
|
7
7
|
import { useOrganizations } from '@hanzo/iam/react';
|
|
8
|
-
import { Button } from '@hanzo/ui';
|
|
8
|
+
import { Avatar, Button } from '@hanzo/ui';
|
|
9
9
|
import { useAccount } from './lib/account.js';
|
|
10
10
|
import { iam } from './lib/api.js';
|
|
11
|
-
import { pick } from './lib/session.js';
|
|
11
|
+
import { CHOOSE, pick } from './lib/session.js';
|
|
12
12
|
import { Text, View, XStack, YStack } from '@hanzo/gui';
|
|
13
13
|
import { site } from './where.js';
|
|
14
14
|
import { settings } from './lib/host.js';
|
|
@@ -16,10 +16,46 @@ import { settings } from './lib/host.js';
|
|
|
16
16
|
const FLOOR = 10;
|
|
17
17
|
/** A row at the foot of the menu that leaves for another page: a ghost Button, label at the start. */
|
|
18
18
|
const LINK = { variant: 'ghost', size: 'sm', width: '100%', justify: 'flex-start' };
|
|
19
|
+
/**
|
|
20
|
+
* The organizations a person belongs to (the account's and IAM's, merged by
|
|
21
|
+
* id), the one this page works in, and how to choose another. The dropdown and
|
|
22
|
+
* the rooms' org rail read the same list.
|
|
23
|
+
*/
|
|
24
|
+
export function useOrgList() {
|
|
25
|
+
const { organizations: iamOrgs, switchOrg, currentOrg, currentOrgId } = useOrganizations() || {};
|
|
26
|
+
const { organizations: accountOrgs, switchOrganization, currentOrganization } = useAccount() || {};
|
|
27
|
+
const orgs = useMemo(() => {
|
|
28
|
+
const map = new Map();
|
|
29
|
+
for (const o of [...(accountOrgs ?? []), ...(iamOrgs ?? [])]) {
|
|
30
|
+
const item = o;
|
|
31
|
+
const id = item.id || item.name;
|
|
32
|
+
if (id && !map.has(id)) {
|
|
33
|
+
map.set(id, {
|
|
34
|
+
id,
|
|
35
|
+
name: item.name || id,
|
|
36
|
+
displayName: item.displayName || item.name || id,
|
|
37
|
+
logo: item.logo || item.avatar,
|
|
38
|
+
role: item.role || 'member',
|
|
39
|
+
isPersonal: Boolean(item.isPersonal),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return Array.from(map.values());
|
|
44
|
+
}, [accountOrgs, iamOrgs]);
|
|
45
|
+
const current = (currentOrganization || currentOrg);
|
|
46
|
+
const active = current?.name || current?.id || currentOrgId || '';
|
|
47
|
+
const choose = (id) => {
|
|
48
|
+
pick(id);
|
|
49
|
+
if (switchOrg)
|
|
50
|
+
switchOrg(id);
|
|
51
|
+
if (switchOrganization)
|
|
52
|
+
switchOrganization(id);
|
|
53
|
+
};
|
|
54
|
+
return { orgs, active, choose };
|
|
55
|
+
}
|
|
19
56
|
export function OrgSwitcherDropdown({ open, onClose, activeOrgId, onSelect, align = 'left', side = 'below', triggerRef, }) {
|
|
20
57
|
const { t } = useI18n();
|
|
21
|
-
const {
|
|
22
|
-
const { organizations: accountOrgs, switchOrganization } = useAccount() || {};
|
|
58
|
+
const { orgs, choose } = useOrgList();
|
|
23
59
|
const menuRef = useRef(null);
|
|
24
60
|
useEffect(() => {
|
|
25
61
|
if (!open)
|
|
@@ -45,40 +81,6 @@ export function OrgSwitcherDropdown({ open, onClose, activeOrgId, onSelect, alig
|
|
|
45
81
|
document.removeEventListener('keydown', handleKeyDown);
|
|
46
82
|
};
|
|
47
83
|
}, [open, onClose, triggerRef]);
|
|
48
|
-
const orgs = useMemo(() => {
|
|
49
|
-
const map = new Map();
|
|
50
|
-
// Add detected account orgs
|
|
51
|
-
for (const o of (accountOrgs ?? [])) {
|
|
52
|
-
const item = o;
|
|
53
|
-
const id = item.id || item.name;
|
|
54
|
-
if (id) {
|
|
55
|
-
map.set(id, {
|
|
56
|
-
id,
|
|
57
|
-
name: item.name || id,
|
|
58
|
-
displayName: item.displayName || item.name || id,
|
|
59
|
-
logo: item.logo || item.avatar,
|
|
60
|
-
role: item.role || 'member',
|
|
61
|
-
isPersonal: Boolean(item.isPersonal),
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
// Add detected IAM orgs
|
|
66
|
-
for (const o of (iamOrgs ?? [])) {
|
|
67
|
-
const item = o;
|
|
68
|
-
const id = item.id || item.name;
|
|
69
|
-
if (id && !map.has(id)) {
|
|
70
|
-
map.set(id, {
|
|
71
|
-
id,
|
|
72
|
-
name: item.name || id,
|
|
73
|
-
displayName: item.displayName || item.name || id,
|
|
74
|
-
logo: item.logo || item.avatar,
|
|
75
|
-
role: item.role || 'member',
|
|
76
|
-
isPersonal: Boolean(item.isPersonal),
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return Array.from(map.values());
|
|
81
|
-
}, [accountOrgs, iamOrgs]);
|
|
82
84
|
if (!open)
|
|
83
85
|
return null;
|
|
84
86
|
// Where it opens. The offset rides a margin, so each edge is a plain length gui can take.
|
|
@@ -92,11 +94,7 @@ export function OrgSwitcherDropdown({ open, onClose, activeOrgId, onSelect, alig
|
|
|
92
94
|
return (_jsxs(YStack, { ref: menuRef, position: "absolute", ...position, width: 260, maxW: "calc(100vw - 24px)", bg: "var(--popover)", rounded: 12, borderWidth: 1, borderColor: "$borderColor", boxShadow: "var(--shadow-lg)", z: "var(--z-dropdown)", p: 6, gap: 2, children: [_jsx(Text, { pt: 6, px: 10, pb: 4, fontSize: "$1", fontWeight: "600", color: "$faint", textTransform: "uppercase", letterSpacing: 0.6, children: t('Workspaces') }), orgs.length === 0 ? (_jsx(Text, { pt: 6, px: 10, pb: 10, fontSize: "$2", color: "$faint", children: t('No workspaces on this account yet.') })) : null, orgs.map((o) => {
|
|
93
95
|
const isSelected = o.id === activeOrgId || o.name === activeOrgId;
|
|
94
96
|
return (_jsxs(Button, { variant: "ghost", onClick: () => {
|
|
95
|
-
|
|
96
|
-
if (switchOrg)
|
|
97
|
-
switchOrg(o.id);
|
|
98
|
-
if (switchOrganization)
|
|
99
|
-
switchOrganization(o.id);
|
|
97
|
+
choose(o.id);
|
|
100
98
|
onSelect(o.id);
|
|
101
99
|
onClose();
|
|
102
100
|
}, width: "100%", justify: "space-between", px: 10, py: 6, bg: isSelected ? '$hover' : 'transparent', children: [_jsxs(XStack, { items: "center", gap: 10, minW: 0, shrink: 1, children: [_jsx(Text, { width: 24, height: 24, rounded: 6, bg: "$raised", display: "flex", items: "center", justify: "center", fontSize: "$2", fontWeight: "700", color: "$ink", shrink: 0, overflow: "hidden", children: o.logo ? (_jsx(View, { render: _jsx("img", { src: o.logo, alt: "" }), width: "100%", height: "100%", objectFit: "cover" })) : (o.displayName.toLowerCase().includes('hanzo') || o.name.toLowerCase().includes('hanzo')) ? (_jsx(HanzoMark, { size: 14 })) : (o.name.slice(0, 3).toUpperCase()) }), _jsxs(YStack, { minW: 0, shrink: 1, items: "flex-start", children: [_jsx(Text, { fontSize: "$2", fontWeight: isSelected ? '600' : '500', color: "$ink", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", children: o.displayName }), o.role ? (_jsx(Text, { fontSize: FLOOR, color: "$faint", children: o.role })) : null] })] }), isSelected ? _jsx(Check, { size: 14, color: "currentColor" }) : null] }, o.id));
|
|
@@ -124,3 +122,20 @@ export function TopOrgSelector() {
|
|
|
124
122
|
const activeOrgName = activeOrg?.displayName || activeOrg?.name || 'hanzo';
|
|
125
123
|
return (_jsxs(XStack, { position: "relative", display: "inline-flex", items: "center", children: [_jsxs(Button, { ref: buttonRef, size: "sm", variant: open ? 'secondary' : 'default', onClick: () => setOpen((v) => !v), gap: 6, paddingInlineStart: 6, paddingInlineEnd: 8, "aria-label": t('Switch organization'), children: [_jsx(XStack, { width: 20, height: 20, rounded: 9999, bg: "$raised", items: "center", justify: "center", overflow: "hidden", children: face ? (_jsx(View, { render: _jsx("img", { src: face, alt: "", width: 20, height: 20 }), width: "100%", height: "100%", objectFit: "cover" })) : (_jsx(HanzoMark, { size: 13 })) }), _jsx(Text, { fontSize: "$2", fontWeight: "600", color: "$ink", maxW: 140, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", children: activeOrgName }), _jsx(ChevronDown, { size: 13, opacity: 0.65 })] }), _jsx(OrgSwitcherDropdown, { open: open, onClose: () => setOpen(false), activeOrgId: activeOrgId, onSelect: () => setOpen(false), triggerRef: buttonRef })] }));
|
|
126
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* The organizations as tiles down the far left, as a team chat draws them:
|
|
127
|
+
* each its logo, or its initial in its own hue (@hanzo/ui `Avatar` seeded on its
|
|
128
|
+
* id, as the org chooser and the landing's preview draw it), the one this page
|
|
129
|
+
* works in ringed, and "+" under them for the chooser, where another is made or
|
|
130
|
+
* joined. A press works in that organization.
|
|
131
|
+
*/
|
|
132
|
+
export function Tiles() {
|
|
133
|
+
const { t } = useI18n();
|
|
134
|
+
const { orgs, active, choose } = useOrgList();
|
|
135
|
+
if (orgs.length === 0)
|
|
136
|
+
return null;
|
|
137
|
+
return (_jsxs(YStack, { "data-slot": "org-tiles", role: "group", "aria-label": t('Organizations'), items: "center", gap: 10, pt: 10, pb: 6, children: [orgs.map((o) => {
|
|
138
|
+
const on = o.id === active || o.name === active;
|
|
139
|
+
return (_jsxs(XStack, { position: "relative", items: "center", justify: "center", children: [_jsx(View, { position: "absolute", insetInlineStart: -10, width: 4, height: on ? 26 : 0, rounded: 9999, bg: "$color" }), _jsx(XStack, { render: "button", "aria-pressed": on, "aria-label": t('Open {org}', { org: o.displayName }), ...{ title: o.displayName }, onClick: () => choose(o.id), p: 2, rounded: 10, borderWidth: 2, borderColor: on ? '$color' : 'transparent', bg: "transparent", cursor: "pointer", opacity: on ? 1 : 0.8, hoverStyle: { opacity: 1 }, focusVisibleStyle: { outlineWidth: 2, outlineStyle: 'solid', outlineColor: '$outlineColor' }, children: _jsx(Avatar, { size: "lg", shape: "rounded", src: o.logo || null, name: o.displayName, colorSeed: o.id, variant: on ? 'outline' : 'soft', alt: "" }) })] }, o.id));
|
|
140
|
+
}), _jsx(XStack, { render: "button", "aria-label": t('Organizations'), ...{ title: t('Organizations') }, onClick: () => void window.dispatchEvent(new Event(CHOOSE)), width: 32, height: 32, rounded: 8, items: "center", justify: "center", borderWidth: 1, borderColor: "$borderColor", bg: "transparent", cursor: "pointer", hoverStyle: { bg: '$backgroundHover' }, children: _jsx(Plus, { size: 15, "aria-hidden": true }) })] }));
|
|
141
|
+
}
|
package/dist/Shell.js
CHANGED
|
@@ -123,6 +123,7 @@ import { getStoredPeople, getStoredAgents, getCustomThreads, createDirectChat, }
|
|
|
123
123
|
import { bare } from './lib/bare.js';
|
|
124
124
|
import { BAD } from './lib/mix.js';
|
|
125
125
|
import { brand, site, where, wordmark } from './where.js';
|
|
126
|
+
import { Tiles } from './OrgSwitcher.js';
|
|
126
127
|
/** The pane while a settings row is open, loaded when one is: none of it is an app's first screen. */
|
|
127
128
|
const SettingsPane = lazy(() => import('./SettingsPane.js').then((m) => ({ default: m.SettingsPane })));
|
|
128
129
|
/**
|
|
@@ -968,13 +969,9 @@ export function Split({ children, swap, framed = false, bare = false, }) {
|
|
|
968
969
|
borderInlineStartWidth: 1,
|
|
969
970
|
borderInlineStartStyle: "solid",
|
|
970
971
|
borderColor: "var(--edge, var(--white-06))",
|
|
971
|
-
}), ref: split.main,
|
|
972
|
-
// inline-style: the pane hidden while the column takes its space, written by a drag too (useSplit).
|
|
973
|
-
style: split.mainStyle, width: "100%", height: "100%", minW: 0, minH: 0, children: swap ?? (_jsx(Framed.Provider, { value: framed, children: _jsx(SideProvider, { value: split.side, children: _jsx(Slot.Provider, { value: slot, children: children }) }) })) }), aside ? (_jsxs(YStack, { render: "aside", "data-slot": "side", gridArea: "side", ...pane(framed ? undefined : sheet(1).backgroundColor),
|
|
972
|
+
}), ref: split.main, width: "100%", height: "100%", minW: 0, minH: 0, children: swap ?? (_jsx(Framed.Provider, { value: framed, children: _jsx(SideProvider, { value: split.side, children: _jsx(Slot.Provider, { value: slot, children: children }) }) })) }), aside ? (_jsxs(YStack, { render: "aside", "data-slot": "side", gridArea: "side", ...pane(framed ? undefined : sheet(1).backgroundColor),
|
|
974
973
|
// In the frame the gutter stands between the pane and this column.
|
|
975
|
-
marginInlineStart: framed ? "var(--pane-gap)" : undefined, ref: split.aside,
|
|
976
|
-
// inline-style: the width a drag rewrites on the element itself, and full screen (useSplit).
|
|
977
|
-
style: split.asideStyle, position: "relative", shrink: 0, minH: 0, display: "none", $lg: { display: "flex" }, children: [split.grip ? (_jsx(Gutter, { ...split.grip, label: t("Resize side panel"), inset: 1 })) : null, _jsx(YStack, { flex: 1, minH: 0, overflowY: "auto", overflowX: "hidden", rounded: "var(--pane-round)", ref: (el) => setSlot(el instanceof HTMLElement ? el : null) })] })) : null] }));
|
|
974
|
+
marginInlineStart: framed ? "var(--pane-gap)" : undefined, ref: split.aside, position: "relative", shrink: 0, minH: 0, display: "none", $lg: { display: "flex" }, children: [split.grip ? (_jsx(Gutter, { ...split.grip, label: t("Resize side panel"), inset: 1 })) : null, _jsx(YStack, { flex: 1, minH: 0, overflowY: "auto", overflowX: "hidden", rounded: "var(--pane-round)", ref: (el) => setSlot(el instanceof HTMLElement ? el : null) })] })) : null] }));
|
|
978
975
|
}
|
|
979
976
|
/**
|
|
980
977
|
* THE RAIL: where you can go, as marks with their names under them. It is the
|
|
@@ -1003,7 +1000,7 @@ function Leave({ href, children }) {
|
|
|
1003
1000
|
}
|
|
1004
1001
|
function Rail({ mode, places, team, open, navigate, onSettings, onMore, }) {
|
|
1005
1002
|
const { t } = useI18n();
|
|
1006
|
-
return (_jsxs(YStack, { "data-slot": "rail", render: "nav", "aria-label": t("Places"), ...sheet(0), gridArea: "rail", minH: 0, borderInlineEndWidth: 1, borderInlineEndStyle: "solid", borderColor: "var(--edge, var(--white-06))",
|
|
1003
|
+
return (_jsxs(YStack, { "data-slot": "rail", render: "nav", "aria-label": t("Places"), ...sheet(0), gridArea: "rail", minH: 0, borderInlineEndWidth: 1, borderInlineEndStyle: "solid", borderColor: "var(--edge, var(--white-06))", "$max-md": {
|
|
1007
1004
|
flexDirection: "row",
|
|
1008
1005
|
items: "center",
|
|
1009
1006
|
borderInlineEndWidth: 0,
|
|
@@ -1011,7 +1008,7 @@ function Rail({ mode, places, team, open, navigate, onSettings, onMore, }) {
|
|
|
1011
1008
|
borderTopColor: "var(--border)",
|
|
1012
1009
|
},
|
|
1013
1010
|
// Clear of the home indicator on a phone; zero on a flat screen.
|
|
1014
|
-
pb: HOME_INDICATOR, children: [_jsxs(YStack, { "data-slot": "places", ...bare, items: "center", gap: "$0.5", flex: 1, minW: 0, minH: 0, overflowY: "auto", pt: "$2", "$max-md": {
|
|
1011
|
+
pb: HOME_INDICATOR, children: [_jsx(YStack, { "$max-md": { display: "none" }, borderBottomWidth: 1, borderColor: "var(--edge, var(--white-06))", mx: "$2", children: _jsx(Tiles, {}) }), _jsxs(YStack, { "data-slot": "places", ...bare, items: "center", gap: "$0.5", flex: 1, minW: 0, minH: 0, overflowY: "auto", pt: "$2", $md: open ? { display: "none" } : undefined, "$max-md": {
|
|
1015
1012
|
display: "grid",
|
|
1016
1013
|
gridAutoFlow: "column",
|
|
1017
1014
|
gridAutoColumns: "minmax(0, 1fr)",
|
|
@@ -1020,7 +1017,7 @@ function Rail({ mode, places, team, open, navigate, onSettings, onMore, }) {
|
|
|
1020
1017
|
}, children: [places.map((place, i) => {
|
|
1021
1018
|
const here = place.id === mode;
|
|
1022
1019
|
return (_jsxs(Box, { render: "button", onClick: () => navigate?.(place.route), "aria-label": t(place.label), "aria-current": here ? "page" : undefined, title: place.name ?? (place.title ? t(place.title) : t(place.label)), display: "flex", "$max-md": { display: i < 4 ? "flex" : "none", width: "auto", minW: 0 }, flexDirection: "column", width: 56, minH: 44, py: "$1", rounded: "$2", items: "center", justify: "center", gap: 2, bg: here ? "$edge" : undefined, hoverStyle: { bg: here ? "$edge" : "$hover" }, children: [_jsx(place.icon, { size: 18, "aria-hidden": true }), _jsx(Text, { fontSize: 12, lineHeight: 14, color: here ? "$ink" : "$quiet", numberOfLines: 1, children: t(place.label) })] }, place.id));
|
|
1023
|
-
}), team ? (_jsx(XStack, { "$max-md": { display: places.length < 4 ? "flex" : "none", width: "auto", minW: 0 }, children: _jsx(Text, { render: _jsx("a", { href: team, "aria-label": t("Workspace"), title: "Hanzo Team" }), display: "flex", width: 56, color: "inherit", children: _jsxs(Box, { display: "flex", flex: 1, flexDirection: "column", minH: 44, py: "$1", rounded: "$2", items: "center", justify: "center", gap: 2, hoverStyle: { bg: "$hover" }, children: [_jsx(LayoutGrid, { size: 18, "aria-hidden": true }), _jsx(Text, { fontSize: 12, lineHeight: 14, color: "$quiet", numberOfLines: 1, children: t("Workspace") })] }) }) })) : null, _jsxs(Box, { "data-slot": "more", render: "button", onClick: onMore, "aria-label": t("More places"), title: t("More"), display: "none", "$max-md": { display: "flex", width: "auto", minW: 0 }, flexDirection: "column", width: 56, minH: 44, py: "$1", rounded: "$2", items: "center", justify: "center", gap: 2, hoverStyle: { bg: "$hover" }, children: [_jsx(SearchIcon, { size: 18, "aria-hidden": true }), _jsx(Text, { fontSize: 12, lineHeight: 14, color: "$quiet", children: t("More") })] })] }), _jsx(YStack, { items: "center", pb: "$2", children: _jsxs(Box, { render: "button", onClick: onSettings, "aria-label": t("Settings"), title: t("Settings"), display: "flex", flexDirection: "column", width: 56, minH: 44, py: "$1", rounded: "$2", items: "center", justify: "center", gap: 2, hoverStyle: { bg: "$hover" }, children: [_jsx(Settings2, { size: 18, "aria-hidden": true }), _jsx(Text, { fontSize: 12, lineHeight: 14, color: "$quiet", children: t("Settings") })] }) })] }));
|
|
1020
|
+
}), team ? (_jsx(XStack, { "$max-md": { display: places.length < 4 ? "flex" : "none", width: "auto", minW: 0 }, children: _jsx(Text, { render: _jsx("a", { href: team, "aria-label": t("Workspace"), title: "Hanzo Team" }), display: "flex", width: 56, color: "inherit", children: _jsxs(Box, { display: "flex", flex: 1, flexDirection: "column", minH: 44, py: "$1", rounded: "$2", items: "center", justify: "center", gap: 2, hoverStyle: { bg: "$hover" }, children: [_jsx(LayoutGrid, { size: 18, "aria-hidden": true }), _jsx(Text, { fontSize: 12, lineHeight: 14, color: "$quiet", numberOfLines: 1, children: t("Workspace") })] }) }) })) : null, _jsxs(Box, { "data-slot": "more", render: "button", onClick: onMore, "aria-label": t("More places"), title: t("More"), display: "none", "$max-md": { display: "flex", width: "auto", minW: 0 }, flexDirection: "column", width: 56, minH: 44, py: "$1", rounded: "$2", items: "center", justify: "center", gap: 2, hoverStyle: { bg: "$hover" }, children: [_jsx(SearchIcon, { size: 18, "aria-hidden": true }), _jsx(Text, { fontSize: 12, lineHeight: 14, color: "$quiet", children: t("More") })] })] }), _jsx(YStack, { items: "center", pb: "$2", $md: open ? { display: "none" } : undefined, children: _jsxs(Box, { render: "button", onClick: onSettings, "aria-label": t("Settings"), title: t("Settings"), display: "flex", flexDirection: "column", width: 56, minH: 44, py: "$1", rounded: "$2", items: "center", justify: "center", gap: 2, hoverStyle: { bg: "$hover" }, children: [_jsx(Settings2, { size: 18, "aria-hidden": true }), _jsx(Text, { fontSize: 12, lineHeight: 14, color: "$quiet", children: t("Settings") })] }) })] }));
|
|
1024
1021
|
}
|
|
1025
1022
|
/**
|
|
1026
1023
|
* Chat's column: start a chat, the projects, then every conversation. The app
|
|
@@ -1289,10 +1286,7 @@ function Frame({ mode, children, navigate, back, forward, }) {
|
|
|
1289
1286
|
},
|
|
1290
1287
|
signOut: () => void logout(),
|
|
1291
1288
|
};
|
|
1292
|
-
const list = (_jsxs(Sidebar, { ref: side.ref,
|
|
1293
|
-
// A phone's sheet is never wider than 280, whatever the laptop kept.
|
|
1294
|
-
// inline-style: `--span`, the width a drag rewrites on the element itself (span.ts); no prop sets a variable.
|
|
1295
|
-
style: side.style, $md: { width: "var(--span)" }, "$max-md": { width: "100%", maxW: 280 }, ...sheet(0), ...(dir === "rtl" ? { borderRightWidth: 0, borderLeftWidth: 1 } : { borderRightWidth: 1 }), borderColor: "var(--edge, var(--white-06))", position: "relative", children: [_jsx(Gutter
|
|
1289
|
+
const list = (_jsxs(Sidebar, { ref: side.ref, ...side.props, $md: { width: "var(--span)" }, "$max-md": { width: "100%", maxW: 280 }, ...sheet(0), ...(dir === "rtl" ? { borderRightWidth: 0, borderLeftWidth: 1 } : { borderRightWidth: 1 }), borderColor: "var(--edge, var(--white-06))", position: "relative", children: [_jsx(Gutter
|
|
1296
1290
|
// The edge the sidebar is pinned to (Grip's, physical): its free edge is the other one.
|
|
1297
1291
|
, {
|
|
1298
1292
|
// The edge the sidebar is pinned to (Grip's, physical): its free edge is the other one.
|
|
@@ -1318,7 +1312,7 @@ function Frame({ mode, children, navigate, back, forward, }) {
|
|
|
1318
1312
|
navigate?.(site("/referral"));
|
|
1319
1313
|
dismiss();
|
|
1320
1314
|
}, children: t("Share Hanzo") }), _jsxs(XStack, { items: "center", gap: "$1", px: "$1.5", py: "$1", borderTopWidth: 1, borderColor: "$borderColor", children: [_jsx(YStack, { flex: 1, minW: 0, children: _jsx(Account, { host: who, onOrg: (o) => (choose(o), window.location.reload()) }) }), _jsx(Box, { render: "button", onClick: toggle, "aria-label": t("Collapse sidebar"), p: "$2", rounded: "$2", hoverStyle: { bg: "$hover" }, cursor: "pointer", children: _jsx(PanelLeftClose, { size: 16, "aria-hidden": true, "data-i18n-mirror": "" }) })] })] })) : null) : null] }));
|
|
1321
|
-
return (_jsxs(YStack, { "data-slot": "workspace", "data-hydrated": settled ? "true" : undefined, "data-sidebar": asked ? "open" : "shut", display: "grid", gridTemplateColumns:
|
|
1315
|
+
return (_jsxs(YStack, { "data-slot": "workspace", "data-hydrated": settled ? "true" : undefined, "data-sidebar": asked ? "open" : "shut", display: "grid", gridTemplateColumns: "64px auto minmax(0, 1fr) auto", gridTemplateRows: "44px minmax(0, 1fr)", gridTemplateAreas: '"rail bar bar bar" "rail list pane side"', "$max-md": {
|
|
1322
1316
|
gridTemplateColumns: "minmax(0, 1fr)",
|
|
1323
1317
|
gridTemplateRows: `44px minmax(0, 1fr) ${TABS_HEIGHT}`,
|
|
1324
1318
|
gridTemplateAreas: '"bar" "pane" "rail"',
|
package/dist/Sidebar.js
CHANGED
|
@@ -117,9 +117,7 @@ export function Sidebar({ host, mode, thread, go, onShut, onSeek, onBack, drawer
|
|
|
117
117
|
empty();
|
|
118
118
|
go(talk());
|
|
119
119
|
};
|
|
120
|
-
return (_jsxs(YStack, { "data-slot": "app-column", ref: drawer ? undefined : span.ref,
|
|
121
|
-
// inline-style: `--span`, the width a drag rewrites on the element itself (span.ts); no prop sets a variable.
|
|
122
|
-
style: drawer ? undefined : span.style, position: "relative", flex: drawer ? 1 : undefined, shrink: drawer ? 1 : 0, minW: 0, height: "100%", width: drawer ? undefined : 'var(--span)', children: [_jsxs(Base, { "data-slot": "app-rail", role: "navigation", "aria-label": brand(), bg: "transparent", borderWidth: 0, ...FILL, px: "$2", pt: drawer ? 'var(--pane-gap)' : 0,
|
|
120
|
+
return (_jsxs(YStack, { "data-slot": "app-column", ref: drawer ? undefined : span.ref, ...(drawer ? null : span.props), position: "relative", flex: drawer ? 1 : undefined, shrink: drawer ? 1 : 0, minW: 0, height: "100%", width: drawer ? undefined : 'var(--span)', children: [_jsxs(Base, { "data-slot": "app-rail", role: "navigation", "aria-label": brand(), bg: "transparent", borderWidth: 0, ...FILL, px: "$2", pt: drawer ? 'var(--pane-gap)' : 0,
|
|
123
121
|
// In the drawer the menu's own foot padding is the gap; its foot row stands on it.
|
|
124
122
|
pb: drawer ? 0 : '$2', gap: "$0", children: [at ? (_jsxs(XStack, { "data-slot": "app-head", items: "center", gap: "$1", paddingInlineStart: 2, paddingInlineEnd: 2, height: BAND, shrink: 0, minW: 0, "data-tauri-drag-region": "deep", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, children: [_jsx(SidebarIconButton, { label: t('Back'), "data-slot": "place-back", "data-tauri-drag-region": "false", onPress: onBack, ...HEAD, children: _jsx(ArrowLeft, { size: 16, "aria-hidden": true, "data-i18n-mirror": true }) }), _jsx(Text, { flex: 1, minW: 0, fontSize: 18, lineHeight: 24, fontWeight: "600", color: "$ink", numberOfLines: 1, "data-slot": "place-name", children: t(TITLE[at]) })] })) : (_jsxs(XStack, { "data-slot": "app-head", items: "center", gap: "$1", paddingInlineStart: "$2", paddingInlineEnd: 2, height: BAND, shrink: 0, minW: 0, "data-tauri-drag-region": "deep", onMouseDown: dragWindow, onDoubleClick: toggleWindowMaximize, children: [_jsx(Text, { flex: 1, minW: 0, fontSize: drawer ? 20 : 18, lineHeight: 24, fontWeight: drawer ? '700' : '600', color: "$ink", numberOfLines: 1, children: wordmark(mode) }), drawer ? null : _jsx(Activity, { host: host }), _jsx(SidebarIconButton, { label: t('Search'), "data-tauri-drag-region": "false", onPress: onSeek, "aria-haspopup": "dialog", ...(drawer
|
|
125
123
|
? {
|
package/dist/Start.js
CHANGED
|
@@ -126,9 +126,7 @@ export function Start() {
|
|
|
126
126
|
}
|
|
127
127
|
}, [prompt, repo, tool, where, busy, openSession, t]);
|
|
128
128
|
const isLocal = where.startsWith('local:');
|
|
129
|
-
return (_jsxs(YStack, { width: "100%", gap: "$2", children: [_jsx(Composer, { value: prompt, onChange: setPrompt, onSend: () => void send(), busy: busy, placeholder: t('Describe what to build…'), label: t('Describe what to build') }), _jsxs(XStack, { gap: "$2", items: "center", flexWrap: "wrap", children: [_jsxs(Text, { render: _jsx("select", { value: tool, onChange: (e) => setTool(e.currentTarget.value), "aria-label": t('Agent Harness') }), ...FIELD, px: 8, children: [_jsx("option", { value: "dev", children: "Dev" }), _jsx("option", { value: "claude", children: "Claude" }), _jsx("option", { value: "codex", children: "Codex" }), _jsx("option", { value: "python", children: "Python" })] }), !isLocal ? (_jsx(Text, { render: _jsx("input", { "data-i18n-ltr": "", value: repo, onChange: (e) => setRepo(e.currentTarget.value), placeholder: t('owner/repo (optional)'), "aria-label": t('Repository') }), ...FIELD, flex: 1, minW: 160, px: 10, outlineStyle: "none" })) : (_jsx(Text, { ...FIELD, flex: 1, minW: 160, px: 10,
|
|
130
|
-
// inline-style: flex alignment for where path text
|
|
131
|
-
style: { display: 'flex', alignItems: 'center', opacity: 0.8 }, children: where.slice(6) })), _jsxs(Text, { render: _jsx("select", { value: where, onChange: (e) => void handleWhereChange(e.currentTarget.value), "aria-label": t('Where to run') }), ...FIELD, px: 8, children: [_jsx("option", { value: SANDBOX, children: t('Cloud Sandbox') }), localWorkspaces.map((ws) => (_jsx("option", { value: `local:${ws.path}`, children: t('Local: {name}', { name: ws.name }) }, ws.path))), _jsx("option", { value: "action:pick-local", children: t('+ Open local folder…') }), targets.map((tg) => (_jsxs("option", { value: tg.id, children: [tg.label || tg.host || tg.id, tg.capacity ? ` — ${tg.capacity}` : ''] }, tg.id)))] })] }), err ? (_jsx(Text, { role: "alert", fontSize: "$2", color: BAD, children: err })) : localMsg ? (_jsx(Text, { fontSize: "$2", color: "$color", children: localMsg })) : (_jsx(Text, { fontSize: "$2", color: SOFT, children: t(isLocal
|
|
129
|
+
return (_jsxs(YStack, { width: "100%", gap: "$2", children: [_jsx(Composer, { value: prompt, onChange: setPrompt, onSend: () => void send(), busy: busy, placeholder: t('Describe what to build…'), label: t('Describe what to build') }), _jsxs(XStack, { gap: "$2", items: "center", flexWrap: "wrap", children: [_jsxs(Text, { render: _jsx("select", { value: tool, onChange: (e) => setTool(e.currentTarget.value), "aria-label": t('Agent Harness') }), ...FIELD, px: 8, children: [_jsx("option", { value: "dev", children: "Dev" }), _jsx("option", { value: "claude", children: "Claude" }), _jsx("option", { value: "codex", children: "Codex" }), _jsx("option", { value: "python", children: "Python" })] }), !isLocal ? (_jsx(Text, { render: _jsx("input", { "data-i18n-ltr": "", value: repo, onChange: (e) => setRepo(e.currentTarget.value), placeholder: t('owner/repo (optional)'), "aria-label": t('Repository') }), ...FIELD, flex: 1, minW: 160, px: 10, outlineStyle: "none" })) : (_jsx(Text, { ...FIELD, flex: 1, minW: 160, px: 10, display: "flex", items: "center", opacity: 0.8, children: where.slice(6) })), _jsxs(Text, { render: _jsx("select", { value: where, onChange: (e) => void handleWhereChange(e.currentTarget.value), "aria-label": t('Where to run') }), ...FIELD, px: 8, children: [_jsx("option", { value: SANDBOX, children: t('Cloud Sandbox') }), localWorkspaces.map((ws) => (_jsx("option", { value: `local:${ws.path}`, children: t('Local: {name}', { name: ws.name }) }, ws.path))), _jsx("option", { value: "action:pick-local", children: t('+ Open local folder…') }), targets.map((tg) => (_jsxs("option", { value: tg.id, children: [tg.label || tg.host || tg.id, tg.capacity ? ` — ${tg.capacity}` : ''] }, tg.id)))] })] }), err ? (_jsx(Text, { role: "alert", fontSize: "$2", color: BAD, children: err })) : localMsg ? (_jsx(Text, { fontSize: "$2", color: "$color", children: localMsg })) : (_jsx(Text, { fontSize: "$2", color: SOFT, children: t(isLocal
|
|
132
130
|
? 'Runs locally on your machine with dev agent.'
|
|
133
131
|
: targets.length > 0 && where !== SANDBOX
|
|
134
132
|
? 'Runs on your linked machine.'
|
package/dist/TeamPreview.js
CHANGED
|
@@ -138,7 +138,7 @@ function Post({ m, grouped, onThread, onPick }) {
|
|
|
138
138
|
const { t } = useI18n();
|
|
139
139
|
const clock = useClock();
|
|
140
140
|
const last = m.replies[m.replies.length - 1];
|
|
141
|
-
const faces = [...new Set(m.replies.map((r) => r.who))].slice(0,
|
|
141
|
+
const faces = [...new Set(m.replies.map((r) => r.who))].slice(0, 2);
|
|
142
142
|
return (_jsxs(XStack, { "data-motion": "rise", gap: 10, items: "flex-start", pt: grouped ? 0 : 8, children: [_jsx(View, { width: 34, shrink: 0, items: "center", children: grouped ? null : _jsx(Avatar, { id: m.who, size: 34 }) }), _jsxs(YStack, { flex: 1, minW: 0, gap: 2, children: [grouped ? null : _jsx(Byline, { id: m.who, time: clock(m.time) }), _jsx(Text, { fontSize: "$2", lineHeight: "$3", color: "$ink", children: _jsx(Said, { text: t(m.text) }) }), m.card ? _jsx(Attachment, { card: m.card, onPick: onPick }) : null, m.reactions.length ? _jsx(Reactions, { list: m.reactions }) : null, m.replies.length ? (_jsxs(XStack, { render: _jsx("button", { type: "button", onClick: onThread, "aria-label": t('Open the thread: {replies}', { replies: replies(t, m.replies.length) }) }), self: "flex-start", items: "center", gap: 6, mt: 4, px: 4, py: 3, rounded: 8, bg: "transparent", ...ROW, "$platform-web": { borderRadius: '8px' }, children: [_jsx(XStack, { children: faces.map((f, i) => (_jsx(View, { marginInlineStart: i ? -5 : 0, rounded: 9999, borderWidth: 1.5, borderColor: "var(--background)", "$platform-web": { borderRadius: '9999px' }, children: _jsx(Avatar, { id: f, size: 18 }) }, f))) }), _jsx(Text, { fontSize: "$1", fontWeight: "700", color: "$ink", children: replies(t, m.replies.length) }), _jsx(Text, { fontSize: "$1", color: "$faint", numberOfLines: 1, children: last ? t('Last reply {time}', { time: clock(last.time) }) : null })] })) : null] })] }));
|
|
143
143
|
}
|
|
144
144
|
/** A count of what is unread, inked. */
|
|
@@ -248,7 +248,8 @@ export function TeamPreview(props) {
|
|
|
248
248
|
const unread = (id) => (id === here || read.includes(id) ? 0 : (f.unread[id] ?? 0));
|
|
249
249
|
/** What is unread across an org's channels. */
|
|
250
250
|
const news = (org) => ORGS.find((x) => x.id === org)?.channels.reduce((n, c) => n + unread(`${org}/${c.id}`), 0) ?? 0;
|
|
251
|
-
|
|
251
|
+
// Two people and one agent: never more than two agents side by side anywhere in the preview.
|
|
252
|
+
const members = [...o.people.slice(0, 2), ...o.agents.slice(0, 1)];
|
|
252
253
|
const asks = waiting(f, supervised).filter((a) => orgOf(a.channel).id === o.id);
|
|
253
254
|
const done = f.steps[o.id] ?? [];
|
|
254
255
|
const handoffs = f.handoffs.filter((h) => orgOf(h.channel).id === o.id);
|
|
@@ -270,11 +271,12 @@ export function TeamPreview(props) {
|
|
|
270
271
|
setDriven(true);
|
|
271
272
|
setThreadHand(id);
|
|
272
273
|
};
|
|
273
|
-
/** The organizations a person belongs to: the active one marked, "+" under them, the reader at the foot. */
|
|
274
|
-
const
|
|
274
|
+
/** The organizations a person belongs to, far left as in a team chat: the active one marked, "+" under them, the reader at the foot. */
|
|
275
|
+
const railOf = (size, w) => (_jsxs(YStack, { items: "center", gap: size === 'xl' ? 12 : 10, py: 12, width: w, height: "100%", shrink: 0, borderColor: "$edge", borderInlineEndWidth: 1, bg: "$sunken", children: [ORGS.map((x) => {
|
|
275
276
|
const on = x.id === o.id;
|
|
276
|
-
return (_jsxs(XStack, { position: "relative", items: "center", justify: "center", children: [_jsx(View, { position: "absolute", insetInlineStart: -8, width: 4, height: on ? 28 : 0, rounded: 9999, bg: "$ink", "$platform-web": { borderRadius: '9999px', transition: still ? 'none' : 'height 260ms ease' } }), _jsx(Tile, { org: x, on: on, n: on ? 0 : news(x.id), size:
|
|
277
|
-
}), _jsx(XStack, { width: 32, height: 32, rounded: 8, items: "center", justify: "center", borderWidth: 1, borderColor: "$edge", "$platform-web": { borderRadius: '8px' }, children: _jsx(Plus, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }) }), _jsx(View, { flex: 1 }), _jsxs(View, { position: "relative", children: [_jsx(Avatar, { id: ME, size: 30 }), _jsx(View, { position: "absolute", b: -1, insetInlineEnd: -1, rounded: 9999, borderWidth: 2, borderColor: "$sunken", "$platform-web": { borderRadius: '9999px' }, children: _jsx(Here, {}) })] })] }));
|
|
277
|
+
return (_jsxs(XStack, { position: "relative", items: "center", justify: "center", children: [_jsx(View, { position: "absolute", insetInlineStart: -8, width: 4, height: on ? 28 : 0, rounded: 9999, bg: "$ink", "$platform-web": { borderRadius: '9999px', transition: still ? 'none' : 'height 260ms ease' } }), _jsx(Tile, { org: x, on: on, n: on ? 0 : news(x.id), size: size, onPress: () => go(HOME[x.id]) })] }, x.id));
|
|
278
|
+
}), _jsx(XStack, { width: 32, height: 32, rounded: 8, items: "center", justify: "center", borderWidth: 1, borderColor: "$edge", "$platform-web": { borderRadius: '8px' }, children: _jsx(Plus, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }) }), _jsx(View, { flex: 1 }), _jsxs(View, { position: "relative", children: [_jsx(Avatar, { id: ME, size: size === 'xl' ? 30 : 26 }), _jsx(View, { position: "absolute", b: -1, insetInlineEnd: -1, rounded: 9999, borderWidth: 2, borderColor: "$sunken", "$platform-web": { borderRadius: '9999px' }, children: _jsx(Here, {}) })] })] }));
|
|
279
|
+
const rail = railOf('xl', 60);
|
|
278
280
|
const heading = (label) => (_jsxs(XStack, { items: "center", gap: 4, px: 8, pt: 12, pb: 3, children: [_jsx(ChevronDown, { size: 12, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(Text, { fontSize: "$1", fontWeight: "600", color: "$soft", children: label })] }));
|
|
279
281
|
/** The workspace's column: its name, search, the channels, the direct messages and the agents. */
|
|
280
282
|
const column = (_jsxs(YStack, { "data-motion": "rise", flex: 1, minH: 0, overflow: "hidden", px: 8, py: 10, "$platform-web": FOOT, children: [_jsxs(XStack, { items: "center", gap: 6, px: 8, pb: 10, children: [_jsx(Text, { fontSize: "$4", fontWeight: "700", color: "$ink", numberOfLines: 1, children: o.name }), _jsx(ChevronDown, { size: 14, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(View, { flex: 1 }), _jsx(XStack, { width: 28, height: 28, rounded: 8, items: "center", justify: "center", bg: "$raised", "$platform-web": { borderRadius: '8px' }, children: _jsx(SquarePen, { size: 14, color: "var(--foreground)", "aria-hidden": true }) })] }), _jsxs(XStack, { items: "center", gap: 6, mx: 4, mb: 4, px: 10, height: 28, rounded: 8, borderWidth: 1, borderColor: "$edge", "$platform-web": { borderRadius: '8px' }, children: [_jsx(Search, { size: 12, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(Text, { fontSize: "$1", color: "$faint", numberOfLines: 1, children: t('Search {org}', { org: o.name }) })] }), heading(t('Channels')), o.channels.map((c) => {
|
|
@@ -293,13 +295,13 @@ export function TeamPreview(props) {
|
|
|
293
295
|
const composer = (placeholder) => (_jsxs(YStack, { mx: 12, mb: 12, gap: 8, px: 12, py: 10, rounded: 12, borderWidth: 1, borderColor: "$edge", bg: "$panel", "$platform-web": { borderRadius: '12px' }, children: [_jsx(Text, { fontSize: "$2", color: "$faint", numberOfLines: 1, children: placeholder }), _jsxs(XStack, { items: "center", gap: 12, children: [_jsx(Plus, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(AtSign, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(Smile, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(Mic, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(View, { flex: 1 }), _jsx(SendHorizontal, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true, "data-i18n-mirror": true })] })] }));
|
|
294
296
|
/** The thread a message started: the message, its replies, a reply box. */
|
|
295
297
|
const side = parent ? (_jsxs(YStack, { flex: 1, minH: 0, bg: "var(--background)", children: [_jsxs(XStack, { items: "center", gap: 8, px: 14, minH: 52, borderBottomWidth: 1, borderColor: "$edge", children: [_jsxs(YStack, { flex: 1, minW: 0, children: [_jsx(Text, { fontSize: "$3", fontWeight: "700", color: "$ink", children: t('Thread') }), _jsx(Text, { fontSize: "$1", color: "$soft", "data-i18n-ltr": true, children: `#${channel}` })] }), _jsx(XStack, { render: _jsx("button", { type: "button", "aria-label": t('Close the thread'), onClick: () => openThread(null) }), width: 28, height: 28, rounded: 8, items: "center", justify: "center", bg: "transparent", ...ROW, "$platform-web": { borderRadius: '8px' }, children: _jsx(X, { size: 15, color: "var(--muted-foreground)", "aria-hidden": true }) })] }), _jsxs(YStack, { flex: 1, minH: 0, overflow: "hidden", justify: "flex-end", gap: 6, px: 14, pt: 8, pb: 4, "$platform-web": TOP, children: [_jsx(Post, { m: { ...parent, replies: [] }, grouped: false, onPick: pick(parent.id) }), _jsxs(XStack, { items: "center", gap: 8, py: 6, children: [_jsx(Text, { fontSize: "$1", color: "$soft", children: replies(t, parent.replies.length) }), _jsx(View, { flex: 1, height: 1, bg: "$edge" })] }), parent.replies.map((r, i) => (_jsx(Post, { m: { id: `${parent.id}/${i}`, who: r.who, text: r.text, time: r.time, reactions: [], replies: [] }, grouped: false, onPick: () => undefined }, i)))] }), composer(t('Reply…'))] }, parent.id)) : null;
|
|
296
|
-
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, {
|
|
298
|
+
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: "52px minmax(0, 1fr)", ...md(desk, {
|
|
297
299
|
height: compact ? '100%' : 640,
|
|
298
300
|
gridTemplateColumns: `60px ${breadth(width)}px minmax(0, 1fr)${wide ? ' 290px' : ''}`,
|
|
299
|
-
}), "$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:
|
|
301
|
+
}), "$platform-web": { textAlign: 'start' }, children: [_jsx(YStack, { display: "flex", ...md(desk, { display: 'none' }), minH: 0, children: railOf('lg', 52) }), _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: 8, pb: 8, borderBottomWidth: 1, borderColor: "$edge", children: [_jsx(Text, { "data-motion": "rise", px: 12, fontSize: "$2", fontWeight: "700", color: "$ink", numberOfLines: 1, children: o.name }, o.id), _jsx(XStack, { flexWrap: "wrap", gap: 6, px: 12, display: height && height < LIST ? 'none' : 'flex', children: o.channels.map((c) => {
|
|
300
302
|
const id = `${o.id}/${c.id}`;
|
|
301
303
|
const on = id === here;
|
|
302
304
|
const n = unread(id);
|
|
303
305
|
return (_jsxs(XStack, { render: _jsx("button", { type: "button", "aria-pressed": on, "aria-label": t('Open #{channel}', { channel: c.id }), onClick: () => go(id) }), 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));
|
|
304
|
-
}) })] }), list(messages, true), _jsx(XStack, { items: "center", gap: 6, px: 18, minH: 20, children: typing && typing.channel === 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 }), wide || (height && height < LIST) ? null : (_jsxs(XStack, { flexWrap: "wrap", items: "center", gap: 8, px: 12, pb: 8, children: [_jsx(Mode, { supervised: supervised, onSet: setSupervised, small: true }), _jsxs(XStack, { items: "center", gap: 6, px: 10, height: 28, rounded: 9999, borderWidth: 1, borderColor: asks.length ? '$ink' : '$edge', "$platform-web": { borderRadius: '9999px' }, children: [_jsx(UserRound, { size: 12, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { "data-motion": "rise", fontSize: 11, fontWeight: "600", color: "$ink", children: asks.length ? t('{count} need a person', { count: asks.length }) : t('Nothing needs a person') }, asks.length)] }), mission ? (_jsxs(XStack, { items: "center", gap: 6, px: 10, height: 28, rounded: 9999, borderWidth: 1, borderColor: "$edge", "$platform-web": { borderRadius: '9999px' }, children: [_jsx(Target, { size: 12, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { fontSize: 11, fontWeight: "600", color: "$ink", "data-i18n-ltr": true, children: t('{done} of {total}', { done: done.length, total: mission.steps.length }) }), _jsx(View, { width: 36, children: _jsx(Progress, { done: done.length, total: mission.steps.length }) })] })) : null] })), composer(t('Message #{channel}', { channel })), side && !wide ? (_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 ? (
|
|
306
|
+
}) })] }), list(messages, true), _jsx(XStack, { items: "center", gap: 6, px: 18, minH: 20, children: typing && typing.channel === 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 }), wide || (height && height < LIST) ? null : (_jsxs(XStack, { flexWrap: "wrap", items: "center", gap: 8, px: 12, pb: 8, children: [_jsx(Mode, { supervised: supervised, onSet: setSupervised, small: true }), _jsxs(XStack, { items: "center", gap: 6, px: 10, height: 28, rounded: 9999, borderWidth: 1, borderColor: asks.length ? '$ink' : '$edge', "$platform-web": { borderRadius: '9999px' }, children: [_jsx(UserRound, { size: 12, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { "data-motion": "rise", fontSize: 11, fontWeight: "600", color: "$ink", children: asks.length ? t('{count} need a person', { count: asks.length }) : t('Nothing needs a person') }, asks.length)] }), mission ? (_jsxs(XStack, { items: "center", gap: 6, px: 10, height: 28, rounded: 9999, borderWidth: 1, borderColor: "$edge", "$platform-web": { borderRadius: '9999px' }, children: [_jsx(Target, { size: 12, color: "var(--foreground)", "aria-hidden": true }), _jsx(Text, { fontSize: 11, fontWeight: "600", color: "$ink", "data-i18n-ltr": true, children: t('{done} of {total}', { done: done.length, total: mission.steps.length }) }), _jsx(View, { width: 36, children: _jsx(Progress, { done: done.length, total: mission.steps.length }) })] })) : null] })), composer(t('Message #{channel}', { channel })), side && !wide ? (_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 ? (_jsx(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: _jsx(YStack, { flex: 1, minW: 0, bg: "$sunken", children: column }) })) : null] }), wide ? (_jsx(YStack, { minW: 0, minH: 0, borderColor: "$edge", borderInlineStartWidth: 1, children: side ?? _jsx(Panel, { org: o.id, supervised: supervised, onMode: setSupervised, asks: asks, done: done, handoffs: handoffs, onOpen: go }) })) : null] }));
|
|
305
307
|
}
|
package/dist/Upgrade.js
CHANGED
|
@@ -67,11 +67,7 @@ export function Upgrade({ ask, onClose }) {
|
|
|
67
67
|
track('plan_clicked', { plan: plan.id, interval, cta: `Upgrade to ${plan.name} for ${quote(plan, interval)}`, items });
|
|
68
68
|
track('checkout_started', { currency: 'USD', value: charge(plan, interval), items, interval });
|
|
69
69
|
};
|
|
70
|
-
return (_jsx(Dialog, { open: ask !== null, onOpenChange: (open) => (open ? undefined : onClose()), children: _jsxs(DialogContent, { showCloseButton: false, width: "calc(100vw - 32px)", maxW: 440, bg: "var(--popover)", rounded: "$9", p: "$5", gap: "$5", $sm: { p: '$6' }, children: [_jsx(Box, { render: "button", "aria-label": t('Close'), onClick: onClose, position: "absolute", t: "$4", insetInlineEnd: "$4", p: "$1.5", rounded: "$2", bg: "transparent", borderWidth: 0, cursor: "pointer", hoverStyle: { bg: '$hover' }, children: _jsx(X, { size: 18, "aria-hidden": true, color: "var(--soft, var(--muted-foreground))" }) }), _jsx(DialogTitle
|
|
71
|
-
// inline-style: design's serif face. gui names Zen and Zen Mono only; a family it cannot name resets the rung to 15px.
|
|
72
|
-
, {
|
|
73
|
-
// inline-style: design's serif face. gui names Zen and Zen Mono only; a family it cannot name resets the rung to 15px.
|
|
74
|
-
style: { fontFamily: 'var(--font-serif)' }, fontSize: "$8", lineHeight: "$9", fontWeight: "400", color: "$ink", paddingInlineEnd: "$6", children: ask?.model ? t('Use {model} with Hanzo {plan}', { model: ask.model, plan: plan.name }) : t('Upgrade to Hanzo {plan}', { plan: plan.name }) }), _jsx(YStack, { render: "ul", gap: "$3.5", m: 0, p: 0, children: ROWS.map(([Icon, line]) => (_jsxs(XStack, { render: "li", items: "center", gap: "$3", children: [_jsx(Icon, { size: 18, "aria-hidden": true, color: "var(--soft, var(--muted-foreground))" }), _jsx(Text, { fontSize: "$4", color: "$ink", children: t(line) })] }, line))) }), save === null ? null : (_jsx(ToggleGroup, { type: "single", value: cycle, onValueChange: (v) => {
|
|
70
|
+
return (_jsx(Dialog, { open: ask !== null, onOpenChange: (open) => (open ? undefined : onClose()), children: _jsxs(DialogContent, { showCloseButton: false, width: "calc(100vw - 32px)", maxW: 440, bg: "var(--popover)", rounded: "$9", p: "$5", gap: "$5", $sm: { p: '$6' }, children: [_jsx(Box, { render: "button", "aria-label": t('Close'), onClick: onClose, position: "absolute", t: "$4", insetInlineEnd: "$4", p: "$1.5", rounded: "$2", bg: "transparent", borderWidth: 0, cursor: "pointer", hoverStyle: { bg: '$hover' }, children: _jsx(X, { size: 18, "aria-hidden": true, color: "var(--soft, var(--muted-foreground))" }) }), _jsx(DialogTitle, { fontFamily: "$serif", fontSize: "$8", lineHeight: "$9", fontWeight: "400", color: "$ink", paddingInlineEnd: "$6", children: ask?.model ? t('Use {model} with Hanzo {plan}', { model: ask.model, plan: plan.name }) : t('Upgrade to Hanzo {plan}', { plan: plan.name }) }), _jsx(YStack, { render: "ul", gap: "$3.5", m: 0, p: 0, children: ROWS.map(([Icon, line]) => (_jsxs(XStack, { render: "li", items: "center", gap: "$3", children: [_jsx(Icon, { size: 18, "aria-hidden": true, color: "var(--soft, var(--muted-foreground))" }), _jsx(Text, { fontSize: "$4", color: "$ink", children: t(line) })] }, line))) }), save === null ? null : (_jsx(ToggleGroup, { type: "single", value: cycle, onValueChange: (v) => {
|
|
75
71
|
if (v === 'month' || v === 'year')
|
|
76
72
|
setCycle(v);
|
|
77
73
|
}, disableDeactivation: true, "aria-label": t('Billing term'), ...{ width: '100%', p: 4, rounded: 9999, bg: 'var(--surface-2)' }, children: [
|
package/dist/span.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { type CSSProperties } from 'react';
|
|
2
1
|
export interface Span {
|
|
3
2
|
/** The width React knows, px: the kept one, or `initial`. */
|
|
4
3
|
span: number;
|
|
5
4
|
/** The element whose `--span` is the width. */
|
|
6
5
|
ref: (node: unknown) => void;
|
|
7
|
-
/** Spread on that element:
|
|
8
|
-
|
|
6
|
+
/** Spread on that element: gui props that carry `--span`. */
|
|
7
|
+
props: object;
|
|
9
8
|
/** The width while a drag moves it, px. */
|
|
10
9
|
move: (n: number) => void;
|
|
11
10
|
/** The width it settled on, px: drawn, known and kept. */
|
package/dist/span.js
CHANGED
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
// column's contents sixty times a second.
|
|
5
5
|
//
|
|
6
6
|
// const col = useSpan('hanzo.app.column', 272, 220, 420)
|
|
7
|
-
// <YStack ref={col.ref}
|
|
7
|
+
// <YStack ref={col.ref} {...col.props}> width: var(--span)
|
|
8
8
|
// <Grip span={col.span} onSpan={col.move} onKeep={col.keep} … /> (@hanzo/build)
|
|
9
9
|
//
|
|
10
|
-
// `
|
|
11
|
-
//
|
|
10
|
+
// `props` carries the width React knows as gui's own class (`--span: 272px`),
|
|
11
|
+
// so a prerendered column is drawn at it before a script runs. `move` writes the
|
|
12
|
+
// property on the element and nothing else; `keep` writes it there too, so the
|
|
13
|
+
// element and the class say one width, and is where React and storage learn it,
|
|
14
|
+
// once per drag, key or double-click.
|
|
12
15
|
//
|
|
13
16
|
// Storage is read in a layout effect, not during render: the apps are
|
|
14
17
|
// prerendered, and a render that reads storage draws different HTML on the
|
|
@@ -46,5 +49,7 @@ export function useSpan(store, initial, floor, ceil) {
|
|
|
46
49
|
// A browser that stores nothing still resizes; it just forgets.
|
|
47
50
|
}
|
|
48
51
|
}, [store]);
|
|
49
|
-
|
|
52
|
+
// gui emits a custom property from `$platform-web` as its own class; its
|
|
53
|
+
// types name only CSS properties, so the props are handed over as a bag.
|
|
54
|
+
return { span, ref, props: { '$platform-web': { '--span': `${span}px` } }, move, keep };
|
|
50
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/app",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
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",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"license": "Apache-2.0 OR MIT",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@hanzo/glass": "0.1.
|
|
45
|
+
"@hanzo/glass": "0.1.1",
|
|
46
46
|
"@hanzo/mod": "0.1.0",
|
|
47
47
|
"@hanzo/personas": "1.0.5",
|
|
48
48
|
"marked": "18.0.12",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@hanzo/ai": ">=0.7.0",
|
|
53
53
|
"@hanzo/appearance": ">=0.2.13",
|
|
54
|
-
"@hanzo/build": ">=0.2.
|
|
54
|
+
"@hanzo/build": ">=0.2.90",
|
|
55
55
|
"@hanzo/composer": ">=0.2.0",
|
|
56
56
|
"@hanzo/event": ">=0.3.56",
|
|
57
57
|
"@hanzo/gui": "^8.3.5",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@hanzo/logo": ">=1.0.26",
|
|
61
61
|
"@hanzo/studio": ">=0.1.0",
|
|
62
62
|
"@hanzo/tabs": ">=0.1.8",
|
|
63
|
-
"@hanzo/ui": ">=8.29.
|
|
63
|
+
"@hanzo/ui": ">=8.29.33",
|
|
64
64
|
"@hanzo/usage": ">=0.1.18",
|
|
65
65
|
"@hanzo/voice": ">=0.1.16",
|
|
66
66
|
"@hanzogui/shell": "^8.3.20",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@hanzo/ai": "0.7.0",
|
|
73
73
|
"@hanzo/appearance": "0.2.13",
|
|
74
|
-
"@hanzo/build": "0.2.
|
|
74
|
+
"@hanzo/build": "0.2.90",
|
|
75
75
|
"@hanzo/composer": "0.2.0",
|
|
76
|
-
"@hanzo/design": "0.5.
|
|
76
|
+
"@hanzo/design": "0.5.39",
|
|
77
77
|
"@hanzo/event": "0.3.56",
|
|
78
78
|
"@hanzo/gui": "8.3.5",
|
|
79
79
|
"@hanzo/i18n": "0.5.5",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@hanzo/logo": "1.0.26",
|
|
82
82
|
"@hanzo/studio": "0.1.0",
|
|
83
83
|
"@hanzo/tabs": "github:hanzo-inc/tabs",
|
|
84
|
-
"@hanzo/ui": "8.29.
|
|
84
|
+
"@hanzo/ui": "8.29.33",
|
|
85
85
|
"@hanzo/usage": "0.1.18",
|
|
86
86
|
"@hanzo/voice": "0.1.19",
|
|
87
87
|
"@hanzogui/config": "8.3.5",
|