@next-core/brick-kit 2.90.1 → 2.90.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 +11 -0
- package/dist/index.bundle.js +12 -91
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +105 -184
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Kernel.d.ts.map +1 -1
- package/package.json +2 -2
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.90.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.1...@next-core/brick-kit@2.90.2) (2021-12-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove flags ([ed7f66b](https://github.com/easyops-cn/next-core/commit/ed7f66b40c5be427171ec5fc8817eee64c499f60))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.90.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.0...@next-core/brick-kit@2.90.1) (2021-11-29)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @next-core/brick-kit
|
package/dist/index.bundle.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('history'), require('@babel/runtime/helpers/objectSpread2'), require('@babel/runtime/helpers/objectWithoutProperties'), require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/helpers/defineProperty'), require('react'), require('lodash'), require('@next-core/brick-utils'), require('@next-core/brick-http'), require('i18next'), require('moment'), require('@next-core/pipes'), require('@next-core/easyops-analytics'), require('js-yaml'), require('antd'), require('@ant-design/icons'), require('react-i18next'), require('@babel/runtime/helpers/esm/extends'), require('@next-core/illustrations'), require('@babel/runtime/helpers/decorate')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', 'history', '@babel/runtime/helpers/objectSpread2', '@babel/runtime/helpers/objectWithoutProperties', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/helpers/defineProperty', 'react', 'lodash', '@next-core/brick-utils', '@next-core/brick-http', 'i18next', 'moment', '@next-core/pipes', '@next-core/easyops-analytics', 'js-yaml', 'antd', '@ant-design/icons', 'react-i18next', '@babel/runtime/helpers/esm/extends', '@next-core/illustrations', '@babel/runtime/helpers/decorate'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BrickKit = {}, global.history$1, global._objectSpread, global._objectWithoutProperties, global._asyncToGenerator$4, global._defineProperty$
|
|
5
|
-
})(this, (function (exports, history$1, _objectSpread, _objectWithoutProperties, _asyncToGenerator$4, _defineProperty$
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BrickKit = {}, global.history$1, global._objectSpread, global._objectWithoutProperties, global._asyncToGenerator$4, global._defineProperty$1, global.React, global.lodash, global.brickUtils, global.brickHttp, global.i18next, global.moment, global.pipes, global.easyopsAnalytics, global.yaml, global.antd, global.icons, global.reactI18next, global._extends$2, global.illustrations, global._decorate));
|
|
5
|
+
})(this, (function (exports, history$1, _objectSpread, _objectWithoutProperties, _asyncToGenerator$4, _defineProperty$1, React, lodash, brickUtils, brickHttp, i18next, moment, pipes, easyopsAnalytics, yaml, antd, icons, reactI18next, _extends$2, illustrations, _decorate) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
28
28
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
29
29
|
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator$4);
|
|
30
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$
|
|
30
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$1);
|
|
31
31
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
32
32
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
33
|
var lodash__default = /*#__PURE__*/_interopDefaultLegacy(lodash);
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
function _defineProperty
|
|
429
|
+
function _defineProperty(obj, key, value) {
|
|
430
430
|
if (key in obj) {
|
|
431
431
|
Object.defineProperty(obj, key, {
|
|
432
432
|
value: value,
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
return obj;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
function ownKeys
|
|
444
|
+
function ownKeys(object, enumerableOnly) {
|
|
445
445
|
var keys = Object.keys(object);
|
|
446
446
|
|
|
447
447
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -455,18 +455,18 @@
|
|
|
455
455
|
return keys;
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
function _objectSpread2
|
|
458
|
+
function _objectSpread2(target) {
|
|
459
459
|
for (var i = 1; i < arguments.length; i++) {
|
|
460
460
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
461
461
|
|
|
462
462
|
if (i % 2) {
|
|
463
|
-
ownKeys
|
|
464
|
-
_defineProperty
|
|
463
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
464
|
+
_defineProperty(target, key, source[key]);
|
|
465
465
|
});
|
|
466
466
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
467
467
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
468
468
|
} else {
|
|
469
|
-
ownKeys
|
|
469
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
470
470
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
471
471
|
});
|
|
472
472
|
}
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
var _ref = _asyncToGenerator$3(function* (objectId, instanceId, params, options) {
|
|
485
485
|
return (
|
|
486
486
|
/**! @contract easyops.api.cmdb.instance.GetDetail */
|
|
487
|
-
(yield brickHttp.http.get("api/gateway/cmdb.instance.GetDetail/object/".concat(objectId, "/instance/").concat(instanceId), _objectSpread2
|
|
487
|
+
(yield brickHttp.http.get("api/gateway/cmdb.instance.GetDetail/object/".concat(objectId, "/instance/").concat(instanceId), _objectSpread2(_objectSpread2({}, options), {}, {
|
|
488
488
|
params
|
|
489
489
|
}))).data
|
|
490
490
|
);
|
|
@@ -5828,55 +5828,6 @@
|
|
|
5828
5828
|
};
|
|
5829
5829
|
}
|
|
5830
5830
|
|
|
5831
|
-
function _defineProperty(obj, key, value) {
|
|
5832
|
-
if (key in obj) {
|
|
5833
|
-
Object.defineProperty(obj, key, {
|
|
5834
|
-
value: value,
|
|
5835
|
-
enumerable: true,
|
|
5836
|
-
configurable: true,
|
|
5837
|
-
writable: true
|
|
5838
|
-
});
|
|
5839
|
-
} else {
|
|
5840
|
-
obj[key] = value;
|
|
5841
|
-
}
|
|
5842
|
-
|
|
5843
|
-
return obj;
|
|
5844
|
-
}
|
|
5845
|
-
|
|
5846
|
-
function ownKeys(object, enumerableOnly) {
|
|
5847
|
-
var keys = Object.keys(object);
|
|
5848
|
-
|
|
5849
|
-
if (Object.getOwnPropertySymbols) {
|
|
5850
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
5851
|
-
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
5852
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
5853
|
-
});
|
|
5854
|
-
keys.push.apply(keys, symbols);
|
|
5855
|
-
}
|
|
5856
|
-
|
|
5857
|
-
return keys;
|
|
5858
|
-
}
|
|
5859
|
-
|
|
5860
|
-
function _objectSpread2(target) {
|
|
5861
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
5862
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
5863
|
-
|
|
5864
|
-
if (i % 2) {
|
|
5865
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
5866
|
-
_defineProperty(target, key, source[key]);
|
|
5867
|
-
});
|
|
5868
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
5869
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
5870
|
-
} else {
|
|
5871
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
5872
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5873
|
-
});
|
|
5874
|
-
}
|
|
5875
|
-
}
|
|
5876
|
-
|
|
5877
|
-
return target;
|
|
5878
|
-
}
|
|
5879
|
-
|
|
5880
5831
|
var checkLogin = /*#__PURE__*/function () {
|
|
5881
5832
|
var _ref2 = _asyncToGenerator$1(function* (options) {
|
|
5882
5833
|
return (yield brickHttp.http.get("api/auth/login", options)).data;
|
|
@@ -5887,30 +5838,6 @@
|
|
|
5887
5838
|
};
|
|
5888
5839
|
}();
|
|
5889
5840
|
|
|
5890
|
-
var bootstrap = /*#__PURE__*/function () {
|
|
5891
|
-
var _ref3 = _asyncToGenerator$1(function* (params, options) {
|
|
5892
|
-
return (yield brickHttp.http.get("api/auth/bootstrap", _objectSpread2(_objectSpread2({}, options), {}, {
|
|
5893
|
-
params
|
|
5894
|
-
}))).data;
|
|
5895
|
-
});
|
|
5896
|
-
|
|
5897
|
-
return function bootstrap(_x4, _x5) {
|
|
5898
|
-
return _ref3.apply(this, arguments);
|
|
5899
|
-
};
|
|
5900
|
-
}();
|
|
5901
|
-
|
|
5902
|
-
var getAppStoryboard = /*#__PURE__*/function () {
|
|
5903
|
-
var _ref4 = _asyncToGenerator$1(function* (appId, params, options) {
|
|
5904
|
-
return (yield brickHttp.http.get("api/auth/bootstrap/".concat(appId), _objectSpread2(_objectSpread2({}, options), {}, {
|
|
5905
|
-
params
|
|
5906
|
-
}))).data;
|
|
5907
|
-
});
|
|
5908
|
-
|
|
5909
|
-
return function getAppStoryboard(_x6, _x7, _x8) {
|
|
5910
|
-
return _ref4.apply(this, arguments);
|
|
5911
|
-
};
|
|
5912
|
-
}();
|
|
5913
|
-
|
|
5914
5841
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5915
5842
|
try {
|
|
5916
5843
|
var info = gen[key](arg);
|
|
@@ -6336,17 +6263,12 @@
|
|
|
6336
6263
|
var _this3 = this;
|
|
6337
6264
|
|
|
6338
6265
|
return _asyncToGenerator__default["default"](function* () {
|
|
6339
|
-
|
|
6340
|
-
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : localStorage.getItem("__$$use-bootstrap-v2-provider$$__") ? BootstrapV2Api_bootstrapV2(_objectSpread__default["default"]({
|
|
6266
|
+
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : BootstrapV2Api_bootstrapV2(_objectSpread__default["default"]({
|
|
6341
6267
|
appFields: "defaultConfig,userConfig,locales,name,homepage,id,currentVersion,installStatus,internal,status",
|
|
6342
6268
|
ignoreTemplateFields: "templates",
|
|
6343
6269
|
ignoreBrickFields: "bricks,processors,providers,editors"
|
|
6344
6270
|
}, params), {
|
|
6345
6271
|
interceptorParams
|
|
6346
|
-
}) : bootstrap(_objectSpread__default["default"]({
|
|
6347
|
-
brief: true
|
|
6348
|
-
}, params), {
|
|
6349
|
-
interceptorParams
|
|
6350
6272
|
});
|
|
6351
6273
|
|
|
6352
6274
|
var bootstrapResponse = _objectSpread__default["default"]({
|
|
@@ -6393,12 +6315,11 @@
|
|
|
6393
6315
|
$$fulfilled: true
|
|
6394
6316
|
});
|
|
6395
6317
|
} else {
|
|
6396
|
-
/* istanbul ignore next */
|
|
6397
6318
|
var {
|
|
6398
6319
|
routes,
|
|
6399
6320
|
meta,
|
|
6400
6321
|
app
|
|
6401
|
-
} = yield
|
|
6322
|
+
} = yield BootstrapV2Api_getAppStoryboardV2(storyboard.app.id, {});
|
|
6402
6323
|
Object.assign(storyboard, {
|
|
6403
6324
|
routes,
|
|
6404
6325
|
meta,
|