@hanzo/studio 0.1.19 → 0.1.21

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/desk.js CHANGED
@@ -9,7 +9,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  */
10
10
  import { RING } from './ui.js';
11
11
  import { SizableText, XStack, YStack } from '@hanzo/gui';
12
- import { Bookmark, Check, ChevronDown, Columns2, Download, Link2, MessageSquare, MoveHorizontal } from '@hanzogui/lucide-icons-2';
12
+ import { Bookmark, Check, ChevronDown, Columns2, Download, Link2, MessageSquare, MoveHorizontal, Send } from '@hanzogui/lucide-icons-2';
13
13
  import { DropdownMenu, Popover, PopoverContent, PopoverTrigger } from '@hanzo/ui';
14
14
  import { useCallback, useEffect, useRef, useState } from 'react';
15
15
  import { kind } from './kinds/index.js';
@@ -18,6 +18,7 @@ import { download } from './download.js';
18
18
  import { pdf } from './pdf.js';
19
19
  import { HANDOFF_CHAT } from './handoff.js';
20
20
  import { useHost } from './host.js';
21
+ import { post } from './post.js';
21
22
  import { useUrl } from './use.js';
22
23
  import { read, saveToLibrary, url } from './wire.js';
23
24
  /** Render an image blob onto an offscreen canvas at `scale` (1x or 2x). */
