@aws/mynah-ui 4.3.2 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/static.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  import { MynahIcons } from './components/icon';
6
+ import { ChatItemBodyRenderer } from './helper/dom';
6
7
  export interface QuickActionCommand {
7
8
  command: string;
8
9
  description?: string;
@@ -97,6 +98,7 @@ export interface TreeNodeDetails {
97
98
  export interface ChatItem {
98
99
  type: ChatItemType;
99
100
  body?: string;
101
+ customRenderer?: string | ChatItemBodyRenderer | ChatItemBodyRenderer[];
100
102
  messageId?: string;
101
103
  canBeVoted?: boolean;
102
104
  followUp?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws/mynah-ui",
3
3
  "displayName": "AWS Mynah UI",
4
- "version": "4.3.2",
4
+ "version": "4.4.1",
5
5
  "description": "AWS Toolkit VSCode and Intellij IDE Extension Mynah UI",
6
6
  "publisher": "Amazon Web Services",
7
7
  "license": "Apache License 2.0",
@@ -22,8 +22,10 @@
22
22
  "postinstall": "node postinstall.js"
23
23
  },
24
24
  "dependencies": {
25
+ "just-clone": "^6.2.0",
25
26
  "marked": "^7.0.3",
26
27
  "prismjs": "1.29.0",
28
+ "sanitize-html": "^2.12.1",
27
29
  "unescape-html": "^1.1.0"
28
30
  },
29
31
  "devDependencies": {
@@ -37,11 +39,12 @@
37
39
  "@types/marked": "^5.0.1",
38
40
  "@types/node": "17.0.29",
39
41
  "@types/prismjs": "^1.26.2",
42
+ "@types/sanitize-html": "^2.11.0",
40
43
  "@typescript-eslint/eslint-plugin": "^5.34.0",
41
44
  "@typescript-eslint/parser": "^5.62.0",
42
- "css-loader": "6.6.0",
43
45
  "babel-jest": "^29.7.0",
44
46
  "core-js": "^3.33.3",
47
+ "css-loader": "6.6.0",
45
48
  "escape-html": "^1.0.3",
46
49
  "eslint": "^8.22.0",
47
50
  "eslint-config-prettier": "^8.10.0",