@progress/kendo-react-conversational-ui 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009

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.
Files changed (49) hide show
  1. package/dist/cdn/js/kendo-react-conversational-ui.js +1 -1
  2. package/dist/es/ChatPropsAndState.js +1 -0
  3. package/dist/es/Events.js +1 -0
  4. package/dist/es/api/action.interface.js +1 -0
  5. package/dist/es/api/attachment.interface.js +1 -0
  6. package/dist/es/api/message.interface.js +1 -0
  7. package/dist/es/api/user.interface.js +1 -0
  8. package/dist/es/components/Action.js +3 -1
  9. package/dist/es/components/ActionGroup.js +3 -1
  10. package/dist/es/components/Attachment.js +3 -1
  11. package/dist/es/components/AttachmentGroup.d.ts +1 -1
  12. package/dist/es/components/AttachmentGroup.js +4 -2
  13. package/dist/es/components/Chat.d.ts +2 -2
  14. package/dist/es/components/Chat.js +5 -1
  15. package/dist/es/components/ChatMessage.js +3 -1
  16. package/dist/es/components/DateMarker.js +3 -1
  17. package/dist/es/components/MessageGroup.js +4 -2
  18. package/dist/es/components/NewMessage.js +3 -1
  19. package/dist/es/components/Toolbar.d.ts +3 -1
  20. package/dist/es/components/Toolbar.js +3 -1
  21. package/dist/es/components/base/FocusableUponSelection.js +3 -1
  22. package/dist/es/components/base/SelectableItemsContainer.d.ts +4 -2
  23. package/dist/es/components/base/SelectableItemsContainer.js +4 -2
  24. package/dist/es/components/templates/HeroCard.js +3 -1
  25. package/dist/es/main.js +6 -0
  26. package/dist/es/package-metadata.js +1 -1
  27. package/dist/npm/ViewItem.js +4 -2
  28. package/dist/npm/components/Action.js +4 -2
  29. package/dist/npm/components/ActionGroup.js +4 -2
  30. package/dist/npm/components/Attachment.js +4 -2
  31. package/dist/npm/components/AttachmentGroup.d.ts +1 -1
  32. package/dist/npm/components/AttachmentGroup.js +5 -3
  33. package/dist/npm/components/Chat.d.ts +2 -2
  34. package/dist/npm/components/Chat.js +11 -6
  35. package/dist/npm/components/ChatMessage.js +7 -4
  36. package/dist/npm/components/DateMarker.js +5 -3
  37. package/dist/npm/components/MessageGroup.js +6 -4
  38. package/dist/npm/components/NewMessage.js +4 -2
  39. package/dist/npm/components/Toolbar.d.ts +3 -1
  40. package/dist/npm/components/Toolbar.js +3 -1
  41. package/dist/npm/components/base/FocusableUponSelection.js +4 -1
  42. package/dist/npm/components/base/SelectableItemsContainer.d.ts +4 -2
  43. package/dist/npm/components/base/SelectableItemsContainer.js +5 -2
  44. package/dist/npm/components/templates/HeroCard.js +5 -2
  45. package/dist/npm/main.js +24 -6
  46. package/dist/npm/package-metadata.js +2 -1
  47. package/dist/npm/utils.js +3 -1
  48. package/dist/systemjs/kendo-react-conversational-ui.js +1 -1
  49. package/package.json +6 -6