@@ -116,6 +117,7 @@ export function Desk({ made, wire, others, onPick, onEdit, busy, failed }) {
116
117
  const [copiedLink, setCopiedLink] = useState(false);
117
118
  const [savedLibrary, setSavedLibrary] = useState(false);
118
119
  const [savingLibrary, setSavingLibrary] = useState(false);
120
+ const [sending, setSending] = useState(false);
119
121
  const timersRef = useRef([]);
120
122
  const handleOpenInChat = () => {
121
123
  const noteText = v.note?.trim() ? `\n\nLatest design notes: ${v.note.trim()}` : '';
@@ -188,6 +190,28 @@ export function Desk({ made, wire, others, onPick, onEdit, busy, failed }) {
188
190
  setExportBusy(false);
189
191
  }
190
192
  };
193
+ /** The composer opens in the press itself (a window opened after a request is one the browser refuses), then is sent where the post is. */
194
+ const sendToPost = async () => {
195
+ if (sending)
196
+ return;
197
+ setError('');
198
+ setSending(true);
199
+ const win = window.open('', '_blank');
200
+ try {
201
+ const to = await post(wire, made, v);
202
+ if (win)
203
+ win.location.href = to;
204
+ else
205
+ window.location.assign(to);
206
+ }
207
+ catch (e) {
208
+ win?.close();
209
+ setError(e instanceof Error ? e.message : String(e));
210
+ }
211
+ finally {
212
+ setSending(false);
213
+ }
214
+ };
191
215
  const runUnifiedExport = async () => {
192
216
  setError('');
193
217
  setExportBusy(true);
@@ -308,7 +332,7 @@ export function Desk({ made, wire, others, onPick, onEdit, busy, failed }) {
308
332
  { type: 'label', key: 'h', label: 'Compare with' },
309
333
  ...made.versions.map((x, i) => ({ key: x.id, label: `Version ${i + 1}`, description: x.note.slice(0, 60), disabled: i === made.at, onSelect: () => setAgainst(i) })),
310
334
  ...(compare ? [{ type: 'separator', key: 's' }, { key: 'off', label: 'Stop comparing', onSelect: () => setAgainst(null) }] : []),
311
- ] })) : null, _jsxs(XStack, { render: _jsx("button", { type: "button" }), "data-slot": "design-open-in-chat", "aria-label": "Open in Chat", onClick: handleOpenInChat, items: "center", gap: "$1.5", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 30, height: 30 }, px: "$2.5", rounded: "$3", borderWidth: 1, borderColor: "var(--border-strong)", bg: "transparent", cursor: "pointer", hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, children: [_jsx(MessageSquare, { size: 14, color: "$ink", "aria-hidden": true }), _jsx(SizableText, { size: "$2", color: "$ink", children: "Open in Chat" })] }), _jsxs(XStack, { render: _jsx("button", { type: "button" }), "data-slot": "design-save-library", "aria-label": savingLibrary ? 'Saving to Library' : savedLibrary ? 'Saved to Library' : 'Save to Library', disabled: savingLibrary, onClick: () => void handleSaveToLibrary(), items: "center", gap: "$1.5", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 30, height: 30 }, px: "$2.5", rounded: "$3", borderWidth: 1, borderColor: "var(--border-strong)", bg: savedLibrary ? '$hover' : 'transparent', opacity: savingLibrary ? 0.6 : 1, cursor: savingLibrary ? 'default' : 'pointer', hoverStyle: savingLibrary ? undefined : { bg: '$hover' }, focusVisibleStyle: RING, children: [savedLibrary ? _jsx(Check, { size: 14, color: "var(--state-success)", "aria-hidden": true }) : _jsx(Bookmark, { size: 14, color: "$ink", "aria-hidden": true }), _jsx(SizableText, { size: "$2", color: "$ink", children: savingLibrary ? 'Saving…' : savedLibrary ? 'Saved' : 'Save to Library' })] }), _jsxs(Popover, { open: exportOpen, onOpenChange: setExportOpen, placement: "bottom", children: [_jsx(PopoverTrigger, { asChild: true, disablePressTrigger: true, children: _jsxs(XStack, { render: _jsx("button", { type: "button" }), onClick: () => setExportOpen((prev) => !prev), "aria-label": "Export", "aria-expanded": exportOpen, items: "center", gap: "$1.5", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 30, height: 30 }, px: "$2.5", rounded: "$3", borderWidth: 1, borderColor: exportOpen ? '$ink' : 'var(--border-strong)', bg: exportOpen ? '$hover' : 'transparent', cursor: "pointer", hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, children: [_jsx(Download, { size: 14, color: "$ink" }), _jsx(SizableText, { size: "$2", color: "$ink", children: "Export" }), _jsx(ChevronDown, { size: 12, color: "$soft" })] }) }), _jsxs(PopoverContent, { solid: true, align: "end", sideOffset: 6, width: 284, p: "$3", gap: "$3", rounded: "$4", borderWidth: 1, borderColor: "var(--border-strong)", bg: "var(--popover)", children: [_jsxs(XStack, { items: "center", justify: "space-between", gap: "$2", children: [_jsx(SizableText, { size: "$2", fontWeight: "600", color: "$ink", children: "Export creation" }), _jsx(SizableText, { size: "$1", fontFamily: "$mono", color: "$soft", children: `v${made.at + 1} · ${k.label}` })] }), _jsxs(YStack, { gap: "$1.5", children: [_jsx(SizableText, { size: "$1", color: "$soft", children: "Format" }), _jsx(XStack, { role: "radiogroup", "aria-label": "Export format", gap: "$1.5", children: [
335
+ ] })) : null, _jsxs(XStack, { render: _jsx("button", { type: "button" }), "data-slot": "design-open-in-chat", "aria-label": "Open in Chat", onClick: handleOpenInChat, items: "center", gap: "$1.5", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 30, height: 30 }, px: "$2.5", rounded: "$3", borderWidth: 1, borderColor: "var(--border-strong)", bg: "transparent", cursor: "pointer", hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, children: [_jsx(MessageSquare, { size: 14, color: "$ink", "aria-hidden": true }), _jsx(SizableText, { size: "$2", color: "$ink", children: "Open in Chat" })] }), _jsxs(XStack, { render: _jsx("button", { type: "button" }), "data-slot": "design-save-library", "aria-label": savingLibrary ? 'Saving to Library' : savedLibrary ? 'Saved to Library' : 'Save to Library', disabled: savingLibrary, onClick: () => void handleSaveToLibrary(), items: "center", gap: "$1.5", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 30, height: 30 }, px: "$2.5", rounded: "$3", borderWidth: 1, borderColor: "var(--border-strong)", bg: savedLibrary ? '$hover' : 'transparent', opacity: savingLibrary ? 0.6 : 1, cursor: savingLibrary ? 'default' : 'pointer', hoverStyle: savingLibrary ? undefined : { bg: '$hover' }, focusVisibleStyle: RING, children: [savedLibrary ? _jsx(Check, { size: 14, color: "var(--state-success)", "aria-hidden": true }) : _jsx(Bookmark, { size: 14, color: "$ink", "aria-hidden": true }), _jsx(SizableText, { size: "$2", color: "$ink", children: savingLibrary ? 'Saving…' : savedLibrary ? 'Saved' : 'Save to Library' })] }), _jsxs(XStack, { render: _jsx("button", { type: "button" }), "data-slot": "design-send-post", "aria-label": sending ? 'Sending to Post' : 'Send to Post', disabled: sending, onClick: () => void sendToPost(), items: "center", gap: "$1.5", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 30, height: 30 }, px: "$2.5", rounded: "$3", borderWidth: 1, borderColor: "var(--border-strong)", bg: "transparent", opacity: sending ? 0.6 : 1, cursor: sending ? 'default' : 'pointer', hoverStyle: sending ? undefined : { bg: '$hover' }, focusVisibleStyle: RING, children: [_jsx(Send, { size: 14, color: "$ink", "aria-hidden": true }), _jsx(SizableText, { size: "$2", color: "$ink", children: sending ? 'Sending…' : 'Send to Post' })] }), _jsxs(Popover, { open: exportOpen, onOpenChange: setExportOpen, placement: "bottom", children: [_jsx(PopoverTrigger, { asChild: true, disablePressTrigger: true, children: _jsxs(XStack, { render: _jsx("button", { type: "button" }), onClick: () => setExportOpen((prev) => !prev), "aria-label": "Export", "aria-expanded": exportOpen, items: "center", gap: "$1.5", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 30, height: 30 }, px: "$2.5", rounded: "$3", borderWidth: 1, borderColor: exportOpen ? '$ink' : 'var(--border-strong)', bg: exportOpen ? '$hover' : 'transparent', cursor: "pointer", hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, children: [_jsx(Download, { size: 14, color: "$ink" }), _jsx(SizableText, { size: "$2", color: "$ink", children: "Export" }), _jsx(ChevronDown, { size: 12, color: "$soft" })] }) }), _jsxs(PopoverContent, { solid: true, align: "end", sideOffset: 6, width: 284, p: "$3", gap: "$3", rounded: "$4", borderWidth: 1, borderColor: "var(--border-strong)", bg: "var(--popover)", children: [_jsxs(XStack, { items: "center", justify: "space-between", gap: "$2", children: [_jsx(SizableText, { size: "$2", fontWeight: "600", color: "$ink", children: "Export creation" }), _jsx(SizableText, { size: "$1", fontFamily: "$mono", color: "$soft", children: `v${made.at + 1} · ${k.label}` })] }), _jsxs(YStack, { gap: "$1.5", children: [_jsx(SizableText, { size: "$1", color: "$soft", children: "Format" }), _jsx(XStack, { role: "radiogroup", "aria-label": "Export format", gap: "$1.5", children: [
312
336
  { id: 'png', label: 'PNG' },
313
337
  { id: 'webp', label: 'WebP' },
314
338
  { id: 'pdf', label: 'PDF' },
@@ -10,29 +10,13 @@
10
10
  * its PDF) by those bytes: `face()` finds the host's @font-face rules for it and
11
11
  * hands them back with the woff2 as a data: URL an SVG can embed.
12
12
  */
13
- const OFL = (dir) => `https://github.com/google/fonts/blob/main/ofl/${dir}/OFL.txt`;
14
- const P = (slug) => `https://cdn.jsdelivr.net/npm/@hanzo/font/dist/open/${slug}.css`;
13
+ import { OPEN } from '@hanzo/font/open';
14
+ const ZEN = 'https://www.npmjs.com/package/@hanzo/font (LICENSE.txt, SIL OFL 1.1)';
15
+ const ALL = [100, 200, 300, 400, 500, 600, 700, 800, 900];
15
16
  export const FONTS = [
16
- { family: 'Zen', role: 'sans', weights: [100, 200, 300, 400, 500, 600, 700, 800, 900], italic: true, shared: '', licence: 'https://www.npmjs.com/package/@hanzo/font (LICENSE.txt, SIL OFL 1.1)' },
17
- { family: 'Zen Mono', role: 'mono', weights: [100, 200, 300, 400, 500, 600, 700, 800, 900], italic: false, shared: '', licence: 'https://www.npmjs.com/package/@hanzo/font (LICENSE.txt, SIL OFL 1.1)' },
18
- { family: 'Inter', role: 'sans', weights: [400, 500, 600, 700, 800], italic: true, shared: P('inter'), licence: OFL('inter') },
19
- { family: 'Manrope', role: 'sans', weights: [400, 500, 600, 700, 800], italic: false, shared: P('manrope'), licence: OFL('manrope') },
20
- { family: 'DM Sans', role: 'sans', weights: [400, 500, 600, 700], italic: true, shared: P('dm-sans'), licence: OFL('dmsans') },
21
- { family: 'Work Sans', role: 'sans', weights: [400, 500, 600, 700], italic: true, shared: P('work-sans'), licence: OFL('worksans') },
22
- { family: 'IBM Plex Sans', role: 'sans', weights: [400, 500, 600, 700], italic: true, shared: P('ibm-plex-sans'), licence: OFL('ibmplexsans') },
23
- { family: 'Space Grotesk', role: 'display', weights: [400, 500, 600, 700], italic: false, shared: P('space-grotesk'), licence: OFL('spacegrotesk') },
24
- { family: 'Archivo', role: 'display', weights: [400, 500, 600, 700, 800, 900], italic: true, shared: P('archivo'), licence: OFL('archivo') },
25
- { family: 'Bricolage Grotesque', role: 'display', weights: [400, 500, 600, 700, 800], italic: false, shared: P('bricolage-grotesque'), licence: OFL('bricolagegrotesque') },
26
- { family: 'Syne', role: 'display', weights: [400, 500, 600, 700, 800], italic: false, shared: P('syne'), licence: OFL('syne') },
27
- { family: 'Fraunces', role: 'serif', weights: [400, 500, 600, 700, 800, 900], italic: true, shared: P('fraunces'), licence: OFL('fraunces') },
28
- { family: 'Playfair Display', role: 'serif', weights: [400, 500, 600, 700, 800, 900], italic: true, shared: P('playfair-display'), licence: OFL('playfairdisplay') },
29
- { family: 'DM Serif Display', role: 'serif', weights: [400], italic: true, shared: P('dm-serif-display'), licence: OFL('dmserifdisplay') },
30
- { family: 'Instrument Serif', role: 'serif', weights: [400], italic: true, shared: P('instrument-serif'), licence: OFL('instrumentserif') },
31
- { family: 'Cormorant Garamond', role: 'serif', weights: [400, 500, 600, 700], italic: true, shared: P('cormorant-garamond'), licence: OFL('cormorantgaramond') },
32
- { family: 'EB Garamond', role: 'serif', weights: [400, 500, 600, 700, 800], italic: true, shared: P('eb-garamond'), licence: OFL('ebgaramond') },
33
- { family: 'Source Serif 4', role: 'serif', weights: [400, 500, 600, 700], italic: true, shared: P('source-serif-4'), licence: OFL('sourceserif4') },
34
- { family: 'IBM Plex Mono', role: 'mono', weights: [400, 500, 600], italic: true, shared: P('ibm-plex-mono'), licence: OFL('ibmplexmono') },
35
- { family: 'JetBrains Mono', role: 'mono', weights: [400, 500, 600, 700], italic: true, shared: P('jetbrains-mono'), licence: OFL('jetbrainsmono') },
17
+ { family: 'Zen', role: 'sans', weights: ALL, italic: true, shared: '', licence: ZEN },
18
+ { family: 'Zen Mono', role: 'mono', weights: ALL, italic: false, shared: '', licence: ZEN },
19
+ ...OPEN.map((o) => ({ ...o, shared: `https://cdn.jsdelivr.net/npm/@hanzo/font/dist/open/${o.slug}.css` })),
36
20
  ];
37
21
  export const FAMILIES = FONTS.map((f) => f.family);
38
22
  export const font = (family) => FONTS.find((f) => f.family === family) ?? FONTS[0];
package/lib/post.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Send to Post: what a person made, as a post waiting in the composer.
3
+ *
4
+ * The composer (hanzo.app/post/compose) takes media as public addresses, and a
5
+ * Library address is signed for an hour, which is gone before a scheduled post
6
+ * goes out. So each picture or clip is published first: the engine stores it by
7
+ * the SHA-256 of its bytes and answers one address that does not expire
8
+ * (`POST /v1/public`). The composer opens with `text` (the caption) and one
9
+ * `media` per address; the person reads it, picks networks, and sends it from
10
+ * there. Nothing is posted from here.
11
+ */
12
+ import type { Made, Stored, Version } from './made.ts';
13
+ import { type Wire } from './wire.ts';
14
+ export declare const COMPOSE = "https://hanzo.app/post/compose";
15
+ /** The most media one post carries: the composer's own cap. */
16
+ export declare const MEDIA = 4;
17
+ /** The words a post starts with, from what the kind says about itself. */
18
+ export declare function caption(made: Pick<Made, 'kind' | 'title'>, v: Pick<Version, 'spec' | 'note'>): string;
19
+ /** The files a post carries: pictures and clips the engine will publish, the social sizes of an ad first. */
20
+ export declare function media(made: Pick<Made, 'kind'>, v: Pick<Version, 'files'>): Stored[];
21
+ /** Publish one file: its stable public address. */
22
+ export declare function publish(w: Wire, f: Stored): Promise<string>;
23
+ /** The composer, with the words and the media in the address. */
24
+ export declare function compose(text: string, urls: readonly string[]): string;
25
+ /** Everything a post needs from one version: publish its media, and answer the composer's address. */
26
+ export declare function post(w: Wire, made: Made, v: Version): Promise<string>;
package/lib/post.js ADDED
@@ -0,0 +1,54 @@
1
+ import { ask, read } from './wire.js';
2
+ export const COMPOSE = 'https://hanzo.app/post/compose';
3
+ /** The most media one post carries: the composer's own cap. */
4
+ export const MEDIA = 4;
5
+ /** What the engine publishes: still images and short video, nothing that draws as a page. */
6
+ const SENT = /^(image\/(png|jpeg|webp|gif)|video\/(mp4|webm))$/;
7
+ /** The ad set's social sizes lead; its banners are not what a post carries. */
8
+ const SOCIAL = /^(feed|portrait|story|link)-/;
9
+ const said = (v) => (typeof v === 'string' ? v.trim() : '');
10
+ /** The first paragraph of a written document, which is what a post says about it. */
11
+ function opening(spec) {
12
+ const blocks = (spec.ir?.blocks ?? []);
13
+ return said(blocks.find((b) => b.type === 'p' && said(b.text))?.text);
14
+ }
15
+ /** The words a post starts with, from what the kind says about itself. */
16
+ export function caption(made, v) {
17
+ const s = v.spec;
18
+ const parts = made.kind === 'ad'
19
+ ? [said(s.headline), said(s.subhead), said(s.cta)]
20
+ : made.kind === 'poster'
21
+ ? [said(s.headline), said(s.subhead), said(s.details)]
22
+ : made.kind === 'document' || made.kind === 'slides'
23
+ ? [made.title, opening(s)]
24
+ : [said(v.note) || made.title];
25
+ return parts.filter(Boolean).join('\n\n');
26
+ }
27
+ /** The files a post carries: pictures and clips the engine will publish, the social sizes of an ad first. */
28
+ export function media(made, v) {
29
+ const all = v.files.filter((f) => SENT.test(f.mime));
30
+ const set = made.kind === 'ad' ? all.filter((f) => SOCIAL.test(f.name)) : all;
31
+ return set.slice(0, MEDIA);
32
+ }
33
+ /** Publish one file: its stable public address. */
34
+ export async function publish(w, f) {
35
+ const blob = await read(w, f.key);
36
+ const out = await ask(w, 'engine', '/v1/public', { raw: blob, type: f.mime });
37
+ if (!out.url)
38
+ throw new Error('The engine took the file and gave no address.');
39
+ return out.url;
40
+ }
41
+ /** The composer, with the words and the media in the address. */
42
+ export function compose(text, urls) {
43
+ const to = new URL(COMPOSE);
44
+ if (text)
45
+ to.searchParams.set('text', text);
46
+ for (const u of urls)
47
+ to.searchParams.append('media', u);
48
+ return to.toString();
49
+ }
50
+ /** Everything a post needs from one version: publish its media, and answer the composer's address. */
51
+ export async function post(w, made, v) {
52
+ const urls = await Promise.all(media(made, v).map((f) => publish(w, f)));
53
+ return compose(caption(made, v), urls);
54
+ }
package/lib/starters.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * a starter without one is drawn as type.
10
10
  */
11
11
  import type { KindId } from './made.ts';
12
- export type Category = 'image' | 'edit' | 'poster' | 'document' | 'slides' | 'type' | 'mesh' | 'video' | 'ad' | 'audio' | 'fashion';
12
+ export type Category = 'content' | 'image' | 'edit' | 'poster' | 'document' | 'slides' | 'type' | 'mesh' | 'video' | 'ad' | 'audio' | 'fashion';
13
13
  export declare const CATEGORIES: readonly {
14
14
  id: Category | 'all';
15
15
  label: string;
package/lib/starters.js CHANGED
@@ -2,6 +2,7 @@ import { starter, starting } from './route.js';
2
2
  import { LIBRARY } from './wire.js';
3
3
  export const CATEGORIES = [
4
4
  { id: 'all', label: 'All' },
5
+ { id: 'content', label: 'Content' },
5
6
  { id: 'image', label: 'Image' },
6
7
  { id: 'edit', label: 'Edit' },
7
8
  { id: 'poster', label: 'Posters' },
@@ -30,6 +31,14 @@ export const RUNTIME = {
30
31
  page: '~60s',
31
32
  };
32
33
  export const STARTERS = [
34
+ // What gets posted: each one ends in Send to Post.
35
+ { id: 'content-image', kind: 'image', category: 'content', title: 'Image', subtitle: 'For a post', prompt: 'A bright lifestyle photograph for a bike shop\'s Friday post: a cyclist crossing a bridge at golden hour, city behind, shallow depth of field, 4:5.' },
36
+ { id: 'content-video', kind: 'video', category: 'content', title: 'Video', subtitle: '5s, 9:16', prompt: 'A 5 second vertical clip for a bike shop\'s Friday post: a cyclist crossing a bridge at golden hour, slow push in.' },
37
+ { id: 'content-image-ad', kind: 'ad', category: 'content', title: 'Image ad', subtitle: 'Social sizes', prompt: 'An image ad for Greenline Bikes: 30% off city bikes this weekend only. Shop now. Social sizes only.' },
38
+ { id: 'content-video-ad', kind: 'video', category: 'content', title: 'Video ad', subtitle: '10s, 9:16', prompt: 'A 10 second vertical video ad for Greenline Bikes\' weekend sale: a city bike in motion, a clear product shot, ending on the line "30% off this weekend. Shop now."' },
39
+ { id: 'content-case-study', kind: 'document', category: 'content', title: 'Case study', subtitle: 'PDF and Word', prompt: 'A one-page case study: how Harbor Dental doubled online bookings after Northwind Studio rebuilt their website. The challenge, the approach, three results with numbers, and a quote from the practice manager.' },
40
+ { id: 'content-blog', kind: 'document', category: 'content', title: 'Blog post', subtitle: 'About 600 words', prompt: 'A blog post of about 600 words for Greenline Bikes: five things to check before your first commute by bike. A clear title, a short introduction, one heading per tip, a closing line that invites a visit.' },
41
+ { id: 'content-social', kind: 'poster', category: 'content', title: 'Social post', subtitle: 'Picture and words', prompt: 'A square social post for Greenline Bikes: "Weekend sale. 30% off city bikes." Sat and Sun only, at the Portland store.' },
33
42
  { id: 'poster-jazz', kind: 'poster', category: 'poster', title: 'Jazz night poster', subtitle: 'A3, full bleed', prompt: 'A poster for a jazz night this Friday at 9pm at The Blue Room, 14 Canal Street. Smoky, warm, late-night. Free entry before 10.' },
34
43
  { id: 'poster-launch', kind: 'poster', category: 'poster', title: 'Product launch poster', subtitle: '18 × 24, framed', prompt: 'An 18x24 launch poster for Aurora, a minimalist desk lamp with a warm dimmable glow. Launching 12 November. Pre-order at aurora.lighting.' },
35
44
  { id: 'poster-talk', kind: 'poster', category: 'poster', title: 'Conference talk', subtitle: 'Type only, A2', prompt: 'A type-only A2 poster for a talk called "Small models, big systems" by Dr. Lena Ortiz, Hall B, 3 December, 14:00.' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/studio",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
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.",
@@ -15,7 +15,7 @@
15
15
  "@axe-core/playwright": "4.14.0",
16
16
  "@hanzo/build": "0.2.85",
17
17
  "@hanzo/composer": "0.2.0",
18
- "@hanzo/font": "1.10.0",
18
+ "@hanzo/font": "1.11.0",
19
19
  "@hanzo/gui": "8.3.5",
20
20
  "@hanzo/i18n": "0.5.3",
21
21
  "@hanzo/ui": "8.29.24",