From 4d312c4df12659805aa1decc8daeb98f85e27ce0 Mon Sep 17 00:00:00 2001 From: Yury Saukou Date: Mon, 19 Jun 2023 09:29:29 +0400 Subject: [PATCH] Expose ``, `` and `` components for reuse (#2491) --- CHANGELOG.md | 1 + index.js | 7 +++++++ package.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 index.js diff --git a/CHANGELOG.md b/CHANGELOG.md index df7e82745..c939b1f26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ * In loan history, older staff notes should NOT be marked as "SUPERSEDED". Fixes UIU-2891. * Users with view-only access to user permissions and access to edit user records get error message when saving a user record. Refs UIU-2885. * Use new WSAPI for adding patron/staff notes to loans. Fixes UIU-2893. **Note.** The new requirement of the `add-info` interface is a breaking change. +* Expose ``, `` and `` components for reuse. Refs UIU-2896. ## [9.0.0](https://github.com/folio-org/ui-users/tree/v9.0.0) (2023-02-20) [Full Changelog](https://github.com/folio-org/ui-users/compare/v8.1.0...v9.0.0) diff --git a/index.js b/index.js new file mode 100644 index 000000000..a37fa3691 --- /dev/null +++ b/index.js @@ -0,0 +1,7 @@ +// app root +export { default } from './src'; + +// components +export { default as RenderPermissions } from './src/components/RenderPermissions'; +export { default as PermissionSetDetails } from './src/settings/permissions/PermissionSetDetails'; +export { default as PermissionSetForm } from './src/settings/permissions/PermissionSetForm'; diff --git a/package.json b/package.json index ae04170b9..5a217e25e 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "engines": { "node": ">=14.0.0" }, - "main": "src/index.js", + "main": "index.js", "stripes": { "actsAs": [ "app",