@hi-ui/hiui 4.1.17 → 4.1.18

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
@@ -1,5 +1,24 @@
1
1
  # @hi-ui/hiui
2
2
 
3
+ ## 4.1.18
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2394](https://github.com/XiaoMi/hiui/pull/2394) [`a9a5558ac`](https://github.com/XiaoMi/hiui/commit/a9a5558ac2a17efb213e07a8ee0d3612b43df2a2) Thanks [@zyprepare](https://github.com/zyprepare)! - Pagination 代码优化: 给 PagerButton 组件提供 ref 属性
8
+
9
+ - [#2392](https://github.com/XiaoMi/hiui/pull/2392) [`5092a901d`](https://github.com/XiaoMi/hiui/commit/5092a901def14bf4a37411d6d4207cd13809d029) Thanks [@zyprepare](https://github.com/zyprepare)! - Tree 修复问题: 自定义搜索在 checkable 模式下勾选逻辑有误
10
+
11
+ - [#2396](https://github.com/XiaoMi/hiui/pull/2396) [`544858c34`](https://github.com/XiaoMi/hiui/commit/544858c342e043f3a60a0368c76c9411a634eb3f) Thanks [@zyprepare](https://github.com/zyprepare)! - Tabs 修复问题: activeId 受控模式下,后面的较深的 tab 无法自动显示到前面
12
+
13
+ - [#2389](https://github.com/XiaoMi/hiui/pull/2389) [`d6c7feaf8`](https://github.com/XiaoMi/hiui/commit/d6c7feaf840f8db858f8d2534e86c16a598674b7) Thanks [@chownchen](https://github.com/chownchen)! - Descriptions Component add data api
14
+
15
+ - Updated dependencies [[`0f1420d36`](https://github.com/XiaoMi/hiui/commit/0f1420d36bc6bc73b8994eb9dd277b26b930451f), [`544858c34`](https://github.com/XiaoMi/hiui/commit/544858c342e043f3a60a0368c76c9411a634eb3f), [`a7d47168b`](https://github.com/XiaoMi/hiui/commit/a7d47168b519cacfd7b34edf6ba239c5b0b92284), [`5092a901d`](https://github.com/XiaoMi/hiui/commit/5092a901def14bf4a37411d6d4207cd13809d029), [`a9a5558ac`](https://github.com/XiaoMi/hiui/commit/a9a5558ac2a17efb213e07a8ee0d3612b43df2a2)]:
16
+ - @hi-ui/descriptions@4.1.0
17
+ - @hi-ui/tabs@4.0.7
18
+ - @hi-ui/core@4.0.5
19
+ - @hi-ui/tree@4.1.2
20
+ - @hi-ui/pagination@4.0.9
21
+
3
22
  ## 4.1.17
4
23
 
5
24
  ### Patch Changes
@@ -22,6 +22,8 @@ var zhCN = require('./locale/zh-CN.js');
22
22
  var index = require('../../../../utils/object-utils/lib/esm/index.js');
23
23
 
24
24
  var index$1 = require('../../../../utils/env/lib/esm/index.js');
25
+
26
+ var index$2 = require('../../../../utils/type-assertion/lib/esm/index.js');
25
27
  /** @LICENSE
26
28
  * @hi-ui/locale-context
27
29
  * https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
@@ -36,7 +38,7 @@ var index$1 = require('../../../../utils/env/lib/esm/index.js');
36
38
  var getLanguage = function getLanguage(languageData) {
37
39
  return function (key, data) {
38
40
  var value = index.getNested(languageData, key.split('.'));
39
- index$1.invariant(!!value, "The " + key + " in language package is missing.");
41
+ index$1.invariant(!index$2.isNullish(value), "The " + key + " in language package is missing.");
40
42
 
41
43
  if (data) {
42
44
  Object.keys(data).forEach(function (key) {
@@ -12,6 +12,7 @@ import { LocaleEnum } from './types.js';
12
12
  import zhCN from './locale/zh-CN.js';
13
13
  import { getNested } from '../../../../utils/object-utils/lib/esm/index.js';
14
14
  import { invariant } from '../../../../utils/env/lib/esm/index.js';
15
+ import { isNullish } from '../../../../utils/type-assertion/lib/esm/index.js';
15
16
  /** @LICENSE
16
17
  * @hi-ui/locale-context
17
18
  * https://github.com/XiaoMi/hiui/tree/master/packages/ui/locale-context#readme
@@ -25,7 +26,7 @@ import { invariant } from '../../../../utils/env/lib/esm/index.js';
25
26
  var getLanguage = function getLanguage(languageData) {
26
27
  return function (key, data) {
27
28
  var value = getNested(languageData, key.split('.'));
28
- invariant(!!value, "The " + key + " in language package is missing.");
29
+ invariant(!isNullish(value), "The " + key + " in language package is missing.");
29
30
 
30
31
  if (data) {
31
32
  Object.keys(data).forEach(function (key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/hiui",
3
- "version": "4.1.17",
3
+ "version": "4.1.18",
4
4
  "description": "The root-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -60,7 +60,7 @@
60
60
  "@hi-ui/collapse": "^4.1.0",
61
61
  "@hi-ui/counter": "^4.0.5",
62
62
  "@hi-ui/date-picker": "^4.0.12",
63
- "@hi-ui/descriptions": "^4.0.4",
63
+ "@hi-ui/descriptions": "^4.1.0",
64
64
  "@hi-ui/drawer": "^4.0.7",
65
65
  "@hi-ui/dropdown": "^4.0.5",
66
66
  "@hi-ui/empty-state": "^4.0.4",
@@ -77,7 +77,7 @@
77
77
  "@hi-ui/modal": "^4.0.9",
78
78
  "@hi-ui/notification": "^4.0.6",
79
79
  "@hi-ui/number-input": "^4.0.5",
80
- "@hi-ui/pagination": "^4.0.8",
80
+ "@hi-ui/pagination": "^4.0.9",
81
81
  "@hi-ui/picker": "^4.0.6",
82
82
  "@hi-ui/pop-confirm": "^4.0.6",
83
83
  "@hi-ui/popover": "^4.0.5",
@@ -97,26 +97,26 @@
97
97
  "@hi-ui/svg-icon": "^4.0.4",
98
98
  "@hi-ui/switch": "^4.0.6",
99
99
  "@hi-ui/table": "^4.0.13",
100
- "@hi-ui/tabs": "^4.0.6",
100
+ "@hi-ui/tabs": "^4.0.7",
101
101
  "@hi-ui/tag": "^4.0.7",
102
102
  "@hi-ui/textarea": "^4.0.6",
103
103
  "@hi-ui/time-picker": "^4.0.8",
104
104
  "@hi-ui/timeline": "^4.0.4",
105
105
  "@hi-ui/tooltip": "^4.0.5",
106
106
  "@hi-ui/transfer": "^4.0.9",
107
- "@hi-ui/tree": "^4.1.1",
107
+ "@hi-ui/tree": "^4.1.2",
108
108
  "@hi-ui/tree-select": "^4.0.10",
109
109
  "@hi-ui/upload": "^4.1.0",
110
110
  "@hi-ui/watermark": "^4.0.4",
111
111
  "@hi-ui/zen-mode": "^4.0.4"
112
112
  },
113
113
  "peerDependencies": {
114
- "@hi-ui/core": ">=4.0.0",
114
+ "@hi-ui/core": ">=4.0.5",
115
115
  "react": ">=16.8.6",
116
116
  "react-dom": ">=16.8.6"
117
117
  },
118
118
  "devDependencies": {
119
- "@hi-ui/core": "^4.0.4",
119
+ "@hi-ui/core": "^4.0.5",
120
120
  "@hi-ui/core-css": "^4.0.2",
121
121
  "@hi-ui/hi-build": "^4.0.1",
122
122
  "react": "^17.0.1",