@availity/mui-spaces 1.0.27 → 1.0.29
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 +10 -2
- package/dist/index.mjs +10 -2
- package/package.json +1 -1
- package/src/lib/SpacesLink/linkHandlers.tsx +11 -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
|
+
## [1.0.29](https://github.com/Availity/element/compare/@availity/mui-spaces@1.0.28...@availity/mui-spaces@1.0.29) (2025-07-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* fix onprem sso config value ([0c79a52](https://github.com/Availity/element/commit/0c79a52a9f6c56d2d8c45a7546664e7700f19c9e))
|
|
11
|
+
|
|
12
|
+
## [1.0.28](https://github.com/Availity/element/compare/@availity/mui-spaces@1.0.27...@availity/mui-spaces@1.0.28) (2025-07-01)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* allow onprem sso ([3985456](https://github.com/Availity/element/commit/3985456532bbe6f1cf095f87d5c159aa41b05621))
|
|
18
|
+
|
|
5
19
|
## [1.0.27](https://github.com/Availity/element/compare/@availity/mui-spaces@1.0.26...@availity/mui-spaces@1.0.27) (2025-06-25)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.js
CHANGED
|
@@ -799,9 +799,17 @@ var openLink = (space, params) => __async(void 0, null, function* () {
|
|
|
799
799
|
window.open(url, target);
|
|
800
800
|
});
|
|
801
801
|
var openLinkWithSso = (_0, _1) => __async(void 0, [_0, _1], function* (space, { akaname, clientId, payerSpaceId, ssoParams }) {
|
|
802
|
-
var _a;
|
|
802
|
+
var _a, _b;
|
|
803
803
|
if (space.meta && space.meta.ssoId) {
|
|
804
|
-
|
|
804
|
+
let options;
|
|
805
|
+
if (space.meta.appsDomain === "true") {
|
|
806
|
+
options = ((_a = space.link) == null ? void 0 : _a.target) ? {
|
|
807
|
+
target: getTarget(space.link.target),
|
|
808
|
+
action: `${new URL(document.referrer).origin}/ms/api/availity/internal/spc/magneto/sso/v1/saml/${space.meta.ssoId}`
|
|
809
|
+
} : { action: `${new URL(document.referrer).origin}/ms/api/availity/internal/spc/magneto/sso/v1/saml/${space.meta.ssoId}` };
|
|
810
|
+
} else {
|
|
811
|
+
options = ((_b = space.link) == null ? void 0 : _b.target) ? { target: getTarget(space.link.target) } : void 0;
|
|
812
|
+
}
|
|
805
813
|
const attributes = __spreadValues({
|
|
806
814
|
X_XSRF_TOKEN: document.cookie.replace(/(?:(?:^|.*;\s*)XSRF-TOKEN\s*=\s*([^;]*).*$)|^.*$/, "$1"),
|
|
807
815
|
spaceId: payerSpaceId
|
package/dist/index.mjs
CHANGED
|
@@ -757,9 +757,17 @@ var openLink = (space, params) => __async(void 0, null, function* () {
|
|
|
757
757
|
window.open(url, target);
|
|
758
758
|
});
|
|
759
759
|
var openLinkWithSso = (_0, _1) => __async(void 0, [_0, _1], function* (space, { akaname, clientId, payerSpaceId, ssoParams }) {
|
|
760
|
-
var _a;
|
|
760
|
+
var _a, _b;
|
|
761
761
|
if (space.meta && space.meta.ssoId) {
|
|
762
|
-
|
|
762
|
+
let options;
|
|
763
|
+
if (space.meta.appsDomain === "true") {
|
|
764
|
+
options = ((_a = space.link) == null ? void 0 : _a.target) ? {
|
|
765
|
+
target: getTarget(space.link.target),
|
|
766
|
+
action: `${new URL(document.referrer).origin}/ms/api/availity/internal/spc/magneto/sso/v1/saml/${space.meta.ssoId}`
|
|
767
|
+
} : { action: `${new URL(document.referrer).origin}/ms/api/availity/internal/spc/magneto/sso/v1/saml/${space.meta.ssoId}` };
|
|
768
|
+
} else {
|
|
769
|
+
options = ((_b = space.link) == null ? void 0 : _b.target) ? { target: getTarget(space.link.target) } : void 0;
|
|
770
|
+
}
|
|
763
771
|
const attributes = __spreadValues({
|
|
764
772
|
X_XSRF_TOKEN: document.cookie.replace(/(?:(?:^|.*;\s*)XSRF-TOKEN\s*=\s*([^;]*).*$)|^.*$/, "$1"),
|
|
765
773
|
spaceId: payerSpaceId
|
package/package.json
CHANGED
|
@@ -32,7 +32,17 @@ export const openLink: OpenLink = async (space, params) => {
|
|
|
32
32
|
|
|
33
33
|
export const openLinkWithSso: OpenLinkWithSso = async (space, { akaname, clientId, payerSpaceId, ssoParams }) => {
|
|
34
34
|
if (space.meta && space.meta.ssoId) {
|
|
35
|
-
|
|
35
|
+
let options;
|
|
36
|
+
if (space.meta.appsDomain === 'true') {
|
|
37
|
+
options = space.link?.target ?
|
|
38
|
+
{
|
|
39
|
+
target: getTarget(space.link.target),
|
|
40
|
+
action: `${new URL(document.referrer).origin}/ms/api/availity/internal/spc/magneto/sso/v1/saml/${space.meta.ssoId}`
|
|
41
|
+
} :
|
|
42
|
+
{ action: `${new URL(document.referrer).origin}/ms/api/availity/internal/spc/magneto/sso/v1/saml/${space.meta.ssoId}`};
|
|
43
|
+
} else {
|
|
44
|
+
options = space.link?.target ? { target: getTarget(space.link.target) } : undefined;
|
|
45
|
+
}
|
|
36
46
|
|
|
37
47
|
const attributes: Record<string, string> = {
|
|
38
48
|
X_XSRF_TOKEN: document.cookie.replace(/(?:(?:^|.*;\s*)XSRF-TOKEN\s*=\s*([^;]*).*$)|^.*$/, '$1'),
|