From 772f0744cfbda832df905cc9d5d076086ab9131f Mon Sep 17 00:00:00 2001 From: Austin Pickett Date: Thu, 23 Jul 2026 08:13:07 -0400 Subject: [PATCH 01/11] feat(desktop): add Cron Blueprints to the GUI The desktop app had a Cron jobs panel but no Blueprints tab, so the parameterized automation templates the dashboard offers were unreachable there (parity matrix: Dashboard=Y, GUI=N). Adds a Jobs/Blueprints segmented toggle to the cron panel. The Blueprints tab renders the catalog from the existing GET /api/cron/blueprints endpoint, one card per template with a typed form (time/enum/weekdays/text slots). Submitting POSTs to /api/cron/blueprints/instantiate, which fills the slots and creates a real cron job via the same create_job path as a hand-written one. The new job is merged into the shared atom so the Jobs tab and sidebar reflect it immediately. Backend already served both endpoints; this is desktop frontend only. Strings added to all four locales. --- apps/desktop/src/app/cron/blueprints.test.ts | 51 +++++ apps/desktop/src/app/cron/blueprints.tsx | 225 +++++++++++++++++++ apps/desktop/src/app/cron/index.tsx | 123 +++++----- apps/desktop/src/hermes.ts | 30 +++ apps/desktop/src/i18n/en.ts | 19 +- apps/desktop/src/i18n/ja.ts | 19 +- apps/desktop/src/i18n/types.ts | 17 ++ apps/desktop/src/i18n/zh-hant.ts | 19 +- apps/desktop/src/i18n/zh.ts | 19 +- apps/desktop/src/types/hermes.ts | 28 +++ 10 files changed, 496 insertions(+), 54 deletions(-) create mode 100644 apps/desktop/src/app/cron/blueprints.test.ts create mode 100644 apps/desktop/src/app/cron/blueprints.tsx diff --git a/apps/desktop/src/app/cron/blueprints.test.ts b/apps/desktop/src/app/cron/blueprints.test.ts new file mode 100644 index 0000000000000..6fa80c052c330 --- /dev/null +++ b/apps/desktop/src/app/cron/blueprints.test.ts @@ -0,0 +1,51 @@ +import { describe, expect, it } from 'vitest' + +import type { AutomationBlueprint } from '@/hermes' + +import { initialBlueprintValues } from './blueprints' + +function blueprint(fields: AutomationBlueprint['fields']): AutomationBlueprint { + return { + key: 'test', + title: 'Test', + description: '', + category: 'general', + tags: [], + command: '', + appUrl: '', + fields + } +} + +describe('initialBlueprintValues', () => { + it('seeds each field from its default', () => { + const values = initialBlueprintValues( + blueprint([ + { name: 'time', type: 'time', label: 'Time', default: '08:00', options: [], optional: false, help: '' }, + { + name: 'deliver', + type: 'enum', + label: 'Deliver', + default: 'origin', + options: ['origin', 'local'], + optional: false, + help: '' + } + ]) + ) + + expect(values).toEqual({ time: '08:00', deliver: 'origin' }) + }) + + it('falls back to an empty string when a field has no default', () => { + const values = initialBlueprintValues( + blueprint([{ name: 'topic', type: 'text', label: 'Topic', default: null, options: [], optional: true, help: '' }]) + ) + + expect(values).toEqual({ topic: '' }) + }) + + it('returns an empty object for a blueprint with no fields', () => { + expect(initialBlueprintValues(blueprint([]))).toEqual({}) + }) +}) diff --git a/apps/desktop/src/app/cron/blueprints.tsx b/apps/desktop/src/app/cron/blueprints.tsx new file mode 100644 index 0000000000000..878673307df22 --- /dev/null +++ b/apps/desktop/src/app/cron/blueprints.tsx @@ -0,0 +1,225 @@ +import { useQuery } from '@tanstack/react-query' +import { useCallback, useMemo, useState } from 'react' + +import { PageLoader } from '@/components/page-loader' +import { Button } from '@/components/ui/button' +import { Input } from '@/components/ui/input' +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue +} from '@/components/ui/select' +import { getAutomationBlueprints, instantiateAutomationBlueprint } from '@/hermes' +import type { AutomationBlueprint, AutomationBlueprintField, CronJob } from '@/hermes' +import { type Translations, useI18n } from '@/i18n' +import { asText } from '@/lib/text' +import { updateCronJobs } from '@/store/cron' +import { notify } from '@/store/notifications' + +import { PanelBlock, PanelEmpty, PanelPill } from '../overlays/panel' + +// Initial form state for a blueprint = each field's default (or ''). Pure so the +// suite can assert the form seeds correctly without mounting React. +export function initialBlueprintValues(blueprint: AutomationBlueprint): Record { + const out: Record = {} + for (const field of blueprint.fields) { + out[field.name] = field.default ?? '' + } + return out +} + +// A slot-level validation error from the backend arrives as "422: " +// (or ": "); strip the leading numeric code for inline display. +function cleanFieldError(message: string): string { + return message.replace(/^\d+:\s*/, '') +} + +function FieldInput({ + field, + id, + value, + onChange +}: { + field: AutomationBlueprintField + id: string + value: string + onChange: (next: string) => void +}) { + if (field.type === 'enum' || field.type === 'weekdays') { + return ( + + ) + } + + if (field.type === 'time') { + return onChange(event.target.value)} type="time" value={value} /> + } + + return ( + onChange(event.target.value)} + placeholder={field.help || field.label} + type="text" + value={value} + /> + ) +} + +function BlueprintCard({ + blueprint, + c, + profile, + onCreated +}: { + blueprint: AutomationBlueprint + c: Translations['cron'] + profile: string + onCreated: (job: CronJob) => void +}) { + const [open, setOpen] = useState(false) + const [values, setValues] = useState>(() => initialBlueprintValues(blueprint)) + const [submitting, setSubmitting] = useState(false) + const [error, setError] = useState(null) + + const submit = useCallback(async () => { + setSubmitting(true) + setError(null) + + try { + const job = await instantiateAutomationBlueprint({ blueprint: blueprint.key, values }, profile) + onCreated(job) + notify({ kind: 'success', title: c.blueprints.scheduled, message: asText(job.schedule_display) || blueprint.title }) + setOpen(false) + setValues(initialBlueprintValues(blueprint)) + } catch (err) { + // 422 carries the slot-level message; surface it inline on the form. + setError(cleanFieldError(err instanceof Error ? err.message : String(err))) + } finally { + setSubmitting(false) + } + }, [blueprint, values, profile, onCreated, c]) + + return ( + +
+
+

{blueprint.title}

+

{blueprint.description}

+ {blueprint.tags.length > 0 && ( +
+ {blueprint.tags.map(tag => ( + {tag} + ))} +
+ )} +
+ +
+ + {open && ( +
{ + event.preventDefault() + void submit() + }} + > + {blueprint.fields.map(field => { + const fieldId = `blueprint-${blueprint.key}-${field.name}` + + return ( +
+ + setValues(prev => ({ ...prev, [field.name]: next }))} + value={values[field.name] ?? ''} + /> + {field.help && field.type !== 'text' && ( +

{field.help}

+ )} +
+ ) + })} + + {error && ( +

+ {error} +

+ )} + +
+ +
+
+ )} +
+ ) +} + +// Automation Blueprints gallery \u2014 the desktop counterpart to the dashboard's +// blueprint tab. Each card expands into an inline form (one field per typed +// slot); submitting POSTs to /api/cron/blueprints/instantiate, which fills the +// blueprint and creates the job via the same create_job path as a hand-written +// cron. The created job is spliced straight into the shared $cronJobs atom so +// the Jobs tab and sidebar reflect it immediately. +export function BlueprintsPanel({ profile }: { profile: string }) { + const { t } = useI18n() + const c = t.cron + + const blueprints = useQuery({ + queryKey: ['cron-blueprints', profile], + queryFn: async () => (await getAutomationBlueprints()).blueprints + }) + + const handleCreated = useCallback((job: CronJob) => { + // Merge, don't clobber: keep the existing rows and add/replace this one. + updateCronJobs(rows => { + const rest = rows.filter(row => row.id !== job.id) + return [...rest, job] + }) + }, []) + + const cards = useMemo(() => blueprints.data ?? [], [blueprints.data]) + + if (blueprints.isLoading) { + return + } + + if (blueprints.isError) { + return + } + + if (cards.length === 0) { + return + } + + return ( +
+ {cards.map(blueprint => ( + + ))} +
+ ) +} diff --git a/apps/desktop/src/app/cron/index.tsx b/apps/desktop/src/app/cron/index.tsx index e0c421e41057c..e77a97a769c69 100644 --- a/apps/desktop/src/app/cron/index.tsx +++ b/apps/desktop/src/app/cron/index.tsx @@ -5,7 +5,8 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react' import { PageLoader } from '@/components/page-loader' import { Button } from '@/components/ui/button' -import { Codicon } from '@/components/ui/codicon' +import { Codicon, codiconIcon } from '@/components/ui/codicon' +import { SegmentedControl } from '@/components/ui/segmented-control' import { Dialog, DialogContent, @@ -63,6 +64,8 @@ import { PanelRowMenu, PanelSectionLabel } from '../overlays/panel' + +import { BlueprintsPanel } from './blueprints' import type { SetStatusbarItemGroup } from '../shell/statusbar-controls' import { cronEditorUpdates, jobIsScriptOnly, validateCronEditor } from './cron-job-model' @@ -70,6 +73,11 @@ import { jobState, jobTitle, STATE_DOT } from './job-state' const DEFAULT_DELIVER = 'local' +// Two surfaces share the cron panel: the live Jobs list and the Blueprints +// gallery (parameterized templates that instantiate a real job). The active tab +// is pure view state — it lives here, not in a store. +type CronTab = 'blueprints' | 'jobs' + // Radix rejects empty-string values, so the "no override" row in // the model picker carries this sentinel and is mapped back to '' on save. const MODEL_DEFAULT_VALUE = '__default__' @@ -290,6 +298,7 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt const pendingScrollRef = useRef(null) const focusJobId = useStore($cronFocusJobId) + const [tab, setTab] = useState('jobs') const [editor, setEditor] = useState({ mode: 'closed' }) const [pendingDelete, setPendingDelete] = useState(null) const [deleting, setDeleting] = useState(false) @@ -437,9 +446,26 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt setEditor({ mode: 'closed' }) } + const tabToggle = ( + + ) + return ( - {loading && jobs.length === 0 ? ( + + + {tab === 'blueprints' ? ( + + + + ) : loading && jobs.length === 0 ? ( ) : totalCount === 0 ? ( ) : ( - <> - - - t.common.tryHint(title))} - searchLabel={c.search} - searchPlaceholder={c.search} - searchValue={query} - > - {visibleJobs.map(job => ( - setEditor({ mode: 'edit', job }) }, - { icon: 'trash', label: t.common.delete, onSelect: () => setPendingDelete(job), tone: 'danger' } - ]} - /> - } - onSelect={() => setSelectedJobId(job.id)} - /> - ))} - {visibleJobs.length === 0 && ( -

{c.emptyTitleSearch}

- )} - setEditor({ mode: 'create' })} /> -
- - {selectedJob ? ( - void handlePauseResume(selectedJob)} - onTrigger={() => void handleTrigger(selectedJob)} + + t.common.tryHint(title))} + searchLabel={c.search} + searchPlaceholder={c.search} + searchValue={query} + > + {visibleJobs.map(job => ( + setEditor({ mode: 'edit', job }) }, + { icon: 'trash', label: t.common.delete, onSelect: () => setPendingDelete(job), tone: 'danger' } + ]} + /> + } + onSelect={() => setSelectedJobId(job.id)} /> - ) : ( - + ))} + {visibleJobs.length === 0 && ( +

{c.emptyTitleSearch}

)} -
- + setEditor({ mode: 'create' })} /> + + + {selectedJob ? ( + void handlePauseResume(selectedJob)} + onTrigger={() => void handleTrigger(selectedJob)} + /> + ) : ( + + )} +
)} setEditor({ mode: 'closed' })} onSave={handleEditorSave} /> diff --git a/apps/desktop/src/hermes.ts b/apps/desktop/src/hermes.ts index 38b8e2fb85e98..1e86e67f50ac4 100644 --- a/apps/desktop/src/hermes.ts +++ b/apps/desktop/src/hermes.ts @@ -7,6 +7,8 @@ import type { AudioSpeakResponse, AudioTranscriptionResponse, AuxiliaryModelsResponse, + AutomationBlueprint, + AutomationBlueprintField, BackendUpdateCheckResponse, ComputerUseStatus, ConfigSchemaResponse, @@ -127,6 +129,8 @@ export type { AudioSpeakResponse, AudioTranscriptionResponse, AuxiliaryModelsResponse, + AutomationBlueprint, + AutomationBlueprintField, BackendUpdateCheckResponse, ComputerUseCheck, ComputerUsePermissionSource, @@ -1190,6 +1194,32 @@ export function deleteCronJob(jobId: string): Promise<{ ok: boolean }> { }) } +// Automation Blueprints — parameterized cron templates the backend serves from +// cron/blueprint_catalog.py. getAutomationBlueprints returns the gallery +// (deliver options already rewritten to this machine's configured gateways); +// instantiateAutomationBlueprint fills the slots and creates a real cron job via +// the same create_job path as createCronJob. Both are profile-scoped like the +// sibling cron endpoints. +export function getAutomationBlueprints(): Promise<{ blueprints: AutomationBlueprint[] }> { + return window.hermesDesktop.api<{ blueprints: AutomationBlueprint[] }>({ + ...profileScoped(), + path: '/api/cron/blueprints', + timeoutMs: STARTUP_REQUEST_TIMEOUT_MS + }) +} + +export function instantiateAutomationBlueprint( + body: { blueprint: string; values: Record }, + profile: string +): Promise { + return window.hermesDesktop.api({ + ...profileScoped(), + path: `/api/cron/blueprints/instantiate?profile=${encodeURIComponent(profile)}`, + method: 'POST', + body + }) +} + export function getProfiles(): Promise { return window.hermesDesktop.api({ path: '/api/profiles', diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts index 79351a8151747..1b1479ac8592f 100644 --- a/apps/desktop/src/i18n/en.ts +++ b/apps/desktop/src/i18n/en.ts @@ -1592,7 +1592,24 @@ export const en: Translations = { scheduleRequired: 'Schedule is required.', scriptOnlyEditHint: 'Script-only job (no AI prompt). Job id:', saveChanges: 'Save changes', - createAction: 'Create cron' + createAction: 'Create cron', + tabs: { + jobs: 'Jobs', + blueprints: 'Blueprints' + }, + blueprints: { + tab: 'Blueprints', + subtitle: 'Ready-made automations', + setUp: 'Set up', + cancel: 'Cancel', + scheduleIt: 'Schedule it', + scheduling: 'Scheduling...', + scheduled: 'Blueprint scheduled', + loading: 'Loading blueprints...', + failedLoad: 'Failed to load blueprints', + emptyTitle: 'No blueprints available', + emptyDesc: 'No automation blueprints are available on this backend.' + } }, artifacts: { diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts index afa02b44bf8b4..60d52092ae55c 100644 --- a/apps/desktop/src/i18n/ja.ts +++ b/apps/desktop/src/i18n/ja.ts @@ -1531,7 +1531,24 @@ export const ja = defineLocale({ scheduleRequired: 'スケジュールは必須です。', scriptOnlyEditHint: 'スクリプトのみのジョブ(AI プロンプトなし)。ジョブ ID:', saveChanges: '変更を保存', - createAction: 'Cron を作成' + createAction: 'Cron を作成', + tabs: { + jobs: 'ジョブ', + blueprints: 'ブレーンプリント' + }, + blueprints: { + tab: 'ブレーンプリント', + subtitle: 'すぐに使える自動化', + setUp: '設定', + cancel: 'キャンセル', + scheduleIt: 'スケジュールする', + scheduling: 'スケジュール中...', + scheduled: 'ブレーンプリントをスケジュールしました', + loading: 'ブレーンプリントを読み込み中...', + failedLoad: 'ブレーンプリントの読み込みに失敗しました', + emptyTitle: '利用できるブレーンプリントはありません', + emptyDesc: 'このバックエンドで利用できる自動化ブレーンプリントはありません。' + } }, artifacts: { diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts index 4ba7fc84c38c2..34c66ebf72142 100644 --- a/apps/desktop/src/i18n/types.ts +++ b/apps/desktop/src/i18n/types.ts @@ -1318,6 +1318,23 @@ export interface Translations { scriptOnlyEditHint: string saveChanges: string createAction: string + tabs: { + jobs: string + blueprints: string + } + blueprints: { + tab: string + subtitle: string + setUp: string + cancel: string + scheduleIt: string + scheduling: string + scheduled: string + loading: string + failedLoad: string + emptyTitle: string + emptyDesc: string + } } artifacts: { diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts index e3c382a8ef590..5e38057508983 100644 --- a/apps/desktop/src/i18n/zh-hant.ts +++ b/apps/desktop/src/i18n/zh-hant.ts @@ -1480,7 +1480,24 @@ export const zhHant = defineLocale({ scheduleRequired: '排程為必填項目。', scriptOnlyEditHint: '僅腳本任務(無 AI 提示詞)。任務 ID:', saveChanges: '儲存變更', - createAction: '建立排程工作' + createAction: '建立排程工作', + tabs: { + jobs: '工作', + blueprints: '藍圖' + }, + blueprints: { + tab: '藍圖', + subtitle: '現成的自動化', + setUp: '設定', + cancel: '取消', + scheduleIt: '安排工作', + scheduling: '安排中...', + scheduled: '藍圖已安排', + loading: '正在載入藍圖...', + failedLoad: '載入藍圖失敗', + emptyTitle: '沒有可用的藍圖', + emptyDesc: '此後端上沒有可用的自動化藍圖。' + } }, artifacts: { diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts index 578a6faa74091..f7df70fa9e707 100644 --- a/apps/desktop/src/i18n/zh.ts +++ b/apps/desktop/src/i18n/zh.ts @@ -1783,7 +1783,24 @@ export const zh: Translations = { scheduleRequired: '排程为必填项。', scriptOnlyEditHint: '仅脚本任务(无 AI 提示词)。任务 ID:', saveChanges: '保存更改', - createAction: '创建定时任务' + createAction: '创建定时任务', + tabs: { + jobs: '任务', + blueprints: '蓝图' + }, + blueprints: { + tab: '蓝图', + subtitle: '现成的自动化', + setUp: '设置', + cancel: '取消', + scheduleIt: '安排任务', + scheduling: '安排中...', + scheduled: '蓝图已安排', + loading: '正在加载蓝图...', + failedLoad: '加载蓝图失败', + emptyTitle: '没有可用的蓝图', + emptyDesc: '此后端上没有可用的自动化蓝图。' + } }, artifacts: { diff --git a/apps/desktop/src/types/hermes.ts b/apps/desktop/src/types/hermes.ts index 4651a92b5dae8..4c0269d4157c5 100644 --- a/apps/desktop/src/types/hermes.ts +++ b/apps/desktop/src/types/hermes.ts @@ -664,6 +664,34 @@ export interface CronJobUpdates { schedule?: string } +// Automation Blueprints — parameterized cron templates with typed slots. The +// backend (cron/blueprint_catalog.py) is the single source of truth; the +// desktop renders each slot as a form field, then instantiates a real cron job +// via the same create_job path as everything else. Shapes mirror the JSON from +// GET /api/cron/blueprints (blueprint_catalog_entry). +export interface AutomationBlueprintField { + name: string + type: 'enum' | 'text' | 'time' | 'weekdays' + label: string + default: null | string + options: string[] + optional: boolean + /** When false, options are suggestions — any value is accepted. */ + strict?: boolean + help: string +} + +export interface AutomationBlueprint { + key: string + title: string + description: string + category: string + tags: string[] + fields: AutomationBlueprintField[] + command: string + appUrl: string +} + export interface ProfileCreatePayload { clone_all?: boolean clone_from?: null | string From 57aaefc998dbe18c600eb306195aee97818c1463 Mon Sep 17 00:00:00 2001 From: Austin Pickett Date: Thu, 23 Jul 2026 18:02:26 -0400 Subject: [PATCH 02/11] fix(desktop): stop cron blueprint cards clipping and tabs overlapping close X Blueprint cards were wrapped in PanelBlock (a max-h-48 overflow-auto
for monospace code), which capped each card and forced an inner scroll,
clipping the copy. Use a plain auto-height card div so rows grow with their
content and the gallery scrolls as one.

