Skip to content

Commit 7082c1f

Browse files
authored
Update Materiel UI v7 (#277)
* Update to Materiel UI v7 * Fix lerna deprecated option * Fix MUI deprecated
1 parent 5bd24ff commit 7082c1f

File tree

4 files changed

+194
-154
lines changed

4 files changed

+194
-154
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
"docs/jupyter-chat-example"
2727
],
2828
"scripts": {
29-
"build": "lerna run build --stream --scope jupyterlab-chat-extension --include-filtered-dependencies",
29+
"build": "lerna run build --stream --scope jupyterlab-chat-extension --include-dependencies",
3030
"build:core": "lerna run build --stream --scope \"@jupyter/chat\"",
31-
"build:lite-docs": "lerna run build --stream --scope jupyter-chat-example --include-filtered-dependencies",
31+
"build:lite-docs": "lerna run build --stream --scope jupyter-chat-example --include-dependencies",
3232
"build:prod": "lerna run build:prod --stream",
3333
"clean": "lerna run clean",
3434
"clean:all": "lerna run clean:all",

packages/jupyter-chat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
"@lumino/disposable": "^2.0.0",
6363
"@lumino/polling": "^2.0.0",
6464
"@lumino/signaling": "^2.0.0",
65-
"@mui/icons-material": "^5.11.0",
66-
"@mui/material": "^5.11.0",
65+
"@mui/icons-material": "^7.3.2",
66+
"@mui/material": "^7.3.2",
6767
"clsx": "^2.1.0",
6868
"react": "^18.2.0",
6969
"react-dom": "^18.2.0"

packages/jupyter-chat/src/components/input/chat-input.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,20 +187,20 @@ export function ChatInput(props: ChatInput.IProps): JSX.Element {
187187
<Autocomplete
188188
{...chatCommands.autocompleteProps}
189189
// ensure the autocomplete popup always renders on top
190-
componentsProps={{
190+
slotProps={{
191191
popper: {
192192
placement: 'top'
193193
},
194194
paper: {
195195
sx: {
196196
border: '1px solid lightgray'
197197
}
198-
}
199-
}}
200-
ListboxProps={{
201-
sx: {
202-
'& .MuiAutocomplete-option': {
203-
padding: 2
198+
},
199+
listbox: {
200+
sx: {
201+
'& .MuiAutocomplete-option': {
202+
padding: 2
203+
}
204204
}
205205
}
206206
}}
@@ -218,9 +218,11 @@ export function ChatInput(props: ChatInput.IProps): JSX.Element {
218218
onSelect={() =>
219219
(model.cursorIndex = inputRef.current?.selectionStart ?? null)
220220
}
221-
InputProps={{
222-
...params.InputProps,
223-
className: INPUT_COMPONENT_CLASS
221+
slotProps={{
222+
input: {
223+
...params.InputProps,
224+
className: INPUT_COMPONENT_CLASS
225+
}
224226
}}
225227
label={input.length > 2 ? helperText : ' '}
226228
/>

0 commit comments

Comments
 (0)