@elliemae/ds-chat 3.5.0-rc.7 → 3.5.1-next.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.
Files changed (69) hide show
  1. package/dist/cjs/exported-related/bubble/ChatBubble.js +63 -33
  2. package/dist/cjs/exported-related/bubble/ChatBubble.js.map +1 -1
  3. package/dist/cjs/exported-related/bubble/ChatBubbleArrow.js +83 -60
  4. package/dist/cjs/exported-related/bubble/ChatBubbleArrow.js.map +2 -2
  5. package/dist/cjs/exported-related/chat-card/ChatCard.js +28 -14
  6. package/dist/cjs/exported-related/chat-card/ChatCard.js.map +2 -2
  7. package/dist/cjs/exported-related/chat-card/props.js +2 -1
  8. package/dist/cjs/exported-related/chat-card/props.js.map +1 -1
  9. package/dist/cjs/exported-related/chat-container-header/ChatContainerHeader.js +20 -13
  10. package/dist/cjs/exported-related/chat-container-header/ChatContainerHeader.js.map +1 -1
  11. package/dist/cjs/exported-related/chat-empty-state/ChatEmptyState.js +31 -19
  12. package/dist/cjs/exported-related/chat-empty-state/ChatEmptyState.js.map +2 -2
  13. package/dist/cjs/exported-related/chat-empty-state/props.js +2 -1
  14. package/dist/cjs/exported-related/chat-empty-state/props.js.map +1 -1
  15. package/dist/cjs/exported-related/chat-sidebar/SideBarChat.js +22 -16
  16. package/dist/cjs/exported-related/chat-sidebar/SideBarChat.js.map +1 -1
  17. package/dist/cjs/exported-related/chat-sidebar/sidebar-button/SidebarButton.js +16 -9
  18. package/dist/cjs/exported-related/chat-sidebar/sidebar-button/SidebarButton.js.map +1 -1
  19. package/dist/cjs/exported-related/floating-button/FloatingButton.js +7 -6
  20. package/dist/cjs/exported-related/floating-button/FloatingButton.js.map +2 -2
  21. package/dist/cjs/exported-related/grid-influencer/InfluencerContainer.js +8 -3
  22. package/dist/cjs/exported-related/grid-influencer/InfluencerContainer.js.map +1 -1
  23. package/dist/cjs/exported-related/message-delimiter/MessageDelimiter.js +14 -8
  24. package/dist/cjs/exported-related/message-delimiter/MessageDelimiter.js.map +2 -2
  25. package/dist/cjs/exported-related/system-message/SystemMessage.js +24 -12
  26. package/dist/cjs/exported-related/system-message/SystemMessage.js.map +2 -2
  27. package/dist/cjs/exported-related/tile-button/TileButton.js +59 -35
  28. package/dist/cjs/exported-related/tile-button/TileButton.js.map +1 -1
  29. package/dist/cjs/parts/chat-composer/ChatContainerComposer.js +85 -60
  30. package/dist/cjs/parts/chat-composer/ChatContainerComposer.js.map +1 -1
  31. package/dist/cjs/parts/chat-container/ChatContainer.js +64 -50
  32. package/dist/cjs/parts/chat-container/ChatContainer.js.map +1 -1
  33. package/dist/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +64 -37
  34. package/dist/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +1 -1
  35. package/dist/esm/exported-related/bubble/ChatBubble.js +63 -33
  36. package/dist/esm/exported-related/bubble/ChatBubble.js.map +1 -1
  37. package/dist/esm/exported-related/bubble/ChatBubbleArrow.js +83 -60
  38. package/dist/esm/exported-related/bubble/ChatBubbleArrow.js.map +2 -2
  39. package/dist/esm/exported-related/chat-card/ChatCard.js +28 -14
  40. package/dist/esm/exported-related/chat-card/ChatCard.js.map +2 -2
  41. package/dist/esm/exported-related/chat-card/props.js +2 -1
  42. package/dist/esm/exported-related/chat-card/props.js.map +1 -1
  43. package/dist/esm/exported-related/chat-container-header/ChatContainerHeader.js +20 -13
  44. package/dist/esm/exported-related/chat-container-header/ChatContainerHeader.js.map +1 -1
  45. package/dist/esm/exported-related/chat-empty-state/ChatEmptyState.js +31 -19
  46. package/dist/esm/exported-related/chat-empty-state/ChatEmptyState.js.map +2 -2
  47. package/dist/esm/exported-related/chat-empty-state/props.js +2 -1
  48. package/dist/esm/exported-related/chat-empty-state/props.js.map +1 -1
  49. package/dist/esm/exported-related/chat-sidebar/SideBarChat.js +22 -16
  50. package/dist/esm/exported-related/chat-sidebar/SideBarChat.js.map +1 -1
  51. package/dist/esm/exported-related/chat-sidebar/sidebar-button/SidebarButton.js +16 -9
  52. package/dist/esm/exported-related/chat-sidebar/sidebar-button/SidebarButton.js.map +1 -1
  53. package/dist/esm/exported-related/floating-button/FloatingButton.js +7 -6
  54. package/dist/esm/exported-related/floating-button/FloatingButton.js.map +2 -2
  55. package/dist/esm/exported-related/grid-influencer/InfluencerContainer.js +8 -3
  56. package/dist/esm/exported-related/grid-influencer/InfluencerContainer.js.map +1 -1
  57. package/dist/esm/exported-related/message-delimiter/MessageDelimiter.js +14 -8
  58. package/dist/esm/exported-related/message-delimiter/MessageDelimiter.js.map +2 -2
  59. package/dist/esm/exported-related/system-message/SystemMessage.js +24 -12
  60. package/dist/esm/exported-related/system-message/SystemMessage.js.map +2 -2
  61. package/dist/esm/exported-related/tile-button/TileButton.js +59 -35
  62. package/dist/esm/exported-related/tile-button/TileButton.js.map +1 -1
  63. package/dist/esm/parts/chat-composer/ChatContainerComposer.js +85 -60
  64. package/dist/esm/parts/chat-composer/ChatContainerComposer.js.map +1 -1
  65. package/dist/esm/parts/chat-container/ChatContainer.js +64 -50
  66. package/dist/esm/parts/chat-container/ChatContainer.js.map +1 -1
  67. package/dist/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +64 -37
  68. package/dist/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +1 -1
  69. package/package.json +10 -10
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
3
  import React2 from "react";
3
4
  import { Grid } from "@elliemae/ds-grid";
4
5
  import { PaperAirplane } from "@elliemae/ds-icons";
@@ -64,68 +65,92 @@ const ChatComposer = (props) => {
64
65
  const heightProps = { height, overflow: showScroll ? "auto" : "hidden" };
65
66
  const inputLength = String(inputValue || "").length;
66
67
  const hasError = React2.useMemo(() => inputLength > inputMaxLength, [inputLength, inputMaxLength]);
67
- return /* @__PURE__ */ React2.createElement(StyledChatContainerContentComposer, {
68
+ return /* @__PURE__ */ jsxs(StyledChatContainerContentComposer, {
68
69
  rows: ["auto", "15px"],
69
70
  maxHeight: `${maxHeight}px`,
70
- "data-testid": dataTestid
71
- }, /* @__PURE__ */ React2.createElement(Grid, {
72
- cols: ["1fr", "24px"],
73
- style: { height: heightProps.height },
74
- justifyContent: "center",
75
- alignItems: "flex-end",
76
- gutter: "xxs"
77
- }, /* @__PURE__ */ React2.createElement(StyledComposerInput, {
78
- ref: input,
79
- onChange: handleChange,
80
- style: { ...heightProps },
81
- value: inputValue,
82
- onFocus,
83
- onBlur,
84
- onKeyDown,
85
- placeholder,
86
- "aria-label": "Message to send",
87
- "data-testid": "chat-composer-textarea",
88
- name: "chat-composer-textarea",
89
- id: "chat-composer-textarea"
90
- }), /* @__PURE__ */ React2.createElement(Grid, {
91
- height: "32px",
92
- alignItems: "center"
93
- }, /* @__PURE__ */ React2.createElement(StyledComposerButton, {
94
- buttonType: "text",
95
- icon: /* @__PURE__ */ React2.createElement(PaperAirplane, {
96
- width: 18,
97
- height: 18
98
- }),
99
- onClick: onSend,
100
- size: "s",
101
- disabled: !inputValue || buttonDisabled || hasError,
102
- "data-testid": "chat-composer-send-button",
103
- "aria-label": "Send",
104
- innerRef: inputSend
105
- }))), /* @__PURE__ */ React2.createElement(StyledComposerInput, {
106
- ref: inputSize,
107
- style: {
108
- height: 32,
109
- visibility: "hidden",
110
- pointerEvents: "none",
111
- position: "absolute",
112
- top: 0,
113
- width: input.current?.clientWidth
114
- },
115
- onChange: handleChange,
116
- value: inputValue
117
- }), /* @__PURE__ */ React2.createElement(Grid, {
118
- cols: ["1fr", "24px"],
119
- justifyContent: "flex-end",
120
- alignItems: "center",
121
- gutter: "xxs",
122
- pb: "xxs"
123
- }, /* @__PURE__ */ React2.createElement(StyledCounterArea, {
124
- hasError,
125
- "data-testid": "composer-counter-area"
126
- }, inputMaxLength && hasError ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(StyledCounterErrorA11y, {
127
- role: "alert"
128
- }, ariaMaxLengthMessage || `You have entered ${inputLength} characters and have exceeded the limit by ${inputLength - inputMaxLength}. Please limit to less than ${inputMaxLength} characters. `), maxLengthMessage || `Please limit to less than ${inputMaxLength} characters. `) : "", inputMaxLength ? ` ${inputLength} / ${inputMaxLength}` : ""), /* @__PURE__ */ React2.createElement(Grid, null)));
71
+ "data-testid": dataTestid,
72
+ children: [
73
+ /* @__PURE__ */ jsxs(Grid, {
74
+ cols: ["1fr", "24px"],
75
+ style: { height: heightProps.height },
76
+ justifyContent: "center",
77
+ alignItems: "flex-end",
78
+ gutter: "xxs",
79
+ children: [
80
+ /* @__PURE__ */ jsx(StyledComposerInput, {
81
+ ref: input,
82
+ onChange: handleChange,
83
+ style: { ...heightProps },
84
+ value: inputValue,
85
+ onFocus,
86
+ onBlur,
87
+ onKeyDown,
88
+ placeholder,
89
+ "aria-label": "Message to send",
90
+ "data-testid": "chat-composer-textarea",
91
+ name: "chat-composer-textarea",
92
+ id: "chat-composer-textarea"
93
+ }),
94
+ /* @__PURE__ */ jsx(Grid, {
95
+ height: "32px",
96
+ alignItems: "center",
97
+ children: /* @__PURE__ */ jsx(StyledComposerButton, {
98
+ buttonType: "text",
99
+ icon: /* @__PURE__ */ jsx(PaperAirplane, {
100
+ width: 18,
101
+ height: 18
102
+ }),
103
+ onClick: onSend,
104
+ size: "s",
105
+ disabled: !inputValue || buttonDisabled || hasError,
106
+ "data-testid": "chat-composer-send-button",
107
+ "aria-label": "Send",
108
+ innerRef: inputSend
109
+ })
110
+ })
111
+ ]
112
+ }),
113
+ /* @__PURE__ */ jsx(StyledComposerInput, {
114
+ ref: inputSize,
115
+ style: {
116
+ height: 32,
117
+ visibility: "hidden",
118
+ pointerEvents: "none",
119
+ position: "absolute",
120
+ top: 0,
121
+ width: input.current?.clientWidth
122
+ },
123
+ onChange: handleChange,
124
+ value: inputValue
125
+ }),
126
+ /* @__PURE__ */ jsxs(Grid, {
127
+ cols: ["1fr", "24px"],
128
+ justifyContent: "flex-end",
129
+ alignItems: "center",
130
+ gutter: "xxs",
131
+ pb: "xxs",
132
+ children: [
133
+ /* @__PURE__ */ jsxs(StyledCounterArea, {
134
+ hasError,
135
+ "data-testid": "composer-counter-area",
136
+ children: [
137
+ inputMaxLength && hasError ? /* @__PURE__ */ jsxs(Fragment, {
138
+ children: [
139
+ /* @__PURE__ */ jsx(StyledCounterErrorA11y, {
140
+ role: "alert",
141
+ children: ariaMaxLengthMessage || `You have entered ${inputLength} characters and have exceeded the limit by ${inputLength - inputMaxLength}. Please limit to less than ${inputMaxLength} characters. `
142
+ }),
143
+ maxLengthMessage || `Please limit to less than ${inputMaxLength} characters. `
144
+ ]
145
+ }) : "",
146
+ inputMaxLength ? ` ${inputLength} / ${inputMaxLength}` : ""
147
+ ]
148
+ }),
149
+ /* @__PURE__ */ jsx(Grid, {})
150
+ ]
151
+ })
152
+ ]
153
+ });
129
154
  };
