@elliemae/ds-chat 2.0.0-next.6 → 2.0.0-rc.1

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 (78) hide show
  1. package/cjs/parts/bubble/ChatBubble.js +9 -6
  2. package/cjs/parts/bubble/ChatBubbleArrow.js +64 -61
  3. package/cjs/parts/bubble/props.js +1 -1
  4. package/cjs/parts/bubble/styled.js +1 -1
  5. package/cjs/parts/chat-composer/ChatContainerComposer.js +14 -7
  6. package/cjs/parts/chat-composer/props.js +4 -0
  7. package/cjs/parts/chat-composer/styled.js +2 -2
  8. package/cjs/parts/chat-container/ChatContainer.js +50 -9
  9. package/cjs/parts/chat-container/props.js +1 -1
  10. package/cjs/parts/chat-container/styled.js +1 -1
  11. package/cjs/parts/chat-container-header/ChatContainerHeader.js +3 -3
  12. package/cjs/parts/chat-container-header/helpers.js +31 -0
  13. package/cjs/parts/chat-container-header/styled.js +6 -6
  14. package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +134 -29
  15. package/cjs/parts/chat-container-messages-list/props.js +4 -2
  16. package/cjs/parts/chat-container-messages-list/styled.js +2 -2
  17. package/cjs/parts/chat-empty-state/ChatEmptyState.js +2 -3
  18. package/cjs/parts/chat-sidebar/SideBarChat.js +57 -29
  19. package/cjs/parts/chat-sidebar/props.js +11 -1
  20. package/cjs/parts/chat-sidebar/styled.js +2 -2
  21. package/cjs/parts/floating-button/FloatingButton.js +12 -10
  22. package/cjs/parts/sidebar-button/SidebarButton.js +5 -0
  23. package/cjs/parts/sidebar-button/props.js +2 -3
  24. package/cjs/parts/system-message/style.js +1 -1
  25. package/cjs/parts/tile-button/TileButton.js +30 -27
  26. package/cjs/parts/tile-button/props.js +12 -8
  27. package/cjs/parts/tile-button/styled.js +6 -2
  28. package/esm/parts/bubble/ChatBubble.js +8 -5
  29. package/esm/parts/bubble/ChatBubbleArrow.js +64 -61
  30. package/esm/parts/bubble/props.js +1 -1
  31. package/esm/parts/bubble/styled.js +1 -1
  32. package/esm/parts/chat-composer/ChatContainerComposer.js +13 -5
  33. package/esm/parts/chat-composer/props.js +4 -0
  34. package/esm/parts/chat-container/ChatContainer.js +50 -9
  35. package/esm/parts/chat-container/props.js +1 -1
  36. package/esm/parts/chat-container/styled.js +1 -1
  37. package/esm/parts/chat-container-header/ChatContainerHeader.js +3 -2
  38. package/esm/parts/chat-container-header/helpers.js +23 -0
  39. package/esm/parts/chat-container-header/styled.js +6 -6
  40. package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +134 -29
  41. package/esm/parts/chat-container-messages-list/props.js +4 -2
  42. package/esm/parts/chat-container-messages-list/styled.js +2 -2
  43. package/esm/parts/chat-empty-state/ChatEmptyState.js +1 -1
  44. package/esm/parts/chat-sidebar/SideBarChat.js +57 -28
  45. package/esm/parts/chat-sidebar/props.js +11 -1
  46. package/esm/parts/chat-sidebar/styled.js +2 -2
  47. package/esm/parts/floating-button/FloatingButton.js +12 -9
  48. package/esm/parts/sidebar-button/SidebarButton.js +5 -0
  49. package/esm/parts/sidebar-button/props.js +1 -1
  50. package/esm/parts/system-message/style.js +1 -1
  51. package/esm/parts/tile-button/TileButton.js +31 -26
  52. package/esm/parts/tile-button/props.js +11 -3
  53. package/esm/parts/tile-button/styled.js +6 -3
  54. package/package.json +16 -6
  55. package/types/parts/bubble/styled.d.ts +3 -3
  56. package/types/parts/bubble/tests/ChatBubble.test.d.ts +1 -0
  57. package/types/parts/chat-card/styled.d.ts +1 -1
  58. package/types/parts/chat-composer/ChatContainerComposer.d.ts +2 -0
  59. package/types/parts/chat-composer/props.d.ts +10 -6
  60. package/types/parts/chat-composer/styled.d.ts +2 -2
  61. package/types/parts/chat-composer/tests/ChatContainerComposer.test.d.ts +1 -0
  62. package/types/parts/chat-container/props.d.ts +2 -0
  63. package/types/parts/chat-container/styled.d.ts +2 -2
  64. package/types/parts/chat-container-header/helpers.d.ts +6 -0
  65. package/types/parts/chat-container-header/styled.d.ts +3 -3
  66. package/types/parts/chat-container-messages-list/props.d.ts +6 -0
  67. package/types/parts/chat-empty-state/styled.d.ts +1 -1
  68. package/types/parts/chat-sidebar/SideBarChat.d.ts +3 -0
  69. package/types/parts/chat-sidebar/props.d.ts +8 -1
  70. package/types/parts/chat-sidebar/styled.d.ts +2 -2
  71. package/types/parts/floating-container/styled.d.ts +1 -1
  72. package/types/parts/grid-influencer/styled.d.ts +2 -2
  73. package/types/parts/message-delimiter/styled.d.ts +1 -1
  74. package/types/parts/sidebar-button/styled.d.ts +1 -1
  75. package/types/parts/system-message/style.d.ts +2 -2
  76. package/types/parts/tile-button/TileButton.d.ts +3 -0
  77. package/types/parts/tile-button/props.d.ts +6 -0
  78. package/types/parts/tile-button/styled.d.ts +5 -4
