@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.
- package/cjs/exported-related/bubble/props.js +1 -2
- package/cjs/exported-related/system-message/props.js +4 -4
- package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +3 -1
- package/esm/exported-related/bubble/props.js +1 -2
- package/esm/exported-related/system-message/props.js +1 -1
- package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +3 -1
- package/package.json +10 -10
- package/types/exported-related/bubble/props.d.ts +1 -1
- package/types/exported-related/system-message/props.d.ts +3 -9
|
@@ -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.
|
|
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
|
|
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:
|
|
14
|
-
time:
|
|
15
|
-
body:
|
|
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
|
-
|
|
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.
|
|
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),
|
|
@@ -115,7 +115,9 @@ const ChatContainerMessagesList = props => {
|
|
|
115
115
|
align: 'center'
|
|
116
116
|
};
|
|
117
117
|
vScroll(index, b);
|
|
118
|
-
|
|
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
|
+
"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.
|
|
265
|
-
"@elliemae/ds-button": "2.4.1-rc.
|
|
266
|
-
"@elliemae/ds-grid": "2.4.1-rc.
|
|
267
|
-
"@elliemae/ds-icons": "2.4.1-rc.
|
|
268
|
-
"@elliemae/ds-indeterminate-progress-indicator": "2.4.1-rc.
|
|
269
|
-
"@elliemae/ds-props-helpers": "2.4.1-rc.
|
|
270
|
-
"@elliemae/ds-system": "2.4.1-rc.
|
|
271
|
-
"@elliemae/ds-tooltip": "2.4.1-rc.
|
|
272
|
-
"@elliemae/ds-truncated-tooltip-text": "2.4.1-rc.
|
|
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
|
|
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:
|
|
10
|
-
time:
|
|
11
|
-
|
|
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
|
};
|