@appcorp/app-corp-vista 0.1.92 → 0.1.93
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/data/vista-chat-props.js
CHANGED
|
@@ -162,17 +162,19 @@ exports.vistaChatV2Props = {
|
|
|
162
162
|
],
|
|
163
163
|
actionItems: [
|
|
164
164
|
{
|
|
165
|
+
disable: false,
|
|
165
166
|
enabled: true,
|
|
166
|
-
order: 1,
|
|
167
167
|
handleOnClick: function () { return void 0; },
|
|
168
168
|
label: 'Send',
|
|
169
|
+
order: 1,
|
|
169
170
|
variant: vista_button_type_1.VISTA_BUTTON_VARIANT.PRIMARY,
|
|
170
171
|
},
|
|
171
172
|
{
|
|
173
|
+
disable: false,
|
|
172
174
|
enabled: true,
|
|
173
|
-
order: 2,
|
|
174
175
|
handleOnClick: function () { return void 0; },
|
|
175
176
|
label: 'End',
|
|
177
|
+
order: 2,
|
|
176
178
|
variant: vista_button_type_1.VISTA_BUTTON_VARIANT.SECONDARY,
|
|
177
179
|
},
|
|
178
180
|
],
|
|
@@ -42,14 +42,15 @@ var VistaChatV2 = function (_a) {
|
|
|
42
42
|
react_1.default.createElement("div", { className: 'w-full' },
|
|
43
43
|
react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, { handleOnBlur: handleOnBlur, handleOnChange: handleChatOnChange, handleOnFocus: handleOnFocus, handleOnKeyDown: handleOnKeyDown, id: chatId, placeholder: 'Enter message...', value: chatValue })),
|
|
44
44
|
actionItems
|
|
45
|
+
.slice(0, 2)
|
|
45
46
|
.filter(function (_a) {
|
|
46
47
|
var enabled = _a.enabled;
|
|
47
48
|
return enabled;
|
|
48
49
|
})
|
|
49
50
|
.sort(function (a, b) { return a.order - b.order; })
|
|
50
51
|
.map(function (_a) {
|
|
51
|
-
var handleOnClick = _a.handleOnClick, label = _a.label, variant = _a.variant;
|
|
52
|
-
return (react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { handleOnClick: handleOnClick, key: label, label: label, size: vista_button_type_1.VISTA_BUTTON_SIZE.LG, variant: variant }));
|
|
52
|
+
var handleOnClick = _a.handleOnClick, label = _a.label, variant = _a.variant, disable = _a.disable;
|
|
53
|
+
return (react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { disabled: disable, handleOnClick: handleOnClick, key: label, label: label, size: vista_button_type_1.VISTA_BUTTON_SIZE.LG, variant: variant }));
|
|
53
54
|
})))));
|
|
54
55
|
};
|
|
55
56
|
exports.VistaChatV2 = VistaChatV2;
|
package/package.json
CHANGED