@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/components/chat-item/chat-item-buttons.d.ts +21 -0
- package/dist/components/chat-item/chat-item-card.d.ts +4 -0
- package/dist/components/chat-item/chat-item-followup-option.d.ts +2 -0
- package/dist/components/chat-item/chat-item-form-items.d.ts +23 -0
- package/dist/components/chat-item/chat-prompt-input-sticky-card.d.ts +12 -0
- package/dist/components/chat-item/chat-wrapper.d.ts +1 -0
- package/dist/components/feedback-form/feedback-form.d.ts +0 -1
- package/dist/components/form-items/radio-group.d.ts +28 -0
- package/dist/components/form-items/select.d.ts +29 -0
- package/dist/components/form-items/stars.d.ts +22 -0
- package/dist/components/form-items/text-area.d.ts +21 -0
- package/dist/components/form-items/text-input.d.ts +22 -0
- package/dist/components/icon.d.ts +2 -1
- package/dist/main.d.ts +5 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +27 -2
- package/package.json +1 -1
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
|
-
|
|
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