@availity/mui-authorize 1.0.11 → 2.0.1
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 +21 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/introduction.mdx +1 -2
- package/package.json +7 -7
- package/src/lib/Authorize.stories.tsx +2 -2
- package/src/lib/Authorize.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [2.0.1](https://github.com/Availity/element/compare/@availity/mui-authorize@2.0.0...@availity/mui-authorize@2.0.1) (2025-12-03)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-block-ui` updated to version `2.0.0`
|
|
10
|
+
## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-authorize@1.0.11...@availity/mui-authorize@2.0.0) (2025-11-17)
|
|
11
|
+
|
|
12
|
+
### Dependency Updates
|
|
13
|
+
|
|
14
|
+
* `mui-block-ui` updated to version `1.0.11`
|
|
15
|
+
|
|
16
|
+
### ⚠ BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
* @mui/material upgraded to v7
|
|
19
|
+
* @mui/x-* upgraded to v8
|
|
20
|
+
* react upgraded to v19
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
|
|
25
|
+
|
|
5
26
|
## [1.0.11](https://github.com/Availity/element/compare/@availity/mui-authorize@1.0.10...@availity/mui-authorize@1.0.11) (2025-10-30)
|
|
6
27
|
|
|
7
28
|
### Dependency Updates
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { UseAuthorizeProps } from '@availity/authorize';
|
|
3
3
|
|
|
4
4
|
type AuthorizeProps = {
|
|
@@ -22,6 +22,6 @@ type AuthorizeProps = {
|
|
|
22
22
|
* `staleTime`. The first option sets whether the to refetch the query when the window is focused, and
|
|
23
23
|
* the other is the default marker for how long the query is valid.
|
|
24
24
|
*/
|
|
25
|
-
declare const Authorize: ({ loader, negate, children, unauthorized, permissions, parameters, queryOptions }: AuthorizeProps) => JSX.Element | null;
|
|
25
|
+
declare const Authorize: ({ loader, negate, children, unauthorized, permissions, parameters, queryOptions }: AuthorizeProps) => React.JSX.Element | null;
|
|
26
26
|
|
|
27
27
|
export { Authorize, type AuthorizeProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { UseAuthorizeProps } from '@availity/authorize';
|
|
3
3
|
|
|
4
4
|
type AuthorizeProps = {
|
|
@@ -22,6 +22,6 @@ type AuthorizeProps = {
|
|
|
22
22
|
* `staleTime`. The first option sets whether the to refetch the query when the window is focused, and
|
|
23
23
|
* the other is the default marker for how long the query is valid.
|
|
24
24
|
*/
|
|
25
|
-
declare const Authorize: ({ loader, negate, children, unauthorized, permissions, parameters, queryOptions }: AuthorizeProps) => JSX.Element | null;
|
|
25
|
+
declare const Authorize: ({ loader, negate, children, unauthorized, permissions, parameters, queryOptions }: AuthorizeProps) => React.JSX.Element | null;
|
|
26
26
|
|
|
27
27
|
export { Authorize, type AuthorizeProps };
|
package/introduction.mdx
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-authorize",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Availity Authorize Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@availity/authorize": "^5.0.0",
|
|
44
|
-
"@availity/mui-block-ui": "^
|
|
44
|
+
"@availity/mui-block-ui": "^2.0.1",
|
|
45
45
|
"@tanstack/react-query": "^4.36.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@mui/material": "^
|
|
49
|
-
"react": "
|
|
50
|
-
"react-dom": "
|
|
48
|
+
"@mui/material": "^7.3.4",
|
|
49
|
+
"react": "19.2.0",
|
|
50
|
+
"react-dom": "19.2.0",
|
|
51
51
|
"tsup": "^8.4.0",
|
|
52
52
|
"typescript": "^5.4.5"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@mui/material": "^
|
|
56
|
-
"react": ">=
|
|
55
|
+
"@mui/material": "^7.0.0",
|
|
56
|
+
"react": ">=17.0.0"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Each exported component in the package should have its own stories file
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
4
4
|
import { Authorize, AuthorizeProps } from '..';
|
|
5
5
|
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
|
|
6
6
|
import Alert from '@mui/material/Alert';
|
|
@@ -10,7 +10,7 @@ const meta: Meta<typeof Authorize> = {
|
|
|
10
10
|
component: Authorize,
|
|
11
11
|
tags: ['autodocs'],
|
|
12
12
|
decorators: [
|
|
13
|
-
(Story: () => JSX.Element) => (
|
|
13
|
+
(Story: () => React.JSX.Element) => (
|
|
14
14
|
<QueryClientProvider client={new QueryClient()}>
|
|
15
15
|
<Story />
|
|
16
16
|
</QueryClientProvider>
|
package/src/lib/Authorize.tsx
CHANGED
|
@@ -35,7 +35,7 @@ export const Authorize = ({
|
|
|
35
35
|
permissions,
|
|
36
36
|
parameters = {},
|
|
37
37
|
queryOptions
|
|
38
|
-
}: AuthorizeProps): JSX.Element | null => {
|
|
38
|
+
}: AuthorizeProps): React.JSX.Element | null => {
|
|
39
39
|
const { authorized, isLoading } = useAuthorize(permissions, parameters, queryOptions);
|
|
40
40
|
|
|
41
41
|
if (isLoading) {
|