@steedos/webapp 3.0.14-beta.14 → 3.0.14-beta.15

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.
@@ -1,4 +1,4 @@
1
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-DrEd80ys.js";
1
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-BSH9ODS7.js";
2
2
  function _mergeNamespaces(n, m) {
3
3
  for (var i = 0; i < m.length; i++) {
4
4
  const e = m[i];
@@ -42409,6 +42409,17 @@ typeof window !== "undefined" ? createHashHistory() : null;
42409
42409
  function selectSpace(spaceId) {
42410
42410
  return async (dispatch2, getState) => {
42411
42411
  let selectedSpaceId = spaceId || LocalStorageStore.getItem("spaceId");
42412
+ if (!selectedSpaceId) {
42413
+ selectedSpaceId = getSettingsTenantId(getState());
42414
+ console.log(`selectedSpaceId`, selectedSpaceId);
42415
+ }
42416
+ if (!selectedSpaceId) {
42417
+ const spaces2 = getSpaces(getState());
42418
+ const spaceIds = Object.keys(spaces2);
42419
+ if (spaceIds.length === 1) {
42420
+ selectedSpaceId = spaceIds[0];
42421
+ }
42422
+ }
42412
42423
  if (!selectedSpaceId) {
42413
42424
  return { data: false };
42414
42425
  }
@@ -50051,10 +50062,18 @@ const Logout = (props) => {
50051
50062
  redirect_uri = tenant.page_logout;
50052
50063
  }
50053
50064
  logout2().then(() => {
50054
- navigate(redirect_uri);
50065
+ if (redirect_uri.startsWith("http://") || redirect_uri.startsWith("https://")) {
50066
+ window.location.href = redirect_uri;
50067
+ } else {
50068
+ navigate(redirect_uri);
50069
+ }
50055
50070
  }).catch((e) => {
50056
50071
  console.error(e);
50057
- navigate(redirect_uri);
50072
+ if (redirect_uri.startsWith("http://") || redirect_uri.startsWith("https://")) {
50073
+ window.location.href = redirect_uri;
50074
+ } else {
50075
+ navigate(redirect_uri);
50076
+ }
50058
50077
  });
50059
50078
  }, [logout2, navigate, location2.search, tenant.page_logout]);
50060
50079
  return null;
@@ -81568,7 +81587,7 @@ if (typeof ActiveXObject === "function") {
81568
81587
  if (typeof fetchApi !== "function") fetchApi = void 0;
81569
81588
  if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
81570
81589
  try {
81571
- __vitePreload(() => import("./browser-ponyfill-BaajAj-x.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
81590
+ __vitePreload(() => import("./browser-ponyfill-BXlue2m_.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
81572
81591
  fetchApi = mod.default;
81573
81592
  }).catch(function() {
81574
81593
  });
package/dist/index.html CHANGED
@@ -66,7 +66,7 @@
66
66
  <link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/themes/antd.css">
67
67
  <link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/helper.css">
68
68
  <link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/sdk/iconfont.css">
69
- <script type="module" crossorigin src="/assets/index-DrEd80ys.js"></script>
69
+ <script type="module" crossorigin src="/assets/index-BSH9ODS7.js"></script>
70
70
  <link rel="stylesheet" crossorigin href="/assets/index-DchxWQUw.css">
71
71
  </head>
72
72
  <body class="skin-blue-light fixed steedos sidebar-mini three-columns" >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/webapp",
3
- "version": "3.0.14-beta.14",
3
+ "version": "3.0.14-beta.15",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -75,7 +75,7 @@
75
75
  "access": "public"
76
76
  },
77
77
  "repository": "https://github.com/steedos/app-builder/tree/master/apps/accounts",
78
- "gitHead": "554add336a2137b998ab14a35a9b07b7c1925c0a",
78
+ "gitHead": "629aeb346ee02ead884d9b425a03fa9ec1d54cb5",
79
79
  "dependencies": {
80
80
  "@steedos-widgets/amis-object": "^6.10.53-beta.10",
81
81
  "autoprefixer": "^10.4.23"