@next-core/brick-kit 2.121.1 → 2.122.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
|
@@ -9,7 +9,7 @@ import { ExclamationCircleOutlined } from '@ant-design/icons';
|
|
|
9
9
|
import i18next, { getFixedT } from 'i18next';
|
|
10
10
|
import { parsePath, createBrowserHistory, locationsAreEqual, createPath } from 'history';
|
|
11
11
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
|
-
import { JsonStorage, toPath, computeRealRoutePath, hasOwnProperty, isObject, isEvaluable, transformAndInject, transform, trackContext, trackState, scanPermissionActionsInStoryboard, precookFunction, cook, resolveContextConcurrently, syncResolveContextConcurrently, shouldAllowRecursiveEvaluations, preevaluate, inject, deepFreeze, createProviderClass, loadScript, getTemplateDepsOfStoryboard, getDllAndDepsOfStoryboard, asyncProcessStoryboard, getDllAndDepsByResource, scanRouteAliasInStoryboard, prefetchScript, scanBricksInBrickConf, scanProcessorsInAny, matchPath, scanAppGetMenuInAny, asyncProcessBrick, restoreDynamicTemplates,
|
|
12
|
+
import { JsonStorage, toPath, computeRealRoutePath, hasOwnProperty, isObject, isEvaluable, transformAndInject, transform, trackContext, trackState, scanPermissionActionsInStoryboard, precookFunction, cook, resolveContextConcurrently, syncResolveContextConcurrently, shouldAllowRecursiveEvaluations, preevaluate, inject, deepFreeze, createProviderClass, loadScript, getTemplateDepsOfStoryboard, getDllAndDepsOfStoryboard, asyncProcessStoryboard, getDllAndDepsByResource, scanRouteAliasInStoryboard, prefetchScript, scanBricksInBrickConf, scanProcessorsInAny, matchPath, scanAppGetMenuInAny, asyncProcessBrick, restoreDynamicTemplates, scanStoryboard, mapCustomApisToNameAndNamespace } from '@next-core/brick-utils';
|
|
13
13
|
import lodash, { set, get, difference, identity, uniqueId, cloneDeep, clamp, isNil, sortBy, merge, pick, orderBy, omit, findLastIndex, noop, isObject as isObject$1, isString } from 'lodash';
|
|
14
14
|
import moment from 'moment';
|
|
15
15
|
import { pipes } from '@next-core/pipes';
|
|
@@ -9597,8 +9597,9 @@ class LocationContext {
|
|
|
9597
9597
|
|
|
9598
9598
|
yield _this6.resolver.resolve(brickConf, brick, context);
|
|
9599
9599
|
var expandedBrickConf = brickConf;
|
|
9600
|
+
var isBaseLayout = ["base-layout.tpl-homepage-base-module", "base-layout.tpl-base-page-module"].includes(tplTagName);
|
|
9600
9601
|
|
|
9601
|
-
if (tplTagName) {
|
|
9602
|
+
if (tplTagName && (!isBaseLayout || _this6.kernel.getFeatureFlags()["support-ui-8.0-base-layout"] && isBaseLayout)) {
|
|
9602
9603
|
var _customTemplateRegist;
|
|
9603
9604
|
|
|
9604
9605
|
yield _this6.preFetchMenu((_customTemplateRegist = customTemplateRegistry.get(tplTagName)) === null || _customTemplateRegist === void 0 ? void 0 : _customTemplateRegist.bricks);
|
|
@@ -10574,14 +10575,20 @@ class Router {
|
|
|
10574
10575
|
if (storyboard) {
|
|
10575
10576
|
var _currentApp$breadcrum, _currentApp$breadcrum2;
|
|
10576
10577
|
|
|
10578
|
+
var {
|
|
10579
|
+
bricks,
|
|
10580
|
+
customApis
|
|
10581
|
+
} = scanStoryboard(storyboard);
|
|
10582
|
+
|
|
10577
10583
|
if (appChanged && currentApp.id && isLoggedIn()) {
|
|
10578
|
-
var usedCustomApis = mapCustomApisToNameAndNamespace(
|
|
10584
|
+
var usedCustomApis = mapCustomApisToNameAndNamespace(customApis);
|
|
10579
10585
|
|
|
10580
10586
|
if (usedCustomApis !== null && usedCustomApis !== void 0 && usedCustomApis.length) {
|
|
10581
10587
|
yield _this3.kernel.loadMicroAppApiOrchestrationAsync(usedCustomApis);
|
|
10582
10588
|
}
|
|
10583
10589
|
}
|
|
10584
10590
|
|
|
10591
|
+
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;
|
|
10585
10592
|
var mountRoutesResult = {
|
|
10586
10593
|
main: [],
|
|
10587
10594
|
menuInBg: [],
|