@elliemae/ds-chat 2.0.0-rc.1 → 2.0.0-rc.10

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 (66) hide show
  1. package/cjs/ChatDataTestids.js +27 -0
  2. package/cjs/parts/bubble/ChatBubbleArrow.js +3 -3
  3. package/cjs/parts/chat-container/ChatContainer.js +6 -5
  4. package/cjs/parts/chat-container/config/useValidateProps.js +2 -2
  5. package/cjs/parts/chat-container/props.js +6 -2
  6. package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +3 -3
  7. package/cjs/parts/chat-container-messages-list/config/useValidateProps.js +2 -2
  8. package/cjs/parts/floating-button/FloatingButton.js +12 -6
  9. package/cjs/parts/floating-button/props.js +6 -2
  10. package/cjs/parts/tile-button/styled.js +5 -2
  11. package/esm/ChatDataTestids.js +23 -0
  12. package/esm/parts/bubble/ChatBubbleArrow.js +3 -3
  13. package/esm/parts/chat-container/ChatContainer.js +4 -3
  14. package/esm/parts/chat-container/config/useValidateProps.js +2 -2
  15. package/esm/parts/chat-container/props.js +6 -2
  16. package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +1 -1
  17. package/esm/parts/chat-container-messages-list/config/useValidateProps.js +2 -2
  18. package/esm/parts/floating-button/FloatingButton.js +12 -6
  19. package/esm/parts/floating-button/props.js +6 -2
  20. package/esm/parts/tile-button/styled.js +5 -3
  21. package/package.json +21 -9
  22. package/types/ChatDataTestids.d.ts +21 -0
  23. package/types/parts/bubble/ChatBubble.d.ts +18 -5
  24. package/types/parts/bubble/props.d.ts +13 -4
  25. package/types/parts/bubble/styled.d.ts +9 -9
  26. package/types/parts/chat-card/ChatCard.d.ts +24 -4
  27. package/types/parts/chat-card/props.d.ts +19 -3
  28. package/types/parts/chat-card/styled.d.ts +6 -6
  29. package/types/parts/chat-composer/ChatContainerComposer.d.ts +48 -15
  30. package/types/parts/chat-composer/styled.d.ts +117 -24
  31. package/types/parts/chat-container/ChatContainer.d.ts +54 -13
  32. package/types/parts/chat-container/config/useValidateProps.d.ts +1 -1
  33. package/types/parts/chat-container/styled.d.ts +4 -4
  34. package/types/parts/chat-container/tests/ChatContainer.test.d.ts +1 -0
  35. package/types/parts/chat-container-header/styled.d.ts +3 -3
  36. package/types/parts/chat-container-messages-list/ChatContainerMessagesList.d.ts +39 -9
  37. package/types/parts/chat-container-messages-list/config/useValidateProps.d.ts +1 -1
  38. package/types/parts/chat-container-messages-list/styled.d.ts +7 -7
  39. package/types/parts/chat-empty-state/ChatEmptyState.d.ts +12 -3
  40. package/types/parts/chat-empty-state/props.d.ts +7 -2
  41. package/types/parts/chat-empty-state/styled.d.ts +2 -2
  42. package/types/parts/chat-sidebar/SideBarChat.d.ts +39 -12
  43. package/types/parts/chat-sidebar/props.d.ts +34 -11
  44. package/types/parts/chat-sidebar/styled.d.ts +2 -2
  45. package/types/parts/floating-button/FloatingButton.d.ts +11 -2
  46. package/types/parts/floating-button/props.d.ts +13 -1
  47. package/types/parts/floating-button/styled.d.ts +1 -1
  48. package/types/parts/floating-container/styled.d.ts +1 -2
  49. package/types/parts/grid-influencer/styled.d.ts +2 -2
  50. package/types/parts/message-delimiter/MessageDelimiter.d.ts +21 -4
  51. package/types/parts/message-delimiter/props.d.ts +16 -3
  52. package/types/parts/message-delimiter/styled.d.ts +3 -3
  53. package/types/parts/sidebar-button/SidebarButton.d.ts +16 -5
  54. package/types/parts/sidebar-button/props.d.ts +16 -5
  55. package/types/parts/sidebar-button/styled.d.ts +3 -3
  56. package/types/parts/system-message/SystemMessage.d.ts +12 -2
  57. package/types/parts/system-message/props.d.ts +7 -1
  58. package/types/parts/system-message/style.d.ts +5 -5
  59. package/types/parts/tile-button/TileButton.d.ts +66 -20
  60. package/types/parts/tile-button/props.d.ts +61 -19
  61. package/types/parts/tile-button/styled.d.ts +9 -9
  62. package/types/prop-types.d.ts +28 -9
  63. package/types/tests/utils.d.ts +27 -0
  64. package/types/parts/chat-composer/props.d.ts +0 -39
  65. package/types/parts/chat-container/props.d.ts +0 -41
  66. package/types/parts/chat-container-messages-list/props.d.ts +0 -29
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import { PropTypes } from 'react-desc';
3
- export interface TextAreaProps {
4
- height: string | number;
5
- style: React.CSSProperties;
6
- }
7
- export declare const defaultComposerPros: ChatComposerProps;
8
- export interface ChatComposerProps {
9
- placeholder?: string;
10
- inputValue?: string;
11
- maxLengthMessage?: string;
12
- onChange: (value: string) => void;
13
- onResize?: (value: number) => void;
14
- onSend: (value: string) => void;
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;
19
- inputMaxLength: number | undefined;
20
- buttonDisabled: boolean;
21
- dataTestid?: string;
22
- actionRef: PropTypes.func;
23
- }
24
- export declare const composerProps: {
25
- placeholder: any;
26
- inputValue: any;
27
- maxLengthMessage: any;
28
- onChange: any;
29
- onResize: any;
30
- onSend: any;
31
- onFocus: any;
32
- onBlur: any;
33
- onKeyDown: any;
34
- maxHeight: any;
35
- inputMaxLength: any;
36
- buttonDisabled: any;
37
- dataTestid: any;
38
- actionRef: any;
39
- };
@@ -1,41 +0,0 @@
1
- import { PropTypes } from 'react-desc';
2
- import { BANNER_TYPES } from '@elliemae/ds-banner';
3
- import { ChatContainerMessagesListProps } from '../chat-container-messages-list/props';
4
- import { ChatComposerProps } from '../chat-composer/props';
5
- interface ChatBannerProps {
6
- label: string;
7
- viewLabel: string;
8
- type: BANNER_TYPES;
9
- onView: () => void;
10
- onClose: () => void;
11
- }
12
- export interface ChatContainerProps {
13
- messagesListProps: Pick<ChatContainerMessagesListProps, 'messages' | 'onScrollEnds'>;
14
- composerProps: ChatComposerProps;
15
- actionRef: PropTypes.func;
16
- autoScroll: boolean;
17
- device: 'desktop' | 'mobile';
18
- isLoading?: 'top' | 'bottom';
19
- hasMoreItems?: 'top' | 'bottom';
20
- getMoreMessages: PropTypes.func;
21
- bannerPosition?: 'top' | 'bottom';
22
- bannerProps?: ChatBannerProps;
23
- sendingMessages?: string[] | number[];
24
- sendingText: string;
25
- }
26
- export declare const defaultProps: ChatContainerProps;
27
- export declare const containerProps: {
28
- messagesListProps: any;
29
- composerProps: any;
30
- autoScroll: any;
31
- device: any;
32
- isLoading: any;
33
- hasMoreItems: any;
34
- getMoreMessages: any;
35
- bannerPosition: any;
36
- bannerProps: any;
37
- sendingMessages: any;
38
- sendingText: any;
39
- actionRef: any;
40
- };
41
- export {};
@@ -1,29 +0,0 @@
1
- /// <reference types="react" />
2
- import { PropTypes } from 'react-desc';
3
- import { BubbleProps } from '../bubble/props';
4
- export interface ChatContainerMessagesListProps {
5
- messages: BubbleProps[];
6
- actionRef: any;
7
- onScrollEnds: (indexList: number[]) => number[];
8
- isLoading?: 'top' | 'bottom';
9
- hasMoreItems?: 'top' | 'bottom';
10
- getMoreMessages: PropTypes.func;
11
- sendingMessages?: Array<string | number>;
12
- sendingText: string;
13
- bannerPosition?: 'top' | 'bottom';
14
- bannerRef: React.MutableRefObject<{
15
- focusOnWrapper: (...args: any[]) => void;
16
- focusOnLink: (...args: any[]) => void;
17
- }>;
18
- }
19
- export declare const defaultProps: ChatContainerMessagesListProps;
20
- export declare const listProps: {
21
- messages: any;
22
- actionRef: any;
23
- onScrollEnds: any;
24
- isLoading: any;
25
- hasMoreItems: any;
26
- getMoreMessages: any;
27
- sendingMessages: any;
28
- sendingText: any;
29
- };