@elliemae/ds-comments 2.0.0-alpha.3 → 2.0.0-alpha.7
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.
|
@@ -26,7 +26,7 @@ var _span, _span2, _MoreOptionsVert;
|
|
|
26
26
|
|
|
27
27
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
28
28
|
|
|
29
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
29
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
30
30
|
|
|
31
31
|
const CommentCard = ({
|
|
32
32
|
containerProps = {},
|
|
@@ -60,26 +60,26 @@ const CommentCard = ({
|
|
|
60
60
|
tabIndex: 0
|
|
61
61
|
}, containerProps), {}, {
|
|
62
62
|
style: _objectSpread(_objectSpread({}, style), containerProps.style || {}),
|
|
63
|
-
children: [/*#__PURE__*/_jsx__default[
|
|
63
|
+
children: [/*#__PURE__*/_jsx__default["default"](blocks.CommentCardHeader, {
|
|
64
64
|
classProps: {
|
|
65
65
|
borderBottom
|
|
66
66
|
}
|
|
67
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
68
|
-
children: [_span || (_span = /*#__PURE__*/_jsx__default[
|
|
67
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](blocks.CommentCardLeft, {}, void 0, /*#__PURE__*/_jsx__default["default"](blocks.CommentCardName, {}, void 0, name), /*#__PURE__*/_jsx__default["default"](blocks.CommentCardData, {}, void 0, displayDate, displayTime && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
68
|
+
children: [_span || (_span = /*#__PURE__*/_jsx__default["default"]("span", {}, void 0, "\u2022")), displayTime]
|
|
69
69
|
}), type && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
70
|
-
children: [_span2 || (_span2 = /*#__PURE__*/_jsx__default[
|
|
71
|
-
}))), options && options.length > 0 && /*#__PURE__*/_jsx__default[
|
|
70
|
+
children: [_span2 || (_span2 = /*#__PURE__*/_jsx__default["default"]("span", {}, void 0, "\u2022")), type]
|
|
71
|
+
}))), options && options.length > 0 && /*#__PURE__*/_jsx__default["default"](blocks.CommentCardMenu, {}, void 0, /*#__PURE__*/jsxRuntime.jsx(DSDropdownMenu__default["default"], _objectSpread(_objectSpread({}, customDropdownMenuProps), {}, {
|
|
72
72
|
onClose: handleCloseMenu,
|
|
73
73
|
options: options,
|
|
74
74
|
selection: selection,
|
|
75
|
-
triggerComponent: /*#__PURE__*/_jsx__default[
|
|
75
|
+
triggerComponent: /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
|
|
76
76
|
buttonType: "text",
|
|
77
|
-
icon: _MoreOptionsVert || (_MoreOptionsVert = /*#__PURE__*/_jsx__default[
|
|
77
|
+
icon: _MoreOptionsVert || (_MoreOptionsVert = /*#__PURE__*/_jsx__default["default"](MoreOptionsVert__default["default"], {})),
|
|
78
78
|
innerRef: ref
|
|
79
79
|
}),
|
|
80
80
|
zIndex: "11" // https://jira.elliemae.io/browse/PUI-1664
|
|
81
81
|
|
|
82
|
-
})))), /*#__PURE__*/_jsx__default[
|
|
82
|
+
})))), /*#__PURE__*/_jsx__default["default"](blocks.CommentCardContent, {}, void 0, /*#__PURE__*/_jsx__default["default"]("div", {}, void 0, /*#__PURE__*/_jsx__default["default"](dsBasic.DSReadMore, {
|
|
83
83
|
lines: maxLines,
|
|
84
84
|
content: `${content} `,
|
|
85
85
|
more: "MORE",
|
|
@@ -142,4 +142,4 @@ const DSCommentCardWithSchema = reactDesc.describe(CommentCard);
|
|
|
142
142
|
DSCommentCardWithSchema.propTypes = props;
|
|
143
143
|
|
|
144
144
|
exports.DSCommentCardWithSchema = DSCommentCardWithSchema;
|
|
145
|
-
exports[
|
|
145
|
+
exports["default"] = CommentCard;
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var CommentCard = require('./CommentCard.js');
|
|
6
6
|
|
|
7
7
|
var DSComments = {
|
|
8
|
-
DSCommentCard: CommentCard[
|
|
8
|
+
DSCommentCard: CommentCard["default"]
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.DSCommentCardWithSchema = CommentCard.DSCommentCardWithSchema;
|
|
12
|
-
exports[
|
|
12
|
+
exports["default"] = DSComments;
|
package/cjs/components/helper.js
CHANGED
|
@@ -12,10 +12,10 @@ function getMaxSize() {
|
|
|
12
12
|
return 113;
|
|
13
13
|
}
|
|
14
14
|
function getTime(date, formatString = 'hh:mm a') {
|
|
15
|
-
return moment__default[
|
|
15
|
+
return moment__default["default"](date).format(formatString);
|
|
16
16
|
}
|
|
17
17
|
function getDisplayDate(date, formatString = 'MM/DD/YYYY') {
|
|
18
|
-
return moment__default[
|
|
18
|
+
return moment__default["default"](date).format(formatString);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
exports.getDisplayDate = getDisplayDate;
|
package/cjs/index.js
CHANGED
|
@@ -7,8 +7,8 @@ var CommentCard = require('./components/CommentCard.js');
|
|
|
7
7
|
|
|
8
8
|
const {
|
|
9
9
|
DSCommentCard
|
|
10
|
-
} = DSComments[
|
|
10
|
+
} = DSComments["default"];
|
|
11
11
|
|
|
12
12
|
exports.DSCommentCardWithSchema = CommentCard.DSCommentCardWithSchema;
|
|
13
13
|
exports.DSCommentCard = DSCommentCard;
|
|
14
|
-
exports[
|
|
14
|
+
exports["default"] = DSCommentCard;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-comments",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Comments",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"build": "node ../../scripts/build/build.js"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-basic": "2.0.0-alpha.
|
|
52
|
-
"@elliemae/ds-classnames": "2.0.0-alpha.
|
|
53
|
-
"@elliemae/ds-dropdownmenu": "2.0.0-alpha.
|
|
51
|
+
"@elliemae/ds-basic": "2.0.0-alpha.7",
|
|
52
|
+
"@elliemae/ds-classnames": "2.0.0-alpha.7",
|
|
53
|
+
"@elliemae/ds-dropdownmenu": "2.0.0-alpha.7",
|
|
54
54
|
"prop-types": "~15.7.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|