@availity/mui-spaces 1.0.20 → 1.0.22

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,18 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.0.22](https://github.com/Availity/element/compare/@availity/mui-spaces@1.0.21...@availity/mui-spaces@1.0.22) (2025-05-29)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-card` updated to version `1.0.21`
10
+ * `mui-chip` updated to version `1.0.21`
11
+ * `mui-dialog` updated to version `1.0.21`
12
+ * `mui-favorites` updated to version `1.0.21`
13
+ * `mui-list` updated to version `1.0.21`
14
+ * `mui-modal` updated to version `1.0.21`
15
+ ## [1.0.21](https://github.com/Availity/element/compare/@availity/mui-spaces@1.0.20...@availity/mui-spaces@1.0.21) (2025-05-28)
16
+
5
17
  ## [1.0.20](https://github.com/Availity/element/compare/@availity/mui-spaces@1.0.19...@availity/mui-spaces@1.0.20) (2025-05-20)
6
18
 
7
19
  ### Dependency Updates
package/dist/index.js CHANGED
@@ -786,7 +786,10 @@ var openLink = (space, params) => __async(void 0, null, function* () {
786
786
  return;
787
787
  }
788
788
  if (params == null ? void 0 : params.akaname) yield updateTopApps(space, params.akaname);
789
- const url = !(0, import_resolve_url2.isAbsoluteUrl)(space.link.url) ? getUrl(updateUrl(space.link.url, "spaceId", (params == null ? void 0 : params.payerSpaceId) || ((_c = (_b = space.parents) == null ? void 0 : _b[0]) == null ? void 0 : _c.id)), false, false) : space.link.url;
789
+ const spaceId = (params == null ? void 0 : params.payerSpaceId) || ((_c = (_b = space.parents) == null ? void 0 : _b[0]) == null ? void 0 : _c.id);
790
+ const needsSpaceId = !(0, import_resolve_url2.isAbsoluteUrl)(space.link.url) || /(test|qa(p?)-)?essentials\.availity\.com/.test(space.link.url);
791
+ const urlWithParams = needsSpaceId ? updateUrl(space.link.url, "spaceId", spaceId) : space.link.url;
792
+ const url = !(0, import_resolve_url2.isAbsoluteUrl)(space.link.url) ? getUrl(urlWithParams, false, false) : urlWithParams;
790
793
  const target = getTarget(space.link.target);
791
794
  window.open(url, target);
792
795
  });
