@steedos/webapp 3.0.13-beta.55 → 3.0.13-beta.56
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-DdDwDdQ6.js";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -51574,9 +51574,15 @@ const normalizeLink = (to, location2 = window.location) => {
|
|
|
51574
51574
|
const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
51575
51575
|
const navigate = useNavigate();
|
|
51576
51576
|
const location2 = useLocation();
|
|
51577
|
+
if (typeof window._appNavCount === "undefined") {
|
|
51578
|
+
window._appNavCount = 0;
|
|
51579
|
+
}
|
|
51577
51580
|
if (!window.goBack) {
|
|
51578
51581
|
window.goBack = () => {
|
|
51579
|
-
if (window.
|
|
51582
|
+
if (window._appNavCount > 0) {
|
|
51583
|
+
window._appNavCount--;
|
|
51584
|
+
navigate(-1);
|
|
51585
|
+
} else {
|
|
51580
51586
|
const pathname = window.location.pathname;
|
|
51581
51587
|
const match2 = pathname.match(/^(\/app\/[^/]+\/[^/]+)(\/view\/.*)?$/);
|
|
51582
51588
|
if (match2 && match2[2]) {
|
|
@@ -51584,8 +51590,6 @@ const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
|
51584
51590
|
} else {
|
|
51585
51591
|
navigate(-1);
|
|
51586
51592
|
}
|
|
51587
|
-
} else {
|
|
51588
|
-
navigate(-1);
|
|
51589
51593
|
}
|
|
51590
51594
|
};
|
|
51591
51595
|
}
|
|
@@ -51671,11 +51675,16 @@ const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
|
51671
51675
|
},
|
|
51672
51676
|
jumpTo: (to, action, ctx) => {
|
|
51673
51677
|
if (to === "goBack") {
|
|
51674
|
-
return window.
|
|
51678
|
+
return window.goBack();
|
|
51675
51679
|
}
|
|
51676
51680
|
to = normalizeLink(to);
|
|
51677
51681
|
if (action && action.actionType === "url") {
|
|
51678
|
-
action.blank === false
|
|
51682
|
+
if (action.blank === false) {
|
|
51683
|
+
window._appNavCount = (window._appNavCount || 0) + 1;
|
|
51684
|
+
navigate(to);
|
|
51685
|
+
} else {
|
|
51686
|
+
window.open(to);
|
|
51687
|
+
}
|
|
51679
51688
|
return;
|
|
51680
51689
|
}
|
|
51681
51690
|
if (action && to && action.target) {
|
|
@@ -51685,6 +51694,7 @@ const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
|
51685
51694
|
if (/^https?:\/\//.test(to)) {
|
|
51686
51695
|
window.location.replace(to);
|
|
51687
51696
|
} else {
|
|
51697
|
+
window._appNavCount = (window._appNavCount || 0) + 1;
|
|
51688
51698
|
navigate(to);
|
|
51689
51699
|
}
|
|
51690
51700
|
},
|
|
@@ -81361,7 +81371,7 @@ if (typeof ActiveXObject === "function") {
|
|
|
81361
81371
|
if (typeof fetchApi !== "function") fetchApi = void 0;
|
|
81362
81372
|
if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
|
|
81363
81373
|
try {
|
|
81364
|
-
__vitePreload(() => import("./browser-ponyfill-
|
|
81374
|
+
__vitePreload(() => import("./browser-ponyfill-DLHpGSKO.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
|
|
81365
81375
|
fetchApi = mod.default;
|
|
81366
81376
|
}).catch(function() {
|
|
81367
81377
|
});
|
package/dist/index.html
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/themes/antd.css">
|
|
66
66
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/helper.css">
|
|
67
67
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/sdk/iconfont.css">
|
|
68
|
-
<script type="module" crossorigin src="/assets/index-
|
|
68
|
+
<script type="module" crossorigin src="/assets/index-DdDwDdQ6.js"></script>
|
|
69
69
|
<link rel="stylesheet" crossorigin href="/assets/index-Np5NzHbA.css">
|
|
70
70
|
</head>
|
|
71
71
|
<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.13-beta.
|
|
3
|
+
"version": "3.0.13-beta.56",
|
|
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": "
|
|
78
|
+
"gitHead": "d481a8dadb3c58abaad204a965d2cbf5e947e297",
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@steedos-widgets/amis-object": "^6.10.52-beta.38",
|
|
81
81
|
"autoprefixer": "^10.4.23"
|