@availity/mui-authorize 0.2.0 → 1.0.0-alpha.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,20 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.0.0-alpha.0](https://github.com/Availity/element/compare/@availity/mui-authorize@0.2.0...@availity/mui-authorize@1.0.0-alpha.0) (2025-02-24)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * upgraded to @mui/material v6
11
+ * **element:** upgraded to @mui/material v6
12
+
13
+ ### Features
14
+
15
+ * **element:** upgrade to @mui/material v6 ([cb958bb](https://github.com/Availity/element/commit/cb958bba99a4f1ee6dab323f0ff54b69e6fd3493))
16
+ * upgrade @mui/material ([571453a](https://github.com/Availity/element/commit/571453a34b21c344594ab4c03bc497d19aba942b))
17
+ * upgrade to MUI v6 ([7febd6f](https://github.com/Availity/element/commit/7febd6fd4fd58e87e1c97a832cea3b4595a35d58))
18
+
5
19
  ## [0.2.0](https://github.com/Availity/element/compare/@availity/mui-authorize@0.1.12...@availity/mui-authorize@0.2.0) (2025-02-04)
6
20
 
7
21
  ### Dependency Updates
package/dist/index.js CHANGED
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  Authorize: () => Authorize
24
24
  });
25
- module.exports = __toCommonJS(src_exports);
25
+ module.exports = __toCommonJS(index_exports);
26
26
 
27
27
  // src/lib/Authorize.tsx
28
28
  var import_mui_block_ui = require("@availity/mui-block-ui");
@@ -39,8 +39,7 @@ var Authorize = ({
39
39
  }) => {
40
40
  const { authorized, isLoading } = (0, import_authorize.useAuthorize)(permissions, parameters, queryOptions);
41
41
  if (isLoading) {
42
- if (loader)
43
- return loader === true ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_block_ui.BlockUi, { blocking: true }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: loader });
42
+ if (loader) return loader === true ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_mui_block_ui.BlockUi, { blocking: true }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: loader });
44
43
  return null;
45
44
  }
46
45
  if ((authorized || negate) && !(authorized && negate)) {
package/dist/index.mjs CHANGED
@@ -13,8 +13,7 @@ var Authorize = ({
13
13
  }) => {
14
14
  const { authorized, isLoading } = useAuthorize(permissions, parameters, queryOptions);
15
15
  if (isLoading) {
16
- if (loader)
17
- return loader === true ? /* @__PURE__ */ jsx(BlockUi, { blocking: true }) : /* @__PURE__ */ jsx(Fragment, { children: loader });
16
+ if (loader) return loader === true ? /* @__PURE__ */ jsx(BlockUi, { blocking: true }) : /* @__PURE__ */ jsx(Fragment, { children: loader });
18
17
  return null;
19
18
  }
20
19
  if ((authorized || negate) && !(authorized && negate)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-authorize",
3
- "version": "0.2.0",
3
+ "version": "1.0.0-alpha.0",
4
4
  "description": "Availity Authorize Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -40,19 +40,19 @@
40
40
  "publish:canary": "yarn npm publish --access public --tag canary"
41
41
  },
42
42
  "dependencies": {
43
- "@availity/authorize": "^4.1.0",
44
- "@availity/mui-block-ui": "^0.3.0",
43
+ "@availity/authorize": "^4.1.2",
44
+ "@availity/mui-block-ui": "^1.0.0-alpha.0",
45
45
  "@tanstack/react-query": "^4.36.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@mui/material": "^5.15.15",
48
+ "@mui/material": "^6.4.5",
49
49
  "react": "18.2.0",
50
50
  "react-dom": "18.2.0",
51
- "tsup": "^8.0.2",
51
+ "tsup": "^8.3.6",
52
52
  "typescript": "^5.4.5"
53
53
  },
54
54
  "peerDependencies": {
55
- "@mui/material": "^5.11.9",
55
+ "@mui/material": "^6.4.5",
56
56
  "react": ">=16.3.0"
57
57
  },
58
58
  "publishConfig": {
File without changes