@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/dist/index.esm.js CHANGED
@@ -4752,6 +4752,26 @@ var BootstrapV2Api_bootstrapV2 = /*#__PURE__*/function () {
4752
4752
  return _ref.apply(this, arguments);
4753
4753
  };
4754
4754
  }();
4755
+ /**
4756
+ * @description 获取app storyboard初始化信息
4757
+ * @endpoint GET /api/auth/v2/bootstrap/:appId
4758
+ */
4759
+
4760
+
4761
+ var BootstrapV2Api_getAppStoryboardV2 = /*#__PURE__*/function () {
4762
+ var _ref = _asyncToGenerator$4(function* (appId, params, options) {
4763
+ return (
4764
+ /**! @contract easyops.api.api_gateway.bootstrap_v2.GetAppStoryboardV2@1.0.0 */
4765
+ (yield http.get("api/auth/v2/bootstrap/".concat(appId), _objectSpread(_objectSpread({}, options), {}, {
4766
+ params
4767
+ }))).data
4768
+ );
4769
+ });
4770
+
4771
+ return function BootstrapV2Api_getAppStoryboardV2(_x, _x2, _x3) {
4772
+ return _ref.apply(this, arguments);
4773
+ };
4774
+ }();
4755
4775
  /**
4756
4776
  * @description 通过defaultOrg查找单个契约信息
4757
4777
  * @endpoint POST /api/contract/single_search
@@ -6271,11 +6291,12 @@ class Kernel {
6271
6291
  $$fulfilled: true
6272
6292
  });
6273
6293
  } else {
6294
+ /* istanbul ignore next */
6274
6295
  var {
6275
6296
  routes,
6276
6297
  meta,
6277
6298
  app
6278
- } = yield getAppStoryboard(storyboard.app.id);
6299
+ } = yield localStorage.getItem("__$$use-bootstrap-v2-provider$$__") ? BootstrapV2Api_getAppStoryboardV2(storyboard.app.id, {}) : getAppStoryboard(storyboard.app.id);
6279
6300
  Object.assign(storyboard, {
6280
6301
  routes,
6281
6302
  meta,