@next-core/brick-kit 2.126.2 → 2.127.2
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/CHANGELOG.md +30 -0
- package/dist/index.bundle.js +12 -6
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +12 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/LocationContext.d.ts.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/internal/devtools.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -1137,10 +1137,16 @@ var TRANSFORMATION_EDIT = "devtools-transformation-edit";
|
|
|
1137
1137
|
|
|
1138
1138
|
/* istanbul ignore next */
|
|
1139
1139
|
function devtoolsHookEmit(type, payload) {
|
|
1140
|
+
var devtools = getDevHook();
|
|
1141
|
+
|
|
1142
|
+
if (!devtools) {
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1140
1146
|
var emit = () => {
|
|
1141
|
-
var
|
|
1147
|
+
var _devtools$emit;
|
|
1142
1148
|
|
|
1143
|
-
(
|
|
1149
|
+
(_devtools$emit = devtools.emit) === null || _devtools$emit === void 0 ? void 0 : _devtools$emit.call(devtools, {
|
|
1144
1150
|
type,
|
|
1145
1151
|
payload
|
|
1146
1152
|
});
|
|
@@ -1196,9 +1202,9 @@ function getDevHook() {
|
|
|
1196
1202
|
}
|
|
1197
1203
|
|
|
1198
1204
|
function restoreDehydrated(value) {
|
|
1199
|
-
var _getDevHook$restoreDe,
|
|
1205
|
+
var _getDevHook$restoreDe, _getDevHook;
|
|
1200
1206
|
|
|
1201
|
-
return (_getDevHook$restoreDe = (
|
|
1207
|
+
return (_getDevHook$restoreDe = (_getDevHook = getDevHook()) === null || _getDevHook === void 0 ? void 0 : _getDevHook.restoreDehydrated(value)) !== null && _getDevHook$restoreDe !== void 0 ? _getDevHook$restoreDe : value;
|
|
1202
1208
|
}
|
|
1203
1209
|
|
|
1204
1210
|
function getItemFactory(storageType) {
|
|
@@ -10641,7 +10647,7 @@ class LocationContext {
|
|
|
10641
10647
|
|
|
10642
10648
|
yield _this6.resolver.resolve(brickConf, brick, context);
|
|
10643
10649
|
var expandedBrickConf = brickConf;
|
|
10644
|
-
var isBaseLayout = ["base-layout.tpl-homepage-base-module", "base-layout.tpl-base-page-module"].includes(tplTagName);
|
|
10650
|
+
var isBaseLayout = ["base-layout.tpl-homepage-base-module", "base-layout.tpl-base-page-module", "base-layout.tpl-homepage-base-module-cmdb", "base-layout.tpl-base-page-module-cmdb"].includes(tplTagName);
|
|
10645
10651
|
|
|
10646
10652
|
if (tplTagName && (!isBaseLayout || _this6.kernel.getFeatureFlags()["support-ui-8.0-base-layout"] && isBaseLayout)) {
|
|
10647
10653
|
var _customTemplateRegist;
|
|
@@ -11792,7 +11798,7 @@ class Router {
|
|
|
11792
11798
|
}
|
|
11793
11799
|
}
|
|
11794
11800
|
|
|
11795
|
-
layoutType = bricks.some(brick => ["base-layout.tpl-base-page-module", "base-layout.tpl-homepage-base-module"].includes(brick)) && layoutType === "business" && !_this3.featureFlags["support-ui-8.0-base-layout"] ? "console" : layoutType;
|
|
11801
|
+
layoutType = bricks.some(brick => ["base-layout.tpl-base-page-module", "base-layout.tpl-homepage-base-module", "base-layout.tpl-homepage-base-module-cmdb", "base-layout.tpl-base-page-module-cmdb"].includes(brick)) && layoutType === "business" && !_this3.featureFlags["support-ui-8.0-base-layout"] ? "console" : layoutType;
|
|
11796
11802
|
var mountRoutesResult = {
|
|
11797
11803
|
main: [],
|
|
11798
11804
|
menuInBg: [],
|