@elliemae/ds-chat 2.3.0-next.11 → 2.3.0-next.16

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 (28) hide show
  1. package/cjs/exported-related/chat-container-header/ChatContainerHeader.js +11 -3
  2. package/cjs/exported-related/chat-container-header/props.js +1 -3
  3. package/esm/exported-related/chat-container-header/ChatContainerHeader.js +10 -3
  4. package/esm/exported-related/chat-container-header/props.js +1 -3
  5. package/package.json +11 -15
  6. package/types/exported-related/bubble/ChatBubble.d.ts +1 -1
  7. package/types/exported-related/bubble/props.d.ts +9 -9
  8. package/types/exported-related/chat-card/ChatCard.d.ts +1 -1
  9. package/types/exported-related/chat-card/props.d.ts +4 -4
  10. package/types/exported-related/chat-container-header/ChatContainerHeader.d.ts +1 -1
  11. package/types/exported-related/chat-container-header/props.d.ts +3 -3
  12. package/types/exported-related/chat-empty-state/ChatEmptyState.d.ts +1 -1
  13. package/types/exported-related/chat-empty-state/props.d.ts +2 -2
  14. package/types/exported-related/chat-sidebar/SideBarChat.d.ts +1 -1
  15. package/types/exported-related/floating-button/FloatingButton.d.ts +1 -1
  16. package/types/exported-related/floating-container/styled.d.ts +2 -1
  17. package/types/exported-related/message-delimiter/MessageDelimiter.d.ts +1 -1
  18. package/types/exported-related/message-delimiter/props.d.ts +365 -1
  19. package/types/exported-related/system-message/SystemMessage.d.ts +1 -1
  20. package/types/exported-related/tile-button/TileButton.d.ts +1 -1
  21. package/types/exported-related/tile-button/props.d.ts +19 -19
  22. package/types/parts/chat-composer/ChatContainerComposer.d.ts +1 -1
  23. package/types/parts/chat-container/ChatContainer.d.ts +1 -1
  24. package/types/parts/chat-container-messages-list/ChatContainerMessagesList.d.ts +1 -1
  25. package/types/react-desc-prop-types.d.ts +761 -17
  26. package/cjs/exported-related/chat-container-header/helpers.js +0 -31
  27. package/esm/exported-related/chat-container-header/helpers.js +0 -23
  28. package/types/exported-related/chat-container-header/helpers.d.ts +0 -6
@@ -3,16 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
- require('react');
6
+ require('core-js/modules/esnext.async-iterator.map.js');
7
+ require('core-js/modules/esnext.iterator.map.js');
8
+ require('core-js/modules/esnext.async-iterator.filter.js');
9
+ require('core-js/modules/esnext.iterator.constructor.js');
10
+ require('core-js/modules/esnext.iterator.filter.js');
11
+ require('core-js/modules/esnext.async-iterator.constructor.js');
12
+ require('core-js/modules/esnext.async-iterator.to-array.js');
13
+ require('core-js/modules/esnext.iterator.to-array.js');
14
+ var React = require('react');
7
15
  var dsPropsHelpers = require('@elliemae/ds-props-helpers');
8
16
  var dsTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
9
17
  var styled = require('./styled.js');
10
18
  var props = require('./props.js');
11
- var helpers = require('./helpers.js');
12
19
 
13
20
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
21
 
15
22
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
23
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
24
 
17
25
  const ChatContainerHeader = props$1 => {
18
26
  const propsWithDefault = dsPropsHelpers.useMemoMergePropsWithDefault(props$1, props.defaultProps);
@@ -32,7 +40,7 @@ const ChatContainerHeader = props$1 => {
32
40
  }, void 0, /*#__PURE__*/_jsx__default["default"](dsTruncatedTooltipText.SimpleTruncatedTooltipText, {
33
41
  value: title
34
42
  })), /*#__PURE__*/_jsx__default["default"](styled.StyledChatContainerContentHeaderActions, {
35
- cols: helpers.validHeaderChilds(children),
43
+ cols: React__default["default"].Children.toArray(children).filter(Boolean).map(() => '32px'),
36
44
  justifyContent: "flex-end",
37
45
  "data-testid": "chat-container-header-children"
38
46
  }, void 0, children));
@@ -3,11 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var dsPropsHelpers = require('@elliemae/ds-props-helpers');
6
- var jsxRuntime = require('react/jsx-runtime');
7
6
 
8
7
  const defaultProps = {
9
- title: '',
10
- children: /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {})
8
+ title: ''
11
9
  };
