@elliemae/ds-comments 3.15.0 → 3.16.0-next.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.
@@ -31,13 +31,13 @@ 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 import_ds_utilities = require("@elliemae/ds-utilities");
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"));
38
38
  var import_ds_icons = require("@elliemae/ds-icons");
39
- var import_blocks = require("./blocks");
40
- var import_helper = require("./helper");
39
+ var import_blocks = require("./blocks.js");
40
+ var import_helper = require("./helper.js");
41
41
  const CommentCard = ({
42
42
  containerProps = {},
43
43
  name = "",
@@ -113,32 +113,32 @@ const CommentCard = ({
113
113
  );
114
114
  };
115
115
  const props = {
116
- containerProps: import_ds_utilities.PropTypes.shape({
117
- id: import_ds_utilities.PropTypes.string,
118
- "data-testid": import_ds_utilities.PropTypes.string
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: import_ds_utilities.PropTypes.string.description("form name"),
121
- style: import_ds_utilities.PropTypes.object.description(" style object "),
122
- date: import_ds_utilities.PropTypes.instanceOf(Date).description("date object"),
123
- type: import_ds_utilities.PropTypes.string.description("comment type string"),
124
- content: import_ds_utilities.PropTypes.string.description("comment content"),
125
- options: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.object).description("dropdown menu options"),
126
- selection: import_ds_utilities.PropTypes.object.description("dropdown selection"),
127
- customDropdownMenuProps: import_ds_utilities.PropTypes.shape({
128
- focusOnOpen: import_ds_utilities.PropTypes.bool
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: import_ds_utilities.PropTypes.bool.description("toggle border bottom for card"),
131
- dateFormat: import_ds_utilities.PropTypes.oneOf(["MM/DD/YYYY", "MM DD YYYY"]).description(
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: import_ds_utilities.PropTypes.oneOf(["hh:mm a", "HH:mm"]).description(
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: import_ds_utilities.PropTypes.number.description("Max lines")
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, import_ds_utilities.describe)(CommentCard);
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-utilities';\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,0BAAoC;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;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,qDAAC,mCAAkB,YAAY,EAAE,aAAa,GAC5C;AAAA,uDAAC,iCACC;AAAA,wDAAC,iCAAiB,gBAAK;AAA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5D,yBAAyB,8BAAU,MAAM;AAAA,IACvC,aAAa,8BAAU;AAAA,EACzB,CAAC,EAAE,YAAY,6BAA6B;AAAA,EAE5C,cAAc,8BAAU,KAAK,YAAY,+BAA+B;AAAA,EAExE,YAAY,8BAAU,MAAM,CAAC,cAAc,YAAY,CAAC,EAAE;AAAA,IACxD;AAAA,EACF;AAAA,EAEA,YAAY,8BAAU,MAAM,CAAC,WAAW,OAAO,CAAC,EAAE;AAAA,IAChD;AAAA,EACF;AAAA,EAIA,UAAU,8BAAU,OAAO,YAAY,WAAW;AACpD;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,8BAA0B,8BAAS,WAAW;AACpD,wBAAwB,YAAY;AAEpC,IAAO,sBAAQ;",
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.js';\nimport { getTime, getDisplayDate } from './helper.js';\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,QA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AE9C,OAAO,kCAAU,OAAO,YAAY,gBAAgB;AAAA,EAEpD,MAAM,kCAAU,WAAW,IAAI,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
  }
@@ -29,7 +29,7 @@ __export(DSComments_exports, {
29
29
  });
30
30
  module.exports = __toCommonJS(DSComments_exports);
31
31
  var React = __toESM(require("react"));
32
- var import_CommentCard = __toESM(require("./CommentCard"));
32
+ var import_CommentCard = __toESM(require("./CommentCard.js"));
33
33
  var DSComments_default = {
34
34
  DSCommentCard: import_CommentCard.default
35
35
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/DSComments.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import DSCommentCard, { DSCommentCardWithSchema } from './CommentCard';\n\nexport default {\n DSCommentCard,\n};\nexport { DSCommentCardWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
4
+ "sourcesContent": ["import DSCommentCard, { DSCommentCardWithSchema } from './CommentCard.js';\n\nexport default {\n DSCommentCard,\n};\nexport { DSCommentCardWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,yBAAuD;AAEvD,IAAO,qBAAQ;AAAA,EACb,kCAAAA;AACF;",
6
6
  "names": ["DSCommentCard"]
7
7
  }
package/dist/cjs/index.js CHANGED
@@ -30,7 +30,7 @@ __export(src_exports, {
30
30
  });
31
31
  module.exports = __toCommonJS(src_exports);
32
32
  var React = __toESM(require("react"));
33
- var import_DSComments = __toESM(require("./components/DSComments"));
33
+ var import_DSComments = __toESM(require("./components/DSComments.js"));
34
34
  const { DSCommentCard } = import_DSComments.default;
35
35
  var src_default = DSCommentCard;
36
36
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import DSComments, { DSCommentCardWithSchema } from './components/DSComments';\n\nexport const { DSCommentCard } = DSComments;\nexport default DSCommentCard;\nexport { DSCommentCardWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
4
+ "sourcesContent": ["import DSComments, { DSCommentCardWithSchema } from './components/DSComments.js';\n\nexport const { DSCommentCard } = DSComments;\nexport default DSCommentCard;\nexport { DSCommentCardWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAoD;AAE7C,MAAM,EAAE,cAAc,IAAI,kBAAAA;AACjC,IAAO,cAAQ;",
6
6
  "names": ["DSComments"]
7
7
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
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-utilities";
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";
@@ -14,8 +14,8 @@ import {
14
14
  CommentCardData,
15
15
  CommentCardMenu,
16
16
  CommentCardLeft
17
- } from "./blocks";
18
- import { getTime, getDisplayDate } from "./helper";
17
+ } from "./blocks.js";
18
+ import { getTime, getDisplayDate } from "./helper.js";
19
19
  const CommentCard = ({
20
20
  containerProps = {},
21
21
  name = "",
@@ -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-utilities';\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"],
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.js';\nimport { getTime, getDisplayDate } from './helper.js';\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,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,MAAK;AAAA,YACL,YAAW;AAAA,YACX,MAAK;AAAA,YACL,UAAS;AAAA;AAAA,QACX,GACF,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,MAAM;AAAA,IAC9B,IAAI,UAAU;AAAA,IACd,eAAe,UAAU;AAAA,EAC3B,CAAC,EAAE,YAAY,yCAAyC;AAAA,EAExD,MAAM,UAAU,OAAO,YAAY,WAAW;AAAA,EAE9C,OAAO,UAAU,OAAO,YAAY,gBAAgB;AAAA,EAEpD,MAAM,UAAU,WAAW,IAAI,EAAE,YAAY,aAAa;AAAA,EAE1D,MAAM,UAAU,OAAO,YAAY,qBAAqB;AAAA,EAExD,SAAS,UAAU,OAAO,YAAY,iBAAiB;AAAA,EAEvD,SAAS,UAAU,QAAQ,UAAU,MAAM,EAAE,YAAY,uBAAuB;AAAA,EAEhF,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
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import DSCommentCard, { DSCommentCardWithSchema } from "./CommentCard";
2
+ import DSCommentCard, { DSCommentCardWithSchema } from "./CommentCard.js";
3
3
  var DSComments_default = {
4
4
  DSCommentCard
5
5
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/DSComments.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import DSCommentCard, { DSCommentCardWithSchema } from './CommentCard';\n\nexport default {\n DSCommentCard,\n};\nexport { DSCommentCardWithSchema };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import DSCommentCard, { DSCommentCardWithSchema } from './CommentCard.js';\n\nexport default {\n DSCommentCard,\n};\nexport { DSCommentCardWithSchema };\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAO,iBAAiB,+BAA+B;AAEvD,IAAO,qBAAQ;AAAA,EACb;AACF;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import DSComments, { DSCommentCardWithSchema } from "./components/DSComments";
2
+ import DSComments, { DSCommentCardWithSchema } from "./components/DSComments.js";
3
3
  const { DSCommentCard } = DSComments;
4
4
  var src_default = DSCommentCard;
5
5
  export {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import DSComments, { DSCommentCardWithSchema } from './components/DSComments';\n\nexport const { DSCommentCard } = DSComments;\nexport default DSCommentCard;\nexport { DSCommentCardWithSchema };\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import DSComments, { DSCommentCardWithSchema } from './components/DSComments.js';\n\nexport const { DSCommentCard } = DSComments;\nexport default DSCommentCard;\nexport { DSCommentCardWithSchema };\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAO,cAAc,+BAA+B;AAE7C,MAAM,EAAE,cAAc,IAAI;AACjC,IAAO,cAAQ;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
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-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
23
+ containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
24
24
  /** form name */
25
- name: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
25
+ name: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
26
26
  /** style object */
27
- style: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
27
+ style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
28
28
  /** date object */
29
- date: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
29
+ date: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
30
30
  /** comment type string */
31
- type: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
31
+ type: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
32
32
  /** comment content */
33
- content: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
33
+ content: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
34
34
  /** dropdown menu options */
35
- options: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
35
+ options: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
36
36
  /** dropdown selection */
37
- selection: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
37
+ selection: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
38
38
  /** pass down props to dropdown */
39
- customDropdownMenuProps: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
39
+ customDropdownMenuProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
40
40
  /** toggle border bottom for card */
41
- borderBottom: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
41
+ borderBottom: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
42
42
  /** moment Year, month, and day tokens https://momentjs.com/docs/#/parsing/string-format/ */
43
- dateFormat: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
43
+ dateFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
44
44
  /** moment Hour, minute, second, millisecond, and offset tokens https://momentjs.com/docs/#/parsing/string-format/ */
45
- timeFormat: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
45
+ timeFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
46
46
  /**
47
47
  * Max lines
48
48
  */
49
- maxLines: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
49
+ maxLines: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
50
50
  };
51
51
  displayName: string;
52
52
  };
53
- declare const DSCommentCardWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<{
53
+ declare const DSCommentCardWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
54
54
  containerProps?: {} | undefined;
55
55
  name?: string | undefined;
56
56
  date?: Date | undefined;
@@ -1,4 +1,4 @@
1
- import { DSCommentCardWithSchema } from './CommentCard';
1
+ import { DSCommentCardWithSchema } from './CommentCard.js';
2
2
  declare const _default: {
3
3
  DSCommentCard: {
4
4
  ({ containerProps, name, date, type, content, style, options, selection, customDropdownMenuProps, borderBottom, dateFormat, timeFormat, maxLines, }: {
@@ -21,19 +21,19 @@ declare const _default: {
21
21
  maxLines?: number | undefined;
22
22
  }): JSX.Element;
23
23
  propTypes: {
24
- containerProps: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
25
- name: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
26
- style: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
27
- date: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
28
- type: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
29
- content: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
30
- options: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
31
- selection: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
32
- customDropdownMenuProps: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
33
- borderBottom: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
34
- dateFormat: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
35
- timeFormat: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
36
- maxLines: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
24
+ containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
25
+ name: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
26
+ style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
27
+ date: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
28
+ type: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
29
+ content: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
30
+ options: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
31
+ selection: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
32
+ customDropdownMenuProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
33
+ borderBottom: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
34
+ dateFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
35
+ timeFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
36
+ maxLines: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
37
37
  };
38
38
  displayName: string;
39
39
  };
@@ -1,4 +1,4 @@
1
- import { DSCommentCardWithSchema } from './components/DSComments';
1
+ import { DSCommentCardWithSchema } from './components/DSComments.js';
2
2
  export declare const DSCommentCard: {
3
3
  ({ containerProps, name, date, type, content, style, options, selection, customDropdownMenuProps, borderBottom, dateFormat, timeFormat, maxLines, }: {
4
4
  containerProps?: {} | undefined;
@@ -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-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
24
- name: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
25
- style: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
26
- date: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
27
- type: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
28
- content: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
29
- options: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
30
- selection: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
31
- customDropdownMenuProps: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
32
- borderBottom: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
33
- dateFormat: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
34
- timeFormat: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
35
- maxLines: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
23
+ containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
24
+ name: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
25
+ style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
26
+ date: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
27
+ type: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
28
+ content: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
29
+ options: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
30
+ selection: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
31
+ customDropdownMenuProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
32
+ borderBottom: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
33
+ dateFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
34
+ timeFormat: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
35
+ maxLines: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").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.15.0",
3
+ "version": "3.16.0-next.10",
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.15.0",
56
- "@elliemae/ds-classnames": "3.15.0",
57
- "@elliemae/ds-dropdownmenu": "3.15.0",
58
- "@elliemae/ds-icons": "3.15.0",
59
- "@elliemae/ds-read-more": "3.15.0",
60
- "@elliemae/ds-utilities": "3.15.0"
55
+ "@elliemae/ds-button": "3.16.0-next.10",
56
+ "@elliemae/ds-dropdownmenu": "3.16.0-next.10",
57
+ "@elliemae/ds-props-helpers": "3.16.0-next.10",
58
+ "@elliemae/ds-icons": "3.16.0-next.10",
59
+ "@elliemae/ds-read-more": "3.16.0-next.10",
60
+ "@elliemae/ds-classnames": "3.16.0-next.10",
61
+ "@elliemae/ds-utilities": "3.16.0-next.10"
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 && pnpm --filter {.}... dts",
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
  }