@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/components/chat-item/chat-item-buttons.d.ts +5 -2
- package/dist/components/chat-item/chat-item-followup-option.d.ts +1 -0
- package/dist/components/chat-item/chat-item-form-items.d.ts +5 -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/form-items/radio-group.d.ts +28 -0
- package/dist/components/{select.d.ts → form-items/select.d.ts} +4 -2
- package/dist/components/form-items/stars.d.ts +22 -0
- package/dist/components/{text-area.d.ts → form-items/text-area.d.ts} +2 -1
- package/dist/components/form-items/text-input.d.ts +22 -0
- package/dist/components/icon.d.ts +2 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +8 -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?: {
|
|
@@ -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
|
-
|
|
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