@aws/mynah-ui 3.4.0 → 4.0.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
@@ -20,6 +20,7 @@ export interface MynahUIDataModel {
20
20
  quickActionCommands?: QuickActionCommandGroup[];
21
21
  promptInputPlaceholder?: string;
22
22
  promptInputInfo?: string;
23
+ promptInputStickyCard?: Partial<ChatItem> | null;
23
24
  promptInputDisabledState?: boolean;
24
25
  chatItems?: ChatItem[];
25
26
  selectedCodeSnippet?: string;
@@ -84,8 +85,8 @@ export declare enum ChatItemType {
84
85
  CODE_RESULT = "code-result"
85
86
  }
86
87
  export interface ChatItem {
87
- body?: string;
88
88
  type: ChatItemType;
89
+ body?: string;
89
90
  messageId?: string;
90
91
  canBeVoted?: boolean;
91
92
  followUp?: {
@@ -103,7 +104,20 @@ export interface ChatItem {
103
104
  };
104
105
  icon?: MynahIcons;
105
106
  status?: 'info' | 'success' | 'warning' | 'error';
106
- actions?: ChatItemAction[];
107
+ buttons?: ChatItemButton[];
108
+ formItems?: ChatItemFormItem[];
109
+ }
110
+ export interface ChatItemFormItem {
111
+ id: string;
112
+ type: 'select' | 'textarea' | 'textinput' | 'numericinput' | 'stars' | 'radiogroup';
113
+ mandatory?: boolean;
114
+ title?: string;
115
+ placeholder?: string;
116
+ value?: string;
117
+ options?: Array<{
118
+ value: string;
119
+ label: string;
120
+ }>;
107
121
  }
108
122
  export interface ChatPrompt {
109
123
  prompt?: string;
@@ -118,6 +132,16 @@ export interface ChatItemAction extends ChatPrompt {
118
132
  status?: 'info' | 'success' | 'warning' | 'error';
119
133
  icon?: MynahIcons;
120
134
  }
135
+ export interface ChatItemButton {
136
+ keepCardAfterClick?: boolean;
137
+ waitMandatoryFormItems?: boolean;
138
+ text: string;
139
+ id: string;
140
+ disabled?: boolean;
141
+ description?: string;
142
+ status?: 'info' | 'success' | 'warning' | 'error';
143
+ icon?: MynahIcons;
144
+ }
121
145
  export declare enum KeyMap {
122
146
  ESCAPE = "Escape",
123
147
  ENTER = "Enter",
@@ -203,6 +227,7 @@ export interface ConfigModel {
203
227
  save: string;
204
228
  cancel: string;
205
229
  submit: string;
230
+ pleaseSelect: string;
206
231
  stopGenerating: string;
207
232
  copyToClipboard: string;
208
233
  noMoreTabsTooltip: string;
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.4.0",
4
+ "version": "4.0.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",