@steedos/webapp 3.0.0-beta.113 → 3.0.0-beta.114
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;
|
|
@@ -57751,9 +57754,29 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
57751
57754
|
}, [navigate]);
|
|
57752
57755
|
return null;
|
|
57753
57756
|
};
|
|
57757
|
+
function RouteChangeHandler() {
|
|
57758
|
+
const location2 = useLocation();
|
|
57759
|
+
const navigationType = useNavigationType();
|
|
57760
|
+
reactExports.useEffect(() => {
|
|
57761
|
+
const routeChangeData = {
|
|
57762
|
+
type: "ROUTE_CHANGE",
|
|
57763
|
+
path: location2.pathname,
|
|
57764
|
+
search: location2.search,
|
|
57765
|
+
hash: location2.hash,
|
|
57766
|
+
navigationType,
|
|
57767
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
57768
|
+
};
|
|
57769
|
+
window.postMessage(routeChangeData, "*");
|
|
57770
|
+
if (window.parent && window.parent !== window) {
|
|
57771
|
+
window.parent.postMessage(routeChangeData, "*");
|
|
57772
|
+
}
|
|
57773
|
+
}, [location2, navigationType]);
|
|
57774
|
+
return null;
|
|
57775
|
+
}
|
|
57754
57776
|
const AppLayout = (props) => {
|
|
57755
57777
|
const { children } = props;
|
|
57756
57778
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
57779
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RouteChangeHandler, {}),
|
|
57757
57780
|
/* @__PURE__ */ jsxRuntimeExports.jsx(GlobalLinkInterceptor, {}),
|
|
57758
57781
|
/* @__PURE__ */ jsxRuntimeExports.jsx(AppHeader, {}),
|
|
57759
57782
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "creator-content-wrapper", id: "main", children })
|
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-D-1DrpDd.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.114",
|
|
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": "abf9b93e8bed4456de266998961f99a6f3eec97f",
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@ai-sdk/react": "^2.0.76",
|
|
75
75
|
"ai": "^5.0.76",
|