@@ -0,0 +1 @@
1
+ export {};
package/dist/es/Events.js CHANGED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -13,7 +13,7 @@ export interface AttachmentGroupProps extends SelectableItemsContainerProps {
13
13
  */
14
14
  export default class AttachmentGroup extends SelectableItemsContainer<AttachmentGroupProps, SelectableItemsContainerState> {
15
15
  render(): JSX.Element;
16
- protected readonly isKeyboardNavigationLeftRight: boolean;
16
+ protected get isKeyboardNavigationLeftRight(): boolean;
17
17
  private getLastItemIndex;
18
18
  private getLeftScrollBtn;
19
19
  private getRightScrollBtn;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -45,7 +47,7 @@ var AttachmentGroup = /** @class */ (function (_super) {
45
47
  get: function () {
46
48
  return this.isCardDeckLayout(this.props);
47
49
  },
48
- enumerable: true,
50
+ enumerable: false,
49
51
  configurable: true
50
52
  });
51
53
  AttachmentGroup.prototype.getLastItemIndex = function () {
@@ -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)[]>;
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: any[];
28
+ messages: never[];
29
29
  dateFormat: string;
30
30
  message: typeof ChatMessage;
31
31
  };
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -30,6 +32,8 @@ var Chat = /** @class */ (function (_super) {
30
32
  __extends(Chat, _super);
31
33
  function Chat(props) {
32
34
  var _this = _super.call(this, props) || this;
35
+ _this.viewItems = [];
36
+ _this.isDirectionRightToLeft = false;
33
37
  _this.scrollToBottomOnLoadingData = true;
34
38
  _this.onFocus = function () {
35
39
  clearTimeout(_this.timeoutIdForChatLosingFocus);
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -55,7 +57,7 @@ var MessageGroup = /** @class */ (function (_super) {
55
57
  return this.props.group.messages.map(function (msg, index) {
56
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 }))];
57
59
  if (msg.attachments && msg.attachments.length === 1) {
58
- result.push(React.createElement(Attachment, { item: msg.attachments[0], template: _this.props.attachmentTemplate, selected: false, key: "att-" + index }));
60
+ result.push(React.createElement(Attachment, { item: msg.attachments[0], template: _this.props.attachmentTemplate, selected: false, key: "att-".concat(index) }));
59
61
  }
60
62
  return result;
61
63
  });
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,6 +2,8 @@ import * as React from 'react';
2
2
  /**
3
3
  * @hidden
4
4
  */
5
- export default class Toolbar extends React.Component {
5
+ export default class Toolbar extends React.Component<{
6
+ children?: React.ReactNode;
7
+ }> {
6
8
  render(): JSX.Element;
7
9
  }
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -21,11 +21,13 @@ 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;
29
- protected readonly isKeyboardNavigationLeftRight: boolean;
31
+ protected get isKeyboardNavigationLeftRight(): boolean;
30
32
  private getLastSelectionIndex;
31
33
  }
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -91,7 +93,7 @@ var SelectableItemsContainer = /** @class */ (function (_super) {
91
93
  get: function () {
92
94
  return true;
93
95
  },
94
- enumerable: true,
96
+ enumerable: false,
95
97
  configurable: true
96
98
  });
97
99
  SelectableItemsContainer.prototype.getLastSelectionIndex = function () {
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
package/dist/es/main.js CHANGED
@@ -1,4 +1,10 @@
1
1
  import { ChatMessage } from './components/ChatMessage';
2
+ export * from './api/action.interface';
3
+ export * from './api/attachment.interface';
4
+ export * from './api/message.interface';
5
+ export * from './api/user.interface';
2
6
  export * from './components/Chat';
7
+ export * from './ChatPropsAndState';
8
+ export * from './Events';
3
9
  export * from './components/templates/HeroCard';
4
10
  export { ChatMessage };
@@ -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: 1653029915,
8
+ publishDate: 1654508970,
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
  };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.convertMsgsToViewItems = void 0;
3
4
  var utils_1 = require("./utils");
4
5
  var last = function (arr) { return arr[arr.length - 1]; };
5
6
  var dateChanged = function (curr, prev) {
@@ -31,7 +32,7 @@ var groupMessages = function (acc, msg, isLastMessage) {
31
32
  if (lastItem && lastItem.type === 'message-group') {
32
33
  messages = lastItem.messages;
33
34
  }
34
- if (messages && utils_1.isAuthor(msg.author, last(messages))) {
35
+ if (messages && (0, utils_1.isAuthor)(msg.author, last(messages))) {
35
36
  messages.push(msg);
36
37
  }
37
38
  else {
@@ -84,9 +85,10 @@ function assignSelectionIndices(viewItems) {
84
85
  /**
85
86
  * @hidden
86
87
  */
87
- exports.convertMsgsToViewItems = function (messages) {
88
+ var convertMsgsToViewItems = function (messages) {
88
89
  var items = messages.slice();
89
90
  var result = items.reduce(groupItems(messages.length), []);
90
91
  assignSelectionIndices(result);
91
92
  return result;
92
93
  };
94
+ exports.convertMsgsToViewItems = convertMsgsToViewItems;
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -36,7 +38,7 @@ var Action = /** @class */ (function (_super) {
36
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));
37
39
  };
38
40
  Action.prototype.getClassNames = function () {
39
- 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 });
40
42
  };
41
43
  return Action;
42
44
  }(FocusableUponSelection_1.FocusableUponSelection));
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -33,7 +35,7 @@ var ActionGroup = /** @class */ (function (_super) {
33
35
  })));
34
36
  };
35
37
  ActionGroup.prototype.getClassNames = function () {
36
- return kendo_react_common_1.classNames('k-quick-replies');
38
+ return (0, kendo_react_common_1.classNames)('k-quick-replies');
37
39
  };
38
40
  return ActionGroup;
39
41
  }(SelectableItemsContainer_1.SelectableItemsContainer));
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -46,7 +48,7 @@ var Attachment = /** @class */ (function (_super) {
46
48
  }
47
49
  };
48
50
  Attachment.prototype.getClassNames = function () {
49
- 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 });
50
52
  };
