@aws/mynah-ui 3.4.0 → 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
@@ -103,7 +103,17 @@ export interface ChatItem {
103
103
  };
104
104
  icon?: MynahIcons;
105
105
  status?: 'info' | 'success' | 'warning' | 'error';
106
- actions?: ChatItemAction[];
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
+ }>;
107
117
  }
108
118
  export interface ChatPrompt {
109
119
  prompt?: string;
@@ -118,6 +128,15 @@ export interface ChatItemAction extends ChatPrompt {
118
128
  status?: 'info' | 'success' | 'warning' | 'error';
119
129
  icon?: MynahIcons;
120
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
+ }
121
140
  export declare enum KeyMap {
122
141
  ESCAPE = "Escape",
123
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.4.0",
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",