@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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.137.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.137.1...@next-core/brick-kit@2.137.2) (2022-09-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* to collect contracts before state define ([3d7cd86](https://github.com/easyops-cn/next-core/commit/3d7cd86441b33494c387bc2053c8698a688abf71))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.137.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.137.0...@next-core/brick-kit@2.137.1) (2022-09-07)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @next-core/brick-kit
|
package/dist/index.bundle.js
CHANGED
|
@@ -8389,6 +8389,10 @@
|
|
|
8389
8389
|
var tplContext = new CustomTemplateContext(proxyBrick);
|
|
8390
8390
|
var template = customTemplateRegistry.get(brickConf.brick);
|
|
8391
8391
|
|
|
8392
|
+
if (template.contracts) {
|
|
8393
|
+
collectWidgetContract(template.contracts);
|
|
8394
|
+
}
|
|
8395
|
+
|
|
8392
8396
|
if (Array.isArray(template.state)) {
|
|
8393
8397
|
tplContext.state.syncDefine(template.state, context, proxyBrick);
|
|
8394
8398
|
}
|
|
@@ -8404,6 +8408,10 @@
|
|
|
8404
8408
|
var tplContext = new CustomTemplateContext(proxyBrick);
|
|
8405
8409
|
var template = customTemplateRegistry.get(brickConf.brick);
|
|
8406
8410
|
|
|
8411
|
+
if (template.contracts) {
|
|
8412
|
+
collectWidgetContract(template.contracts);
|
|
8413
|
+
}
|
|
8414
|
+
|
|
8407
8415
|
if (Array.isArray(template.state)) {
|
|
8408
8416
|
yield tplContext.state.define(template.state, context, proxyBrick);
|
|
8409
8417
|
}
|
|
@@ -8417,8 +8425,7 @@
|
|
|
8417
8425
|
var {
|
|
8418
8426
|
bricks,
|
|
8419
8427
|
proxy,
|
|
8420
|
-
state
|
|
8421
|
-
contracts
|
|
8428
|
+
state
|
|
8422
8429
|
} = template;
|
|
8423
8430
|
|
|
8424
8431
|
var {
|
|
@@ -8434,11 +8441,6 @@
|
|
|
8434
8441
|
proxyBrick.proxy = proxyCopy;
|
|
8435
8442
|
proxyBrick.proxyRefs = new Map();
|
|
8436
8443
|
proxyBrick.stateNames = state === null || state === void 0 ? void 0 : state.map(item => item.name);
|
|
8437
|
-
|
|
8438
|
-
if (contracts) {
|
|
8439
|
-
collectWidgetContract(contracts);
|
|
8440
|
-
}
|
|
8441
|
-
|
|
8442
8444
|
var refToBrickConf = collectRefsInTemplate(template); // Reversed proxies are used for expand storyboard before rendering page.
|
|
8443
8445
|
|
|
8444
8446
|
var reversedProxies = {
|