Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @types/react from 18.2.56 to 18.2.73 in /webapp #911

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions webapp/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ module.exports = {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
'@typescript-eslint/prefer-promise-reject-errors': 'off',
},
settings: {
react: {
Expand Down
16 changes: 8 additions & 8 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"eject": "react-scripts eject"
},
"dependencies": {
"@azure/msal-browser": "^2.38.4",
"@azure/msal-react": "^1.5.11",
"@fluentui/react-components": "^9.47.2",
"@azure/msal-browser": "^3.11.1",
"@azure/msal-react": "^2.0.14",
"@fluentui/react-components": "^9.47.3",
"@fluentui/react-icons": "^2.0.233",
"@fluentui/react-northstar": "^0.66.4",
"@microsoft/signalr": "^8.0.0",
Expand All @@ -34,11 +34,11 @@
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@types/debug": "^4.1.12",
"@types/node": "^20.11.30",
"@types/react": "^18.2.56",
"@types/node": "^20.12.3",
"@types/react": "^18.2.74",
"@types/react-dom": "^18.2.23",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"react-scripts": "^5.0.1",
Expand All @@ -59,4 +59,4 @@
]
},
"packageManager": "yarn@1.22.19"
}
}
2 changes: 1 addition & 1 deletion webapp/src/components/FileUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const useClasses = makeStyles({
interface FileUploaderProps {
acceptedExtensions: string[] | undefined;
onSelectedFile: (file: File) => void;
ref?: React.Ref<HTMLInputElement>;
ref?: React.Ref<HTMLInputElement> | string;
}

export const FileUploader: React.FC<FileUploaderProps> = forwardRef<HTMLInputElement, FileUploaderProps>(
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/chat/prompt-dialog/PromptDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const PromptDialog: React.FC<IPromptDialogProps> = ({ message }) => {
value &&
!(value as string).includes('User has also shared some document snippets:')
) {
value += '\nNo relevant document memories.';
value = (value as string) + '\nNo relevant document memories.';
}

return value && key !== 'metaPromptTemplate' ? (
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/chat/shared/EditChatName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export const EditChatName: React.FC<IEditChatNameProps> = ({ name, chatId, exitE
className={classes.root}
style={{
display: 'flex',
flexDirection: `${textButtons ? 'column' : 'row'}`,
gap: `${textButtons ? tokens.spacingVerticalS : tokens.spacingVerticalNone}`,
flexDirection: textButtons ? 'column' : 'row',
gap: textButtons ? tokens.spacingVerticalS : tokens.spacingVerticalNone,
}}
title={'Edit chat name'}
aria-label={`Edit chat name for "${name}"`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const SettingSection: React.FC<ISettingsSectionProps> = ({ setting, conte
<div
style={{
display: 'flex',
flexDirection: `${setting.stackVertically ? 'column' : 'row'}`,
flexDirection: setting.stackVertically ? 'column' : 'row',
flexWrap: 'wrap',
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const PluginCard: React.FC<PluginCardProps> = ({ plugin, isHosted }) => {
return (
<BaseCard
image={icon}
header={`${name}`}
header={name}
secondaryText={publisher}
description={description}
action={
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/libs/services/ChatService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class ChatService extends BaseService {

if (propertyDetails.value) {
openApiVariables.push({
key: `${property}`,
key: property,
value: propertyDetails.value,
});
}
Expand Down
5,131 changes: 2,835 additions & 2,296 deletions webapp/yarn.lock

Large diffs are not rendered by default.