@aws/mynah-ui 3.5.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?: {
@@ -108,8 +109,11 @@ export interface ChatItem {
108
109
  }
109
110
  export interface ChatItemFormItem {
110
111
  id: string;
112
+ type: 'select' | 'textarea' | 'textinput' | 'numericinput' | 'stars' | 'radiogroup';
113
+ mandatory?: boolean;
111
114
  title?: string;
112
- input?: string;
115
+ placeholder?: string;
116
+ value?: string;
113
117
  options?: Array<{
114
118
  value: string;
115
119
  label: string;
@@ -130,6 +134,7 @@ export interface ChatItemAction extends ChatPrompt {
130
134
  }
131
135
  export interface ChatItemButton {
132
136
  keepCardAfterClick?: boolean;
137
+ waitMandatoryFormItems?: boolean;
133
138
  text: string;
134
139
  id: string;
135
140
  disabled?: boolean;
@@ -222,6 +227,7 @@ export interface ConfigModel {
222
227
  save: string;
223
228
  cancel: string;
224
229
  submit: string;
230
+ pleaseSelect: string;
225
231
  stopGenerating: string;
226
232
  copyToClipboard: string;
227
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.5.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",