@next-core/brick-kit 2.154.15 → 2.154.16
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
|
@@ -10975,7 +10975,7 @@ class LocationContext {
|
|
|
10975
10975
|
return _asyncToGenerator$3(function* () {
|
|
10976
10976
|
for (var brickConf of bricks) {
|
|
10977
10977
|
try {
|
|
10978
|
-
yield _this5.mountBrick(brickConf, match, slotId, mountRoutesResult, tplStack
|
|
10978
|
+
yield _this5.mountBrick(brickConf, match, slotId, mountRoutesResult, tplStack && new Map(tplStack));
|
|
10979
10979
|
} catch (error) {
|
|
10980
10980
|
if (error instanceof ResolveRequestError) {
|
|
10981
10981
|
var errorMessage = httpErrorToString(error.rawError);
|
|
@@ -11034,7 +11034,7 @@ class LocationContext {
|
|
|
11034
11034
|
return _asyncToGenerator$3(function* () {
|
|
11035
11035
|
var _this7$kernel$nextApp, _brickConf$lifeCycle, _brick$lifeCycle;
|
|
11036
11036
|
|
|
11037
|
-
var tplStack = _arguments.length > 4 && _arguments[4] !== undefined ? _arguments[4] :
|
|
11037
|
+
var tplStack = _arguments.length > 4 && _arguments[4] !== undefined ? _arguments[4] : new Map();
|
|
11038
11038
|
var tplContextId = brickConf[symbolForTplContextId];
|
|
11039
11039
|
var formContextId = brickConf[symbolForFormContextId];
|
|
11040
11040
|
|
|
@@ -11064,11 +11064,15 @@ class LocationContext {
|
|
|
11064
11064
|
var tplTagName = getTagNameOfCustomTemplate(brickConf.brick, (_this7$kernel$nextApp = _this7.kernel.nextApp) === null || _this7$kernel$nextApp === void 0 ? void 0 : _this7$kernel$nextApp.id);
|
|
11065
11065
|
|
|
11066
11066
|
if (tplTagName) {
|
|
11067
|
-
|
|
11068
|
-
|
|
11067
|
+
var _tplStack$get;
|
|
11068
|
+
|
|
11069
|
+
var tplCount = (_tplStack$get = tplStack.get(tplTagName)) !== null && _tplStack$get !== void 0 ? _tplStack$get : 0;
|
|
11070
|
+
|
|
11071
|
+
if (tplCount >= 10) {
|
|
11072
|
+
throw new Error("Maximum custom template stack overflowed: \"".concat(tplTagName, "\""));
|
|
11069
11073
|
}
|
|
11070
11074
|
|
|
11071
|
-
tplStack.
|
|
11075
|
+
tplStack.set(tplTagName, tplCount + 1);
|
|
11072
11076
|
}
|
|
11073
11077
|
|
|
11074
11078
|
if (brickConf.brick === formRenderer) {
|