@elliemae/ds-comments 3.16.0-next.2 → 3.16.0-next.4
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/dist/cjs/components/CommentCard.js +18 -18
- package/dist/cjs/components/CommentCard.js.map +2 -2
- package/dist/cjs/package.json +7 -0
- package/dist/esm/components/CommentCard.js +1 -1
- package/dist/esm/components/CommentCard.js.map +1 -1
- package/dist/esm/package.json +7 -0
- package/dist/types/components/CommentCard.d.ts +14 -14
- package/dist/types/components/DSComments.d.ts +13 -13
- package/dist/types/index.d.ts +13 -13
- package/package.json +9 -8
|
@@ -31,7 +31,7 @@ module.exports = __toCommonJS(CommentCard_exports);
|
|
|
31
31
|
var React = __toESM(require("react"));
|
|
32
32
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
33
|
var import_react = require("react");
|
|
34
|
-
var
|
|
34
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
35
35
|
var import_ds_button = __toESM(require("@elliemae/ds-button"));
|
|
36
36
|
var import_ds_read_more = require("@elliemae/ds-read-more");
|
|
37
37
|
var import_ds_dropdownmenu = __toESM(require("@elliemae/ds-dropdownmenu"));
|
|
@@ -113,32 +113,32 @@ const CommentCard = ({
|
|
|
113
113
|
);
|
|
114
114
|
};
|
|
115
115
|
const props = {
|
|
116
|
-
containerProps:
|
|
117
|
-
id:
|
|
118
|
-
"data-testid":
|
|
116
|
+
containerProps: import_ds_props_helpers.PropTypes.shape({
|
|
117
|
+
id: import_ds_props_helpers.PropTypes.string,
|
|
118
|
+
"data-testid": import_ds_props_helpers.PropTypes.string
|
|
119
119
|
}).description("props to inject to comment card wrapper"),
|
|
120
|
-
name:
|
|
121
|
-
style:
|
|
122
|
-
date:
|
|
123
|
-
type:
|
|
124
|
-
content:
|
|
125
|
-
options:
|
|
126
|
-
selection:
|
|
127
|
-
customDropdownMenuProps:
|
|
128
|
-
focusOnOpen:
|
|
120
|
+
name: import_ds_props_helpers.PropTypes.string.description("form name"),
|
|
121
|
+
style: import_ds_props_helpers.PropTypes.object.description(" style object "),
|
|
122
|
+
date: import_ds_props_helpers.PropTypes.instanceOf(Date).description("date object"),
|
|
123
|
+
type: import_ds_props_helpers.PropTypes.string.description("comment type string"),
|
|
124
|
+
content: import_ds_props_helpers.PropTypes.string.description("comment content"),
|
|
125
|
+
options: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.object).description("dropdown menu options"),
|
|
126
|
+
selection: import_ds_props_helpers.PropTypes.object.description("dropdown selection"),
|
|
127
|
+
customDropdownMenuProps: import_ds_props_helpers.PropTypes.shape({
|
|
128
|
+
focusOnOpen: import_ds_props_helpers.PropTypes.bool
|
|
129
129
|
}).description("pass down props to dropdown"),
|
|
130
|
-
borderBottom:
|
|
131
|
-
dateFormat:
|
|
130
|
+
borderBottom: import_ds_props_helpers.PropTypes.bool.description("toggle border bottom for card"),
|
|
131
|
+
dateFormat: import_ds_props_helpers.PropTypes.oneOf(["MM/DD/YYYY", "MM DD YYYY"]).description(
|
|
132
132
|
"moment Year, month, and day tokens https://momentjs.com/docs/#/parsing/string-format/"
|
|
133
133
|
),
|
|
134
|
-
timeFormat:
|
|
134
|
+
timeFormat: import_ds_props_helpers.PropTypes.oneOf(["hh:mm a", "HH:mm"]).description(
|
|
135
135
|
"moment Hour, minute, second, millisecond, and offset tokens https://momentjs.com/docs/#/parsing/string-format/"
|
|
136
136
|
),
|
|
137
|
-
maxLines:
|
|
137
|
+
maxLines: import_ds_props_helpers.PropTypes.number.description("Max lines")
|
|
138
138
|
};
|
|
139
139
|
CommentCard.propTypes = props;
|
|
140
140
|
CommentCard.displayName = "CommentCard";
|
|
141
|
-
const DSCommentCardWithSchema = (0,
|
|
141
|
+
const DSCommentCardWithSchema = (0, import_ds_props_helpers.describe)(CommentCard);
|
|
142
142
|
DSCommentCardWithSchema.propTypes = props;
|
|
143
143
|
var CommentCard_default = CommentCard;
|
|
144
144
|
//# sourceMappingURL=CommentCard.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/CommentCard.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable complexity */\n/* eslint-disable max-lines */\nimport React, { useCallback, useRef } from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADqDb;AAnDV,mBAA2C;AAC3C,
|
|
4
|
+
"sourcesContent": ["/* eslint-disable complexity */\n/* eslint-disable max-lines */\nimport React, { useCallback, useRef } from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport DSButton from '@elliemae/ds-button';\nimport { DSReadMore } from '@elliemae/ds-read-more';\nimport DSDropdownMenu from '@elliemae/ds-dropdownmenu';\nimport { MoreOptionsVert } from '@elliemae/ds-icons';\nimport {\n CommentCardWrapper,\n CommentCardHeader,\n CommentCardContent,\n CommentCardName,\n CommentCardData,\n CommentCardMenu,\n CommentCardLeft,\n} from './blocks';\nimport { getTime, getDisplayDate } from './helper';\n\nconst CommentCard = ({\n containerProps = {},\n name = '',\n date = new Date(),\n type = '',\n content = '',\n style = {},\n options = [],\n selection = { 'single-selection-internal-external': ['set-as-internal'] },\n customDropdownMenuProps = {\n focusOnOpen: true,\n },\n borderBottom,\n dateFormat = 'MM/DD/YYYY',\n timeFormat = 'hh:mm a',\n maxLines = 2,\n}) => {\n const ref = useRef();\n const displayDate = date ? getDisplayDate(date, dateFormat) : null;\n const displayTime = date ? getTime(date, timeFormat) : null;\n\n const handleCloseMenu = useCallback(() => {\n ref.current.focus();\n }, []);\n\n return (\n <CommentCardWrapper\n classProps={{ borderBottom }}\n tabIndex={0}\n {...containerProps}\n style={{ ...style, ...(containerProps.style || {}) }}\n >\n <CommentCardHeader classProps={{ borderBottom }}>\n <CommentCardLeft>\n <CommentCardName>{name}</CommentCardName>\n <CommentCardData>\n {displayDate}\n {displayTime && (\n <>\n <span>\u2022</span>\n {displayTime}\n </>\n )}\n {type && (\n <>\n <span>\u2022</span>\n {type}\n </>\n )}\n </CommentCardData>\n </CommentCardLeft>\n {options && options.length > 0 && (\n <CommentCardMenu>\n <DSDropdownMenu\n {...customDropdownMenuProps}\n onClose={handleCloseMenu}\n options={options}\n selection={selection}\n triggerComponent={<DSButton buttonType=\"text\" icon={<MoreOptionsVert />} innerRef={ref} />}\n zIndex={11} // https://jira.elliemae.io/browse/PUI-1664\n />\n </CommentCardMenu>\n )}\n </CommentCardHeader>\n <CommentCardContent>\n <div>\n <DSReadMore\n lines={maxLines}\n content={`${content} `}\n more=\"MORE\"\n less=\"LESS\"\n buttonType=\"text\"\n size=\"m\"\n ellipsis=\"... \"\n />\n </div>\n </CommentCardContent>\n </CommentCardWrapper>\n );\n};\n\nconst props = {\n /** props to inject to comment card wrapper */\n containerProps: PropTypes.shape({\n id: PropTypes.string,\n 'data-testid': PropTypes.string,\n }).description('props to inject to comment card wrapper'),\n /** form name */\n name: PropTypes.string.description('form name'),\n /** style object */\n style: PropTypes.object.description(' style object '),\n /** date object */\n date: PropTypes.instanceOf(Date).description('date object'),\n /** comment type string */\n type: PropTypes.string.description('comment type string'),\n /** comment content */\n content: PropTypes.string.description('comment content'),\n /** dropdown menu options */\n options: PropTypes.arrayOf(PropTypes.object).description('dropdown menu options'),\n /** dropdown selection */\n selection: PropTypes.object.description('dropdown selection'),\n /** pass down props to dropdown */\n customDropdownMenuProps: PropTypes.shape({\n focusOnOpen: PropTypes.bool,\n }).description('pass down props to dropdown'),\n /** toggle border bottom for card */\n borderBottom: PropTypes.bool.description('toggle border bottom for card'),\n /** moment Year, month, and day tokens https://momentjs.com/docs/#/parsing/string-format/ */\n dateFormat: PropTypes.oneOf(['MM/DD/YYYY', 'MM DD YYYY']).description(\n 'moment Year, month, and day tokens https://momentjs.com/docs/#/parsing/string-format/',\n ),\n /** moment Hour, minute, second, millisecond, and offset tokens https://momentjs.com/docs/#/parsing/string-format/ */\n timeFormat: PropTypes.oneOf(['hh:mm a', 'HH:mm']).description(\n 'moment Hour, minute, second, millisecond, and offset tokens https://momentjs.com/docs/#/parsing/string-format/',\n ),\n /**\n * Max lines\n */\n maxLines: PropTypes.number.description('Max lines'),\n};\n\nCommentCard.propTypes = props;\nCommentCard.displayName = 'CommentCard';\nconst DSCommentCardWithSchema = describe(CommentCard);\nDSCommentCardWithSchema.propTypes = props;\n\nexport default CommentCard;\nexport { DSCommentCardWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADqDb;AAnDV,mBAA2C;AAC3C,8BAAoC;AACpC,uBAAqB;AACrB,0BAA2B;AAC3B,6BAA2B;AAC3B,sBAAgC;AAChC,oBAQO;AACP,oBAAwC;AAExC,MAAM,cAAc,CAAC;AAAA,EACnB,iBAAiB,CAAC;AAAA,EAClB,OAAO;AAAA,EACP,OAAO,IAAI,KAAK;AAAA,EAChB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ,CAAC;AAAA,EACT,UAAU,CAAC;AAAA,EACX,YAAY,EAAE,sCAAsC,CAAC,iBAAiB,EAAE;AAAA,EACxE,0BAA0B;AAAA,IACxB,aAAa;AAAA,EACf;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,aAAa;AAAA,EACb,WAAW;AACb,MAAM;AACJ,QAAM,UAAM,qBAAO;AACnB,QAAM,cAAc,WAAO,8BAAe,MAAM,UAAU,IAAI;AAC9D,QAAM,cAAc,WAAO,uBAAQ,MAAM,UAAU,IAAI;AAEvD,QAAM,sBAAkB,0BAAY,MAAM;AACxC,QAAI,QAAQ,MAAM;AAAA,EACpB,GAAG,CAAC,CAAC;AAEL,SACE;AAAA,IAAC;AAAA;AAA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AAI,EAAE,YAAY,aAAa;AAAA,EAE1D,MAAM,kCAAU,OAAO,YAAY,qBAAqB;AAAA,EAExD,SAAS,kCAAU,OAAO,YAAY,iBAAiB;AAAA,EAEvD,SAAS,kCAAU,QAAQ,kCAAU,MAAM,EAAE,YAAY,uBAAuB;AAAA,EAEhF,WAAW,kCAAU,OAAO,YAAY,oBAAoB;AAAA,EAE5D,yBAAyB,kCAAU,MAAM;AAAA,IACvC,aAAa,kCAAU;AAAA,EACzB,CAAC,EAAE,YAAY,6BAA6B;AAAA,EAE5C,cAAc,kCAAU,KAAK,YAAY,+BAA+B;AAAA,EAExE,YAAY,kCAAU,MAAM,CAAC,cAAc,YAAY,CAAC,EAAE;AAAA,IACxD;AAAA,EACF;AAAA,EAEA,YAAY,kCAAU,MAAM,CAAC,WAAW,OAAO,CAAC,EAAE;AAAA,IAChD;AAAA,EACF;AAAA,EAIA,UAAU,kCAAU,OAAO,YAAY,WAAW;AACpD;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,8BAA0B,kCAAS,WAAW;AACpD,wBAAwB,YAAY;AAEpC,IAAO,sBAAQ;",
|
|
6
6
|
"names": ["DSDropdownMenu", "DSButton"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useRef } from "react";
|
|
4
|
-
import { PropTypes, describe } from "@elliemae/ds-
|
|
4
|
+
import { PropTypes, describe } from "@elliemae/ds-props-helpers";
|
|
5
5
|
import DSButton from "@elliemae/ds-button";
|
|
6
6
|
import { DSReadMore } from "@elliemae/ds-read-more";
|
|
7
7
|
import DSDropdownMenu from "@elliemae/ds-dropdownmenu";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/CommentCard.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\n/* eslint-disable max-lines */\nimport React, { useCallback, useRef } from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\n/* eslint-disable max-lines */\nimport React, { useCallback, useRef } from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport DSButton from '@elliemae/ds-button';\nimport { DSReadMore } from '@elliemae/ds-read-more';\nimport DSDropdownMenu from '@elliemae/ds-dropdownmenu';\nimport { MoreOptionsVert } from '@elliemae/ds-icons';\nimport {\n CommentCardWrapper,\n CommentCardHeader,\n CommentCardContent,\n CommentCardName,\n CommentCardData,\n CommentCardMenu,\n CommentCardLeft,\n} from './blocks';\nimport { getTime, getDisplayDate } from './helper';\n\nconst CommentCard = ({\n containerProps = {},\n name = '',\n date = new Date(),\n type = '',\n content = '',\n style = {},\n options = [],\n selection = { 'single-selection-internal-external': ['set-as-internal'] },\n customDropdownMenuProps = {\n focusOnOpen: true,\n },\n borderBottom,\n dateFormat = 'MM/DD/YYYY',\n timeFormat = 'hh:mm a',\n maxLines = 2,\n}) => {\n const ref = useRef();\n const displayDate = date ? getDisplayDate(date, dateFormat) : null;\n const displayTime = date ? getTime(date, timeFormat) : null;\n\n const handleCloseMenu = useCallback(() => {\n ref.current.focus();\n }, []);\n\n return (\n <CommentCardWrapper\n classProps={{ borderBottom }}\n tabIndex={0}\n {...containerProps}\n style={{ ...style, ...(containerProps.style || {}) }}\n >\n <CommentCardHeader classProps={{ borderBottom }}>\n <CommentCardLeft>\n <CommentCardName>{name}</CommentCardName>\n <CommentCardData>\n {displayDate}\n {displayTime && (\n <>\n <span>\u2022</span>\n {displayTime}\n </>\n )}\n {type && (\n <>\n <span>\u2022</span>\n {type}\n </>\n )}\n </CommentCardData>\n </CommentCardLeft>\n {options && options.length > 0 && (\n <CommentCardMenu>\n <DSDropdownMenu\n {...customDropdownMenuProps}\n onClose={handleCloseMenu}\n options={options}\n selection={selection}\n triggerComponent={<DSButton buttonType=\"text\" icon={<MoreOptionsVert />} innerRef={ref} />}\n zIndex={11} // https://jira.elliemae.io/browse/PUI-1664\n />\n </CommentCardMenu>\n )}\n </CommentCardHeader>\n <CommentCardContent>\n <div>\n <DSReadMore\n lines={maxLines}\n content={`${content} `}\n more=\"MORE\"\n less=\"LESS\"\n buttonType=\"text\"\n size=\"m\"\n ellipsis=\"... \"\n />\n </div>\n </CommentCardContent>\n </CommentCardWrapper>\n );\n};\n\nconst props = {\n /** props to inject to comment card wrapper */\n containerProps: PropTypes.shape({\n id: PropTypes.string,\n 'data-testid': PropTypes.string,\n }).description('props to inject to comment card wrapper'),\n /** form name */\n name: PropTypes.string.description('form name'),\n /** style object */\n style: PropTypes.object.description(' style object '),\n /** date object */\n date: PropTypes.instanceOf(Date).description('date object'),\n /** comment type string */\n type: PropTypes.string.description('comment type string'),\n /** comment content */\n content: PropTypes.string.description('comment content'),\n /** dropdown menu options */\n options: PropTypes.arrayOf(PropTypes.object).description('dropdown menu options'),\n /** dropdown selection */\n selection: PropTypes.object.description('dropdown selection'),\n /** pass down props to dropdown */\n customDropdownMenuProps: PropTypes.shape({\n focusOnOpen: PropTypes.bool,\n }).description('pass down props to dropdown'),\n /** toggle border bottom for card */\n borderBottom: PropTypes.bool.description('toggle border bottom for card'),\n /** moment Year, month, and day tokens https://momentjs.com/docs/#/parsing/string-format/ */\n dateFormat: PropTypes.oneOf(['MM/DD/YYYY', 'MM DD YYYY']).description(\n 'moment Year, month, and day tokens https://momentjs.com/docs/#/parsing/string-format/',\n ),\n /** moment Hour, minute, second, millisecond, and offset tokens https://momentjs.com/docs/#/parsing/string-format/ */\n timeFormat: PropTypes.oneOf(['hh:mm a', 'HH:mm']).description(\n 'moment Hour, minute, second, millisecond, and offset tokens https://momentjs.com/docs/#/parsing/string-format/',\n ),\n /**\n * Max lines\n */\n maxLines: PropTypes.number.description('Max lines'),\n};\n\nCommentCard.propTypes = props;\nCommentCard.displayName = 'CommentCard';\nconst DSCommentCardWithSchema = describe(CommentCard);\nDSCommentCardWithSchema.propTypes = props;\n\nexport default CommentCard;\nexport { DSCommentCardWithSchema };\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACqDb,SAII,UAJJ,KAII,YAJJ;AAnDV,SAAgB,aAAa,cAAc;AAC3C,SAAS,WAAW,gBAAgB;AACpC,OAAO,cAAc;AACrB,SAAS,kBAAkB;AAC3B,OAAO,oBAAoB;AAC3B,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,SAAS,sBAAsB;AAExC,MAAM,cAAc,CAAC;AAAA,EACnB,iBAAiB,CAAC;AAAA,EAClB,OAAO;AAAA,EACP,OAAO,IAAI,KAAK;AAAA,EAChB,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ,CAAC;AAAA,EACT,UAAU,CAAC;AAAA,EACX,YAAY,EAAE,sCAAsC,CAAC,iBAAiB,EAAE;AAAA,EACxE,0BAA0B;AAAA,IACxB,aAAa;AAAA,EACf;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,aAAa;AAAA,EACb,WAAW;AACb,MAAM;AACJ,QAAM,MAAM,OAAO;AACnB,QAAM,cAAc,OAAO,eAAe,MAAM,UAAU,IAAI;AAC9D,QAAM,cAAc,OAAO,QAAQ,MAAM,UAAU,IAAI;AAEvD,QAAM,kBAAkB,YAAY,MAAM;AACxC,QAAI,QAAQ,MAAM;AAAA,EACpB,GAAG,CAAC,CAAC;AAEL,SACE;AAAA,IAAC;AAAA;AAAA,MACC,YAAY,EAAE,aAAa;AAAA,MAC3B,UAAU;AAAA,MACT,GAAG;AAAA,MACJ,OAAO,EAAE,GAAG,OAAO,GAAI,eAAe,SAAS,CAAC,EAAG;AAAA,MAEnD;AAAA,6BAAC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F,WAAW,UAAU,OAAO,YAAY,oBAAoB;AAAA,EAE5D,yBAAyB,UAAU,MAAM;AAAA,IACvC,aAAa,UAAU;AAAA,EACzB,CAAC,EAAE,YAAY,6BAA6B;AAAA,EAE5C,cAAc,UAAU,KAAK,YAAY,+BAA+B;AAAA,EAExE,YAAY,UAAU,MAAM,CAAC,cAAc,YAAY,CAAC,EAAE;AAAA,IACxD;AAAA,EACF;AAAA,EAEA,YAAY,UAAU,MAAM,CAAC,WAAW,OAAO,CAAC,EAAE;AAAA,IAChD;AAAA,EACF;AAAA,EAIA,UAAU,UAAU,OAAO,YAAY,WAAW;AACpD;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,0BAA0B,SAAS,WAAW;AACpD,wBAAwB,YAAY;AAEpC,IAAO,sBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -20,37 +20,37 @@ declare const CommentCard: {
|
|
|
20
20
|
}): JSX.Element;
|
|
21
21
|
propTypes: {
|
|
22
22
|
/** props to inject to comment card wrapper */
|
|
23
|
-
containerProps: import("@elliemae/ds-
|
|
23
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
24
24
|
/** form name */
|
|
25
|
-
name: import("@elliemae/ds-
|
|
25
|
+
name: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
26
26
|
/** style object */
|
|
27
|
-
style: import("@elliemae/ds-
|
|
27
|
+
style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
28
28
|
/** date object */
|
|
29
|
-
date: import("@elliemae/ds-
|
|
29
|
+
date: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
30
30
|
/** comment type string */
|
|
31
|
-
type: import("@elliemae/ds-
|
|
31
|
+
type: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
32
32
|
/** comment content */
|
|
33
|
-
content: import("@elliemae/ds-
|
|
33
|
+
content: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
34
34
|
/** dropdown menu options */
|
|
35
|
-
options: import("@elliemae/ds-
|
|
35
|
+
options: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
36
36
|
/** dropdown selection */
|
|
37
|
-
selection: import("@elliemae/ds-
|
|
37
|
+
selection: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
38
38
|
/** pass down props to dropdown */
|
|
39
|
-
customDropdownMenuProps: import("@elliemae/ds-
|
|
39
|
+
customDropdownMenuProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
40
40
|
/** toggle border bottom for card */
|
|
41
|
-
borderBottom: import("@elliemae/ds-
|
|
41
|
+
borderBottom: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
42
42
|
/** moment Year, month, and day tokens https://momentjs.com/docs/#/parsing/string-format/ */
|
|
43
|
-
dateFormat: import("@elliemae/ds-
|
|
43
|
+
dateFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
44
44
|
/** moment Hour, minute, second, millisecond, and offset tokens https://momentjs.com/docs/#/parsing/string-format/ */
|
|
45
|
-
timeFormat: import("@elliemae/ds-
|
|
45
|
+
timeFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
46
46
|
/**
|
|
47
47
|
* Max lines
|
|
48
48
|
*/
|
|
49
|
-
maxLines: import("@elliemae/ds-
|
|
49
|
+
maxLines: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
50
50
|
};
|
|
51
51
|
displayName: string;
|
|
52
52
|
};
|
|
53
|
-
declare const DSCommentCardWithSchema: import("@elliemae/ds-
|
|
53
|
+
declare const DSCommentCardWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<{
|
|
54
54
|
containerProps?: {} | undefined;
|
|
55
55
|
name?: string | undefined;
|
|
56
56
|
date?: Date | undefined;
|
|
@@ -21,19 +21,19 @@ declare const _default: {
|
|
|
21
21
|
maxLines?: number | undefined;
|
|
22
22
|
}): JSX.Element;
|
|
23
23
|
propTypes: {
|
|
24
|
-
containerProps: import("@elliemae/ds-
|
|
25
|
-
name: import("@elliemae/ds-
|
|
26
|
-
style: import("@elliemae/ds-
|
|
27
|
-
date: import("@elliemae/ds-
|
|
28
|
-
type: import("@elliemae/ds-
|
|
29
|
-
content: import("@elliemae/ds-
|
|
30
|
-
options: import("@elliemae/ds-
|
|
31
|
-
selection: import("@elliemae/ds-
|
|
32
|
-
customDropdownMenuProps: import("@elliemae/ds-
|
|
33
|
-
borderBottom: import("@elliemae/ds-
|
|
34
|
-
dateFormat: import("@elliemae/ds-
|
|
35
|
-
timeFormat: import("@elliemae/ds-
|
|
36
|
-
maxLines: import("@elliemae/ds-
|
|
24
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
25
|
+
name: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
26
|
+
style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
27
|
+
date: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
28
|
+
type: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
29
|
+
content: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
30
|
+
options: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
31
|
+
selection: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
32
|
+
customDropdownMenuProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
33
|
+
borderBottom: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
34
|
+
dateFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
35
|
+
timeFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
36
|
+
maxLines: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
37
37
|
};
|
|
38
38
|
displayName: string;
|
|
39
39
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -20,19 +20,19 @@ export declare const DSCommentCard: {
|
|
|
20
20
|
maxLines?: number | undefined;
|
|
21
21
|
}): JSX.Element;
|
|
22
22
|
propTypes: {
|
|
23
|
-
containerProps: import("@elliemae/ds-
|
|
24
|
-
name: import("@elliemae/ds-
|
|
25
|
-
style: import("@elliemae/ds-
|
|
26
|
-
date: import("@elliemae/ds-
|
|
27
|
-
type: import("@elliemae/ds-
|
|
28
|
-
content: import("@elliemae/ds-
|
|
29
|
-
options: import("@elliemae/ds-
|
|
30
|
-
selection: import("@elliemae/ds-
|
|
31
|
-
customDropdownMenuProps: import("@elliemae/ds-
|
|
32
|
-
borderBottom: import("@elliemae/ds-
|
|
33
|
-
dateFormat: import("@elliemae/ds-
|
|
34
|
-
timeFormat: import("@elliemae/ds-
|
|
35
|
-
maxLines: import("@elliemae/ds-
|
|
23
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
24
|
+
name: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
25
|
+
style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
26
|
+
date: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
27
|
+
type: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
28
|
+
content: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
29
|
+
options: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
30
|
+
selection: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
31
|
+
customDropdownMenuProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
32
|
+
borderBottom: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
33
|
+
dateFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
34
|
+
timeFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
35
|
+
maxLines: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
36
36
|
};
|
|
37
37
|
displayName: string;
|
|
38
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-comments",
|
|
3
|
-
"version": "3.16.0-next.
|
|
3
|
+
"version": "3.16.0-next.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Comments",
|
|
6
6
|
"files": [
|
|
@@ -52,12 +52,13 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"moment": "~2.29.3",
|
|
55
|
-
"@elliemae/ds-button": "3.16.0-next.
|
|
56
|
-
"@elliemae/ds-
|
|
57
|
-
"@elliemae/ds-
|
|
58
|
-
"@elliemae/ds-
|
|
59
|
-
"@elliemae/ds-
|
|
60
|
-
"@elliemae/ds-
|
|
55
|
+
"@elliemae/ds-button": "3.16.0-next.4",
|
|
56
|
+
"@elliemae/ds-props-helpers": "3.16.0-next.4",
|
|
57
|
+
"@elliemae/ds-read-more": "3.16.0-next.4",
|
|
58
|
+
"@elliemae/ds-utilities": "3.16.0-next.4",
|
|
59
|
+
"@elliemae/ds-classnames": "3.16.0-next.4",
|
|
60
|
+
"@elliemae/ds-dropdownmenu": "3.16.0-next.4",
|
|
61
|
+
"@elliemae/ds-icons": "3.16.0-next.4"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"styled-components": "~5.3.6"
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
|
|
80
81
|
"dts": "node ../../scripts/dts.mjs",
|
|
81
82
|
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
82
|
-
"dev:build": "pnpm --filter {.}... build
|
|
83
|
+
"dev:build": "pnpm --filter {.}... build",
|
|
83
84
|
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
84
85
|
"checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
85
86
|
}
|