diff --git a/package.json b/package.json index cf175dd..9048319 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@ai-sdk/google": "^2.0.19", "@ai-sdk/mistral": "^2.0.17", "@ai-sdk/openai": "^2.0.44", - "@jupyter/chat": "^0.18.2", + "@jupyter/chat": "^0.19.0-alpha.2", "@jupyterlab/application": "^4.0.0", "@jupyterlab/apputils": "^4.5.6", "@jupyterlab/cells": "^4.4.6", diff --git a/src/components/clear-button.tsx b/src/components/clear-button.tsx index 9a7a929..2f63621 100644 --- a/src/components/clear-button.tsx +++ b/src/components/clear-button.tsx @@ -1,4 +1,4 @@ -import { InputToolbarRegistry, TooltippedButton } from '@jupyter/chat'; +import { InputToolbarRegistry, TooltippedIconButton } from '@jupyter/chat'; import ClearIcon from '@mui/icons-material/Clear'; @@ -23,18 +23,15 @@ export interface IClearButtonProps export function ClearButton(props: IClearButtonProps): JSX.Element { const tooltip = 'Clear chat'; return ( - - + ); } diff --git a/src/components/model-select.tsx b/src/components/model-select.tsx index da57263..c2e0521 100644 --- a/src/components/model-select.tsx +++ b/src/components/model-select.tsx @@ -101,7 +101,6 @@ export function ModelSelect(props: IModelSelectProps): JSX.Element { onClick={() => {}} tooltip="No providers configured. Please go to AI Settings to add a provider." buttonProps={{ - size: 'small', variant: 'outlined', color: 'warning', disabled: true, @@ -109,9 +108,9 @@ export function ModelSelect(props: IModelSelectProps): JSX.Element { }} sx={{ minWidth: 'auto', + width: 'unset', display: 'flex', - alignItems: 'center', - height: '29px' + alignItems: 'center' }} > { if (e.key !== 'Enter' && e.key !== ' ') { @@ -147,9 +143,9 @@ export function ModelSelect(props: IModelSelectProps): JSX.Element { }} sx={{ minWidth: 'auto', + width: 'unset', display: 'flex', - alignItems: 'center', - height: '29px' + alignItems: 'center' }} > + {/* TODO: replace it with a TooltippedIconButton when the onClick is fixed */} { openMenu(e.currentTarget); }} tooltip={`Tools (${selectedToolNames.length}/${tools.length} selected)`} buttonProps={{ - size: 'small', variant: selectedToolNames.length > 0 ? 'contained' : 'outlined', color: 'primary', title: 'Select AI Tools', @@ -132,7 +132,7 @@ export function ToolSelect(props: IToolSelectProps): JSX.Element { : {} } > - +