@next-core/brick-kit 2.102.1 → 2.103.3

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,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.3](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.103.2...@next-core/brick-kit@2.103.3) (2022-01-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fix history push in standalone apps ([65219cf](https://github.com/easyops-cn/next-core/commit/65219cf133d2166ca9b3c612ff1a81be71bb069b))
12
+
13
+
14
+
15
+
16
+
17
+ ## [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)
18
+
19
+ **Note:** Version bump only for package @next-core/brick-kit
20
+
21
+
22
+
23
+
24
+
25
+ ## [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)
26
+
27
+ **Note:** Version bump only for package @next-core/brick-kit
28
+
29
+
30
+
31
+
32
+
33
+ # [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)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * refine theme ([7d6480b](https://github.com/easyops-cn/next-core/commit/7d6480bffd738676a0c04865991c6cad796b7379))
39
+
40
+
41
+ ### Features
42
+
43
+ * add button style ([ebf1377](https://github.com/easyops-cn/next-core/commit/ebf1377805306600dbf96a6c05164f295d04f9af))
44
+ * chart style ([8d3f04b](https://github.com/easyops-cn/next-core/commit/8d3f04b342f79f62c65696ef82337b06d881aafd))
45
+
46
+
47
+
48
+
49
+
6
50
  ## [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)
7
51
 
8
52
 
@@ -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 {
@@ -3123,12 +3127,12 @@
3123
3127
  var pathIsString = typeof path === "string";
3124
3128
 
3125
3129
  if (pathIsString) {
3126
- pathname = path;
3130
+ pathname = history$1.parsePath(path).pathname;
3127
3131
  } else {
3128
3132
  pathname = path.pathname;
3129
3133
  }
3130
3134
 
3131
- if (_internalApiHasMatchedApp(pathname)) {
3135
+ if (pathname === "" || _internalApiHasMatchedApp(pathname)) {
3132
3136
  return (method === "push" ? originalPush : originalReplace)(path, state);
3133
3137
  } // Going to outside apps.
3134
3138
 
@@ -10334,7 +10338,7 @@
10334
10338
  var _this3 = this;
10335
10339
 
10336
10340
  return _asyncToGenerator__default["default"](function* () {
10337
- var _apiAnalyzer$getInsta, _currentApp$theme;
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((_currentApp$theme = currentApp === null || currentApp === void 0 ? void 0 : currentApp.theme) !== null && _currentApp$theme !== void 0 ? _currentApp$theme : "light");
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);
@@ -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;