@next-core/brick-kit 2.88.1 → 2.89.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/CHANGELOG.md +16 -0
- package/dist/index.bundle.js +9 -9
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +9 -9
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.89.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.1...@next-core/brick-kit@2.89.0) (2021-11-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* refine storyboard function ([90c42c1](https://github.com/easyops-cn/next-core/commit/90c42c1f49a7d7e8297d424bd02a3957787fb8e3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* use global noCurrentApp as default ([4e18163](https://github.com/easyops-cn/next-core/commit/4e18163eeefa24cb022cb9b936746c9e7ad80e70))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.88.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.0...@next-core/brick-kit@2.88.1) (2021-11-25)
|
|
7
23
|
|
|
8
24
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -1419,8 +1419,6 @@
|
|
|
1419
1419
|
}
|
|
1420
1420
|
|
|
1421
1421
|
function getStoryboardFunction(name) {
|
|
1422
|
-
var _collector, _collector2, _collector3, _collector4;
|
|
1423
|
-
|
|
1424
1422
|
var fn = registeredFunctions.get(name);
|
|
1425
1423
|
|
|
1426
1424
|
if (!fn) {
|
|
@@ -1439,8 +1437,8 @@
|
|
|
1439
1437
|
|
|
1440
1438
|
var precooked = brickUtils.precookFunction(fn.source, {
|
|
1441
1439
|
typescript: fn.typescript,
|
|
1442
|
-
hooks: {
|
|
1443
|
-
beforeVisit:
|
|
1440
|
+
hooks: collector && {
|
|
1441
|
+
beforeVisit: collector.beforeVisit
|
|
1444
1442
|
}
|
|
1445
1443
|
});
|
|
1446
1444
|
fn.cooked = brickUtils.cook(precooked.function, fn.source, {
|
|
@@ -1451,10 +1449,10 @@
|
|
|
1451
1449
|
// Functions can call other functions.
|
|
1452
1450
|
FN: storyboardFunctions
|
|
1453
1451
|
}),
|
|
1454
|
-
hooks: {
|
|
1455
|
-
beforeEvaluate:
|
|
1456
|
-
beforeCall:
|
|
1457
|
-
beforeBranch:
|
|
1452
|
+
hooks: collector && {
|
|
1453
|
+
beforeEvaluate: collector.beforeEvaluate,
|
|
1454
|
+
beforeCall: collector.beforeCall,
|
|
1455
|
+
beforeBranch: collector.beforeBranch
|
|
1458
1456
|
}
|
|
1459
1457
|
});
|
|
1460
1458
|
fn.processed = true;
|
|
@@ -9292,6 +9290,8 @@
|
|
|
9292
9290
|
};
|
|
9293
9291
|
|
|
9294
9292
|
if (storyboard) {
|
|
9293
|
+
var _currentApp$breadcrum, _currentApp$breadcrum2;
|
|
9294
|
+
|
|
9295
9295
|
if (appChanged && currentApp.id && isLoggedIn()) {
|
|
9296
9296
|
var usedCustomApis = brickUtils.mapCustomApisToNameAndNamespace(brickUtils.scanCustomApisInStoryboard(storyboard));
|
|
9297
9297
|
|
|
@@ -9308,7 +9308,7 @@
|
|
|
9308
9308
|
appBar: {
|
|
9309
9309
|
breadcrumb: [],
|
|
9310
9310
|
documentId: null,
|
|
9311
|
-
noCurrentApp: false
|
|
9311
|
+
noCurrentApp: (_currentApp$breadcrum = (_currentApp$breadcrum2 = currentApp.breadcrumb) === null || _currentApp$breadcrum2 === void 0 ? void 0 : _currentApp$breadcrum2.noCurrentApp) !== null && _currentApp$breadcrum !== void 0 ? _currentApp$breadcrum : false
|
|
9312
9312
|
},
|
|
9313
9313
|
flags: {
|
|
9314
9314
|
redirect: undefined,
|