@elliemae/ds-chat 2.4.1-rc.3 → 2.4.1-rc.7

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.
@@ -16,7 +16,6 @@ const BUBBLE_TYPES = {
16
16
  const defaultBubbleProps = {
17
17
  dsId: '',
18
18
  type: BUBBLE_TYPES.SENDER,
19
- title: '',
20
19
  time: '',
21
20
  body: '',
22
21
  onClick: noop,
@@ -26,7 +25,7 @@ const defaultBubbleProps = {
26
25
  const BubblesPropTypes = {
27
26
  dsId: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.number]).description('Unique id for bubble').defaultValue(defaultBubbleProps.dsId),
28
27
  type: dsPropsHelpers.PropTypes.oneOf([BUBBLE_TYPES.RECIPIENT, BUBBLE_TYPES.SENDER]).isRequired.description('Define bubble type ').defaultValue(defaultBubbleProps.type),
29
- title: dsPropsHelpers.PropTypes.string.isRequired.description('Title of the bubble').defaultValue(defaultBubbleProps.title),
28
+ title: dsPropsHelpers.PropTypes.string.description('Title of the bubble').defaultValue(defaultBubbleProps.title),
30
29
  time: dsPropsHelpers.PropTypes.string.isRequired.description('Time of the bubble').defaultValue(defaultBubbleProps.title),
31
30
  body: dsPropsHelpers.PropTypes.oneOfType([dsPropsHelpers.PropTypes.string, dsPropsHelpers.PropTypes.element]).isRequired.description('Bubble content').defaultValue(defaultBubbleProps.body),
32
31
  onClick: dsPropsHelpers.PropTypes.func.description('Callback when the bubble is tapped').defaultValue(defaultBubbleProps.onClick),
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var reactDesc = require('react-desc');
5
+ var dsPropsHelpers = require('@elliemae/ds-props-helpers');
6
6
 
7
7
  const defaultProps = {
8
8
  title: 'System Message',
@@ -10,9 +10,9 @@ const defaultProps = {
10
10
  body: ''
11
11
  };
12
12
  const systemMessageProps = {
13
- title: reactDesc.PropTypes.string.isRequired.description('Message title').defaultValue('System Message'),
14
- time: reactDesc.PropTypes.string.description('data of the message, ie: hour'),
15
- body: reactDesc.PropTypes.string.isRequired.description('message')
13
+ title: dsPropsHelpers.PropTypes.string.isRequired.description('Message title').defaultValue('System Message'),
14
+ time: dsPropsHelpers.PropTypes.string.description('data of the message, ie: hour'),
15
+ body: dsPropsHelpers.PropTypes.string.isRequired.description('message')
16
16
  };
17
17
 
18
18
  exports.defaultProps = defaultProps;
@@ -126,7 +126,9 @@ const ChatContainerMessagesList = props$1 => {
126
126
  align: 'center'
127
127
  };
128
128
  vScroll(index, b);
129
- onlyFocus(index);
129
+ setTimeout(() => {
130
+ onlyFocus(index);
131
+ }, 300);
130
132
  onScrollStop();
131
133
  }, [onScrollStop, onlyFocus, vScroll]);
132
134
  const checkPendingOnScroll = React__default["default"].useCallback(() => {
@@ -12,7 +12,6 @@ const BUBBLE_TYPES = {
12
12
  const defaultBubbleProps = {
13
13
  dsId: '',
14
14
  type: BUBBLE_TYPES.SENDER,
15
- title: '',
16
15
  time: '',
17
16
  body: '',
18
17
  onClick: noop,
@@ -22,7 +21,7 @@ const defaultBubbleProps = {
22
21
  const BubblesPropTypes = {
23
22
  dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('Unique id for bubble').defaultValue(defaultBubbleProps.dsId),
24
23
  type: PropTypes.oneOf([BUBBLE_TYPES.RECIPIENT, BUBBLE_TYPES.SENDER]).isRequired.description('Define bubble type ').defaultValue(defaultBubbleProps.type),
25
- title: PropTypes.string.isRequired.description('Title of the bubble').defaultValue(defaultBubbleProps.title),
24
+ title: PropTypes.string.description('Title of the bubble').defaultValue(defaultBubbleProps.title),
26
25
  time: PropTypes.string.isRequired.description('Time of the bubble').defaultValue(defaultBubbleProps.title),
27
26
  body: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired.description('Bubble content').defaultValue(defaultBubbleProps.body),
28
27
  onClick: PropTypes.func.description('Callback when the bubble is tapped').defaultValue(defaultBubbleProps.onClick),
@@ -1,4 +1,4 @@
1
- import { PropTypes } from 'react-desc';
1
+ import { PropTypes } from '@elliemae/ds-props-helpers';
2
2
 
3
3
  const defaultProps = {
4
4
  title: 'System Message',
@@ -115,7 +115,9 @@ const ChatContainerMessagesList = props => {
115
115
  align: 'center'
116
116
  };
117
117
  vScroll(index, b);
118
- onlyFocus(index);
118
+ setTimeout(() => {
119
+ onlyFocus(index);
120
+ }, 300);
119
121
  onScrollStop();
120
122
  }, [onScrollStop, onlyFocus, vScroll]);
121
123
  const checkPendingOnScroll = React.useCallback(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-chat",
3
- "version": "2.4.1-rc.3",
3
+ "version": "2.4.1-rc.7",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Chat",
6
6
  "module": "./esm/index.js",
@@ -261,15 +261,15 @@
261
261
  "generateSubmodules": true
262
262
  },
263
263
  "dependencies": {
264
- "@elliemae/ds-banner": "2.4.1-rc.3",
265
- "@elliemae/ds-button": "2.4.1-rc.3",
266
- "@elliemae/ds-grid": "2.4.1-rc.3",
267
- "@elliemae/ds-icons": "2.4.1-rc.3",
268
- "@elliemae/ds-indeterminate-progress-indicator": "2.4.1-rc.3",
269
- "@elliemae/ds-props-helpers": "2.4.1-rc.3",
270
- "@elliemae/ds-system": "2.4.1-rc.3",
271
- "@elliemae/ds-tooltip": "2.4.1-rc.3",
272
- "@elliemae/ds-truncated-tooltip-text": "2.4.1-rc.3",
264
+ "@elliemae/ds-banner": "2.4.1-rc.7",
265
+ "@elliemae/ds-button": "2.4.1-rc.7",
266
+ "@elliemae/ds-grid": "2.4.1-rc.7",
267
+ "@elliemae/ds-icons": "2.4.1-rc.7",
268
+ "@elliemae/ds-indeterminate-progress-indicator": "2.4.1-rc.7",
269
+ "@elliemae/ds-props-helpers": "2.4.1-rc.7",
270
+ "@elliemae/ds-system": "2.4.1-rc.7",
271
+ "@elliemae/ds-tooltip": "2.4.1-rc.7",
272
+ "@elliemae/ds-truncated-tooltip-text": "2.4.1-rc.7",
273
273
  "prop-types": "~15.7.2",
274
274
  "react-desc": "~4.1.2",
275
275
  "react-virtual": "~2.8.2"
@@ -10,7 +10,7 @@ export declare type BubbleTypesValues = typeof BUBBLE_TYPES[BubbleTypesKeys];
10
10
  export interface BubblePropsT {
11
11
  dsId: string | number;
12
12
  type: BubbleTypesValues;
13
- title: string;
13
+ title?: string;
14
14
  body: string;
15
15
  time: string;
16
16
  errorMessage: string | React.ReactChild;
@@ -1,4 +1,3 @@
1
- /// <reference path="../../../../../../shared/typings/react-desc.d.ts" />
2
1
  export interface SystemMessageProps {
3
2
  title: string;
4
3
  time: string;
@@ -6,12 +5,7 @@ export interface SystemMessageProps {
6
5
  }
7
6
  export declare const defaultProps: SystemMessageProps;
8
7
  export declare const systemMessageProps: {
9
- title: any;
10
- time: {
11
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
12
- deprecated: import("react-desc").PropTypesDescValidator;
13
- };
14
- isRequired: import("react-desc").PropTypesDescValue;
15
- };
16
- body: any;
8
+ title: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
9
+ time: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
10
+ body: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
17
11
  };