Skip to content

Commit

Permalink
STRIPES-965 support react-intl v7
Browse files Browse the repository at this point in the history
Extend `react-intl` support to `v7`, and provide a `formatjs-compile`
script to compile translations.

Refs STRIPES-965
  • Loading branch information
zburke committed Feb 12, 2025
1 parent 54b044a commit 903d9bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ yarn.lock
ModuleDescriptor.json
yarn-error.log
artifacts
translations/stripes-template-editor/compiled
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Change history for stripes-template-editor

## IN PROGRESS

* Only change `value` prop to `ReactQuill` if `DOMPurify` made changes. Refs STRIPES-953.
* Export `sanitize` function for module-level value sanitization. Refs STRIPES-953 also.
* Support `react-intl` `v7`, compile translations. Refs STRIPES-965.

## [3.4.1](https://github.com/folio-org/stripes-template-editor/tree/v3.4.1) (2024-11-13)
[Full Changelog](https://github.com/folio-org/stripes-template-editor/compare/v3.4.0...v3.4.1)
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
"main": "src/index.js",
"scripts": {
"start": "stripes serve",
"lint": "eslint ."
"lint": "eslint .",
"formatjs-compile": "stripes translate compile"
},
"devDependencies": {
"@folio/eslint-config-stripes": "^7.0.0",
"@folio/stripes": "^9.0.0"
"@folio/eslint-config-stripes": "^8.0.0",
"@folio/stripes": "^10.0.0",
"@folio/stripes-cli": "^4.0.0"
},
"dependencies": {
"dompurify": "^3.1.3",
Expand All @@ -28,9 +30,9 @@
"uuid": "^8.3.2"
},
"peerDependencies": {
"@folio/stripes": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
"@folio/stripes": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",
"react": "^17.0.2 || ^18.2.0",
"react-dom": "^17.0.2 || ^18.2.0",
"react-intl": "^5.7.0 || ^6.4.7"
"react-intl": "^5.7.0 || ^6.4.7 || ^7.1.5"
}
}

0 comments on commit 903d9bd

Please sign in to comment.