@@ -2,17 +2,18 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'core-js/modules/web.url.to-json.js';
3
3
  import React from 'react';
4
4
  import { describe } from 'react-desc';
5
- import DSTooltip from '@elliemae/ds-tooltip';
5
+ import { DSTooltipV3 } from '@elliemae/ds-tooltip';
6
6
  import { Grid } from '@elliemae/ds-grid';
7
- import CloseXsmall from '@elliemae/ds-icons/CloseXsmall';
8
- import { StyledWrapperCentralContent, StyledTileButtonIcon, StyledStatusBadge, StyledTileButtonLabel, StyledTileButton, StyledWrapper, StyledWrapperLeftBorder, CloseButton } from './styled.js';
7
+ import { CloseXsmall } from '@elliemae/ds-icons';
8
+ import { StyledWrapperCentralContent, StyledTileButtonIcon, StyledStatusBadge, StyledTileButtonLabel, StyledTileButton, StyledWrapper, StyledWrapperLeftBorder, CloseButton, StyledTooltipV3ButtonWrapper } from './styled.js';
9
9
  import { propsTileButton, defaultTileButton } from './props.js';
10
10
  import { useValidateProps } from './config/useValidateProps.js';
11
+ import { jsx } from 'react/jsx-runtime';
11
12
 
12
13
  var _StyledWrapperLeftBor, _CloseXsmall;
13
14
 
