@dhis2/analytics 24.2.6 → 24.2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [24.2.7](https://github.com/dhis2/analytics/compare/v24.2.6...v24.2.7) (2022-10-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * parse markdown in description DHIS2-13911 ([#1358](https://github.com/dhis2/analytics/issues/1358)) ([1606319](https://github.com/dhis2/analytics/commit/16063192c747fbf67e6b5f9fadcd3b1d19f00ef0))
7
+
1
8
  ## [24.2.6](https://github.com/dhis2/analytics/compare/v24.2.5...v24.2.6) (2022-10-11)
2
9
 
3
10
 
@@ -11,6 +11,8 @@ var _appRuntime = require("@dhis2/app-runtime");
11
11
 
12
12
  var _d2I18n = _interopRequireDefault(require("@dhis2/d2-i18n"));
13
13
 
14
+ var _d2UiRichText = require("@dhis2/d2-ui-rich-text");
15
+
14
16
  var _ui = require("@dhis2/ui");
15
17
 
16
18
  var _classnames = _interopRequireDefault(require("classnames"));
@@ -181,7 +183,7 @@ const AboutAOUnit = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
181
183
  className: "jsx-".concat(_AboutAOUnitStyle.default.__hash) + " " + ((0, _classnames.default)('detailLine', {
182
184
  noDescription: !data.ao.displayDescription
183
185
  }) || "")
184
- }, data.ao.displayDescription ? data.ao.displayDescription : _d2I18n.default.t('No description')), /*#__PURE__*/_react.default.createElement("div", {
186
+ }, data.ao.displayDescription ? /*#__PURE__*/_react.default.createElement(_d2UiRichText.Parser, null, data.ao.displayDescription) : _d2I18n.default.t('No description')), /*#__PURE__*/_react.default.createElement("div", {
185
187
  className: "jsx-".concat(_AboutAOUnitStyle.default.__hash)
186
188
  }, /*#__PURE__*/_react.default.createElement("p", {
187
189
  className: "jsx-".concat(_AboutAOUnitStyle.default.__hash) + " " + "detailLine"
@@ -1,6 +1,7 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
2
  import { useDataQuery, useDataMutation } from '@dhis2/app-runtime';
3
3
  import i18n from '@dhis2/d2-i18n';
4
+ import { Parser as RichTextParser } from '@dhis2/d2-ui-rich-text';
4
5
  import { Button, CircularLoader, IconChevronDown24, IconChevronUp24, IconClock16, IconShare16, IconSubscribe24, IconSubscribeOff24, IconUser16, IconView16, colors } from '@dhis2/ui';
5
6
  import cx from 'classnames';
6
7
  import moment from 'moment';
@@ -157,7 +158,7 @@ const AboutAOUnit = /*#__PURE__*/forwardRef((_ref3, ref) => {
157
158
  className: "jsx-".concat(styles.__hash) + " " + (cx('detailLine', {
158
159
  noDescription: !data.ao.displayDescription
159
160
  }) || "")
160
- }, data.ao.displayDescription ? data.ao.displayDescription : i18n.t('No description')), /*#__PURE__*/React.createElement("div", {
161
+ }, data.ao.displayDescription ? /*#__PURE__*/React.createElement(RichTextParser, null, data.ao.displayDescription) : i18n.t('No description')), /*#__PURE__*/React.createElement("div", {
161
162
  className: "jsx-".concat(styles.__hash)
162
163
  }, /*#__PURE__*/React.createElement("p", {
163
164
  className: "jsx-".concat(styles.__hash) + " " + "detailLine"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "24.2.6",
3
+ "version": "24.2.7",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {