@elliemae/ds-chat 1.57.0-rc.12 → 1.57.0-rc.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.
- package/cjs/index.js +1 -0
- package/cjs/index.js.map +1 -1
- package/cjs/parts/chat-container-header/ChatContainerHeader.js +2 -7
- package/cjs/parts/chat-container-header/ChatContainerHeader.js.map +1 -1
- package/cjs/parts/chat-container-header/helpers.js +28 -0
- package/cjs/parts/chat-container-header/helpers.js.map +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/parts/chat-container-header/ChatContainerHeader.js +2 -7
- package/esm/parts/chat-container-header/ChatContainerHeader.js.map +1 -1
- package/esm/parts/chat-container-header/helpers.js +20 -0
- package/esm/parts/chat-container-header/helpers.js.map +1 -0
- package/package.json +9 -9
- package/parts/chat-container-header/helpers/package.json +10 -0
package/cjs/index.js
CHANGED
|
@@ -32,6 +32,7 @@ require('./parts/floating-button/props.js');
|
|
|
32
32
|
require('./styled.js');
|
|
33
33
|
require('@elliemae/ds-truncated-tooltip-text');
|
|
34
34
|
require('./parts/chat-container-header/styled.js');
|
|
35
|
+
require('./parts/chat-container-header/helpers.js');
|
|
35
36
|
require('./parts/chat-empty-state/props.js');
|
|
36
37
|
require('./parts/chat-empty-state/styled.js');
|
|
37
38
|
require('./parts/chat-empty-state/config/useValidateProps.js');
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var dsTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
|
|
7
7
|
var parts_chatContainerHeader_styled = require('./styled.js');
|
|
8
|
+
var parts_chatContainerHeader_helpers = require('./helpers.js');
|
|
8
9
|
require('styled-components');
|
|
9
10
|
require('@elliemae/ds-grid');
|
|
10
11
|
|
|
@@ -28,13 +29,7 @@ var ChatContainerHeader = function ChatContainerHeader(props) {
|
|
|
28
29
|
}, /*#__PURE__*/React__default['default'].createElement(dsTruncatedTooltipText.SimpleTruncatedTooltipText, {
|
|
29
30
|
value: title
|
|
30
31
|
})), /*#__PURE__*/React__default['default'].createElement(parts_chatContainerHeader_styled.StyledChatContainerContentHeaderActions, {
|
|
31
|
-
cols:
|
|
32
|
-
var _e$props;
|
|
33
|
-
|
|
34
|
-
return e && ((_e$props = e.props) === null || _e$props === void 0 ? void 0 : _e$props.children) !== false;
|
|
35
|
-
}).map(function () {
|
|
36
|
-
return '32px';
|
|
37
|
-
}),
|
|
32
|
+
cols: parts_chatContainerHeader_helpers.validHeaderChilds(children),
|
|
38
33
|
justifyContent: "flex-end",
|
|
39
34
|
"data-testid": "chat-container-header-children"
|
|
40
35
|
}, children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContainerHeader.js","sources":["../../../../src/parts/chat-container-header/ChatContainerHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport {\n StyledChatContainerContentHeader,\n StyledChatContainerContentHeaderLabel,\n StyledChatContainerContentHeaderActions,\n} from './styled';\n\nexport const ChatContainerHeader: React.ComponentType = (props: any) => {\n const { title, floating, children } = props;\n\n return (\n <StyledChatContainerContentHeader\n alignItems=\"center\"\n cols={['minmax(calc(100% - 64px), 1fr)', children ? 'auto' : '0px']}\n floating={floating}\n role=\"heading\"\n >\n <StyledChatContainerContentHeaderLabel data-testid=\"chat-container-header-title\" pl=\"xxs\" pr=\"xxs\">\n <SimpleTruncatedTooltipText value={title} />\n </StyledChatContainerContentHeaderLabel>\n <StyledChatContainerContentHeaderActions\n cols={
|
|
1
|
+
{"version":3,"file":"ChatContainerHeader.js","sources":["../../../../src/parts/chat-container-header/ChatContainerHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport {\n StyledChatContainerContentHeader,\n StyledChatContainerContentHeaderLabel,\n StyledChatContainerContentHeaderActions,\n} from './styled';\nimport { validHeaderChilds } from './helpers';\n\nexport const ChatContainerHeader: React.ComponentType = (props: any) => {\n const { title, floating, children } = props;\n\n return (\n <StyledChatContainerContentHeader\n alignItems=\"center\"\n cols={['minmax(calc(100% - 64px), 1fr)', children ? 'auto' : '0px']}\n floating={floating}\n role=\"heading\"\n >\n <StyledChatContainerContentHeaderLabel data-testid=\"chat-container-header-title\" pl=\"xxs\" pr=\"xxs\">\n <SimpleTruncatedTooltipText value={title} />\n </StyledChatContainerContentHeaderLabel>\n <StyledChatContainerContentHeaderActions\n cols={validHeaderChilds(children)}\n justifyContent=\"flex-end\"\n data-testid=\"chat-container-header-children\"\n >\n {children}\n </StyledChatContainerContentHeaderActions>\n </StyledChatContainerContentHeader>\n );\n};\n"],"names":["ChatContainerHeader","props","title","floating","children","React","StyledChatContainerContentHeader","StyledChatContainerContentHeaderLabel","SimpleTruncatedTooltipText","StyledChatContainerContentHeaderActions","validHeaderChilds"],"mappings":";;;;;;;;;;;;;;;IASaA,mBAAwC,GAAG,SAA3CA,mBAA2C,CAACC,KAAD,EAAgB;AACtE,MAAQC,KAAR,GAAsCD,KAAtC,CAAQC,KAAR;AAAA,MAAeC,QAAf,GAAsCF,KAAtC,CAAeE,QAAf;AAAA,MAAyBC,QAAzB,GAAsCH,KAAtC,CAAyBG,QAAzB;AAEA,sBACEC,wCAACC,iEAAD;AACE,IAAA,UAAU,EAAC,QADb;AAEE,IAAA,IAAI,EAAE,CAAC,gCAAD,EAAmCF,QAAQ,GAAG,MAAH,GAAY,KAAvD,CAFR;AAGE,IAAA,QAAQ,EAAED,QAHZ;AAIE,IAAA,IAAI,EAAC;AAJP,kBAMEE,wCAACE,sEAAD;AAAuC,mBAAY,6BAAnD;AAAiF,IAAA,EAAE,EAAC,KAApF;AAA0F,IAAA,EAAE,EAAC;AAA7F,kBACEF,wCAACG,iDAAD;AAA4B,IAAA,KAAK,EAAEN;AAAnC,IADF,CANF,eASEG,wCAACI,wEAAD;AACE,IAAA,IAAI,EAAEC,mDAAiB,CAACN,QAAD,CADzB;AAEE,IAAA,cAAc,EAAC,UAFjB;AAGE,mBAAY;AAHd,KAKGA,QALH,CATF,CADF;AAmBD;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
+
|
|
11
|
+
var validHeaderChilds = function validHeaderChilds(children) {
|
|
12
|
+
return React__default['default'].Children.toArray(children).filter(function (e) {
|
|
13
|
+
if (Array.isArray(e.props.children)) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (e.props.children === undefined && e.$$typeof.toString() === 'Symbol(react.element)') {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return !!e.props.children;
|
|
22
|
+
}).map(function () {
|
|
23
|
+
return '32px';
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.validHeaderChilds = validHeaderChilds;
|
|
28
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sources":["../../../../src/parts/chat-container-header/helpers.tsx"],"sourcesContent":["import React from 'react';\n\ninterface validParamT {\n childs: React.ReactChild | React.ReactFragment | React.ReactPortal;\n}\n\nexport const validHeaderChilds = (children: validParamT): any =>\n React.Children.toArray(children)\n .filter((e) => {\n if (Array.isArray(e.props.children)) {\n return false;\n }\n if (e.props.children === undefined && e.$$typeof.toString() === 'Symbol(react.element)') {\n return true;\n }\n return !!e.props.children;\n })\n .map(() => '32px');\n"],"names":["validHeaderChilds","children","React","Children","toArray","filter","e","Array","isArray","props","undefined","$$typeof","toString","map"],"mappings":";;;;;;;;;;IAMaA,iBAAiB,GAAG,SAApBA,iBAAoB,CAACC,QAAD;AAAA,SAC/BC,yBAAK,CAACC,QAAN,CAAeC,OAAf,CAAuBH,QAAvB,EACGI,MADH,CACU,UAACC,CAAD,EAAO;AACb,QAAIC,KAAK,CAACC,OAAN,CAAcF,CAAC,CAACG,KAAF,CAAQR,QAAtB,CAAJ,EAAqC;AACnC,aAAO,KAAP;AACD;;AACD,QAAIK,CAAC,CAACG,KAAF,CAAQR,QAAR,KAAqBS,SAArB,IAAkCJ,CAAC,CAACK,QAAF,CAAWC,QAAX,OAA0B,uBAAhE,EAAyF;AACvF,aAAO,IAAP;AACD;;AACD,WAAO,CAAC,CAACN,CAAC,CAACG,KAAF,CAAQR,QAAjB;AACD,GATH,EAUGY,GAVH,CAUO;AAAA,WAAM,MAAN;AAAA,GAVP,CAD+B;AAAA;;;;"}
|
package/esm/index.js
CHANGED
|
@@ -28,6 +28,7 @@ import './parts/floating-button/props.js';
|
|
|
28
28
|
import './styled.js';
|
|
29
29
|
import '@elliemae/ds-truncated-tooltip-text';
|
|
30
30
|
import './parts/chat-container-header/styled.js';
|
|
31
|
+
import './parts/chat-container-header/helpers.js';
|
|
31
32
|
import './parts/chat-empty-state/props.js';
|
|
32
33
|
import './parts/chat-empty-state/styled.js';
|
|
33
34
|
import './parts/chat-empty-state/config/useValidateProps.js';
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
3
3
|
import { StyledChatContainerContentHeader, StyledChatContainerContentHeaderLabel, StyledChatContainerContentHeaderActions } from './styled.js';
|
|
4
|
+
import { validHeaderChilds } from './helpers.js';
|
|
4
5
|
import 'styled-components';
|
|
5
6
|
import '@elliemae/ds-grid';
|
|
6
7
|
|
|
@@ -20,13 +21,7 @@ var ChatContainerHeader = function ChatContainerHeader(props) {
|
|
|
20
21
|
}, /*#__PURE__*/React.createElement(SimpleTruncatedTooltipText, {
|
|
21
22
|
value: title
|
|
22
23
|
})), /*#__PURE__*/React.createElement(StyledChatContainerContentHeaderActions, {
|
|
23
|
-
cols:
|
|
24
|
-
var _e$props;
|
|
25
|
-
|
|
26
|
-
return e && ((_e$props = e.props) === null || _e$props === void 0 ? void 0 : _e$props.children) !== false;
|
|
27
|
-
}).map(function () {
|
|
28
|
-
return '32px';
|
|
29
|
-
}),
|
|
24
|
+
cols: validHeaderChilds(children),
|
|
30
25
|
justifyContent: "flex-end",
|
|
31
26
|
"data-testid": "chat-container-header-children"
|
|
32
27
|
}, children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContainerHeader.js","sources":["../../../../src/parts/chat-container-header/ChatContainerHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport {\n StyledChatContainerContentHeader,\n StyledChatContainerContentHeaderLabel,\n StyledChatContainerContentHeaderActions,\n} from './styled';\n\nexport const ChatContainerHeader: React.ComponentType = (props: any) => {\n const { title, floating, children } = props;\n\n return (\n <StyledChatContainerContentHeader\n alignItems=\"center\"\n cols={['minmax(calc(100% - 64px), 1fr)', children ? 'auto' : '0px']}\n floating={floating}\n role=\"heading\"\n >\n <StyledChatContainerContentHeaderLabel data-testid=\"chat-container-header-title\" pl=\"xxs\" pr=\"xxs\">\n <SimpleTruncatedTooltipText value={title} />\n </StyledChatContainerContentHeaderLabel>\n <StyledChatContainerContentHeaderActions\n cols={
|
|
1
|
+
{"version":3,"file":"ChatContainerHeader.js","sources":["../../../../src/parts/chat-container-header/ChatContainerHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport {\n StyledChatContainerContentHeader,\n StyledChatContainerContentHeaderLabel,\n StyledChatContainerContentHeaderActions,\n} from './styled';\nimport { validHeaderChilds } from './helpers';\n\nexport const ChatContainerHeader: React.ComponentType = (props: any) => {\n const { title, floating, children } = props;\n\n return (\n <StyledChatContainerContentHeader\n alignItems=\"center\"\n cols={['minmax(calc(100% - 64px), 1fr)', children ? 'auto' : '0px']}\n floating={floating}\n role=\"heading\"\n >\n <StyledChatContainerContentHeaderLabel data-testid=\"chat-container-header-title\" pl=\"xxs\" pr=\"xxs\">\n <SimpleTruncatedTooltipText value={title} />\n </StyledChatContainerContentHeaderLabel>\n <StyledChatContainerContentHeaderActions\n cols={validHeaderChilds(children)}\n justifyContent=\"flex-end\"\n data-testid=\"chat-container-header-children\"\n >\n {children}\n </StyledChatContainerContentHeaderActions>\n </StyledChatContainerContentHeader>\n );\n};\n"],"names":["ChatContainerHeader","props","title","floating","children","validHeaderChilds"],"mappings":";;;;;;;IASaA,mBAAwC,GAAG,SAA3CA,mBAA2C,CAACC,KAAD,EAAgB;AACtE,MAAQC,KAAR,GAAsCD,KAAtC,CAAQC,KAAR;AAAA,MAAeC,QAAf,GAAsCF,KAAtC,CAAeE,QAAf;AAAA,MAAyBC,QAAzB,GAAsCH,KAAtC,CAAyBG,QAAzB;AAEA,sBACE,oBAAC,gCAAD;AACE,IAAA,UAAU,EAAC,QADb;AAEE,IAAA,IAAI,EAAE,CAAC,gCAAD,EAAmCA,QAAQ,GAAG,MAAH,GAAY,KAAvD,CAFR;AAGE,IAAA,QAAQ,EAAED,QAHZ;AAIE,IAAA,IAAI,EAAC;AAJP,kBAME,oBAAC,qCAAD;AAAuC,mBAAY,6BAAnD;AAAiF,IAAA,EAAE,EAAC,KAApF;AAA0F,IAAA,EAAE,EAAC;AAA7F,kBACE,oBAAC,0BAAD;AAA4B,IAAA,KAAK,EAAED;AAAnC,IADF,CANF,eASE,oBAAC,uCAAD;AACE,IAAA,IAAI,EAAEG,iBAAiB,CAACD,QAAD,CADzB;AAEE,IAAA,cAAc,EAAC,UAFjB;AAGE,mBAAY;AAHd,KAKGA,QALH,CATF,CADF;AAmBD;;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
var validHeaderChilds = function validHeaderChilds(children) {
|
|
4
|
+
return React.Children.toArray(children).filter(function (e) {
|
|
5
|
+
if (Array.isArray(e.props.children)) {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
if (e.props.children === undefined && e.$$typeof.toString() === 'Symbol(react.element)') {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return !!e.props.children;
|
|
14
|
+
}).map(function () {
|
|
15
|
+
return '32px';
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { validHeaderChilds };
|
|
20
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sources":["../../../../src/parts/chat-container-header/helpers.tsx"],"sourcesContent":["import React from 'react';\n\ninterface validParamT {\n childs: React.ReactChild | React.ReactFragment | React.ReactPortal;\n}\n\nexport const validHeaderChilds = (children: validParamT): any =>\n React.Children.toArray(children)\n .filter((e) => {\n if (Array.isArray(e.props.children)) {\n return false;\n }\n if (e.props.children === undefined && e.$$typeof.toString() === 'Symbol(react.element)') {\n return true;\n }\n return !!e.props.children;\n })\n .map(() => '32px');\n"],"names":["validHeaderChilds","children","React","Children","toArray","filter","e","Array","isArray","props","undefined","$$typeof","toString","map"],"mappings":";;IAMaA,iBAAiB,GAAG,SAApBA,iBAAoB,CAACC,QAAD;AAAA,SAC/BC,KAAK,CAACC,QAAN,CAAeC,OAAf,CAAuBH,QAAvB,EACGI,MADH,CACU,UAACC,CAAD,EAAO;AACb,QAAIC,KAAK,CAACC,OAAN,CAAcF,CAAC,CAACG,KAAF,CAAQR,QAAtB,CAAJ,EAAqC;AACnC,aAAO,KAAP;AACD;;AACD,QAAIK,CAAC,CAACG,KAAF,CAAQR,QAAR,KAAqBS,SAArB,IAAkCJ,CAAC,CAACK,QAAF,CAAWC,QAAX,OAA0B,uBAAhE,EAAyF;AACvF,aAAO,IAAP;AACD;;AACD,WAAO,CAAC,CAACN,CAAC,CAACG,KAAF,CAAQR,QAAjB;AACD,GATH,EAUGY,GAVH,CAUO;AAAA,WAAM,MAAN;AAAA,GAVP,CAD+B;AAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-chat",
|
|
3
|
-
"version": "1.57.0-rc.
|
|
3
|
+
"version": "1.57.0-rc.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Ellie Mae - Dim Sum - Chat",
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"directory": "dist"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@elliemae/ds-banner": "1.57.0-rc.
|
|
20
|
-
"@elliemae/ds-basic": "1.57.0-rc.
|
|
21
|
-
"@elliemae/ds-button": "1.57.0-rc.
|
|
22
|
-
"@elliemae/ds-grid": "1.57.0-rc.
|
|
23
|
-
"@elliemae/ds-icons": "1.57.0-rc.
|
|
24
|
-
"@elliemae/ds-props-helpers": "1.57.0-rc.
|
|
25
|
-
"@elliemae/ds-tooltip": "1.57.0-rc.
|
|
26
|
-
"@elliemae/ds-truncated-tooltip-text": "1.57.0-rc.
|
|
19
|
+
"@elliemae/ds-banner": "1.57.0-rc.16",
|
|
20
|
+
"@elliemae/ds-basic": "1.57.0-rc.16",
|
|
21
|
+
"@elliemae/ds-button": "1.57.0-rc.16",
|
|
22
|
+
"@elliemae/ds-grid": "1.57.0-rc.16",
|
|
23
|
+
"@elliemae/ds-icons": "1.57.0-rc.16",
|
|
24
|
+
"@elliemae/ds-props-helpers": "1.57.0-rc.16",
|
|
25
|
+
"@elliemae/ds-tooltip": "1.57.0-rc.16",
|
|
26
|
+
"@elliemae/ds-truncated-tooltip-text": "1.57.0-rc.16",
|
|
27
27
|
"prop-types": "~15.7.2",
|
|
28
28
|
"react-desc": "^4.1.2",
|
|
29
29
|
"react-virtual": "^2.3.2"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elliemae/ds-chat/parts/chat-container-header/helpers",
|
|
3
|
+
"sideEffects": [
|
|
4
|
+
"*.css",
|
|
5
|
+
"*.scss"
|
|
6
|
+
],
|
|
7
|
+
"private": true,
|
|
8
|
+
"main": "../../../cjs/parts/chat-container-header/helpers.js",
|
|
9
|
+
"module": "../../../esm/parts/chat-container-header/helpers.js"
|
|
10
|
+
}
|