14
15
  const TileButton = props => {
15
- var _Icon, _StyledStatusBadge, _StyledTileButtonLabe;
16
+ var _Icon, _StyledTileButtonLabe, _span;
16
17
 
17
18
  useValidateProps(props, TileButtonWithSchema.toJSON());
18
19
  const {
@@ -31,7 +32,10 @@ const TileButton = props => {
31
32
  disabled,
32
33
  selected,
33
34
  isHeader,
34
- ariaLabel
35
+ ariaLabel,
36
+ tooltipPlacement,
37
+ disableTooltip,
38
+ innerRef
35
39
  } = props;
36
40
  const handleClick = React.useCallback(() => {
37
41
  onClick(dsId, title);
@@ -47,17 +51,19 @@ const TileButton = props => {
47
51
  justifyContent: "center"
48
52
  }, void 0, _Icon || (_Icon = /*#__PURE__*/_jsx(Icon, {
49
53
  size: "m"
50
- })), badge ? _StyledStatusBadge || (_StyledStatusBadge = /*#__PURE__*/_jsx(StyledStatusBadge, {
54
+ })), badge ? /*#__PURE__*/_jsx(StyledStatusBadge, {
51
55
  badgeColor: badgeColor,
52
- badgePosition: badgePosition
53
- })) : null)), !isHeader ? /*#__PURE__*/_jsx(Grid, {
56
+ badgePosition: badgePosition,
57
+ "data-testid": "tile-badge-".concat(dsId)
58
+ }) : null)), !isHeader ? /*#__PURE__*/_jsx(Grid, {
54
59
  width: "100%",
55
60
  justifyContent: "center"
56
61
  }, void 0, label ? _StyledTileButtonLabe || (_StyledTileButtonLabe = /*#__PURE__*/_jsx(StyledTileButtonLabel, {}, void 0, label)) : null) : null), [isHeader, Icon, badge, badgeColor, badgePosition, label]);
57
- return /*#__PURE__*/_jsx(StyledTileButton, {
62
+ const Btn = React.useMemo(() => /*#__PURE__*/jsx(StyledTileButton, {
58
63
  isHeader: isHeader,
59
64
  value: dsId,
60
65
  "data-testid": "tile-button-".concat(dsId),
66
+ "data-key": dsId,
61
67
  onClick: handleClick,
62
68
  onFocus: onFocus,
63
69
  onBlur: onBlur,
@@ -66,23 +72,22 @@ const TileButton = props => {
66
72
  badgeColor: badgeColor,
67
73
  badgePosition: badgePosition,
68
74
  "aria-pressed": selected,
69
- "aria-label": ariaLabel
70
- }, dsId, /*#__PURE__*/_jsx(StyledWrapper, {
71
- alignItems: "center",
72
- justifyContent: "center"
73
- }, void 0, title ? /*#__PURE__*/_jsx(DSTooltip, {
74
- containerProps: {
75
- id: "ds-chat-tile-tooltip-button-".concat(dsId),
76
- 'data-testid': "ds-chat-tile-tooltip-button-".concat(dsId)
77
- },
78
- interactionType: "hover",
79
- title: title,
80
- triggerComponent: /*#__PURE__*/_jsx("span", {}, void 0, MainContent),
81
- placement: "bottom"
82
- }) : MainContent, _StyledWrapperLeftBor || (_StyledWrapperLeftBor = /*#__PURE__*/_jsx(StyledWrapperLeftBorder, {})), showClose && !disabled ? /*#__PURE__*/_jsx(CloseButton, {
83
- onClick: onClose,
84
- value: dsId
85
- }, void 0, _CloseXsmall || (_CloseXsmall = /*#__PURE__*/_jsx(CloseXsmall, {}))) : null));
75
+ "aria-label": ariaLabel,
76
+ ref: innerRef,
77
+ children: /*#__PURE__*/_jsx(StyledWrapper, {
78
+ alignItems: "center",
79
+ justifyContent: "center"
80
+ }, void 0, _span || (_span = /*#__PURE__*/_jsx("span", {}, void 0, MainContent)), _StyledWrapperLeftBor || (_StyledWrapperLeftBor = /*#__PURE__*/_jsx(StyledWrapperLeftBorder, {})), showClose && !disabled ? /*#__PURE__*/_jsx(CloseButton, {
81
+ onClick: onClose,
82
+ value: dsId,
83
+ "data-testid": "tile-close-btn-".concat(dsId)
84
+ }, void 0, _CloseXsmall || (_CloseXsmall = /*#__PURE__*/_jsx(CloseXsmall, {}))) : null)
85
+ }, dsId), [MainContent, ariaLabel, badgeColor, badgePosition, disabled, dsId, handleClick, isHeader, onBlur, onClose, onFocus, selected, showClose, innerRef]);
86
+ return title && !disableTooltip ? /*#__PURE__*/_jsx(StyledTooltipV3ButtonWrapper, {}, void 0, /*#__PURE__*/_jsx(DSTooltipV3, {
87
+ id: "ds-chat-tile-tooltip-button-".concat(dsId),
88
+ text: title,
89
+ startPlacementPreference: tooltipPlacement
90
+ }, void 0, Btn)) : Btn;
86
91
  };
