@ltht-react/timeline 1.0.124 → 1.0.129
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/lib/atoms/timeline-author.js +26 -4
- package/lib/atoms/timeline-author.js.map +1 -1
- package/lib/atoms/timeline-button.js +4 -4
- package/lib/atoms/timeline-button.js.map +1 -1
- package/lib/atoms/timeline-description.js +27 -4
- package/lib/atoms/timeline-description.js.map +1 -1
- package/lib/atoms/timeline-time.js +28 -5
- package/lib/atoms/timeline-time.js.map +1 -1
- package/lib/atoms/timeline-title-redacted.d.ts +2 -2
- package/lib/atoms/timeline-title-redacted.js +12 -1
- package/lib/atoms/timeline-title-redacted.js.map +1 -1
- package/lib/atoms/timeline-title.js +26 -4
- package/lib/atoms/timeline-title.js.map +1 -1
- package/lib/molecules/timeline-item.js +16 -17
- package/lib/molecules/timeline-item.js.map +1 -1
- package/package.json +8 -8
|
@@ -3,6 +3,28 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
6
28
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
30
|
};
|
|
@@ -15,7 +37,7 @@ var constants_1 = __importDefault(require("../constants"));
|
|
|
15
37
|
var StyledTimelineItemLeft = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-grow: 1;\n"], ["\n flex-grow: 1;\n"])));
|
|
16
38
|
var TimelineAuthor = function (_a) {
|
|
17
39
|
var _b;
|
|
18
|
-
var domainResource = _a.domainResource, domainResourceType = _a.domainResourceType;
|
|
40
|
+
var domainResource = _a.domainResource, domainResourceType = _a.domainResourceType, rest = __rest(_a, ["domainResource", "domainResourceType"]);
|
|
19
41
|
if (!domainResource)
|
|
20
42
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
21
43
|
switch (domainResourceType) {
|
|
@@ -24,7 +46,7 @@ var TimelineAuthor = function (_a) {
|
|
|
24
46
|
if (!(qr === null || qr === void 0 ? void 0 : qr.author)) {
|
|
25
47
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
26
48
|
}
|
|
27
|
-
return (jsx_runtime_1.jsxs(StyledTimelineItemLeft, { children: [jsx_runtime_1.jsx(icon_1.UserIcon, { size: "medium" }, void 0), " by ", (_b = qr === null || qr === void 0 ? void 0 : qr.author) === null || _b === void 0 ? void 0 : _b.display] }, void 0));
|
|
49
|
+
return (jsx_runtime_1.jsxs(StyledTimelineItemLeft, __assign({}, rest, { children: [jsx_runtime_1.jsx(icon_1.UserIcon, { size: "medium" }, void 0), " by ", (_b = qr === null || qr === void 0 ? void 0 : qr.author) === null || _b === void 0 ? void 0 : _b.display] }), void 0));
|
|
28
50
|
}
|
|
29
51
|
case types_1.TimelineDomainResourceType.DocumentReference: {
|
|
30
52
|
var docRef = domainResource;
|
|
@@ -40,7 +62,7 @@ var TimelineAuthor = function (_a) {
|
|
|
40
62
|
if (authorList_1.length === 0) {
|
|
41
63
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
42
64
|
}
|
|
43
|
-
return (jsx_runtime_1.jsxs(StyledTimelineItemLeft, { children: [jsx_runtime_1.jsx(icon_1.UserIcon, { size: "medium" }, void 0), " by ", authorList_1.join(', ')] }, void 0));
|
|
65
|
+
return (jsx_runtime_1.jsxs(StyledTimelineItemLeft, __assign({}, rest, { children: [jsx_runtime_1.jsx(icon_1.UserIcon, { size: "medium" }, void 0), " by ", authorList_1.join(', ')] }), void 0));
|
|
44
66
|
}
|
|
45
67
|
case types_1.TimelineDomainResourceType.AuditEvent: {
|
|
46
68
|
var audit = domainResource;
|
|
@@ -56,7 +78,7 @@ var TimelineAuthor = function (_a) {
|
|
|
56
78
|
if (!authorName_1) {
|
|
57
79
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
58
80
|
}
|
|
59
|
-
return (jsx_runtime_1.jsxs(StyledTimelineItemLeft, { children: [jsx_runtime_1.jsx(icon_1.UserIcon, { size: "medium" }, void 0), " by ", authorName_1] }, void 0));
|
|
81
|
+
return (jsx_runtime_1.jsxs(StyledTimelineItemLeft, __assign({}, rest, { children: [jsx_runtime_1.jsx(icon_1.UserIcon, { size: "medium" }, void 0), " by ", authorName_1] }), void 0));
|
|
60
82
|
}
|
|
61
83
|
}
|
|
62
84
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-author.js","sourceRoot":"","sources":["../../src/atoms/timeline-author.tsx"],"names":[],"mappings":"
|
|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ED,OAAO,qDAAK,CAAA;AACd,CAAC,CAAA;AAOD,kBAAe,cAAc,CAAA"}
|
|
@@ -15,17 +15,17 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
15
15
|
var banner_1 = require("@ltht-react/banner");
|
|
16
16
|
var icon_1 = require("@ltht-react/icon");
|
|
17
17
|
var TimelineButton = function (_a) {
|
|
18
|
-
var timelineItem = _a.timelineItem;
|
|
18
|
+
var timelineItem = _a.timelineItem, className = _a.className;
|
|
19
19
|
var clickHandler = timelineItem.clickHandler, buttonState = timelineItem.buttonState, buttonText = timelineItem.buttonText;
|
|
20
20
|
switch (buttonState) {
|
|
21
21
|
case 'no-button':
|
|
22
22
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
23
23
|
case 'permission-denied-button':
|
|
24
|
-
return (jsx_runtime_1.jsx(banner_1.ButtonBanner, __assign({ type: "warning", disabled: true }, { children: buttonText !== null && buttonText !== void 0 ? buttonText : 'Insufficient privileges to view this item' }), void 0));
|
|
24
|
+
return (jsx_runtime_1.jsx(banner_1.ButtonBanner, __assign({ className: className, type: "warning", disabled: true }, { children: buttonText !== null && buttonText !== void 0 ? buttonText : 'Insufficient privileges to view this item' }), void 0));
|
|
25
25
|
case 'selectable-button':
|
|
26
|
-
return (jsx_runtime_1.jsx(banner_1.ButtonBanner, __assign({ type: "info", onClick: clickHandler }, { children: buttonText !== null && buttonText !== void 0 ? buttonText : '' }), void 0));
|
|
26
|
+
return (jsx_runtime_1.jsx(banner_1.ButtonBanner, __assign({ className: className, type: "info", onClick: clickHandler }, { children: buttonText !== null && buttonText !== void 0 ? buttonText : '' }), void 0));
|
|
27
27
|
case 'selected-button':
|
|
28
|
-
return (jsx_runtime_1.jsx(banner_1.ButtonBanner, __assign({ type: "highlight", icon: jsx_runtime_1.jsx(icon_1.InfoCircleIcon, { status: "info", size: "medium" }, void 0), onClick: clickHandler }, { children: buttonText !== null && buttonText !== void 0 ? buttonText : '' }), void 0));
|
|
28
|
+
return (jsx_runtime_1.jsx(banner_1.ButtonBanner, __assign({ className: className, type: "highlight", icon: jsx_runtime_1.jsx(icon_1.InfoCircleIcon, { status: "info", size: "medium" }, void 0), onClick: clickHandler }, { children: buttonText !== null && buttonText !== void 0 ? buttonText : '' }), void 0));
|
|
29
29
|
default:
|
|
30
30
|
throw new Error('ButtonState must be a valid value.');
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-button.js","sourceRoot":"","sources":["../../src/atoms/timeline-button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,6CAAiD;AACjD,yCAAiD;AAIjD,IAAM,cAAc,GAAc,UAAC,
|
|
1
|
+
{"version":3,"file":"timeline-button.js","sourceRoot":"","sources":["../../src/atoms/timeline-button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,6CAAiD;AACjD,yCAAiD;AAIjD,IAAM,cAAc,GAAc,UAAC,EAA2B;QAAzB,YAAY,kBAAA,EAAE,SAAS,eAAA;IAClD,IAAA,YAAY,GAA8B,YAAY,aAA1C,EAAE,WAAW,GAAiB,YAAY,YAA7B,EAAE,UAAU,GAAK,YAAY,WAAjB,CAAiB;IAE9D,QAAQ,WAAW,EAAE;QACnB,KAAK,WAAW;YACd,OAAO,qDAAK,CAAA;QACd,KAAK,0BAA0B;YAC7B,OAAO,CACL,kBAAC,qBAAY,aAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,SAAS,EAAC,QAAQ,sBACxD,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,2CAA2C,YAC7C,CAChB,CAAA;QACH,KAAK,mBAAmB;YACtB,OAAO,CACL,kBAAC,qBAAY,aAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,YAAY,gBAClE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,YACJ,CAChB,CAAA;QACH,KAAK,iBAAiB;YACpB,OAAO,CACL,kBAAC,qBAAY,aACX,SAAS,EAAE,SAAS,EACpB,IAAI,EAAC,WAAW,EAChB,IAAI,EAAE,kBAAC,qBAAc,IAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAC,QAAQ,WAAG,EACpD,OAAO,EAAE,YAAY,gBAEpB,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,YACJ,CAChB,CAAA;QACH;YACE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;KACxD;AACH,CAAC,CAAA;AAMD,kBAAe,cAAc,CAAA"}
|
|
@@ -3,6 +3,28 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
6
28
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
30
|
};
|
|
@@ -14,7 +36,7 @@ var styled_1 = __importDefault(require("@emotion/styled"));
|
|
|
14
36
|
var StyledDescription = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n p {\n margin: 0 0.2rem;\n display: inline;\n }\n"], ["\n p {\n margin: 0 0.2rem;\n display: inline;\n }\n"])));
|
|
15
37
|
var TimelineDescription = function (_a) {
|
|
16
38
|
var _b, _c;
|
|
17
|
-
var domainResource = _a.domainResource, domainResourceType = _a.domainResourceType;
|
|
39
|
+
var domainResource = _a.domainResource, domainResourceType = _a.domainResourceType, rest = __rest(_a, ["domainResource", "domainResourceType"]);
|
|
18
40
|
if (!domainResource)
|
|
19
41
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
20
42
|
switch (domainResourceType) {
|
|
@@ -23,7 +45,7 @@ var TimelineDescription = function (_a) {
|
|
|
23
45
|
if (!((_b = qr.questionnaire) === null || _b === void 0 ? void 0 : _b.description)) {
|
|
24
46
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
25
47
|
}
|
|
26
|
-
return jsx_runtime_1.jsx(StyledDescription, { children: react_html_parser_1.default((_c = qr.questionnaire) === null || _c === void 0 ? void 0 : _c.description) }, void 0);
|
|
48
|
+
return jsx_runtime_1.jsx(StyledDescription, __assign({}, rest, { children: react_html_parser_1.default((_c = qr.questionnaire) === null || _c === void 0 ? void 0 : _c.description) }), void 0);
|
|
27
49
|
}
|
|
28
50
|
case types_1.TimelineDomainResourceType.DocumentReference: {
|
|
29
51
|
var docRef = domainResource;
|
|
@@ -34,10 +56,11 @@ var TimelineDescription = function (_a) {
|
|
|
34
56
|
if (!audit.outcomeDesc) {
|
|
35
57
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
36
58
|
}
|
|
37
|
-
return jsx_runtime_1.jsx(StyledDescription, { children: react_html_parser_1.default(audit.outcomeDesc) }, void 0);
|
|
59
|
+
return jsx_runtime_1.jsx(StyledDescription, __assign({}, rest, { children: react_html_parser_1.default(audit.outcomeDesc) }), void 0);
|
|
38
60
|
}
|
|
61
|
+
default:
|
|
62
|
+
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
39
63
|
}
|
|
40
|
-
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
41
64
|
};
|
|
42
65
|
exports.default = TimelineDescription;
|
|
43
66
|
var templateObject_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-description.js","sourceRoot":"","sources":["../../src/atoms/timeline-description.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timeline-description.js","sourceRoot":"","sources":["../../src/atoms/timeline-description.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAM0B;AAC1B,wEAA+C;AAC/C,2DAAoC;AAEpC,IAAM,iBAAiB,GAAG,gBAAM,CAAC,GAAG,gIAAA,6DAKnC,IAAA,CAAA;AAED,IAAM,mBAAmB,GAAc,UAAC,EAA+C;;IAA7C,IAAA,cAAc,oBAAA,EAAE,kBAAkB,wBAAA,EAAK,IAAI,cAA7C,wCAA+C,CAAF;IACnF,IAAI,CAAC,cAAc;QAAE,OAAO,qDAAK,CAAA;IAEjC,QAAQ,kBAAkB,EAAE;QAC1B,KAAK,kCAA0B,CAAC,qBAAqB,CAAC,CAAC;YACrD,IAAM,EAAE,GAAG,cAAuC,CAAA;YAClD,IAAI,CAAC,CAAA,MAAA,EAAE,CAAC,aAAa,0CAAE,WAAW,CAAA,EAAE;gBAClC,OAAO,qDAAK,CAAA;aACb;YACD,OAAO,kBAAC,iBAAiB,eAAK,IAAI,cAAG,2BAAe,CAAC,MAAA,EAAE,CAAC,aAAa,0CAAE,WAAW,CAAC,YAAqB,CAAA;SACzG;QACD,KAAK,kCAA0B,CAAC,iBAAiB,CAAC,CAAC;YACjD,IAAM,MAAM,GAAG,cAAmC,CAAA;YAClD,OAAO,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,sDAAG,MAAM,CAAC,WAAW,WAAI,CAAC,CAAC,CAAC,qDAAK,CAAA;SAC9D;QACD,KAAK,kCAA0B,CAAC,UAAU,CAAC,CAAC;YAC1C,IAAM,KAAK,GAAG,cAA4B,CAAA;YAC1C,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE;gBACtB,OAAO,qDAAK,CAAA;aACb;YAED,OAAO,kBAAC,iBAAiB,eAAK,IAAI,cAAG,2BAAe,CAAC,KAAK,CAAC,WAAW,CAAC,YAAqB,CAAA;SAC7F;QACD;YACE,OAAO,qDAAK,CAAA;KACf;AACH,CAAC,CAAA;AAOD,kBAAe,mBAAmB,CAAA"}
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
2
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
25
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
26
|
var types_1 = require("@ltht-react/types");
|
|
5
27
|
var utils_1 = require("@ltht-react/utils");
|
|
6
28
|
var TimelineTime = function (_a) {
|
|
7
29
|
var _b, _c, _d, _e;
|
|
8
|
-
var domainResource = _a.domainResource, domainResourceType = _a.domainResourceType;
|
|
30
|
+
var domainResource = _a.domainResource, domainResourceType = _a.domainResourceType, rest = __rest(_a, ["domainResource", "domainResourceType"]);
|
|
9
31
|
if (!domainResource)
|
|
10
32
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
11
33
|
switch (domainResourceType) {
|
|
@@ -15,13 +37,13 @@ var TimelineTime = function (_a) {
|
|
|
15
37
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
16
38
|
}
|
|
17
39
|
var time = utils_1.formatTime(new Date(qr === null || qr === void 0 ? void 0 : qr.authored.value));
|
|
18
|
-
return jsx_runtime_1.jsx(
|
|
40
|
+
return jsx_runtime_1.jsx("div", __assign({}, rest, { children: time }), void 0);
|
|
19
41
|
}
|
|
20
42
|
case types_1.TimelineDomainResourceType.DocumentReference: {
|
|
21
43
|
var docRef = domainResource;
|
|
22
44
|
if (docRef && ((_c = docRef === null || docRef === void 0 ? void 0 : docRef.created) === null || _c === void 0 ? void 0 : _c.value)) {
|
|
23
45
|
var time = utils_1.formatTime(new Date(docRef.created.value));
|
|
24
|
-
return jsx_runtime_1.jsx(
|
|
46
|
+
return jsx_runtime_1.jsx("div", __assign({}, rest, { children: time }), void 0);
|
|
25
47
|
}
|
|
26
48
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
27
49
|
}
|
|
@@ -29,12 +51,13 @@ var TimelineTime = function (_a) {
|
|
|
29
51
|
var audit = domainResource;
|
|
30
52
|
if (audit && ((_e = (_d = audit === null || audit === void 0 ? void 0 : audit.period) === null || _d === void 0 ? void 0 : _d.start) === null || _e === void 0 ? void 0 : _e.value)) {
|
|
31
53
|
var time = utils_1.formatTime(new Date(audit.period.start.value));
|
|
32
|
-
return jsx_runtime_1.jsx(
|
|
54
|
+
return jsx_runtime_1.jsx("div", __assign({}, rest, { children: time }), void 0);
|
|
33
55
|
}
|
|
34
56
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
35
57
|
}
|
|
58
|
+
default:
|
|
59
|
+
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
36
60
|
}
|
|
37
|
-
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
38
61
|
};
|
|
39
62
|
exports.default = TimelineTime;
|
|
40
63
|
//# sourceMappingURL=timeline-time.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-time.js","sourceRoot":"","sources":["../../src/atoms/timeline-time.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timeline-time.js","sourceRoot":"","sources":["../../src/atoms/timeline-time.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAM0B;AAC1B,2CAA8C;AAE9C,IAAM,YAAY,GAAc,UAAC,EAA+C;;IAA7C,IAAA,cAAc,oBAAA,EAAE,kBAAkB,wBAAA,EAAK,IAAI,cAA7C,wCAA+C,CAAF;IAC5E,IAAI,CAAC,cAAc;QAAE,OAAO,qDAAK,CAAA;IAEjC,QAAQ,kBAAkB,EAAE;QAC1B,KAAK,kCAA0B,CAAC,qBAAqB,CAAC,CAAC;YACrD,IAAM,EAAE,GAAG,cAAuC,CAAA;YAClD,IAAI,CAAC,CAAA,MAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,QAAQ,0CAAE,KAAK,CAAA,EAAE;gBACxB,OAAO,qDAAK,CAAA;aACb;YACD,IAAM,IAAI,GAAG,kBAAU,CAAC,IAAI,IAAI,CAAC,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAA;YACrD,OAAO,sCAAS,IAAI,cAAG,IAAI,YAAO,CAAA;SACnC;QACD,KAAK,kCAA0B,CAAC,iBAAiB,CAAC,CAAC;YACjD,IAAM,MAAM,GAAG,cAAmC,CAAA;YAClD,IAAI,MAAM,KAAI,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,KAAK,CAAA,EAAE;gBACpC,IAAM,IAAI,GAAG,kBAAU,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAA;gBACvD,OAAO,sCAAS,IAAI,cAAG,IAAI,YAAO,CAAA;aACnC;YACD,OAAO,qDAAK,CAAA;SACb;QACD,KAAK,kCAA0B,CAAC,UAAU,CAAC,CAAC;YAC1C,IAAM,KAAK,GAAG,cAA4B,CAAA;YAC1C,IAAI,KAAK,KAAI,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,KAAK,0CAAE,KAAK,CAAA,EAAE;gBACxC,IAAM,IAAI,GAAG,kBAAU,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;gBAC3D,OAAO,sCAAS,IAAI,cAAG,IAAI,YAAO,CAAA;aACnC;YACD,OAAO,qDAAK,CAAA;SACb;QACD;YACE,OAAO,qDAAK,CAAA;KACf;AACH,CAAC,CAAA;AAOD,kBAAe,YAAY,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
declare const TimelineTitleRedacted: FC
|
|
1
|
+
import { FC, HTMLAttributes } from 'react';
|
|
2
|
+
declare const TimelineTitleRedacted: FC<HTMLAttributes<HTMLDivElement>>;
|
|
3
3
|
export default TimelineTitleRedacted;
|
|
@@ -3,6 +3,17 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
6
17
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
18
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
19
|
};
|
|
@@ -11,7 +22,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
11
22
|
var styles_1 = require("@ltht-react/styles");
|
|
12
23
|
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
13
24
|
var StyledRedactedMessage = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), styles_1.TEXT_COLOURS.SECONDARY.VALUE);
|
|
14
|
-
var TimelineTitleRedacted = function () { return jsx_runtime_1.jsx(StyledRedactedMessage, { children: "Insufficient Privileges" }, void 0); };
|
|
25
|
+
var TimelineTitleRedacted = function (props) { return (jsx_runtime_1.jsx(StyledRedactedMessage, __assign({}, props, { children: "Insufficient Privileges" }), void 0)); };
|
|
15
26
|
exports.default = TimelineTitleRedacted;
|
|
16
27
|
var templateObject_1;
|
|
17
28
|
//# sourceMappingURL=timeline-title-redacted.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-title-redacted.js","sourceRoot":"","sources":["../../src/atoms/timeline-title-redacted.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timeline-title-redacted.js","sourceRoot":"","sources":["../../src/atoms/timeline-title-redacted.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,6CAAiD;AACjD,2DAAoC;AAEpC,IAAM,qBAAqB,GAAG,gBAAM,CAAC,GAAG,uFAAA,aAC7B,EAA4B,KACtC,KADU,qBAAY,CAAC,SAAS,CAAC,KAAK,CACtC,CAAA;AAED,IAAM,qBAAqB,GAAuC,UAAC,KAAK,IAAK,OAAA,CAC3E,kBAAC,qBAAqB,eAAK,KAAK,mDAAiD,CAClF,EAF4E,CAE5E,CAAA;AAED,kBAAe,qBAAqB,CAAA"}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
2
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
25
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
26
|
var types_1 = require("@ltht-react/types");
|
|
5
27
|
var TimelineTitle = function (_a) {
|
|
6
28
|
var _b, _c, _d, _e, _f;
|
|
7
|
-
var domainResource = _a.domainResource, domainResourceType = _a.domainResourceType;
|
|
29
|
+
var domainResource = _a.domainResource, domainResourceType = _a.domainResourceType, rest = __rest(_a, ["domainResource", "domainResourceType"]);
|
|
8
30
|
if (!domainResource)
|
|
9
31
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
10
32
|
switch (domainResourceType) {
|
|
@@ -13,17 +35,17 @@ var TimelineTitle = function (_a) {
|
|
|
13
35
|
var questionnaireTitle = qr.metadata.isRedacted
|
|
14
36
|
? 'Insufficient privileges'
|
|
15
37
|
: (_c = (_b = qr.text) === null || _b === void 0 ? void 0 : _b.text) !== null && _c !== void 0 ? _c : (_d = qr.questionnaire) === null || _d === void 0 ? void 0 : _d.title;
|
|
16
|
-
return jsx_runtime_1.jsx(
|
|
38
|
+
return jsx_runtime_1.jsx("div", __assign({}, rest, { children: questionnaireTitle }), void 0);
|
|
17
39
|
}
|
|
18
40
|
case types_1.TimelineDomainResourceType.DocumentReference: {
|
|
19
41
|
var docRef = domainResource;
|
|
20
42
|
var docTitle = docRef.metadata.isRedacted ? 'Insufficient privileges' : (_e = docRef.text) === null || _e === void 0 ? void 0 : _e.text;
|
|
21
|
-
return jsx_runtime_1.jsx(
|
|
43
|
+
return jsx_runtime_1.jsx("div", __assign({}, rest, { children: docTitle }), void 0);
|
|
22
44
|
}
|
|
23
45
|
case types_1.TimelineDomainResourceType.AuditEvent: {
|
|
24
46
|
var audit = domainResource;
|
|
25
47
|
var auditTitle = audit.metadata.isRedacted ? 'Insufficient privileges' : (_f = audit.text) === null || _f === void 0 ? void 0 : _f.text;
|
|
26
|
-
return jsx_runtime_1.jsx(
|
|
48
|
+
return jsx_runtime_1.jsx("div", __assign({}, rest, { children: auditTitle }), void 0);
|
|
27
49
|
}
|
|
28
50
|
default:
|
|
29
51
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-title.js","sourceRoot":"","sources":["../../src/atoms/timeline-title.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timeline-title.js","sourceRoot":"","sources":["../../src/atoms/timeline-title.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAM0B;AAE1B,IAAM,aAAa,GAAc,UAAC,EAA+C;;IAA7C,IAAA,cAAc,oBAAA,EAAE,kBAAkB,wBAAA,EAAK,IAAI,cAA7C,wCAA+C,CAAF;IAC7E,IAAI,CAAC,cAAc;QAAE,OAAO,qDAAK,CAAA;IAEjC,QAAQ,kBAAkB,EAAE;QAC1B,KAAK,kCAA0B,CAAC,qBAAqB,CAAC,CAAC;YACrD,IAAM,EAAE,GAAG,cAAuC,CAAA;YAClD,IAAM,kBAAkB,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU;gBAC/C,CAAC,CAAC,yBAAyB;gBAC3B,CAAC,CAAC,MAAA,MAAA,EAAE,CAAC,IAAI,0CAAE,IAAI,mCAAI,MAAA,EAAE,CAAC,aAAa,0CAAE,KAAK,CAAA;YAC5C,OAAO,sCAAS,IAAI,cAAG,kBAAkB,YAAO,CAAA;SACjD;QACD,KAAK,kCAA0B,CAAC,iBAAiB,CAAC,CAAC;YACjD,IAAM,MAAM,GAAG,cAAmC,CAAA;YAClD,IAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAA,MAAM,CAAC,IAAI,0CAAE,IAAI,CAAA;YAC3F,OAAO,sCAAS,IAAI,cAAG,QAAQ,YAAO,CAAA;SACvC;QACD,KAAK,kCAA0B,CAAC,UAAU,CAAC,CAAC;YAC1C,IAAM,KAAK,GAAG,cAA4B,CAAA;YAC1C,IAAM,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAA,KAAK,CAAC,IAAI,0CAAE,IAAI,CAAA;YAC3F,OAAO,sCAAS,IAAI,cAAG,UAAU,YAAO,CAAA;SACzC;QACD;YACE,OAAO,qDAAK,CAAA;KACf;AACH,CAAC,CAAA;AAOD,kBAAe,aAAa,CAAA"}
|
|
@@ -25,7 +25,6 @@ var hooks_1 = require("@ltht-react/hooks");
|
|
|
25
25
|
var utils_1 = require("@ltht-react/utils");
|
|
26
26
|
var timeline_description_1 = __importDefault(require("../atoms/timeline-description"));
|
|
27
27
|
var timeline_author_1 = __importDefault(require("../atoms/timeline-author"));
|
|
28
|
-
var timeline_status_1 = __importDefault(require("../atoms/timeline-status"));
|
|
29
28
|
var timeline_title_1 = __importDefault(require("../atoms/timeline-title"));
|
|
30
29
|
var timeline_time_1 = __importDefault(require("../atoms/timeline-time"));
|
|
31
30
|
var timeline_button_1 = __importDefault(require("../atoms/timeline-button"));
|
|
@@ -33,18 +32,18 @@ var StyledTimelineItem = styled_1.default.div(templateObject_1 || (templateObjec
|
|
|
33
32
|
var isSelected = _a.isSelected;
|
|
34
33
|
return (isSelected ? styles_1.HIGHLIGHT_GREEN.VALUE : styles_1.TRANSLUCENT_DARK_BLUE);
|
|
35
34
|
});
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
|
|
35
|
+
var StyledTimelineAuthor = styled_1.default(timeline_author_1.default)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex-grow: 1;\n margin-bottom: 0.5rem;\n"], ["\n flex-grow: 1;\n margin-bottom: 0.5rem;\n"])));
|
|
36
|
+
var StyledTimelineTime = styled_1.default(timeline_time_1.default)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: black;\n"], ["\n color: black;\n"])));
|
|
37
|
+
var StyledTimelineItemTop = styled_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n color: black;\n padding-bottom: 0.25rem;\n margin: 0.5rem;\n"], ["\n display: flex;\n color: black;\n padding-bottom: 0.25rem;\n margin: 0.5rem;\n"])));
|
|
38
|
+
var StyledTimelineItemMiddle = styled_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: black;\n padding-bottom: 1rem;\n margin: 0.5rem;\n"], ["\n color: black;\n padding-bottom: 1rem;\n margin: 0.5rem;\n"])));
|
|
39
|
+
var StyledTimelineItemBottom = styled_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: grey;\n display: flex;\n margin: 0.5rem;\n"], ["\n color: grey;\n display: flex;\n margin: 0.5rem;\n"])));
|
|
40
|
+
var StyledTimelineTitle = styled_1.default(timeline_title_1.default, {
|
|
41
|
+
shouldForwardProp: function (prop) { return prop !== 'isMobile'; },
|
|
42
|
+
})(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n flex-grow: 1;\n color: black;\n font-size: ", ";\n font-weight: bold;\n"], ["\n flex-grow: 1;\n color: black;\n font-size: ", ";\n font-weight: bold;\n"])), function (_a) {
|
|
43
43
|
var isMobile = _a.isMobile;
|
|
44
44
|
return (isMobile ? 'medium' : 'large');
|
|
45
45
|
});
|
|
46
|
-
var
|
|
47
|
-
var StyledStatus = styled_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n text-align: right;\n"], ["\n text-align: right;\n"])));
|
|
46
|
+
var StyledTimelineDescription = styled_1.default(timeline_description_1.default)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n color: black;\n font-size: small;\n"], ["\n color: black;\n font-size: small;\n"])));
|
|
48
47
|
var TimelineItem = function (_a) {
|
|
49
48
|
var timelineItem = _a.timelineItem, domainResourceType = _a.domainResourceType;
|
|
50
49
|
var width = hooks_1.useWindowSize().width;
|
|
@@ -52,14 +51,14 @@ var TimelineItem = function (_a) {
|
|
|
52
51
|
if (!(timelineItem === null || timelineItem === void 0 ? void 0 : timelineItem.domainResource)) {
|
|
53
52
|
return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
|
|
54
53
|
}
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
jsx_runtime_1.
|
|
60
|
-
|
|
54
|
+
var domainResource = timelineItem.domainResource, buttonState = timelineItem.buttonState;
|
|
55
|
+
var itemKey = "timelineItem_" + domainResource.id;
|
|
56
|
+
return (jsx_runtime_1.jsxs(StyledTimelineItem, __assign({ isSelected: buttonState === 'selected-button' }, { children: [jsx_runtime_1.jsxs(StyledTimelineItemTop, { children: [jsx_runtime_1.jsx(StyledTimelineTitle, { isMobile: isMobile, domainResource: domainResource, domainResourceType: domainResourceType }, void 0),
|
|
57
|
+
isMobile && (jsx_runtime_1.jsx(StyledTimelineTime, { domainResource: timelineItem.domainResource, domainResourceType: domainResourceType }, void 0))] }, void 0),
|
|
58
|
+
jsx_runtime_1.jsx(StyledTimelineItemMiddle, { children: jsx_runtime_1.jsx(StyledTimelineDescription, { domainResource: timelineItem.domainResource, domainResourceType: domainResourceType }, void 0) }, void 0),
|
|
59
|
+
jsx_runtime_1.jsx(StyledTimelineItemBottom, { children: jsx_runtime_1.jsx(StyledTimelineAuthor, { domainResource: timelineItem.domainResource, domainResourceType: domainResourceType }, void 0) }, void 0),
|
|
61
60
|
jsx_runtime_1.jsx(timeline_button_1.default, { timelineItem: timelineItem }, void 0)] }), itemKey));
|
|
62
61
|
};
|
|
63
62
|
exports.default = TimelineItem;
|
|
64
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8
|
|
63
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
65
64
|
//# sourceMappingURL=timeline-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-item.js","sourceRoot":"","sources":["../../src/molecules/timeline-item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AACpC,6CAA2E;AAQ3E,2CAAiD;AACjD,2CAAgD;AAChD,uFAA+D;AAC/D,6EAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"timeline-item.js","sourceRoot":"","sources":["../../src/molecules/timeline-item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AACpC,6CAA2E;AAQ3E,2CAAiD;AACjD,2CAAgD;AAChD,uFAA+D;AAC/D,6EAAqD;AACrD,2EAAmD;AACnD,yEAAiD;AACjD,6EAAqD;AAErD,IAAM,kBAAkB,GAAG,gBAAM,CAAC,GAAG,0HAAqB,wBACpC,EAAgF,6BAErG,KAFqB,UAAC,EAAc;QAAZ,UAAU,gBAAA;IAAO,OAAA,CAAC,UAAU,CAAC,CAAC,CAAC,wBAAe,CAAC,KAAK,CAAC,CAAC,CAAC,8BAAqB,CAAC;AAA5D,CAA4D,CAErG,CAAA;AAED,IAAM,oBAAoB,GAAG,gBAAM,CAAC,yBAAc,CAAC,kHAAA,+CAGlD,IAAA,CAAA;AAED,IAAM,kBAAkB,GAAG,gBAAM,CAAC,uBAAY,CAAC,wFAAA,qBAE9C,IAAA,CAAA;AAED,IAAM,qBAAqB,GAAG,gBAAM,CAAC,GAAG,yJAAA,sFAKvC,IAAA,CAAA;AAED,IAAM,wBAAwB,GAAG,gBAAM,CAAC,GAAG,oIAAA,iEAI1C,IAAA,CAAA;AAED,IAAM,wBAAwB,GAAG,gBAAM,CAAC,GAAG,4HAAA,yDAI1C,IAAA,CAAA;AAED,IAAM,mBAAmB,GAAG,gBAAM,CAAC,wBAAa,EAAE;IAChD,iBAAiB,EAAE,UAAC,IAAI,IAAK,OAAA,IAAI,KAAK,UAAU,EAAnB,CAAmB;CACjD,CAAC,mJAAe,mDAGF,EAAiD,2BAE/D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;YAE3B,kBAAC,yBAAc,IAAC,YAAY,EAAE,YAAY,WAAI,MAvBwB,OAAO,CAwB1D,CACtB,CAAA;AACH,CAAC,CAAA;AAwBD,kBAAe,YAAY,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ltht-react/timeline",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.129",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Jonny Dyson",
|
|
6
6
|
"homepage": "",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@emotion/styled": "^11.0.0",
|
|
26
|
-
"@ltht-react/banner": "^1.0.
|
|
27
|
-
"@ltht-react/hooks": "^1.0.
|
|
28
|
-
"@ltht-react/icon": "^1.3.
|
|
29
|
-
"@ltht-react/styles": "^1.3.
|
|
30
|
-
"@ltht-react/types": "^1.0.
|
|
31
|
-
"@ltht-react/utils": "^1.1.
|
|
26
|
+
"@ltht-react/banner": "^1.0.114",
|
|
27
|
+
"@ltht-react/hooks": "^1.0.131",
|
|
28
|
+
"@ltht-react/icon": "^1.3.141",
|
|
29
|
+
"@ltht-react/styles": "^1.3.133",
|
|
30
|
+
"@ltht-react/types": "^1.0.137",
|
|
31
|
+
"@ltht-react/utils": "^1.1.139",
|
|
32
32
|
"react": "^17.0.0",
|
|
33
33
|
"react-html-parser": "^2.0.2"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "f9960819e923df9afa86f9e7f35cc407f148b155"
|
|
36
36
|
}
|