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