@dhis2/analytics 24.10.2 → 24.10.3

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
@@ -1,3 +1,10 @@
1
+ ## [24.10.3](https://github.com/dhis2/analytics/compare/v24.10.2...v24.10.3) (2024-03-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * show correct date and time in About AO Unit [DHIS2-15825, DHIS2-16365] [24.x] ([#1642](https://github.com/dhis2/analytics/issues/1642)) ([1c9068c](https://github.com/dhis2/analytics/commit/1c9068c9d153798ccbd61f6b916c1ee94ec122f8))
7
+
1
8
  ## [24.10.2](https://github.com/dhis2/analytics/compare/v24.10.1...v24.10.2) (2023-10-25)
2
9
 
3
10
 
@@ -81,6 +81,9 @@ const AboutAOUnit = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
81
81
  renderId
82
82
  } = _ref3;
83
83
  const [isExpanded, setIsExpanded] = (0, _react.useState)(true);
84
+ const {
85
+ fromServerDate
86
+ } = (0, _appRuntime.useTimeZoneConversion)();
84
87
  const queries = (0, _react.useMemo)(() => getQueries(type), [type]);
85
88
  const {
86
89
  data,
@@ -194,16 +197,16 @@ const AboutAOUnit = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
194
197
  }, /*#__PURE__*/_react.default.createElement(_ui.IconClock16, {
195
198
  color: _ui.colors.grey700
196
199
  }), _d2I18n.default.t('Last updated {{time}}', {
197
- time: (0, _moment.default)(data.ao.lastUpdated).fromNow()
200
+ time: (0, _moment.default)(fromServerDate(data.ao.lastUpdated)).fromNow()
198
201
  })), /*#__PURE__*/_react.default.createElement("p", {
199
202
  className: "jsx-".concat(_AboutAOUnitStyle.default.__hash) + " " + "detailLine"
200
203
  }, /*#__PURE__*/_react.default.createElement(_ui.IconUser16, {
201
204
  color: _ui.colors.grey700
202
205
  }), (_data$ao$createdBy = data.ao.createdBy) !== null && _data$ao$createdBy !== void 0 && _data$ao$createdBy.displayName ? _d2I18n.default.t('Created {{time}} by {{author}}', {
203
- time: (0, _moment.default)(data.ao.created).fromNow(),
206
+ time: (0, _moment.default)(fromServerDate(data.ao.created)).fromNow(),
204
207
  author: data.ao.createdBy.displayName
205
208
  }) : _d2I18n.default.t('Created {{time}}', {
206
- time: (0, _moment.default)(data.ao.created).fromNow()
209
+ time: (0, _moment.default)(fromServerDate(data.ao.created)).fromNow()
207
210
  })), /*#__PURE__*/_react.default.createElement("p", {
208
211
  className: "jsx-".concat(_AboutAOUnitStyle.default.__hash) + " " + "detailLine"
209
212
  }, /*#__PURE__*/_react.default.createElement(_ui.IconView16, {
@@ -7,6 +7,8 @@ exports.InterpretationThread = void 0;
7
7
 
8
8
  var _style = _interopRequireDefault(require("styled-jsx/style"));
9
9
 
10
+ var _appRuntime = require("@dhis2/app-runtime");
11
+
10
12
  var _ui = require("@dhis2/ui");
11
13
 
12
14
  var _classnames = _interopRequireDefault(require("classnames"));
@@ -39,6 +41,9 @@ const InterpretationThread = _ref => {
39
41
  onThreadUpdated,
40
42
  downloadMenuComponent: DownloadMenu
41
43
  } = _ref;
44
+ const {
45
+ fromServerDate
46
+ } = (0, _appRuntime.useTimeZoneConversion)();
42
47
  const focusRef = (0, _react.useRef)();
43
48
  (0, _react.useEffect)(() => {
44
49
  if (initialFocus && focusRef.current) {
@@ -57,7 +62,7 @@ const InterpretationThread = _ref => {
57
62
  className: "jsx-615306698" + " " + 'title'
58
63
  }, /*#__PURE__*/_react.default.createElement(_ui.IconClock16, {
59
64
  color: _ui.colors.grey700
60
- }), (0, _moment.default)(interpretation.created).format('LLL')), DownloadMenu && /*#__PURE__*/_react.default.createElement(DownloadMenu, {
65
+ }), (0, _moment.default)(fromServerDate(interpretation.created)).format('LLL')), DownloadMenu && /*#__PURE__*/_react.default.createElement(DownloadMenu, {
61
66
  relativePeriodDate: interpretation.created,
62
67
  className: "jsx-615306698"
63
68
  }), /*#__PURE__*/_react.default.createElement("div", {
@@ -7,6 +7,8 @@ exports.InterpretationList = void 0;
7
7
 
8
8
  var _style = _interopRequireDefault(require("styled-jsx/style"));
9
9
 
10
+ var _appRuntime = require("@dhis2/app-runtime");
11
+
10
12
  var _ui = require("@dhis2/ui");
11
13
 
12
14
  var _moment = _interopRequireDefault(require("moment"));
@@ -43,6 +45,9 @@ const InterpretationList = _ref => {
43
45
  refresh,
44
46
  disabled
45
47
  } = _ref;
48
+ const {
49
+ fromServerDate
50
+ } = (0, _appRuntime.useTimeZoneConversion)();
46
51
  const interpretationsByDate = interpretations.reduce((groupedInterpretations, interpretation) => {
47
52
  const date = interpretation.created.split('T')[0];
48
53
 
@@ -67,7 +72,7 @@ const InterpretationList = _ref => {
67
72
  }), /*#__PURE__*/_react.default.createElement("time", {
68
73
  dateTime: date,
69
74
  className: _style.default.dynamic([["4058400613", [_ui.spacers.dp8, _ui.spacers.dp8, _ui.spacers.dp16, _ui.colors.grey800, _ui.spacers.dp12, _ui.spacers.dp12, _ui.spacers.dp32, _ui.spacers.dp4]]]) + " " + "date-header"
70
- }, (0, _moment.default)(date).format('ll'))), /*#__PURE__*/_react.default.createElement("ol", {
75
+ }, (0, _moment.default)(fromServerDate(date)).format('ll'))), /*#__PURE__*/_react.default.createElement("ol", {
71
76
  className: _style.default.dynamic([["4058400613", [_ui.spacers.dp8, _ui.spacers.dp8, _ui.spacers.dp16, _ui.colors.grey800, _ui.spacers.dp12, _ui.spacers.dp12, _ui.spacers.dp32, _ui.spacers.dp4]]]) + " " + "interpretation-list"
72
77
  }, interpretationsByDate[date].sort(sortByCreatedDateDesc).map(interpretation => /*#__PURE__*/_react.default.createElement(_index.Interpretation, {
73
78
  key: interpretation.id,
@@ -7,6 +7,8 @@ exports.Message = void 0;
7
7
 
8
8
  var _style = _interopRequireDefault(require("styled-jsx/style"));
9
9
 
10
+ var _appRuntime = require("@dhis2/app-runtime");
11
+
10
12
  var _d2UiRichText = require("@dhis2/d2-ui-rich-text");
11
13
 
12
14
  var _ui = require("@dhis2/ui");
@@ -26,24 +28,27 @@ const Message = _ref => {
26
28
  created,
27
29
  username
28
30
  } = _ref;
31
+ const {
32
+ fromServerDate
33
+ } = (0, _appRuntime.useTimeZoneConversion)();
29
34
  return /*#__PURE__*/_react.default.createElement("li", {
30
- className: _style.default.dynamic([["2436588813", [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]]]) + " " + "container"
35
+ className: _style.default.dynamic([["4031345705", [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]]]) + " " + "container"
31
36
  }, /*#__PURE__*/_react.default.createElement("div", {
32
- className: _style.default.dynamic([["2436588813", [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]]]) + " " + "header"
37
+ className: _style.default.dynamic([["4031345705", [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]]]) + " " + "header"
33
38
  }, /*#__PURE__*/_react.default.createElement(_ui.UserAvatar, {
34
39
  name: username,
35
40
  extrasmall: true
36
41
  }), username, /*#__PURE__*/_react.default.createElement("time", {
37
42
  dateTime: created,
38
- className: _style.default.dynamic([["2436588813", [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]]])
39
- }, (0, _moment.default)(created).format('lll'))), /*#__PURE__*/_react.default.createElement("div", {
40
- className: _style.default.dynamic([["2436588813", [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]]]) + " " + "content"
43
+ className: _style.default.dynamic([["4031345705", [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]]])
44
+ }, (0, _moment.default)(fromServerDate(created)).format('lll'))), /*#__PURE__*/_react.default.createElement("div", {
45
+ className: _style.default.dynamic([["4031345705", [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]]]) + " " + "content"
41
46
  }, /*#__PURE__*/_react.default.createElement(_d2UiRichText.Parser, null, text)), /*#__PURE__*/_react.default.createElement("div", {
42
- className: _style.default.dynamic([["2436588813", [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]]]) + " " + "footer"
47
+ className: _style.default.dynamic([["4031345705", [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]]]) + " " + "footer"
43
48
  }, children), /*#__PURE__*/_react.default.createElement(_style.default, {
44
- id: "2436588813",
49
+ id: "4031345705",
45
50
  dynamic: [_ui.spacers.dp8, _ui.colors.grey100, _ui.spacers.dp8, _ui.colors.grey900, _ui.colors.grey600, _ui.colors.grey900, _ui.spacers.dp8]
46
- }, [".container.__jsx-style-dynamic-selector{padding:".concat(_ui.spacers.dp8, ";background-color:").concat(_ui.colors.grey100, ";border-radius:5px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:").concat(_ui.spacers.dp8, ";}"), ".header.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:6px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:13px;line-height:16px;color:".concat(_ui.colors.grey900, ";}"), ".header.__jsx-style-dynamic-selector time.__jsx-style-dynamic-selector{font-size:12px;color:".concat(_ui.colors.grey600, ";}"), ".content.__jsx-style-dynamic-selector{font-size:14px;line-height:19px;color:".concat(_ui.colors.grey900, ";}"), ".content.__jsx-style-dynamic-selector p:first-child{margin:0;}", ".footer.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:".concat(_ui.spacers.dp8, ";}")]));
51
+ }, [".container.__jsx-style-dynamic-selector{padding:".concat(_ui.spacers.dp8, ";background-color:").concat(_ui.colors.grey100, ";border-radius:5px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:").concat(_ui.spacers.dp8, ";}"), ".header.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:6px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:13px;line-height:16px;color:".concat(_ui.colors.grey900, ";}"), ".header.__jsx-style-dynamic-selector time.__jsx-style-dynamic-selector{font-size:12px;color:".concat(_ui.colors.grey600, ";}"), ".content.__jsx-style-dynamic-selector{font-size:14px;line-height:19px;color:".concat(_ui.colors.grey900, ";word-break:break-word;white-space:pre-line;}"), ".content.__jsx-style-dynamic-selector p:first-child{margin:0;}", ".footer.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:".concat(_ui.spacers.dp8, ";}")]));
47
52
  };
48
53
 
49
54
  exports.Message = Message;
@@ -1,5 +1,5 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
- import { useDataQuery, useDataMutation } from '@dhis2/app-runtime';
2
+ import { useDataQuery, useDataMutation, useTimeZoneConversion } from '@dhis2/app-runtime';
3
3
  import i18n from '@dhis2/d2-i18n';
4
4
  import { Parser as RichTextParser } from '@dhis2/d2-ui-rich-text';
5
5
  import { Button, CircularLoader, IconChevronDown24, IconChevronUp24, IconClock16, IconShare16, IconSubscribe24, IconSubscribeOff24, IconUser16, IconView16, colors } from '@dhis2/ui';
@@ -56,6 +56,9 @@ const AboutAOUnit = /*#__PURE__*/forwardRef((_ref3, ref) => {
56
56
  renderId
57
57
  } = _ref3;
58
58
  const [isExpanded, setIsExpanded] = useState(true);
59
+ const {
60
+ fromServerDate
61
+ } = useTimeZoneConversion();
59
62
  const queries = useMemo(() => getQueries(type), [type]);
60
63
  const {
61
64
  data,
@@ -169,16 +172,16 @@ const AboutAOUnit = /*#__PURE__*/forwardRef((_ref3, ref) => {
169
172
  }, /*#__PURE__*/React.createElement(IconClock16, {
170
173
  color: colors.grey700
171
174
  }), i18n.t('Last updated {{time}}', {
172
- time: moment(data.ao.lastUpdated).fromNow()
175
+ time: moment(fromServerDate(data.ao.lastUpdated)).fromNow()
173
176
  })), /*#__PURE__*/React.createElement("p", {
174
177
  className: "jsx-".concat(styles.__hash) + " " + "detailLine"
175
178
  }, /*#__PURE__*/React.createElement(IconUser16, {
176
179
  color: colors.grey700
177
180
  }), (_data$ao$createdBy = data.ao.createdBy) !== null && _data$ao$createdBy !== void 0 && _data$ao$createdBy.displayName ? i18n.t('Created {{time}} by {{author}}', {
178
- time: moment(data.ao.created).fromNow(),
181
+ time: moment(fromServerDate(data.ao.created)).fromNow(),
179
182
  author: data.ao.createdBy.displayName
180
183
  }) : i18n.t('Created {{time}}', {
181
- time: moment(data.ao.created).fromNow()
184
+ time: moment(fromServerDate(data.ao.created)).fromNow()
182
185
  })), /*#__PURE__*/React.createElement("p", {
183
186
  className: "jsx-".concat(styles.__hash) + " " + "detailLine"
184
187
  }, /*#__PURE__*/React.createElement(IconView16, {
@@ -1,4 +1,5 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
+ import { useTimeZoneConversion } from '@dhis2/app-runtime';
2
3
  import { IconClock16, colors } from '@dhis2/ui';
3
4
  import cx from 'classnames';
4
5
  import moment from 'moment';
@@ -18,6 +19,9 @@ const InterpretationThread = _ref => {
18
19
  onThreadUpdated,
19
20
  downloadMenuComponent: DownloadMenu
20
21
  } = _ref;
22
+ const {
23
+ fromServerDate
24
+ } = useTimeZoneConversion();
21
25
  const focusRef = useRef();
22
26
  useEffect(() => {
23
27
  if (initialFocus && focusRef.current) {
@@ -36,7 +40,7 @@ const InterpretationThread = _ref => {
36
40
  className: "jsx-615306698" + " " + 'title'
37
41
  }, /*#__PURE__*/React.createElement(IconClock16, {
38
42
  color: colors.grey700
39
- }), moment(interpretation.created).format('LLL')), DownloadMenu && /*#__PURE__*/React.createElement(DownloadMenu, {
43
+ }), moment(fromServerDate(interpretation.created)).format('LLL')), DownloadMenu && /*#__PURE__*/React.createElement(DownloadMenu, {
40
44
  relativePeriodDate: interpretation.created,
41
45
  className: "jsx-615306698"
42
46
  }), /*#__PURE__*/React.createElement("div", {
@@ -1,4 +1,5 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
+ import { useTimeZoneConversion } from '@dhis2/app-runtime';
2
3
  import { IconCalendar24, colors, spacers } from '@dhis2/ui';
3
4
  import moment from 'moment';
4
5
  import PropTypes from 'prop-types';
@@ -29,6 +30,9 @@ export const InterpretationList = _ref => {
29
30
  refresh,
30
31
  disabled
31
32
  } = _ref;
33
+ const {
34
+ fromServerDate
35
+ } = useTimeZoneConversion();
32
36
  const interpretationsByDate = interpretations.reduce((groupedInterpretations, interpretation) => {
33
37
  const date = interpretation.created.split('T')[0];
34
38
 
@@ -53,7 +57,7 @@ export const InterpretationList = _ref => {
53
57
  }), /*#__PURE__*/React.createElement("time", {
54
58
  dateTime: date,
55
59
  className: _JSXStyle.dynamic([["4058400613", [spacers.dp8, spacers.dp8, spacers.dp16, colors.grey800, spacers.dp12, spacers.dp12, spacers.dp32, spacers.dp4]]]) + " " + "date-header"
56
- }, moment(date).format('ll'))), /*#__PURE__*/React.createElement("ol", {
60
+ }, moment(fromServerDate(date)).format('ll'))), /*#__PURE__*/React.createElement("ol", {
57
61
  className: _JSXStyle.dynamic([["4058400613", [spacers.dp8, spacers.dp8, spacers.dp16, colors.grey800, spacers.dp12, spacers.dp12, spacers.dp32, spacers.dp4]]]) + " " + "interpretation-list"
58
62
  }, interpretationsByDate[date].sort(sortByCreatedDateDesc).map(interpretation => /*#__PURE__*/React.createElement(Interpretation, {
59
63
  key: interpretation.id,
@@ -1,4 +1,5 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
+ import { useTimeZoneConversion } from '@dhis2/app-runtime';
2
3
  import { Parser as RichTextParser } from '@dhis2/d2-ui-rich-text';
3
4
  import { UserAvatar, spacers, colors } from '@dhis2/ui';
4
5
  import moment from 'moment';
@@ -12,24 +13,27 @@ const Message = _ref => {
12
13
  created,
13
14
  username
14
15
  } = _ref;
16
+ const {
17
+ fromServerDate
18
+ } = useTimeZoneConversion();
15
19
  return /*#__PURE__*/React.createElement("li", {
16
- className: _JSXStyle.dynamic([["2436588813", [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]]]) + " " + "container"
20
+ className: _JSXStyle.dynamic([["4031345705", [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]]]) + " " + "container"
17
21
  }, /*#__PURE__*/React.createElement("div", {
18
- className: _JSXStyle.dynamic([["2436588813", [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]]]) + " " + "header"
22
+ className: _JSXStyle.dynamic([["4031345705", [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]]]) + " " + "header"
19
23
  }, /*#__PURE__*/React.createElement(UserAvatar, {
20
24
  name: username,
21
25
  extrasmall: true
22
26
  }), username, /*#__PURE__*/React.createElement("time", {
23
27
  dateTime: created,
24
- className: _JSXStyle.dynamic([["2436588813", [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]]])
25
- }, moment(created).format('lll'))), /*#__PURE__*/React.createElement("div", {
26
- className: _JSXStyle.dynamic([["2436588813", [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]]]) + " " + "content"
28
+ className: _JSXStyle.dynamic([["4031345705", [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]]])
29
+ }, moment(fromServerDate(created)).format('lll'))), /*#__PURE__*/React.createElement("div", {
30
+ className: _JSXStyle.dynamic([["4031345705", [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]]]) + " " + "content"
27
31
  }, /*#__PURE__*/React.createElement(RichTextParser, null, text)), /*#__PURE__*/React.createElement("div", {
28
- className: _JSXStyle.dynamic([["2436588813", [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]]]) + " " + "footer"
32
+ className: _JSXStyle.dynamic([["4031345705", [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]]]) + " " + "footer"
29
33
  }, children), /*#__PURE__*/React.createElement(_JSXStyle, {
30
- id: "2436588813",
34
+ id: "4031345705",
31
35
  dynamic: [spacers.dp8, colors.grey100, spacers.dp8, colors.grey900, colors.grey600, colors.grey900, spacers.dp8]
32
- }, [".container.__jsx-style-dynamic-selector{padding:".concat(spacers.dp8, ";background-color:").concat(colors.grey100, ";border-radius:5px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:").concat(spacers.dp8, ";}"), ".header.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:6px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:13px;line-height:16px;color:".concat(colors.grey900, ";}"), ".header.__jsx-style-dynamic-selector time.__jsx-style-dynamic-selector{font-size:12px;color:".concat(colors.grey600, ";}"), ".content.__jsx-style-dynamic-selector{font-size:14px;line-height:19px;color:".concat(colors.grey900, ";}"), ".content.__jsx-style-dynamic-selector p:first-child{margin:0;}", ".footer.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:".concat(spacers.dp8, ";}")]));
36
+ }, [".container.__jsx-style-dynamic-selector{padding:".concat(spacers.dp8, ";background-color:").concat(colors.grey100, ";border-radius:5px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:").concat(spacers.dp8, ";}"), ".header.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:6px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:13px;line-height:16px;color:".concat(colors.grey900, ";}"), ".header.__jsx-style-dynamic-selector time.__jsx-style-dynamic-selector{font-size:12px;color:".concat(colors.grey600, ";}"), ".content.__jsx-style-dynamic-selector{font-size:14px;line-height:19px;color:".concat(colors.grey900, ";word-break:break-word;white-space:pre-line;}"), ".content.__jsx-style-dynamic-selector p:first-child{margin:0;}", ".footer.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:".concat(spacers.dp8, ";}")]));
33
37
  };
34
38
 
35
39
  Message.propTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "24.10.2",
3
+ "version": "24.10.3",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {