@hanzo/studio 0.1.17 → 0.1.18
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/lib/talk.js +1 -1
- package/package.json +1 -1
package/lib/talk.js
CHANGED
|
@@ -485,7 +485,7 @@ function Conversation({ start, host, wire, available }) {
|
|
|
485
485
|
const tools = (_jsx(TooltipProvider, { delay: 200, children: _jsxs(XStack, { items: "center", gap: "$2", flexWrap: "wrap", maxW: "100%", children: [_jsxs(Tooltip, { placement: "top", offset: 6, open: openMenu === 'source' ? false : undefined, children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(XStack, { items: "center", children: _jsx(DropdownMenu, { onOpenChange: (o) => setOpenMenu(o ? 'source' : null), trigger: _jsx(Pillish, { label: "Source", "aria-label": `Source: ${sourceValue} (design from a web page or a file)`, icon: _jsx(Globe, { size: 12, color: "$soft" }), value: sourceValue, open: openMenu === 'source' }), items: sourceItems }) }) }), _jsx(TooltipContent, { children: _jsx(SizableText, { size: "$1", color: "$ink", children: "Start from a web page or a file" }) })] }), _jsxs(Tooltip, { placement: "top", offset: 6, open: openMenu === 'format' ? false : undefined, children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(XStack, { items: "center", children: _jsx(DropdownMenu, { onOpenChange: (o) => setOpenMenu(o ? 'format' : null), trigger: _jsx(Pillish, { label: "Format", icon: _jsx(Sparkles, { size: 12, color: "$soft" }), value: formatValue, open: openMenu === 'format' }), items: kindItems }) }) }), _jsx(TooltipContent, { children: _jsx(SizableText, { size: "$1", color: "$ink", children: "Output format \u2014 Auto picks from what you ask" }) })] }), _jsxs(Tooltip, { placement: "top", offset: 6, open: openMenu === 'brand' ? false : undefined, children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(XStack, { items: "center", children: _jsx(DropdownMenu, { onOpenChange: (o) => setOpenMenu(o ? 'brand' : null), trigger: _jsx(Pillish, { label: "Brand", icon: _jsx(Palette, { size: 12, color: "$soft" }), value: brandName, open: openMenu === 'brand' }), items: brandItems }) }) }), _jsx(TooltipContent, { children: _jsx(SizableText, { size: "$1", color: "$ink", children: "Brand & type system used for typography and palette" }) })] }), _jsxs(Tooltip, { placement: "top", offset: 6, open: openMenu === 'options' ? false : undefined, children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(XStack, { items: "center", children: _jsx(DropdownMenu, { onOpenChange: (o) => setOpenMenu(o ? 'options' : null), trigger: _jsx(Pillish, { label: "Options", "aria-label": `Options: ${optionsValue} (image model, aspect ratio, count)`, icon: _jsx(SlidersHorizontal, { size: 12, color: "$soft" }), value: optionsValue, open: openMenu === 'options' }), items: optionItems }) }) }), _jsx(TooltipContent, { children: _jsx(SizableText, { size: "$1", color: "$ink", children: "Image model, aspect ratio, and variant count" }) })] })] }) }));
|
|
486
486
|
const showRefinementChips = Boolean(activeStarter || draft.trim().length > 0);
|
|
487
487
|
const pasted = bare(draft) && !sources.some((p) => p.url === named(draft)[0]) ? named(draft)[0] : '';
|
|
488
|
-
const head = attached.length || uploading || uploadError || showRefinementChips || linking || sources.length || reading.length || sourceError || pasted ? (_jsxs(YStack, { gap: "$2", width: "100%", minW: 0, children: [sourceError ? (_jsxs(XStack, { role: "alert", "data-slot": "source-error", items: "center", justify: "space-between", gap: "$2", px: "$2.5", py: "$1.5", rounded: "$3", bg: "var(--state-error-bg)", borderWidth: 1, borderColor: "var(--state-error)", children: [_jsx(SizableText, { size: "$1", color: "var(--state-error)", flex: 1, minW: 0, children: sourceError }), _jsx(XStack, { render: _jsx("button", { type: "button" }), "aria-label": "Dismiss", onClick: () => setSourceError(''), width: 20, height: 20, rounded: 99, items: "center", justify: "center", cursor: "pointer", hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, shrink: 0, children: _jsx(X, { size: 11, color: "var(--state-error)" }) })] })) : null, linking ? (_jsxs(XStack, { "data-slot": "source-field", render: _jsx("form", {
|
|
488
|
+
const head = attached.length || uploading || uploadError || showRefinementChips || linking || sources.length || reading.length || sourceError || pasted ? (_jsxs(YStack, { gap: "$2", width: "100%", minW: 0, rounded: "$3", "data-slot": "composer-extras", style: { background: 'linear-gradient(var(--pane-fill, transparent), var(--pane-fill, transparent)), var(--background)' }, children: [sourceError ? (_jsxs(XStack, { role: "alert", "data-slot": "source-error", items: "center", justify: "space-between", gap: "$2", px: "$2.5", py: "$1.5", rounded: "$3", bg: "var(--state-error-bg)", borderWidth: 1, borderColor: "var(--state-error)", children: [_jsx(SizableText, { size: "$1", color: "var(--state-error)", flex: 1, minW: 0, children: sourceError }), _jsx(XStack, { render: _jsx("button", { type: "button" }), "aria-label": "Dismiss", onClick: () => setSourceError(''), width: 20, height: 20, rounded: 99, items: "center", justify: "center", cursor: "pointer", hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, shrink: 0, children: _jsx(X, { size: 11, color: "var(--state-error)" }) })] })) : null, linking ? (_jsxs(XStack, { "data-slot": "source-field", render: _jsx("form", {
|
|
489
489
|
// Design reads the address itself (source.ts `address`): a bare example.com is a page, and a refusal is said in words.
|
|
490
490
|
noValidate: true, onSubmit: (e) => {
|
|
491
491
|
e.preventDefault();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/studio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"description": "Hanzo Studio: a chat that makes images, posters, documents, slides, type systems, 3D, video and sound, with every result open in a tab beside it. Mounted by the Hanzo app at hanzo.ai/studio and served whole at studio.hanzo.ai.",
|