51
53
  Attachment.prototype.getTitleView = function () {
52
54
  return this.props.item.title ?
@@ -13,7 +13,7 @@ export interface AttachmentGroupProps extends SelectableItemsContainerProps {
13
13
  */
14
14
  export default class AttachmentGroup extends SelectableItemsContainer<AttachmentGroupProps, SelectableItemsContainerState> {
15
15
  render(): JSX.Element;
16
- protected readonly isKeyboardNavigationLeftRight: boolean;
16
+ protected get isKeyboardNavigationLeftRight(): boolean;
17
17
  private getLastItemIndex;
18
18
  private getLeftScrollBtn;
19
19
  private getRightScrollBtn;
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -47,7 +49,7 @@ var AttachmentGroup = /** @class */ (function (_super) {
47
49
  get: function () {
48
50
  return this.isCardDeckLayout(this.props);
49
51
  },
50
- enumerable: true,
52
+ enumerable: false,
51
53
  configurable: true
52
54
  });
53
55
  AttachmentGroup.prototype.getLastItemIndex = function () {
@@ -81,7 +83,7 @@ var AttachmentGroup = /** @class */ (function (_super) {
81
83
  return props.group.attachmentLayout !== 'list';
82
84
  };
83
85
  AttachmentGroup.prototype.getClassNames = function () {
84
- 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) });
85
87
  };
86
88
  return AttachmentGroup;
87
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)[]>;
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: any[];
28
+ messages: never[];
29
29
  dateFormat: string;
30
30
  message: typeof ChatMessage;
31
31
  };
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.Chat = void 0;
16
19
  var kendo_react_common_1 = require("@progress/kendo-react-common");
17
20
  var PropTypes = require("prop-types");
18
21
  var React = require("react");
@@ -32,6 +35,8 @@ var Chat = /** @class */ (function (_super) {
32
35
  __extends(Chat, _super);
33
36
  function Chat(props) {
34
37
  var _this = _super.call(this, props) || this;
38
+ _this.viewItems = [];
39
+ _this.isDirectionRightToLeft = false;
35
40
  _this.scrollToBottomOnLoadingData = true;
36
41
  _this.onFocus = function () {
37
42
  clearTimeout(_this.timeoutIdForChatLosingFocus);
@@ -74,10 +79,10 @@ var Chat = /** @class */ (function (_super) {
74
79
  }
75
80
  };
76
81
  _this.onMessageSend = function (message, event) {
77
- 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 });
78
83
  };
79
84
  _this.onActionExecute = function (action, event) {
80
- 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 });
81
86
  if (!event.isDefaultPrevented()) {
82
87
  switch (action.type) {
83
88
  case 'reply':
@@ -99,7 +104,7 @@ var Chat = /** @class */ (function (_super) {
99
104
  _this.newMsgComp.focusInput();
100
105
  }
101
106
  };
102
- kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
107
+ (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
103
108
  _this.state = { selectedItemIndex: null, isFirstRender: true };
104
109
  return _this;
105
110
  }
@@ -143,7 +148,7 @@ var Chat = /** @class */ (function (_super) {
143
148
  }
144
149
  };
145
150
  Chat.prototype.getClassNames = function () {
146
- 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 });
147
152
  };
148
153
  Chat.prototype.checkIsDirectionRightToLeft = function (props) {
149
154
  var result = props.dir !== undefined ? props.dir === 'rtl' :
@@ -176,7 +181,7 @@ var Chat = /** @class */ (function (_super) {
176
181
  }
177
182
  };
178
183
  Chat.prototype.getViewItemsFromMsgs = function (msgs) {
179
- return msgs.length > 0 ? ViewItem_1.convertMsgsToViewItems(msgs) : [];
184
+ return msgs.length > 0 ? (0, ViewItem_1.convertMsgsToViewItems)(msgs) : [];
180
185
  };
181
186
  /**
182
187
  * @hidden
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ChatMessage = void 0;
16
19
  var React = require("react");
17
20
  var kendo_react_common_1 = require("@progress/kendo-react-common");
18
21
  var kendo_react_intl_1 = require("@progress/kendo-react-intl");
@@ -56,7 +59,7 @@ var ChatMessage = /** @class */ (function (_super) {
56
59
  ChatMessage.prototype.getTimestampView = function () {
57
60
  var result = null;
58
61
  if (this.props.item.timestamp) {
59
- 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)));
60
63
  }
61
64
  return result;
62
65
  };
@@ -68,7 +71,7 @@ var ChatMessage = /** @class */ (function (_super) {
68
71
  return result;
69
72
  };
70
73
  ChatMessage.prototype.getClassNames = function () {
71
- 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');
72
75
  };
73
76
  /**
74
77
  * @hidden
@@ -80,4 +83,4 @@ var ChatMessage = /** @class */ (function (_super) {
80
83
  return ChatMessage;
81
84
  }(FocusableUponSelection_1.FocusableUponSelection));
82
85
  exports.ChatMessage = ChatMessage;
83
- kendo_react_intl_1.registerForIntl(ChatMessage);
86
+ (0, kendo_react_intl_1.registerForIntl)(ChatMessage);