130
155
  ChatComposer.propTypes = ChatComposerPropTypes;
131
156
  ChatComposer.displayName = "ChatComposer";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/chat-composer/ChatContainerComposer.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React, { WeakValidationMap } from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { PaperAirplane } from '@elliemae/ds-icons';\nimport { useMemoMergePropsWithDefault, useValidateTypescriptPropTypes, describe } from '@elliemae/ds-utilities';\nimport {\n StyledChatContainerContentComposer,\n StyledComposerInput,\n StyledComposerButton,\n StyledCounterArea,\n StyledCounterErrorA11y,\n} from './styled';\n\nimport { DSChatT, ChatComposerPropTypes, defaultPropsComposer } from '../../react-desc-prop-types';\n// eslint-disable-next-line complexity\nconst ChatComposer: React.ComponentType<DSChatT.ComposerProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault<DSChatT.ComposerProps>(props, defaultPropsComposer);\n useValidateTypescriptPropTypes<DSChatT.ComposerProps>(propsWithDefault, ChatComposerPropTypes);\n const {\n inputValue,\n onChange,\n onResize,\n onSend,\n onFocus,\n onBlur,\n onKeyDown,\n maxHeight = 300,\n placeholder,\n inputMaxLength,\n maxLengthMessage,\n ariaMaxLengthMessage,\n buttonDisabled,\n dataTestid,\n actionRef,\n } = propsWithDefault;\n\n const COMPOSER_MIN_HEIGHT = 32;\n const input = React.useRef<HTMLTextAreaElement>();\n const inputSize = React.useRef<HTMLTextAreaElement>();\n const inputSend = React.useRef<HTMLButtonElement>();\n const [height, setHeight] = React.useState(32);\n const internalMaxHeight = React.useMemo(() => maxHeight - 24, [maxHeight]);\n const [showScroll, setShowScroll] = React.useState(true);\n\n React.useEffect(() => {\n const newHeight =\n inputSize.current?.scrollHeight > internalMaxHeight ? internalMaxHeight : inputSize.current?.scrollHeight;\n if (newHeight !== height && newHeight > COMPOSER_MIN_HEIGHT) onResize(newHeight);\n setHeight(newHeight);\n setShowScroll(inputSize.current?.scrollHeight - inputSize.current?.clientHeight > 5);\n }, [inputValue, internalMaxHeight, height, onResize]);\n\n React.useEffect(() => {\n if (actionRef && actionRef.current) {\n actionRef.current.focusToComposer = () => {\n input.current.focus();\n };\n actionRef.current.focusToSend = () => {\n inputSend.current.focus();\n };\n }\n }, [actionRef]);\n\n const handleChange = React.useCallback(\n (e) => {\n onChange(e.target.value);\n },\n [onChange],\n );\n const heightProps = { height, overflow: showScroll ? 'auto' : 'hidden' };\n\n const inputLength = String(inputValue || '').length;\n const hasError = React.useMemo(() => inputLength > inputMaxLength, [inputLength, inputMaxLength]);\n return (\n <StyledChatContainerContentComposer rows={['auto', '15px']} maxHeight={`${maxHeight}px`} data-testid={dataTestid}>\n <Grid\n cols={['1fr', '24px']}\n style={{ height: heightProps.height }}\n justifyContent=\"center\"\n alignItems=\"flex-end\"\n gutter=\"xxs\"\n >\n <StyledComposerInput\n ref={input}\n onChange={handleChange}\n style={{ ...heightProps }}\n value={inputValue}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n placeholder={placeholder}\n aria-label=\"Message to send\"\n data-testid=\"chat-composer-textarea\"\n name=\"chat-composer-textarea\"\n id=\"chat-composer-textarea\"\n />\n\n <Grid height=\"32px\" alignItems=\"center\">\n <StyledComposerButton\n buttonType=\"text\"\n icon={<PaperAirplane width={18} height={18} />}\n onClick={onSend}\n size=\"s\"\n disabled={!inputValue || buttonDisabled || hasError}\n data-testid=\"chat-composer-send-button\"\n aria-label=\"Send\"\n innerRef={inputSend}\n />\n </Grid>\n </Grid>\n <StyledComposerInput\n ref={inputSize}\n style={{\n height: 32,\n visibility: 'hidden',\n pointerEvents: 'none',\n position: 'absolute',\n top: 0,\n width: input.current?.clientWidth,\n }}\n onChange={handleChange}\n value={inputValue}\n />\n <Grid cols={['1fr', '24px']} justifyContent=\"flex-end\" alignItems=\"center\" gutter=\"xxs\" pb=\"xxs\">\n <StyledCounterArea hasError={hasError} data-testid=\"composer-counter-area\">\n {inputMaxLength && hasError ? (\n <>\n <StyledCounterErrorA11y role=\"alert\">\n {ariaMaxLengthMessage ||\n `You have entered ${inputLength} characters and have exceeded the limit by ${\n inputLength - inputMaxLength\n }. Please limit to less than ${inputMaxLength} characters. `}\n </StyledCounterErrorA11y>\n {maxLengthMessage || `Please limit to less than ${inputMaxLength} characters. `}\n </>\n ) : (\n ''\n )}\n {inputMaxLength ? ` ${inputLength} / ${inputMaxLength}` : ''}\n </StyledCounterArea>\n <Grid />\n </Grid>\n </StyledChatContainerContentComposer>\n );\n};\n\nChatComposer.propTypes = ChatComposerPropTypes as WeakValidationMap<unknown>;\nChatComposer.displayName = 'ChatComposer';\nconst ChatComposerWithSchema = describe(ChatComposer);\nChatComposerWithSchema.propTypes = ChatComposerPropTypes as WeakValidationMap<unknown>;\n\nexport { ChatComposer, ChatComposerWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACCvB,OAAOA,YAAkC;AACzC,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SA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;AAAA,YAChD;AAAA,gCAAkB,WACjB;AAAA,gBACE;AAAA,sCAAC;AAAA,oBAAuB,MAAK;AAAA,oBAC1B,kCACC,oBAAoB,yDAClB,cAAc,6CACe;AAAA,mBACnC;AAAA,kBACC,oBAAoB,6BAA6B;AAAA;AAAA,eACpD,IAEA;AAAA,cAED,iBAAiB,IAAI,iBAAiB,mBAAmB;AAAA;AAAA,WAC5D;AAAA,UACA,oBAAC,QAAK;AAAA;AAAA,OACR;AAAA;AAAA,GACF;AAEJ;AAEA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,yBAAyB,SAAS,YAAY;AACpD,uBAAuB,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
