Skip to content
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
16,349 changes: 7,049 additions & 9,300 deletions Chat/package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions Chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"lint:quiet": "eslint **/*.{ts,tsx} --quiet"
},
"dependencies": {
"@azure/abort-controller": "^1.1.0",
"@azure/abort-controller": "^2.1.0",
"@azure/communication-chat": "^1.5.4",
"@azure/communication-common": "^2.3.1",
"@azure/communication-identity": "^1.3.0",
"@azure/communication-react": "1.26.0",
"@azure/communication-react": "1.28.0",
"@azure/logger": "^1.0.4",
"@fluentui/react": "^8.115.2",
"@fluentui/react-file-type-icons": "8.11.4",
"@fluentui/react-file-type-icons": "^8.11.4",
"@fluentui/react-icons": "^2.0.231",
"@types/react-linkify": "^1.0.4",
"json-stringify-safe": "^5.0.1",
Expand Down Expand Up @@ -60,8 +60,8 @@
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-react-hooks": "^4.1.2",
"html-webpack-plugin": "~5.3.1",
"husky": "^4.3.0",
"jest": "29.7.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"jest-junit": "~13.0.0",
"prettier": "2.3.1",
Expand All @@ -71,8 +71,8 @@
"ts-loader": "^8.0.12",
"typescript": "^4.3.5",
"url-loader": "~4.1.1",
"webpack": "5.95.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "5.2.1"
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.2.1"
}
}
1 change: 1 addition & 0 deletions Chat/src/app/ChatHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const ChatHeader = (props: ChatHeaderProps): JSX.Element => {
onClick={() => props.onEndChat()}
ariaLabel={leaveString}
aria-live={'polite'}
title={leaveString}
/>
</Stack>
);
Expand Down
3 changes: 2 additions & 1 deletion Chat/src/app/ConfigurationScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import {
import { joinThread } from './utils/joinThread';
import { getEndpointUrl } from './utils/getEndpointUrl';
import { refreshToken } from './utils/refreshToken';

import {
getDisplayNameFromLocalStorage,
localStorageAvailable,
Expand Down Expand Up @@ -158,7 +159,7 @@ export default (props: ConfigurationScreenProps): JSX.Element => {
if (!threadId) {
throw new Error(ERROR_TEXT_THREAD_NOT_RECORDED);
}
} catch (error) {
} catch {
setConfigurationScreenState(CONFIGURATIONSCREEN_SHOWING_INVALID_THREAD);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion Chat/src/app/DisplayNameField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const DisplayNameFieldComponent = (props: DisplayNameFieldProps): JSX.Element =>
placeholder={TEXTFIELD_PLACEHOLDER}
onKeyDown={(ev) => {
if (ev.which === ENTER_KEY) {
validateName && validateName();
validateName?.();
}
}}
styles={TextFieldStyleProps}
Expand Down
2 changes: 0 additions & 2 deletions Chat/src/app/RichTextEditorToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
export {}; /*The above line is generated by conditional compilation, when no export detected after CC.*/

Check failure on line 1 in Chat/src/app/RichTextEditorToggle.tsx

View workflow job for this annotation

GitHub Actions / Run clean code tests on frontend

missing header
8 changes: 4 additions & 4 deletions Chat/src/app/styles/DisplayNameField.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ export const inputBoxStyle = mergeStyles({
});

export const inputBoxTextStyle = mergeStyles({
fontSize: '0.875rem',
fontSize: '1rem',
fontWeight: 600,
lineHeight: '1.5rem',
'::-webkit-input-placeholder': {
fontSize: '0.875rem',
fontSize: '1rem',
fontWeight: 600
},
'::-moz-placeholder': {
fontSize: '0.875rem',
fontSize: '1rem',
fontWeight: 600
},
':-moz-placeholder': {
fontSize: '0.875rem',
fontSize: '1rem',
fontWeight: 600
}
});
4 changes: 2 additions & 2 deletions Chat/src/app/theming/SwitchableFluentThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
const SwitchableFluentThemeContext = createContext<SwitchableFluentThemeContext>({
currentTheme: defaultTheme,
currentRtl: false,
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
// eslint-disable-next-line @typescript-eslint/no-unused-vars
setCurrentTheme: (theme: NamedTheme) => {},

Check failure on line 75 in Chat/src/app/theming/SwitchableFluentThemeProvider.tsx

View workflow job for this annotation

GitHub Actions / Run clean code tests on frontend

Unexpected empty arrow function 'setCurrentTheme'
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
// eslint-disable-next-line @typescript-eslint/no-unused-vars
setCurrentRtl: (rtl: boolean) => {},

Check failure on line 77 in Chat/src/app/theming/SwitchableFluentThemeProvider.tsx

View workflow job for this annotation

GitHub Actions / Run clean code tests on frontend

Unexpected empty arrow function 'setCurrentRtl'
themeStore: defaultThemes
});

Expand Down
2 changes: 0 additions & 2 deletions Chat/src/app/utils/downloadHandler.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
export {}; /*The above line is generated by conditional compilation, when no export detected after CC.*/

Check failure on line 1 in Chat/src/app/utils/downloadHandler.tsx

View workflow job for this annotation

GitHub Actions / Run clean code tests on frontend

missing header
8 changes: 4 additions & 4 deletions Chat/src/app/utils/localStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ export enum LocalStorageKeys {
* Get display name from local storage.
*/
export const getDisplayNameFromLocalStorage = (): string | null =>
window.localStorage.getItem(LocalStorageKeys.DisplayName);
window.localStorage?.getItem(LocalStorageKeys.DisplayName);

/**
* Save display name into local storage.
*/
export const saveDisplayNameToLocalStorage = (displayName: string): void =>
window.localStorage.setItem(LocalStorageKeys.DisplayName, displayName);
window.localStorage?.setItem(LocalStorageKeys.DisplayName, displayName);

/**
* Get theme from local storage.
*/
export const getThemeFromLocalStorage = (scopeId: string): string | null =>
window.localStorage.getItem(LocalStorageKeys.Theme + '_' + scopeId);
window.localStorage?.getItem(LocalStorageKeys.Theme + '_' + scopeId);

/**
* Save theme into local storage.
*/
export const saveThemeToLocalStorage = (theme: string, scopeId: string): void =>
window.localStorage.setItem(LocalStorageKeys.Theme + '_' + scopeId, theme);
window.localStorage?.setItem(LocalStorageKeys.Theme + '_' + scopeId, theme);
2 changes: 0 additions & 2 deletions Chat/src/app/utils/uploadHandler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
export {}; /*The above line is generated by conditional compilation, when no export detected after CC.*/

Check failure on line 1 in Chat/src/app/utils/uploadHandler.ts

View workflow job for this annotation

GitHub Actions / Run clean code tests on frontend

missing header
Loading
Loading