Skip to content

Commit

Permalink
Merge branch 'master' into UXPROD-4559-ECS
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-blazhko committed Nov 13, 2024
2 parents 00c99c1 + ef2e8b4 commit 1cab325
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Change history for ui-circulation

## IN PROGRESS
## 10.0.0 IN PROGRESS
* Move TLR enable settings to Circulation > General. Refs UICIRC-1038.
* Create a new setting - Enable ECS title level requests. Refs UICIRC-1040.
* Add view permissions for Circulation settings. Refs UICIRC-1056.
* Fix DOMPurify import. Refs UICIRC-1122.

## [9.2.0](https://github.com/folio-org/ui-circulation/tree/v9.2.0) (2024-10-30)
[Full Changelog](https://github.com/folio-org/ui-circulation/compare/v9.1.0...v9.2.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@folio/circulation",
"version": "9.2.0",
"version": "10.0.0",
"description": "Circulation manager",
"repository": "folio-org/ui-circulation",
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import HtmlToReact, { Parser } from 'html-to-react';
import { sanitize } from 'dompurify';
import DOMPurify from 'dompurify';

import {
Button,
Expand All @@ -27,7 +27,7 @@ const PatronNoticeEmailSection = ({ notice, locale, emailTemplate }) => {
}
];
const tokens = getTokens(locale);
const purifyEmailTemplate = sanitize(emailTemplate);
const purifyEmailTemplate = DOMPurify.sanitize(emailTemplate);
const parsedEmailTemplate = parser.parseWithInstructions(purifyEmailTemplate, () => true, rules);
const [openPreview, setOpenPreview] = useState(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
injectIntl,
} from 'react-intl';
import HtmlToReact, { Parser } from 'html-to-react';
import { sanitize } from 'dompurify';
import DOMPurify from 'dompurify';

import {
Button,
Expand Down Expand Up @@ -36,7 +36,7 @@ const StaffSlipTemplateContentSection = ({ intl, staffSlip }) => {
},
];
const parser = new Parser();
const purifyTemplate = sanitize(template);
const purifyTemplate = DOMPurify.sanitize(template);
const parsedEmailTemplate = parser.parseWithInstructions(purifyTemplate, () => true, rules);
const [openPreview, setOpenPreview] = useState(false);
const togglePreviewDialog = () => {
Expand Down

0 comments on commit 1cab325

Please sign in to comment.