2
3
  import React2 from "react";
3
4
  import { noop } from "lodash";
4
5
  import {
@@ -74,59 +75,72 @@ const ChatContainer = (props) => {
74
75
  actionRef.current.focusOnBannerLink = bannerRef.current.focusOnLink;
75
76
  }
76
77
  }, [actionRef]);
77
- return /* @__PURE__ */ React2.createElement(Container, {
78
+ return /* @__PURE__ */ jsxs(Container, {
78
79
  ...globalAttributes,
79
80
  rows: ["minmax(0, 1fr)", "auto"],
80
81
  ref: containerRef,
81
- role: "region"
82
- }, /* @__PURE__ */ React2.createElement("div", {
83
- style: { position: "relative", overflow: "hidden" }
84
- }, /* @__PURE__ */ React2.createElement(ChatContainerMessagesList, {
85
- ...messagesListProps,
86
- actionRef: actionRef || listRef,
87
- isLoading,
88
- hasMoreItems,
89
- getMoreMessages,
90
- sendingMessages,
91
- sendingText,
92
- bannerPosition,
93
- bannerRef
94
- }), isLoading && ["top", "bottom"].includes(isLoading) ? /* @__PURE__ */ React2.createElement(StyledIndicatorContainer, {
95
- isLoading,
96
- "data-testid": "ds-chat-loading-indicator"
97
- }, /* @__PURE__ */ React2.createElement(DSIndeterminateProgressIndicator, {
98
- processing: true,
99
- title: "Loading"
100
- })) : null, /* @__PURE__ */ React2.createElement(StyledIndicatorContainer, {
101
- linear: true,
102
- isLoading: bannerPosition
103
- }, /* @__PURE__ */ React2.createElement(DSBanner, {
104
- showCloseButton: true,
105
- label: bannerProps?.label || "Unread messages",
106
- containerProps: { id: "ds-chat-banner" },
107
- actionLink: {
108
- label: bannerProps?.viewLabel || "View",
109
- onClick: bannerProps?.onView
110
- },
111
- onClose: bannerProps?.onClose,
112
- isOpen: true,
113
- type: bannerProps?.type || BANNER_TYPES.INFO,
114
- actionRef: bannerRef
115
- })), sendingMessages && sendingMessages.length > 0 ? /* @__PURE__ */ React2.createElement(StyledIndicatorContainer, {
116
- isLoading: "bottom",
117
- linear: true,
118
- "data-testid": "ds-chat-loading-indicator"
119
- }, /* @__PURE__ */ React2.createElement(DSIndeterminateProgressIndicator, {
120
- processing: true,
121
- title: sendingText,
122
- lineOnly: true
123
- })) : null), /* @__PURE__ */ React2.createElement(ChatComposer, {
124
- ...composerProps,
125
- onKeyDown: handleTabs,
126
- onResize,
127
- maxHeight: (containerRef.current?.clientHeight || 0) / 2,
128
- actionRef: actionRef || listRef
129
- }));
82
+ role: "region",
83
+ children: [
84
+ /* @__PURE__ */ jsxs("div", {
85
+ style: { position: "relative", overflow: "hidden" },
86
+ children: [
87
+ /* @__PURE__ */ jsx(ChatContainerMessagesList, {
88
+ ...messagesListProps,
89
+ actionRef: actionRef || listRef,
90
+ isLoading,
91
+ hasMoreItems,
92
+ getMoreMessages,
93
+ sendingMessages,
94
+ sendingText,
95
+ bannerPosition,
96
+ bannerRef
97
+ }),
98
+ isLoading && ["top", "bottom"].includes(isLoading) ? /* @__PURE__ */ jsx(StyledIndicatorContainer, {
99
+ isLoading,
100
+ "data-testid": "ds-chat-loading-indicator",
101
+ children: /* @__PURE__ */ jsx(DSIndeterminateProgressIndicator, {
102
+ processing: true,
103
+ title: "Loading"
104
+ })
105
+ }) : null,
106
+ /* @__PURE__ */ jsx(StyledIndicatorContainer, {
107
+ linear: true,
108
+ isLoading: bannerPosition,
109
+ children: /* @__PURE__ */ jsx(DSBanner, {
110
+ showCloseButton: true,
111
+ label: bannerProps?.label || "Unread messages",
112
+ containerProps: { id: "ds-chat-banner" },
113
+ actionLink: {
114
+ label: bannerProps?.viewLabel || "View",
115
+ onClick: bannerProps?.onView
116
+ },
117
+ onClose: bannerProps?.onClose,
118
+ isOpen: true,
119
+ type: bannerProps?.type || BANNER_TYPES.INFO,
120
+ actionRef: bannerRef
121
+ })
122
+ }),
123
+ sendingMessages && sendingMessages.length > 0 ? /* @__PURE__ */ jsx(StyledIndicatorContainer, {
124
+ isLoading: "bottom",
125
+ linear: true,
126
+ "data-testid": "ds-chat-loading-indicator",
127
+ children: /* @__PURE__ */ jsx(DSIndeterminateProgressIndicator, {
128
+ processing: true,
129
+ title: sendingText,
130
+ lineOnly: true
131
+ })
132
+ }) : null
133
+ ]
134
+ }),
135
+ /* @__PURE__ */ jsx(ChatComposer, {
136
+ ...composerProps,
137
+ onKeyDown: handleTabs,
138
+ onResize,
139
+ maxHeight: (containerRef.current?.clientHeight || 0) / 2,
140
+ actionRef: actionRef || listRef
141
+ })
142
+ ]
143
+ });
130
144
  };
131
145
  ChatContainer.propTypes = ChatContainerPropTypes;
132
146
  ChatContainer.displayName = "ChatContainer";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/chat-container/ChatContainer.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable complexity */\nimport React, { WeakValidationMap } from 'react';\nimport { noop } from 'lodash';\nimport {\n useMemoMergePropsWithDefault,\n useGetGlobalAttributes,\n useValidateTypescriptPropTypes,\n describe,\n} from '@elliemae/ds-utilities';\n\nimport DSIndeterminateProgressIndicator from '@elliemae/ds-indeterminate-progress-indicator';\nimport DSBanner, { BANNER_TYPES } from '@elliemae/ds-banner';\nimport { ChatComposer } from '../chat-composer';\nimport { ChatContainerMessagesList } from '../chat-container-messages-list';\nimport { DSChatT, defaultProps, ChatContainerPropTypes } from '../../react-desc-prop-types';\n\nimport { StyledChatContainerContent, StyledIndicatorContainer, MobileStyledChatContainerContent } from './styled';\n\nconst ChatContainer: React.ComponentType<DSChatT.ContainerProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault<DSChatT.ContainerProps>(props, defaultProps);\n useValidateTypescriptPropTypes<DSChatT.ContainerProps>(propsWithDefault, ChatContainerPropTypes);\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n\n const {\n sendingText,\n sendingMessages,\n bannerPosition,\n bannerProps,\n messagesListProps,\n composerProps,\n composerProps: { onResize: onComposerResize, onKeyDown: onComposerKeyDown },\n actionRef,\n device,\n isLoading,\n hasMoreItems,\n getMoreMessages,\n } = propsWithDefault;\n const bannerRef = React.useRef({ focusOnWrapper: noop, focusOnLink: noop });\n const containerRef = React.useRef<HTMLElement>();\n const listRef = React.useRef({ scrollToIndex: noop });\n\n const onResize = React.useCallback(\n (height: number) => {\n if (onComposerResize) onComposerResize(height);\n /*\n setTimeout is used to equal the animation duration from the \n composer text area when increase its size\n */\n setTimeout(() => {\n actionRef.current.scrollToIndex(messagesListProps.messages.length - 1, {\n align: 'start',\n });\n }, 50);\n },\n [onComposerResize, messagesListProps.messages, actionRef],\n );\n const Container = device === 'desktop' ? StyledChatContainerContent : MobileStyledChatContainerContent;\n const handleTabs = React.useCallback(\n (e: React.KeyboardEvent) => {\n if (onComposerKeyDown) onComposerKeyDown(e);\n else {\n const ref = actionRef || listRef;\n if (e.shiftKey && e.key === 'Tab') {\n if (messagesListProps.messages?.length > 0) {\n e.preventDefault();\n if (['top', 'bottom'].includes(bannerPosition)) {\n bannerRef.current.focusOnWrapper();\n } else {\n const last = ref.current.getMessagesInView().pop();\n ref.current?.focusToIndexWithoutScroll(last);\n }\n }\n }\n }\n },\n [actionRef, onComposerKeyDown, bannerPosition, messagesListProps.messages?.length],\n );\n\n // Map actions\n React.useEffect(() => {\n if (actionRef && actionRef.current) {\n actionRef.current.focusOnBanner = bannerRef.current.focusOnWrapper;\n actionRef.current.focusOnBannerLink = bannerRef.current.focusOnLink;\n }\n }, [actionRef]);\n return (\n <Container {...globalAttributes} rows={['minmax(0, 1fr)', 'auto']} ref={containerRef} role=\"region\">\n <div style={{ position: 'relative', overflow: 'hidden' }}>\n <ChatContainerMessagesList\n {...messagesListProps}\n actionRef={actionRef || listRef}\n isLoading={isLoading}\n hasMoreItems={hasMoreItems}\n getMoreMessages={getMoreMessages}\n sendingMessages={sendingMessages}\n sendingText={sendingText}\n bannerPosition={bannerPosition}\n bannerRef={bannerRef}\n />\n {isLoading && ['top', 'bottom'].includes(isLoading) ? (\n <StyledIndicatorContainer isLoading={isLoading} data-testid=\"ds-chat-loading-indicator\">\n <DSIndeterminateProgressIndicator processing title=\"Loading\" />\n </StyledIndicatorContainer>\n ) : null}\n <StyledIndicatorContainer linear isLoading={bannerPosition}>\n <DSBanner\n showCloseButton\n label={bannerProps?.label || 'Unread messages'}\n containerProps={{ id: 'ds-chat-banner' }}\n actionLink={{\n label: bannerProps?.viewLabel || 'View',\n onClick: bannerProps?.onView,\n }}\n onClose={bannerProps?.onClose}\n isOpen\n type={bannerProps?.type || BANNER_TYPES.INFO}\n actionRef={bannerRef}\n />\n </StyledIndicatorContainer>\n {sendingMessages && sendingMessages.length > 0 ? (\n <StyledIndicatorContainer isLoading=\"bottom\" linear data-testid=\"ds-chat-loading-indicator\">\n <DSIndeterminateProgressIndicator processing title={sendingText} lineOnly />\n </StyledIndicatorContainer>\n ) : null}\n </div>\n <ChatComposer\n {...composerProps}\n onKeyDown={handleTabs}\n onResize={onResize}\n maxHeight={(containerRef.current?.clientHeight || 0) / 2}\n actionRef={actionRef || listRef}\n />\n </Container>\n );\n};\n\nChatContainer.propTypes = ChatContainerPropTypes as WeakValidationMap<unknown>;\nChatContainer.displayName = 'ChatContainer';\nconst ChatContainerWithSchema = describe(ChatContainer);\nChatContainerWithSchema.propTypes = ChatContainerPropTypes as WeakValidationMap<unknown>;\n\nexport { ChatContainer, ChatContainerWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACEvB,OAAOA,YAAkC;AACzC,SAAS,YAAY;AACrB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,OAAO,sCAAsC;AAC7C,OAAO,YAAY,oBAAoB;AACvC,SAAS,oBAAoB;AAC7B,SAAS,iCAAiC;AAC1C,SAAkB,cAAc,8BAA8B;AAE9D,SAAS,4BAA4B,0BAA0B,wCAAwC;AAEvG,MAAM,gBAA6D,CAAC,UAAU;AAC5E,QAAM,mBAAmB,6BAAqD,OAAO,YAAY;AACjG,iCAAuD,kBAAkB,sBAAsB;AAC/F,QAAM,mBAAmB,uBAAuB,gBAAgB;AAEhE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe,EAAE,UAAU,kBAAkB,WAAW,kBAAkB;AAAA,IAC1E;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,YAAYA,OAAM,OAAO,EAAE,gBAAgB,MAAM,aAAa,KAAK,CAAC;AAC1E,QAAM,eAAeA,OAAM,OAAoB;AAC/C,QAAM,UAAUA,OAAM,OAAO,EAAE,eAAe,KAAK,CAAC;AAEpD,QAAM,WAAWA,OAAM;AAAA,IACrB,CAAC,WAAmB;AAClB,UAAI;AAAkB,yBAAiB,MAAM;AAK7C,iBAAW,MAAM;AACf,kBAAU,QAAQ,cAAc,kBAAkB,SAAS,SAAS,GAAG;AAAA,UACrE,OAAO;AAAA,QACT,CAAC;AAAA,MACH,GAAG,EAAE;AAAA,IACP;AAAA,IACA,CAAC,kBAAkB,kBAAkB,UAAU,SAAS;AAAA,EAC1D;AACA,QAAM,YAAY,WAAW,YAAY,6BAA6B;AACtE,QAAM,aAAaA,OAAM;AAAA,IACvB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C;AAAA,YAAyB,WAAU;AAAA,YAAS,QAAM;AAAA,YAAC,eAAY;AAAA,YAC9D,8BAAC;AAAA,cAAiC,YAAU;AAAA,cAAC,OAAO;AAAA,cAAa,UAAQ;AAAA,aAAC;AAAA,WAC5E,IACE;AAAA;AAAA,OACN;AAAA,MACA,oBAAC;AAAA,QACE,GAAG;AAAA,QACJ,WAAW;AAAA,QACX;AAAA,QACA,YAAY,aAAa,SAAS,gBAAgB,KAAK;AAAA,QACvD,WAAW,aAAa;AAAA,OAC1B;AAAA;AAAA,GACF;AAEJ;AAEA,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,MAAM,0BAA0B,SAAS,aAAa;AACtD,wBAAwB,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
2
3
  import React2 from "react";
3
4
  import { describe } from "@elliemae/ds-utilities";
4
5
  import DSButton from "@elliemae/ds-button";
@@ -42,52 +43,78 @@ const ChatContainerMessagesList = (props) => {
42
43
  transform: `translateY(${start}px)`,
43
44
  width: "100%"
44
45
  };
45
- return /* @__PURE__ */ React2.createElement(ListItem, {
46
+ return /* @__PURE__ */ jsx(ListItem, {
46
47
  "data-element": "chat-element-list-item",
47
48
  "data-index": index,
48
- key: `ds-chat-bubble-${index}-${row.dsId}-${row.type}`,
49
49
  style,
50
50
  ref: measureRef,
51
51
  tabIndex: -1,
52
52
  onKeyDown: handleKey,
53
- role: "listitem"
54
- }, /* @__PURE__ */ React2.createElement(StyledWrapperListItem, {
55
- type: row.type
56
- }, row.type === BUBBLE_TYPES.SENDER || row.type === BUBBLE_TYPES.RECIPIENT ? /* @__PURE__ */ React2.createElement(ChatBubble, {
57
- ...row,
58
- helpMessage: isSending ? sendingText : row.helpMessage
59
- }) : null, row.type === BUBBLE_TYPES.DELIMITER ? /* @__PURE__ */ React2.createElement(MessageDelimiter, {
60
- ...row
61
- }) : null, row.type === BUBBLE_TYPES.SYSTEM ? /* @__PURE__ */ React2.createElement(SystemMessage, {
62
- ...row
63
- }) : null));
53
+ role: "listitem",
54
+ children: /* @__PURE__ */ jsxs(StyledWrapperListItem, {
55
+ type: row.type,
56
+ children: [
57
+ row.type === BUBBLE_TYPES.SENDER || row.type === BUBBLE_TYPES.RECIPIENT ? /* @__PURE__ */ jsx(ChatBubble, {
58
+ ...row,
59
+ helpMessage: isSending ? sendingText : row.helpMessage
60
+ }) : null,
61
+ row.type === BUBBLE_TYPES.DELIMITER ? /* @__PURE__ */ jsx(MessageDelimiter, {
62
+ ...row
63
+ }) : null,
64
+ row.type === BUBBLE_TYPES.SYSTEM ? /* @__PURE__ */ jsx(SystemMessage, {
65
+ ...row
66
+ }) : null
67
+ ]
68
+ })
69
+ }, `ds-chat-bubble-${index}-${row.dsId}-${row.type}`);
64
70
  }),
65
71
  [virtualItems, messages, sendingMessages, handleKey, sendingText]
66
72
  );
67
- return /* @__PURE__ */ React2.createElement(StyledWrapper, {
68
- ...globalAttributes
69
- }, /* @__PURE__ */ React2.createElement(StyledChatContainerContentList, {
70
- "data-testid": "chat-thread-container",
71
- tabIndex: 0,
72
- ref: virtualListRef,
73
- role: "list",
74
- onKeyDown: handleListKey
75
- }, /* @__PURE__ */ React2.createElement(StyledChatContainerContentListScroll, {
76
- height: `${totalSize}px`
77
- }, !isLoading && hasMoreItems ? /* @__PURE__ */ React2.createElement(StyledLoadMoreContainer, {
78
- hasMoreItems
79
- }, /* @__PURE__ */ React2.createElement(DSButton, {
80
- labelText: "Load More",
81
- buttonType: "secondary",
82
- onClick: getMoreMessages,
83
- "data-testid": "ds-chat-load-more-btn",
84
- innerRef: loadMoreRef
85
- })) : null, render)), /* @__PURE__ */ React2.createElement(StyledNewMessagesHiddenContainer, {
86
- "aria-live": "polite",
87
- "aria-hidden": "false"
88
- }, newMessages.map((newMessage) => /* @__PURE__ */ React2.createElement("p", {
89
- key: newMessage.dsId
90
- }, newMessage.title, " ", newMessage.time, " ", newMessage.body, " ", newMessage.errorMessage, " ", newMessage.helpMessage))));
73
+ return /* @__PURE__ */ jsxs(StyledWrapper, {
74
+ ...globalAttributes,
75
+ children: [
76
+ /* @__PURE__ */ jsx(StyledChatContainerContentList, {
77
+ "data-testid": "chat-thread-container",
78
+ tabIndex: 0,
79
+ ref: virtualListRef,
80
+ role: "list",
81
+ onKeyDown: handleListKey,
82
+ children: /* @__PURE__ */ jsxs(StyledChatContainerContentListScroll, {
83
+ height: `${totalSize}px`,
84
+ children: [
85
+ !isLoading && hasMoreItems ? /* @__PURE__ */ jsx(StyledLoadMoreContainer, {
86
+ hasMoreItems,
87
+ children: /* @__PURE__ */ jsx(DSButton, {
88
+ labelText: "Load More",
89
+ buttonType: "secondary",
90
+ onClick: getMoreMessages,
91
+ "data-testid": "ds-chat-load-more-btn",
92
+ innerRef: loadMoreRef
93
+ })
94
+ }) : null,
95
+ render
96
+ ]
97
+ })
98
+ }),
99
+ /* @__PURE__ */ jsx(StyledNewMessagesHiddenContainer, {
100
+ "aria-live": "polite",
101
+ "aria-hidden": "false",
102
+ children: newMessages.map((newMessage) => /* @__PURE__ */ jsxs("p", {
103
+ children: [
104
+ newMessage.title,
105
+ " ",
106
+ newMessage.time,
107
+ " ",
108
+ newMessage.body,
109
+ " ",
110
+ newMessage.errorMessage,
111
+ " ",
112
+ newMessage.helpMessage
113
+ ]
114
+ }, newMessage.dsId))
115
+ })
116
+ ]
117
+ });
91
118
  };
92
119
  ChatContainerMessagesList.propTypes = ChatContainerMessagesListPropTypes;
