Skip to content

Commit a4bf994

Browse files
committed
Update to communication-react-1.28.0
1 parent 9629326 commit a4bf994

22 files changed

Lines changed: 7315 additions & 9484 deletions

Chat/package-lock.json

Lines changed: 7049 additions & 9300 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Chat/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"lint:quiet": "eslint **/*.{ts,tsx} --quiet"
1818
},
1919
"dependencies": {
20-
"@azure/abort-controller": "^1.1.0",
20+
"@azure/abort-controller": "^2.1.0",
2121
"@azure/communication-chat": "^1.5.4",
2222
"@azure/communication-common": "^2.3.1",
2323
"@azure/communication-identity": "^1.3.0",
24-
"@azure/communication-react": "1.26.0",
24+
"@azure/communication-react": "1.28.0",
2525
"@azure/logger": "^1.0.4",
2626
"@fluentui/react": "^8.115.2",
27-
"@fluentui/react-file-type-icons": "8.11.4",
27+
"@fluentui/react-file-type-icons": "^8.11.4",
2828
"@fluentui/react-icons": "^2.0.231",
2929
"@types/react-linkify": "^1.0.4",
3030
"json-stringify-safe": "^5.0.1",
@@ -60,8 +60,8 @@
6060
"eslint-plugin-react": "^7.18.3",
6161
"eslint-plugin-react-hooks": "^4.1.2",
6262
"html-webpack-plugin": "~5.3.1",
63-
"husky": "^4.3.0",
64-
"jest": "29.7.0",
63+
"husky": "^9.1.7",
64+
"jest": "^29.7.0",
6565
"jest-fetch-mock": "^3.0.3",
6666
"jest-junit": "~13.0.0",
6767
"prettier": "2.3.1",
@@ -71,8 +71,8 @@
7171
"ts-loader": "^8.0.12",
7272
"typescript": "^4.3.5",
7373
"url-loader": "~4.1.1",
74-
"webpack": "5.95.0",
75-
"webpack-cli": "^4.9.2",
76-
"webpack-dev-server": "5.2.1"
74+
"webpack": "^5.95.0",
75+
"webpack-cli": "^5.1.4",
76+
"webpack-dev-server": "^5.2.1"
7777
}
7878
}

Chat/src/app/ChatHeader.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const ChatHeader = (props: ChatHeaderProps): JSX.Element => {
5353
onClick={() => props.onEndChat()}
5454
ariaLabel={leaveString}
5555
aria-live={'polite'}
56+
title={leaveString}
5657
/>
5758
</Stack>
5859
);

Chat/src/app/ConfigurationScreen.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import {
4242
import { joinThread } from './utils/joinThread';
4343
import { getEndpointUrl } from './utils/getEndpointUrl';
4444
import { refreshToken } from './utils/refreshToken';
45+
4546
import {
4647
getDisplayNameFromLocalStorage,
4748
localStorageAvailable,
@@ -158,7 +159,7 @@ export default (props: ConfigurationScreenProps): JSX.Element => {
158159
if (!threadId) {
159160
throw new Error(ERROR_TEXT_THREAD_NOT_RECORDED);
160161
}
161-
} catch (error) {
162+
} catch {
162163
setConfigurationScreenState(CONFIGURATIONSCREEN_SHOWING_INVALID_THREAD);
163164
return;
164165
}

Chat/src/app/DisplayNameField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const DisplayNameFieldComponent = (props: DisplayNameFieldProps): JSX.Element =>
5151
placeholder={TEXTFIELD_PLACEHOLDER}
5252
onKeyDown={(ev) => {
5353
if (ev.which === ENTER_KEY) {
54-
validateName && validateName();
54+
validateName?.();
5555
}
5656
}}
5757
styles={TextFieldStyleProps}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
// Copyright (c) Microsoft Corporation.
2-
// Licensed under the MIT License.
31
export {}; /*The above line is generated by conditional compilation, when no export detected after CC.*/

Chat/src/app/styles/DisplayNameField.styles.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ export const inputBoxStyle = mergeStyles({
1616
});
1717

1818
export const inputBoxTextStyle = mergeStyles({
19-
fontSize: '0.875rem',
19+
fontSize: '1rem',
2020
fontWeight: 600,
2121
lineHeight: '1.5rem',
2222
'::-webkit-input-placeholder': {
23-
fontSize: '0.875rem',
23+
fontSize: '1rem',
2424
fontWeight: 600
2525
},
2626
'::-moz-placeholder': {
27-
fontSize: '0.875rem',
27+
fontSize: '1rem',
2828
fontWeight: 600
2929
},
3030
':-moz-placeholder': {
31-
fontSize: '0.875rem',
31+
fontSize: '1rem',
3232
fontWeight: 600
3333
}
3434
});

Chat/src/app/theming/SwitchableFluentThemeProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ const defaultTheme: NamedTheme = defaultThemes.Light as NamedTheme;
7171
const SwitchableFluentThemeContext = createContext<SwitchableFluentThemeContext>({
7272
currentTheme: defaultTheme,
7373
currentRtl: false,
74-
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
74+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
7575
setCurrentTheme: (theme: NamedTheme) => {},
76-
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
76+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
7777
setCurrentRtl: (rtl: boolean) => {},
7878
themeStore: defaultThemes
7979
});
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
// Copyright (c) Microsoft Corporation.
2-
// Licensed under the MIT License.
31
export {}; /*The above line is generated by conditional compilation, when no export detected after CC.*/

Chat/src/app/utils/localStorage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ export enum LocalStorageKeys {
1212
* Get display name from local storage.
1313
*/
1414
export const getDisplayNameFromLocalStorage = (): string | null =>
15-
window.localStorage.getItem(LocalStorageKeys.DisplayName);
15+
window.localStorage?.getItem(LocalStorageKeys.DisplayName);
1616

1717
/**
1818
* Save display name into local storage.
1919
*/
2020
export const saveDisplayNameToLocalStorage = (displayName: string): void =>
21-
window.localStorage.setItem(LocalStorageKeys.DisplayName, displayName);
21+
window.localStorage?.setItem(LocalStorageKeys.DisplayName, displayName);
2222

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

2929
/**
3030
* Save theme into local storage.
3131
*/
3232
export const saveThemeToLocalStorage = (theme: string, scopeId: string): void =>
33-
window.localStorage.setItem(LocalStorageKeys.Theme + '_' + scopeId, theme);
33+
window.localStorage?.setItem(LocalStorageKeys.Theme + '_' + scopeId, theme);

0 commit comments

Comments
 (0)