87
92
 
88
93
  TileButton.defaultProps = defaultTileButton;
@@ -1,6 +1,6 @@
1
1
  import { PropTypes } from 'react-desc';
2
2
  import { noop } from 'lodash';
3
- import Comments from '@elliemae/ds-icons/Comments';
3
+ import { Comments } from '@elliemae/ds-icons';
4
4
 
5
5
  const defaultTileButton = {
6
6
  Icon: Comments,
@@ -18,7 +18,10 @@ const defaultTileButton = {
18
18
  disabled: false,
19
19
  selected: false,
20
20
  isHeader: false,
21
- ariaLabel: 'Tile button'
21
+ ariaLabel: 'Tile button',
22
+ tooltipPlacement: 'right',
23
+ disableTooltip: false,
24
+ innerRef: noop
22
25
  };
23
26
  const propsTileButton = {
24
27
  Icon: PropTypes.func.description('Icon component').defaultValue(defaultTileButton.Icon),
@@ -36,7 +39,12 @@ const propsTileButton = {
36
39
  disabled: PropTypes.bool.description('It will disabled the button').defaultValue(defaultTileButton.disabled),
37
40
  selected: PropTypes.bool.description('Indicate that the button is selected').defaultValue(defaultTileButton.disabled),
38
41
  isHeader: PropTypes.bool.description("It won't render the label").defaultValue(defaultTileButton.disabled),
39
- ariaLabel: PropTypes.string.description('aria-label attribute').defaultValue(defaultTileButton.ariaLabel)
42
+ ariaLabel: PropTypes.string.description('aria-label attribute').defaultValue(defaultTileButton.ariaLabel),
43
+ tooltipPlacement: PropTypes.oneOf(['top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']).description('start placement preferences, as per popperjs placement option').defaultValue("'right'"),
44
+ disableTooltip: PropTypes.bool.description('Disable tooltip option').defaultValue(defaultTileButton.disableTooltip),
45
+ innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
46
+ current: PropTypes.any
47
+ })]).description('reference to the component')
40
48
  };
41
49
 
42
50
  export { defaultTileButton, propsTileButton };
@@ -46,8 +46,11 @@ const CloseButton = /*#__PURE__*/styled.button.withConfig({
46
46
  componentId: "sc-1ebp1zs-5"
47
47
  })(["outline:none;background:none;height:9px;width:9px;position:absolute;top:1px;right:1px;overflow:hidden;padding:0;border:none;span{position:absolute;left:-3px;top:-4px;}&:focus,&:hover{svg{fill:", ";}&:after{display:block;content:'';position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px ", ";border-radius:2px;}}cursor:pointer;"], props => props.theme.colors.brand[600], props => props.theme.colors.brand[600]); // MAIN WRAPPER
48
48
 
