From d08a4dee59335a699e3b91e6c639a6120ee2e62c Mon Sep 17 00:00:00 2001 From: Patrick Latter <73612854+palatter@users.noreply.github.com> Date: Mon, 10 Jun 2024 14:51:53 -0700 Subject: [PATCH] Update @azure/communication-react to version 1.17.0 --- Chat/package.json | 2 +- Chat/src/app/ConfigurationScreen.tsx | 5 +++++ Chat/src/app/RichTextEditorToggle.tsx | 3 +++ Chat/src/app/utils/downloadHandler.tsx | 1 + Chat/src/app/utils/uploadHandler.ts | 1 + Chat/src/app/utils/utils.ts | 15 --------------- Chat/src/index.tsx | 4 ---- 7 files changed, 11 insertions(+), 20 deletions(-) create mode 100644 Chat/src/app/RichTextEditorToggle.tsx create mode 100644 Chat/src/app/utils/downloadHandler.tsx create mode 100644 Chat/src/app/utils/uploadHandler.ts diff --git a/Chat/package.json b/Chat/package.json index a8cc7d0..de848a9 100644 --- a/Chat/package.json +++ b/Chat/package.json @@ -21,7 +21,7 @@ "@azure/communication-chat": "^1.5.0", "@azure/communication-common": "^2.3.1", "@azure/communication-identity": "^1.3.0", - "@azure/communication-react": "1.16.1", + "@azure/communication-react": "1.17.0", "@azure/logger": "^1.0.4", "@fluentui/react": "^8.115.2", "@fluentui/react-file-type-icons": "8.11.4", diff --git a/Chat/src/app/ConfigurationScreen.tsx b/Chat/src/app/ConfigurationScreen.tsx index c8f1e0e..1ad24e1 100644 --- a/Chat/src/app/ConfigurationScreen.tsx +++ b/Chat/src/app/ConfigurationScreen.tsx @@ -194,6 +194,10 @@ export default (props: ConfigurationScreenProps): JSX.Element => { return ; }; + const richTextEditorToggle = (): JSX.Element => { + return <>; + }; + const displayJoinChatArea = (): JSX.Element => { return ( { isEmpty={emptyWarning} /> + {richTextEditorToggle()} { - const urlParams = new URLSearchParams(window.location.search); - const isEnabled = urlParams.get('rrt'); - if (isEnabled !== 'true') { - return; - } - - const script = document.createElement('script'); - script.src = 'https://cdn.jsdelivr.net/npm/react-render-tracker'; - document.head.appendChild(script); -}; diff --git a/Chat/src/index.tsx b/Chat/src/index.tsx index 2802309..61f03d9 100644 --- a/Chat/src/index.tsx +++ b/Chat/src/index.tsx @@ -7,15 +7,11 @@ import './index.css'; import App from './app/App'; import { SwitchableFluentThemeProvider } from './app/theming/SwitchableFluentThemeProvider'; -import { initReactRenderTracker } from './app/utils/utils'; - const domNode = document.getElementById('root'); if (!domNode) { throw new Error('Failed to find the root element'); } -initReactRenderTracker(); - createRoot(domNode).render(