@next-core/brick-kit 2.137.1 → 2.137.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/dist/index.esm.js
CHANGED
|
@@ -8390,6 +8390,10 @@ function expandCustomTemplate(brickConf, proxyBrick, context) {
|
|
|
8390
8390
|
var tplContext = new CustomTemplateContext(proxyBrick);
|
|
8391
8391
|
var template = customTemplateRegistry.get(brickConf.brick);
|
|
8392
8392
|
|
|
8393
|
+
if (template.contracts) {
|
|
8394
|
+
collectWidgetContract(template.contracts);
|
|
8395
|
+
}
|
|
8396
|
+
|
|
8393
8397
|
if (Array.isArray(template.state)) {
|
|
8394
8398
|
tplContext.state.syncDefine(template.state, context, proxyBrick);
|
|
8395
8399
|
}
|
|
@@ -8405,6 +8409,10 @@ function _asyncExpandCustomTemplate() {
|
|
|
8405
8409
|
var tplContext = new CustomTemplateContext(proxyBrick);
|
|
8406
8410
|
var template = customTemplateRegistry.get(brickConf.brick);
|
|
8407
8411
|
|
|
8412
|
+
if (template.contracts) {
|
|
8413
|
+
collectWidgetContract(template.contracts);
|
|
8414
|
+
}
|
|
8415
|
+
|
|
8408
8416
|
if (Array.isArray(template.state)) {
|
|
8409
8417
|
yield tplContext.state.define(template.state, context, proxyBrick);
|
|
8410
8418
|
}
|
|
@@ -8418,8 +8426,7 @@ function lowLevelExpandCustomTemplate(template, brickConf, proxyBrick, context,
|
|
|
8418
8426
|
var {
|
|
8419
8427
|
bricks,
|
|
8420
8428
|
proxy,
|
|
8421
|
-
state
|
|
8422
|
-
contracts
|
|
8429
|
+
state
|
|
8423
8430
|
} = template;
|
|
8424
8431
|
|
|
8425
8432
|
var {
|
|
@@ -8435,11 +8442,6 @@ function lowLevelExpandCustomTemplate(template, brickConf, proxyBrick, context,
|
|
|
8435
8442
|
proxyBrick.proxy = proxyCopy;
|
|
8436
8443
|
proxyBrick.proxyRefs = new Map();
|
|
8437
8444
|
proxyBrick.stateNames = state === null || state === void 0 ? void 0 : state.map(item => item.name);
|
|
8438
|
-
|
|
8439
|
-
if (contracts) {
|
|
8440
|
-
collectWidgetContract(contracts);
|
|
8441
|
-
}
|
|
8442
|
-
|
|
8443
8445
|
var refToBrickConf = collectRefsInTemplate(template); // Reversed proxies are used for expand storyboard before rendering page.
|
|
8444
8446
|
|
|
8445
8447
|
var reversedProxies = {
|