@steedos/webapp 3.0.14-beta.6 → 3.0.14-beta.9
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-
|
|
1
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-CuG0VhDw.js";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -51579,6 +51579,39 @@ const withRouter = (props) => {
|
|
|
51579
51579
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(VerifyMobile, { ...props, location: location2, navigate });
|
|
51580
51580
|
};
|
|
51581
51581
|
const VerifyMobile$1 = connect(mapStateToProps$2, mapDispatchToProps$2)(withRouter);
|
|
51582
|
+
function recordIfGridListUrl() {
|
|
51583
|
+
try {
|
|
51584
|
+
const pathname = window.location.pathname;
|
|
51585
|
+
if (/^\/app\/[^/]+\/[^/]+\/grid\/[^/]+/.test(pathname)) {
|
|
51586
|
+
sessionStorage.setItem("steedos_last_list_url", pathname + window.location.search);
|
|
51587
|
+
return;
|
|
51588
|
+
}
|
|
51589
|
+
const objMatch = pathname.match(/^\/app\/[^/]+\/[^/]+(\/(view|grid)\/([^/?#]+))?/);
|
|
51590
|
+
const isThreePaneList = objMatch && objMatch[2] === "view" && objMatch[3] === "none";
|
|
51591
|
+
const isOutsideObjectPage = !objMatch || !objMatch[1];
|
|
51592
|
+
if (isThreePaneList || isOutsideObjectPage) {
|
|
51593
|
+
sessionStorage.removeItem("steedos_last_list_url");
|
|
51594
|
+
}
|
|
51595
|
+
} catch (e) {
|
|
51596
|
+
}
|
|
51597
|
+
}
|
|
51598
|
+
if (typeof window !== "undefined" && !window.__steedosLastListUrlPatched) {
|
|
51599
|
+
window.__steedosLastListUrlPatched = true;
|
|
51600
|
+
const _push = history.pushState;
|
|
51601
|
+
const _replace = history.replaceState;
|
|
51602
|
+
history.pushState = function() {
|
|
51603
|
+
const r2 = _push.apply(this, arguments);
|
|
51604
|
+
recordIfGridListUrl();
|
|
51605
|
+
return r2;
|
|
51606
|
+
};
|
|
51607
|
+
history.replaceState = function() {
|
|
51608
|
+
const r2 = _replace.apply(this, arguments);
|
|
51609
|
+
recordIfGridListUrl();
|
|
51610
|
+
return r2;
|
|
51611
|
+
};
|
|
51612
|
+
window.addEventListener("popstate", recordIfGridListUrl);
|
|
51613
|
+
recordIfGridListUrl();
|
|
51614
|
+
}
|
|
51582
51615
|
const normalizeLink = (to, location2 = window.location) => {
|
|
51583
51616
|
to = to || "";
|
|
51584
51617
|
if (to && to[0] === "#") {
|
|
@@ -51619,14 +51652,23 @@ const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
|
51619
51652
|
if (window._appNavCount > 0) {
|
|
51620
51653
|
window._appNavCount--;
|
|
51621
51654
|
navigate(-1);
|
|
51622
|
-
|
|
51623
|
-
|
|
51624
|
-
|
|
51625
|
-
|
|
51626
|
-
|
|
51627
|
-
|
|
51628
|
-
|
|
51655
|
+
return;
|
|
51656
|
+
}
|
|
51657
|
+
const pathname = window.location.pathname;
|
|
51658
|
+
const objMatch = pathname.match(/^(\/app\/[^/]+\/[^/]+)(\/(view|grid)\/.*)?$/);
|
|
51659
|
+
try {
|
|
51660
|
+
const lastListUrl = sessionStorage.getItem("steedos_last_list_url");
|
|
51661
|
+
if (lastListUrl && objMatch && lastListUrl.startsWith(objMatch[1] + "/grid/")) {
|
|
51662
|
+
sessionStorage.removeItem("steedos_last_list_url");
|
|
51663
|
+
navigate(lastListUrl);
|
|
51664
|
+
return;
|
|
51629
51665
|
}
|
|
51666
|
+
} catch (e) {
|
|
51667
|
+
}
|
|
51668
|
+
if (objMatch && objMatch[2]) {
|
|
51669
|
+
navigate(objMatch[1]);
|
|
51670
|
+
} else {
|
|
51671
|
+
navigate(-1);
|
|
51630
51672
|
}
|
|
51631
51673
|
};
|
|
51632
51674
|
}
|
|
@@ -81466,7 +81508,7 @@ if (typeof ActiveXObject === "function") {
|
|
|
81466
81508
|
if (typeof fetchApi !== "function") fetchApi = void 0;
|
|
81467
81509
|
if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
|
|
81468
81510
|
try {
|
|
81469
|
-
__vitePreload(() => import("./browser-ponyfill-
|
|
81511
|
+
__vitePreload(() => import("./browser-ponyfill-dzwkrvIe.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
|
|
81470
81512
|
fetchApi = mod.default;
|
|
81471
81513
|
}).catch(function() {
|
|
81472
81514
|
});
|
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-
|
|
69
|
+
<script type="module" crossorigin src="/assets/index-CuG0VhDw.js"></script>
|
|
70
70
|
<link rel="stylesheet" crossorigin href="/assets/index-DR9C1Zsh.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.
|
|
3
|
+
"version": "3.0.14-beta.9",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"repository": "https://github.com/steedos/app-builder/tree/master/apps/accounts",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "87f62a32df2ab475171cd9be1c664acd15448f85",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@steedos-widgets/amis-object": "^6.10.53-beta.
|
|
80
|
+
"@steedos-widgets/amis-object": "^6.10.53-beta.5",
|
|
81
81
|
"autoprefixer": "^10.4.23"
|
|
82
82
|
}
|
|
83
83
|
}
|