@aws/mynah-ui 4.9.2 → 4.10.0

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
@@ -115,8 +115,8 @@ export declare enum MynahEventNames {
115
115
  FILE_ACTION_CLICK = "fileActionClick",
116
116
  TAB_FOCUS = "tabFocus",
117
117
  CUSTOM_FORM_ACTION_CLICK = "customFormActionClick",
118
- ADD_CODE_SNIPPET = "addCodeSnippet",
119
- REMOVE_CODE_SNIPPET = "removeCodeSnippet",
118
+ ADD_ATTACHMENT = "addAttachment",
119
+ REMOVE_ATTACHMENT = "removeAttachment",
120
120
  TAB_BAR_BUTTON_CLICK = "tabBarButtonClick"
121
121
  }
122
122
  export declare enum MynahPortalNames {
@@ -125,6 +125,7 @@ export declare enum MynahPortalNames {
125
125
  OVERLAY = "overlay",
126
126
  FEEDBACK_FORM = "feedbackForm"
127
127
  }
128
+ export type PromptAttachmentType = 'code' | 'markdown';
128
129
  export interface SourceLinkMetaData {
129
130
  stars?: number;
130
131
  forks?: number;
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.9.2",
4
+ "version": "4.10.0",
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",
@@ -24,6 +24,15 @@
24
24
  "postinstall": "node postinstall.js"
25
25
  },
26
26
  "dependencies": {
27
+ "just-clone": "^6.2.0",
28
+ "marked": "^12.0.2",
29
+ "prismjs": "1.29.0",
30
+ "sanitize-html": "^2.12.1",
31
+ "escape-html": "^1.0.3",
32
+ "unescape-html": "^1.1.0"
33
+ },
34
+ "peerDependencies": {
35
+ "escape-html": "^1.0.3",
27
36
  "just-clone": "^6.2.0",
28
37
  "marked": "^12.0.2",
29
38
  "prismjs": "1.29.0",
@@ -46,7 +55,6 @@
46
55
  "babel-jest": "^29.7.0",
47
56
  "core-js": "^3.33.3",
48
57
  "css-loader": "6.6.0",
49
- "escape-html": "^1.0.3",
50
58
  "eslint": "^8.22.0",
51
59
  "eslint-config-prettier": "^8.10.0",
52
60
  "eslint-config-standard-with-typescript": "22.0.0",
@@ -1,18 +0,0 @@
1
- import { ExtendedHTMLElement } from '../../../helper/dom';
2
- export interface ICodeSnippetProps {
3
- tabId: string;
4
- }
5
- export interface ISelectCodeSnippetEvent {
6
- tabId: string;
7
- selectedCodeSnippet?: string;
8
- }
9
- export declare class CodeSnippet {
10
- private readonly _props;
11
- private readonly _render;
12
- private snippetWidget;
13
- lastCodeSnippet: string;
14
- constructor(props: ICodeSnippetProps);
15
- get render(): ExtendedHTMLElement;
16
- readonly updateSelectedCodeSnippet: (selectedCodeSnippet: string | undefined) => void;
17
- readonly clear: () => void;
18
- }