@next-core/brick-kit 2.89.1 → 2.89.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.89.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.1...@next-core/brick-kit@2.89.2) (2021-11-25)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * get stroyboard v2 ([602d086](https://github.com/easyops-cn/next-core/commit/602d0860fc6c7c9e5ffc116ff023addb0f57efe1))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.89.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.0...@next-core/brick-kit@2.89.1) (2021-11-25)
7
18
 
8
19
 
@@ -4769,6 +4769,26 @@
4769
4769
  return _ref.apply(this, arguments);
4770
4770
  };
4771
4771
  }();
4772
+ /**
4773
+ * @description 获取app storyboard初始化信息
4774
+ * @endpoint GET /api/auth/v2/bootstrap/:appId
4775
+ */
4776
+
4777
+
4778
+ var BootstrapV2Api_getAppStoryboardV2 = /*#__PURE__*/function () {
4779
+ var _ref = _asyncToGenerator__default["default"](function* (appId, params, options) {
4780
+ return (
4781
+ /**! @contract easyops.api.api_gateway.bootstrap_v2.GetAppStoryboardV2@1.0.0 */
4782
+ (yield brickHttp.http.get("api/auth/v2/bootstrap/".concat(appId), _objectSpread__default["default"](_objectSpread__default["default"]({}, options), {}, {
4783
+ params
4784
+ }))).data
4785
+ );
4786
+ });
4787
+
4788
+ return function BootstrapV2Api_getAppStoryboardV2(_x, _x2, _x3) {
4789
+ return _ref.apply(this, arguments);
4790
+ };
4791
+ }();
4772
4792
  /**
4773
4793
  * @description 通过defaultOrg查找单个契约信息
4774
4794
  * @endpoint POST /api/contract/single_search
@@ -6288,11 +6308,12 @@
6288
6308
  $$fulfilled: true
6289
6309
  });
6290
6310
  } else {
6311
+ /* istanbul ignore next */
6291
6312
  var {
6292
6313
  routes,
6293
6314
  meta,
6294
6315
  app
6295
- } = yield getAppStoryboard(storyboard.app.id);
6316
+ } = yield localStorage.getItem("__$$use-bootstrap-v2-provider$$__") ? BootstrapV2Api_getAppStoryboardV2(storyboard.app.id, {}) : getAppStoryboard(storyboard.app.id);
6296
6317
  Object.assign(storyboard, {
6297
6318
  routes,
6298
6319
  meta,