@availity/mui-authorize 1.0.11 → 2.0.0

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 CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-authorize@1.0.11...@availity/mui-authorize@2.0.0) (2025-11-17)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-block-ui` updated to version `1.0.11`
10
+
11
+ ### ⚠ BREAKING CHANGES
12
+
13
+ * @mui/material upgraded to v7
14
+ * @mui/x-* upgraded to v8
15
+ * react upgraded to v19
16
+
17
+ ### Features
18
+
19
+ * upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
20
+
5
21
  ## [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
22
 
7
23
  ### 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-authorize",
3
- "version": "1.0.11",
3
+ "version": "2.0.0",
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": "^1.0.7",
44
+ "@availity/mui-block-ui": "^2.0.0",
45
45
  "@tanstack/react-query": "^4.36.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@mui/material": "^6.4.5",
49
- "react": "18.2.0",
50
- "react-dom": "18.2.0",
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": "^6.4.5",
56
- "react": ">=16.3.0"
55
+ "@mui/material": "^7.0.0",
56
+ "react": ">=17.0.0"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"
@@ -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>
@@ -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) {