@aws/mynah-ui 3.3.3 → 3.5.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
@@ -44,6 +44,7 @@ export declare enum MynahEventNames {
44
44
  CHAT_PROMPT = "chatPrompt",
45
45
  CHAT_ITEM_ADD = "chatItemAdd",
46
46
  FOLLOW_UP_CLICKED = "followUpClicked",
47
+ BODY_ACTION_CLICKED = "bodyActionClicked",
47
48
  SHOW_MORE_WEB_RESULTS_CLICK = "showMoreWebResultsClick",
48
49
  SHOW_FEEDBACK_FORM = "showFeedbackForm",
49
50
  OPEN_DIFF = "openDiff",
@@ -89,7 +90,7 @@ export interface ChatItem {
89
90
  canBeVoted?: boolean;
90
91
  followUp?: {
91
92
  text?: string;
92
- options?: ChatItemFollowUp[];
93
+ options?: ChatItemAction[];
93
94
  };
94
95
  relatedContent?: {
95
96
  title?: string;
@@ -100,13 +101,26 @@ export interface ChatItem {
100
101
  filePaths?: string[];
101
102
  deletedFiles?: string[];
102
103
  };
104
+ icon?: MynahIcons;
105
+ status?: 'info' | 'success' | 'warning' | 'error';
106
+ buttons?: ChatItemButton[];
107
+ formItems?: ChatItemFormItem[];
108
+ }
109
+ export interface ChatItemFormItem {
110
+ id: string;
111
+ title?: string;
112
+ input?: string;
113
+ options?: Array<{
114
+ value: string;
115
+ label: string;
116
+ }>;
103
117
  }
104
118
  export interface ChatPrompt {
105
119
  prompt?: string;
106
120
  escapedPrompt?: string;
107
121
  command?: string;
108
122
  }
109
- export interface ChatItemFollowUp extends ChatPrompt {
123
+ export interface ChatItemAction extends ChatPrompt {
110
124
  type?: string;
111
125
  pillText: string;
112
126
  disabled?: boolean;
@@ -114,6 +128,15 @@ export interface ChatItemFollowUp extends ChatPrompt {
114
128
  status?: 'info' | 'success' | 'warning' | 'error';
115
129
  icon?: MynahIcons;
116
130
  }
131
+ export interface ChatItemButton {
132
+ keepCardAfterClick?: boolean;
133
+ text: string;
134
+ id: string;
135
+ disabled?: boolean;
136
+ description?: string;
137
+ status?: 'info' | 'success' | 'warning' | 'error';
138
+ icon?: MynahIcons;
139
+ }
117
140
  export declare enum KeyMap {
118
141
  ESCAPE = "Escape",
119
142
  ENTER = "Enter",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws/mynah-ui",
3
3
  "displayName": "AWS Mynah UI",
4
- "version": "3.3.3",
4
+ "version": "3.5.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",