@next-core/brick-kit 2.86.0 → 2.88.1
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 +42 -0
- package/dist/index.bundle.js +36 -17
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +36 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Kernel.d.ts.map +1 -1
- package/dist/types/core/LocationContext.d.ts +1 -0
- package/dist/types/core/LocationContext.d.ts.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/core/Runtime.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -2401,11 +2401,15 @@ var fakeTplContext;
|
|
|
2401
2401
|
/* istanbul ignore next */
|
|
2402
2402
|
|
|
2403
2403
|
function _dev_only_getBrickPackages() {
|
|
2404
|
+
// eslint-disable-next-line no-console
|
|
2405
|
+
console.warn("`_dev_only_getBrickPackages()` is deprecated and will always return an empty array, please use `(await BootstrapV2Api_brickPackageInfo()).bricks` instead");
|
|
2404
2406
|
return kernel.bootstrapData.brickPackages;
|
|
2405
2407
|
}
|
|
2406
2408
|
/* istanbul ignore next */
|
|
2407
2409
|
|
|
2408
2410
|
function _dev_only_getTemplatePackages() {
|
|
2411
|
+
// eslint-disable-next-line no-console
|
|
2412
|
+
console.warn("`_dev_only_getTemplatePackages()` is deprecated and will always return an empty array, please use `(await BootstrapV2Api_brickPackageInfo()).templates` instead");
|
|
2409
2413
|
return kernel.bootstrapData.templatePackages;
|
|
2410
2414
|
}
|
|
2411
2415
|
/* istanbul ignore next */
|
|
@@ -4730,6 +4734,26 @@ function clearPollTimeout() {
|
|
|
4730
4734
|
timeoutIdList.clear();
|
|
4731
4735
|
}
|
|
4732
4736
|
|
|
4737
|
+
/**
|
|
4738
|
+
* @description 获取系统初始化信息
|
|
4739
|
+
* @endpoint GET /api/auth/v2/bootstrap
|
|
4740
|
+
*/
|
|
4741
|
+
|
|
4742
|
+
|
|
4743
|
+
var BootstrapV2Api_bootstrapV2 = /*#__PURE__*/function () {
|
|
4744
|
+
var _ref = _asyncToGenerator$4(function* (params, options) {
|
|
4745
|
+
return (
|
|
4746
|
+
/**! @contract easyops.api.api_gateway.bootstrap_v2.BootstrapV2@1.0.0 */
|
|
4747
|
+
(yield http.get("api/auth/v2/bootstrap", _objectSpread(_objectSpread({}, options), {}, {
|
|
4748
|
+
params
|
|
4749
|
+
}))).data
|
|
4750
|
+
);
|
|
4751
|
+
});
|
|
4752
|
+
|
|
4753
|
+
return function BootstrapV2Api_bootstrapV2(_x, _x2) {
|
|
4754
|
+
return _ref.apply(this, arguments);
|
|
4755
|
+
};
|
|
4756
|
+
}();
|
|
4733
4757
|
/**
|
|
4734
4758
|
* @description 通过defaultOrg查找单个契约信息
|
|
4735
4759
|
* @endpoint POST /api/contract/single_search
|
|
@@ -4739,7 +4763,7 @@ function clearPollTimeout() {
|
|
|
4739
4763
|
var ContractApi_searchSingleContract = /*#__PURE__*/function () {
|
|
4740
4764
|
var _ref = _asyncToGenerator$4(function* (data, options) {
|
|
4741
4765
|
return (
|
|
4742
|
-
/**! @contract easyops.api.api_gateway.contract.SearchSingleContract */
|
|
4766
|
+
/**! @contract easyops.api.api_gateway.contract.SearchSingleContract@1.0.0 */
|
|
4743
4767
|
(yield http.post("api/contract/single_search", data, options)).data
|
|
4744
4768
|
);
|
|
4745
4769
|
});
|
|
@@ -5743,18 +5767,6 @@ var checkLogin = /*#__PURE__*/function () {
|
|
|
5743
5767
|
};
|
|
5744
5768
|
}();
|
|
5745
5769
|
|
|
5746
|
-
var bootstrap = /*#__PURE__*/function () {
|
|
5747
|
-
var _ref3 = _asyncToGenerator$1(function* (params, options) {
|
|
5748
|
-
return (yield http.get("api/auth/bootstrap", _objectSpread2(_objectSpread2({}, options), {}, {
|
|
5749
|
-
params
|
|
5750
|
-
}))).data;
|
|
5751
|
-
});
|
|
5752
|
-
|
|
5753
|
-
return function bootstrap(_x4, _x5) {
|
|
5754
|
-
return _ref3.apply(this, arguments);
|
|
5755
|
-
};
|
|
5756
|
-
}();
|
|
5757
|
-
|
|
5758
5770
|
var getAppStoryboard = /*#__PURE__*/function () {
|
|
5759
5771
|
var _ref4 = _asyncToGenerator$1(function* (appId, params, options) {
|
|
5760
5772
|
return (yield http.get("api/auth/bootstrap/".concat(appId), _objectSpread2(_objectSpread2({}, options), {}, {
|
|
@@ -6192,8 +6204,10 @@ class Kernel {
|
|
|
6192
6204
|
var _this3 = this;
|
|
6193
6205
|
|
|
6194
6206
|
return _asyncToGenerator$4(function* () {
|
|
6195
|
-
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() :
|
|
6196
|
-
|
|
6207
|
+
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : BootstrapV2Api_bootstrapV2(_objectSpread({
|
|
6208
|
+
appFields: "defaultConfig,userConfig,locales,name,homepage,id,currentVersion,installStatus,internal,status",
|
|
6209
|
+
ignoreTemplateFields: "templates",
|
|
6210
|
+
ignoreBrickFields: "bricks,processors,providers,editors"
|
|
6197
6211
|
}, params), {
|
|
6198
6212
|
interceptorParams
|
|
6199
6213
|
});
|
|
@@ -6244,11 +6258,13 @@ class Kernel {
|
|
|
6244
6258
|
} else {
|
|
6245
6259
|
var {
|
|
6246
6260
|
routes,
|
|
6247
|
-
meta
|
|
6261
|
+
meta,
|
|
6262
|
+
app
|
|
6248
6263
|
} = yield getAppStoryboard(storyboard.app.id);
|
|
6249
6264
|
Object.assign(storyboard, {
|
|
6250
6265
|
routes,
|
|
6251
6266
|
meta,
|
|
6267
|
+
app: _objectSpread(_objectSpread({}, storyboard.app), app),
|
|
6252
6268
|
$$fulfilled: true
|
|
6253
6269
|
});
|
|
6254
6270
|
}
|
|
@@ -8168,6 +8184,8 @@ class LocationContext {
|
|
|
8168
8184
|
} else {
|
|
8169
8185
|
mountRoutesResult.appBar.breadcrumb = [...mountRoutesResult.appBar.breadcrumb, ...breadcrumb.items];
|
|
8170
8186
|
}
|
|
8187
|
+
|
|
8188
|
+
if (hasOwnProperty(breadcrumb, "noCurrentApp")) mountRoutesResult.appBar.noCurrentApp = breadcrumb.noCurrentApp;
|
|
8171
8189
|
}
|
|
8172
8190
|
})();
|
|
8173
8191
|
}
|
|
@@ -9272,7 +9290,8 @@ class Router {
|
|
|
9272
9290
|
portal: [],
|
|
9273
9291
|
appBar: {
|
|
9274
9292
|
breadcrumb: [],
|
|
9275
|
-
documentId: null
|
|
9293
|
+
documentId: null,
|
|
9294
|
+
noCurrentApp: false
|
|
9276
9295
|
},
|
|
9277
9296
|
flags: {
|
|
9278
9297
|
redirect: undefined,
|