@alicloud/console-components-search 0.2.32 → 0.2.33
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/dist/index.js +6 -0
- package/doc-dist/deps/main.js +1 -1
- package/doc-dist/log-deps-build.log +1 -1
- package/es/searchTagList/index.js +8 -0
- package/lib/searchTagList/index.js +8 -0
- package/package.json +15 -14
- package/LICENSE +0 -21
|
@@ -4,7 +4,7 @@ BreezrPluginStyledComponentsIsolation The plugin will trying to use the package
|
|
|
4
4
|
`isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`
|
|
5
5
|
at isModuleDeclaration (/Users/fringey/www/github/alibabacloud-console-components/node_modules/@babel/types/lib/validators/generated/index.js:2740:35)
|
|
6
6
|
at PluginPass.Program (/Users/fringey/www/github/alibabacloud-console-components/node_modules/babel-plugin-lodash/lib/index.js:102:44)
|
|
7
|
-
✔ Webpack: Compiled successfully in 7.
|
|
7
|
+
✔ Webpack: Compiled successfully in 7.48s
|
|
8
8
|
WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
9
9
|
This can impact web performance.
|
|
10
10
|
Assets:
|
|
@@ -121,6 +121,14 @@ var SearchTagList = function SearchTagList(props) {
|
|
|
121
121
|
if (isTagLikeDataStructure(tagItem.value)) {
|
|
122
122
|
return renderTags(tagItem);
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* 非 tag 标签类型的 Object 数据不渲染
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
if (typeof (tagItem.valueLabel || tagItem.value) !== 'string') {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
124
132
|
|
|
125
133
|
return /*#__PURE__*/React.createElement(ClosableTag, {
|
|
126
134
|
className: "search-tags-tag",
|
|
@@ -140,6 +140,14 @@ var SearchTagList = function SearchTagList(props) {
|
|
|
140
140
|
if (isTagLikeDataStructure(tagItem.value)) {
|
|
141
141
|
return renderTags(tagItem);
|
|
142
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* 非 tag 标签类型的 Object 数据不渲染
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
if (typeof (tagItem.valueLabel || tagItem.value) !== 'string') {
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
143
151
|
|
|
144
152
|
return /*#__PURE__*/_react.default.createElement(ClosableTag, {
|
|
145
153
|
className: "search-tags-tag",
|
package/package.json
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/console-components-search",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "breezr start --config config/breezr.docs.config.ts",
|
|
9
|
+
"doc:build": "rm -rf doc-dist && breezr build --config config/breezr.docs.config.ts",
|
|
10
|
+
"doc:serve": "echo \"访问 https://xconsole.aliyun-inc.com/demo-playground?consoleOSId=console-fe-test-rc-search-doc&servePath=http://localhost:5556/doc-dist/ ,预览本地打包好的文档资源!\n\n您还可以将文档资源部署到自己的cdn,然后将上述url中的servePath修改为自己的cdn地址,得到你自己的文档预览链接。\" && serve -l 5556 --cors",
|
|
11
|
+
"upload": "breezr upload --config config/breezr.docs.config.ts",
|
|
12
|
+
"upload:pre": "npm run upload -- --tag=pre",
|
|
13
|
+
"babel": "breezr build --engine babel",
|
|
14
|
+
"babel:esm": "breezr build --engine babel --es-module",
|
|
15
|
+
"types": "tsc -p src --emitDeclarationOnly",
|
|
16
|
+
"build": "breezr build --engine webpack",
|
|
17
|
+
"clean": "rm -rf dist lib es doc-dist",
|
|
18
|
+
"prepublishOnly": "npm run clean && npm run babel && npm run babel:esm && npm run types && npm run build && npm run doc:build"
|
|
19
|
+
},
|
|
7
20
|
"devDependencies": {
|
|
8
21
|
"@alicloud/console-toolkit-cli": "^1.2.0",
|
|
9
22
|
"@alicloud/console-toolkit-preset-component": "^1.2.8",
|
|
@@ -26,17 +39,5 @@
|
|
|
26
39
|
"@alicloud/console-components-truncate": "^1.0.16",
|
|
27
40
|
"@alicloud/console-logger-sls": "^1.2.31",
|
|
28
41
|
"js-cookie": "^2.0.0"
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"dev": "breezr start --config config/breezr.docs.config.ts",
|
|
32
|
-
"doc:build": "rm -rf doc-dist && breezr build --config config/breezr.docs.config.ts",
|
|
33
|
-
"doc:serve": "echo \"访问 https://xconsole.aliyun-inc.com/demo-playground?consoleOSId=console-fe-test-rc-search-doc&servePath=http://localhost:5556/doc-dist/ ,预览本地打包好的文档资源!\n\n您还可以将文档资源部署到自己的cdn,然后将上述url中的servePath修改为自己的cdn地址,得到你自己的文档预览链接。\" && serve -l 5556 --cors",
|
|
34
|
-
"upload": "breezr upload --config config/breezr.docs.config.ts",
|
|
35
|
-
"upload:pre": "npm run upload -- --tag=pre",
|
|
36
|
-
"babel": "breezr build --engine babel",
|
|
37
|
-
"babel:esm": "breezr build --engine babel --es-module",
|
|
38
|
-
"types": "tsc -p src --emitDeclarationOnly",
|
|
39
|
-
"build": "breezr build --engine webpack",
|
|
40
|
-
"clean": "rm -rf dist lib es doc-dist"
|
|
41
42
|
}
|
|
42
|
-
}
|
|
43
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 Alibaba Cloud
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|