@next-core/brick-kit 2.142.0 → 2.144.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 CHANGED
@@ -3,6 +3,33 @@
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.144.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.143.0...@next-core/brick-kit@2.144.0) (2022-09-25)
7
+
8
+
9
+ ### Features
10
+
11
+ * support micro-app jump to standalone-app ([b469a35](https://github.com/easyops-cn/next-core/commit/b469a35858bb01d3bb8f0032ed70df4b63e69d0f))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.143.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.142.0...@next-core/brick-kit@2.143.0) (2022-09-25)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * target/ targetRef 能够获取事件信息 ([c7cbd24](https://github.com/easyops-cn/next-core/commit/c7cbd24aa335a68d582ec183b3c600b6e41ca127))
23
+
24
+
25
+ ### Features
26
+
27
+ * bootstrap add standaloneMode field ([676cd23](https://github.com/easyops-cn/next-core/commit/676cd238e49713afe885feec5f73d5ff3ffaa8d1))
28
+
29
+
30
+
31
+
32
+
6
33
  # [2.142.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.141.2...@next-core/brick-kit@2.142.0) (2022-09-20)
7
34
 
8
35
 
@@ -6716,7 +6716,9 @@
6716
6716
  var computedTarget = rawTarget; // Allow `target` to be set as evaluable string.
6717
6717
 
6718
6718
  if (typeof rawTarget === "string" ? brickUtils.isEvaluable(rawTarget) : isPreEvaluated(rawTarget)) {
6719
- computedTarget = computeRealValue(rawTarget, context);
6719
+ computedTarget = computeRealValue(rawTarget, _objectSpread__default["default"](_objectSpread__default["default"]({}, context), {}, {
6720
+ event
6721
+ }));
6720
6722
  }
6721
6723
 
6722
6724
  if (typeof computedTarget === "string") {
@@ -6742,7 +6744,9 @@
6742
6744
  var computedTargetRef = rawTargetRef; // Allow `targetRef` to be set as evaluable string.
6743
6745
 
6744
6746
  if (typeof rawTargetRef === "string" ? brickUtils.isEvaluable(rawTargetRef) : isPreEvaluated(rawTargetRef)) {
6745
- computedTargetRef = computeRealValue(rawTargetRef, context, true);
6747
+ computedTargetRef = computeRealValue(rawTargetRef, _objectSpread__default["default"](_objectSpread__default["default"]({}, context), {}, {
6748
+ event
6749
+ }), true);
6746
6750
  }
6747
6751
 
6748
6752
  var tpl = getTplContext(context.tplContextId).getBrick().element;
@@ -9194,7 +9198,7 @@
9194
9198
 
9195
9199
  return _asyncToGenerator__default["default"](function* () {
9196
9200
  var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : BootstrapV2Api_bootstrapV2(_objectSpread__default["default"]({
9197
- appFields: "defaultConfig,userConfig,locales,name,homepage,id,currentVersion,installStatus,internal,status,icons",
9201
+ appFields: "defaultConfig,userConfig,locales,name,homepage,id,currentVersion,installStatus,internal,status,icons,standaloneMode",
9198
9202
  ignoreTemplateFields: "templates",
9199
9203
  ignoreBrickFields: "bricks,processors,providers,editors"
9200
9204
  }, params), {
@@ -12069,6 +12073,16 @@
12069
12073
  if (storyboard) {
12070
12074
  var _storyboard$meta, _storyboard$meta2, _storyboard$meta3;
12071
12075
 
12076
+ if (!window.STANDALONE_MICRO_APPS) {
12077
+ if (storyboard.app.standaloneMode) {
12078
+ // if nextApp was standalone micro-apps, use location.replace to reload window;
12079
+ var path = history.createHref({
12080
+ pathname: storyboard.app.homepage
12081
+ });
12082
+ window.location.replace(path);
12083
+ }
12084
+ }
12085
+
12072
12086
  yield _this3.kernel.fulfilStoryboard(storyboard); // 将动态解析后的模板还原,以便重新动态解析。
12073
12087
 
12074
12088
  brickUtils.restoreDynamicTemplates(storyboard); // 预加载权限信息