@progress/kendo-react-conversational-ui 5.4.0-dev.202205271059 → 5.4.0-dev.202206090823
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/cdn/js/kendo-react-conversational-ui.js +1 -1
- package/dist/es/components/Chat.d.ts +2 -2
- package/dist/es/components/Chat.js +2 -0
- package/dist/es/components/MessageGroup.js +1 -1
- package/dist/es/components/Toolbar.d.ts +3 -1
- package/dist/es/components/base/SelectableItemsContainer.d.ts +3 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/ViewItem.js +1 -1
- package/dist/npm/components/Action.js +1 -1
- package/dist/npm/components/ActionGroup.js +1 -1
- package/dist/npm/components/Attachment.js +1 -1
- package/dist/npm/components/AttachmentGroup.js +1 -1
- package/dist/npm/components/Chat.d.ts +2 -2
- package/dist/npm/components/Chat.js +7 -5
- package/dist/npm/components/ChatMessage.js +3 -3
- package/dist/npm/components/DateMarker.js +2 -2
- package/dist/npm/components/MessageGroup.js +3 -3
- package/dist/npm/components/NewMessage.js +1 -1
- package/dist/npm/components/Toolbar.d.ts +3 -1
- package/dist/npm/components/base/SelectableItemsContainer.d.ts +3 -1
- package/dist/npm/components/templates/HeroCard.js +1 -1
- package/dist/npm/main.js +5 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-conversational-ui.js +1 -1
- package/package.json +6 -6
|
@@ -11,7 +11,7 @@ export declare class Chat extends React.Component<ChatProps, ChatState> {
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
static propTypes: {
|
|
14
|
-
messages: PropTypes.Requireable<object[]>;
|
|
14
|
+
messages: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
15
15
|
user: PropTypes.Requireable<object>;
|
|
16
16
|
messageTemplate: PropTypes.Requireable<any>;
|
|
17
17
|
attachmentTemplate: PropTypes.Requireable<any>;
|
|
@@ -25,7 +25,7 @@ export declare class Chat extends React.Component<ChatProps, ChatState> {
|
|
|
25
25
|
* @hidden
|
|
26
26
|
*/
|
|
27
27
|
static defaultProps: {
|
|
28
|
-
messages:
|
|
28
|
+
messages: never[];
|
|
29
29
|
dateFormat: string;
|
|
30
30
|
message: typeof ChatMessage;
|
|
31
31
|
};
|
|
@@ -32,6 +32,8 @@ var Chat = /** @class */ (function (_super) {
|
|
|
32
32
|
__extends(Chat, _super);
|
|
33
33
|
function Chat(props) {
|
|
34
34
|
var _this = _super.call(this, props) || this;
|
|
35
|
+
_this.viewItems = [];
|
|
36
|
+
_this.isDirectionRightToLeft = false;
|
|
35
37
|
_this.scrollToBottomOnLoadingData = true;
|
|
36
38
|
_this.onFocus = function () {
|
|
37
39
|
clearTimeout(_this.timeoutIdForChatLosingFocus);
|
|
@@ -57,7 +57,7 @@ var MessageGroup = /** @class */ (function (_super) {
|
|
|
57
57
|
return this.props.group.messages.map(function (msg, index) {
|
|
58
58
|
var result = [(React.createElement(_this.props.message, { item: msg, template: _this.props.itemTemplate, selected: msg.selectionIndex === _this.props.selectedItemIndex, onRequestSelection: _this.props.onRequestSelection, tabIndex: index === lastItemIndex && _this.props.isLastGroup ? 0 : -1, isFirstItemInGroup: index === 0, isLastItemInGroup: index === lastItemIndex, isOnlyItemInGroup: lastItemIndex === 0, key: index }))];
|
|
59
59
|
if (msg.attachments && msg.attachments.length === 1) {
|
|
60
|
-
result.push(React.createElement(Attachment, { item: msg.attachments[0], template: _this.props.attachmentTemplate, selected: false, key: "att-"
|
|
60
|
+
result.push(React.createElement(Attachment, { item: msg.attachments[0], template: _this.props.attachmentTemplate, selected: false, key: "att-".concat(index) }));
|
|
61
61
|
}
|
|
62
62
|
return result;
|
|
63
63
|
});
|
|
@@ -21,8 +21,10 @@ export interface SelectableItemsContainerState {
|
|
|
21
21
|
export declare abstract class SelectableItemsContainer<P extends SelectableItemsContainerProps, S extends SelectableItemsContainerState> extends React.Component<P, S> {
|
|
22
22
|
readonly state: any;
|
|
23
23
|
static getDerivedStateFromProps(props: SelectableItemsContainerProps, state: SelectableItemsContainerState): {
|
|
24
|
+
selectedItemIndex: null;
|
|
25
|
+
} | {
|
|
24
26
|
selectedItemIndex: number;
|
|
25
|
-
};
|
|
27
|
+
} | null;
|
|
26
28
|
protected onRequestContainerSelection: () => any;
|
|
27
29
|
protected onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
28
30
|
protected navigate(incrementSelection: boolean, newSelectedItemIndexUponFirstIncrement?: number): number | null;
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-conversational-ui',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1654761783,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/npm/ViewItem.js
CHANGED
|
@@ -32,7 +32,7 @@ var groupMessages = function (acc, msg, isLastMessage) {
|
|
|
32
32
|
if (lastItem && lastItem.type === 'message-group') {
|
|
33
33
|
messages = lastItem.messages;
|
|
34
34
|
}
|
|
35
|
-
if (messages && utils_1.isAuthor(msg.author, last(messages))) {
|
|
35
|
+
if (messages && (0, utils_1.isAuthor)(msg.author, last(messages))) {
|
|
36
36
|
messages.push(msg);
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
@@ -38,7 +38,7 @@ var Action = /** @class */ (function (_super) {
|
|
|
38
38
|
return (React.createElement("span", { className: this.getClassNames(), onClick: function (event) { return _this.props.onActionExecute(_this.props.item, event); }, ref: function (el) { return _this.elementToFocus = el; }, onKeyDown: this.onKeyDown, tabIndex: this.props.tabbable ? 0 : -1 }, this.props.item.title || this.props.item.value));
|
|
39
39
|
};
|
|
40
40
|
Action.prototype.getClassNames = function () {
|
|
41
|
-
return kendo_react_common_2.classNames('k-quick-reply', { 'k-first': this.props.isFirstItemInGroup }, { 'k-last': this.props.isLastItemInGroup }, { 'k-selected': this.props.selected }, { 'k-focus': this.props.selected });
|
|
41
|
+
return (0, kendo_react_common_2.classNames)('k-quick-reply', { 'k-first': this.props.isFirstItemInGroup }, { 'k-last': this.props.isLastItemInGroup }, { 'k-selected': this.props.selected }, { 'k-focus': this.props.selected });
|
|
42
42
|
};
|
|
43
43
|
return Action;
|
|
44
44
|
}(FocusableUponSelection_1.FocusableUponSelection));
|
|
@@ -35,7 +35,7 @@ var ActionGroup = /** @class */ (function (_super) {
|
|
|
35
35
|
})));
|
|
36
36
|
};
|
|
37
37
|
ActionGroup.prototype.getClassNames = function () {
|
|
38
|
-
return kendo_react_common_1.classNames('k-quick-replies');
|
|
38
|
+
return (0, kendo_react_common_1.classNames)('k-quick-replies');
|
|
39
39
|
};
|
|
40
40
|
return ActionGroup;
|
|
41
41
|
}(SelectableItemsContainer_1.SelectableItemsContainer));
|
|
@@ -48,7 +48,7 @@ var Attachment = /** @class */ (function (_super) {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
Attachment.prototype.getClassNames = function () {
|
|
51
|
-
return kendo_react_common_1.classNames({ 'k-selected': this.props.selected }, { 'k-focus': this.props.selected }, 'k-card-wrap', { 'k-first': this.props.isFirstItemInGroup }, { 'k-last': this.props.isLastItemInGroup });
|
|
51
|
+
return (0, kendo_react_common_1.classNames)({ 'k-selected': this.props.selected }, { 'k-focus': this.props.selected }, 'k-card-wrap', { 'k-first': this.props.isFirstItemInGroup }, { 'k-last': this.props.isLastItemInGroup });
|
|
52
52
|
};
|
|
53
53
|
Attachment.prototype.getTitleView = function () {
|
|
54
54
|
return this.props.item.title ?
|
|
@@ -83,7 +83,7 @@ var AttachmentGroup = /** @class */ (function (_super) {
|
|
|
83
83
|
return props.group.attachmentLayout !== 'list';
|
|
84
84
|
};
|
|
85
85
|
AttachmentGroup.prototype.getClassNames = function () {
|
|
86
|
-
return kendo_react_common_1.classNames({ 'k-card-deck': this.isCardDeckLayout(this.props) });
|
|
86
|
+
return (0, kendo_react_common_1.classNames)({ 'k-card-deck': this.isCardDeckLayout(this.props) });
|
|
87
87
|
};
|
|
88
88
|
return AttachmentGroup;
|
|
89
89
|
}(SelectableItemsContainer_1.SelectableItemsContainer));
|
|
@@ -11,7 +11,7 @@ export declare class Chat extends React.Component<ChatProps, ChatState> {
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
static propTypes: {
|
|
14
|
-
messages: PropTypes.Requireable<object[]>;
|
|
14
|
+
messages: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
15
15
|
user: PropTypes.Requireable<object>;
|
|
16
16
|
messageTemplate: PropTypes.Requireable<any>;
|
|
17
17
|
attachmentTemplate: PropTypes.Requireable<any>;
|
|
@@ -25,7 +25,7 @@ export declare class Chat extends React.Component<ChatProps, ChatState> {
|
|
|
25
25
|
* @hidden
|
|
26
26
|
*/
|
|
27
27
|
static defaultProps: {
|
|
28
|
-
messages:
|
|
28
|
+
messages: never[];
|
|
29
29
|
dateFormat: string;
|
|
30
30
|
message: typeof ChatMessage;
|
|
31
31
|
};
|
|
@@ -35,6 +35,8 @@ var Chat = /** @class */ (function (_super) {
|
|
|
35
35
|
__extends(Chat, _super);
|
|
36
36
|
function Chat(props) {
|
|
37
37
|
var _this = _super.call(this, props) || this;
|
|
38
|
+
_this.viewItems = [];
|
|
39
|
+
_this.isDirectionRightToLeft = false;
|
|
38
40
|
_this.scrollToBottomOnLoadingData = true;
|
|
39
41
|
_this.onFocus = function () {
|
|
40
42
|
clearTimeout(_this.timeoutIdForChatLosingFocus);
|
|
@@ -77,10 +79,10 @@ var Chat = /** @class */ (function (_super) {
|
|
|
77
79
|
}
|
|
78
80
|
};
|
|
79
81
|
_this.onMessageSend = function (message, event) {
|
|
80
|
-
kendo_react_common_1.dispatchEvent(_this.props.onMessageSend, event, _this, { message: message });
|
|
82
|
+
(0, kendo_react_common_1.dispatchEvent)(_this.props.onMessageSend, event, _this, { message: message });
|
|
81
83
|
};
|
|
82
84
|
_this.onActionExecute = function (action, event) {
|
|
83
|
-
kendo_react_common_1.dispatchEvent(_this.props.onActionExecute, event, _this, { action: action });
|
|
85
|
+
(0, kendo_react_common_1.dispatchEvent)(_this.props.onActionExecute, event, _this, { action: action });
|
|
84
86
|
if (!event.isDefaultPrevented()) {
|
|
85
87
|
switch (action.type) {
|
|
86
88
|
case 'reply':
|
|
@@ -102,7 +104,7 @@ var Chat = /** @class */ (function (_super) {
|
|
|
102
104
|
_this.newMsgComp.focusInput();
|
|
103
105
|
}
|
|
104
106
|
};
|
|
105
|
-
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
107
|
+
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
106
108
|
_this.state = { selectedItemIndex: null, isFirstRender: true };
|
|
107
109
|
return _this;
|
|
108
110
|
}
|
|
@@ -146,7 +148,7 @@ var Chat = /** @class */ (function (_super) {
|
|
|
146
148
|
}
|
|
147
149
|
};
|
|
148
150
|
Chat.prototype.getClassNames = function () {
|
|
149
|
-
return kendo_react_common_1.classNames('k-widget', 'k-chat', this.props.className, { 'k-rtl': this.isDirectionRightToLeft });
|
|
151
|
+
return (0, kendo_react_common_1.classNames)('k-widget', 'k-chat', this.props.className, { 'k-rtl': this.isDirectionRightToLeft });
|
|
150
152
|
};
|
|
151
153
|
Chat.prototype.checkIsDirectionRightToLeft = function (props) {
|
|
152
154
|
var result = props.dir !== undefined ? props.dir === 'rtl' :
|
|
@@ -179,7 +181,7 @@ var Chat = /** @class */ (function (_super) {
|
|
|
179
181
|
}
|
|
180
182
|
};
|
|
181
183
|
Chat.prototype.getViewItemsFromMsgs = function (msgs) {
|
|
182
|
-
return msgs.length > 0 ? ViewItem_1.convertMsgsToViewItems(msgs) : [];
|
|
184
|
+
return msgs.length > 0 ? (0, ViewItem_1.convertMsgsToViewItems)(msgs) : [];
|
|
183
185
|
};
|
|
184
186
|
/**
|
|
185
187
|
* @hidden
|
|
@@ -59,7 +59,7 @@ var ChatMessage = /** @class */ (function (_super) {
|
|
|
59
59
|
ChatMessage.prototype.getTimestampView = function () {
|
|
60
60
|
var result = null;
|
|
61
61
|
if (this.props.item.timestamp) {
|
|
62
|
-
result = (React.createElement("time", { className: "k-message-time", "aria-hidden": !this.props.selected }, kendo_react_intl_1.provideIntlService(this).formatDate(this.props.item.timestamp, this.props.dateFormat)));
|
|
62
|
+
result = (React.createElement("time", { className: "k-message-time", "aria-hidden": !this.props.selected }, (0, kendo_react_intl_1.provideIntlService)(this).formatDate(this.props.item.timestamp, this.props.dateFormat)));
|
|
63
63
|
}
|
|
64
64
|
return result;
|
|
65
65
|
};
|
|
@@ -71,7 +71,7 @@ var ChatMessage = /** @class */ (function (_super) {
|
|
|
71
71
|
return result;
|
|
72
72
|
};
|
|
73
73
|
ChatMessage.prototype.getClassNames = function () {
|
|
74
|
-
return kendo_react_common_1.classNames({ 'k-only': this.props.isOnlyItemInGroup }, { 'k-first': this.props.isFirstItemInGroup && !this.props.isOnlyItemInGroup }, { 'k-last': this.props.isLastItemInGroup && !this.props.isOnlyItemInGroup }, { 'k-selected': this.props.selected }, { 'k-focus': this.props.selected }, 'k-message');
|
|
74
|
+
return (0, kendo_react_common_1.classNames)({ 'k-only': this.props.isOnlyItemInGroup }, { 'k-first': this.props.isFirstItemInGroup && !this.props.isOnlyItemInGroup }, { 'k-last': this.props.isLastItemInGroup && !this.props.isOnlyItemInGroup }, { 'k-selected': this.props.selected }, { 'k-focus': this.props.selected }, 'k-message');
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
77
|
* @hidden
|
|
@@ -83,4 +83,4 @@ var ChatMessage = /** @class */ (function (_super) {
|
|
|
83
83
|
return ChatMessage;
|
|
84
84
|
}(FocusableUponSelection_1.FocusableUponSelection));
|
|
85
85
|
exports.ChatMessage = ChatMessage;
|
|
86
|
-
kendo_react_intl_1.registerForIntl(ChatMessage);
|
|
86
|
+
(0, kendo_react_intl_1.registerForIntl)(ChatMessage);
|
|
@@ -27,9 +27,9 @@ var DateMarker = /** @class */ (function (_super) {
|
|
|
27
27
|
}
|
|
28
28
|
DateMarker.prototype.render = function () {
|
|
29
29
|
var item = this.props.item;
|
|
30
|
-
return React.createElement("div", { className: "k-timestamp" }, kendo_react_intl_1.provideIntlService(this).formatDate(item.timestamp, 'D'));
|
|
30
|
+
return React.createElement("div", { className: "k-timestamp" }, (0, kendo_react_intl_1.provideIntlService)(this).formatDate(item.timestamp, 'D'));
|
|
31
31
|
};
|
|
32
32
|
return DateMarker;
|
|
33
33
|
}(React.Component));
|
|
34
34
|
exports.default = DateMarker;
|
|
35
|
-
kendo_react_intl_1.registerForIntl(DateMarker);
|
|
35
|
+
(0, kendo_react_intl_1.registerForIntl)(DateMarker);
|
|
@@ -34,9 +34,9 @@ var MessageGroup = /** @class */ (function (_super) {
|
|
|
34
34
|
this.getGroupMessagesView()));
|
|
35
35
|
};
|
|
36
36
|
MessageGroup.prototype.getMsgGroupClassNames = function () {
|
|
37
|
-
return kendo_react_common_1.classNames('k-message-group', {
|
|
37
|
+
return (0, kendo_react_common_1.classNames)('k-message-group', {
|
|
38
38
|
'k-no-avatar': !this.props.group.author.avatarUrl,
|
|
39
|
-
'k-alt': utils_1.isAuthor(this.props.user, this.props.group.messages[0])
|
|
39
|
+
'k-alt': (0, utils_1.isAuthor)(this.props.user, this.props.group.messages[0])
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
MessageGroup.prototype.getAvatarView = function () {
|
|
@@ -59,7 +59,7 @@ var MessageGroup = /** @class */ (function (_super) {
|
|
|
59
59
|
return this.props.group.messages.map(function (msg, index) {
|
|
60
60
|
var result = [(React.createElement(_this.props.message, { item: msg, template: _this.props.itemTemplate, selected: msg.selectionIndex === _this.props.selectedItemIndex, onRequestSelection: _this.props.onRequestSelection, tabIndex: index === lastItemIndex && _this.props.isLastGroup ? 0 : -1, isFirstItemInGroup: index === 0, isLastItemInGroup: index === lastItemIndex, isOnlyItemInGroup: lastItemIndex === 0, key: index }))];
|
|
61
61
|
if (msg.attachments && msg.attachments.length === 1) {
|
|
62
|
-
result.push(React.createElement(Attachment_1.default, { item: msg.attachments[0], template: _this.props.attachmentTemplate, selected: false, key: "att-"
|
|
62
|
+
result.push(React.createElement(Attachment_1.default, { item: msg.attachments[0], template: _this.props.attachmentTemplate, selected: false, key: "att-".concat(index) }));
|
|
63
63
|
}
|
|
64
64
|
return result;
|
|
65
65
|
});
|
|
@@ -80,7 +80,7 @@ var NewMessage = /** @class */ (function (_super) {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
NewMessage.prototype.getClassNames = function () {
|
|
83
|
-
return kendo_react_common_1.classNames({ 'k-focus': this.state.focused }, 'k-input k-input k-input-md k-input-solid k-input-solid-base');
|
|
83
|
+
return (0, kendo_react_common_1.classNames)({ 'k-focus': this.state.focused }, 'k-input k-input k-input-md k-input-solid k-input-solid-base');
|
|
84
84
|
};
|
|
85
85
|
/* eslint-disable-next-line max-len */
|
|
86
86
|
NewMessage.buttonIconPath = 'M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z';
|
|
@@ -21,8 +21,10 @@ export interface SelectableItemsContainerState {
|
|
|
21
21
|
export declare abstract class SelectableItemsContainer<P extends SelectableItemsContainerProps, S extends SelectableItemsContainerState> extends React.Component<P, S> {
|
|
22
22
|
readonly state: any;
|
|
23
23
|
static getDerivedStateFromProps(props: SelectableItemsContainerProps, state: SelectableItemsContainerState): {
|
|
24
|
+
selectedItemIndex: null;
|
|
25
|
+
} | {
|
|
24
26
|
selectedItemIndex: number;
|
|
25
|
-
};
|
|
27
|
+
} | null;
|
|
26
28
|
protected onRequestContainerSelection: () => any;
|
|
27
29
|
protected onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
28
30
|
protected navigate(incrementSelection: boolean, newSelectedItemIndexUponFirstIncrement?: number): number | null;
|
|
@@ -28,7 +28,7 @@ var HeroCard = /** @class */ (function (_super) {
|
|
|
28
28
|
function HeroCard() {
|
|
29
29
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30
30
|
_this.onBtnClick = function (action, event) {
|
|
31
|
-
kendo_react_common_1.dispatchEvent(_this.props.onActionExecute, event, _this, { action: action });
|
|
31
|
+
(0, kendo_react_common_1.dispatchEvent)(_this.props.onActionExecute, event, _this, { action: action });
|
|
32
32
|
};
|
|
33
33
|
return _this;
|
|
34
34
|
}
|
package/dist/npm/main.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-conversational-ui',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1654761783,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@progress/kendo-react-conversational-ui",["@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-react-intl","react"],function(t,e){var o={},s={},i={},a={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),{setters:[function(e){Object.keys(e).forEach(function(t){o[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){s[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){i[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){a[t]=e[t]})}],execute:function(){var n,r;t((n={262:(t,e,o)=>{"use strict";var i=o(586);function n(){}function r(){}r.resetWarningCache=n,t.exports=function(){function t(t,e,o,n,r,s){if(s!==i)throw(s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",s}function e(){return t}var o={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:n};return o.PropTypes=o}},980:(t,e,o)=>{t.exports=o(262)()},586:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},271:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},310:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},203:(t,e,o)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertMsgsToViewItems=void 0;function c(t){return t[t.length-1]}var p=o(147);e.convertMsgsToViewItems=function(t){var e,a,t=t.slice().reduce((a=t.length,function(t,e,o){var n,r,s,i,o=o===a-1;return n=t,s=e.timestamp,i=c(n),!s||i&&(i=i.timestamp,!(r=s)||!i||i.getDate()===r.getDate()&&i.getMonth()===r.getMonth()&&i.getFullYear()===r.getFullYear())||(i={type:"date-marker",timestamp:s,trackBy:s.getTime()},n.push(i)),r=e,n=c(s=t),i=void 0,r.typing&&!o||((i=n&&"message-group"===n.type?n.messages:i)&&p.isAuthor(r.author,c(i))?i.push(r):s.push({type:"message-group",messages:[r],author:r.author,timestamp:r.timestamp,trackBy:r})),e.attachments&&1<e.attachments.length&&t.push({type:"attachment-group",attachments:e.attachments,attachmentLayout:e.attachmentLayout,timestamp:e.timestamp,trackBy:e}),e.suggestedActions&&o&&t.push({type:"action-group",actions:e.suggestedActions,timestamp:e.timestamp,trackBy:e}),t}),[]),o=0;return(e=t).forEach(function(t){"message-group"===t.type?t.messages.forEach(function(t){t.selectionIndex=o++}):"attachment-group"!==t.type&&"action-group"!==t.type||(t.selectionIndex=o++)}),e.lastSelectionIndex=o-1,t}},240:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},647:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},286:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},318:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},325:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(811),o=(r=o(854).FocusableUponSelection,s(p,r),p.prototype.render=function(){var e=this;return i.createElement("span",{className:this.getClassNames(),onClick:function(t){return e.props.onActionExecute(e.props.item,t)},ref:function(t){return e.elementToFocus=t},onKeyDown:this.onKeyDown,tabIndex:this.props.tabbable?0:-1},this.props.item.title||this.props.item.value)},p.prototype.getClassNames=function(){return c.classNames("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected})},p);function p(){var e=null!==r&&r.apply(this,arguments)||this;return e.onKeyDown=function(t){t.keyCode===a.Keys.enter&&e.props.onActionExecute(e.props.item,t)},e}e.default=o},88:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(325),o=(r=o(536).SelectableItemsContainer,s(p,r),p.prototype.render=function(){var o=this,n=this.props.group.actions?this.props.group.actions.length-1:0;return i.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map(function(t,e){return i.createElement(c.default,{item:t,onActionExecute:o.props.onActionExecute,selected:e===o.state.selectedItemIndex,tabbable:o.props.isLastGroup&&e===o.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===n,key:e})}))},p.prototype.getClassNames=function(){return a.classNames("k-quick-replies")},p);function p(t){return r.call(this,t)||this}e.default=o},797:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),o=(r=o(854).FocusableUponSelection,s(c,r),c.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.getTabIndexValue(),onClick:this.props.onClick,ref:function(t){return e.elementToFocus=t}},this.props.template?i.createElement(this.props.template,{item:this.props.item}):i.createElement("div",{className:"k-card"},i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView(),this.getContentView())))},c.prototype.getTabIndexValue=function(){return void 0===this.props.tabbable?void 0:this.props.tabbable?0:-1},c.prototype.getClassNames=function(){return a.classNames({"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-card-wrap",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup})},c.prototype.getTitleView=function(){return this.props.item.title?i.createElement("h5",{className:"k-card-title"},this.props.item.title):null},c.prototype.getSubtitleView=function(){return this.props.item.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.item.subtitle):null},c.prototype.getContentView=function(){return 0===this.props.item.contentType.indexOf("image/")?i.createElement("img",{src:this.props.item.content}):this.props.item.content},c);function c(){return null!==r&&r.apply(this,arguments)||this}e.default=o},564:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(797),p=o(536),u=o(414),o=(r=p.SelectableItemsContainer,s(l,r),l.prototype.render=function(){var o=this,t=this.isCardDeckLayout(this.props),e=i.createElement("div",{className:this.getClassNames(),onKeyDown:t?void 0:this.onKeyDown},this.props.group.attachments.map(function(t,e){return i.createElement(c.default,{item:t,template:o.props.itemTemplate,selected:e===o.state.selectedItemIndex,tabbable:o.props.isLastGroup&&e===o.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===o.getLastItemIndex(),onClick:function(){return o.onAttachmentClick(e)},key:e})}));return t?i.createElement("div",{className:"k-card-deck-scrollwrap",onKeyDown:this.onKeyDown},this.getLeftScrollBtn(),e,this.getRightScrollBtn()):e},Object.defineProperty(l.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!1,configurable:!0}),l.prototype.getLastItemIndex=function(){return this.props.group.attachments.length-1},l.prototype.getLeftScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex?i.createElement(u.Button,{icon:"arrow-chevron-left",onClick:function(){return t.onNavigateBtnClick(!1)}}):e},l.prototype.getRightScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()?i.createElement(u.Button,{icon:"arrow-chevron-right",onClick:function(){return t.onNavigateBtnClick(!0)}}):e},l.prototype.onAttachmentClick=function(t){this.onRequestContainerSelection(),this.setState({selectedItemIndex:t})},l.prototype.onNavigateBtnClick=function(t){this.onRequestContainerSelection(),this.navigate(t,1)},l.prototype.isCardDeckLayout=function(t){return"list"!==t.group.attachmentLayout},l.prototype.getClassNames=function(){return a.classNames({"k-card-deck":this.isCardDeckLayout(this.props)})},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=o},177:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.Chat=void 0,o(811)),a=o(980),c=o(954),p=o(203),u=o(88),l=o(564),m=o(372),h=o(575),d=o(415),f=o(626),y=o(811),g=o(363),o=(r=c.Component,s(v,r),v.prototype.render=function(){var e=this;return this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),c.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},c.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-live":"polite",onScroll:function(t){e.scrollToBottomOnLoadingData=t.currentTarget.scrollTop===t.currentTarget.scrollHeight-t.currentTarget.clientHeight},ref:function(t){return e.viewItemsWrapperEl=t}},c.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),c.createElement(d.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},v.prototype.componentDidMount=function(){var t=this;this.setState({isFirstRender:!1},function(){t.nextTickId=window.setTimeout(function(){return t.scrollViewItemsToBottom()},250)})},v.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},v.prototype.componentDidUpdate=function(t){t.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},v.prototype.getClassNames=function(){return i.classNames("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},v.prototype.checkIsDirectionRightToLeft=function(t){t=void 0!==t.dir?"rtl"===t.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(t)},v.prototype.renderViewItems=function(){var o=this,n=this.viewItems.length-1;return this.viewItems.map(function(t,e){return"date-marker"===t.type?c.createElement(m.default,{item:t,key:e}):"message-group"===t.type?c.createElement(h.default,{group:t,itemTemplate:o.props.messageTemplate,attachmentTemplate:o.props.attachmentTemplate,user:o.props.user,selectedItemIndex:o.state.selectedItemIndex,onRequestSelection:o.onSelectionRequested,isLastGroup:e===n,key:e,message:o.props.message||v.defaultProps.message}):"attachment-group"===t.type?c.createElement(l.default,{group:t,itemTemplate:o.props.attachmentTemplate,onRequestSelection:o.onSelectionRequested,selected:t.selectionIndex===o.state.selectedItemIndex,isLastGroup:e===n,key:e}):"action-group"===t.type?c.createElement(u.default,{group:t,onActionExecute:o.onActionExecute,onRequestSelection:o.onSelectionRequested,selected:t.selectionIndex===o.state.selectedItemIndex,isLastGroup:e===n,key:e}):void 0})},v.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},v.prototype.getViewItemsFromMsgs=function(t){return 0<t.length?p.convertMsgsToViewItems(t):[]},v.propTypes={messages:a.arrayOf(a.object),user:a.object,messageTemplate:a.any,attachmentTemplate:a.any,width:a.oneOfType([a.string,a.number]),onMessageSend:a.func,onActionExecute:a.func,dir:a.string,messageBox:a.any},v.defaultProps={messages:[],dateFormat:"g",message:f.ChatMessage},v);function v(t){var n=r.call(this,t)||this;return n.scrollToBottomOnLoadingData=!0,n.onFocus=function(){clearTimeout(n.timeoutIdForChatLosingFocus)},n.onBlur=function(){n.timeoutIdForChatLosingFocus=window.setTimeout(function(){n.setState({selectedItemIndex:null})},0)},n.onSelectionRequested=function(t){n.setState({selectedItemIndex:t})},n.onKeyDown=function(t){var e=null,o=null!==n.state.selectedItemIndex?n.state.selectedItemIndex:n.viewItems.lastSelectionIndex;t.keyCode===i.Keys.up?null===o?e=0:0<o&&(e=o-1):t.keyCode===i.Keys.down&&(null===o?e=0:o<n.viewItems.lastSelectionIndex&&(e=o+1)),null!==e&&(n.setState({selectedItemIndex:e}),t.preventDefault())},n.onMessageSend=function(t,e){i.dispatchEvent(n.props.onMessageSend,e,n,{message:t})},n.onActionExecute=function(t,e){if(i.dispatchEvent(n.props.onActionExecute,e,n,{action:t}),!e.isDefaultPrevented()){switch(t.type){case"reply":n.onMessageSend({author:n.props.user,text:t.value,timestamp:new Date},e);break;case"call":window.open("tel:"+t.value);break;case"openUrl":window.open(t.value)}n.newMsgComp.focusInput()}},y.validatePackage(g.packageMetadata),n.state={selectedItemIndex:null,isFirstRender:!0},n}e.Chat=o},626:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.ChatMessage=void 0,o(954)),a=o(811),c=o(987),o=(r=o(854).FocusableUponSelection,s(p,r),p.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.props.tabIndex,onClick:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},onFocus:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},ref:function(t){return e.elementToFocus=t}},this.getTimestampView(),this.getMainView(),this.getStatusView())},p.prototype.getMainView=function(){return this.props.item.typing?i.createElement("div",{className:"k-bubble"},i.createElement("div",{className:"k-typing-indicator"},i.createElement("span",null),i.createElement("span",null),i.createElement("span",null))):this.props.template?i.createElement(this.props.template,{item:this.props.item}):this.props.item.text?i.createElement("div",{className:"k-bubble"},this.props.item.text):null},p.prototype.getTimestampView=function(){var t=null;return t=this.props.item.timestamp?i.createElement("time",{className:"k-message-time","aria-hidden":!this.props.selected},c.provideIntlService(this).formatDate(this.props.item.timestamp,this.props.dateFormat)):t},p.prototype.getStatusView=function(){var t=null;return t=this.props.item.status?i.createElement("span",{className:"k-message-status"},this.props.item.status):t},p.prototype.getClassNames=function(){return a.classNames({"k-only":this.props.isOnlyItemInGroup},{"k-first":this.props.isFirstItemInGroup&&!this.props.isOnlyItemInGroup},{"k-last":this.props.isLastItemInGroup&&!this.props.isOnlyItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-message")},p.defaultProps={dateFormat:"g",tabIndex:-1},p);function p(){return null!==r&&r.apply(this,arguments)||this}e.ChatMessage=o,c.registerForIntl(o)},372:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(987),o=(r=i.Component,s(c,r),c.prototype.render=function(){var t=this.props.item;return i.createElement("div",{className:"k-timestamp"},a.provideIntlService(this).formatDate(t.timestamp,"D"))},c);function c(){return null!==r&&r.apply(this,arguments)||this}e.default=o,a.registerForIntl(o)},575:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(797),p=o(147),o=(r=i.Component,s(u,r),u.prototype.render=function(){return i.createElement("div",{className:this.getMsgGroupClassNames()},this.getAvatarView(),this.getAuthorNameView(),this.getGroupMessagesView())},u.prototype.getMsgGroupClassNames=function(){return a.classNames("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":p.isAuthor(this.props.user,this.props.group.messages[0])})},u.prototype.getAvatarView=function(){var t=null;return t=this.props.group.author.avatarUrl?i.createElement("img",{src:this.props.group.author.avatarUrl,className:"k-avatar"}):t},u.prototype.getAuthorNameView=function(){var t=null;return t=this.props.group.author.name?i.createElement("p",{className:"k-author"},this.props.group.author.name):t},u.prototype.getGroupMessagesView=function(){var n=this,r=this.props.group.messages.length-1;return this.props.group.messages.map(function(t,e){var o=[i.createElement(n.props.message,{item:t,template:n.props.itemTemplate,selected:t.selectionIndex===n.props.selectedItemIndex,onRequestSelection:n.props.onRequestSelection,tabIndex:e===r&&n.props.isLastGroup?0:-1,isFirstItemInGroup:0===e,isLastItemInGroup:e===r,isOnlyItemInGroup:0==r,key:e})];return t.attachments&&1===t.attachments.length&&o.push(i.createElement(c.default,{item:t.attachments[0],template:n.props.attachmentTemplate,selected:!1,key:"att-"+e})),o})},u);function u(){return null!==r&&r.apply(this,arguments)||this}e.default=o},415:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(811)),a=o(954),c=o(540),p=o(414),o=(r=a.Component,s(u,r),u.prototype.render=function(){var e=this,t=a.createElement("input",{type:"text",className:this.getClassNames(),placeholder:this.props.placeholder,onKeyDown:this.onInputKeyDown,onFocus:function(){return e.setState({focused:!0})},onBlur:function(){return e.setState({focused:!1})},ref:function(t){return e.inputEl=t}}),o=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":"Send...",dir:this.props.isDirectionRightToLeft?"rtl":void 0},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},a.createElement("path",{d:u.buttonIconPath})))),n=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)}},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},a.createElement("g",null,a.createElement("path",{d:"M128,240c0-26.4-21.6-48-48-48s-48,21.6-48,48s21.6,48,48,48S128,266.4,128,240z"}),a.createElement("path",{d:"M192,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C213.6,192,192,213.6,192,240z"}),a.createElement("path",{d:"M352,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C373.6,192,352,213.6,352,240z"})))));return a.createElement(a.Fragment,null,a.createElement("div",{className:"k-message-box k-textbox k-input k-input-md k-rounded-md k-input-solid"},this.props.MessageBox?a.createElement(this.props.MessageBox,{messageInput:t,sendButton:o,toolbarButton:n}):a.createElement(a.Fragment,null,t,this.props.toolbar&&n,o)),this.props.showToolbar&&a.createElement(c.default,null,this.props.toolbar))},u.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},u.prototype.getClassNames=function(){return i.classNames({"k-focus":this.state.focused},"k-input k-input k-input-md k-input-solid k-input-solid-base")},u.buttonIconPath="M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z",u);function u(){var o=null!==r&&r.apply(this,arguments)||this;return o.state={focused:!1},o.inputEl=null,o.onInputKeyDown=function(t){t.keyCode===i.Keys.enter&&o.sendMessage(t)},o.sendMessage=function(t){var e;o.props.onMessageSend&&null!==o.inputEl&&(e=o.inputEl.value)&&(e={author:o.props.user,text:e,timestamp:new Date},o.props.onMessageSend(e,t)),null!==o.inputEl&&(o.inputEl.value=null)},o}e.default=o},540:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),o=(r=i.Component,s(a,r),a.prototype.render=function(){return i.createElement("div",{className:"k-toolbar-box"},i.createElement("div",{className:"k-button-list"},this.props.children))},a);function a(){return null!==r&&r.apply(this,arguments)||this}e.default=o},854:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.FocusableUponSelection=void 0,r=o(954).Component,s(i,r),i.prototype.componentDidUpdate=function(t){!t.selected&&this.props.selected&&this.elementToFocus.focus()},i);function i(){return null!==r&&r.apply(this,arguments)||this}e.FocusableUponSelection=o},536:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.SelectableItemsContainer=void 0,o(954)),a=o(811),o=(s=i.Component,r(c,s),c.getDerivedStateFromProps=function(t,e){return t.selected||null===e.selectedItemIndex?t.selected&&null===e.selectedItemIndex?{selectedItemIndex:0}:null:{selectedItemIndex:null}},c.prototype.navigate=function(t,e){void 0===e&&(e=0);var o=null,n=this.state.selectedItemIndex;return t?null===n?o=e:n<this.getLastSelectionIndex()&&(o=n+1):null===n?o=0:0<n&&(o=n-1),null!==o&&this.setState({selectedItemIndex:o}),o},Object.defineProperty(c.prototype,"isKeyboardNavigationLeftRight",{get:function(){return!0},enumerable:!1,configurable:!0}),c.prototype.getLastSelectionIndex=function(){var t,e=-1;return"action-group"===this.props.group.type?e=(t=this.props.group).actions?t.actions.length-1:-1:"attachment-group"===this.props.group.type&&(e=(t=this.props.group).attachments?t.attachments.length-1:-1),e},c);function c(){var r=null!==s&&s.apply(this,arguments)||this;return r.state={selectedItemIndex:null},r.onRequestContainerSelection=function(){return r.props.onRequestSelection(r.props.group.selectionIndex)},r.onKeyDown=function(t){var e,o=null,n=r.isKeyboardNavigationLeftRight?(e=a.Keys.left,a.Keys.right):(e=a.Keys.up,a.Keys.down);t.keyCode===e?o=r.navigate(!1):t.keyCode===n&&(o=r.navigate(!0)),null!==o&&(t.preventDefault(),t.stopPropagation())},r}e.SelectableItemsContainer=o},280:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.HeroCard=void 0,o(954)),a=o(414),c=o(811),o=(r=i.Component,s(p,r),p.prototype.render=function(){return i.createElement("div",{className:"k-card"},i.createElement("img",{className:"k-card-image",src:this.props.imageUrl,style:{maxWidth:this.props.imageMaxWidth}}),i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView()),i.createElement("div",{className:"k-card-actions k-card-actions-vertical"},this.getActionsView()))},p.prototype.getActionsView=function(){var o=this;return this.props.actions.map(function(e,t){return i.createElement("span",{className:"k-card-action",key:t},i.createElement(a.Button,{fillMode:"flat",onClick:function(t){return o.onBtnClick(e,t)}},e.title))})},p.prototype.getTitleView=function(){var t=null;return t=this.props.title?i.createElement("h5",{className:"k-card-title"},this.props.title):t},p.prototype.getSubtitleView=function(){var t=null;return t=this.props.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle):t},p);function p(){var o=null!==r&&r.apply(this,arguments)||this;return o.onBtnClick=function(t,e){c.dispatchEvent(o.props.onActionExecute,e,o,{action:t})},o}e.HeroCard=o},468:function(t,e,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,o,n){void 0===n&&(n=o),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[o]}})}:function(t,e,o,n){t[n=void 0===n?o:n]=e[o]}),r=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||n(e,t,o)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.ChatMessage=void 0,o(626));Object.defineProperty(e,"ChatMessage",{enumerable:!0,get:function(){return s.ChatMessage}}),r(o(240),e),r(o(647),e),r(o(286),e),r(o(318),e),r(o(177),e),r(o(271),e),r(o(310),e),r(o(280),e)},363:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1653648066,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},147:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAuthor=void 0,e.isAuthor=function(t,e){return t&&e.author&&t.id===e.author.id}},414:t=>{"use strict";t.exports=o},811:t=>{"use strict";t.exports=s},987:t=>{"use strict";t.exports=i},954:t=>{"use strict";t.exports=a}},r={},function t(e){var o=r[e];if(void 0!==o)return o.exports;o=r[e]={exports:{}};return n[e].call(o.exports,o,o.exports,t),o.exports}(468)))}}});
|
|
1
|
+
System.register("@progress/kendo-react-conversational-ui",["@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-react-intl","react"],function(t,e){var o={},s={},i={},a={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),{setters:[function(e){Object.keys(e).forEach(function(t){o[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){s[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){i[t]=e[t]})},function(e){Object.keys(e).forEach(function(t){a[t]=e[t]})}],execute:function(){var n,r;t((n={262:(t,e,o)=>{var i=o(586);function n(){}function r(){}r.resetWarningCache=n,t.exports=function(){function t(t,e,o,n,r,s){if(s!==i)throw(s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",s}function e(){return t}var o={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:n};return o.PropTypes=o}},980:(t,e,o)=>{t.exports=o(262)()},586:t=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},271:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},310:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},203:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.convertMsgsToViewItems=void 0;function c(t){return t[t.length-1]}var p=o(147);e.convertMsgsToViewItems=function(t){var e,a,t=t.slice().reduce((a=t.length,function(t,e,o){var n,r,s,i,o=o===a-1;return n=t,s=e.timestamp,i=c(n),!s||i&&(i=i.timestamp,!(r=s)||!i||i.getDate()===r.getDate()&&i.getMonth()===r.getMonth()&&i.getFullYear()===r.getFullYear())||(i={type:"date-marker",timestamp:s,trackBy:s.getTime()},n.push(i)),r=e,n=c(s=t),i=void 0,r.typing&&!o||((i=n&&"message-group"===n.type?n.messages:i)&&(0,p.isAuthor)(r.author,c(i))?i.push(r):s.push({type:"message-group",messages:[r],author:r.author,timestamp:r.timestamp,trackBy:r})),e.attachments&&1<e.attachments.length&&t.push({type:"attachment-group",attachments:e.attachments,attachmentLayout:e.attachmentLayout,timestamp:e.timestamp,trackBy:e}),e.suggestedActions&&o&&t.push({type:"action-group",actions:e.suggestedActions,timestamp:e.timestamp,trackBy:e}),t}),[]),o=0;return(e=t).forEach(function(t){"message-group"===t.type?t.messages.forEach(function(t){t.selectionIndex=o++}):"attachment-group"!==t.type&&"action-group"!==t.type||(t.selectionIndex=o++)}),e.lastSelectionIndex=o-1,t}},240:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},647:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},286:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},318:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},325:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(811),o=(r=o(854).FocusableUponSelection,s(p,r),p.prototype.render=function(){var e=this;return i.createElement("span",{className:this.getClassNames(),onClick:function(t){return e.props.onActionExecute(e.props.item,t)},ref:function(t){return e.elementToFocus=t},onKeyDown:this.onKeyDown,tabIndex:this.props.tabbable?0:-1},this.props.item.title||this.props.item.value)},p.prototype.getClassNames=function(){return(0,c.classNames)("k-quick-reply",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected})},p);function p(){var e=null!==r&&r.apply(this,arguments)||this;return e.onKeyDown=function(t){t.keyCode===a.Keys.enter&&e.props.onActionExecute(e.props.item,t)},e}e.default=o},88:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(325),o=(r=o(536).SelectableItemsContainer,s(p,r),p.prototype.render=function(){var o=this,n=this.props.group.actions?this.props.group.actions.length-1:0;return i.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map(function(t,e){return i.createElement(c.default,{item:t,onActionExecute:o.props.onActionExecute,selected:e===o.state.selectedItemIndex,tabbable:o.props.isLastGroup&&e===o.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===n,key:e})}))},p.prototype.getClassNames=function(){return(0,a.classNames)("k-quick-replies")},p);function p(t){return r.call(this,t)||this}e.default=o},797:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),o=(r=o(854).FocusableUponSelection,s(c,r),c.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.getTabIndexValue(),onClick:this.props.onClick,ref:function(t){return e.elementToFocus=t}},this.props.template?i.createElement(this.props.template,{item:this.props.item}):i.createElement("div",{className:"k-card"},i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView(),this.getContentView())))},c.prototype.getTabIndexValue=function(){return void 0===this.props.tabbable?void 0:this.props.tabbable?0:-1},c.prototype.getClassNames=function(){return(0,a.classNames)({"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-card-wrap",{"k-first":this.props.isFirstItemInGroup},{"k-last":this.props.isLastItemInGroup})},c.prototype.getTitleView=function(){return this.props.item.title?i.createElement("h5",{className:"k-card-title"},this.props.item.title):null},c.prototype.getSubtitleView=function(){return this.props.item.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.item.subtitle):null},c.prototype.getContentView=function(){return 0===this.props.item.contentType.indexOf("image/")?i.createElement("img",{src:this.props.item.content}):this.props.item.content},c);function c(){return null!==r&&r.apply(this,arguments)||this}e.default=o},564:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(797),p=o(536),u=o(414),o=(r=p.SelectableItemsContainer,s(l,r),l.prototype.render=function(){var o=this,t=this.isCardDeckLayout(this.props),e=i.createElement("div",{className:this.getClassNames(),onKeyDown:t?void 0:this.onKeyDown},this.props.group.attachments.map(function(t,e){return i.createElement(c.default,{item:t,template:o.props.itemTemplate,selected:e===o.state.selectedItemIndex,tabbable:o.props.isLastGroup&&e===o.state.selectedItemIndex,isFirstItemInGroup:0===e,isLastItemInGroup:e===o.getLastItemIndex(),onClick:function(){return o.onAttachmentClick(e)},key:e})}));return t?i.createElement("div",{className:"k-card-deck-scrollwrap",onKeyDown:this.onKeyDown},this.getLeftScrollBtn(),e,this.getRightScrollBtn()):e},Object.defineProperty(l.prototype,"isKeyboardNavigationLeftRight",{get:function(){return this.isCardDeckLayout(this.props)},enumerable:!1,configurable:!0}),l.prototype.getLastItemIndex=function(){return this.props.group.attachments.length-1},l.prototype.getLeftScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex?i.createElement(u.Button,{icon:"arrow-chevron-left",onClick:function(){return t.onNavigateBtnClick(!1)}}):e},l.prototype.getRightScrollBtn=function(){var t=this,e=null;return e=this.isCardDeckLayout(this.props)&&this.state.selectedItemIndex!==this.getLastItemIndex()?i.createElement(u.Button,{icon:"arrow-chevron-right",onClick:function(){return t.onNavigateBtnClick(!0)}}):e},l.prototype.onAttachmentClick=function(t){this.onRequestContainerSelection(),this.setState({selectedItemIndex:t})},l.prototype.onNavigateBtnClick=function(t){this.onRequestContainerSelection(),this.navigate(t,1)},l.prototype.isCardDeckLayout=function(t){return"list"!==t.group.attachmentLayout},l.prototype.getClassNames=function(){return(0,a.classNames)({"k-card-deck":this.isCardDeckLayout(this.props)})},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=o},177:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.Chat=void 0,o(811)),a=o(980),c=o(954),p=o(203),u=o(88),l=o(564),m=o(372),h=o(575),d=o(415),f=o(626),y=o(811),g=o(363),o=(r=c.Component,s(v,r),v.prototype.render=function(){var e=this;return this.viewItems=this.getViewItemsFromMsgs(this.props.messages),this.isDirectionRightToLeft=this.checkIsDirectionRightToLeft(this.props),c.createElement("div",{style:{width:this.props.width},onKeyDown:this.onKeyDown,className:this.getClassNames(),ref:function(t){return e.chatWrapperEl=t}},c.createElement("div",{className:"k-message-list k-avatars",onBlur:this.onBlur,onFocus:this.onFocus,role:"log","aria-live":"polite",onScroll:function(t){e.scrollToBottomOnLoadingData=t.currentTarget.scrollTop===t.currentTarget.scrollHeight-t.currentTarget.clientHeight},ref:function(t){return e.viewItemsWrapperEl=t}},c.createElement("div",{className:"k-message-list-content"},this.renderViewItems())),c.createElement(d.default,{user:this.props.user,onMessageSend:this.onMessageSend,isDirectionRightToLeft:this.isDirectionRightToLeft,ref:function(t){return e.newMsgComp=t},placeholder:this.props.placeholder,MessageBox:this.props.messageBox,toolbar:this.props.toolbar,onToolbarActionButtonClick:this.props.onToolbarActionExecute,showToolbar:this.props.showToolbar}))},v.prototype.componentDidMount=function(){var t=this;this.setState({isFirstRender:!1},function(){t.nextTickId=window.setTimeout(function(){return t.scrollViewItemsToBottom()},250)})},v.prototype.componentWillUnmount=function(){clearTimeout(this.nextTickId)},v.prototype.componentDidUpdate=function(t){t.messages.length!==this.props.messages.length&&this.scrollToBottomOnLoadingData&&this.scrollViewItemsToBottom()},v.prototype.getClassNames=function(){return(0,i.classNames)("k-widget","k-chat",this.props.className,{"k-rtl":this.isDirectionRightToLeft})},v.prototype.checkIsDirectionRightToLeft=function(t){t=void 0!==t.dir?"rtl"===t.dir:this.chatWrapperEl&&"rtl"===getComputedStyle(this.chatWrapperEl).direction;return Boolean(t)},v.prototype.renderViewItems=function(){var o=this,n=this.viewItems.length-1;return this.viewItems.map(function(t,e){return"date-marker"===t.type?c.createElement(m.default,{item:t,key:e}):"message-group"===t.type?c.createElement(h.default,{group:t,itemTemplate:o.props.messageTemplate,attachmentTemplate:o.props.attachmentTemplate,user:o.props.user,selectedItemIndex:o.state.selectedItemIndex,onRequestSelection:o.onSelectionRequested,isLastGroup:e===n,key:e,message:o.props.message||v.defaultProps.message}):"attachment-group"===t.type?c.createElement(l.default,{group:t,itemTemplate:o.props.attachmentTemplate,onRequestSelection:o.onSelectionRequested,selected:t.selectionIndex===o.state.selectedItemIndex,isLastGroup:e===n,key:e}):"action-group"===t.type?c.createElement(u.default,{group:t,onActionExecute:o.onActionExecute,onRequestSelection:o.onSelectionRequested,selected:t.selectionIndex===o.state.selectedItemIndex,isLastGroup:e===n,key:e}):void 0})},v.prototype.scrollViewItemsToBottom=function(){this.viewItemsWrapperEl&&(this.viewItemsWrapperEl.scrollTop=this.viewItemsWrapperEl.scrollHeight-this.viewItemsWrapperEl.clientHeight)},v.prototype.getViewItemsFromMsgs=function(t){return 0<t.length?(0,p.convertMsgsToViewItems)(t):[]},v.propTypes={messages:a.arrayOf(a.object),user:a.object,messageTemplate:a.any,attachmentTemplate:a.any,width:a.oneOfType([a.string,a.number]),onMessageSend:a.func,onActionExecute:a.func,dir:a.string,messageBox:a.any},v.defaultProps={messages:[],dateFormat:"g",message:f.ChatMessage},v);function v(t){var n=r.call(this,t)||this;return n.viewItems=[],n.isDirectionRightToLeft=!1,n.scrollToBottomOnLoadingData=!0,n.onFocus=function(){clearTimeout(n.timeoutIdForChatLosingFocus)},n.onBlur=function(){n.timeoutIdForChatLosingFocus=window.setTimeout(function(){n.setState({selectedItemIndex:null})},0)},n.onSelectionRequested=function(t){n.setState({selectedItemIndex:t})},n.onKeyDown=function(t){var e=null,o=null!==n.state.selectedItemIndex?n.state.selectedItemIndex:n.viewItems.lastSelectionIndex;t.keyCode===i.Keys.up?null===o?e=0:0<o&&(e=o-1):t.keyCode===i.Keys.down&&(null===o?e=0:o<n.viewItems.lastSelectionIndex&&(e=o+1)),null!==e&&(n.setState({selectedItemIndex:e}),t.preventDefault())},n.onMessageSend=function(t,e){(0,i.dispatchEvent)(n.props.onMessageSend,e,n,{message:t})},n.onActionExecute=function(t,e){if((0,i.dispatchEvent)(n.props.onActionExecute,e,n,{action:t}),!e.isDefaultPrevented()){switch(t.type){case"reply":n.onMessageSend({author:n.props.user,text:t.value,timestamp:new Date},e);break;case"call":window.open("tel:"+t.value);break;case"openUrl":window.open(t.value)}n.newMsgComp.focusInput()}},(0,y.validatePackage)(g.packageMetadata),n.state={selectedItemIndex:null,isFirstRender:!0},n}e.Chat=o},626:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.ChatMessage=void 0,o(954)),a=o(811),c=o(987),o=(r=o(854).FocusableUponSelection,s(p,r),p.prototype.render=function(){var e=this;return i.createElement("div",{className:this.getClassNames(),tabIndex:this.props.tabIndex,onClick:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},onFocus:function(){return e.props.onRequestSelection(e.props.item.selectionIndex)},ref:function(t){return e.elementToFocus=t}},this.getTimestampView(),this.getMainView(),this.getStatusView())},p.prototype.getMainView=function(){return this.props.item.typing?i.createElement("div",{className:"k-bubble"},i.createElement("div",{className:"k-typing-indicator"},i.createElement("span",null),i.createElement("span",null),i.createElement("span",null))):this.props.template?i.createElement(this.props.template,{item:this.props.item}):this.props.item.text?i.createElement("div",{className:"k-bubble"},this.props.item.text):null},p.prototype.getTimestampView=function(){var t=null;return t=this.props.item.timestamp?i.createElement("time",{className:"k-message-time","aria-hidden":!this.props.selected},(0,c.provideIntlService)(this).formatDate(this.props.item.timestamp,this.props.dateFormat)):t},p.prototype.getStatusView=function(){var t=null;return t=this.props.item.status?i.createElement("span",{className:"k-message-status"},this.props.item.status):t},p.prototype.getClassNames=function(){return(0,a.classNames)({"k-only":this.props.isOnlyItemInGroup},{"k-first":this.props.isFirstItemInGroup&&!this.props.isOnlyItemInGroup},{"k-last":this.props.isLastItemInGroup&&!this.props.isOnlyItemInGroup},{"k-selected":this.props.selected},{"k-focus":this.props.selected},"k-message")},p.defaultProps={dateFormat:"g",tabIndex:-1},p);function p(){return null!==r&&r.apply(this,arguments)||this}e.ChatMessage=o,(0,c.registerForIntl)(o)},372:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(987),o=(r=i.Component,s(c,r),c.prototype.render=function(){var t=this.props.item;return i.createElement("div",{className:"k-timestamp"},(0,a.provideIntlService)(this).formatDate(t.timestamp,"D"))},c);function c(){return null!==r&&r.apply(this,arguments)||this}e.default=o,(0,a.registerForIntl)(o)},575:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),a=o(811),c=o(797),p=o(147),o=(r=i.Component,s(u,r),u.prototype.render=function(){return i.createElement("div",{className:this.getMsgGroupClassNames()},this.getAvatarView(),this.getAuthorNameView(),this.getGroupMessagesView())},u.prototype.getMsgGroupClassNames=function(){return(0,a.classNames)("k-message-group",{"k-no-avatar":!this.props.group.author.avatarUrl,"k-alt":(0,p.isAuthor)(this.props.user,this.props.group.messages[0])})},u.prototype.getAvatarView=function(){var t=null;return t=this.props.group.author.avatarUrl?i.createElement("img",{src:this.props.group.author.avatarUrl,className:"k-avatar"}):t},u.prototype.getAuthorNameView=function(){var t=null;return t=this.props.group.author.name?i.createElement("p",{className:"k-author"},this.props.group.author.name):t},u.prototype.getGroupMessagesView=function(){var n=this,r=this.props.group.messages.length-1;return this.props.group.messages.map(function(t,e){var o=[i.createElement(n.props.message,{item:t,template:n.props.itemTemplate,selected:t.selectionIndex===n.props.selectedItemIndex,onRequestSelection:n.props.onRequestSelection,tabIndex:e===r&&n.props.isLastGroup?0:-1,isFirstItemInGroup:0===e,isLastItemInGroup:e===r,isOnlyItemInGroup:0==r,key:e})];return t.attachments&&1===t.attachments.length&&o.push(i.createElement(c.default,{item:t.attachments[0],template:n.props.attachmentTemplate,selected:!1,key:"att-".concat(e)})),o})},u);function u(){return null!==r&&r.apply(this,arguments)||this}e.default=o},415:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(811)),a=o(954),c=o(540),p=o(414),o=(r=a.Component,s(u,r),u.prototype.render=function(){var e=this,t=a.createElement("input",{type:"text",className:this.getClassNames(),placeholder:this.props.placeholder,onKeyDown:this.onInputKeyDown,onFocus:function(){return e.setState({focused:!0})},onBlur:function(){return e.setState({focused:!1})},ref:function(t){return e.inputEl=t}}),o=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-send",onClick:this.sendMessage,"aria-label":"Send...",dir:this.props.isDirectionRightToLeft?"rtl":void 0},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16"},a.createElement("path",{d:u.buttonIconPath})))),n=a.createElement(p.Button,{fillMode:"flat",themeColor:"base",rounded:null,className:"k-icon-button k-button-toggle",onClick:function(t){return e.props.onToolbarActionButtonClick(!e.props.showToolbar,t)}},a.createElement("span",{className:"k-button-icon k-icon"},a.createElement("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 512 512"},a.createElement("g",null,a.createElement("path",{d:"M128,240c0-26.4-21.6-48-48-48s-48,21.6-48,48s21.6,48,48,48S128,266.4,128,240z"}),a.createElement("path",{d:"M192,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C213.6,192,192,213.6,192,240z"}),a.createElement("path",{d:"M352,240c0,26.4,21.6,48,48,48c26.4,0,48-21.6,48-48s-21.6-48-48-48C373.6,192,352,213.6,352,240z"})))));return a.createElement(a.Fragment,null,a.createElement("div",{className:"k-message-box k-textbox k-input k-input-md k-rounded-md k-input-solid"},this.props.MessageBox?a.createElement(this.props.MessageBox,{messageInput:t,sendButton:o,toolbarButton:n}):a.createElement(a.Fragment,null,t,this.props.toolbar&&n,o)),this.props.showToolbar&&a.createElement(c.default,null,this.props.toolbar))},u.prototype.focusInput=function(){null!==this.inputEl&&this.inputEl.focus()},u.prototype.getClassNames=function(){return(0,i.classNames)({"k-focus":this.state.focused},"k-input k-input k-input-md k-input-solid k-input-solid-base")},u.buttonIconPath="M0,14.3c-0.1,0.6,0.3,0.8,0.8,0.6l14.8-6.5c0.5-0.2,0.5-0.6,0-0.8L0.8,1.1C0.3,0.9-0.1,1.1,0,1.7l0.7,4.2C0.8,6.5,1.4,7,1.9,7.1l8.8,0.8c0.6,0.1,0.6,0.1,0,0.2L1.9,8.9C1.4,9,0.8,9.5,0.7,10.1L0,14.3z",u);function u(){var o=null!==r&&r.apply(this,arguments)||this;return o.state={focused:!1},o.inputEl=null,o.onInputKeyDown=function(t){t.keyCode===i.Keys.enter&&o.sendMessage(t)},o.sendMessage=function(t){var e;o.props.onMessageSend&&null!==o.inputEl&&(e=o.inputEl.value)&&(e={author:o.props.user,text:e,timestamp:new Date},o.props.onMessageSend(e,t)),null!==o.inputEl&&(o.inputEl.value=null)},o}e.default=o},540:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),o(954)),o=(r=i.Component,s(a,r),a.prototype.render=function(){return i.createElement("div",{className:"k-toolbar-box"},i.createElement("div",{className:"k-button-list"},this.props.children))},a);function a(){return null!==r&&r.apply(this,arguments)||this}e.default=o},854:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.FocusableUponSelection=void 0,r=o(954).Component,s(i,r),i.prototype.componentDidUpdate=function(t){!t.selected&&this.props.selected&&this.elementToFocus.focus()},i);function i(){return null!==r&&r.apply(this,arguments)||this}e.FocusableUponSelection=o},536:function(t,e,o){"use strict";var n,s,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.SelectableItemsContainer=void 0,o(954)),a=o(811),o=(s=i.Component,r(c,s),c.getDerivedStateFromProps=function(t,e){return t.selected||null===e.selectedItemIndex?t.selected&&null===e.selectedItemIndex?{selectedItemIndex:0}:null:{selectedItemIndex:null}},c.prototype.navigate=function(t,e){void 0===e&&(e=0);var o=null,n=this.state.selectedItemIndex;return t?null===n?o=e:n<this.getLastSelectionIndex()&&(o=n+1):null===n?o=0:0<n&&(o=n-1),null!==o&&this.setState({selectedItemIndex:o}),o},Object.defineProperty(c.prototype,"isKeyboardNavigationLeftRight",{get:function(){return!0},enumerable:!1,configurable:!0}),c.prototype.getLastSelectionIndex=function(){var t,e=-1;return"action-group"===this.props.group.type?e=(t=this.props.group).actions?t.actions.length-1:-1:"attachment-group"===this.props.group.type&&(e=(t=this.props.group).attachments?t.attachments.length-1:-1),e},c);function c(){var r=null!==s&&s.apply(this,arguments)||this;return r.state={selectedItemIndex:null},r.onRequestContainerSelection=function(){return r.props.onRequestSelection(r.props.group.selectionIndex)},r.onKeyDown=function(t){var e,o=null,n=r.isKeyboardNavigationLeftRight?(e=a.Keys.left,a.Keys.right):(e=a.Keys.up,a.Keys.down);t.keyCode===e?o=r.navigate(!1):t.keyCode===n&&(o=r.navigate(!0)),null!==o&&(t.preventDefault(),t.stopPropagation())},r}e.SelectableItemsContainer=o},280:function(t,e,o){"use strict";var n,r,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.HeroCard=void 0,o(954)),a=o(414),c=o(811),o=(r=i.Component,s(p,r),p.prototype.render=function(){return i.createElement("div",{className:"k-card"},i.createElement("img",{className:"k-card-image",src:this.props.imageUrl,style:{maxWidth:this.props.imageMaxWidth}}),i.createElement("div",{className:"k-card-body"},this.getTitleView(),this.getSubtitleView()),i.createElement("div",{className:"k-card-actions k-card-actions-vertical"},this.getActionsView()))},p.prototype.getActionsView=function(){var o=this;return this.props.actions.map(function(e,t){return i.createElement("span",{className:"k-card-action",key:t},i.createElement(a.Button,{fillMode:"flat",onClick:function(t){return o.onBtnClick(e,t)}},e.title))})},p.prototype.getTitleView=function(){var t=null;return t=this.props.title?i.createElement("h5",{className:"k-card-title"},this.props.title):t},p.prototype.getSubtitleView=function(){var t=null;return t=this.props.subtitle?i.createElement("h6",{className:"k-card-subtitle"},this.props.subtitle):t},p);function p(){var o=null!==r&&r.apply(this,arguments)||this;return o.onBtnClick=function(t,e){(0,c.dispatchEvent)(o.props.onActionExecute,e,o,{action:t})},o}e.HeroCard=o},468:function(t,e,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(e,o);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,n,r)}:function(t,e,o,n){t[n=void 0===n?o:n]=e[o]}),r=this&&this.__exportStar||function(t,e){for(var o in t)"default"===o||Object.prototype.hasOwnProperty.call(e,o)||n(e,t,o)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.ChatMessage=void 0,o(626));Object.defineProperty(e,"ChatMessage",{enumerable:!0,get:function(){return s.ChatMessage}}),r(o(240),e),r(o(647),e),r(o(286),e),r(o(318),e),r(o(177),e),r(o(271),e),r(o(310),e),r(o(280),e)},363:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1654761783,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},147:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isAuthor=void 0,e.isAuthor=function(t,e){return t&&e.author&&t.id===e.author.id}},414:t=>{t.exports=o},811:t=>{t.exports=s},987:t=>{t.exports=i},954:t=>{t.exports=a}},r={},function t(e){var o=r[e];if(void 0!==o)return o.exports;o=r[e]={exports:{}};return n[e].call(o.exports,o,o.exports,t),o.exports}(468)))}}});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-conversational-ui",
|
|
3
3
|
"description": "KendoReact Conversational UI components",
|
|
4
|
-
"version": "5.4.0-dev.
|
|
4
|
+
"version": "5.4.0-dev.202206090823",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-react.git"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"jsnext:main": "dist/es/main.js",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"test": "cd ../../ && npm run test -- --testPathPattern=/packages/conversational-ui/.*",
|
|
15
|
-
"e2e": "cd ../../ && npx jest --config jest.e2e.js packages/conversational-ui",
|
|
15
|
+
"e2e": "cd ../../ && npx jest --maxWorkers=4 --config jest.e2e.js packages/conversational-ui",
|
|
16
16
|
"start": "gulp start",
|
|
17
17
|
"build-package": "gulp build-package",
|
|
18
18
|
"ssr": "gulp bundle-ssr-server bundle-ssr-client && node dist/ssr/server.js"
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@progress/kendo-react-common": "5.4.0-dev.
|
|
43
|
+
"@progress/kendo-react-common": "5.4.0-dev.202206090823"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@progress/kendo-licensing": "^1.0.1",
|
|
47
|
-
"@progress/kendo-react-buttons": "5.4.0-dev.
|
|
48
|
-
"@progress/kendo-react-dateinputs": "5.4.0-dev.
|
|
49
|
-
"@progress/kendo-react-intl": "5.4.0-dev.
|
|
47
|
+
"@progress/kendo-react-buttons": "5.4.0-dev.202206090823",
|
|
48
|
+
"@progress/kendo-react-dateinputs": "5.4.0-dev.202206090823",
|
|
49
|
+
"@progress/kendo-react-intl": "5.4.0-dev.202206090823",
|
|
50
50
|
"adaptivecards": "^1.0.0",
|
|
51
51
|
"botframework-directlinejs": "^0.9.15"
|
|
52
52
|
},
|