From 6826697bbff7e5b705d9f6df60ef2bf81e5e77ff Mon Sep 17 00:00:00 2001 From: John Coburn Date: Mon, 24 Feb 2025 10:57:31 -0600 Subject: [PATCH] STCOR-925 Expose usePreferences in top-level index (#1596) Implemented for use with [App-reordering](https://github.com/folio-org/stripes-core/pull/1584), now available for module level user preference needs... --- CHANGELOG.md | 1 + index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bbdfae5..15ecd940 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ * Change Help icon aria label to just Help in MainNav component. Refs STCOR-931. * *BREAKING* remove token-based authentication code. Refs STCOR-918. * *BREAKING* replace useSecureTokens conditionalsRefs STCOR-922. +* Expose `usePreferences` hook. Refs STCOR-925. * Set tenant context based on authentication response with overrideUser parameter on login (Eureka, ECS - Single tenant UX) STCOR-946. * Omit leading slash in paths passed to `ky` in `useModuleInfo`. Refs STCOR-949. * Added `location` to a hook in `` to fix comparing old `location` value. Fixes STCOR-950. diff --git a/index.js b/index.js index b546e54d..0f701efe 100644 --- a/index.js +++ b/index.js @@ -44,6 +44,7 @@ export { getUserTenantsPermissions } from './src/queries'; /* Hooks */ export { useUserTenantPermissions } from './src/hooks'; export { useModuleInfo } from './src/hooks'; +export { usePreferences } from './src/hooks'; /* misc */ export { supportedLocales } from './src/loginServices';