93
120
  ChatContainerMessagesList.displayName = "ChatContainerMessagesList";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/chat-container-messages-list/ChatContainerMessagesList.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\n/* eslint-disable jsx-a11y/no-noninteractive-tabindex */\n/* eslint-disable max-lines */\nimport React, { CSSProperties, WeakValidationMap } from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport DSButton from '@elliemae/ds-button';\nimport { ChatBubble, BUBBLE_TYPES } from '../../exported-related/bubble';\nimport { MessageDelimiter } from '../../exported-related/message-delimiter';\nimport { SystemMessage } from '../../exported-related/system-message';\nimport {\n StyledWrapperListItem,\n StyledChatContainerContentList,\n StyledChatContainerContentListScroll,\n StyledWrapper,\n StyledLoadMoreContainer,\n ListItem,\n StyledNewMessagesHiddenContainer,\n} from './styled';\nimport { DSChatT, ChatContainerMessagesListPropTypes } from '../../react-desc-prop-types';\nimport { useGetNewMessages } from './useGetNewMessages';\nimport { useChatContainerMessageList } from './useChatContainerMessageList';\n\nconst ChatContainerMessagesList: React.ComponentType<DSChatT.MessagesListProps> = (props) => {\n const {\n propsWithDefault,\n globalAttributes,\n useVirtualHelpers,\n handleKey,\n handleListKey,\n loadMoreRef,\n virtualListRef,\n } = useChatContainerMessageList(props);\n\n const { sendingText, sendingMessages, messages, getMoreMessages, hasMoreItems, isLoading } = propsWithDefault;\n const { totalSize, virtualItems } = useVirtualHelpers;\n\n const newMessages = useGetNewMessages(messages);\n\n const render = React.useMemo(\n () =>\n virtualItems.map((virtualItem) => {\n const { index, measureRef, start } = virtualItem;\n const row = messages[index];\n const isSending = sendingMessages && sendingMessages.find((m) => m === row.dsId);\n const style: CSSProperties = {\n position: 'absolute',\n top: 0,\n left: 0,\n transform: `translateY(${start}px)`,\n width: '100%',\n };\n\n return (\n <ListItem\n data-element=\"chat-element-list-item\"\n data-index={index}\n key={`ds-chat-bubble-${index}-${row.dsId}-${row.type}`}\n style={style}\n ref={measureRef}\n tabIndex={-1}\n onKeyDown={handleKey}\n role=\"listitem\"\n >\n <StyledWrapperListItem type={row.type}>\n {row.type === BUBBLE_TYPES.SENDER || row.type === BUBBLE_TYPES.RECIPIENT ? (\n // eslint-disable-next-line eslint-comments/no-unlimited-disable\n <ChatBubble {...row} helpMessage={isSending ? sendingText : row.helpMessage} />\n ) : null}\n {row.type === BUBBLE_TYPES.DELIMITER ? <MessageDelimiter {...row} /> : null}\n {row.type === BUBBLE_TYPES.SYSTEM ? <SystemMessage {...row} /> : null}\n </StyledWrapperListItem>\n </ListItem>\n );\n }),\n [virtualItems, messages, sendingMessages, handleKey, sendingText],\n );\n\n return (\n <StyledWrapper {...globalAttributes}>\n <StyledChatContainerContentList\n data-testid=\"chat-thread-container\"\n tabIndex={0}\n ref={virtualListRef as React.RefObject<HTMLDivElement>}\n role=\"list\"\n onKeyDown={handleListKey}\n >\n <StyledChatContainerContentListScroll height={`${totalSize}px`}>\n {!isLoading && hasMoreItems ? (\n <StyledLoadMoreContainer hasMoreItems={hasMoreItems}>\n <DSButton\n labelText=\"Load More\"\n buttonType=\"secondary\"\n onClick={getMoreMessages}\n data-testid=\"ds-chat-load-more-btn\"\n innerRef={loadMoreRef}\n />\n </StyledLoadMoreContainer>\n ) : null}\n {render}\n </StyledChatContainerContentListScroll>\n </StyledChatContainerContentList>\n {/* We repeat the render with the new available messages */}\n <StyledNewMessagesHiddenContainer aria-live=\"polite\" aria-hidden=\"false\">\n {newMessages.map((newMessage) => (\n <p key={newMessage.dsId}>\n {newMessage.title} {newMessage.time} {newMessage.body} {newMessage.errorMessage} {newMessage.helpMessage}\n </p>\n ))}\n </StyledNewMessagesHiddenContainer>\n </StyledWrapper>\n );\n};\n\nChatContainerMessagesList.propTypes = ChatContainerMessagesListPropTypes as WeakValidationMap<unknown>;\nChatContainerMessagesList.displayName = 'ChatContainerMessagesList';\nconst ChatContainerMessagesListWithSchema = describe(ChatContainerMessagesList);\nChatContainerMessagesListWithSchema.propTypes = ChatContainerMessagesListPropTypes as WeakValidationMap<unknown>;\n\nexport { ChatContainerMessagesList, ChatContainerMessagesListWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB,OAAOA,YAAiD;AACxD,SAAS,gBAAgB;AACzB,OAAO,cAAc;AACrB,SAAS,YAAY,oBAAoB;AACzC,SAAS,wBAAwB;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;AAAA,aAAK,IAAK;AAAA;AAAA,SACnE;AAAA,SAdK,kBAAkB,SAAS,IAAI,QAAQ,IAAI,MAelD;AAAA,IAEJ,CAAC;AAAA,IACH,CAAC,cAAc,UAAU,iBAAiB,WAAW,WAAW;AAAA,EAClE;AAEA,SACE,qBAAC;AAAA,IAAe,GAAG;AAAA,IACjB;AAAA,0BAAC;AAAA,QACC,eAAY;AAAA,QACZ,UAAU;AAAA,QACV,KAAK;AAAA,QACL,MAAK;AAAA,QACL,WAAW;AAAA,QAEX,+BAAC;AAAA,UAAqC,QAAQ,GAAG;AAAA,UAC9C;AAAA,aAAC,aAAa,eACb,oBAAC;AAAA,cAAwB;AAAA,cACvB,8BAAC;AAAA,gBACC,WAAU;AAAA,gBACV,YAAW;AAAA,gBACX,SAAS;AAAA,gBACT,eAAY;AAAA,gBACZ,UAAU;AAAA,eACZ;AAAA,aACF,IACE;AAAA,YACH;AAAA;AAAA,SACH;AAAA,OACF;AAAA,MAEA,oBAAC;AAAA,QAAiC,aAAU;AAAA,QAAS,eAAY;AAAA,QAC9D,sBAAY,IAAI,CAAC,eAChB,qBAAC;AAAA,UACE;AAAA,uBAAW;AAAA,YAAM;AAAA,YAAE,WAAW;AAAA,YAAK;AAAA,YAAE,WAAW;AAAA,YAAK;AAAA,YAAE,WAAW;AAAA,YAAa;AAAA,YAAE,WAAW;AAAA;AAAA,WADvF,WAAW,IAEnB,CACD;AAAA,OACH;AAAA;AAAA,GACF;AAEJ;AAEA,0BAA0B,YAAY;AACtC,0BAA0B,cAAc;AACxC,MAAM,sCAAsC,SAAS,yBAAyB;AAC9E,oCAAoC,YAAY;",
6
6
  "names": ["React"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-chat",
3
- "version": "3.5.0-rc.7",
3
+ "version": "3.5.1-next.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Chat",
6
6
  "files": [
@@ -307,15 +307,15 @@
307
307
  "typeSafety": false
308
308
  },
309
309
  "dependencies": {
310
- "@elliemae/ds-banner": "3.5.0-rc.7",
311
- "@elliemae/ds-button": "3.5.0-rc.7",
312
- "@elliemae/ds-grid": "3.5.0-rc.7",
313
- "@elliemae/ds-icons": "3.5.0-rc.7",
314
- "@elliemae/ds-indeterminate-progress-indicator": "3.5.0-rc.7",
315
- "@elliemae/ds-system": "3.5.0-rc.7",
316
- "@elliemae/ds-tooltip": "3.5.0-rc.7",
317
- "@elliemae/ds-truncated-tooltip-text": "3.5.0-rc.7",
318
- "@elliemae/ds-utilities": "3.5.0-rc.7",
310
+ "@elliemae/ds-banner": "3.5.1-next.0",
311
+ "@elliemae/ds-button": "3.5.1-next.0",
312
+ "@elliemae/ds-grid": "3.5.1-next.0",
313
+ "@elliemae/ds-icons": "3.5.1-next.0",
314
+ "@elliemae/ds-indeterminate-progress-indicator": "3.5.1-next.0",
315
+ "@elliemae/ds-system": "3.5.1-next.0",
316
+ "@elliemae/ds-tooltip": "3.5.1-next.0",
317
+ "@elliemae/ds-truncated-tooltip-text": "3.5.1-next.0",
318
+ "@elliemae/ds-utilities": "3.5.1-next.0",
319
319
  "react-virtual": "~2.10.4"
320
320
  },
321
321
  "devDependencies": {