@next-core/brick-kit 2.178.17 → 2.179.0
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 +18 -0
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +18 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/core/setUIClassName.d.ts +2 -0
- package/dist/types/core/setUIClassName.d.ts.map +1 -0
- package/package.json +6 -6
package/dist/index.bundle.js
CHANGED
|
@@ -11496,6 +11496,23 @@
|
|
|
11496
11496
|
end: triggerHttpCache("http:cache.end")
|
|
11497
11497
|
};
|
|
11498
11498
|
|
|
11499
|
+
function setUIClassName() {
|
|
11500
|
+
var version = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "8";
|
|
11501
|
+
var lastVersion = "";
|
|
11502
|
+
document.body.classList.forEach(item => {
|
|
11503
|
+
if (item.startsWith("ui")) {
|
|
11504
|
+
lastVersion = item;
|
|
11505
|
+
}
|
|
11506
|
+
});
|
|
11507
|
+
if (lastVersion) {
|
|
11508
|
+
document.body.classList.remove(lastVersion);
|
|
11509
|
+
}
|
|
11510
|
+
var getUIClassName = version => {
|
|
11511
|
+
return "ui-v".concat(version.split(".").join("-"));
|
|
11512
|
+
};
|
|
11513
|
+
document.body.classList.add(getUIClassName(version));
|
|
11514
|
+
}
|
|
11515
|
+
|
|
11499
11516
|
class Router {
|
|
11500
11517
|
constructor(kernel) {
|
|
11501
11518
|
_defineProperty__default["default"](this, "defaultCollapsed", false);
|
|
@@ -11934,6 +11951,7 @@
|
|
|
11934
11951
|
var _this3$kernel$bootstr3, _this3$kernel$bootstr4, _getAuth$license;
|
|
11935
11952
|
yield pendingTask;
|
|
11936
11953
|
window.DISABLE_REACT_FLUSH_SYNC = false;
|
|
11954
|
+
setUIClassName(currentApp === null || currentApp === void 0 ? void 0 : currentApp.uiVersion);
|
|
11937
11955
|
main.length > 0 && mountTree(main, mountPoints.main);
|
|
11938
11956
|
portal.length > 0 && mountTree(portal, mountPoints.portal);
|
|
11939
11957
|
afterMountTree(mountPoints.main);
|