@availity/mui-authorize 0.1.6 → 0.1.8
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 +12 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/lib/Authorize.stories.tsx +1 -0
- package/src/lib/Authorize.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.1.8](https://github.com/Availity/element/compare/@availity/mui-authorize@0.1.7...@availity/mui-authorize@0.1.8) (2025-01-03)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-block-ui` updated to version `0.1.7`
|
|
10
|
+
## [0.1.7](https://github.com/Availity/element/compare/@availity/mui-authorize@0.1.6...@availity/mui-authorize@0.1.7) (2024-12-23)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **mui-authorize:** add note about where to find useauthorize hook ([e541f82](https://github.com/Availity/element/commit/e541f82f358cf6257b9c10bae2ad52282500a81c))
|
|
16
|
+
|
|
5
17
|
## [0.1.6](https://github.com/Availity/element/compare/@availity/mui-authorize@0.1.5...@availity/mui-authorize@0.1.6) (2024-12-09)
|
|
6
18
|
|
|
7
19
|
### Dependency Updates
|
package/dist/index.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ type AuthorizeProps = {
|
|
|
13
13
|
} & UseAuthorizeProps;
|
|
14
14
|
/** Component for showing content based on the user's permissions. Wrap this component around content you only want specific users to see.
|
|
15
15
|
*
|
|
16
|
-
* The `useAuthorize` hook utilizes [react-query](https://tanstack.com/query/v4/docs/framework/react/overview) to handle data fetching.
|
|
16
|
+
* The internal `useAuthorize` hook utilizes [react-query](https://tanstack.com/query/v4/docs/framework/react/overview) to handle data fetching.
|
|
17
17
|
* This means you must add a [QueryClientProvider](https://tanstack.com/query/v4/docs/framework/react/reference/QueryClientProvider)
|
|
18
18
|
* to your app if you do not already have one.
|
|
19
19
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ type AuthorizeProps = {
|
|
|
13
13
|
} & UseAuthorizeProps;
|
|
14
14
|
/** Component for showing content based on the user's permissions. Wrap this component around content you only want specific users to see.
|
|
15
15
|
*
|
|
16
|
-
* The `useAuthorize` hook utilizes [react-query](https://tanstack.com/query/v4/docs/framework/react/overview) to handle data fetching.
|
|
16
|
+
* The internal `useAuthorize` hook utilizes [react-query](https://tanstack.com/query/v4/docs/framework/react/overview) to handle data fetching.
|
|
17
17
|
* This means you must add a [QueryClientProvider](https://tanstack.com/query/v4/docs/framework/react/reference/QueryClientProvider)
|
|
18
18
|
* to your app if you do not already have one.
|
|
19
19
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-authorize",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Availity Authorize Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@availity/authorize": "^4.1.0",
|
|
36
|
-
"@availity/mui-block-ui": "^0.1.
|
|
36
|
+
"@availity/mui-block-ui": "^0.1.17",
|
|
37
37
|
"@tanstack/react-query": "^4.36.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -42,6 +42,7 @@ const meta: Meta<typeof Authorize> = {
|
|
|
42
42
|
|
|
43
43
|
export default meta;
|
|
44
44
|
|
|
45
|
+
/** _Demo is for the `Authorize` component. If the `useAuthorize` hook is directly needed it can be found in the [@availity/authorize](https://availity.github.io/availity-react/components/authorize/) package._ */
|
|
45
46
|
export const _Authorize: StoryObj<typeof Authorize> = {
|
|
46
47
|
render: ({children, unauthorized, ...args}: AuthorizeProps) => (
|
|
47
48
|
<div>
|
package/src/lib/Authorize.tsx
CHANGED
|
@@ -18,7 +18,7 @@ export type AuthorizeProps = {
|
|
|
18
18
|
|
|
19
19
|
/** Component for showing content based on the user's permissions. Wrap this component around content you only want specific users to see.
|
|
20
20
|
*
|
|
21
|
-
* The `useAuthorize` hook utilizes [react-query](https://tanstack.com/query/v4/docs/framework/react/overview) to handle data fetching.
|
|
21
|
+
* The internal `useAuthorize` hook utilizes [react-query](https://tanstack.com/query/v4/docs/framework/react/overview) to handle data fetching.
|
|
22
22
|
* This means you must add a [QueryClientProvider](https://tanstack.com/query/v4/docs/framework/react/reference/QueryClientProvider)
|
|
23
23
|
* to your app if you do not already have one.
|
|
24
24
|
*
|