[MM-59552] Remove unsafe-inline from internal CSP, replace with nonce and rework some dynamic styling (#3120)

* Remove unsafe-inline

* Fix dynamic dark mode loading

* Include nonce generator for CSP for styles

* Add nonce provider for react-select

* Fix test
This commit is contained in:
Devin Binnie
2024-08-12 09:38:59 -04:00
committed by GitHub
parent e310fa705f
commit c9f671d82a
17 changed files with 177 additions and 61 deletions

3
package-lock.json generated
View File

@@ -10,6 +10,7 @@
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"@emotion/react": "11.11.4",
"@mattermost/compass-icons": "0.1.45",
"auto-launch": "5.0.6",
"bootstrap": "4.6.1",
@@ -88,7 +89,7 @@
},
"api-types": {
"name": "@mattermost/desktop-api",
"version": "5.9.0-1",
"version": "5.10.0-1",
"dev": true,
"license": "MIT",
"peerDependencies": {