@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.
- package/dist/index.bundle.js +12 -16
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +12 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Kernel.d.ts.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
|
@@ -9059,7 +9059,7 @@ class Kernel {
|
|
|
9059
9059
|
path: previewPath,
|
|
9060
9060
|
bricks: [_objectSpread({
|
|
9061
9061
|
brick: templateId
|
|
9062
|
-
}, pick(settings, "properties", "events", "lifeCycle", "context"))],
|
|
9062
|
+
}, pick(settings, "properties", "events", "lifeCycle", "context", "slots"))],
|
|
9063
9063
|
menu: false,
|
|
9064
9064
|
exact: true,
|
|
9065
9065
|
hybrid: app.legacy === "iframe"
|
|
@@ -11532,21 +11532,17 @@ var httpCacheRecord = {
|
|
|
11532
11532
|
end: triggerHttpCache("http:cache.end")
|
|
11533
11533
|
};
|
|
11534
11534
|
|
|
11535
|
-
function
|
|
11536
|
-
|
|
11537
|
-
var
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
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";
|
|
11545
11544
|
}
|
|
11546
|
-
|
|
11547
|
-
return "ui-v".concat(version.split(".").join("-"));
|
|
11548
|
-
};
|
|
11549
|
-
document.body.classList.add(getUIClassName(version));
|
|
11545
|
+
document.documentElement.dataset.ui = ui;
|
|
11550
11546
|
}
|
|
11551
11547
|
|
|
11552
11548
|
class Router {
|
|
@@ -11987,7 +11983,7 @@ class Router {
|
|
|
11987
11983
|
var _this3$kernel$bootstr3, _this3$kernel$bootstr4, _getAuth$license;
|
|
11988
11984
|
yield pendingTask;
|
|
11989
11985
|
window.DISABLE_REACT_FLUSH_SYNC = false;
|
|
11990
|
-
|
|
11986
|
+
setUIVersion(currentApp === null || currentApp === void 0 ? void 0 : currentApp.uiVersion);
|
|
11991
11987
|
main.length > 0 && mountTree(main, mountPoints.main);
|
|
11992
11988
|
portal.length > 0 && mountTree(portal, mountPoints.portal);
|
|
11993
11989
|
afterMountTree(mountPoints.main);
|