12
10
  const propTypes = {
13
11
  title: dsPropsHelpers.PropTypes.string.isRequired.description("Card's title"),
@@ -1,10 +1,17 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import 'react';
2
+ import 'core-js/modules/esnext.async-iterator.map.js';
3
+ import 'core-js/modules/esnext.iterator.map.js';
4
+ import 'core-js/modules/esnext.async-iterator.filter.js';
5
+ import 'core-js/modules/esnext.iterator.constructor.js';
6
+ import 'core-js/modules/esnext.iterator.filter.js';
7
+ import 'core-js/modules/esnext.async-iterator.constructor.js';
8
+ import 'core-js/modules/esnext.async-iterator.to-array.js';
9
+ import 'core-js/modules/esnext.iterator.to-array.js';
10
+ import React from 'react';
3
11
  import { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';
4
12
  import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
5
13
  import { StyledChatContainerContentHeader, StyledChatContainerContentHeaderLabel, StyledChatContainerContentHeaderActions } from './styled.js';
6
14
  import { propTypes, defaultProps } from './props.js';
7
- import { validHeaderChilds } from './helpers.js';
8
15
 
9
16
  const ChatContainerHeader = props => {
10
17
  const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
@@ -24,7 +31,7 @@ const ChatContainerHeader = props => {
24
31
  }, void 0, /*#__PURE__*/_jsx(SimpleTruncatedTooltipText, {
25
32
  value: title
26
33
  })), /*#__PURE__*/_jsx(StyledChatContainerContentHeaderActions, {
27
- cols: validHeaderChilds(children),
34
+ cols: React.Children.toArray(children).filter(Boolean).map(() => '32px'),
28
35
  justifyContent: "flex-end",
29
36
  "data-testid": "chat-container-header-children"
30
37
  }, void 0, children));
@@ -1,9 +1,7 @@
1
1
  import { PropTypes } from '@elliemae/ds-props-helpers';
2
- import { jsx, Fragment } from 'react/jsx-runtime';
3
2
 
4
3
  const defaultProps = {
5
- title: '',
6
- children: /*#__PURE__*/jsx(Fragment, {})
4
+ title: ''
7
5
  };
8
6
  const propTypes = {
9
7
  title: PropTypes.string.isRequired.description("Card's title"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-chat",
3
- "version": "2.3.0-next.11",
3
+ "version": "2.3.0-next.16",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Chat",
6
6
  "module": "./esm/index.js",
@@ -195,10 +195,6 @@
195
195
  "import": "./esm/exported-related/chat-container-header/props.js",
196
196
  "require": "./cjs/exported-related/chat-container-header/props.js"
197
197
  },
198
- "./exported-related/chat-container-header/helpers": {
199
- "import": "./esm/exported-related/chat-container-header/helpers.js",
200
- "require": "./cjs/exported-related/chat-container-header/helpers.js"
201
- },
202
198
  "./exported-related/chat-container-header/ChatContainerHeader": {
203
199
  "import": "./esm/exported-related/chat-container-header/ChatContainerHeader.js",
204
200
  "require": "./cjs/exported-related/chat-container-header/ChatContainerHeader.js"
@@ -265,18 +261,18 @@
265
261
  "generateSubmodules": true
266
262
  },
267
263
  "dependencies": {
268
- "@elliemae/ds-banner": "2.3.0-next.11",
269
- "@elliemae/ds-button": "2.3.0-next.11",
270
- "@elliemae/ds-grid": "2.3.0-next.11",
271
- "@elliemae/ds-icons": "2.3.0-next.11",
272
- "@elliemae/ds-indeterminate-progress-indicator": "2.3.0-next.11",
273
- "@elliemae/ds-props-helpers": "2.3.0-next.11",
274
- "@elliemae/ds-system": "2.3.0-next.11",
275
- "@elliemae/ds-tooltip": "2.3.0-next.11",
276
- "@elliemae/ds-truncated-tooltip-text": "2.3.0-next.11",
264
+ "@elliemae/ds-banner": "2.3.0-next.16",
265
+ "@elliemae/ds-button": "2.3.0-next.16",
266
+ "@elliemae/ds-grid": "2.3.0-next.16",
267
+ "@elliemae/ds-icons": "2.3.0-next.16",
268
+ "@elliemae/ds-indeterminate-progress-indicator": "2.3.0-next.16",
269
+ "@elliemae/ds-props-helpers": "2.3.0-next.16",
270
+ "@elliemae/ds-system": "2.3.0-next.16",
271
+ "@elliemae/ds-tooltip": "2.3.0-next.16",
272
+ "@elliemae/ds-truncated-tooltip-text": "2.3.0-next.16",
277
273
  "prop-types": "~15.7.2",
278
274
  "react-desc": "~4.1.2",
279
- "react-virtual": "~2.3.2"
275
+ "react-virtual": "~2.8.2"
280
276
  },
281
277
  "devDependencies": {
282
278
  "@testing-library/dom": "~8.11.1",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { BubblePropsT } from './props';
3
3
  declare const ChatBubble: React.ComponentType<BubblePropsT>;
4
- declare const ChatBubbleWithSchema: any;
4
+ declare const ChatBubbleWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<BubblePropsT>;
5
5
  export { ChatBubble, ChatBubbleWithSchema };
@@ -19,15 +19,15 @@ export interface BubblePropsT {
19
19
  }
20
20
  export declare const defaultBubbleProps: BubblePropsT;
21
21
  export declare const BubblesPropTypes: {
22
- dsId: any;
23
- type: any;
24
- title: any;
25
- time: any;
26
- body: any;
27
- onClick: any;
28
- errorMessage: any;
29
- helpMessage: any;
22
+ dsId: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
23
+ type: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
24
+ title: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
25
+ time: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
26
+ body: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
27
+ onClick: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
28
+ errorMessage: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
29
+ helpMessage: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
30
30
  };
31
31
  export declare const propsArrowBubble: {
32
- type: any;
32
+ type: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
33
33
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { CardPropTypes } from './props';
3
3
  declare const ChatCard: React.ComponentType<CardPropTypes>;
4
- declare const ChatCardWithSchema: any;
4
+ declare const ChatCardWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<CardPropTypes>;
5
5
  export { ChatCard, ChatCardWithSchema };
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export declare const defaultProps: CardPropTypes;
3
3
  export declare const propTypes: {
4
- title: any;
5
- content: any;
6
- time: any;
7
- rightAddon: any;
4
+ title: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
5
+ content: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
6
+ time: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
7
+ rightAddon: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
8
8
  };
9
9
  export interface CardPropTypes {
10
10
  title: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { HeaderProps } from './props';
3
3
  declare const ChatContainerHeader: React.ComponentType<HeaderProps>;
4
- declare const ChatContainerHeaderWithSchema: any;
4
+ declare const ChatContainerHeaderWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<HeaderProps>;
5
5
  export { ChatContainerHeader, ChatContainerHeaderWithSchema };
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export declare const defaultProps: HeaderProps;
3
3
  export declare const propTypes: {
4
- title: any;
5
- children: any;
4
+ title: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
5
+ children: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
6
6
  };
7
7
  export interface HeaderProps {
8
8
  title: string;
9
- children: React.ReactChild;
9
+ children?: React.ReactChild;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ChatEmptyStateProps } from './props';
3
3
  declare const ChatEmptyState: React.ComponentType<ChatEmptyStateProps>;
4
- declare const ChatEmptyStateWithSchema: any;
4
+ declare const ChatEmptyStateWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<ChatEmptyStateProps>;
5
5
  export { ChatEmptyState, ChatEmptyStateWithSchema };
@@ -5,6 +5,6 @@ export interface ChatEmptyStateProps {
5
5
  }
6
6
  export declare const defaultProps: ChatEmptyStateProps;
7
7
  export declare const emptyStateProps: {
8
- label: any;
9
- action: any;
8
+ label: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
9
+ action: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
10
10
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ChatSidebarProps } from './props';
3
3
  declare const SideBarChat: React.ComponentType<ChatSidebarProps>;
4
- declare const SideBarChatWithSchema: any;
4
+ declare const SideBarChatWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<ChatSidebarProps>;
5
5
  export { SideBarChat, SideBarChatWithSchema };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { FloatingButtonProps } from './props';
3
3
  declare const FloatingButton: React.ComponentType<FloatingButtonProps>;
4
- declare const FloatingButtonWithSchema: any;
4
+ declare const FloatingButtonWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<FloatingButtonProps>;
5
5
  export { FloatingButton, FloatingButtonWithSchema };
@@ -1 +1,2 @@
1
- export declare const StyledFloatingContainer: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object, string | number | symbol>;
1
+ /// <reference types="react" />
2
+ export declare const StyledFloatingContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { MessageDelimiterProps } from './props';
3
3
  declare const MessageDelimiter: React.ComponentType<MessageDelimiterProps>;
4
- declare const MessageDelimiterWithSchema: any;
4
+ declare const MessageDelimiterWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<MessageDelimiterProps>;
5
5
  export { MessageDelimiter, MessageDelimiterWithSchema };