Skip to content

Commit dc849e7

Browse files
authored
feat(amazonq): update mynah version with no style loading option (#7154)
## Problem - UI styles coming from flare and the local instance are conflictin. ## Solution - Latest production version of mynah-ui has the ability to avoid loading styles. Bumped up mynah-ui version and set `loadStyles` to `false`. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent c9eb334 commit dc849e7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package-lock.json

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

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@
526526
"@aws-sdk/s3-request-presigner": "<3.731.0",
527527
"@aws-sdk/smithy-client": "<3.731.0",
528528
"@aws-sdk/util-arn-parser": "<3.731.0",
529-
"@aws/mynah-ui": "^4.30.1",
529+
"@aws/mynah-ui": "^4.30.3",
530530
"@gerhobbelt/gitignore-parser": "^0.2.0-9",
531531
"@iarna/toml": "^2.2.5",
532532
"@smithy/fetch-http-handler": "^5.0.1",

packages/core/src/amazonq/webview/ui/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ export class WebviewUIHandler {
10171017
* when in hybrid chat the reference gets resolved later so we
10181018
* don't need to create mynah UI
10191019
*/
1020-
this.mynahUIRef = { mynahUI: new MynahUI(this.mynahUIProps) }
1020+
this.mynahUIRef = { mynahUI: new MynahUI({ ...this.mynahUIProps, loadStyles: false }) }
10211021
}
10221022

10231023
/**

0 commit comments

Comments
 (0)