49
- const StyledTileButton = /*#__PURE__*/styled.button.withConfig({
49
+ const StyledTooltipV3ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
50
50
  componentId: "sc-1ebp1zs-6"
51
+ })(["height:", "px;width:", "px;"], BUTTON_SIDEBAR_HEIGHT, MIN_WIDTH_SIDEBAR);
52
+ const StyledTileButton = /*#__PURE__*/styled.button.withConfig({
53
+ componentId: "sc-1ebp1zs-7"
51
54
  })(["outline:none;background:transparent;height:", "px;width:", "px;position:relative;padding:0;border:none;cursor:pointer;border-bottom:", ";&:focus,&:hover,&:active,&:disabled{background:", ";& ", "{border:2px solid ", ";margin-top:-2px;", ";}}&:focus,&:hover{& ", "{background:", ";}& ", "{color:", ";}& svg{fill:", ";}}&:active:not(:disabled){background:", ";& ", "{background:", ";}& ", "{color:", ";font-weight:600;}& svg{fill:", ";}& ", "{border:2px solid ", ";}}&:disabled{background:", ";", "{background:", ";}& ", "{background:", ";border:2px solid ", ";}", "{svg{fill:", ";}}", "{color:", ";}}", ""], BUTTON_SIDEBAR_HEIGHT, MIN_WIDTH_SIDEBAR, props => props.isHeader ? "1px solid ".concat(props.theme.colors.neutral['200']) : 'none', props => props.theme.colors.neutral['080'], StyledStatusBadge, props => props.theme.colors.neutral['080'], props => {
52
55
  switch (props.badgePosition) {
53
56
  case 'left':
@@ -67,7 +70,7 @@ const StyledTileButton = /*#__PURE__*/styled.button.withConfig({
67
70
  return '';
68
71
  });
69
72
  const StyledWrapper = /*#__PURE__*/styled(Grid).withConfig({
70
- componentId: "sc-1ebp1zs-7"
73
+ componentId: "sc-1ebp1zs-8"
71
74
  })(["height:100%;width:100%;position:relative;"]);
72
75
 
73
- export { CloseButton, StyledStatusBadge, StyledTileButton, StyledTileButtonIcon, StyledTileButtonLabel, StyledWrapper, StyledWrapperCentralContent, StyledWrapperLeftBorder };
76
+ export { CloseButton, StyledStatusBadge, StyledTileButton, StyledTileButtonIcon, StyledTileButtonLabel, StyledTooltipV3ButtonWrapper, StyledWrapper, StyledWrapperCentralContent, StyledWrapperLeftBorder };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-chat",
3
- "version": "2.0.0-next.6",
3
+ "version": "2.0.0-rc.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Chat",
6
6
  "module": "./esm/index.js",
@@ -203,6 +203,10 @@
203
203
  "import": "./esm/parts/chat-container-header/styled.js",
204
204
  "require": "./cjs/parts/chat-container-header/styled.js"
205
205
  },
206
+ "./parts/chat-container-header/helpers": {
207
+ "import": "./esm/parts/chat-container-header/helpers.js",
208
+ "require": "./cjs/parts/chat-container-header/helpers.js"
209
+ },
206
210
  "./parts/chat-container-header/ChatContainerHeader": {
207
211
  "import": "./esm/parts/chat-container-header/ChatContainerHeader.js",
208
212
  "require": "./cjs/parts/chat-container-header/ChatContainerHeader.js"
@@ -293,19 +297,25 @@
293
297
  "generateSubmodules": true
294
298
  },
295
299
  "dependencies": {
296
- "@elliemae/ds-basic": "2.0.0-next.6",
297
- "@elliemae/ds-icons": "2.0.0-next.6",
298
- "@elliemae/ds-system": "2.0.0-next.6",
300
+ "@elliemae/ds-banner": "2.0.0-rc.1",
301
+ "@elliemae/ds-basic": "2.0.0-rc.1",
302
+ "@elliemae/ds-button": "2.0.0-rc.1",
303
+ "@elliemae/ds-grid": "2.0.0-rc.1",
304
+ "@elliemae/ds-icons": "2.0.0-rc.1",
305
+ "@elliemae/ds-props-helpers": "2.0.0-rc.1",
306
+ "@elliemae/ds-tooltip": "2.0.0-rc.1",
307
+ "@elliemae/ds-truncated-tooltip-text": "2.0.0-rc.1",
299
308
  "prop-types": "~15.7.2",
309
+ "react-desc": "~4.1.2",
300
310
  "react-virtual": "~2.3.2"
301
311
  },
302
312
  "devDependencies": {
303
- "styled-components": "~5.3.1"
313
+ "styled-components": "~5.3.3"
304
314
  },
305
315
  "peerDependencies": {
306
316
  "lodash": "^4.17.21",
307
317
  "react": "^16.14.0",
308
318
  "react-dom": "^16.14.0",
309
- "styled-components": "^5.3.1"
319
+ "styled-components": "^5.3.3"
310
320
  }
311
321
  }
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StyledWrapper: import("styled-components").StyledComponent<"div", any, any, never>;
3
- export declare const StyledTitleBubble: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
4
- export declare const StyledTitleLeftBubble: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
5
- export declare const StyledTitleRightBubble: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
+ export declare const StyledTitleBubble: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
4
+ export declare const StyledTitleLeftBubble: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
5
+ export declare const StyledTitleRightBubble: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
6
6
  export declare const StyleBodyWrapper: import("styled-components").StyledComponent<"div", any, any, never>;
7
7
  export declare const StyleErrorMessage: import("styled-components").StyledComponent<"div", any, any, never>;
8
8
  export declare const StyleHelpMessage: import("styled-components").StyledComponent<"div", any, any, never>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const Wrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
2
+ export declare const Wrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
3
3
  export declare const MainContent: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const Title: import("styled-components").StyledComponent<"p", any, {}, never>;
5
5
  export declare const Content: import("styled-components").StyledComponent<"p", any, {}, never>;
@@ -5,11 +5,13 @@ declare const ChatComposer: {
5
5
  propTypes: {
6
6
  placeholder: any;
7
7
  inputValue: any;
8
+ maxLengthMessage: any;
8
9
  onChange: any;
9
10
  onResize: any;
10
11
  onSend: any;
11
12
  onFocus: any;
12
13
  onBlur: any;
14
+ onKeyDown: any;
13
15
  maxHeight: any;
14
16
  inputMaxLength: any;
15
17
  buttonDisabled: any;
@@ -6,14 +6,16 @@ export interface TextAreaProps {
6
6
  }
7
7
  export declare const defaultComposerPros: ChatComposerProps;
8
8
  export interface ChatComposerProps {
9
- placeholder: 'Type your message';
10
- inputValue: '';
9
+ placeholder?: string;
10
+ inputValue?: string;
11
+ maxLengthMessage?: string;
11
12
  onChange: (value: string) => void;
12
- onResize: (value: number) => void;
13
+ onResize?: (value: number) => void;
13
14
  onSend: (value: string) => void;
14
- onFocus: (e: React.ChangeEvent<HTMLTextAreaElement>, value: string) => void;
15
- onBlur: (e: React.ChangeEvent<HTMLTextAreaElement>, value: string) => void;
16
- maxHeight: number;
15
+ onFocus?: (e: React.ChangeEvent<HTMLTextAreaElement>, value: string) => void;
16
+ onBlur?: (e: React.ChangeEvent<HTMLTextAreaElement>, value: string) => void;
17
+ onKeyDown?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
18
+ maxHeight?: number;
17
19
  inputMaxLength: number | undefined;
18
20
  buttonDisabled: boolean;
19
21
  dataTestid?: string;
@@ -22,11 +24,13 @@ export interface ChatComposerProps {
22
24
  export declare const composerProps: {
23
25
  placeholder: any;
24
26
  inputValue: any;
27
+ maxLengthMessage: any;
25
28
  onChange: any;
26
29
  onResize: any;
27
30
  onSend: any;
28
31
  onFocus: any;
29
32
  onBlur: any;
33
+ onKeyDown: any;
30
34
  maxHeight: any;
31
35
  inputMaxLength: any;
32
36
  buttonDisabled: any;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledChatContainerContentComposer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
2
+ export declare const StyledChatContainerContentComposer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
3
3
  export declare const StyledComposerInput: import("styled-components").StyledComponent<"textarea", any, any, never>;
4
4
  export declare const StyledComposerButton: import("styled-components").StyledComponent<{
5
5
  ({ innerRef, disabled, buttonType, fluidWidth, size, labelText, icon, onBlur, onClick, onKeyPress, leftIcon, tabIndex, variant, intent, containerProps, className, as: Component, type, ...rest }: {
@@ -60,5 +60,5 @@ export declare const StyledComposerButton: import("styled-components").StyledCom
60
60
  onKeyPress: any;
61
61
  };
62
62
  }, any, {}, never>;
63
- export declare const StyledCounterArea: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
63
+ export declare const StyledCounterArea: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
64
64
  export declare const StyledCounterErrorA11y: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1,9 +1,11 @@
1
1
  import { PropTypes } from 'react-desc';
2
+ import { BANNER_TYPES } from '@elliemae/ds-banner';
2
3
  import { ChatContainerMessagesListProps } from '../chat-container-messages-list/props';
3
4
  import { ChatComposerProps } from '../chat-composer/props';
4
5
  interface ChatBannerProps {
5
6
  label: string;
6
7
  viewLabel: string;
8
+ type: BANNER_TYPES;
7
9
  onView: () => void;
8
10
  onClose: () => void;
9
11
  }
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export declare const CONTAINER_WIDTH = 300;
3
- export declare const StyledChatContainerContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
+ export declare const StyledChatContainerContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
4
4
  export declare const StyledIndicatorContainer: import("styled-components").StyledComponent<"div", any, {
5
5
  isLoading?: "bottom" | "top" | undefined;
6
6
  linear?: boolean | undefined;
7
7
  }, never>;
8
- export declare const MobileStyledChatContainerContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
8
+ export declare const MobileStyledChatContainerContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface validParamT {
3
+ childs: React.ReactChild | React.ReactFragment | React.ReactPortal;
4
+ }
5
+ export declare const validHeaderChilds: (children: validParamT) => any;
6
+ export {};
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledChatContainerContentHeader: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
- export declare const StyledChatContainerContentHeaderLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
4
- export declare const StyledChatContainerContentHeaderActions: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
2
+ export declare const StyledChatContainerContentHeaderActions: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
3
+ export declare const StyledChatContainerContentHeader: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
4
+ export declare const StyledChatContainerContentHeaderLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PropTypes } from 'react-desc';
2
3
  import { BubbleProps } from '../bubble/props';
3
4
  export interface ChatContainerMessagesListProps {
@@ -9,6 +10,11 @@ export interface ChatContainerMessagesListProps {
9
10
  getMoreMessages: PropTypes.func;
10
11
  sendingMessages?: Array<string | number>;
11
12
  sendingText: string;
13
+ bannerPosition?: 'top' | 'bottom';
14
+ bannerRef: React.MutableRefObject<{
15
+ focusOnWrapper: (...args: any[]) => void;
16
+ focusOnLink: (...args: any[]) => void;
17
+ }>;
12
18
  }
13
19
  export declare const defaultProps: ChatContainerMessagesListProps;
14
20
  export declare const listProps: {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const CONTAINER_WIDTH = 300;
3
- export declare const ChatEmptyStateWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
+ export declare const ChatEmptyStateWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
4
4
  export declare const MessageWrapper: import("styled-components").StyledComponent<"p", any, {}, never>;
@@ -6,11 +6,14 @@ declare const SideBarChat: {
6
6
  sidebarItems: any;
7
7
  expanded: any;
8
8
  selectedItem: any;
9
+ tooltipPlacement: any;
10
+ enableTooltipWhenIsClosed: any;
9
11
  onFooterExpand: any;
10
12
  onFooterClose: any;
11
13
  onHeaderExpand: any;
12
14
  onHeaderClose: any;
13
15
  footerButtonExtraProps: any;
16
+ actionRef: any;
14
17
  };
15
18
  defaultProps: CharSidebarProps;
16
19
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TileButtonProps } from '../tile-button/props';
2
3
  export interface CharSidebarProps {
3
4
  sidebarItems: TileButtonProps[];
@@ -7,16 +8,22 @@ export interface CharSidebarProps {
7
8
  onFooterExpand: () => void;
8
9
  onHeaderExpand: () => void;
9
10
  onHeaderClose: () => void;
10
- footerButtonExtraProps: {};
11
+ footerButtonExtraProps: Record<string, any>;
12
+ tooltipPlacement: 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
13
+ enableTooltipWhenIsClosed: boolean;
14
+ actionRef: React.MutableRefObject<any>;
11
15
  }
12
16
  export declare const defaultProps: CharSidebarProps;
13
17
  export declare const chatSidebarProps: {
14
18
  sidebarItems: any;
15
19
  expanded: any;
16
20
  selectedItem: any;
21
+ tooltipPlacement: any;
22
+ enableTooltipWhenIsClosed: any;
17
23
  onFooterExpand: any;
18
24
  onFooterClose: any;
19
25
  onHeaderExpand: any;
20
26
  onHeaderClose: any;
21
27
  footerButtonExtraProps: any;
28
+ actionRef: any;
22
29
  };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledSideBarContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
- export declare const StyledSideBarButtonsContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
2
+ export declare const StyledSideBarContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
3
+ export declare const StyledSideBarButtonsContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledFloatingContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
2
+ export declare const StyledFloatingContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledChatContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
- export declare const StyledChatContainerContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
2
+ export declare const StyledChatContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
3
+ export declare const StyledChatContainerContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { MessageDelimiterProps } from './props';
3
- declare const Wrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
+ declare const Wrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
4
4
  declare const Line: import("styled-components").StyledComponent<"span", any, {}, never>;
5
5
  declare const Text: import("styled-components").StyledComponent<"p", any, Pick<MessageDelimiterProps, "size" | "verticalMargin">, never>;
6
6
  export { Wrapper, Line, Text };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StyledSidebarButton: import("styled-components").StyledComponent<"button", any, {}, never>;
3
- export declare const StyledSidebarButtonIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
+ export declare const StyledSidebarButtonIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
4
4
  export declare const StyledSidebarButtonLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const Wrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
- declare const Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
2
+ declare const Wrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
3
+ declare const Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
4
4
  declare const Title: import("styled-components").StyledComponent<"p", any, any, never>;
5
5
  declare const Time: import("styled-components").StyledComponent<"p", any, any, never>;
6
6
  declare const Message: import("styled-components").StyledComponent<"p", any, any, never>;
@@ -19,6 +19,9 @@ declare const TileButton: {
19
19
  selected: any;
20
20
  isHeader: any;
21
21
  ariaLabel: any;
22
+ tooltipPlacement: any;
23
+ disableTooltip: any;
24
+ innerRef: any;
22
25
  };
23
26
  defaultProps: TileButtonProps;
24
27
  };
@@ -18,6 +18,9 @@ export interface TileButtonProps {
18
18
  selected: boolean;
19
19
  isHeader: boolean;
20
20
  ariaLabel: string;
21
+ tooltipPlacement: 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
22
+ disableTooltip: boolean;
23
+ innerRef?: React.MutableRefObject<HTMLButtonElement> | ((_ref: HTMLButtonElement) => void);
21
24
  }
22
25
  export declare const defaultTileButton: TileButtonProps;
23
26
  export declare const propsTileButton: {
@@ -37,4 +40,7 @@ export declare const propsTileButton: {
37
40
  selected: any;
38
41
  isHeader: any;
39
42
  ariaLabel: any;
43
+ tooltipPlacement: any;
44
+ disableTooltip: any;
45
+ innerRef: any;
40
46
  };
@@ -1,10 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { TileButtonProps } from './props';
3
- export declare const StyledWrapperLeftBorder: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
+ export declare const StyledWrapperLeftBorder: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
4
4
  export declare const StyledStatusBadge: import("styled-components").StyledComponent<"div", any, Partial<TileButtonProps>, never>;
5
- export declare const StyledWrapperCentralContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
6
- export declare const StyledTileButtonIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
5
+ export declare const StyledWrapperCentralContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
6
+ export declare const StyledTileButtonIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
7
7
  export declare const StyledTileButtonLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
8
8
  export declare const CloseButton: import("styled-components").StyledComponent<"button", any, any, never>;
9
+ export declare const StyledTooltipV3ButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
10
  export declare const StyledTileButton: import("styled-components").StyledComponent<"button", any, Partial<TileButtonProps>, never>;
10
- export declare const StyledWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
11
+ export declare const StyledWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;