@next-core/brick-kit 2.179.3 → 2.179.5

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.
@@ -9057,7 +9057,7 @@
9057
9057
  path: previewPath,
9058
9058
  bricks: [_objectSpread__default["default"]({
9059
9059
  brick: templateId
9060
- }, _.pick(settings, "properties", "events", "lifeCycle", "context"))],
9060
+ }, _.pick(settings, "properties", "events", "lifeCycle", "context", "slots"))],
9061
9061
  menu: false,
9062
9062
  exact: true,
9063
9063
  hybrid: app.legacy === "iframe"
@@ -11530,21 +11530,17 @@
11530
11530
  end: triggerHttpCache("http:cache.end")
11531
11531
  };
11532
11532
 
11533
- function setUIClassName() {
11534
- var version = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "8";
11535
- var lastVersion = "";
11536
- document.body.classList.forEach(item => {
11537
- if (item.startsWith("ui")) {
11538
- lastVersion = item;
11539
- }
11540
- });
11541
- if (lastVersion) {
11542
- document.body.classList.remove(lastVersion);
11533
+ function setUIVersion(version) {
11534
+ // 仅允许特定的 UI 版本
11535
+ var ui;
11536
+ switch (version) {
11537
+ case "8.2":
11538
+ ui = "v8-2";
11539
+ break;
11540
+ default:
11541
+ ui = "v8";
11543
11542
  }
11544
- var getUIClassName = version => {
11545
- return "ui-v".concat(version.split(".").join("-"));
11546
- };
11547
- document.body.classList.add(getUIClassName(version));
11543
+ document.documentElement.dataset.ui = ui;
11548
11544
  }
11549
11545
 
11550
11546
  class Router {
@@ -11985,7 +11981,7 @@
11985
11981
  var _this3$kernel$bootstr3, _this3$kernel$bootstr4, _getAuth$license;
11986
11982
  yield pendingTask;
11987
11983
  window.DISABLE_REACT_FLUSH_SYNC = false;
11988
- setUIClassName(currentApp === null || currentApp === void 0 ? void 0 : currentApp.uiVersion);
11984
+ setUIVersion(currentApp === null || currentApp === void 0 ? void 0 : currentApp.uiVersion);
11989
11985
  main.length > 0 && mountTree(main, mountPoints.main);
11990
11986
  portal.length > 0 && mountTree(portal, mountPoints.portal);
11991
11987
  afterMountTree(mountPoints.main);