@next-core/brick-kit 2.102.0 → 2.103.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 +44 -0
- package/dist/index.bundle.js +9 -4
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +9 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/themeAndMode.d.ts +1 -0
- package/dist/types/themeAndMode.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
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.103.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.1...@next-core/brick-kit@2.103.2) (2022-01-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @next-core/brick-kit
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.103.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.0...@next-core/brick-kit@2.103.1) (2022-01-13)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @next-core/brick-kit
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [2.103.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.102.1...@next-core/brick-kit@2.103.0) (2022-01-12)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* refine theme ([7d6480b](https://github.com/easyops-cn/next-core/commit/7d6480bffd738676a0c04865991c6cad796b7379))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* add button style ([ebf1377](https://github.com/easyops-cn/next-core/commit/ebf1377805306600dbf96a6c05164f295d04f9af))
|
|
33
|
+
* chart style ([8d3f04b](https://github.com/easyops-cn/next-core/commit/8d3f04b342f79f62c65696ef82337b06d881aafd))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [2.102.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.102.0...@next-core/brick-kit@2.102.1) (2022-01-12)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* do not redirect to login page while NO_AUTH_GUARD is enabled ([02b69b1](https://github.com/easyops-cn/next-core/commit/02b69b19b98b1ba4aa4e0d2405d28444f3c05def))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [2.102.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.101.2...@next-core/brick-kit@2.102.0) (2022-01-07)
|
|
7
51
|
|
|
8
52
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -389,6 +389,10 @@
|
|
|
389
389
|
}, []);
|
|
390
390
|
return currentMode;
|
|
391
391
|
}
|
|
392
|
+
function getCssPropertyValue(name) {
|
|
393
|
+
var el = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.documentElement;
|
|
394
|
+
return window.getComputedStyle(el).getPropertyValue(name);
|
|
395
|
+
}
|
|
392
396
|
|
|
393
397
|
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
394
398
|
try {
|
|
@@ -3210,7 +3214,7 @@
|
|
|
3210
3214
|
|
|
3211
3215
|
function handleHttpError(error) {
|
|
3212
3216
|
// Redirect to login page if not logged in.
|
|
3213
|
-
if (isUnauthenticatedError(error)) {
|
|
3217
|
+
if (isUnauthenticatedError(error) && !window.NO_AUTH_GUARD) {
|
|
3214
3218
|
// Do not show multiple confirm modals.
|
|
3215
3219
|
if (unauthenticatedConfirmModal) {
|
|
3216
3220
|
return;
|
|
@@ -10334,7 +10338,7 @@
|
|
|
10334
10338
|
var _this3 = this;
|
|
10335
10339
|
|
|
10336
10340
|
return _asyncToGenerator__default["default"](function* () {
|
|
10337
|
-
var _apiAnalyzer$getInsta
|
|
10341
|
+
var _apiAnalyzer$getInsta;
|
|
10338
10342
|
|
|
10339
10343
|
_this3.state = "initial";
|
|
10340
10344
|
_this3.renderId = lodash.uniqueId("render-id-");
|
|
@@ -10385,7 +10389,7 @@
|
|
|
10385
10389
|
var legacy = currentApp ? currentApp.legacy : undefined;
|
|
10386
10390
|
_this3.kernel.nextApp = currentApp;
|
|
10387
10391
|
var layoutType = (currentApp === null || currentApp === void 0 ? void 0 : currentApp.layoutType) || "console";
|
|
10388
|
-
setTheme((
|
|
10392
|
+
setTheme((currentApp === null || currentApp === void 0 ? void 0 : currentApp.theme) || "light");
|
|
10389
10393
|
setMode("default");
|
|
10390
10394
|
devtoolsHookEmit("rendering");
|
|
10391
10395
|
unmountTree(mountPoints.bg);
|
|
@@ -10430,7 +10434,7 @@
|
|
|
10430
10434
|
// eslint-disable-next-line no-console
|
|
10431
10435
|
console.error(error); // Redirect to login page if not logged in.
|
|
10432
10436
|
|
|
10433
|
-
if (isUnauthenticatedError(error)) {
|
|
10437
|
+
if (isUnauthenticatedError(error) && !window.NO_AUTH_GUARD) {
|
|
10434
10438
|
mountRoutesResult.flags.unauthenticated = true;
|
|
10435
10439
|
} else {
|
|
10436
10440
|
yield _this3.kernel.layoutBootstrap(layoutType);
|
|
@@ -12667,6 +12671,7 @@
|
|
|
12667
12671
|
exports.doTransform = doTransform;
|
|
12668
12672
|
exports.event = event;
|
|
12669
12673
|
exports.getAuth = getAuth;
|
|
12674
|
+
exports.getCssPropertyValue = getCssPropertyValue;
|
|
12670
12675
|
exports.getHistory = getHistory;
|
|
12671
12676
|
exports.getMockInfo = getMockInfo;
|
|
12672
12677
|
exports.getRuntime = getRuntime;
|