@next-core/brick-kit 2.179.2 → 2.179.4
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.
- package/dist/index.bundle.js +13 -16
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +13 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/core/setUIVersion.d.ts +2 -0
- package/dist/types/core/setUIVersion.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/types/core/setUIClassName.d.ts +0 -2
- package/dist/types/core/setUIClassName.d.ts.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -10409,15 +10409,16 @@ class LocationContext {
|
|
|
10409
10409
|
}
|
|
10410
10410
|
}
|
|
10411
10411
|
}
|
|
10412
|
-
yield _this4.mountMenu(route.menu, matched.match, mountRoutesResult);
|
|
10413
10412
|
if (route.documentId) {
|
|
10414
10413
|
mountRoutesResult.appBar.documentId = route.documentId;
|
|
10415
10414
|
}
|
|
10416
10415
|
if (isRouteConfOfRoutes(route) && Array.isArray(route.routes)) {
|
|
10417
10416
|
yield _this4.preFetchMenu(route.context);
|
|
10417
|
+
yield _this4.mountMenu(route.menu, matched.match, mountRoutesResult);
|
|
10418
10418
|
yield _this4.mountRoutes(route.routes, slotId, mountRoutesResult);
|
|
10419
10419
|
} else if (isRouteConfOfBricks(route) && Array.isArray(route.bricks)) {
|
|
10420
10420
|
yield _this4.preFetchMenu(route);
|
|
10421
|
+
yield _this4.mountMenu(route.menu, matched.match, mountRoutesResult);
|
|
10421
10422
|
yield _this4.mountBricks(route.bricks, matched.match, slotId, mountRoutesResult);
|
|
10422
10423
|
|
|
10423
10424
|
// analytics data (page_view event)
|
|
@@ -11531,21 +11532,17 @@ var httpCacheRecord = {
|
|
|
11531
11532
|
end: triggerHttpCache("http:cache.end")
|
|
11532
11533
|
};
|
|
11533
11534
|
|
|
11534
|
-
function
|
|
11535
|
-
|
|
11536
|
-
var
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
document.body.classList.remove(lastVersion);
|
|
11535
|
+
function setUIVersion(version) {
|
|
11536
|
+
// 仅允许特定的 UI 版本
|
|
11537
|
+
var ui;
|
|
11538
|
+
switch (version) {
|
|
11539
|
+
case "8.2":
|
|
11540
|
+
ui = "v8-2";
|
|
11541
|
+
break;
|
|
11542
|
+
default:
|
|
11543
|
+
ui = "v8";
|
|
11544
11544
|
}
|
|
11545
|
-
|
|
11546
|
-
return "ui-v".concat(version.split(".").join("-"));
|
|
11547
|
-
};
|
|
11548
|
-
document.body.classList.add(getUIClassName(version));
|
|
11545
|
+
document.documentElement.dataset.ui = ui;
|
|
11549
11546
|
}
|
|
11550
11547
|
|
|
11551
11548
|
class Router {
|
|
@@ -11986,7 +11983,7 @@ class Router {
|
|
|
11986
11983
|
var _this3$kernel$bootstr3, _this3$kernel$bootstr4, _getAuth$license;
|
|
11987
11984
|
yield pendingTask;
|
|
11988
11985
|
window.DISABLE_REACT_FLUSH_SYNC = false;
|
|
11989
|
-
|
|
11986
|
+
setUIVersion(currentApp === null || currentApp === void 0 ? void 0 : currentApp.uiVersion);
|
|
11990
11987
|
main.length > 0 && mountTree(main, mountPoints.main);
|
|
11991
11988
|
portal.length > 0 && mountTree(portal, mountPoints.portal);
|
|
11992
11989
|
afterMountTree(mountPoints.main);
|