@elliemae/ds-chat 2.0.0-rc.6 → 2.0.0
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/parts/chat-composer/styled.js +1 -1
- package/cjs/parts/chat-container/ChatContainer.js +11 -6
- package/cjs/parts/chat-container/styled.js +2 -2
- package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +16 -4
- package/esm/parts/chat-composer/styled.js +1 -1
- package/esm/parts/chat-container/ChatContainer.js +11 -6
- package/esm/parts/chat-container/styled.js +2 -2
- package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +16 -4
- package/package.json +14 -9
- package/types/parts/bubble/ChatBubble.d.ts +18 -5
- package/types/parts/bubble/props.d.ts +13 -4
- package/types/parts/chat-card/ChatCard.d.ts +24 -4
- package/types/parts/chat-card/props.d.ts +19 -3
- package/types/parts/chat-composer/ChatContainerComposer.d.ts +48 -15
- package/types/parts/chat-composer/styled.d.ts +112 -19
- package/types/parts/chat-container/ChatContainer.d.ts +54 -14
- package/types/parts/chat-container-messages-list/ChatContainerMessagesList.d.ts +39 -9
- package/types/parts/chat-empty-state/ChatEmptyState.d.ts +12 -3
- package/types/parts/chat-empty-state/props.d.ts +7 -2
- package/types/parts/chat-sidebar/SideBarChat.d.ts +39 -12
- package/types/parts/chat-sidebar/props.d.ts +34 -11
- package/types/parts/floating-button/FloatingButton.d.ts +10 -3
- package/types/parts/floating-button/props.d.ts +10 -3
- package/types/parts/message-delimiter/MessageDelimiter.d.ts +21 -4
- package/types/parts/message-delimiter/props.d.ts +16 -3
- package/types/parts/sidebar-button/SidebarButton.d.ts +16 -5
- package/types/parts/sidebar-button/props.d.ts +16 -5
- package/types/parts/system-message/SystemMessage.d.ts +12 -2
- package/types/parts/system-message/props.d.ts +7 -1
- package/types/parts/tile-button/TileButton.d.ts +66 -20
- package/types/parts/tile-button/props.d.ts +61 -19
- package/types/prop-types.d.ts +28 -9
- package/types/parts/chat-composer/props.d.ts +0 -39
- package/types/parts/chat-container/props.d.ts +0 -43
- package/types/parts/chat-container-messages-list/props.d.ts +0 -29
|
@@ -16,7 +16,7 @@ const StyledChatContainerContentComposer = /*#__PURE__*/styled__default["default
|
|
|
16
16
|
})(["width:100%;min-height:56px;background:", ";padding:", ";padding-bottom:3px;padding-top:6px;padding-left:", ";max-height:", ";border-top:1px solid #cbcfd7;"], props => props.theme.colors.neutral['050'], props => props.theme.space.xxs, props => props.theme.space.xs, props => props.maxHeight);
|
|
17
17
|
const StyledComposerInput = /*#__PURE__*/styled__default["default"].textarea.withConfig({
|
|
18
18
|
componentId: "sc-1ahwpce-1"
|
|
19
|
-
})(["padding:", ";resize:none;min-height:32px;border-radius:2px;border:solid 1px #cbcfd7;color:#25292f;height:", ";min-width:244px;overflow-y:auto;font-size:13px;font-weight:400;line-height:1;transition:height 0.
|
|
19
|
+
})(["padding:", ";resize:none;min-height:32px;border-radius:2px;border:solid 1px #cbcfd7;color:#25292f;height:", ";min-width:244px;overflow-y:auto;font-size:13px;font-weight:400;line-height:1;transition:height 0.05s;&:focus{outline:none;border:1px solid ", ";box-shadow:inset 0 0 0 1px #8cc2ed;border-radius:2px;}"], props => props.theme.space.xxs, props => typeof props.height === 'number' ? "".concat(props.height, "px") : props.height, props => props.theme.colors.brand[600]);
|
|
20
20
|
const StyledComposerButton = /*#__PURE__*/styled__default["default"](DSButton.DSButton).withConfig({
|
|
21
21
|
componentId: "sc-1ahwpce-2"
|
|
22
22
|
})(["&:disabled{background:none;svg{fill:#5d6775;}}svg{fill:", ";}&:focus{background:", ";}"], props => props.theme.colors.brand[600], props => props.theme.colors.brand[200]);
|
|
@@ -51,7 +51,6 @@ const ChatContainer = props$1 => {
|
|
|
51
51
|
onKeyDown: onComposerKeyDown
|
|
52
52
|
},
|
|
53
53
|
actionRef,
|
|
54
|
-
autoScroll,
|
|
55
54
|
device,
|
|
56
55
|
isLoading,
|
|
57
56
|
hasMoreItems,
|
|
@@ -69,12 +68,18 @@ const ChatContainer = props$1 => {
|
|
|
69
68
|
const onResize = React__default["default"].useCallback(height => {
|
|
70
69
|
if (onComposerResize) onComposerResize(height);
|
|
71
70
|
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
if (height > 30) {
|
|
72
|
+
/*
|
|
73
|
+
setTimeout is used to equal the animation duration from the
|
|
74
|
+
composer text area when increase its size
|
|
75
|
+
*/
|
|
76
|
+
setTimeout(() => {
|
|
77
|
+
actionRef.current.scrollToIndex(messagesListProps.messages.length - 1, {
|
|
78
|
+
align: 'start'
|
|
79
|
+
});
|
|
80
|
+
}, 50);
|
|
76
81
|
}
|
|
77
|
-
}, [onComposerResize, messagesListProps.messages,
|
|
82
|
+
}, [onComposerResize, messagesListProps.messages, actionRef]);
|
|
78
83
|
const Container = device === 'desktop' ? styled.StyledChatContainerContent : styled.MobileStyledChatContainerContent;
|
|
79
84
|
const handleTabs = React__default["default"].useCallback(e => {
|
|
80
85
|
if (onComposerKeyDown) onComposerKeyDown(e);else {
|
|
@@ -18,10 +18,10 @@ const StyledChatContainerContent = /*#__PURE__*/styled__default["default"](dsGri
|
|
|
18
18
|
})(["height:100%;min-width:", "px;overflow:hidden;background:", ";position:relative;"], CONTAINER_WIDTH, props => props.theme.colors.neutral['050']);
|
|
19
19
|
const StyledIndicatorContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
20
20
|
componentId: "sc-d732wo-1"
|
|
21
|
-
})(["transition:0.4s ease-in-out;position:absolute;visibility:hidden;pointer-events:none;width:100%;padding:0 ", ";left:0;right:0;background:", ";", " ", ""], props => !props.linear ? props.theme.space.xxs : 0, props => props.theme.colors.neutral['000'], props => props.isLoading === 'top' ? "\n top: -41px;\n transform: translate(0, 41px);\n visibility: visible;\n pointer-events: auto\n " : '', props => props.isLoading === 'bottom' ? "\n bottom: -41px;\n transform: translate(0, -41px);\n visibility: visible;\n pointer-events: auto;\n " : '');
|
|
21
|
+
})(["transition:0.4s ease-in-out;position:absolute;visibility:hidden;pointer-events:none;width:100%;padding:0 ", ";left:0;right:0;background:", ";", " ", " & div,a{font-size:13px;}"], props => !props.linear ? props.theme.space.xxs : 0, props => props.theme.colors.neutral['000'], props => props.isLoading === 'top' ? "\n top: -41px;\n transform: translate(0, 41px);\n visibility: visible;\n pointer-events: auto\n " : '', props => props.isLoading === 'bottom' ? "\n bottom: -41px;\n transform: translate(0, -41px);\n visibility: visible;\n pointer-events: auto;\n " : '');
|
|
22
22
|
const MobileStyledChatContainerContent = /*#__PURE__*/styled__default["default"](StyledChatContainerContent).withConfig({
|
|
23
23
|
componentId: "sc-d732wo-2"
|
|
24
|
-
})(["", ",", "{font-size:16px;}", "{font-size:13px;}", "{background-color:#fff;box-shadow:-0 1px 3px rgba(53,60,70,0.8);}", ",", "{font-size:16px;text-align:left;}", "{font-size:13px;}", "{font-size:16px;}"], styled$1.StyledTitleLeftBubble, styled$1.StyleBodyWrapper, styled$1.StyledTitleRightBubble, style.Wrapper, style.Title, style.Message, style.Time, styled$2.StyledComposerInput);
|
|
24
|
+
})(["", ",", "{font-size:16px;}", "{font-size:13px;}", "{background-color:#fff;box-shadow:-0 1px 3px rgba(53,60,70,0.8);}", ",", "{font-size:16px;text-align:left;}", "{font-size:13px;}", "{font-size:16px;}", "{font-size:16px;}"], styled$1.StyledTitleLeftBubble, styled$1.StyleBodyWrapper, styled$1.StyledTitleRightBubble, style.Wrapper, style.Title, style.Message, style.Time, styled$2.StyledComposerInput, StyledIndicatorContainer);
|
|
25
25
|
|
|
26
26
|
exports.CONTAINER_WIDTH = CONTAINER_WIDTH;
|
|
27
27
|
exports.MobileStyledChatContainerContent = MobileStyledChatContainerContent;
|
|
@@ -4,8 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
|
-
require('core-js/modules/esnext.async-iterator.
|
|
7
|
+
require('core-js/modules/esnext.async-iterator.some.js');
|
|
8
8
|
require('core-js/modules/esnext.iterator.constructor.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.some.js');
|
|
10
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
11
|
require('core-js/modules/esnext.iterator.for-each.js');
|
|
10
12
|
require('core-js/modules/esnext.async-iterator.map.js');
|
|
11
13
|
require('core-js/modules/esnext.iterator.map.js');
|
|
@@ -37,12 +39,17 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
37
39
|
|
|
38
40
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
39
41
|
|
|
40
|
-
const getPadding =
|
|
42
|
+
const getPadding = _ref => {
|
|
43
|
+
let {
|
|
44
|
+
hasMoreItems,
|
|
45
|
+
bannerPosition,
|
|
46
|
+
isLoading
|
|
47
|
+
} = _ref;
|
|
41
48
|
const padding = {
|
|
42
49
|
paddingStart: 0,
|
|
43
50
|
paddingEnd: -5
|
|
44
51
|
};
|
|
45
|
-
if (hasMoreItems === 'top') padding.paddingStart = 42;else if (hasMoreItems === 'bottom') padding.paddingEnd = 42;
|
|
52
|
+
if ([hasMoreItems, bannerPosition, isLoading].some(item => item === 'top')) padding.paddingStart = 42;else if ([hasMoreItems, bannerPosition, isLoading].some(item => item === 'bottom')) padding.paddingEnd = 42;
|
|
46
53
|
return padding;
|
|
47
54
|
};
|
|
48
55
|
|
|
@@ -72,7 +79,11 @@ const ChatContainerMessagesList = props$2 => {
|
|
|
72
79
|
size: messages.length,
|
|
73
80
|
parentRef: virtualListRef,
|
|
74
81
|
overscan: 15
|
|
75
|
-
}, getPadding(
|
|
82
|
+
}, getPadding({
|
|
83
|
+
hasMoreItems,
|
|
84
|
+
bannerPosition,
|
|
85
|
+
isLoading
|
|
86
|
+
})), {}, {
|
|
76
87
|
estimateSize: React__default["default"].useCallback(() => 80, [])
|
|
77
88
|
}));
|
|
78
89
|
const onScrollStop = React__default["default"].useCallback(() => {
|
|
@@ -302,6 +313,7 @@ const ChatContainerMessagesList = props$2 => {
|
|
|
302
313
|
"data-testid": "chat-thread-container",
|
|
303
314
|
tabIndex: 0,
|
|
304
315
|
"aria-live": "polite",
|
|
316
|
+
"aria-relevant": "additions",
|
|
305
317
|
ref: virtualListRef,
|
|
306
318
|
role: "list",
|
|
307
319
|
onKeyDown: handleListKey,
|
|
@@ -8,7 +8,7 @@ const StyledChatContainerContentComposer = /*#__PURE__*/styled(Grid).withConfig(
|
|
|
8
8
|
})(["width:100%;min-height:56px;background:", ";padding:", ";padding-bottom:3px;padding-top:6px;padding-left:", ";max-height:", ";border-top:1px solid #cbcfd7;"], props => props.theme.colors.neutral['050'], props => props.theme.space.xxs, props => props.theme.space.xs, props => props.maxHeight);
|
|
9
9
|
const StyledComposerInput = /*#__PURE__*/styled.textarea.withConfig({
|
|
10
10
|
componentId: "sc-1ahwpce-1"
|
|
11
|
-
})(["padding:", ";resize:none;min-height:32px;border-radius:2px;border:solid 1px #cbcfd7;color:#25292f;height:", ";min-width:244px;overflow-y:auto;font-size:13px;font-weight:400;line-height:1;transition:height 0.
|
|
11
|
+
})(["padding:", ";resize:none;min-height:32px;border-radius:2px;border:solid 1px #cbcfd7;color:#25292f;height:", ";min-width:244px;overflow-y:auto;font-size:13px;font-weight:400;line-height:1;transition:height 0.05s;&:focus{outline:none;border:1px solid ", ";box-shadow:inset 0 0 0 1px #8cc2ed;border-radius:2px;}"], props => props.theme.space.xxs, props => typeof props.height === 'number' ? "".concat(props.height, "px") : props.height, props => props.theme.colors.brand[600]);
|
|
12
12
|
const StyledComposerButton = /*#__PURE__*/styled(DSButton).withConfig({
|
|
13
13
|
componentId: "sc-1ahwpce-2"
|
|
14
14
|
})(["&:disabled{background:none;svg{fill:#5d6775;}}svg{fill:", ";}&:focus{background:", ";}"], props => props.theme.colors.brand[600], props => props.theme.colors.brand[200]);
|
|
@@ -39,7 +39,6 @@ const ChatContainer = props => {
|
|
|
39
39
|
onKeyDown: onComposerKeyDown
|
|
40
40
|
},
|
|
41
41
|
actionRef,
|
|
42
|
-
autoScroll,
|
|
43
42
|
device,
|
|
44
43
|
isLoading,
|
|
45
44
|
hasMoreItems,
|
|
@@ -57,12 +56,18 @@ const ChatContainer = props => {
|
|
|
57
56
|
const onResize = React.useCallback(height => {
|
|
58
57
|
if (onComposerResize) onComposerResize(height);
|
|
59
58
|
|
|
60
|
-
if (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
if (height > 30) {
|
|
60
|
+
/*
|
|
61
|
+
setTimeout is used to equal the animation duration from the
|
|
62
|
+
composer text area when increase its size
|
|
63
|
+
*/
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
actionRef.current.scrollToIndex(messagesListProps.messages.length - 1, {
|
|
66
|
+
align: 'start'
|
|
67
|
+
});
|
|
68
|
+
}, 50);
|
|
64
69
|
}
|
|
65
|
-
}, [onComposerResize, messagesListProps.messages,
|
|
70
|
+
}, [onComposerResize, messagesListProps.messages, actionRef]);
|
|
66
71
|
const Container = device === 'desktop' ? StyledChatContainerContent : MobileStyledChatContainerContent;
|
|
67
72
|
const handleTabs = React.useCallback(e => {
|
|
68
73
|
if (onComposerKeyDown) onComposerKeyDown(e);else {
|
|
@@ -10,9 +10,9 @@ const StyledChatContainerContent = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
10
10
|
})(["height:100%;min-width:", "px;overflow:hidden;background:", ";position:relative;"], CONTAINER_WIDTH, props => props.theme.colors.neutral['050']);
|
|
11
11
|
const StyledIndicatorContainer = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
componentId: "sc-d732wo-1"
|
|
13
|
-
})(["transition:0.4s ease-in-out;position:absolute;visibility:hidden;pointer-events:none;width:100%;padding:0 ", ";left:0;right:0;background:", ";", " ", ""], props => !props.linear ? props.theme.space.xxs : 0, props => props.theme.colors.neutral['000'], props => props.isLoading === 'top' ? "\n top: -41px;\n transform: translate(0, 41px);\n visibility: visible;\n pointer-events: auto\n " : '', props => props.isLoading === 'bottom' ? "\n bottom: -41px;\n transform: translate(0, -41px);\n visibility: visible;\n pointer-events: auto;\n " : '');
|
|
13
|
+
})(["transition:0.4s ease-in-out;position:absolute;visibility:hidden;pointer-events:none;width:100%;padding:0 ", ";left:0;right:0;background:", ";", " ", " & div,a{font-size:13px;}"], props => !props.linear ? props.theme.space.xxs : 0, props => props.theme.colors.neutral['000'], props => props.isLoading === 'top' ? "\n top: -41px;\n transform: translate(0, 41px);\n visibility: visible;\n pointer-events: auto\n " : '', props => props.isLoading === 'bottom' ? "\n bottom: -41px;\n transform: translate(0, -41px);\n visibility: visible;\n pointer-events: auto;\n " : '');
|
|
14
14
|
const MobileStyledChatContainerContent = /*#__PURE__*/styled(StyledChatContainerContent).withConfig({
|
|
15
15
|
componentId: "sc-d732wo-2"
|
|
16
|
-
})(["", ",", "{font-size:16px;}", "{font-size:13px;}", "{background-color:#fff;box-shadow:-0 1px 3px rgba(53,60,70,0.8);}", ",", "{font-size:16px;text-align:left;}", "{font-size:13px;}", "{font-size:16px;}"], StyledTitleLeftBubble, StyleBodyWrapper, StyledTitleRightBubble, Wrapper, Title, Message, Time, StyledComposerInput);
|
|
16
|
+
})(["", ",", "{font-size:16px;}", "{font-size:13px;}", "{background-color:#fff;box-shadow:-0 1px 3px rgba(53,60,70,0.8);}", ",", "{font-size:16px;text-align:left;}", "{font-size:13px;}", "{font-size:16px;}", "{font-size:16px;}"], StyledTitleLeftBubble, StyleBodyWrapper, StyledTitleRightBubble, Wrapper, Title, Message, Time, StyledComposerInput, StyledIndicatorContainer);
|
|
17
17
|
|
|
18
18
|
export { CONTAINER_WIDTH, MobileStyledChatContainerContent, StyledChatContainerContent, StyledIndicatorContainer };
|
|
@@ -2,8 +2,10 @@ import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
|
2
2
|
import 'core-js/modules/esnext.iterator.filter.js';
|
|
3
3
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
4
4
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
5
|
-
import 'core-js/modules/esnext.async-iterator.
|
|
5
|
+
import 'core-js/modules/esnext.async-iterator.some.js';
|
|
6
6
|
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.some.js';
|
|
8
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
7
9
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
8
10
|
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
9
11
|
import 'core-js/modules/esnext.iterator.map.js';
|
|
@@ -26,12 +28,17 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
26
28
|
|
|
27
29
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
28
30
|
|
|
29
|
-
const getPadding =
|
|
31
|
+
const getPadding = _ref => {
|
|
32
|
+
let {
|
|
33
|
+
hasMoreItems,
|
|
34
|
+
bannerPosition,
|
|
35
|
+
isLoading
|
|
36
|
+
} = _ref;
|
|
30
37
|
const padding = {
|
|
31
38
|
paddingStart: 0,
|
|
32
39
|
paddingEnd: -5
|
|
33
40
|
};
|
|
34
|
-
if (hasMoreItems === 'top') padding.paddingStart = 42;else if (hasMoreItems === 'bottom') padding.paddingEnd = 42;
|
|
41
|
+
if ([hasMoreItems, bannerPosition, isLoading].some(item => item === 'top')) padding.paddingStart = 42;else if ([hasMoreItems, bannerPosition, isLoading].some(item => item === 'bottom')) padding.paddingEnd = 42;
|
|
35
42
|
return padding;
|
|
36
43
|
};
|
|
37
44
|
|
|
@@ -61,7 +68,11 @@ const ChatContainerMessagesList = props => {
|
|
|
61
68
|
size: messages.length,
|
|
62
69
|
parentRef: virtualListRef,
|
|
63
70
|
overscan: 15
|
|
64
|
-
}, getPadding(
|
|
71
|
+
}, getPadding({
|
|
72
|
+
hasMoreItems,
|
|
73
|
+
bannerPosition,
|
|
74
|
+
isLoading
|
|
75
|
+
})), {}, {
|
|
65
76
|
estimateSize: React.useCallback(() => 80, [])
|
|
66
77
|
}));
|
|
67
78
|
const onScrollStop = React.useCallback(() => {
|
|
@@ -291,6 +302,7 @@ const ChatContainerMessagesList = props => {
|
|
|
291
302
|
"data-testid": "chat-thread-container",
|
|
292
303
|
tabIndex: 0,
|
|
293
304
|
"aria-live": "polite",
|
|
305
|
+
"aria-relevant": "additions",
|
|
294
306
|
ref: virtualListRef,
|
|
295
307
|
role: "list",
|
|
296
308
|
onKeyDown: handleListKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-chat",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Chat",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -305,19 +305,24 @@
|
|
|
305
305
|
"generateSubmodules": true
|
|
306
306
|
},
|
|
307
307
|
"dependencies": {
|
|
308
|
-
"@elliemae/ds-banner": "2.0.0
|
|
309
|
-
"@elliemae/ds-
|
|
310
|
-
"@elliemae/ds-
|
|
311
|
-
"@elliemae/ds-
|
|
312
|
-
"@elliemae/ds-
|
|
313
|
-
"@elliemae/ds-props-helpers": "2.0.0
|
|
314
|
-
"@elliemae/ds-
|
|
315
|
-
"@elliemae/ds-
|
|
308
|
+
"@elliemae/ds-banner": "2.0.0",
|
|
309
|
+
"@elliemae/ds-button": "2.0.0",
|
|
310
|
+
"@elliemae/ds-grid": "2.0.0",
|
|
311
|
+
"@elliemae/ds-icons": "2.0.0",
|
|
312
|
+
"@elliemae/ds-indeterminate-progress-indicator": "2.0.0",
|
|
313
|
+
"@elliemae/ds-props-helpers": "2.0.0",
|
|
314
|
+
"@elliemae/ds-system": "2.0.0",
|
|
315
|
+
"@elliemae/ds-tooltip": "2.0.0",
|
|
316
|
+
"@elliemae/ds-truncated-tooltip-text": "2.0.0",
|
|
316
317
|
"prop-types": "~15.7.2",
|
|
317
318
|
"react-desc": "~4.1.2",
|
|
318
319
|
"react-virtual": "~2.3.2"
|
|
319
320
|
},
|
|
320
321
|
"devDependencies": {
|
|
322
|
+
"@testing-library/dom": "~8.11.1",
|
|
323
|
+
"@testing-library/jest-dom": "~5.15.1",
|
|
324
|
+
"@testing-library/react": "~12.1.2",
|
|
325
|
+
"@testing-library/user-event": "~13.5.0",
|
|
321
326
|
"styled-components": "~5.3.3"
|
|
322
327
|
},
|
|
323
328
|
"peerDependencies": {
|
|
@@ -1,17 +1,30 @@
|
|
|
1
|
+
/// <reference path="../../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
import { BubbleProps } from './props';
|
|
3
4
|
declare const ChatBubble: {
|
|
4
5
|
(props: BubbleProps): JSX.Element;
|
|
5
6
|
propTypes: {
|
|
6
|
-
dsId:
|
|
7
|
+
dsId: {
|
|
8
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
9
|
+
};
|
|
7
10
|
type: any;
|
|
8
11
|
title: any;
|
|
9
12
|
time: any;
|
|
10
13
|
body: any;
|
|
11
|
-
onClick:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
onClick: {
|
|
15
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
errorMessage: {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
helpMessage: {
|
|
21
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
14
23
|
};
|
|
15
24
|
};
|
|
16
|
-
declare const ChatBubbleWithSchema:
|
|
25
|
+
declare const ChatBubbleWithSchema: {
|
|
26
|
+
(props?: BubbleProps | undefined): JSX.Element;
|
|
27
|
+
propTypes: unknown;
|
|
28
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
29
|
+
};
|
|
17
30
|
export { ChatBubble, ChatBubbleWithSchema };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
import React from 'react';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
@@ -24,14 +25,22 @@ export interface BubbleProps {
|
|
|
24
25
|
}
|
|
25
26
|
export declare const defaultBubbleProps: BubbleProps;
|
|
26
27
|
export declare const propsBubbles: {
|
|
27
|
-
dsId:
|
|
28
|
+
dsId: {
|
|
29
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
28
31
|
type: any;
|
|
29
32
|
title: any;
|
|
30
33
|
time: any;
|
|
31
34
|
body: any;
|
|
32
|
-
onClick:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
onClick: {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
errorMessage: {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
helpMessage: {
|
|
42
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
35
44
|
};
|
|
36
45
|
/**
|
|
37
46
|
*
|
|
@@ -1,13 +1,33 @@
|
|
|
1
|
+
/// <reference path="../../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
import { CardPropTypes } from './props';
|
|
3
4
|
declare const ChatCard: {
|
|
4
5
|
(props: CardPropTypes): JSX.Element;
|
|
5
6
|
propTypes: {
|
|
6
7
|
title: any;
|
|
7
|
-
content:
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
content: {
|
|
9
|
+
defaultValue<T = unknown>(arg: T): {
|
|
10
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
11
|
+
};
|
|
12
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
13
|
+
};
|
|
14
|
+
time: {
|
|
15
|
+
defaultValue<T = unknown>(arg: T): {
|
|
16
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
17
|
+
};
|
|
18
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
rightAddon: {
|
|
21
|
+
defaultValue<T = unknown>(arg: T): {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
10
26
|
};
|
|
11
27
|
};
|
|
12
|
-
declare const ChatCardWithSchema:
|
|
28
|
+
declare const ChatCardWithSchema: {
|
|
29
|
+
(props?: CardPropTypes | undefined): JSX.Element;
|
|
30
|
+
propTypes: unknown;
|
|
31
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
32
|
+
};
|
|
13
33
|
export { ChatCard, ChatCardWithSchema };
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
+
/// <reference path="../../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
export declare const propTypes: {
|
|
3
4
|
title: any;
|
|
4
|
-
content:
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
content: {
|
|
6
|
+
defaultValue<T = unknown>(arg: T): {
|
|
7
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
8
|
+
};
|
|
9
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
10
|
+
};
|
|
11
|
+
time: {
|
|
12
|
+
defaultValue<T = unknown>(arg: T): {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
rightAddon: {
|
|
18
|
+
defaultValue<T = unknown>(arg: T): {
|
|
19
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
|
+
};
|
|
21
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
7
23
|
};
|
|
8
24
|
export interface CardPropTypes {
|
|
9
25
|
title: string;
|
|
@@ -1,24 +1,57 @@
|
|
|
1
|
+
/// <reference path="../../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
import { ChatComposerProps } from './props';
|
|
3
4
|
declare const ChatComposer: {
|
|
4
5
|
(props: ChatComposerProps): JSX.Element;
|
|
5
6
|
propTypes: {
|
|
6
|
-
placeholder:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
placeholder: {
|
|
8
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
9
|
+
};
|
|
10
|
+
inputValue: {
|
|
11
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
12
|
+
};
|
|
13
|
+
maxLengthMessage: {
|
|
14
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
15
|
+
};
|
|
16
|
+
onChange: {
|
|
17
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
19
|
+
onResize: {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
onSend: {
|
|
23
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
|
+
};
|
|
25
|
+
onFocus: {
|
|
26
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
27
|
+
};
|
|
28
|
+
onBlur: {
|
|
29
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
31
|
+
onKeyDown: {
|
|
32
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
33
|
+
};
|
|
34
|
+
maxHeight: {
|
|
35
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
36
|
+
};
|
|
37
|
+
inputMaxLength: {
|
|
38
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
39
|
+
};
|
|
40
|
+
buttonDisabled: {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
dataTestid: {
|
|
44
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
45
|
+
};
|
|
46
|
+
actionRef: {
|
|
47
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
48
|
+
};
|
|
20
49
|
};
|
|
21
50
|
defaultProps: ChatComposerProps;
|
|
22
51
|
};
|
|
23
|
-
declare const ChatComposerWithSchema:
|
|
52
|
+
declare const ChatComposerWithSchema: {
|
|
53
|
+
(props?: ChatComposerProps | undefined): JSX.Element;
|
|
54
|
+
propTypes: unknown;
|
|
55
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
56
|
+
};
|
|
24
57
|
export { ChatComposer, ChatComposerWithSchema };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
export declare const StyledChatContainerContentComposer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
4
|
export declare const StyledComposerInput: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, any, never>;
|
|
@@ -39,25 +40,117 @@ export declare const StyledComposerButton: import("styled-components").StyledCom
|
|
|
39
40
|
type: string;
|
|
40
41
|
};
|
|
41
42
|
propTypes: {
|
|
42
|
-
tabIndex:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
43
|
+
tabIndex: {
|
|
44
|
+
defaultValue<T = unknown>(arg: T): {
|
|
45
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
46
|
+
};
|
|
47
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
48
|
+
};
|
|
49
|
+
className: {
|
|
50
|
+
defaultValue<T_1 = unknown>(arg: T_1): {
|
|
51
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
52
|
+
};
|
|
53
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
54
|
+
};
|
|
55
|
+
'aria-disabled': {
|
|
56
|
+
defaultValue<T_2 = unknown>(arg: T_2): {
|
|
57
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
58
|
+
};
|
|
59
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
61
|
+
as: {
|
|
62
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
disabled: {
|
|
65
|
+
defaultValue<T_3 = unknown>(arg: T_3): {
|
|
66
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
68
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
69
|
+
};
|
|
70
|
+
fluidWidth: {
|
|
71
|
+
defaultValue<T_4 = unknown>(arg: T_4): {
|
|
72
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
73
|
+
};
|
|
74
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
75
|
+
};
|
|
76
|
+
labelText: {
|
|
77
|
+
defaultValue<T_5 = unknown>(arg: T_5): {
|
|
78
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
79
|
+
};
|
|
80
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
81
|
+
};
|
|
82
|
+
icon: {
|
|
83
|
+
defaultValue<T_6 = unknown>(arg: T_6): {
|
|
84
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
85
|
+
};
|
|
86
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
87
|
+
};
|
|
88
|
+
leftIcon: {
|
|
89
|
+
defaultValue<T_7 = unknown>(arg: T_7): {
|
|
90
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
91
|
+
};
|
|
92
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
93
|
+
};
|
|
94
|
+
buttonType: {
|
|
95
|
+
defaultValue<T_8 = unknown>(arg: T_8): {
|
|
96
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
97
|
+
};
|
|
98
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
99
|
+
};
|
|
100
|
+
size: {
|
|
101
|
+
defaultValue<T_9 = unknown>(arg: T_9): {
|
|
102
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
103
|
+
};
|
|
104
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
105
|
+
};
|
|
106
|
+
type: {
|
|
107
|
+
defaultValue<T_10 = unknown>(arg: T_10): {
|
|
108
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
109
|
+
};
|
|
110
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
111
|
+
};
|
|
112
|
+
variant: {
|
|
113
|
+
defaultValue<T_11 = unknown>(arg: T_11): {
|
|
114
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
115
|
+
};
|
|
116
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
117
|
+
};
|
|
118
|
+
innerRef: {
|
|
119
|
+
defaultValue<T_12 = unknown>(arg: T_12): {
|
|
120
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
121
|
+
};
|
|
122
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
123
|
+
};
|
|
124
|
+
onBlur: {
|
|
125
|
+
defaultValue<T_13 = unknown>(arg: T_13): {
|
|
126
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
127
|
+
};
|
|
128
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
129
|
+
};
|
|
130
|
+
intent: {
|
|
131
|
+
defaultValue<T_14 = unknown>(arg: T_14): {
|
|
132
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
133
|
+
};
|
|
134
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
135
|
+
};
|
|
136
|
+
containerProps: {
|
|
137
|
+
defaultValue<T_15 = unknown>(arg: T_15): {
|
|
138
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
139
|
+
};
|
|
140
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
141
|
+
};
|
|
142
|
+
onClick: {
|
|
143
|
+
defaultValue<T_16 = unknown>(arg: T_16): {
|
|
144
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
145
|
+
};
|
|
146
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
147
|
+
};
|
|
148
|
+
onKeyPress: {
|
|
149
|
+
defaultValue<T_17 = unknown>(arg: T_17): {
|
|
150
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
151
|
+
};
|
|
152
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
153
|
+
};
|
|
61
154
|
};
|
|
62
155
|
}, import("styled-components").DefaultTheme, {}, never>;
|
|
63
156
|
export declare const StyledCounterArea: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|