@ltht-react/timeline 1.0.12 → 1.0.20

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/CHANGELOG.md CHANGED
@@ -3,6 +3,70 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.0.20 (2021-12-02)
7
+
8
+ **Note:** Version bump only for package @ltht-react/timeline
9
+
10
+
11
+
12
+
13
+
14
+ ## 1.0.19 (2021-12-02)
15
+
16
+ **Note:** Version bump only for package @ltht-react/timeline
17
+
18
+
19
+
20
+
21
+
22
+ ## 1.0.18 (2021-12-01)
23
+
24
+ **Note:** Version bump only for package @ltht-react/timeline
25
+
26
+
27
+
28
+
29
+
30
+ ## 1.0.17 (2021-11-24)
31
+
32
+ **Note:** Version bump only for package @ltht-react/timeline
33
+
34
+
35
+
36
+
37
+
38
+ ## 1.0.16 (2021-11-24)
39
+
40
+ **Note:** Version bump only for package @ltht-react/timeline
41
+
42
+
43
+
44
+
45
+
46
+ ## 1.0.15 (2021-11-24)
47
+
48
+ **Note:** Version bump only for package @ltht-react/timeline
49
+
50
+
51
+
52
+
53
+
54
+ ## 1.0.14 (2021-11-23)
55
+
56
+ **Note:** Version bump only for package @ltht-react/timeline
57
+
58
+
59
+
60
+
61
+
62
+ ## 1.0.13 (2021-10-22)
63
+
64
+ **Note:** Version bump only for package @ltht-react/timeline
65
+
66
+
67
+
68
+
69
+
6
70
  ## 1.0.12 (2021-10-19)
7
71
 
8
72
  **Note:** Version bump only for package @ltht-react/timeline
package/README.md CHANGED
@@ -2,18 +2,18 @@
2
2
 
3
3
  ### Import
4
4
 
5
- <!-- ```js
6
- import AllergySummary from '@ltht-react/allergy-summary'
7
- ``` -->
5
+ ```js
6
+ import Timeline from '@ltht-react/timeline'
7
+ ```
8
8
 
9
9
  ### Usage
10
10
 
11
11
  ```jsx
12
- <Timeline />
12
+ <Timeline auditTrail={auditTrail} />
13
13
  ```
14
14
 
15
15
  ### Properties
16
16
 
17
- | Prop | Required | Default | Type | Description |
18
- | :--------- | :------- | :------ | :--- | :----------------- |
19
- | `timeline` | Yes | | TBD | Timeline of events |
17
+ | Prop | Required | Default | Type | Description |
18
+ | :----------- | :------- | :------ | :-------------------- | :----------------- |
19
+ | `auditTrail` | Yes | | `Maybe<AuditEvent>[]` | Timeline of events |
@@ -6,7 +6,7 @@ var TimelineTitle = function (_a) {
6
6
  var audit = _a.audit;
7
7
  if (!audit)
8
8
  return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}, void 0);
9
- var title = (_b = audit.text) === null || _b === void 0 ? void 0 : _b.text;
9
+ var title = audit.metadata.isRedacted ? 'Insufficient privileges' : (_b = audit.text) === null || _b === void 0 ? void 0 : _b.text;
10
10
  return jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: title }, void 0);
11
11
  };
12
12
  exports.default = TimelineTitle;
@@ -1 +1 @@
1
- {"version":3,"file":"timeline-title.js","sourceRoot":"","sources":["../../src/atoms/timeline-title.tsx"],"names":[],"mappings":";;;AAGA,IAAM,aAAa,GAAc,UAAC,EAAS;;QAAP,KAAK,WAAA;IACvC,IAAI,CAAC,KAAK;QAAE,OAAO,qDAAK,CAAA;IAExB,IAAM,KAAK,GAAG,MAAA,KAAK,CAAC,IAAI,0CAAE,IAAI,CAAA;IAC9B,OAAO,sDAAG,KAAK,WAAI,CAAA;AACrB,CAAC,CAAA;AAMD,kBAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"timeline-title.js","sourceRoot":"","sources":["../../src/atoms/timeline-title.tsx"],"names":[],"mappings":";;;AAGA,IAAM,aAAa,GAAc,UAAC,EAAS;;QAAP,KAAK,WAAA;IACvC,IAAI,CAAC,KAAK;QAAE,OAAO,qDAAK,CAAA;IAExB,IAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAA,KAAK,CAAC,IAAI,0CAAE,IAAI,CAAA;IACtF,OAAO,sDAAG,KAAK,WAAI,CAAA;AACrB,CAAC,CAAA;AAMD,kBAAe,aAAa,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ltht-react/timeline",
3
- "version": "1.0.12",
3
+ "version": "1.0.20",
4
4
  "description": "> TODO: description",
5
5
  "author": "Jonny Dyson",
6
6
  "homepage": "",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@emotion/styled": "^11.0.0",
26
- "@ltht-react/hooks": "^1.0.14",
27
- "@ltht-react/icon": "^1.3.24",
28
- "@ltht-react/styles": "^1.3.16",
29
- "@ltht-react/types": "^1.0.20",
30
- "@ltht-react/utils": "^1.1.22",
26
+ "@ltht-react/hooks": "^1.0.22",
27
+ "@ltht-react/icon": "^1.3.32",
28
+ "@ltht-react/styles": "^1.3.24",
29
+ "@ltht-react/types": "^1.0.28",
30
+ "@ltht-react/utils": "^1.1.30",
31
31
  "react": "^17.0.0",
32
32
  "react-html-parser": "^2.0.2"
33
33
  },
34
- "gitHead": "63224ec2ecf70816b1e748e5469b4e8c6bc0205d"
34
+ "gitHead": "0b4f28aa150c065034eb1ca38cc7f83665ef672f"
35
35
  }