@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 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
@@ -1,5 +1,4 @@
1
- import { Markdown } from '@storybook/blocks';
2
- import { Meta } from '@storybook/addon-docs';
1
+ import { Markdown, Meta } from '@storybook/addon-docs/blocks';
3
2
  import ReadMe from './README.md?raw';
4
3
  import CHANGELOG from './CHANGELOG.md?raw';
5
4
 
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.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": "^1.0.7",
44
+ "@availity/mui-block-ui": "^2.0.1",
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"
@@ -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>
@@ -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) {