package/dist/index.mjs CHANGED
@@ -744,7 +744,10 @@ var openLink = (space, params) => __async(void 0, null, function* () {
744
744
  return;
745
745
  }
746
746
  if (params == null ? void 0 : params.akaname) yield updateTopApps(space, params.akaname);
747
- const url = !isAbsoluteUrl2(space.link.url) ? getUrl(updateUrl(space.link.url, "spaceId", (params == null ? void 0 : params.payerSpaceId) || ((_c = (_b = space.parents) == null ? void 0 : _b[0]) == null ? void 0 : _c.id)), false, false) : space.link.url;
747
+ const spaceId = (params == null ? void 0 : params.payerSpaceId) || ((_c = (_b = space.parents) == null ? void 0 : _b[0]) == null ? void 0 : _c.id);
748
+ const needsSpaceId = !isAbsoluteUrl2(space.link.url) || /(test|qa(p?)-)?essentials\.availity\.com/.test(space.link.url);
749
+ const urlWithParams = needsSpaceId ? updateUrl(space.link.url, "spaceId", spaceId) : space.link.url;
750
+ const url = !isAbsoluteUrl2(space.link.url) ? getUrl(urlWithParams, false, false) : urlWithParams;
748
751
  const target = getTarget(space.link.target);
749
752
  window.open(url, target);
750
753
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-spaces",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "Availity MUI Spaces Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -41,15 +41,15 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@availity/mui-button": "^1.1.4",
44
- "@availity/mui-card": "^1.0.11",
45
- "@availity/mui-chip": "^1.0.3",
46
- "@availity/mui-dialog": "^1.0.14",
44
+ "@availity/mui-card": "^1.0.12",
45
+ "@availity/mui-chip": "^1.0.4",
46
+ "@availity/mui-dialog": "^1.0.15",
47
47
  "@availity/mui-disclaimer": "^1.0.5",
48
- "@availity/mui-favorites": "^1.1.5",
48
+ "@availity/mui-favorites": "^1.1.6",
49
49
  "@availity/mui-icon": "^1.1.0",
50
50
  "@availity/mui-layout": "^1.0.2",
51
- "@availity/mui-list": "^1.0.6",
52
- "@availity/mui-modal": "^1.0.11",
51
+ "@availity/mui-list": "^1.0.7",
52
+ "@availity/mui-modal": "^1.0.12",
53
53
  "@availity/mui-paper": "^1.0.2",
54
54
  "@availity/mui-progress": "^1.0.3",
55
55
  "@availity/mui-typography": "^1.0.2",
@@ -62,15 +62,15 @@
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@availity/mui-button": "^1.1.4",
65
- "@availity/mui-card": "^1.0.11",
66
- "@availity/mui-chip": "^1.0.3",
67
- "@availity/mui-dialog": "^1.0.14",
65
+ "@availity/mui-card": "^1.0.12",
66
+ "@availity/mui-chip": "^1.0.4",
67
+ "@availity/mui-dialog": "^1.0.15",
68
68
  "@availity/mui-disclaimer": "^1.0.5",
69
- "@availity/mui-favorites": "^1.1.5",
69
+ "@availity/mui-favorites": "^1.1.6",
70
70
  "@availity/mui-icon": "^1.1.0",
71
71
  "@availity/mui-layout": "^1.0.2",
72
- "@availity/mui-list": "^1.0.6",
73
- "@availity/mui-modal": "^1.0.11",
72
+ "@availity/mui-list": "^1.0.7",
73
+ "@availity/mui-modal": "^1.0.12",
74
74
  "@availity/mui-progress": "^1.0.3",
75
75
  "@availity/mui-typography": "^1.0.2",
76
76
  "@mui/material": "^6.4.5",
@@ -81,11 +81,11 @@
81
81
  "access": "public"
82
82
  },
83
83
  "dependencies": {
84
- "@availity/api-axios": "^10.0.3",
85
- "@availity/hooks": "^5.1.3",
86
- "@availity/message-core": "^7.0.5",
87
- "@availity/native-form": "^6.0.11",
88
- "@availity/resolve-url": "^3.0.3",
84
+ "@availity/api-axios": "^11.0.0",
85
+ "@availity/hooks": "^5.1.5",
86
+ "@availity/message-core": "^8.0.0",
87
+ "@availity/native-form": "^7.0.0",
88
+ "@availity/resolve-url": "^4.0.0",
89
89
  "@tanstack/react-query": "^4.36.1",
90
90
  "dayjs": "^1.11.13",
91
91
  "qs": "^6.14.0",
@@ -11,9 +11,11 @@ export const openLink: OpenLink = async (space, params) => {
11
11
 
12
12
  if (params?.akaname) await updateTopApps(space, params.akaname);
13
13
 
14
- const url = !isAbsoluteUrl(space.link.url)
15
- ? getUrl(updateUrl(space.link.url, 'spaceId', params?.payerSpaceId || space.parents?.[0]?.id), false, false)
16
- : space.link.url;
14
+ const spaceId = params?.payerSpaceId || space.parents?.[0]?.id;
15
+ const needsSpaceId =
16
+ !isAbsoluteUrl(space.link.url) || /(test|qa(p?)-)?essentials\.availity\.com/.test(space.link.url);
17
+ const urlWithParams = needsSpaceId ? updateUrl(space.link.url, 'spaceId', spaceId) : space.link.url;
18
+ const url = !isAbsoluteUrl(space.link.url) ? getUrl(urlWithParams, false, false) : urlWithParams;
17
19
 
18
20
  const target = getTarget(space.link.target);
19
21