PanelHeader actions sat under the overlay's absolutely-positioned close X
(no layout space reserved). Reserve pr-8 clearance when actions are present.
---
 apps/desktop/src/app/cron/blueprints.tsx | 10 +++++++---
 apps/desktop/src/app/overlays/panel.tsx  |  6 +++++-
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/apps/desktop/src/app/cron/blueprints.tsx b/apps/desktop/src/app/cron/blueprints.tsx
index 878673307df22..337d466896f7b 100644
--- a/apps/desktop/src/app/cron/blueprints.tsx
+++ b/apps/desktop/src/app/cron/blueprints.tsx
@@ -18,7 +18,7 @@ import { asText } from '@/lib/text'
 import { updateCronJobs } from '@/store/cron'
 import { notify } from '@/store/notifications'
 
-import { PanelBlock, PanelEmpty, PanelPill } from '../overlays/panel'
+import { PanelEmpty, PanelPill } from '../overlays/panel'
 
 // Initial form state for a blueprint = each field's default (or ''). Pure so the
 // suite can assert the form seeds correctly without mounting React.
@@ -114,7 +114,11 @@ function BlueprintCard({
   }, [blueprint, values, profile, onCreated, c])
 
   return (
-    
+    // A card container — NOT PanelBlock. PanelBlock is a height-capped, scrollable
+    // 
 for monospace code; using it here clipped each blueprint's copy at
+    // max-h-48 and forced an inner scroll. A plain auto-height card lets the row
+    // grow with its content and the whole gallery scrolls as one.
+    

{blueprint.title}

@@ -174,7 +178,7 @@ function BlueprintCard({
)} - +
) } diff --git a/apps/desktop/src/app/overlays/panel.tsx b/apps/desktop/src/app/overlays/panel.tsx index 2561740724ec9..d4109a2f221b5 100644 --- a/apps/desktop/src/app/overlays/panel.tsx +++ b/apps/desktop/src/app/overlays/panel.tsx @@ -71,7 +71,11 @@ interface PanelHeaderProps { export function PanelHeader({ actions, subtitle, title }: PanelHeaderProps) { return ( -
+ // The overlay's close (X) is absolutely positioned at right-3 and costs no + // layout space, so header actions would otherwise slide right up against it. + // Reserve clearance (button footprint from the card edge + a small gap) on + // the right whenever actions are present. +

{title}

{subtitle ?

{subtitle}

: null} From 8617e4e102f826f0bc438e3b36be352b10015c47 Mon Sep 17 00:00:00 2001 From: Austin Pickett Date: Thu, 23 Jul 2026 18:20:36 -0400 Subject: [PATCH 03/11] refactor(desktop): narrow blueprint card i18n dep, document intentional scoping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address review nits on the Cron Blueprints PR: - BlueprintCard's submit useCallback depended on the whole t.cron object; it only uses the blueprints slice. Bind const b = c.blueprints and use it (plus narrow the dep) throughout the card. - Document the intentional GET-vs-POST profile asymmetry on the blueprint endpoints (global catalog vs per-profile instantiate) — the prior comment claimed both were profile-scoped. - Note why the blueprints tab collapses 'all' scope to 'default' (a blueprint creates a real per-profile job; 'all' is not a writable target). --- apps/desktop/src/app/cron/blueprints.tsx | 12 ++++++++---- apps/desktop/src/app/cron/index.tsx | 4 ++++ apps/desktop/src/hermes.ts | 9 +++++++-- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/apps/desktop/src/app/cron/blueprints.tsx b/apps/desktop/src/app/cron/blueprints.tsx index 337d466896f7b..75bc915f4bc4c 100644 --- a/apps/desktop/src/app/cron/blueprints.tsx +++ b/apps/desktop/src/app/cron/blueprints.tsx @@ -94,6 +94,10 @@ function BlueprintCard({ const [values, setValues] = useState>(() => initialBlueprintValues(blueprint)) const [submitting, setSubmitting] = useState(false) const [error, setError] = useState(null) + // Only the blueprints slice of the cron strings is used here — narrow the + // reference (and the submit dep below) instead of leaning on the whole + // t.cron object. + const b = c.blueprints const submit = useCallback(async () => { setSubmitting(true) @@ -102,7 +106,7 @@ function BlueprintCard({ try { const job = await instantiateAutomationBlueprint({ blueprint: blueprint.key, values }, profile) onCreated(job) - notify({ kind: 'success', title: c.blueprints.scheduled, message: asText(job.schedule_display) || blueprint.title }) + notify({ kind: 'success', title: b.scheduled, message: asText(job.schedule_display) || blueprint.title }) setOpen(false) setValues(initialBlueprintValues(blueprint)) } catch (err) { @@ -111,7 +115,7 @@ function BlueprintCard({ } finally { setSubmitting(false) } - }, [blueprint, values, profile, onCreated, c]) + }, [blueprint, values, profile, onCreated, b]) return ( // A card container — NOT PanelBlock. PanelBlock is a height-capped, scrollable @@ -132,7 +136,7 @@ function BlueprintCard({ )}
@@ -173,7 +177,7 @@ function BlueprintCard({
diff --git a/apps/desktop/src/app/cron/index.tsx b/apps/desktop/src/app/cron/index.tsx index e77a97a769c69..5f7ff9f21820b 100644 --- a/apps/desktop/src/app/cron/index.tsx +++ b/apps/desktop/src/app/cron/index.tsx @@ -463,6 +463,10 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt {tab === 'blueprints' ? ( + {/* A blueprint instantiates a real per-profile job, and "all" is not a + writable target — collapse it to 'default', matching the create + path in handleEditorSave. A user scoped to all profiles gets the + job in 'default'. */} ) : loading && jobs.length === 0 ? ( diff --git a/apps/desktop/src/hermes.ts b/apps/desktop/src/hermes.ts index 1e86e67f50ac4..862265211f392 100644 --- a/apps/desktop/src/hermes.ts +++ b/apps/desktop/src/hermes.ts @@ -1198,8 +1198,13 @@ export function deleteCronJob(jobId: string): Promise<{ ok: boolean }> { // cron/blueprint_catalog.py. getAutomationBlueprints returns the gallery // (deliver options already rewritten to this machine's configured gateways); // instantiateAutomationBlueprint fills the slots and creates a real cron job via -// the same create_job path as createCronJob. Both are profile-scoped like the -// sibling cron endpoints. +// the same create_job path as createCronJob. +// +// Profile-scoping is intentionally asymmetric: the GET catalog is global (the +// list endpoint takes no profile — only deliver options are rewritten from the +// configured gateways), so it carries only the profileScoped() header for +// routing. instantiate creates a real per-profile job, so it names the target +// profile explicitly via ?profile=. This mirrors the dashboard's api.ts. export function getAutomationBlueprints(): Promise<{ blueprints: AutomationBlueprint[] }> { return window.hermesDesktop.api<{ blueprints: AutomationBlueprint[] }>({ ...profileScoped(), From deecb18d29f6d2fc567f2abaf283c5fb4b965b86 Mon Sep 17 00:00:00 2001 From: Austin Pickett Date: Thu, 23 Jul 2026 18:36:27 -0400 Subject: [PATCH 04/11] fix(desktop): default blueprint delivery to This desktop, not origin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The blueprint catalog is shared with the dashboard, so its deliver slot defaults to 'origin' (the chat/home-channel a dashboard or gateway job was created from). Desktop has no origin chat and no home-channel picker, so the seeded 'origin' rendered unlabeled and, at delivery, fell through the home-channel fallback to nowhere when no gateway was configured. Seed the deliver slot to 'local' (This desktop) when the backend default is 'origin' or empty, drop the origin option from the desktop dropdown, and label the remaining options with the desktop's own delivery labels — matching the manual cron editor (local/telegram/discord/slack/email). Also skip the backend's origin-centric deliver help, which contradicts desktop semantics. --- apps/desktop/src/app/cron/blueprints.test.ts | 56 ++++++++++++++++++-- apps/desktop/src/app/cron/blueprints.tsx | 52 +++++++++++++++--- 2 files changed, 97 insertions(+), 11 deletions(-) diff --git a/apps/desktop/src/app/cron/blueprints.test.ts b/apps/desktop/src/app/cron/blueprints.test.ts index 6fa80c052c330..87dadb0511205 100644 --- a/apps/desktop/src/app/cron/blueprints.test.ts +++ b/apps/desktop/src/app/cron/blueprints.test.ts @@ -23,18 +23,18 @@ describe('initialBlueprintValues', () => { blueprint([ { name: 'time', type: 'time', label: 'Time', default: '08:00', options: [], optional: false, help: '' }, { - name: 'deliver', + name: 'topic', type: 'enum', - label: 'Deliver', - default: 'origin', - options: ['origin', 'local'], + label: 'Topic', + default: 'news', + options: ['news', 'sports'], optional: false, help: '' } ]) ) - expect(values).toEqual({ time: '08:00', deliver: 'origin' }) + expect(values).toEqual({ time: '08:00', topic: 'news' }) }) it('falls back to an empty string when a field has no default', () => { @@ -48,4 +48,50 @@ describe('initialBlueprintValues', () => { it('returns an empty object for a blueprint with no fields', () => { expect(initialBlueprintValues(blueprint([]))).toEqual({}) }) + + it("seeds the deliver slot to 'local' when its default is the dashboard-only 'origin'", () => { + const values = initialBlueprintValues( + blueprint([ + { + name: 'deliver', + type: 'enum', + label: 'Deliver', + default: 'origin', + options: ['origin', 'local', 'telegram'], + optional: false, + help: '' + } + ]) + ) + + expect(values).toEqual({ deliver: 'local' }) + }) + + it("seeds the deliver slot to 'local' when it has no default", () => { + const values = initialBlueprintValues( + blueprint([ + { name: 'deliver', type: 'enum', label: 'Deliver', default: null, options: ['origin', 'local'], optional: false, help: '' } + ]) + ) + + expect(values).toEqual({ deliver: 'local' }) + }) + + it('leaves a non-origin deliver default untouched', () => { + const values = initialBlueprintValues( + blueprint([ + { + name: 'deliver', + type: 'enum', + label: 'Deliver', + default: 'telegram', + options: ['origin', 'local', 'telegram'], + optional: false, + help: '' + } + ]) + ) + + expect(values).toEqual({ deliver: 'telegram' }) + }) }) diff --git a/apps/desktop/src/app/cron/blueprints.tsx b/apps/desktop/src/app/cron/blueprints.tsx index 75bc915f4bc4c..2a94f436ee7e5 100644 --- a/apps/desktop/src/app/cron/blueprints.tsx +++ b/apps/desktop/src/app/cron/blueprints.tsx @@ -20,12 +20,42 @@ import { notify } from '@/store/notifications' import { PanelEmpty, PanelPill } from '../overlays/panel' +// The blueprint catalog is shared with the dashboard, so its deliver slot +// defaults to "origin" (the chat/home-channel a dashboard or gateway job was +// created from). Desktop has no origin chat and no home-channel picker, so +// "origin" would render unlabeled and, at runtime, deliver nowhere. Treat the +// desktop's native target ("local" = This desktop) as the default and hide the +// origin option — mirroring the manual cron editor, which only offers +// local/telegram/discord/slack/email. +const DELIVER_FIELD = 'deliver' +const DESKTOP_DELIVER_DEFAULT = 'local' + +function isDeliverField(field: AutomationBlueprintField): boolean { + return field.name === DELIVER_FIELD +} + +// Options a desktop user can actually deliver to: drop "origin" (dashboard-only) +// and de-dupe. Everything else the backend offered (local + configured +// gateways) passes through. +function desktopDeliverOptions(options: string[]): string[] { + return [...new Set(options.filter(option => option !== 'origin'))] +} + +// Label a deliver value with the desktop's own delivery labels ("This desktop", +// "Telegram", …), falling back to the raw platform id for anything unmapped. +function deliverLabel(value: string, c: Translations['cron']): string { + return c.deliveryLabels[value] ?? value +} + // Initial form state for a blueprint = each field's default (or ''). Pure so the -// suite can assert the form seeds correctly without mounting React. +// suite can assert the form seeds correctly without mounting React. The deliver +// slot is special-cased: an "origin" default (or empty) becomes "local" so a +// desktop-created job delivers to This desktop instead of nowhere. export function initialBlueprintValues(blueprint: AutomationBlueprint): Record { const out: Record = {} for (const field of blueprint.fields) { - out[field.name] = field.default ?? '' + const seeded = field.default ?? '' + out[field.name] = isDeliverField(field) && (seeded === '' || seeded === 'origin') ? DESKTOP_DELIVER_DEFAULT : seeded } return out } @@ -40,23 +70,28 @@ function FieldInput({ field, id, value, - onChange + onChange, + c }: { field: AutomationBlueprintField id: string value: string onChange: (next: string) => void + c: Translations['cron'] }) { if (field.type === 'enum' || field.type === 'weekdays') { + const deliver = isDeliverField(field) + const options = deliver ? desktopDeliverOptions(field.options) : field.options + return ( rows with the shared ListRow primitive from settings/primitives (label+help on the left, control on the right, stacks in a narrow pane) — same idiom as settings/messaging. No behavior change; blueprint deliver remap and $cronJobs merge untouched. --- apps/desktop/src/app/cron/blueprints.tsx | 58 +++++++++++++----------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/apps/desktop/src/app/cron/blueprints.tsx b/apps/desktop/src/app/cron/blueprints.tsx index 2a94f436ee7e5..9c8a8074c1d7d 100644 --- a/apps/desktop/src/app/cron/blueprints.tsx +++ b/apps/desktop/src/app/cron/blueprints.tsx @@ -19,6 +19,7 @@ import { updateCronJobs } from '@/store/cron' import { notify } from '@/store/notifications' import { PanelEmpty, PanelPill } from '../overlays/panel' +import { ListRow } from '../settings/primitives' // The blueprint catalog is shared with the dashboard, so its deliver slot // defaults to "origin" (the chat/home-channel a dashboard or gateway job was @@ -153,11 +154,11 @@ function BlueprintCard({ }, [blueprint, values, profile, onCreated, b]) return ( - // A card container — NOT PanelBlock. PanelBlock is a height-capped, scrollable - //
 for monospace code; using it here clipped each blueprint's copy at
-    // max-h-48 and forced an inner scroll. A plain auto-height card lets the row
-    // grow with its content and the whole gallery scrolls as one.
-    
+ // Keep this in the Panel family (matches the cron editor's in-surface + // groupings) rather than a standalone card look — bg-(--ui-bg-quinary) is the + // shared in-panel grouping token. NOT PanelBlock: that's a height-capped, + // scrollable
 for monospace code and clipped each blueprint's copy.
+    

{blueprint.title}

@@ -177,7 +178,7 @@ function BlueprintCard({ {open && (
{ event.preventDefault() void submit() @@ -185,37 +186,40 @@ function BlueprintCard({ > {blueprint.fields.map(field => { const fieldId = `blueprint-${blueprint.key}-${field.name}` + // The backend deliver help is origin/dashboard-centric and even + // contradicts desktop semantics ("local = save only" vs. This + // desktop), and the relabeled dropdown is self-explanatory — skip it + // for the deliver slot. + const help = field.help && field.type !== 'text' && !isDeliverField(field) ? field.help : undefined return ( -
- - setValues(prev => ({ ...prev, [field.name]: next }))} - value={values[field.name] ?? ''} - /> - {/* The backend deliver help is origin/dashboard-centric and even - contradicts desktop semantics ("local = save only" vs. This - desktop), and the relabeled dropdown is self-explanatory — - skip it for the deliver slot. */} - {field.help && field.type !== 'text' && !isDeliverField(field) && ( -

{field.help}

- )} -
+ // Shared settings/messaging field primitive so the slot form matches + // the rest of the app's forms (label + description on the left, the + // control on the right; stacks in a narrow pane). + setValues(prev => ({ ...prev, [field.name]: next }))} + value={values[field.name] ?? ''} + /> + } + description={help} + key={field.name} + title={} + /> ) })} {error && ( -

+

{error}

)} -
+
From c95c53c32e953ad4188ea9437c0c75b43cb85038 Mon Sep 17 00:00:00 2001 From: Austin Pickett Date: Thu, 23 Jul 2026 22:36:26 -0400 Subject: [PATCH 06/11] fix(desktop): satisfy eslint on the cron blueprint files CI check:lint failed on import/export ordering and an unused import in the blueprint changes: - hermes.ts: sort AutomationBlueprint before AuxiliaryModelsResponse in the type import + re-export blocks, and drop the unused AutomationBlueprintField import (still re-exported for blueprints.tsx). - cron/index.tsx: alphabetize the dialog/segmented-control imports and the ./blueprints vs ../shell/statusbar-controls group. - blueprints.tsx: add the required blank lines between statements. eslint --fix only; no behavior change. typecheck + blueprint tests green. --- apps/desktop/src/app/cron/blueprints.tsx | 3 +++ apps/desktop/src/app/cron/index.tsx | 5 ++--- apps/desktop/src/hermes.ts | 5 ++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/desktop/src/app/cron/blueprints.tsx b/apps/desktop/src/app/cron/blueprints.tsx index 9c8a8074c1d7d..60da0ba28415c 100644 --- a/apps/desktop/src/app/cron/blueprints.tsx +++ b/apps/desktop/src/app/cron/blueprints.tsx @@ -54,10 +54,12 @@ function deliverLabel(value: string, c: Translations['cron']): string { // desktop-created job delivers to This desktop instead of nowhere. export function initialBlueprintValues(blueprint: AutomationBlueprint): Record { const out: Record = {} + for (const field of blueprint.fields) { const seeded = field.default ?? '' out[field.name] = isDeliverField(field) && (seeded === '' || seeded === 'origin') ? DESKTOP_DELIVER_DEFAULT : seeded } + return out } @@ -249,6 +251,7 @@ export function BlueprintsPanel({ profile }: { profile: string }) { // Merge, don't clobber: keep the existing rows and add/replace this one. updateCronJobs(rows => { const rest = rows.filter(row => row.id !== job.id) + return [...rest, job] }) }, []) diff --git a/apps/desktop/src/app/cron/index.tsx b/apps/desktop/src/app/cron/index.tsx index 5f7ff9f21820b..4185e03de8686 100644 --- a/apps/desktop/src/app/cron/index.tsx +++ b/apps/desktop/src/app/cron/index.tsx @@ -6,7 +6,6 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react' import { PageLoader } from '@/components/page-loader' import { Button } from '@/components/ui/button' import { Codicon, codiconIcon } from '@/components/ui/codicon' -import { SegmentedControl } from '@/components/ui/segmented-control' import { Dialog, DialogContent, @@ -16,6 +15,7 @@ import { DialogTitle } from '@/components/ui/dialog' import { Input } from '@/components/ui/input' +import { SegmentedControl } from '@/components/ui/segmented-control' import { Select, SelectContent, @@ -64,10 +64,9 @@ import { PanelRowMenu, PanelSectionLabel } from '../overlays/panel' - -import { BlueprintsPanel } from './blueprints' import type { SetStatusbarItemGroup } from '../shell/statusbar-controls' +import { BlueprintsPanel } from './blueprints' import { cronEditorUpdates, jobIsScriptOnly, validateCronEditor } from './cron-job-model' import { jobState, jobTitle, STATE_DOT } from './job-state' diff --git a/apps/desktop/src/hermes.ts b/apps/desktop/src/hermes.ts index 862265211f392..e30b20fda5152 100644 --- a/apps/desktop/src/hermes.ts +++ b/apps/desktop/src/hermes.ts @@ -6,9 +6,8 @@ import type { AnalyticsResponse, AudioSpeakResponse, AudioTranscriptionResponse, - AuxiliaryModelsResponse, AutomationBlueprint, - AutomationBlueprintField, + AuxiliaryModelsResponse, BackendUpdateCheckResponse, ComputerUseStatus, ConfigSchemaResponse, @@ -128,9 +127,9 @@ export type { AnalyticsTotals, AudioSpeakResponse, AudioTranscriptionResponse, - AuxiliaryModelsResponse, AutomationBlueprint, AutomationBlueprintField, + AuxiliaryModelsResponse, BackendUpdateCheckResponse, ComputerUseCheck, ComputerUsePermissionSource, From 62ab52e3a51d11dcb828b40a4693bb29309cdd8a Mon Sep 17 00:00:00 2001 From: Austin Pickett Date: Fri, 24 Jul 2026 09:28:33 -0400 Subject: [PATCH 07/11] refactor(desktop): blueprints reuse the cron editor dialog + shared card Address review: the blueprint UI was still going its own way on the card and form. Reuse the app's canonical pieces instead of a bespoke surface. - CronEditorDialog gains a 'blueprint' mode: EditorState carries the blueprint + target profile, the dialog renders the typed slots with the same Field/FieldHint/DialogFooter/error-block chrome as manual New cron, and submit routes to instantiateAutomationBlueprint. One dialog, one editor state machine. Resolves the accordion, the border-t divider, ListRow-vs-Field, the ad-hoc buttons, and the plain error

in one move. - Blueprint cards use selectableCardClass({ prominent: true }) (the shared theme/pet/gateway card idiom), caller owns padding (p-2), whole card is a button that opens the dialog pre-filled. No inline form. - Gallery renders via PanelDetail, not PanelBody's master/detail row. - i18n: drop the now-unused blueprints.setUp/cancel, add blueprints.dialogDesc across en/ja/zh/zh-hant + types. - Dropped the stray \u2014 literal comment. Logic (origin->local deliver, desktopDeliverOptions, merge into $cronJobs) is unchanged and stays unit-tested. typecheck + eslint + tests green. --- apps/desktop/src/app/cron/blueprints.tsx | 203 ++++++----------------- apps/desktop/src/app/cron/index.tsx | 142 ++++++++++++++-- apps/desktop/src/i18n/en.ts | 3 +- apps/desktop/src/i18n/ja.ts | 3 +- apps/desktop/src/i18n/types.ts | 3 +- apps/desktop/src/i18n/zh-hant.ts | 3 +- apps/desktop/src/i18n/zh.ts | 3 +- 7 files changed, 181 insertions(+), 179 deletions(-) diff --git a/apps/desktop/src/app/cron/blueprints.tsx b/apps/desktop/src/app/cron/blueprints.tsx index 60da0ba28415c..3a0490f20be60 100644 --- a/apps/desktop/src/app/cron/blueprints.tsx +++ b/apps/desktop/src/app/cron/blueprints.tsx @@ -1,25 +1,16 @@ import { useQuery } from '@tanstack/react-query' -import { useCallback, useMemo, useState } from 'react' +import { useMemo } from 'react' import { PageLoader } from '@/components/page-loader' -import { Button } from '@/components/ui/button' import { Input } from '@/components/ui/input' -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue -} from '@/components/ui/select' -import { getAutomationBlueprints, instantiateAutomationBlueprint } from '@/hermes' -import type { AutomationBlueprint, AutomationBlueprintField, CronJob } from '@/hermes' +import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' +import { getAutomationBlueprints } from '@/hermes' +import type { AutomationBlueprint, AutomationBlueprintField } from '@/hermes' import { type Translations, useI18n } from '@/i18n' -import { asText } from '@/lib/text' -import { updateCronJobs } from '@/store/cron' -import { notify } from '@/store/notifications' +import { selectableCardClass } from '@/lib/selectable-card' +import { cn } from '@/lib/utils' -import { PanelEmpty, PanelPill } from '../overlays/panel' -import { ListRow } from '../settings/primitives' +import { PanelDetail, PanelEmpty, PanelPill } from '../overlays/panel' // The blueprint catalog is shared with the dashboard, so its deliver slot // defaults to "origin" (the chat/home-channel a dashboard or gateway job was @@ -65,22 +56,33 @@ export function initialBlueprintValues(blueprint: AutomationBlueprint): Record" // (or ": "); strip the leading numeric code for inline display. -function cleanFieldError(message: string): string { +export function cleanBlueprintFieldError(message: string): string { return message.replace(/^\d+:\s*/, '') } -function FieldInput({ +// Help text to show under a slot control. The backend deliver help is +// origin/dashboard-centric and even contradicts desktop semantics ("local = +// save only" vs. This desktop), and the relabeled dropdown is self-explanatory — +// skip it for the deliver slot. +export function blueprintSlotHelp(field: AutomationBlueprintField): string | undefined { + return field.help && field.type !== 'text' && !isDeliverField(field) ? field.help : undefined +} + +// Renders one blueprint slot's control (enum/weekdays → Select, time → time +// input, else text). The deliver slot drops the dashboard-only "origin" option +// and uses the desktop's delivery labels. +export function BlueprintSlotControl({ + c, field, id, - value, onChange, - c + value }: { + c: Translations['cron'] field: AutomationBlueprintField id: string - value: string onChange: (next: string) => void - c: Translations['cron'] + value: string }) { if (field.type === 'enum' || field.type === 'weekdays') { const deliver = isDeliverField(field) @@ -117,145 +119,42 @@ function FieldInput({ ) } -function BlueprintCard({ - blueprint, - c, - profile, - onCreated -}: { - blueprint: AutomationBlueprint - c: Translations['cron'] - profile: string - onCreated: (job: CronJob) => void -}) { - const [open, setOpen] = useState(false) - const [values, setValues] = useState>(() => initialBlueprintValues(blueprint)) - const [submitting, setSubmitting] = useState(false) - const [error, setError] = useState(null) - // Only the blueprints slice of the cron strings is used here — narrow the - // reference (and the submit dep below) instead of leaning on the whole - // t.cron object. - const b = c.blueprints - - const submit = useCallback(async () => { - setSubmitting(true) - setError(null) - - try { - const job = await instantiateAutomationBlueprint({ blueprint: blueprint.key, values }, profile) - onCreated(job) - notify({ kind: 'success', title: b.scheduled, message: asText(job.schedule_display) || blueprint.title }) - setOpen(false) - setValues(initialBlueprintValues(blueprint)) - } catch (err) { - // 422 carries the slot-level message; surface it inline on the form. - setError(cleanFieldError(err instanceof Error ? err.message : String(err))) - } finally { - setSubmitting(false) - } - }, [blueprint, values, profile, onCreated, b]) - +// A clickable blueprint card — mirrors the app's other selectable cards +// (theme/pet/gateway/profile pickers) via selectableCardClass. Clicking opens +// the shared cron editor dialog pre-filled with this blueprint's slots; there's +// no inline expand form or divider. +function BlueprintCard({ blueprint, onSetUp }: { blueprint: AutomationBlueprint; onSetUp: () => void }) { return ( - // Keep this in the Panel family (matches the cron editor's in-surface - // groupings) rather than a standalone card look — bg-(--ui-bg-quinary) is the - // shared in-panel grouping token. NOT PanelBlock: that's a height-capped, - // scrollable

 for monospace code and clipped each blueprint's copy.
-    
-
-
-

{blueprint.title}

-

{blueprint.description}

- {blueprint.tags.length > 0 && ( -
- {blueprint.tags.map(tag => ( - {tag} - ))} -
- )} -
- -
- - {open && ( - { - event.preventDefault() - void submit() - }} - > - {blueprint.fields.map(field => { - const fieldId = `blueprint-${blueprint.key}-${field.name}` - // The backend deliver help is origin/dashboard-centric and even - // contradicts desktop semantics ("local = save only" vs. This - // desktop), and the relabeled dropdown is self-explanatory — skip it - // for the deliver slot. - const help = field.help && field.type !== 'text' && !isDeliverField(field) ? field.help : undefined - - return ( - // Shared settings/messaging field primitive so the slot form matches - // the rest of the app's forms (label + description on the left, the - // control on the right; stacks in a narrow pane). - setValues(prev => ({ ...prev, [field.name]: next }))} - value={values[field.name] ?? ''} - /> - } - description={help} - key={field.name} - title={} - /> - ) - })} - - {error && ( -

- {error} -

- )} - -
- +
+ ) } -// Automation Blueprints gallery \u2014 the desktop counterpart to the dashboard's -// blueprint tab. Each card expands into an inline form (one field per typed -// slot); submitting POSTs to /api/cron/blueprints/instantiate, which fills the -// blueprint and creates the job via the same create_job path as a hand-written -// cron. The created job is spliced straight into the shared $cronJobs atom so -// the Jobs tab and sidebar reflect it immediately. -export function BlueprintsPanel({ profile }: { profile: string }) { +// Automation Blueprints gallery — the desktop counterpart to the dashboard's +// blueprint tab. Each card opens the shared cron editor dialog pre-filled with +// the blueprint's typed slots; submitting POSTs to +// /api/cron/blueprints/instantiate, which fills the blueprint and creates the +// job via the same create_job path as a hand-written cron. +export function BlueprintsPanel({ onSetUp }: { onSetUp: (blueprint: AutomationBlueprint) => void }) { const { t } = useI18n() const c = t.cron const blueprints = useQuery({ - queryKey: ['cron-blueprints', profile], + queryKey: ['cron-blueprints'], queryFn: async () => (await getAutomationBlueprints()).blueprints }) - const handleCreated = useCallback((job: CronJob) => { - // Merge, don't clobber: keep the existing rows and add/replace this one. - updateCronJobs(rows => { - const rest = rows.filter(row => row.id !== job.id) - - return [...rest, job] - }) - }, []) - const cards = useMemo(() => blueprints.data ?? [], [blueprints.data]) if (blueprints.isLoading) { @@ -271,10 +170,10 @@ export function BlueprintsPanel({ profile }: { profile: string }) { } return ( -
+ {cards.map(blueprint => ( - + onSetUp(blueprint)} /> ))} -
+ ) } diff --git a/apps/desktop/src/app/cron/index.tsx b/apps/desktop/src/app/cron/index.tsx index 4185e03de8686..13c7ffd64f652 100644 --- a/apps/desktop/src/app/cron/index.tsx +++ b/apps/desktop/src/app/cron/index.tsx @@ -27,11 +27,13 @@ import { } from '@/components/ui/select' import { Textarea } from '@/components/ui/textarea' import { + type AutomationBlueprint, createCronJob, type CronJob, deleteCronJob, getCronJobRuns, getCronJobs, + instantiateAutomationBlueprint, pauseCronJob, resumeCronJob, type SessionInfo, @@ -66,7 +68,13 @@ import { } from '../overlays/panel' import type { SetStatusbarItemGroup } from '../shell/statusbar-controls' -import { BlueprintsPanel } from './blueprints' +import { + BlueprintSlotControl, + blueprintSlotHelp, + BlueprintsPanel, + cleanBlueprintFieldError, + initialBlueprintValues +} from './blueprints' import { cronEditorUpdates, jobIsScriptOnly, validateCronEditor } from './cron-job-model' import { jobState, jobTitle, STATE_DOT } from './job-state' @@ -445,6 +453,21 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt setEditor({ mode: 'closed' }) } + // Blueprint instantiation is a distinct backend path (fills typed slots, then + // creates the job) so it can't share the raw-cron onSave contract. Merge the + // created job into $cronJobs like every other create path. + async function handleBlueprintCreate(blueprint: AutomationBlueprint, values: Record, profile: string) { + const job = await instantiateAutomationBlueprint({ blueprint: blueprint.key, values }, profile) + + updateCronJobs(rows => { + const rest = rows.filter(row => row.id !== job.id) + + return [...rest, job] + }) + notify({ kind: 'success', title: c.blueprints.scheduled, message: asText(job.schedule_display) || blueprint.title }) + setEditor({ mode: 'closed' }) + } + const tabToggle = ( {tab === 'blueprints' ? ( - - {/* A blueprint instantiates a real per-profile job, and "all" is not a - writable target — collapse it to 'default', matching the create - path in handleEditorSave. A user scoped to all profiles gets the - job in 'default'. */} - - + // A blueprint instantiates a real per-profile job, and "all" is not a + // writable target — collapse it to 'default', matching the create path + // in handleEditorSave. A user scoped to all profiles gets the job in + // 'default'. The gallery is a single scroll column, so it renders + // directly (BlueprintsPanel uses PanelDetail) rather than in PanelBody's + // master/detail row. + + setEditor({ + blueprint, + mode: 'blueprint', + profile: profileScope === ALL_PROFILES ? 'default' : profileScope + }) + } + /> ) : loading && jobs.length === 0 ? ( ) : totalCount === 0 ? ( @@ -531,7 +562,12 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt )} - setEditor({ mode: 'closed' })} onSave={handleEditorSave} /> + setEditor({ mode: 'closed' })} + onSave={handleEditorSave} + /> !open && !deleting && setPendingDelete(null)} open={pendingDelete !== null}> @@ -755,10 +791,12 @@ function CronJobRuns({ function CronEditorDialog({ editor, + onBlueprintCreate, onClose, onSave }: { editor: EditorState + onBlueprintCreate: (blueprint: AutomationBlueprint, values: Record, profile: string) => Promise onClose: () => void onSave: (values: EditorValues) => Promise }) { @@ -766,6 +804,8 @@ function CronEditorDialog({ const c = t.cron const open = editor.mode !== 'closed' const isEdit = editor.mode === 'edit' + const isBlueprint = editor.mode === 'blueprint' + const blueprint = isBlueprint ? editor.blueprint : null const initial = isEdit ? editor.job : null const scriptOnlyJob = initial ? jobIsScriptOnly(initial) : false @@ -777,16 +817,19 @@ function CronEditorDialog({ // Per-job model override, encoded as `${providerSlug}:${model}` (split on the // first ':' when saving). MODEL_DEFAULT_VALUE = follow the global default. const [modelChoice, setModelChoice] = useState(MODEL_DEFAULT_VALUE) + // Blueprint mode fills typed slots (time/enum/weekdays/text) instead of the + // raw cron fields; the backend renders the prompt + schedule from them. + const [slotValues, setSlotValues] = useState>({}) const [saving, setSaving] = useState(false) const [error, setError] = useState(null) // Same catalog the chat model picker uses: configured providers and their - // actually-available models only. Script-only jobs never run an agent, so - // skip the fetch entirely for them. + // actually-available models only. Script-only + blueprint dialogs never pick a + // model here, so skip the fetch entirely for them. const modelOptions = useQuery({ queryKey: ['model-options', 'global'], queryFn: () => requestModelOptions({}), - enabled: open && !scriptOnlyJob + enabled: open && !scriptOnlyJob && !isBlueprint }) useEffect(() => { @@ -800,9 +843,10 @@ function CronEditorDialog({ setSchedulePreset(initial ? scheduleOptionForExpr(jobScheduleExpr(initial)).value : 'daily') setDeliver(initial ? jobDeliver(initial) : DEFAULT_DELIVER) setModelChoice(initial && jobModel(initial) ? `${jobProvider(initial)}:${jobModel(initial)}` : MODEL_DEFAULT_VALUE) + setSlotValues(blueprint ? initialBlueprintValues(blueprint) : {}) setError(null) setSaving(false) - }, [initial, open]) + }, [blueprint, initial, open]) const selectedScheduleOption = SCHEDULE_OPTIONS.find(candidate => candidate.value === schedulePreset) ?? SCHEDULE_OPTIONS[0] @@ -881,15 +925,74 @@ function CronEditorDialog({ } } + async function handleBlueprintSubmit(event: React.FormEvent) { + event.preventDefault() + + if (!isBlueprint) { + return + } + + setSaving(true) + setError(null) + + try { + await onBlueprintCreate(editor.blueprint, slotValues, editor.profile) + } catch (err) { + // 422 carries the slot-level validation message; surface it inline. + setError(cleanBlueprintFieldError(err instanceof Error ? err.message : String(err))) + } finally { + setSaving(false) + } + } + return ( !value && !saving && onClose()} open={open}> - {isEdit ? c.editTitle : c.createTitle} - {isEdit ? c.editDesc : c.createDesc} + {isBlueprint ? blueprint?.title : isEdit ? c.editTitle : c.createTitle} + + {isBlueprint ? blueprint?.description || c.blueprints.dialogDesc : isEdit ? c.editDesc : c.createDesc} + -
+ {isBlueprint && blueprint ? ( + + {blueprint.fields.map(field => { + const fieldId = `blueprint-${blueprint.key}-${field.name}` + const help = blueprintSlotHelp(field) + + return ( + + setSlotValues(prev => ({ ...prev, [field.name]: next }))} + value={slotValues[field.name] ?? ''} + /> + {help && {help}} + + ) + })} + + {error && ( +
+ + {error} +
+ )} + + + + + +
+ ) : ( +
{scriptOnlyJob && initial && ( {c.scriptOnlyEditHint} {initial.id} @@ -1016,6 +1119,7 @@ function CronEditorDialog({ + )}
) @@ -1049,7 +1153,11 @@ function FieldHint({ children }: { children: React.ReactNode }) { return

{children}

} -type EditorState = { mode: 'closed' } | { mode: 'create' } | { job: CronJob; mode: 'edit' } +type EditorState = + | { blueprint: AutomationBlueprint; mode: 'blueprint'; profile: string } + | { job: CronJob; mode: 'edit' } + | { mode: 'closed' } + | { mode: 'create' } interface EditorValues { deliver: string diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts index 1b1479ac8592f..3c1e5ffedb225 100644 --- a/apps/desktop/src/i18n/en.ts +++ b/apps/desktop/src/i18n/en.ts @@ -1600,8 +1600,7 @@ export const en: Translations = { blueprints: { tab: 'Blueprints', subtitle: 'Ready-made automations', - setUp: 'Set up', - cancel: 'Cancel', + dialogDesc: 'Fill in the details and schedule it.', scheduleIt: 'Schedule it', scheduling: 'Scheduling...', scheduled: 'Blueprint scheduled', diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts index 60d52092ae55c..4084b1857c097 100644 --- a/apps/desktop/src/i18n/ja.ts +++ b/apps/desktop/src/i18n/ja.ts @@ -1539,8 +1539,7 @@ export const ja = defineLocale({ blueprints: { tab: 'ブレーンプリント', subtitle: 'すぐに使える自動化', - setUp: '設定', - cancel: 'キャンセル', + dialogDesc: '詳細を入力してスケジュールします。', scheduleIt: 'スケジュールする', scheduling: 'スケジュール中...', scheduled: 'ブレーンプリントをスケジュールしました', diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts index 34c66ebf72142..4f3ac8c0b7167 100644 --- a/apps/desktop/src/i18n/types.ts +++ b/apps/desktop/src/i18n/types.ts @@ -1325,8 +1325,7 @@ export interface Translations { blueprints: { tab: string subtitle: string - setUp: string - cancel: string + dialogDesc: string scheduleIt: string scheduling: string scheduled: string diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts index 5e38057508983..3e3c0fb1ac8dd 100644 --- a/apps/desktop/src/i18n/zh-hant.ts +++ b/apps/desktop/src/i18n/zh-hant.ts @@ -1488,8 +1488,7 @@ export const zhHant = defineLocale({ blueprints: { tab: '藍圖', subtitle: '現成的自動化', - setUp: '設定', - cancel: '取消', + dialogDesc: '填寫詳細資訊並進行排程。', scheduleIt: '安排工作', scheduling: '安排中...', scheduled: '藍圖已安排', diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts index f7df70fa9e707..5b734d7b7980e 100644 --- a/apps/desktop/src/i18n/zh.ts +++ b/apps/desktop/src/i18n/zh.ts @@ -1791,8 +1791,7 @@ export const zh: Translations = { blueprints: { tab: '蓝图', subtitle: '现成的自动化', - setUp: '设置', - cancel: '取消', + dialogDesc: '填写详细信息并进行排程。', scheduleIt: '安排任务', scheduling: '安排中...', scheduled: '蓝图已安排', From fd69fe000aa86a82d8e10d8d13a3f18dc7f9161e Mon Sep 17 00:00:00 2001 From: Austin Pickett Date: Fri, 24 Jul 2026 10:00:40 -0400 Subject: [PATCH 08/11] fix(desktop): dropdown no longer closes the cron dialog; unify deliver targets Two cron-dialog bugs: 1. Dismissing any Select dropdown inside the cron editor dialog closed the whole dialog. Radix portals Select/Popover content outside the dialog, so the dismiss pointerdown reached the Dialog's DismissableLayer as an outside-interaction. Guard DialogContent.onInteractOutside: swallow interactions originating from a [data-radix-popper-content-wrapper] (a dropdown dismiss inside our own dialog), compose with any caller handler. Fix is at the shared Dialog level so every dialog benefits. 2. Blueprint deliver only offered 'This desktop'. The blueprint used the backend blueprint field.options (configured gateways only) while the manual editor hardcoded local/telegram/discord/slack/email regardless of what's connected. Wire the desktop to GET /api/cron/delivery-targets (the documented single source of truth, already used by the dashboard) via getCronDeliveryTargets, and render both the manual editor and the blueprint deliver slot through one shared DeliverSelect. Now all three surfaces agree and only offer connected platforms; unconfigured-home-channel targets show a hint. i18n: add cron.deliverNeedsHomeChannel across en/ja/zh/zh-hant + types. typecheck + eslint + vitest green. --- apps/desktop/src/app/cron/blueprints.tsx | 39 +++------ apps/desktop/src/app/cron/index.tsx | 101 +++++++++++++++++----- apps/desktop/src/components/ui/dialog.tsx | 28 ++++++ apps/desktop/src/hermes.ts | 14 +++ apps/desktop/src/i18n/en.ts | 1 + apps/desktop/src/i18n/ja.ts | 1 + apps/desktop/src/i18n/types.ts | 1 + apps/desktop/src/i18n/zh-hant.ts | 1 + apps/desktop/src/i18n/zh.ts | 1 + apps/desktop/src/types/hermes.ts | 12 +++ 10 files changed, 149 insertions(+), 50 deletions(-) diff --git a/apps/desktop/src/app/cron/blueprints.tsx b/apps/desktop/src/app/cron/blueprints.tsx index 3a0490f20be60..69c122cf4a38a 100644 --- a/apps/desktop/src/app/cron/blueprints.tsx +++ b/apps/desktop/src/app/cron/blueprints.tsx @@ -6,7 +6,7 @@ import { Input } from '@/components/ui/input' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' import { getAutomationBlueprints } from '@/hermes' import type { AutomationBlueprint, AutomationBlueprintField } from '@/hermes' -import { type Translations, useI18n } from '@/i18n' +import { useI18n } from '@/i18n' import { selectableCardClass } from '@/lib/selectable-card' import { cn } from '@/lib/utils' @@ -14,11 +14,10 @@ import { PanelDetail, PanelEmpty, PanelPill } from '../overlays/panel' // The blueprint catalog is shared with the dashboard, so its deliver slot // defaults to "origin" (the chat/home-channel a dashboard or gateway job was -// created from). Desktop has no origin chat and no home-channel picker, so -// "origin" would render unlabeled and, at runtime, deliver nowhere. Treat the -// desktop's native target ("local" = This desktop) as the default and hide the -// origin option — mirroring the manual cron editor, which only offers -// local/telegram/discord/slack/email. +// created from). Desktop has no origin chat, so seed the deliver slot to the +// desktop's native target ("local" = This desktop) instead. The dialog then +// renders that slot with the shared DeliverSelect (backend-sourced targets), so +// the raw "origin" option never reaches the desktop UI. const DELIVER_FIELD = 'deliver' const DESKTOP_DELIVER_DEFAULT = 'local' @@ -26,19 +25,6 @@ function isDeliverField(field: AutomationBlueprintField): boolean { return field.name === DELIVER_FIELD } -// Options a desktop user can actually deliver to: drop "origin" (dashboard-only) -// and de-dupe. Everything else the backend offered (local + configured -// gateways) passes through. -function desktopDeliverOptions(options: string[]): string[] { - return [...new Set(options.filter(option => option !== 'origin'))] -} - -// Label a deliver value with the desktop's own delivery labels ("This desktop", -// "Telegram", …), falling back to the raw platform id for anything unmapped. -function deliverLabel(value: string, c: Translations['cron']): string { - return c.deliveryLabels[value] ?? value -} - // Initial form state for a blueprint = each field's default (or ''). Pure so the // suite can assert the form seeds correctly without mounting React. The deliver // slot is special-cased: an "origin" default (or empty) becomes "local" so a @@ -62,41 +48,36 @@ export function cleanBlueprintFieldError(message: string): string { // Help text to show under a slot control. The backend deliver help is // origin/dashboard-centric and even contradicts desktop semantics ("local = -// save only" vs. This desktop), and the relabeled dropdown is self-explanatory — +// save only" vs. This desktop), and the DeliverSelect is self-explanatory — // skip it for the deliver slot. export function blueprintSlotHelp(field: AutomationBlueprintField): string | undefined { return field.help && field.type !== 'text' && !isDeliverField(field) ? field.help : undefined } // Renders one blueprint slot's control (enum/weekdays → Select, time → time -// input, else text). The deliver slot drops the dashboard-only "origin" option -// and uses the desktop's delivery labels. +// input, else text). The deliver slot is handled separately by the dialog's +// shared DeliverSelect, so it's not rendered here. export function BlueprintSlotControl({ - c, field, id, onChange, value }: { - c: Translations['cron'] field: AutomationBlueprintField id: string onChange: (next: string) => void value: string }) { if (field.type === 'enum' || field.type === 'weekdays') { - const deliver = isDeliverField(field) - const options = deliver ? desktopDeliverOptions(field.options) : field.options - return ( + + + + + {options.map(target => ( + + {deliverTargetLabel(target, c)} + + ))} + + + ) +} + function CronEditorDialog({ editor, onBlueprintCreate, @@ -832,6 +875,15 @@ function CronEditorDialog({ enabled: open && !scriptOnlyJob && !isBlueprint }) + // Single source of truth for where a cron can deliver (local + configured + // gateways) — same endpoint the dashboard uses, so no dialog offers a platform + // that isn't connected. Shared by the manual editor and the blueprint form. + const deliveryTargets = useQuery({ + queryKey: ['cron-delivery-targets'], + queryFn: getCronDeliveryTargets, + enabled: open + }) + useEffect(() => { if (!open) { return @@ -963,13 +1015,25 @@ function CronEditorDialog({ return ( - setSlotValues(prev => ({ ...prev, [field.name]: next }))} - value={slotValues[field.name] ?? ''} - /> + {field.name === 'deliver' ? ( + // Use the shared, backend-sourced delivery targets (same as the + // manual editor) rather than the blueprint's static field.options, + // so both dialogs offer exactly the connected platforms. + setSlotValues(prev => ({ ...prev, [field.name]: next }))} + targets={deliveryTargets.data ?? []} + value={slotValues[field.name] ?? DEFAULT_DELIVER} + /> + ) : ( + setSlotValues(prev => ({ ...prev, [field.name]: next }))} + value={slotValues[field.name] ?? ''} + /> + )} {help && {help}} ) @@ -1036,18 +1100,13 @@ function CronEditorDialog({ - +
diff --git a/apps/desktop/src/components/ui/dialog.tsx b/apps/desktop/src/components/ui/dialog.tsx index a88ebc086e185..c64e70431794b 100644 --- a/apps/desktop/src/components/ui/dialog.tsx +++ b/apps/desktop/src/components/ui/dialog.tsx @@ -60,6 +60,18 @@ export function preventCloseButtonAutoFocus(event: Event) { event.preventDefault() } +// Radix portals Select / Dropdown / Popover content OUTSIDE the dialog (into a +// `[data-radix-popper-content-wrapper]`). Dismissing that popover fires a +// pointerdown the Dialog's DismissableLayer reads as an outside-interaction and +// closes the whole dialog. Guard: if an outside-interaction originates from a +// popper wrapper, it's a dropdown dismiss inside our own dialog — swallow it so +// only the dropdown closes. A genuine click elsewhere still closes the dialog. +function isInteractionFromPopper(event: Event): boolean { + const target = event.target + + return target instanceof Element && target.closest('[data-radix-popper-content-wrapper]') !== null +} + function DialogContent({ className, children, @@ -68,6 +80,7 @@ function DialogContent({ banner, bannerTone = 'error', onOpenAutoFocus, + onInteractOutside, ...props }: React.ComponentProps & { showCloseButton?: boolean @@ -85,6 +98,19 @@ function DialogContent({ const widthClass = fitContent ? 'w-auto max-w-[92vw]' : 'w-full max-w-lg' + // Compose the popper guard with any caller-supplied onInteractOutside: run the + // guard first (it may preventDefault to keep the dialog open), then defer to + // the caller for anything it didn't already handle. + const handleInteractOutside = (event: Parameters>[0]) => { + if (isInteractionFromPopper(event.detail.originalEvent)) { + event.preventDefault() + + return + } + + onInteractOutside?.(event) + } + // No default here — Radix's normal autofocus (first focusable element, often // an input) is what most dialogs want. Dialogs with no input should pass // `onOpenAutoFocus={preventCloseButtonAutoFocus}` explicitly instead. @@ -128,6 +154,7 @@ function DialogContent({ 'gap-0' )} data-slot="dialog-content" + onInteractOutside={handleInteractOutside} onOpenAutoFocus={onOpenAutoFocus} {...props} > @@ -166,6 +193,7 @@ function DialogContent({ className )} data-slot="dialog-content" + onInteractOutside={handleInteractOutside} onOpenAutoFocus={onOpenAutoFocus} {...props} > diff --git a/apps/desktop/src/hermes.ts b/apps/desktop/src/hermes.ts index e30b20fda5152..3b1d2ef44438a 100644 --- a/apps/desktop/src/hermes.ts +++ b/apps/desktop/src/hermes.ts @@ -11,6 +11,7 @@ import type { BackendUpdateCheckResponse, ComputerUseStatus, ConfigSchemaResponse, + CronDeliveryTarget, CronJob, CronJobCreatePayload, CronJobUpdates, @@ -136,6 +137,7 @@ export type { ComputerUseStatus, ConfigFieldSchema, ConfigSchemaResponse, + CronDeliveryTarget, CronJob, CronJobCreatePayload, CronJobSchedule, @@ -1143,6 +1145,18 @@ export async function getCronJobRuns(jobId: string, limit = 20): Promise { + const { targets } = await window.hermesDesktop.api<{ targets: CronDeliveryTarget[] }>({ + ...profileScoped(), + path: '/api/cron/delivery-targets' + }) + + return targets ?? [] +} + export function createCronJob(body: CronJobCreatePayload): Promise { return window.hermesDesktop.api({ ...profileScoped(), diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts index 3c1e5ffedb225..4fff3344c0f4b 100644 --- a/apps/desktop/src/i18n/en.ts +++ b/apps/desktop/src/i18n/en.ts @@ -1581,6 +1581,7 @@ export const en: Translations = { promptPlaceholder: 'Summarize my unread Slack threads and email me the top 5...', frequencyLabel: 'Frequency', deliverLabel: 'Deliver to', + deliverNeedsHomeChannel: 'set a home channel first', modelLabel: 'Model', modelDefault: 'Default (global model)', customScheduleLabel: 'Custom schedule', diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts index 4084b1857c097..831a67b43e49a 100644 --- a/apps/desktop/src/i18n/ja.ts +++ b/apps/desktop/src/i18n/ja.ts @@ -1520,6 +1520,7 @@ export const ja = defineLocale({ promptPlaceholder: '実行ごとにエージェントが行う内容は?', frequencyLabel: '頻度', deliverLabel: '配信先', + deliverNeedsHomeChannel: '先にホームチャンネルを設定してください', modelLabel: 'モデル', modelDefault: 'デフォルト(グローバルモデル)', customScheduleLabel: 'カスタムスケジュール', diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts index 4f3ac8c0b7167..6526610b3e7fe 100644 --- a/apps/desktop/src/i18n/types.ts +++ b/apps/desktop/src/i18n/types.ts @@ -1306,6 +1306,7 @@ export interface Translations { promptPlaceholder: string frequencyLabel: string deliverLabel: string + deliverNeedsHomeChannel: string modelLabel: string modelDefault: string customScheduleLabel: string diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts index 3e3c0fb1ac8dd..23c07437236b0 100644 --- a/apps/desktop/src/i18n/zh-hant.ts +++ b/apps/desktop/src/i18n/zh-hant.ts @@ -1469,6 +1469,7 @@ export const zhHant = defineLocale({ promptPlaceholder: '代理每次執行時應做什麼?', frequencyLabel: '頻率', deliverLabel: '傳遞至', + deliverNeedsHomeChannel: '請先設定主頻道', modelLabel: '模型', modelDefault: '預設(全域模型)', customScheduleLabel: '自訂排程', diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts index 5b734d7b7980e..c907373dd0bcd 100644 --- a/apps/desktop/src/i18n/zh.ts +++ b/apps/desktop/src/i18n/zh.ts @@ -1772,6 +1772,7 @@ export const zh: Translations = { promptPlaceholder: '总结我未读的 Slack 话题,并把前 5 条邮件发给我…', frequencyLabel: '频率', deliverLabel: '投递至', + deliverNeedsHomeChannel: '请先设置主频道', modelLabel: '模型', modelDefault: '默认(全局模型)', customScheduleLabel: '自定义排程', diff --git a/apps/desktop/src/types/hermes.ts b/apps/desktop/src/types/hermes.ts index 4c0269d4157c5..30a0c396c06e4 100644 --- a/apps/desktop/src/types/hermes.ts +++ b/apps/desktop/src/types/hermes.ts @@ -664,6 +664,18 @@ export interface CronJobUpdates { schedule?: string } +// A cron delivery target from GET /api/cron/delivery-targets — the single +// source of truth (cron.scheduler.cron_delivery_targets) for where a cron job +// can auto-deliver. Only 'local' plus configured gateway platforms appear; a +// configured platform without a cron home channel comes back with +// home_target_set=false so the UI can flag it. +export interface CronDeliveryTarget { + home_env_var: null | string + home_target_set: boolean + id: string + name: string +} + // Automation Blueprints — parameterized cron templates with typed slots. The // backend (cron/blueprint_catalog.py) is the single source of truth; the // desktop renders each slot as a form field, then instantiates a real cron job From 60e2dbb538049fbb9b1b2e10656f1f91b13be589 Mon Sep 17 00:00:00 2001 From: Austin Pickett Date: Fri, 24 Jul 2026 10:17:00 -0400 Subject: [PATCH 09/11] fix(desktop): clicking away from an open dropdown no longer closes the dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The onInteractOutside guard only caught pointerdowns whose target was inside the popper wrapper. But dismissing an open Select by clicking elsewhere inside the dialog also closes the popover, which moves focus — and Radix Dialog reads that as focusOutside and closes the whole dialog. (Radix Select 2.3.1 has no modal prop, so that escape hatch isn't available.) Guard both paths at the shared DialogContent level: onInteractOutside AND onFocusOutside now swallow the event when it originates from a Radix popper OR when any [data-radix-popper-content-wrapper] is open at event time (covers the focus/re-dispatch case where the target is no longer the popper). A genuine backdrop click with no dropdown open still closes the dialog. Export isInteractionFromPopper + unit-test the three cases. typecheck + eslint + vitest green (7 dialog tests). --- .../desktop/src/components/ui/dialog.test.tsx | 43 +++++++++++++++- apps/desktop/src/components/ui/dialog.tsx | 50 +++++++++++++++---- 2 files changed, 81 insertions(+), 12 deletions(-) diff --git a/apps/desktop/src/components/ui/dialog.test.tsx b/apps/desktop/src/components/ui/dialog.test.tsx index 4b6d99a9bf018..f6d544b60087c 100644 --- a/apps/desktop/src/components/ui/dialog.test.tsx +++ b/apps/desktop/src/components/ui/dialog.test.tsx @@ -1,10 +1,51 @@ import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react' import { afterEach, describe, expect, it, vi } from 'vitest' -import { Dialog, DialogContent, DialogTitle, preventCloseButtonAutoFocus } from './dialog' +import { Dialog, DialogContent, DialogTitle, isInteractionFromPopper, preventCloseButtonAutoFocus } from './dialog' afterEach(cleanup) +describe('isInteractionFromPopper (dropdown-in-dialog guard)', () => { + afterEach(() => { + document.body.innerHTML = '' + }) + + it('is true when the interaction target is inside a Radix popper wrapper', () => { + const wrapper = document.createElement('div') + wrapper.setAttribute('data-radix-popper-content-wrapper', '') + const item = document.createElement('div') + wrapper.appendChild(item) + document.body.appendChild(wrapper) + + const event = new Event('pointerdown') + Object.defineProperty(event, 'target', { value: item }) + + expect(isInteractionFromPopper(event)).toBe(true) + }) + + it('is true when a popper is open anywhere, even if the target is elsewhere (focus/re-dispatch case)', () => { + const wrapper = document.createElement('div') + wrapper.setAttribute('data-radix-popper-content-wrapper', '') + document.body.appendChild(wrapper) + + const elsewhere = document.createElement('div') + document.body.appendChild(elsewhere) + const event = new Event('focusin') + Object.defineProperty(event, 'target', { value: elsewhere }) + + expect(isInteractionFromPopper(event)).toBe(true) + }) + + it('is false for a genuine outside interaction with no popper open', () => { + const elsewhere = document.createElement('div') + document.body.appendChild(elsewhere) + const event = new Event('pointerdown') + Object.defineProperty(event, 'target', { value: elsewhere }) + + expect(isInteractionFromPopper(event)).toBe(false) + }) +}) + describe('DialogContent close button', () => { it('closes the dialog when clicked', () => { const onOpenChange = vi.fn() diff --git a/apps/desktop/src/components/ui/dialog.tsx b/apps/desktop/src/components/ui/dialog.tsx index c64e70431794b..81febd3c41fe8 100644 --- a/apps/desktop/src/components/ui/dialog.tsx +++ b/apps/desktop/src/components/ui/dialog.tsx @@ -60,16 +60,26 @@ export function preventCloseButtonAutoFocus(event: Event) { event.preventDefault() } -// Radix portals Select / Dropdown / Popover content OUTSIDE the dialog (into a -// `[data-radix-popper-content-wrapper]`). Dismissing that popover fires a -// pointerdown the Dialog's DismissableLayer reads as an outside-interaction and -// closes the whole dialog. Guard: if an outside-interaction originates from a -// popper wrapper, it's a dropdown dismiss inside our own dialog — swallow it so -// only the dropdown closes. A genuine click elsewhere still closes the dialog. -function isInteractionFromPopper(event: Event): boolean { +// Radix Select/Popover/Dropdown content is portalled OUTSIDE the dialog. Two +// ways their dismissal wrongly closes the parent dialog: +// 1. The dismiss pointerdown lands on the portalled popper content, and Radix +// re-dispatches it so the Dialog's DismissableLayer sees an outside-click. +// 2. Closing the popover moves focus, which the Dialog reads as focusOutside. +// Radix mounts a `[data-radix-popper-content-wrapper]` only while such a popover +// is open. So: if the interaction target is inside that wrapper, OR one is open +// anywhere in the document at event time, this outside-interaction is the +// popover's dismissal — swallow it. A genuine backdrop click with no popover +// open still closes the dialog normally. +const POPPER_WRAPPER = '[data-radix-popper-content-wrapper]' + +export function isInteractionFromPopper(event: Event): boolean { const target = event.target - return target instanceof Element && target.closest('[data-radix-popper-content-wrapper]') !== null + if (target instanceof Element && target.closest(POPPER_WRAPPER)) { + return true + } + + return document.querySelector(POPPER_WRAPPER) !== null } function DialogContent({ @@ -81,6 +91,7 @@ function DialogContent({ bannerTone = 'error', onOpenAutoFocus, onInteractOutside, + onFocusOutside, ...props }: React.ComponentProps & { showCloseButton?: boolean @@ -98,9 +109,9 @@ function DialogContent({ const widthClass = fitContent ? 'w-auto max-w-[92vw]' : 'w-full max-w-lg' - // Compose the popper guard with any caller-supplied onInteractOutside: run the - // guard first (it may preventDefault to keep the dialog open), then defer to - // the caller for anything it didn't already handle. + // Compose the popper guard with any caller-supplied onInteractOutside: when the + // outside-interaction belongs to a portalled dropdown/popover, swallow it so + // only the dropdown closes; otherwise defer to the caller. const handleInteractOutside = (event: Parameters>[0]) => { if (isInteractionFromPopper(event.detail.originalEvent)) { event.preventDefault() @@ -111,6 +122,21 @@ function DialogContent({ onInteractOutside?.(event) } + // Closing a portalled Select/Popover moves focus, which the Dialog otherwise + // reads as focusOutside and closes on — the root cause of "clicking away from + // an open dropdown closes the whole dialog." Swallow focus-outside that comes + // from (or happens while) a popper is open; pointerdown-outside + Escape + // remain the real dismiss paths. + const handleFocusOutside = (event: Parameters>[0]) => { + if (isInteractionFromPopper(event.detail.originalEvent)) { + event.preventDefault() + + return + } + + onFocusOutside?.(event) + } + // No default here — Radix's normal autofocus (first focusable element, often // an input) is what most dialogs want. Dialogs with no input should pass // `onOpenAutoFocus={preventCloseButtonAutoFocus}` explicitly instead. @@ -154,6 +180,7 @@ function DialogContent({ 'gap-0' )} data-slot="dialog-content" + onFocusOutside={handleFocusOutside} onInteractOutside={handleInteractOutside} onOpenAutoFocus={onOpenAutoFocus} {...props} @@ -193,6 +220,7 @@ function DialogContent({ className )} data-slot="dialog-content" + onFocusOutside={handleFocusOutside} onInteractOutside={handleInteractOutside} onOpenAutoFocus={onOpenAutoFocus} {...props} From b51284333ed32c584d71ab87b5c0b9f6c85686a0 Mon Sep 17 00:00:00 2001 From: Austin Pickett Date: Fri, 24 Jul 2026 10:27:45 -0400 Subject: [PATCH 10/11] fix(desktop): portal popovers into their dialog so dropdowns don't close it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause (affected every dialog, not just cron): Radix Select/Popover/ DropdownMenu portal to document.body — a SIBLING of the dialog, outside its DOM subtree. Dismissing a dropdown (or clicking another field) moves focus out of the dialog subtree, which the Dialog's modal FocusScope/DismissableLayer reads as an outside interaction and closes the whole dialog. Separate body-level portals also make z-index across the two fragile. The earlier onInteractOutside/onFocusOutside guards treated symptoms and didn't hold (and Radix Select 2.3.1 has no modal prop to disable its layer). Real fix is a layering system: DialogContent publishes its content node via DialogPortalContainerContext; SelectContent/PopoverContent/DropdownMenuContent call usePopoverPortalContainer() and portal INTO that node when inside a dialog (document.body otherwise). The popover is then a true DOM descendant of the dialog — focus stays in, dismissal no longer closes the dialog, and both share one stacking context so z-index is deterministic. Test: with a Dialog open, an open Select's item is a descendant of the dialog (portalled in), verified in jsdom. typecheck + eslint + component tests green. --- .../components/ui/dialog-portal-context.ts | 29 +++++ .../desktop/src/components/ui/dialog.test.tsx | 64 +++++------ apps/desktop/src/components/ui/dialog.tsx | 108 ++++++------------ .../src/components/ui/dropdown-menu.tsx | 7 +- apps/desktop/src/components/ui/popover.tsx | 7 +- apps/desktop/src/components/ui/select.tsx | 8 +- 6 files changed, 109 insertions(+), 114 deletions(-) create mode 100644 apps/desktop/src/components/ui/dialog-portal-context.ts diff --git a/apps/desktop/src/components/ui/dialog-portal-context.ts b/apps/desktop/src/components/ui/dialog-portal-context.ts new file mode 100644 index 0000000000000..88dde1f6b958e --- /dev/null +++ b/apps/desktop/src/components/ui/dialog-portal-context.ts @@ -0,0 +1,29 @@ +import * as React from 'react' + +// Layering system for portalled popovers (Select / Popover / DropdownMenu) that +// open INSIDE a Dialog. +// +// By default every Radix popover portals to `document.body`, i.e. as a sibling +// of the Dialog — OUTSIDE the dialog's DOM subtree. That breaks two things: +// 1. Dismissing the popover (clicking elsewhere in the dialog) moves focus and +// fires pointer/focus events the Dialog's DismissableLayer reads as +// "outside", so the whole dialog closes. +// 2. z-index across separate body-level portals is fragile — the popover and +// dialog live in different stacking siblings. +// +// The fix: a Dialog publishes its own content node here; any popover rendered +// inside that Dialog portals into that node instead of `document.body`. Now the +// popover is a real DOM descendant of the dialog — focus never leaves, the +// DismissableLayer sees it as inside, and it shares the dialog's stacking +// context so z-index is deterministic. Outside a dialog the value is null and +// popovers fall back to the default body portal. +export const DialogPortalContainerContext = React.createContext(null) + +// The container a popover should portal into: an explicit `container` prop wins, +// then the enclosing dialog's content node, then undefined (Radix default: +// document.body). +export function usePopoverPortalContainer(explicit?: HTMLElement | null): HTMLElement | undefined { + const fromDialog = React.useContext(DialogPortalContainerContext) + + return explicit ?? fromDialog ?? undefined +} diff --git a/apps/desktop/src/components/ui/dialog.test.tsx b/apps/desktop/src/components/ui/dialog.test.tsx index f6d544b60087c..afebf60760dcc 100644 --- a/apps/desktop/src/components/ui/dialog.test.tsx +++ b/apps/desktop/src/components/ui/dialog.test.tsx @@ -1,48 +1,38 @@ import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react' import { afterEach, describe, expect, it, vi } from 'vitest' -import { Dialog, DialogContent, DialogTitle, isInteractionFromPopper, preventCloseButtonAutoFocus } from './dialog' +import { Dialog, DialogContent, DialogTitle, preventCloseButtonAutoFocus } from './dialog' +import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './select' afterEach(cleanup) -describe('isInteractionFromPopper (dropdown-in-dialog guard)', () => { - afterEach(() => { - document.body.innerHTML = '' - }) - - it('is true when the interaction target is inside a Radix popper wrapper', () => { - const wrapper = document.createElement('div') - wrapper.setAttribute('data-radix-popper-content-wrapper', '') - const item = document.createElement('div') - wrapper.appendChild(item) - document.body.appendChild(wrapper) - - const event = new Event('pointerdown') - Object.defineProperty(event, 'target', { value: item }) - - expect(isInteractionFromPopper(event)).toBe(true) - }) - - it('is true when a popper is open anywhere, even if the target is elsewhere (focus/re-dispatch case)', () => { - const wrapper = document.createElement('div') - wrapper.setAttribute('data-radix-popper-content-wrapper', '') - document.body.appendChild(wrapper) - - const elsewhere = document.createElement('div') - document.body.appendChild(elsewhere) - const event = new Event('focusin') - Object.defineProperty(event, 'target', { value: elsewhere }) - - expect(isInteractionFromPopper(event)).toBe(true) - }) +describe('Select portalled inside a Dialog', () => { + it('renders the open dropdown inside the dialog DOM subtree, not document.body', () => { + // Force the Select open (defaultOpen) to sidestep jsdom's missing + // hasPointerCapture on the trigger. The dropdown content must land inside the + // dialog content node — that DOM nesting is what keeps focus in the dialog so + // dismissing the dropdown no longer closes the dialog. + render( + + + Test dialog + + + + ) - it('is false for a genuine outside interaction with no popper open', () => { - const elsewhere = document.createElement('div') - document.body.appendChild(elsewhere) - const event = new Event('pointerdown') - Object.defineProperty(event, 'target', { value: elsewhere }) + const dialog = screen.getByRole('dialog') + const option = screen.getByText('Option A') - expect(isInteractionFromPopper(event)).toBe(false) + // The dropdown item is a descendant of the dialog, i.e. portalled into it. + expect(dialog.contains(option)).toBe(true) }) }) diff --git a/apps/desktop/src/components/ui/dialog.tsx b/apps/desktop/src/components/ui/dialog.tsx index 81febd3c41fe8..d84bb30c34534 100644 --- a/apps/desktop/src/components/ui/dialog.tsx +++ b/apps/desktop/src/components/ui/dialog.tsx @@ -2,6 +2,7 @@ import { Dialog as DialogPrimitive } from 'radix-ui' import * as React from 'react' import { Button } from '@/components/ui/button' +import { DialogPortalContainerContext } from '@/components/ui/dialog-portal-context' import { Tip } from '@/components/ui/tooltip' import { useI18n } from '@/i18n' import { X } from '@/lib/icons' @@ -60,28 +61,6 @@ export function preventCloseButtonAutoFocus(event: Event) { event.preventDefault() } -// Radix Select/Popover/Dropdown content is portalled OUTSIDE the dialog. Two -// ways their dismissal wrongly closes the parent dialog: -// 1. The dismiss pointerdown lands on the portalled popper content, and Radix -// re-dispatches it so the Dialog's DismissableLayer sees an outside-click. -// 2. Closing the popover moves focus, which the Dialog reads as focusOutside. -// Radix mounts a `[data-radix-popper-content-wrapper]` only while such a popover -// is open. So: if the interaction target is inside that wrapper, OR one is open -// anywhere in the document at event time, this outside-interaction is the -// popover's dismissal — swallow it. A genuine backdrop click with no popover -// open still closes the dialog normally. -const POPPER_WRAPPER = '[data-radix-popper-content-wrapper]' - -export function isInteractionFromPopper(event: Event): boolean { - const target = event.target - - if (target instanceof Element && target.closest(POPPER_WRAPPER)) { - return true - } - - return document.querySelector(POPPER_WRAPPER) !== null -} - function DialogContent({ className, children, @@ -90,8 +69,6 @@ function DialogContent({ banner, bannerTone = 'error', onOpenAutoFocus, - onInteractOutside, - onFocusOutside, ...props }: React.ComponentProps & { showCloseButton?: boolean @@ -109,33 +86,14 @@ function DialogContent({ const widthClass = fitContent ? 'w-auto max-w-[92vw]' : 'w-full max-w-lg' - // Compose the popper guard with any caller-supplied onInteractOutside: when the - // outside-interaction belongs to a portalled dropdown/popover, swallow it so - // only the dropdown closes; otherwise defer to the caller. - const handleInteractOutside = (event: Parameters>[0]) => { - if (isInteractionFromPopper(event.detail.originalEvent)) { - event.preventDefault() - - return - } - - onInteractOutside?.(event) - } - - // Closing a portalled Select/Popover moves focus, which the Dialog otherwise - // reads as focusOutside and closes on — the root cause of "clicking away from - // an open dropdown closes the whole dialog." Swallow focus-outside that comes - // from (or happens while) a popper is open; pointerdown-outside + Escape - // remain the real dismiss paths. - const handleFocusOutside = (event: Parameters>[0]) => { - if (isInteractionFromPopper(event.detail.originalEvent)) { - event.preventDefault() - - return - } - - onFocusOutside?.(event) - } + // Publish the dialog's content node so popovers (Select / Popover / + // DropdownMenu) opened inside it portal INTO the dialog instead of + // document.body. That keeps them as DOM descendants — focus never leaves the + // dialog, so dismissing a dropdown (or clicking another field) no longer + // trips the Dialog's outside-interaction/focus-out close. See + // dialog-portal-context.ts. State (not just a ref) so consumers re-render once + // the node mounts. + const [contentNode, setContentNode] = React.useState(null) // No default here — Radix's normal autofocus (first focusable element, often // an input) is what most dialogs want. Dialogs with no input should pass @@ -180,28 +138,29 @@ function DialogContent({ 'gap-0' )} data-slot="dialog-content" - onFocusOutside={handleFocusOutside} - onInteractOutside={handleInteractOutside} onOpenAutoFocus={onOpenAutoFocus} + ref={setContentNode} {...props} > - {/* Scroll lives on an inner box so this shell keeps a painted bottom radius. */} -
-
{children}
-
-
- {banner} -
- {closeButton} + + {/* Scroll lives on an inner box so this shell keeps a painted bottom radius. */} +
+
{children}
+
+
+ {banner} +
+ {closeButton} +
) @@ -220,13 +179,14 @@ function DialogContent({ className )} data-slot="dialog-content" - onFocusOutside={handleFocusOutside} - onInteractOutside={handleInteractOutside} onOpenAutoFocus={onOpenAutoFocus} + ref={setContentNode} {...props} > - {children} - {closeButton} + + {children} + {closeButton} + ) diff --git a/apps/desktop/src/components/ui/dropdown-menu.tsx b/apps/desktop/src/components/ui/dropdown-menu.tsx index 7c4c7072c1292..57db60fba68d7 100644 --- a/apps/desktop/src/components/ui/dropdown-menu.tsx +++ b/apps/desktop/src/components/ui/dropdown-menu.tsx @@ -2,6 +2,7 @@ import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui' import * as React from 'react' import { Codicon } from '@/components/ui/codicon' +import { usePopoverPortalContainer } from '@/components/ui/dialog-portal-context' import { cn } from '@/lib/utils' // Shared class tokens for edge-to-edge menus (use with `p-0` content): rows go @@ -73,8 +74,12 @@ function DropdownMenuContent({ sideOffset = 4, ...props }: React.ComponentProps) { + // Portal into the enclosing dialog when nested in one, so dismissing the menu + // doesn't close the dialog; document.body otherwise. + const container = usePopoverPortalContainer() + return ( - + ) { @@ -27,8 +28,12 @@ function PopoverContent({ sideOffset = 6, ...props }: React.ComponentProps) { + // Portal into the enclosing dialog when nested in one (keeps focus inside so + // the dialog doesn't close on dismiss); document.body otherwise. + const container = usePopoverPortalContainer() + return ( - + ) { @@ -43,8 +44,13 @@ function SelectContent({ position = 'popper', ...props }: React.ComponentProps) { + // Portal into the enclosing dialog (if any) so the dropdown is a DOM + // descendant of the dialog — keeps focus inside and stops the dialog closing + // when the dropdown is dismissed. Falls back to document.body outside a dialog. + const container = usePopoverPortalContainer() + return ( - + Date: Fri, 24 Jul 2026 13:32:36 -0400 Subject: [PATCH 11/11] fix(desktop): bump radix-ui so dismissing a dropdown can't close its dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream bug, not app-layer: with radix-ui 1.6.0 (dismissable-layer 1.1.13), an open modal Select sets pointer-events: none on the dialog body, so a click anywhere inside the dialog hit-tests through to the overlay. The Dialog's DismissableLayer defers its outside-pointerdown decision to the click, but the overlay is a registered dismissable surface exempt from the interception check — so the Select swallowing the press didn't count, the deferred onDismiss fired, and the dialog closed along with the dropdown. dismissable-layer 1.1.17 adds shouldHandlePointerDownOutside, which makes the dialog's layer ignore the press entirely while a higher layer has its pointer events disabled. Bump radix-ui ^1.4.3 -> ^1.6.5 (dismissable-layer 1.1.17, dialog 1.1.21, select 2.3.5); lockfile diff is Radix-only. Repro test fires the pointerdown/up/click sequence on the overlay with a Select open inside the dialog: red on 1.6.0 (dialog closed), green on 1.6.5. Counterpart test keeps a genuine overlay click closing the dialog. typecheck + dialog/select component tests green. Full-suite failures on this Windows host reproduce identically without the bump (pre-existing env issues). --- apps/desktop/package.json | 2 +- .../ui/dialog-dismiss-repro.test.tsx | 87 ++ package-lock.json | 1163 ++++++++--------- 3 files changed, 659 insertions(+), 593 deletions(-) create mode 100644 apps/desktop/src/components/ui/dialog-dismiss-repro.test.tsx diff --git a/apps/desktop/package.json b/apps/desktop/package.json index cb8cdcf76429b..d507346c4fe8c 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -107,7 +107,7 @@ "motion": "^12.38.0", "nanostores": "^1.3.0", "node-pty": "1.1.0", - "radix-ui": "^1.4.3", + "radix-ui": "^1.6.5", "react": "^19.2.5", "react-arborist": "^3.5.0", "react-dnd-html5-backend": "^14.0.3", diff --git a/apps/desktop/src/components/ui/dialog-dismiss-repro.test.tsx b/apps/desktop/src/components/ui/dialog-dismiss-repro.test.tsx new file mode 100644 index 0000000000000..f8daa94ef0043 --- /dev/null +++ b/apps/desktop/src/components/ui/dialog-dismiss-repro.test.tsx @@ -0,0 +1,87 @@ +import { cleanup, fireEvent, render, screen } from '@testing-library/react' +import { afterEach, describe, expect, it, vi } from 'vitest' + +import { Dialog, DialogContent, DialogTitle } from './dialog' +import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './select' + +afterEach(cleanup) + +// jsdom lacks these; Radix Select calls them on open. +window.HTMLElement.prototype.scrollIntoView = vi.fn() +window.HTMLElement.prototype.hasPointerCapture = vi.fn() +window.HTMLElement.prototype.releasePointerCapture = vi.fn() + +const flushTimers = () => new Promise(resolve => setTimeout(resolve, 10)) + +describe('REPRO: dismissing an open Select inside a Dialog', () => { + it('closes only the select, not the dialog, when the press lands on the overlay', async () => { + // While a modal Select is open, the dialog content div is pointer-events: + // none, so a real click anywhere in the dialog body hit-tests through to + // the overlay. Simulate that by firing the pointer sequence on the overlay. + const onOpenChange = vi.fn() + render( + + + Test dialog + + + + ) + + // DismissableLayer registers its document pointerdown listener in a + // setTimeout(0) — flush it first. + await flushTimers() + + const overlay = document.querySelector('[data-slot="dialog-overlay"]') as HTMLElement + expect(overlay).toBeTruthy() + expect(screen.getByText('Option A')).toBeTruthy() + + fireEvent.pointerDown(overlay, { button: 0 }) + fireEvent.pointerUp(overlay, { button: 0 }) + fireEvent.click(overlay, { button: 0 }) + + // The deferred dismissal path resolves through another setTimeout(0). + await flushTimers() + + // The select closed... + expect(screen.queryByText('Option A')).toBeNull() + // ...but the dialog must NOT have been asked to close. + expect(onOpenChange).not.toHaveBeenCalledWith(false) + }) + + it('still closes the dialog on a genuine overlay click when no dropdown is open', async () => { + const onOpenChange = vi.fn() + render( + + + Test dialog + + + + ) + + await flushTimers() + + const overlay = document.querySelector('[data-slot="dialog-overlay"]') as HTMLElement + fireEvent.pointerDown(overlay, { button: 0 }) + fireEvent.pointerUp(overlay, { button: 0 }) + fireEvent.click(overlay, { button: 0 }) + await flushTimers() + + expect(onOpenChange).toHaveBeenCalledWith(false) + }) +}) diff --git a/package-lock.json b/package-lock.json index 62cf14905b691..0ee09bbcb2943 100644 --- a/package-lock.json +++ b/package-lock.json @@ -130,7 +130,7 @@ "motion": "^12.38.0", "nanostores": "^1.3.0", "node-pty": "1.1.0", - "radix-ui": "^1.4.3", + "radix-ui": "^1.6.5", "react": "^19.2.5", "react-arborist": "^3.5.0", "react-dnd-html5-backend": "^14.0.3", @@ -1939,7 +1939,6 @@ "os": [ "aix" ], - "peer": true, "engines": { "node": ">=18" } @@ -1956,7 +1955,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": ">=18" } @@ -1973,7 +1971,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": ">=18" } @@ -1990,7 +1987,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": ">=18" } @@ -2007,7 +2003,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": ">=18" } @@ -2024,7 +2019,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": ">=18" } @@ -2041,7 +2035,6 @@ "os": [ "freebsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -2058,7 +2051,6 @@ "os": [ "freebsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -2075,7 +2067,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -2092,7 +2083,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -2109,7 +2099,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -2126,7 +2115,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -2143,7 +2131,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -2160,7 +2147,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -2177,7 +2163,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -2194,7 +2179,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -2211,7 +2195,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -2228,7 +2211,6 @@ "os": [ "netbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -2245,7 +2227,6 @@ "os": [ "netbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -2262,7 +2243,6 @@ "os": [ "openbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -2279,7 +2259,6 @@ "os": [ "openbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -2296,7 +2275,6 @@ "os": [ "openharmony" ], - "peer": true, "engines": { "node": ">=18" } @@ -2313,7 +2291,6 @@ "os": [ "sunos" ], - "peer": true, "engines": { "node": ">=18" } @@ -2330,7 +2307,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">=18" } @@ -2347,7 +2323,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">=18" } @@ -2364,7 +2339,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">=18" } @@ -3340,24 +3314,24 @@ } }, "node_modules/@radix-ui/number": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.2.tgz", - "integrity": "sha512-ceTwaxc4I5IOi97DgCotl3pqiyRGvffcc0oOsE2dQYaJOFIDsDt4VWG6xEbg1QePv9QWausCEIppud/tJ1wNig==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.3.tgz", + "integrity": "sha512-Road2bidD0uu/1BGDOWNdPI06g0lIRy6IF9GZcIrDK2KGItfor8IQwQa+yM2ERgHM1MmHxaxpTzk0/Jp42lNfA==", "license": "MIT" }, "node_modules/@radix-ui/primitive": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.4.tgz", - "integrity": "sha512-7AdCK9PQyiljKoBDbN8OuctCbd/esdwZPQ8RtOE3SsyQtUpiPb+ND75q0jEhC1m1ecBI0MFNeLJvwIh9iKHRcQ==", + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.7.tgz", + "integrity": "sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==", "license": "MIT" }, "node_modules/@radix-ui/react-accessible-icon": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-accessible-icon/-/react-accessible-icon-1.1.10.tgz", - "integrity": "sha512-TraSwZUqTcVbiDV2/RXzAXC7aeVVXchq0daPFZE7zAxYFaMzjOUggLOfQH9KFLgRizuwVKZO/crveV1eeO3/ZQ==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/@radix-ui/react-accessible-icon/-/react-accessible-icon-1.1.13.tgz", + "integrity": "sha512-2/0RrtTngKZVkOFYDlvhe6JIsUravRnYGwH1iJ+qt+wPu8/fPu3HTLRkQptyIkpLovAy8qvHHJs9cvYJ3Uyqqg==", "license": "MIT", "dependencies": { - "@radix-ui/react-visually-hidden": "1.2.6" + "@radix-ui/react-visually-hidden": "1.2.9" }, "peerDependencies": { "@types/react": "*", @@ -3375,20 +3349,20 @@ } }, "node_modules/@radix-ui/react-accordion": { - "version": "1.2.14", - "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.14.tgz", - "integrity": "sha512-iE8YB9nmTBH8zd73ofBISZ8JCzgMoMkATJr7qDwa6u5F1+7mTM81V6fa71jgZ65rpjVpecDf1vSnwIFP9Ly1zw==", + "version": "1.2.18", + "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.18.tgz", + "integrity": "sha512-CGuUFvhjScXBF/bhjaU9xlgai2ikYqJRazXhMzngoUaZI7QaxAw24Ae3S/pR0b69p8GqW6i+CKJmx9JPNnZ4QQ==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-collapsible": "1.1.14", - "@radix-ui/react-collection": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-controllable-state": "1.2.3" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collapsible": "1.1.18", + "@radix-ui/react-collection": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-controllable-state": "1.2.5" }, "peerDependencies": { "@types/react": "*", @@ -3406,16 +3380,16 @@ } }, "node_modules/@radix-ui/react-alert-dialog": { - "version": "1.1.17", - "resolved": "https://registry.npmjs.org/@radix-ui/react-alert-dialog/-/react-alert-dialog-1.1.17.tgz", - "integrity": "sha512-563ygGeyWPrxyVCNp7OV4rE2aIXhFPknpFyo4wbDlcyMMPZ6ySh+zC5WTvY0ZFLgPTg/QB6tA8PyDQyJ2b4cPg==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/@radix-ui/react-alert-dialog/-/react-alert-dialog-1.1.21.tgz", + "integrity": "sha512-VbSR148lNkE8JdWnOsYX72YdivmCAtcrot1dl8UmT0ZZRKNR3hHJUpQxJOw7jWlY/JFemn4oaDXxCxpD594B7Q==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-dialog": "1.1.17", - "@radix-ui/react-primitive": "2.1.6" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-dialog": "1.1.21", + "@radix-ui/react-primitive": "2.1.8" }, "peerDependencies": { "@types/react": "*", @@ -3433,12 +3407,12 @@ } }, "node_modules/@radix-ui/react-arrow": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.10.tgz", - "integrity": "sha512-j2VTDz1vgCsmuG0k5lBfOcM8n5JPFqZBcMryasFjHYMhwxYL5SRUV5lMSUpRdNtw3D/Sv8pzJtrlAgkssYSsQQ==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.13.tgz", + "integrity": "sha512-0Q310knIY0K+mkmncU9FxLggfW7V49Ok2oY+iu27KkERTsQXxYCIC8XW5QoK4w7Jp1z00vT5xj3oxTcn7QlcTg==", "license": "MIT", "dependencies": { - "@radix-ui/react-primitive": "2.1.6" + "@radix-ui/react-primitive": "2.1.8" }, "peerDependencies": { "@types/react": "*", @@ -3456,12 +3430,12 @@ } }, "node_modules/@radix-ui/react-aspect-ratio": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-aspect-ratio/-/react-aspect-ratio-1.1.10.tgz", - "integrity": "sha512-kbI7NrqhDeuytYrq7JjAsoXczvL8wgj2tc1MyaYWm+50bMKHCHQtVWCryslx4cCpmCTTkBcwQckE4CmmGV2haQ==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/@radix-ui/react-aspect-ratio/-/react-aspect-ratio-1.1.13.tgz", + "integrity": "sha512-dD/EvbOiLskcdBKgNAeUmbTBCJfdCGp85fpFe3lmziE4ASbXuFERQCAB3sR41yvM+P711kJsTBNL9piP60urbA==", "license": "MIT", "dependencies": { - "@radix-ui/react-primitive": "2.1.6" + "@radix-ui/react-primitive": "2.1.8" }, "peerDependencies": { "@types/react": "*", @@ -3479,16 +3453,17 @@ } }, "node_modules/@radix-ui/react-avatar": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.2.0.tgz", - "integrity": "sha512-am/CwltXtmtdtP+5FbYblYDnMa/zuKcMJP1i3/SJMDXXfj2mG+BTqLH2wucqeyyiQMursUtg/5cK+Nh2pCaSOA==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.2.4.tgz", + "integrity": "sha512-u4Sz6ajq2WobGMqbsNXnFI/3JP/o7TUBkEmQ4BRUYofPDQawdO3WWYy5907c9VgOFX+ETjKI3VxnnrKYAF7Pmg==", "license": "MIT", "dependencies": { - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-callback-ref": "1.1.2", - "@radix-ui/react-use-is-hydrated": "0.1.1", - "@radix-ui/react-use-layout-effect": "1.1.2" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-callback-ref": "1.1.3", + "@radix-ui/react-use-is-hydrated": "0.1.2", + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -3506,19 +3481,18 @@ } }, "node_modules/@radix-ui/react-checkbox": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.5.tgz", - "integrity": "sha512-pREzrmNnVwGvYaBoM64huTRK7B3lrTRuwj8A9nwhPiEtMb+yudiWh6zWAqEtP0Dzd5+iBa1Ki7V1pCxV8ExMdA==", + "version": "1.3.9", + "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.9.tgz", + "integrity": "sha512-YPXZlqjrKVqKtVD2F828CApHwu+PEu30i7x0Y9gg6SbQ3fJbcaQlDkGPT0gW6HjxoCjAEt8uJ494F1S61KpIjQ==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-previous": "1.1.2", - "@radix-ui/react-use-size": "1.1.2" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-size": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -3536,19 +3510,19 @@ } }, "node_modules/@radix-ui/react-collapsible": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.14.tgz", - "integrity": "sha512-9bT+FvifX1FK2Mj6UEsTdyu0cN3JaA3KdfhaBao+ONrYFy/pyOy3TU1TNw7iOk1o+0hOEq67RojlUUmoFGwxyA==", + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.18.tgz", + "integrity": "sha512-aNMp8humfYzWERz5gxGb/eLNkB0ZthypLbNlNolzdgzFTeN78e/rnn9rxCdOaSsg/zClTOJ/OkjXYx9PUEPATw==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-layout-effect": "1.1.2" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -3566,15 +3540,15 @@ } }, "node_modules/@radix-ui/react-collection": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.10.tgz", - "integrity": "sha512-IVVz4EvBcKjrzKgof714qDnz/SzQAkLA2Emh5edlHbgcE6fNd3Un6CJLlaYcnm8N4JmAtzQgse4dOKxcD2yc9g==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.13.tgz", + "integrity": "sha512-Q8xYqNRFObXPmi45bFSkGdM2JA5hjBeYGFqzg6lZR3wp6b+cciraVq8DdneTabtws+uOYqjmsvmKOufk/M9Cyg==", "license": "MIT", "dependencies": { - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-slot": "1.3.0" + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-slot": "1.3.1" }, "peerDependencies": { "@types/react": "*", @@ -3592,9 +3566,9 @@ } }, "node_modules/@radix-ui/react-compose-refs": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.3.tgz", - "integrity": "sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.4.tgz", + "integrity": "sha512-pWJo6lQAfR6uy1n7ii7PaCc9dLPwTXDYbQpORZU5B548Aqvl2pP1SM1vJGKyxIFqZMHRopRO4CQYX2iXAIB5jA==", "license": "MIT", "peerDependencies": { "@types/react": "*", @@ -3607,9 +3581,9 @@ } }, "node_modules/@radix-ui/react-context": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.4.tgz", - "integrity": "sha512-QwH4PO5urrbO+FaGd5Aglg+YJgWTyyuZ3g/6mKvsqraLkglDdckw9JafgL5McL5VEJ6EPNduPaT3ZE9BttDAqg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.2.1.tgz", + "integrity": "sha512-EraVbFjiIjibpLr6EjvEDmSCYJU2SlKDMiO+qEK/D9GOWnQoAQlpQo2occGYC1UM9MBeEx5Bek3UtW/Qi57vAg==", "license": "MIT", "peerDependencies": { "@types/react": "*", @@ -3622,16 +3596,16 @@ } }, "node_modules/@radix-ui/react-context-menu": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-context-menu/-/react-context-menu-2.3.1.tgz", - "integrity": "sha512-XbrxS68W5dyiE4fAb96yvJwSVU5x66B20A99sD5Mk3xSWK/LqeOnx6TZnim1KieMjXS/CTFq8reOAjWxas2G8Q==", + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context-menu/-/react-context-menu-2.3.5.tgz", + "integrity": "sha512-wbvSjqc7r0xKmfhrMCiCPxSTv/aSHU0cCAy0tELthJbaIzT7dkAcevKuoGKbDLiPG2VePgMVqLi2sWb6tDnzvQ==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-menu": "2.1.18", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-controllable-state": "1.2.3" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-menu": "2.1.22", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-controllable-state": "1.2.5" }, "peerDependencies": { "@types/react": "*", @@ -3649,23 +3623,24 @@ } }, "node_modules/@radix-ui/react-dialog": { - "version": "1.1.17", - "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.17.tgz", - "integrity": "sha512-TDTYmpdq8dI2+Xgvgj9AJ8Ghqq+Eph/TRVEdaFQPDItIY+6QSkU7MJMeevw1568Yw/2Ijz8BTphPSP2XejKphw==", - "license": "MIT", - "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-dismissable-layer": "1.1.13", - "@radix-ui/react-focus-guards": "1.1.4", - "@radix-ui/react-focus-scope": "1.1.10", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-portal": "1.1.12", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-slot": "1.3.0", - "@radix-ui/react-use-controllable-state": "1.2.3", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.21.tgz", + "integrity": "sha512-h+7qMDDmZJ8qTSPrwNyKb/PACY0ehtN8QOBlCz+C2C1jgehKekdhmHddG9YQk8BF/sHJqglPjte+jA1Jrp9HcA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-dismissable-layer": "1.1.17", + "@radix-ui/react-focus-guards": "1.1.5", + "@radix-ui/react-focus-scope": "1.1.14", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-portal": "1.1.15", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-slot": "1.3.1", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-layout-effect": "1.1.3", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, @@ -3685,9 +3660,9 @@ } }, "node_modules/@radix-ui/react-direction": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.2.tgz", - "integrity": "sha512-C3vFhbyi4SW3PmbAi6Awpu4OzJtd0MxGurvSsYtr7p7nM8RNB3VAF3CUmnp2j50knpkrRcB7+ycVXzgLgF6yNA==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.3.tgz", + "integrity": "sha512-OdgAA/xb6WOQMKNn0mtbYoruMG6YMaBOnq+evWxSpMmiEMBdeFZawnIWRfPPeVXCRm+0lnN8jpJLjhD7/UIxWw==", "license": "MIT", "peerDependencies": { "@types/react": "*", @@ -3700,16 +3675,16 @@ } }, "node_modules/@radix-ui/react-dismissable-layer": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.13.tgz", - "integrity": "sha512-2v+zNAWWe0ySxgC0D0yeXMPQ23xZVgXZTerTz+JKlmdRj6gfTqmCcR29jb6d290DezXPGgruHWDX/vYUebtErg==", + "version": "1.1.17", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.17.tgz", + "integrity": "sha512-QAXwa38pG0xNAYh1pjdSaf86NrkqsMoDNmget/Y7X8O8E/C3Iqlj9GAPE4DfX9BPLXc7WH2TWSzMRnIoCdcjzQ==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-callback-ref": "1.1.2", - "@radix-ui/react-use-escape-keydown": "1.1.2" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-callback-ref": "1.1.3", + "@radix-ui/react-use-effect-event": "0.0.4" }, "peerDependencies": { "@types/react": "*", @@ -3727,18 +3702,18 @@ } }, "node_modules/@radix-ui/react-dropdown-menu": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.18.tgz", - "integrity": "sha512-PZGV82gFk0WltDRI//SsG28ZIjlo9ANTmoNYg0jLNzXXiDsAy5PkOOYQaVD1pPxY6t7gxffb1QMD6qaUvsBZdw==", + "version": "2.1.22", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.22.tgz", + "integrity": "sha512-wZRLTjZaJf1HTxx0YepFKZUuo+SZMi+Cr4kJ2fuA5FxDSUE0vHDTscahUaU+jfz6LFk4OuguwqJs5K0JsIsIBA==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-menu": "2.1.18", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-controllable-state": "1.2.3" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-menu": "2.1.22", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-controllable-state": "1.2.5" }, "peerDependencies": { "@types/react": "*", @@ -3756,9 +3731,9 @@ } }, "node_modules/@radix-ui/react-focus-guards": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.4.tgz", - "integrity": "sha512-cot/aB/mOm0IYVYTTmQcEEK1M48lZWi8FlYe5nDPQQ8NYZUlXEFgncJ9p2Kzer3RKSrY7cTTpEMLZKNo9QoP5Q==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.5.tgz", + "integrity": "sha512-UQvlB7L/BYh3P8MLvwZnQkH521EDos40Rwnbt5+Qpg4Vbk0z3xJjRUmR6+aka4aT1IQQXFdO5bNPoE7cvFl5xQ==", "license": "MIT", "peerDependencies": { "@types/react": "*", @@ -3771,14 +3746,14 @@ } }, "node_modules/@radix-ui/react-focus-scope": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.10.tgz", - "integrity": "sha512-Fas/lXQqhVvqwAb64s5RFeHiHYElZ6SUQbZaNd6EkfhP/Al7wTIQ9WIR4QVX475tlu5yFCEdDcJH6/UwsZjMWw==", + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.14.tgz", + "integrity": "sha512-/x4htnJfmW53MplkrePaDpf1o/rN1C++g88WpVobULXbSyC19NtLkXmewuJ/HCaceSmfKDNL5gOXcBGnuAvnvQ==", "license": "MIT", "dependencies": { - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-callback-ref": "1.1.2" + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-callback-ref": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -3796,17 +3771,17 @@ } }, "node_modules/@radix-ui/react-form": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-form/-/react-form-0.1.10.tgz", - "integrity": "sha512-1NfuvctVtX4sU3Mmq/IdrR8UunxiCMiVg3A5UENKhFzxUBeOyaQQ+lmaQaV7Tc8cqvBKsJL3/KGBsixK0D8WFg==", + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@radix-ui/react-form/-/react-form-0.1.14.tgz", + "integrity": "sha512-ZCuPb54PQ3ZQEdQ6G1PrMBfXXzAyaVoCI9Fl+bWOwYZKTOcFjPHL7JQ3tCb6CX6Ut81GZLWKgIpV6OS3n5z5Ig==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-label": "2.1.10", - "@radix-ui/react-primitive": "2.1.6" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-label": "2.1.13", + "@radix-ui/react-primitive": "2.1.8" }, "peerDependencies": { "@types/react": "*", @@ -3824,20 +3799,20 @@ } }, "node_modules/@radix-ui/react-hover-card": { - "version": "1.1.17", - "resolved": "https://registry.npmjs.org/@radix-ui/react-hover-card/-/react-hover-card-1.1.17.tgz", - "integrity": "sha512-GjZQIEANVkuuWeztlKz6QEHe31ZX2iDfHzcTMCQVZXC0JyQrgfKWSC+LOOEw6aVV64zyjzobIzSA4AU4eKWrHA==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/@radix-ui/react-hover-card/-/react-hover-card-1.1.21.tgz", + "integrity": "sha512-ByFLyi+kdTGkObxIt5wKB3Ru3rtJRuYUqPEtqiv1HNYqutqbn1wDuNmVzI6iwus9qfY3vwpNgvx/UVZUGTWC1A==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-dismissable-layer": "1.1.13", - "@radix-ui/react-popper": "1.3.1", - "@radix-ui/react-portal": "1.1.12", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-controllable-state": "1.2.3" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-dismissable-layer": "1.1.17", + "@radix-ui/react-popper": "1.3.5", + "@radix-ui/react-portal": "1.1.15", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-controllable-state": "1.2.5" }, "peerDependencies": { "@types/react": "*", @@ -3855,12 +3830,12 @@ } }, "node_modules/@radix-ui/react-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.2.tgz", - "integrity": "sha512-orBC88futVpqCmhX1p4cvquNHsELQ+w+vBJnuj3ftETI5bJb0bZn3Tqu3SWN2IOcPycTnMGnhwoermvISt72sA==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.3.tgz", + "integrity": "sha512-f/Wxm0ctyMymUJK0fqTSQlm85rbzdAkoNbPXJQ5+6caowVO8Yx+NWGjGz/oGhs/D+WIbbQpOrU0hU2Li2/42xQ==", "license": "MIT", "dependencies": { - "@radix-ui/react-use-layout-effect": "1.1.2" + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -3873,12 +3848,12 @@ } }, "node_modules/@radix-ui/react-label": { - "version": "2.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.10.tgz", - "integrity": "sha512-ib0zvq2ZsAqKm5tRnqGJn3vOxSgIts5ToxsXT0q1S/GfLD1Zj7UOEnkw8u2w6sRmn47djpQWuSU1DCL1R29/yw==", + "version": "2.1.13", + "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.13.tgz", + "integrity": "sha512-kj7BXyM4uG0dyeoEdVmPQAOFN291+iJOtiGTvkXe1ijJWLQbAHpFNkopvqquaMVn+zjqTZRhnefESAinMErHKg==", "license": "MIT", "dependencies": { - "@radix-ui/react-primitive": "2.1.6" + "@radix-ui/react-primitive": "2.1.8" }, "peerDependencies": { "@types/react": "*", @@ -3896,27 +3871,27 @@ } }, "node_modules/@radix-ui/react-menu": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.18.tgz", - "integrity": "sha512-lj8Rxjtn6zJq1oSbE/uDtAwCbB9BnxgHD+8MwJMuTh6u1dPamYhW9iuELr/Z8d0D/UysFblYYHeBPwi7T4k0YQ==", - "license": "MIT", - "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-collection": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-dismissable-layer": "1.1.13", - "@radix-ui/react-focus-guards": "1.1.4", - "@radix-ui/react-focus-scope": "1.1.10", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-popper": "1.3.1", - "@radix-ui/react-portal": "1.1.12", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-roving-focus": "1.1.13", - "@radix-ui/react-slot": "1.3.0", - "@radix-ui/react-use-callback-ref": "1.1.2", + "version": "2.1.22", + "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.22.tgz", + "integrity": "sha512-xCFrVLttGDPwMjIPI6GS+tm3IGUNKsPXffrJQIPpQJuE9Qy1bU9GNUCkwranU/pEqyBlwMxcBIK/FUJFAZ9SqQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-dismissable-layer": "1.1.17", + "@radix-ui/react-focus-guards": "1.1.5", + "@radix-ui/react-focus-scope": "1.1.14", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-popper": "1.3.5", + "@radix-ui/react-portal": "1.1.15", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-roving-focus": "1.1.17", + "@radix-ui/react-slot": "1.3.1", + "@radix-ui/react-use-callback-ref": "1.1.3", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, @@ -3936,21 +3911,21 @@ } }, "node_modules/@radix-ui/react-menubar": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/@radix-ui/react-menubar/-/react-menubar-1.1.18.tgz", - "integrity": "sha512-hX7EGx/oFq6DPY27GQuP/2wP48GHf5LG6r06VgNJlG+znmDS8OfopZcRcGly3L4lsB9FqpmLx6JQSE9P3BUpyw==", + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/@radix-ui/react-menubar/-/react-menubar-1.1.22.tgz", + "integrity": "sha512-jDkcZXd5rN4b/S9nnEv9KZajaQ7+RO98OCWqAxrULTJtkSvODlNOO+EIxNG/d4QIF6QOqK5ZZrTF9MYl6eQdiQ==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-collection": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-menu": "2.1.18", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-roving-focus": "1.1.13", - "@radix-ui/react-use-controllable-state": "1.2.3" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-menu": "2.1.22", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-roving-focus": "1.1.17", + "@radix-ui/react-use-controllable-state": "1.2.5" }, "peerDependencies": { "@types/react": "*", @@ -3968,25 +3943,25 @@ } }, "node_modules/@radix-ui/react-navigation-menu": { - "version": "1.2.16", - "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.16.tgz", - "integrity": "sha512-nJ0SkrSQgudyYhMiYeHA1ayLVuduEJCFLan1RZZN7c9kqzzCFLaU9kuy81uNtqzweM9YaQPgWzxi9MwQ9jZ04g==", - "license": "MIT", - "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-collection": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-dismissable-layer": "1.1.13", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-callback-ref": "1.1.2", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-layout-effect": "1.1.2", - "@radix-ui/react-use-previous": "1.1.2", - "@radix-ui/react-visually-hidden": "1.2.6" + "version": "1.2.20", + "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.20.tgz", + "integrity": "sha512-in/exCQPatmmBmQZrtQkK4UrysEp8VGEuw5o8Bx3ozxbfg7DBb4H5j3DgxGz4N59J02NRVzhsWFtujZgy5ue3w==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-dismissable-layer": "1.1.17", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-callback-ref": "1.1.3", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-layout-effect": "1.1.3", + "@radix-ui/react-use-previous": "1.1.3", + "@radix-ui/react-visually-hidden": "1.2.9" }, "peerDependencies": { "@types/react": "*", @@ -4004,23 +3979,23 @@ } }, "node_modules/@radix-ui/react-one-time-password-field": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-one-time-password-field/-/react-one-time-password-field-0.1.10.tgz", - "integrity": "sha512-GHkcJ+WVj91At+OvUVTD4R3W0/wxw9t/sG5xFUBYXaCbtWiooZX5Md376QjJqgH4VsVyXrbVNHO2O4NYcmjfVg==", - "license": "MIT", - "dependencies": { - "@radix-ui/number": "1.1.2", - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-collection": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-roving-focus": "1.1.13", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-effect-event": "0.0.3", - "@radix-ui/react-use-is-hydrated": "0.1.1", - "@radix-ui/react-use-layout-effect": "1.1.2" + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/@radix-ui/react-one-time-password-field/-/react-one-time-password-field-0.1.14.tgz", + "integrity": "sha512-F3vMSK+d+huI3a4Zm6j2hUsS+/gByVbsechJwp/ZCZBCrusXHvBeZZz9aMqXqqYNYu23mtvVMt6AeHDds8EU7w==", + "license": "MIT", + "dependencies": { + "@radix-ui/number": "1.1.3", + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-roving-focus": "1.1.17", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-effect-event": "0.0.4", + "@radix-ui/react-use-is-hydrated": "0.1.2", + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4038,19 +4013,19 @@ } }, "node_modules/@radix-ui/react-password-toggle-field": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@radix-ui/react-password-toggle-field/-/react-password-toggle-field-0.1.5.tgz", - "integrity": "sha512-fVuA82u0b/fClpbEJv8yp1nU9eSvoSEOERsU/hhf3FXGPIvkmE7oEaHEu8poowoXO39/Va7zq2E0TUcYr1dBRg==", + "version": "0.1.9", + "resolved": "https://registry.npmjs.org/@radix-ui/react-password-toggle-field/-/react-password-toggle-field-0.1.9.tgz", + "integrity": "sha512-JFkmnwZFD357odQkpzfxz++bpohQpaGCT/4PK6oRd4R/Rxzg02uFDucFzZDOTIOz6vWSluIlz91zelleg9BheA==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-effect-event": "0.0.3", - "@radix-ui/react-use-is-hydrated": "0.1.1" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-effect-event": "0.0.4", + "@radix-ui/react-use-is-hydrated": "0.1.2" }, "peerDependencies": { "@types/react": "*", @@ -4068,24 +4043,25 @@ } }, "node_modules/@radix-ui/react-popover": { - "version": "1.1.17", - "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.1.17.tgz", - "integrity": "sha512-/YSAOdJ7YJvdn7bn5sdSx2egW+SKY+u7O5RyAVs94Ymrg2fg5QTSFPMRkzvhGyFuE4/qsmPBdrwYoZMZh/4f+g==", - "license": "MIT", - "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-dismissable-layer": "1.1.13", - "@radix-ui/react-focus-guards": "1.1.4", - "@radix-ui/react-focus-scope": "1.1.10", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-popper": "1.3.1", - "@radix-ui/react-portal": "1.1.12", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-slot": "1.3.0", - "@radix-ui/react-use-controllable-state": "1.2.3", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.1.21.tgz", + "integrity": "sha512-+AJ7P5oRcFqFtv7MaCD8fOuK3l5qQBAMdWEOnUOYd3JfHOeIUe7TnHHSSP15CtWwH4KrotyDCTzodOIoONh8vw==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-dismissable-layer": "1.1.17", + "@radix-ui/react-focus-guards": "1.1.5", + "@radix-ui/react-focus-scope": "1.1.14", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-popper": "1.3.5", + "@radix-ui/react-portal": "1.1.15", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-slot": "1.3.1", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-layout-effect": "1.1.3", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, @@ -4105,21 +4081,21 @@ } }, "node_modules/@radix-ui/react-popper": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.3.1.tgz", - "integrity": "sha512-bhnq/0DEPTi2lsOD3J5rTL65qUKHbKbhqHsmN9TMiclSXpipi651ooUKPPp6G5lF/WiHBdn1s0Wuqsn+myVAvw==", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.3.5.tgz", + "integrity": "sha512-6hLng2Rs45IZcvZ31BNvMeaFEMMEbtsog4xPcb8LZrGfyoV9fdAXqB9UKhLpTHtL0+E2DhSr6VW54Tehd6ksAQ==", "license": "MIT", "dependencies": { "@floating-ui/react-dom": "^2.0.0", - "@radix-ui/react-arrow": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-callback-ref": "1.1.2", - "@radix-ui/react-use-layout-effect": "1.1.2", - "@radix-ui/react-use-rect": "1.1.2", - "@radix-ui/react-use-size": "1.1.2", - "@radix-ui/rect": "1.1.2" + "@radix-ui/react-arrow": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-callback-ref": "1.1.3", + "@radix-ui/react-use-layout-effect": "1.1.3", + "@radix-ui/react-use-rect": "1.1.3", + "@radix-ui/react-use-size": "1.1.3", + "@radix-ui/rect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4137,13 +4113,13 @@ } }, "node_modules/@radix-ui/react-portal": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.12.tgz", - "integrity": "sha512-m309havGzsjLHHaIX50G5PlvRs3xkgPCsGk/5PTvYm8D5q33yG0J7w/712PTOhid7NTaFETtnSXjngHQavvhVw==", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.15.tgz", + "integrity": "sha512-kAfBVJUKNNKZuyGQXXG6rKolAV2KAmxxVkPXJgoq9dEFTl39286RufHQFNTL8rzha4vP8159BJ6hMGpB+bqv7A==", "license": "MIT", "dependencies": { - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-layout-effect": "1.1.2" + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4161,12 +4137,12 @@ } }, "node_modules/@radix-ui/react-presence": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.6.tgz", - "integrity": "sha512-zdTk4PlUO0E18HnZ3wYbW0KkJJxWCdiNYp6g6X1PtONFhxVkg01vliTJAmwIszU6mHiyBOoW9P0rAugl5/hULQ==", + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.9.tgz", + "integrity": "sha512-LTi1v05bprIb8/GSY/GWusI0jfsYjQ3CD3Nin8o7jVxnpHzVQfzjOQJoJTQkE9bdmOnsS7SFdhkXiBv8PrYnxw==", "license": "MIT", "dependencies": { - "@radix-ui/react-use-layout-effect": "1.1.2" + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4184,12 +4160,12 @@ } }, "node_modules/@radix-ui/react-primitive": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.6.tgz", - "integrity": "sha512-wetd0QI77DbvrPpTAvH1SqOxsYF2wZe5TNxqwOd5Ty4XDpV3dpV0s8K/1MGMJBeY5o7lg8ub5VIt1Ub+yVen6g==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.8.tgz", + "integrity": "sha512-DOlK1BdcIeYYUcFkSYFka4v1h95XTov93b0jCgW1EEiZuIhdwHY2NlE1teLIh+p0uBsuZI5A+voay+iVWpprfA==", "license": "MIT", "dependencies": { - "@radix-ui/react-slot": "1.3.0" + "@radix-ui/react-slot": "1.3.1" }, "peerDependencies": { "@types/react": "*", @@ -4207,13 +4183,13 @@ } }, "node_modules/@radix-ui/react-progress": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-progress/-/react-progress-1.1.10.tgz", - "integrity": "sha512-JYzEg60lk79PwKM27WZyKd7PW8O4OM5jOaFfRPfOyeXmMw7tLJh5kSj+CEjVTehszuwml/AdCzPGMXBTGf4BBw==", + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/@radix-ui/react-progress/-/react-progress-1.1.14.tgz", + "integrity": "sha512-lq5VXWp/t/b8MaqbRMAItXICc/jwhzJt0ZZ+au/CBtTYkX9EfAsSyGQL5brUVBgf9tUTKCoJEZlDl+uJF/08xQ==", "license": "MIT", "dependencies": { - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-primitive": "2.1.6" + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-primitive": "2.1.8" }, "peerDependencies": { "@types/react": "*", @@ -4231,21 +4207,20 @@ } }, "node_modules/@radix-ui/react-radio-group": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.4.1.tgz", - "integrity": "sha512-/SSxZdKEo2Eo29FFRKd06EfFDYp8HryKg0WYg7QLXaydPzl52YfSvCH2a3QDBRdtcuwACroJT8UVjQVgOJ7P9A==", - "license": "MIT", - "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-roving-focus": "1.1.13", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-previous": "1.1.2", - "@radix-ui/react-use-size": "1.1.2" + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.4.5.tgz", + "integrity": "sha512-BM1xQgw1gpgPSw05U4hJCMDX9GmAS6b6vKZANuNQZo0vf/ah7NZDAnjLd4tPg3z2vMvlI0CV+B2CFM9Z19oQDA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-roving-focus": "1.1.17", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-size": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4263,20 +4238,22 @@ } }, "node_modules/@radix-ui/react-roving-focus": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.13.tgz", - "integrity": "sha512-9gkwneI0guf8JDmrFxPjJF6Ozzgioyw+/lonYNCwefS9ZHA05er0BVHiXr+LbWGHxUfczvMY6G1oiZZi1VzjRw==", - "license": "MIT", - "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-collection": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-callback-ref": "1.1.2", - "@radix-ui/react-use-controllable-state": "1.2.3" + "version": "1.1.17", + "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.17.tgz", + "integrity": "sha512-YdJmjETw7Py+4Nziv71jgZ6fH7xQgB5p+pQ5rV8Iufyrm0RHSijec/UV1zPfQoK/YcfzB9nOl/2bi1zf1SjRMQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-callback-ref": "1.1.3", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-is-hydrated": "0.1.2", + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4294,20 +4271,20 @@ } }, "node_modules/@radix-ui/react-scroll-area": { - "version": "1.2.12", - "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.2.12.tgz", - "integrity": "sha512-xuafVzQiTCLsyEjakowTdG3OgTXsmO7IdCiO77otIa+z44xoLNs9Do5eg7POFumIOCjtG6djfm6RKUKpUa/csA==", + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.2.16.tgz", + "integrity": "sha512-kEcmCenIJ+W5xlCv1u9VKDdPmzzGyfrJwEneY+02GH+lJRXrGpkiTkyjrfkspuRw6DXt4uduwT5c4xD8HTv27Q==", "license": "MIT", "dependencies": { - "@radix-ui/number": "1.1.2", - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-callback-ref": "1.1.2", - "@radix-ui/react-use-layout-effect": "1.1.2" + "@radix-ui/number": "1.1.3", + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-callback-ref": "1.1.3", + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4325,31 +4302,31 @@ } }, "node_modules/@radix-ui/react-select": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.3.1.tgz", - "integrity": "sha512-w6eDvY78LE9ZUiNnXCA1QVK8RYN7k9galFv09kjVydJqBAgHd7Y9A6h0UJ/6DCZNGZMZrB2ohcSW1Bo9d8+wWA==", - "license": "MIT", - "dependencies": { - "@radix-ui/number": "1.1.2", - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-collection": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-dismissable-layer": "1.1.13", - "@radix-ui/react-focus-guards": "1.1.4", - "@radix-ui/react-focus-scope": "1.1.10", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-popper": "1.3.1", - "@radix-ui/react-portal": "1.1.12", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-slot": "1.3.0", - "@radix-ui/react-use-callback-ref": "1.1.2", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-layout-effect": "1.1.2", - "@radix-ui/react-use-previous": "1.1.2", - "@radix-ui/react-visually-hidden": "1.2.6", + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.3.5.tgz", + "integrity": "sha512-6CQx0xtdarAkSCsqgLJaz+coYQaru7rt8K6gMItR2rA+WP8/Ig6kRAzP6Zw88RccG98IZnszqJlJx9hejYOL3A==", + "license": "MIT", + "dependencies": { + "@radix-ui/number": "1.1.3", + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-dismissable-layer": "1.1.17", + "@radix-ui/react-focus-guards": "1.1.5", + "@radix-ui/react-focus-scope": "1.1.14", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-popper": "1.3.5", + "@radix-ui/react-portal": "1.1.15", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-slot": "1.3.1", + "@radix-ui/react-use-callback-ref": "1.1.3", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-layout-effect": "1.1.3", + "@radix-ui/react-use-previous": "1.1.3", + "@radix-ui/react-visually-hidden": "1.2.9", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, @@ -4369,12 +4346,12 @@ } }, "node_modules/@radix-ui/react-separator": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.10.tgz", - "integrity": "sha512-Y6K6jLQCVfCnTL2MEtGxDLffkhNfEfHsEg3Wa8JU+IWdn3EWbLXd3OuOfQRN7p/W/cUce1WyTk3QeuAoDBzN9g==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.13.tgz", + "integrity": "sha512-wbagLhy4grekqiT6hU0WNP09FpmemTXbNWg4QEawaw9dix7hRIcrmDNnLDasOsKVLtArEznhgZKe5Gm4U6oPXQ==", "license": "MIT", "dependencies": { - "@radix-ui/react-primitive": "2.1.6" + "@radix-ui/react-primitive": "2.1.8" }, "peerDependencies": { "@types/react": "*", @@ -4392,22 +4369,22 @@ } }, "node_modules/@radix-ui/react-slider": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-slider/-/react-slider-1.4.1.tgz", - "integrity": "sha512-r91WSpQucNGFKAIxT8FT0H0zyjd5tJlqObLp7LOMV4z49KoDCwjy01w3vDOU4e1wxhF9IgjYco7SB6byOW7Buw==", - "license": "MIT", - "dependencies": { - "@radix-ui/number": "1.1.2", - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-collection": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-layout-effect": "1.1.2", - "@radix-ui/react-use-previous": "1.1.2", - "@radix-ui/react-use-size": "1.1.2" + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slider/-/react-slider-1.4.5.tgz", + "integrity": "sha512-7E8C13SdQKQxYganILiVZGEwM0NSbfbFcnNJ93kP++wD2pMT1SMsG3c04PFUlbPpaSXgicYgPeBndgJTvV3NKg==", + "license": "MIT", + "dependencies": { + "@radix-ui/number": "1.1.3", + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-layout-effect": "1.1.3", + "@radix-ui/react-use-previous": "1.1.3", + "@radix-ui/react-use-size": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4425,12 +4402,13 @@ } }, "node_modules/@radix-ui/react-slot": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.0.tgz", - "integrity": "sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.1.tgz", + "integrity": "sha512-Bu/aAQHFFh6/QAvXAeUMurJ9fbW0JUIqlojU/yBXZ7cAVqy75Y7JYYyuCr9zLNF0p4WWoJYV54CTUIf4l7FzTw==", "license": "MIT", "dependencies": { - "@radix-ui/react-compose-refs": "1.1.3" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4" }, "peerDependencies": { "@types/react": "*", @@ -4443,18 +4421,17 @@ } }, "node_modules/@radix-ui/react-switch": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.3.1.tgz", - "integrity": "sha512-55bQtCnOB0BohomSHi6qvQXpJEEqUGDm6hRrM0Bph5OXwhSegqkd8IqgBAQkM1IlgUlWZIxpxRcpOEfRIgimyw==", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.3.5.tgz", + "integrity": "sha512-e1YrvGvEjIqDhqKjQ4Q+IDkMfiY30u3FPz9CZXZMlQ8mU3kZ2PdeBM8Gssc48CDopPizNorKumGhjySBfO7BDQ==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-previous": "1.1.2", - "@radix-ui/react-use-size": "1.1.2" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-size": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4472,19 +4449,19 @@ } }, "node_modules/@radix-ui/react-tabs": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.15.tgz", - "integrity": "sha512-kxc9gI6/HfcU4nfMMVS3AmQK414kbU1IE6UCJmMmxjhO3cRPXOyYnmvyKD+ODt7q56nRq9l7Wovi6uaGwKgMlg==", + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.19.tgz", + "integrity": "sha512-4wbGf98pX2ZwYqHMVB/dakeMPyH4xSJ9MSDaCCWXlIpYt0VYY6mtZxKSTiGS/F3tk0yrEYmXE1V8uwG7TxDCcQ==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-roving-focus": "1.1.13", - "@radix-ui/react-use-controllable-state": "1.2.3" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-roving-focus": "1.1.17", + "@radix-ui/react-use-controllable-state": "1.2.5" }, "peerDependencies": { "@types/react": "*", @@ -4502,23 +4479,23 @@ } }, "node_modules/@radix-ui/react-toast": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@radix-ui/react-toast/-/react-toast-1.2.17.tgz", - "integrity": "sha512-uL4kyyWy000pPL43fGGCV5qT6ZchCWEQZOSlkYiPwPt8Hy1iW38RjeptIvz1/SZesrW6Vn58Ct3sV7tfEfiAbw==", - "license": "MIT", - "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-collection": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-dismissable-layer": "1.1.13", - "@radix-ui/react-portal": "1.1.12", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-callback-ref": "1.1.2", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-layout-effect": "1.1.2", - "@radix-ui/react-visually-hidden": "1.2.6" + "version": "1.2.21", + "resolved": "https://registry.npmjs.org/@radix-ui/react-toast/-/react-toast-1.2.21.tgz", + "integrity": "sha512-/o8uHzH2z6ZM59Dt1UPFj8aYJ0DjPu0EuQXQ7uuYJTQLH5mNqxa1KuBfbpnklgXOOjyAtTp/tll0Nm+Nkz+bEg==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-collection": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-dismissable-layer": "1.1.17", + "@radix-ui/react-portal": "1.1.15", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-callback-ref": "1.1.3", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-layout-effect": "1.1.3", + "@radix-ui/react-visually-hidden": "1.2.9" }, "peerDependencies": { "@types/react": "*", @@ -4536,14 +4513,14 @@ } }, "node_modules/@radix-ui/react-toggle": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle/-/react-toggle-1.1.12.tgz", - "integrity": "sha512-AsAVsYNZIlRBsci7BhE+QyQeKd1h6TffJYt+lF0QQkd5OpQ3klfIByPsCb4G0h/Fq6PJwh1FYNluzBFYzhk4+w==", + "version": "1.1.16", + "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle/-/react-toggle-1.1.16.tgz", + "integrity": "sha512-pp4TLY3N4osN9IB4TLEaaZRGooBmCi/XJD65gSCs5tvsKofM9WgiBToNtGrmR0k3sG4jFj4Nw4utsIvQraWA9g==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-use-controllable-state": "1.2.3" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-use-controllable-state": "1.2.5" }, "peerDependencies": { "@types/react": "*", @@ -4561,18 +4538,18 @@ } }, "node_modules/@radix-ui/react-toggle-group": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle-group/-/react-toggle-group-1.1.13.tgz", - "integrity": "sha512-Xb9PLtlvU66F36LiKba6dFswu6V2mDkgidO4fNSbQHQwmZ9ObxMIO17MN/LJ4aWJecVuSVLAHPZjyeMzJrgeiA==", + "version": "1.1.17", + "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle-group/-/react-toggle-group-1.1.17.tgz", + "integrity": "sha512-KKsrxb1cZREc2RI5DOGwlUSpaPW40xIaK1/DXXqYDb7slRE8pkRa+iF2aFbYiuMJ+aNWpCSChiN5gFe3bVveaQ==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-roving-focus": "1.1.13", - "@radix-ui/react-toggle": "1.1.12", - "@radix-ui/react-use-controllable-state": "1.2.3" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-roving-focus": "1.1.17", + "@radix-ui/react-toggle": "1.1.16", + "@radix-ui/react-use-controllable-state": "1.2.5" }, "peerDependencies": { "@types/react": "*", @@ -4590,18 +4567,18 @@ } }, "node_modules/@radix-ui/react-toolbar": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/@radix-ui/react-toolbar/-/react-toolbar-1.1.13.tgz", - "integrity": "sha512-Za1l4f6fzTkGgz/iynAMN8iaqiKff2wm2/QwiLmHPtDQreWEBrvSimgQFIekxMUdRPhILM7xdIXxuS/o/DGZag==", + "version": "1.1.17", + "resolved": "https://registry.npmjs.org/@radix-ui/react-toolbar/-/react-toolbar-1.1.17.tgz", + "integrity": "sha512-MjorZ0XQiWfCrrpStNXw/hX0HnG7VEzCgcSV226Ox8/WzS5yq0SiMhsLFE3LlXhdghlakFRFdE6eegtmUQW7Mg==", "license": "MIT", "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-roving-focus": "1.1.13", - "@radix-ui/react-separator": "1.1.10", - "@radix-ui/react-toggle-group": "1.1.13" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-roving-focus": "1.1.17", + "@radix-ui/react-separator": "1.1.13", + "@radix-ui/react-toggle-group": "1.1.17" }, "peerDependencies": { "@types/react": "*", @@ -4619,23 +4596,24 @@ } }, "node_modules/@radix-ui/react-tooltip": { - "version": "1.2.10", - "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.10.tgz", - "integrity": "sha512-NlNe8D0dWEpVfXFli90IO6X07Josx/b1iu98tDnx9Xv0HT4wLIL+m2VOheMHhK7qbp2HoTBqALEFzGyZs/levw==", - "license": "MIT", - "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-dismissable-layer": "1.1.13", - "@radix-ui/react-id": "1.1.2", - "@radix-ui/react-popper": "1.3.1", - "@radix-ui/react-portal": "1.1.12", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-slot": "1.3.0", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-visually-hidden": "1.2.6" + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.14.tgz", + "integrity": "sha512-C/JxCKJJac+wtHPW1yFBSN8Ssuaufy2jYQMgyiJYyW4Fw0WJfDWXQDAly1qsbd1YDznH+sYitaljhf8igPCvmA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-dismissable-layer": "1.1.17", + "@radix-ui/react-id": "1.1.3", + "@radix-ui/react-popper": "1.3.5", + "@radix-ui/react-portal": "1.1.15", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-slot": "1.3.1", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-layout-effect": "1.1.3", + "@radix-ui/react-visually-hidden": "1.2.9" }, "peerDependencies": { "@types/react": "*", @@ -4653,9 +4631,9 @@ } }, "node_modules/@radix-ui/react-use-callback-ref": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.2.tgz", - "integrity": "sha512-xCso9j1/u8sEgP1RNHjFrXJLApL8LiqOkI1R4ywuN00rxWdYg4oQXuwKLS3i0j5NWLromUD27/4nlxj2UFVvIw==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.3.tgz", + "integrity": "sha512-AUS7HoBBAncIsGMLNG+CcpLuJ+JIBbZzmyM8Qdb1eIThX0AlhSSC6wn40xfBlPE+ypx/vSSiRWnklUAjy3U3UA==", "license": "MIT", "peerDependencies": { "@types/react": "*", @@ -4668,13 +4646,14 @@ } }, "node_modules/@radix-ui/react-use-controllable-state": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.3.tgz", - "integrity": "sha512-PLzC90MS+ReootmjC597dvopoelpZ8Q61HJkDXZSExitIq7PL55vHNnesAHwguHK0aPfBnpdNzQtv1uliaqQrA==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.5.tgz", + "integrity": "sha512-UB1dXpxvHjR48poyKdKdTm7jT0kp3elkUKdKQiOkirlbYumqXinSJtrjDsr9maXNPvL12bKI4CDSmydms/9Aeg==", "license": "MIT", "dependencies": { - "@radix-ui/react-use-effect-event": "0.0.3", - "@radix-ui/react-use-layout-effect": "1.1.2" + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-use-effect-event": "0.0.4", + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4687,12 +4666,12 @@ } }, "node_modules/@radix-ui/react-use-effect-event": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.3.tgz", - "integrity": "sha512-6c8ZqvPTWILEKnyVkP53EGRCcpnJiKTC21sS/6R1GF5xKyHJJWQEPfkqlcgUkdRQivd6tb23abUwe4ngWmY0JA==", + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.4.tgz", + "integrity": "sha512-XYcfa6wlXDCwQtePuEiPmXLSAhGL4DWtedSyRgGbG3y10mw+OnrLp6SyeY1gJFMiYF0Dx0nMAX9InylKbLEFQQ==", "license": "MIT", "dependencies": { - "@radix-ui/react-use-layout-effect": "1.1.2" + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4705,12 +4684,12 @@ } }, "node_modules/@radix-ui/react-use-escape-keydown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.2.tgz", - "integrity": "sha512-2uVLvLjgO7NZCWw01/FdqRwmA42J0BcjPMUCA+koFEOAb+zjqIP7SiFz/7zWPrKnVmSqr76Omq2ALyCuX4dhLw==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.4.tgz", + "integrity": "sha512-4MSb5SPbMH02uUn19tLkO5Bav66ZQg/zFbedo7FWLWGFg9r8Z9xSog7QGnq9ZceurzBVIAIwgzANg6ExWc8HkQ==", "license": "MIT", "dependencies": { - "@radix-ui/react-use-callback-ref": "1.1.2" + "@radix-ui/react-use-callback-ref": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4723,9 +4702,9 @@ } }, "node_modules/@radix-ui/react-use-is-hydrated": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@radix-ui/react-use-is-hydrated/-/react-use-is-hydrated-0.1.1.tgz", - "integrity": "sha512-qwOiz4Tjo8CNnrOLAYUMXeZwDzXgXpvK4TKQPmWLECM9XoWvA6+0Z2/7Ag3A4ivjS4ovbLJPbskkxioFyBhr8A==", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-is-hydrated/-/react-use-is-hydrated-0.1.2.tgz", + "integrity": "sha512-2+gAVu9uaSLbopCTvvuWX9MIgEOlyqXC1Ok+KLCO7cZPSHLENs7dL0KbFQUGFIcFKmDW/bmaQRJtd8E3cnMRUw==", "license": "MIT", "peerDependencies": { "@types/react": "*", @@ -4738,9 +4717,9 @@ } }, "node_modules/@radix-ui/react-use-layout-effect": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.2.tgz", - "integrity": "sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.3.tgz", + "integrity": "sha512-rDiah9wvtqihWtWz02XreeRKIxt2EJF8y5D9rtY9l5A2zxePAtcPiOMpDugNRw5bFHz+1/8viVoc7ZVKiJknCw==", "license": "MIT", "peerDependencies": { "@types/react": "*", @@ -4753,9 +4732,9 @@ } }, "node_modules/@radix-ui/react-use-previous": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.2.tgz", - "integrity": "sha512-IGBQPtRFdhN6MQ8dbegVmBq1LVZluya3F1jWY+puIcQC3MHctRwTDSBWCkL/3ZcnMJLTMJ++Z+ktmvg0F89iCw==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.3.tgz", + "integrity": "sha512-kbefNKla5AGhgvMqrg/qS7mYVLXTEHQLqoFIS03nKN2dAfQQ5PK5Tp+2LxS7BV6a6l4HHv4jTg6rtV2Uajwe2w==", "license": "MIT", "peerDependencies": { "@types/react": "*", @@ -4768,12 +4747,12 @@ } }, "node_modules/@radix-ui/react-use-rect": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.2.tgz", - "integrity": "sha512-d8a+bBY/FxikNPlgJJoaBHZX+zKVbWHYJGTLnLvveQgFSTntkGdEKv3JDtHrMS0DNYpllz2nRsTLGLKYttbpmw==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.3.tgz", + "integrity": "sha512-W0GSYZFKEfi6raMiMEfJSngvVbFDIyxtW5JuVg5NoQBY59l0dVQVGLbhog/tOdwq0qtZ+TXuX1ikSNan4/IZXA==", "license": "MIT", "dependencies": { - "@radix-ui/rect": "1.1.2" + "@radix-ui/rect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4786,12 +4765,12 @@ } }, "node_modules/@radix-ui/react-use-size": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.2.tgz", - "integrity": "sha512-giWQp+4mxjBPt4KZ0MmyuykFNWfbDxKt4x+fPkRYmgRFJSbCZFzUglvMb/Kjn38tm10YP4ufiQZDx3zna4LU6w==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.3.tgz", + "integrity": "sha512-jJq6tQQLvO/z4uWbztjwPV+1a/+H4rCaWypasLB/ac8DEdd6+p7dIm7o3F6P2KZPGkPMqD4s5424EdAdoU+GLA==", "license": "MIT", "dependencies": { - "@radix-ui/react-use-layout-effect": "1.1.2" + "@radix-ui/react-use-layout-effect": "1.1.3" }, "peerDependencies": { "@types/react": "*", @@ -4804,12 +4783,12 @@ } }, "node_modules/@radix-ui/react-visually-hidden": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.6.tgz", - "integrity": "sha512-jCE0WljWifTI4niIMCll06kGpsJTAPiZVU9H4WR1N6qW7At9ystHbN7dDB+we2xH535roFHj7qKS+RGj0FMDWQ==", + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.9.tgz", + "integrity": "sha512-seuZXNZVCz1kLSQMRO/TdNOSahBI3S5nXE4jzO7u7aFRWQlMAnwyrr8vKMkEU115fCLEyzR2YyjnP+aRMxK34w==", "license": "MIT", "dependencies": { - "@radix-ui/react-primitive": "2.1.6" + "@radix-ui/react-primitive": "2.1.8" }, "peerDependencies": { "@types/react": "*", @@ -4827,9 +4806,9 @@ } }, "node_modules/@radix-ui/rect": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.2.tgz", - "integrity": "sha512-xnXE7wG13PI+cxieVssYXlQJuYVRhH9NBoxt3KNwzghDIA69GMm7d4wXRouHIYjE+KvS6U/MsMO73NdS2MH9ZA==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.3.tgz", + "integrity": "sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw==", "license": "MIT" }, "node_modules/@react-dnd/asap": { @@ -16020,66 +15999,66 @@ } }, "node_modules/radix-ui": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/radix-ui/-/radix-ui-1.6.0.tgz", - "integrity": "sha512-EUEC70O03EgxWMP5aoqfBZ6iLC5bczFagGy7zhSYRt8o5DP7IWNiP3ywetse3L9b8843ExB0OGWZvgbYVJuNeg==", - "license": "MIT", - "dependencies": { - "@radix-ui/primitive": "1.1.4", - "@radix-ui/react-accessible-icon": "1.1.10", - "@radix-ui/react-accordion": "1.2.14", - "@radix-ui/react-alert-dialog": "1.1.17", - "@radix-ui/react-arrow": "1.1.10", - "@radix-ui/react-aspect-ratio": "1.1.10", - "@radix-ui/react-avatar": "1.2.0", - "@radix-ui/react-checkbox": "1.3.5", - "@radix-ui/react-collapsible": "1.1.14", - "@radix-ui/react-collection": "1.1.10", - "@radix-ui/react-compose-refs": "1.1.3", - "@radix-ui/react-context": "1.1.4", - "@radix-ui/react-context-menu": "2.3.1", - "@radix-ui/react-dialog": "1.1.17", - "@radix-ui/react-direction": "1.1.2", - "@radix-ui/react-dismissable-layer": "1.1.13", - "@radix-ui/react-dropdown-menu": "2.1.18", - "@radix-ui/react-focus-guards": "1.1.4", - "@radix-ui/react-focus-scope": "1.1.10", - "@radix-ui/react-form": "0.1.10", - "@radix-ui/react-hover-card": "1.1.17", - "@radix-ui/react-label": "2.1.10", - "@radix-ui/react-menu": "2.1.18", - "@radix-ui/react-menubar": "1.1.18", - "@radix-ui/react-navigation-menu": "1.2.16", - "@radix-ui/react-one-time-password-field": "0.1.10", - "@radix-ui/react-password-toggle-field": "0.1.5", - "@radix-ui/react-popover": "1.1.17", - "@radix-ui/react-popper": "1.3.1", - "@radix-ui/react-portal": "1.1.12", - "@radix-ui/react-presence": "1.1.6", - "@radix-ui/react-primitive": "2.1.6", - "@radix-ui/react-progress": "1.1.10", - "@radix-ui/react-radio-group": "1.4.1", - "@radix-ui/react-roving-focus": "1.1.13", - "@radix-ui/react-scroll-area": "1.2.12", - "@radix-ui/react-select": "2.3.1", - "@radix-ui/react-separator": "1.1.10", - "@radix-ui/react-slider": "1.4.1", - "@radix-ui/react-slot": "1.3.0", - "@radix-ui/react-switch": "1.3.1", - "@radix-ui/react-tabs": "1.1.15", - "@radix-ui/react-toast": "1.2.17", - "@radix-ui/react-toggle": "1.1.12", - "@radix-ui/react-toggle-group": "1.1.13", - "@radix-ui/react-toolbar": "1.1.13", - "@radix-ui/react-tooltip": "1.2.10", - "@radix-ui/react-use-callback-ref": "1.1.2", - "@radix-ui/react-use-controllable-state": "1.2.3", - "@radix-ui/react-use-effect-event": "0.0.3", - "@radix-ui/react-use-escape-keydown": "1.1.2", - "@radix-ui/react-use-is-hydrated": "0.1.1", - "@radix-ui/react-use-layout-effect": "1.1.2", - "@radix-ui/react-use-size": "1.1.2", - "@radix-ui/react-visually-hidden": "1.2.6" + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/radix-ui/-/radix-ui-1.6.5.tgz", + "integrity": "sha512-HVHPWDoOXBYxxiwvWR45KPcmvrjoa/NTFUbPbGmYoZv7BFYOIpZKiPQZWcpFJTX5z4LeoGenGCUgoafdYHuPWA==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.7", + "@radix-ui/react-accessible-icon": "1.1.13", + "@radix-ui/react-accordion": "1.2.18", + "@radix-ui/react-alert-dialog": "1.1.21", + "@radix-ui/react-arrow": "1.1.13", + "@radix-ui/react-aspect-ratio": "1.1.13", + "@radix-ui/react-avatar": "1.2.4", + "@radix-ui/react-checkbox": "1.3.9", + "@radix-ui/react-collapsible": "1.1.18", + "@radix-ui/react-collection": "1.1.13", + "@radix-ui/react-compose-refs": "1.1.4", + "@radix-ui/react-context": "1.2.1", + "@radix-ui/react-context-menu": "2.3.5", + "@radix-ui/react-dialog": "1.1.21", + "@radix-ui/react-direction": "1.1.3", + "@radix-ui/react-dismissable-layer": "1.1.17", + "@radix-ui/react-dropdown-menu": "2.1.22", + "@radix-ui/react-focus-guards": "1.1.5", + "@radix-ui/react-focus-scope": "1.1.14", + "@radix-ui/react-form": "0.1.14", + "@radix-ui/react-hover-card": "1.1.21", + "@radix-ui/react-label": "2.1.13", + "@radix-ui/react-menu": "2.1.22", + "@radix-ui/react-menubar": "1.1.22", + "@radix-ui/react-navigation-menu": "1.2.20", + "@radix-ui/react-one-time-password-field": "0.1.14", + "@radix-ui/react-password-toggle-field": "0.1.9", + "@radix-ui/react-popover": "1.1.21", + "@radix-ui/react-popper": "1.3.5", + "@radix-ui/react-portal": "1.1.15", + "@radix-ui/react-presence": "1.1.9", + "@radix-ui/react-primitive": "2.1.8", + "@radix-ui/react-progress": "1.1.14", + "@radix-ui/react-radio-group": "1.4.5", + "@radix-ui/react-roving-focus": "1.1.17", + "@radix-ui/react-scroll-area": "1.2.16", + "@radix-ui/react-select": "2.3.5", + "@radix-ui/react-separator": "1.1.13", + "@radix-ui/react-slider": "1.4.5", + "@radix-ui/react-slot": "1.3.1", + "@radix-ui/react-switch": "1.3.5", + "@radix-ui/react-tabs": "1.1.19", + "@radix-ui/react-toast": "1.2.21", + "@radix-ui/react-toggle": "1.1.16", + "@radix-ui/react-toggle-group": "1.1.17", + "@radix-ui/react-toolbar": "1.1.17", + "@radix-ui/react-tooltip": "1.2.14", + "@radix-ui/react-use-callback-ref": "1.1.3", + "@radix-ui/react-use-controllable-state": "1.2.5", + "@radix-ui/react-use-effect-event": "0.0.4", + "@radix-ui/react-use-escape-keydown": "1.1.4", + "@radix-ui/react-use-is-hydrated": "0.1.2", + "@radix-ui/react-use-layout-effect": "1.1.3", + "@radix-ui/react-use-size": "1.1.3", + "@radix-ui/react-visually-hidden": "1.2.9" }, "peerDependencies": { "@types/react": "*",