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 1/3] 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(
From 7d6b513edce4b222aff82cc1f725a376bdad7b7b Mon Sep 17 00:00:00 2001
From: Patrick Latter <73612854+palatter@users.noreply.github.com>
Date: Mon, 10 Jun 2024 15:10:34 -0700
Subject: [PATCH 2/3] Update downloadHandler.tsx
---
Chat/src/app/utils/downloadHandler.tsx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Chat/src/app/utils/downloadHandler.tsx b/Chat/src/app/utils/downloadHandler.tsx
index 9c2093f..cbc6abf 100644
--- a/Chat/src/app/utils/downloadHandler.tsx
+++ b/Chat/src/app/utils/downloadHandler.tsx
@@ -1 +1,3 @@
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
export {}; /*The above line is generated by conditional compilation, when no export detected after CC.*/
From 07557bfcc287b24229daaa0b35ab7478668df09e Mon Sep 17 00:00:00 2001
From: Patrick Latter <73612854+palatter@users.noreply.github.com>
Date: Mon, 10 Jun 2024 15:10:47 -0700
Subject: [PATCH 3/3] Update uploadHandler.ts
---
Chat/src/app/utils/uploadHandler.ts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Chat/src/app/utils/uploadHandler.ts b/Chat/src/app/utils/uploadHandler.ts
index 9c2093f..cbc6abf 100644
--- a/Chat/src/app/utils/uploadHandler.ts
+++ b/Chat/src/app/utils/uploadHandler.ts
@@ -1 +1,3 @@
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
export {}; /*The above line is generated by conditional compilation, when no export detected after CC.*/