@availity/mui-spaces 0.7.3 → 0.7.5
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 +14 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/lib/SpacesLink/SpacesLink.tsx +1 -1
- package/src/lib/SpacesLink/useLink.tsx +1 -1
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
|
+
## [0.7.5](https://github.com/Availity/element/compare/@availity/mui-spaces@0.7.4...@availity/mui-spaces@0.7.5) (2025-02-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **mui-spaces:** make SpaceLink header should match CardHeader size ([1b7a975](https://github.com/Availity/element/commit/1b7a97590a3153a0219a1eed53ca9de252dd0fd5))
|
|
11
|
+
|
|
12
|
+
## [0.7.4](https://github.com/Availity/element/compare/@availity/mui-spaces@0.7.3...@availity/mui-spaces@0.7.4) (2025-02-20)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **mui-spaces:** update useLink to passthrough full space ([b194d1a](https://github.com/Availity/element/commit/b194d1ad6c5f821b674ce0f2b7da7ad599a2562b))
|
|
18
|
+
|
|
5
19
|
## [0.7.3](https://github.com/Availity/element/compare/@availity/mui-spaces@0.7.2...@availity/mui-spaces@0.7.3) (2025-02-19)
|
|
6
20
|
|
|
7
21
|
### Dependency Updates
|
package/dist/index.js
CHANGED
|
@@ -831,7 +831,7 @@ var useLink = (spaceOrSpaceId, options) => {
|
|
|
831
831
|
);
|
|
832
832
|
const { data: user } = (0, import_hooks.useCurrentUser)();
|
|
833
833
|
const openModal = useModal();
|
|
834
|
-
const space = spaceFromSpacesProvider == null ? void 0 : spaceFromSpacesProvider[0];
|
|
834
|
+
const space = (spaceFromSpacesProvider == null ? void 0 : spaceFromSpacesProvider[0]) || (typeof spaceOrSpaceId === "object" ? spaceOrSpaceId : void 0);
|
|
835
835
|
const parentPayerSpaces = (_a = space == null ? void 0 : space.parents) == null ? void 0 : _a.filter(
|
|
836
836
|
(p) => p.type && (p.type.toLowerCase() === "space" || p.type.toLowerCase() === "payerspace")
|
|
837
837
|
);
|
|
@@ -1135,7 +1135,7 @@ var SpacesLink = (_a) => {
|
|
|
1135
1135
|
role: showUrl ? "link" : role,
|
|
1136
1136
|
"aria-label": linkSpace == null ? void 0 : linkSpace.name,
|
|
1137
1137
|
"aria-describedby": showNew && (linkSpace == null ? void 0 : linkSpace.isNew) ? `${idPrefix}app-new-badge-${linkSpace == null ? void 0 : linkSpace.configurationId}` : void 0,
|
|
1138
|
-
variant:
|
|
1138
|
+
variant: "h5",
|
|
1139
1139
|
title: showName ? linkSpace == null ? void 0 : linkSpace.name : void 0,
|
|
1140
1140
|
children: showName ? linkSpace == null ? void 0 : linkSpace.name : void 0
|
|
1141
1141
|
})
|
package/dist/index.mjs
CHANGED
|
@@ -789,7 +789,7 @@ var useLink = (spaceOrSpaceId, options) => {
|
|
|
789
789
|
);
|
|
790
790
|
const { data: user } = useCurrentUser();
|
|
791
791
|
const openModal = useModal();
|
|
792
|
-
const space = spaceFromSpacesProvider == null ? void 0 : spaceFromSpacesProvider[0];
|
|
792
|
+
const space = (spaceFromSpacesProvider == null ? void 0 : spaceFromSpacesProvider[0]) || (typeof spaceOrSpaceId === "object" ? spaceOrSpaceId : void 0);
|
|
793
793
|
const parentPayerSpaces = (_a = space == null ? void 0 : space.parents) == null ? void 0 : _a.filter(
|
|
794
794
|
(p) => p.type && (p.type.toLowerCase() === "space" || p.type.toLowerCase() === "payerspace")
|
|
795
795
|
);
|
|
@@ -1093,7 +1093,7 @@ var SpacesLink = (_a) => {
|
|
|
1093
1093
|
role: showUrl ? "link" : role,
|
|
1094
1094
|
"aria-label": linkSpace == null ? void 0 : linkSpace.name,
|
|
1095
1095
|
"aria-describedby": showNew && (linkSpace == null ? void 0 : linkSpace.isNew) ? `${idPrefix}app-new-badge-${linkSpace == null ? void 0 : linkSpace.configurationId}` : void 0,
|
|
1096
|
-
variant:
|
|
1096
|
+
variant: "h5",
|
|
1097
1097
|
title: showName ? linkSpace == null ? void 0 : linkSpace.name : void 0,
|
|
1098
1098
|
children: showName ? linkSpace == null ? void 0 : linkSpace.name : void 0
|
|
1099
1099
|
})
|
package/package.json
CHANGED
|
@@ -236,7 +236,7 @@ export const SpacesLink = ({
|
|
|
236
236
|
? `${idPrefix}app-new-badge-${linkSpace?.configurationId}`
|
|
237
237
|
: undefined
|
|
238
238
|
}
|
|
239
|
-
variant=
|
|
239
|
+
variant="h5"
|
|
240
240
|
title={showName ? linkSpace?.name : undefined}
|
|
241
241
|
>
|
|
242
242
|
{showName ? linkSpace?.name : undefined}
|
|
@@ -17,7 +17,7 @@ export const useLink: UseLink = (spaceOrSpaceId, options) => {
|
|
|
17
17
|
|
|
18
18
|
const openModal = useModal();
|
|
19
19
|
|
|
20
|
-
const space = spaceFromSpacesProvider?.[0];
|
|
20
|
+
const space = spaceFromSpacesProvider?.[0] || (typeof spaceOrSpaceId === 'object' ? spaceOrSpaceId : undefined);
|
|
21
21
|
|
|
22
22
|
const parentPayerSpaces = space?.parents?.filter(
|
|
23
23
|
(p) => p.type && (p.type.toLowerCase() === 'space' || p.type.toLowerCase() === 'payerspace')
|