fix: remove carousel display mode (#56)

This commit is contained in:
Ido Salomon 2025-12-01 22:29:49 +02:00 • committed by GitHub
commit a9b96cd365
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -401,7 +401,7 @@ interface HostContext {
/** Current color theme preference */ /** Current color theme preference */
theme?: "light" | "dark" | "system"; theme?: "light" | "dark" | "system";
/** How the UI is currently displayed */ /** How the UI is currently displayed */
displayMode?: "inline" | "fullscreen" | "pip" | "carousel"; displayMode?: "inline" | "fullscreen" | "pip";
/** Display modes the host supports */ /** Display modes the host supports */
availableDisplayModes?: string[]; availableDisplayModes?: string[];
/** Current and maximum dimensions available to the UI */ /** Current and maximum dimensions available to the UI */

View file

@ -430,7 +430,7 @@ export interface McpUiHostContext {
* How the UI is currently displayed. * How the UI is currently displayed.
* @example "inline" * @example "inline"
*/ */
displayMode?: "inline" | "fullscreen" | "pip" | "carousel"; displayMode?: "inline" | "fullscreen" | "pip";
/** /**
* Display modes the host supports. * Display modes the host supports.
* Apps can use this to offer mode-switching UI if applicable. * Apps can use this to offer mode-switching UI if applicable.
@ -502,7 +502,7 @@ export const McpUiHostContextSchema: z.ZodType<McpUiHostContext> = z.object({
}) })
.optional(), .optional(),
theme: z.enum(["light", "dark", "system"]).optional(), theme: z.enum(["light", "dark", "system"]).optional(),
displayMode: z.enum(["inline", "fullscreen", "pip", "carousel"]).optional(), displayMode: z.enum(["inline", "fullscreen", "pip"]).optional(),
availableDisplayModes: z.array(z.string()).optional(), availableDisplayModes: z.array(z.string()).optional(),
viewport: z viewport: z
.object({ .object({