@steedos/webapp 3.0.0-beta.113 → 3.0.0-beta.116
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.
|
@@ -28009,6 +28009,9 @@ var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !==
|
|
|
28009
28009
|
);
|
|
28010
28010
|
return reactExports.useContext(LocationContext).location;
|
|
28011
28011
|
}
|
|
28012
|
+
function useNavigationType() {
|
|
28013
|
+
return reactExports.useContext(LocationContext).navigationType;
|
|
28014
|
+
}
|
|
28012
28015
|
var navigateEffectWarning = `You should call navigate() in a React.useEffect(), not when your component is first rendered.`;
|
|
28013
28016
|
function useIsomorphicLayoutEffect(cb) {
|
|
28014
28017
|
let isStatic = reactExports.useContext(NavigationContext).static;
|
|
@@ -33831,7 +33834,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
33831
33834
|
return;
|
|
33832
33835
|
}
|
|
33833
33836
|
if (!currentSpaceId2) {
|
|
33834
|
-
navigate("/select-space
|
|
33837
|
+
navigate("/select-space" + window.location.search);
|
|
33835
33838
|
return;
|
|
33836
33839
|
}
|
|
33837
33840
|
}, [currentUser]);
|
|
@@ -54306,7 +54309,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
54306
54309
|
return;
|
|
54307
54310
|
}
|
|
54308
54311
|
if (!currentSpace) {
|
|
54309
|
-
navigate("/select-space");
|
|
54312
|
+
navigate("/select-space" + window.location.search);
|
|
54310
54313
|
return;
|
|
54311
54314
|
}
|
|
54312
54315
|
dispatch2(validate()).then((me) => {
|
|
@@ -54315,7 +54318,13 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
54315
54318
|
if ((_a2 = me.data) == null ? void 0 : _a2.password_expired) {
|
|
54316
54319
|
goResetPassword(navigate);
|
|
54317
54320
|
} else {
|
|
54318
|
-
|
|
54321
|
+
let redirect_uri = new URLSearchParams(location ? location.search : "").get("redirect_uri");
|
|
54322
|
+
debugger;
|
|
54323
|
+
if (redirect_uri) {
|
|
54324
|
+
window.location.href = redirect_uri;
|
|
54325
|
+
} else {
|
|
54326
|
+
window.location.href = "/app";
|
|
54327
|
+
}
|
|
54319
54328
|
}
|
|
54320
54329
|
});
|
|
54321
54330
|
}, []);
|
|
@@ -54973,7 +54982,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
54973
54982
|
if (space) {
|
|
54974
54983
|
try {
|
|
54975
54984
|
this.props.actions.selectSpace(space._id);
|
|
54976
|
-
this.props.navigate(`/home/${space._id}`);
|
|
54985
|
+
this.props.navigate(`/home/${space._id}` + (this.props.location.search ? `${this.props.location.search}` : ""));
|
|
54977
54986
|
} catch (error) {
|
|
54978
54987
|
console.log(error);
|
|
54979
54988
|
return { data: false };
|
|
@@ -55002,7 +55011,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
55002
55011
|
}
|
|
55003
55012
|
if (Object.keys(this.props.spaces).length === 1 && this.props.tenant.enable_create_tenant != true) {
|
|
55004
55013
|
this.props.actions.selectSpace(Object.keys(this.props.spaces)[0]);
|
|
55005
|
-
this.props.navigate(`/home/${Object.keys(this.props.spaces)[0]}`);
|
|
55014
|
+
this.props.navigate(`/home/${Object.keys(this.props.spaces)[0]}` + (this.props.location.search ? `${this.props.location.search}` : ""));
|
|
55006
55015
|
}
|
|
55007
55016
|
}, 0);
|
|
55008
55017
|
}
|
|
@@ -57751,9 +57760,29 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
57751
57760
|
}, [navigate]);
|
|
57752
57761
|
return null;
|
|
57753
57762
|
};
|
|
57763
|
+
function RouteChangeHandler() {
|
|
57764
|
+
const location2 = useLocation();
|
|
57765
|
+
const navigationType = useNavigationType();
|
|
57766
|
+
reactExports.useEffect(() => {
|
|
57767
|
+
const routeChangeData = {
|
|
57768
|
+
type: "ROUTE_CHANGE",
|
|
57769
|
+
path: location2.pathname,
|
|
57770
|
+
search: location2.search,
|
|
57771
|
+
hash: location2.hash,
|
|
57772
|
+
navigationType,
|
|
57773
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
57774
|
+
};
|
|
57775
|
+
window.postMessage(routeChangeData, "*");
|
|
57776
|
+
if (window.parent && window.parent !== window) {
|
|
57777
|
+
window.parent.postMessage(routeChangeData, "*");
|
|
57778
|
+
}
|
|
57779
|
+
}, [location2, navigationType]);
|
|
57780
|
+
return null;
|
|
57781
|
+
}
|
|
57754
57782
|
const AppLayout = (props) => {
|
|
57755
57783
|
const { children } = props;
|
|
57756
57784
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
57785
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RouteChangeHandler, {}),
|
|
57757
57786
|
/* @__PURE__ */ jsxRuntimeExports.jsx(GlobalLinkInterceptor, {}),
|
|
57758
57787
|
/* @__PURE__ */ jsxRuntimeExports.jsx(AppHeader, {}),
|
|
57759
57788
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "creator-content-wrapper", id: "main", children })
|
|
@@ -73130,7 +73159,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
73130
73159
|
const self2 = this;
|
|
73131
73160
|
_window2.lodash = _window2._;
|
|
73132
73161
|
_window2.loadJs("/steedos-init.js", () => {
|
|
73133
|
-
_window2.loadJs(`${Builder2.settings.rootUrl}/client_scripts.js`, () => {
|
|
73162
|
+
_window2.loadJs(`${Builder2.settings.context.rootUrl}/client_scripts.js`, () => {
|
|
73134
73163
|
self2.setState({ settings: settingsData, loading: false });
|
|
73135
73164
|
});
|
|
73136
73165
|
});
|
package/dist/index.html
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
</script>
|
|
65
65
|
<link rel="stylesheet" type="text/css" href="/tailwind/tailwind-steedos.css">
|
|
66
|
-
<script type="module" crossorigin src="/assets/index-
|
|
66
|
+
<script type="module" crossorigin src="/assets/index-C75NN-NA.js"></script>
|
|
67
67
|
</head>
|
|
68
68
|
<body class="skin-blue-light fixed steedos sidebar-mini three-columns" >
|
|
69
69
|
<div id="root" class="steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden bg-gray-50"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/webapp",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.116",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
71
|
"repository": "https://github.com/steedos/app-builder/tree/master/apps/accounts",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "5faa4fd9601e2316a5fa428fcb945e3ecc8d1160",
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@ai-sdk/react": "^2.0.76",
|
|
75
75
|
"ai": "^5.0.76",
|