@alicloud/console-components-search 0.2.34 → 0.2.35

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.
Files changed (74) hide show
  1. package/LICENSE +21 -0
  2. package/es/ComplexSearch/InputPrefix.js +6 -9
  3. package/es/ComplexSearch/index.js +46 -84
  4. package/es/constants.js +3 -1
  5. package/es/index.js +4 -4
  6. package/es/message.js +16 -17
  7. package/es/search.js +11 -18
  8. package/es/searchTagList/PureTag.js +10 -15
  9. package/es/searchTagList/index.js +16 -37
  10. package/es/style.js +13 -11
  11. package/es/types/IRcSearchOptions.type.js +1 -0
  12. package/es/types/IRcSearchProps.type.js +1 -0
  13. package/es/types/IRcSearchTagItemProps.type.js +1 -0
  14. package/es/types/IRcSearchTagListProps.type.js +1 -0
  15. package/es/useCssVar.js +6 -11
  16. package/es/utils.js +9 -41
  17. package/lib/ComplexSearch/InputPrefix.d.ts +2 -2
  18. package/lib/ComplexSearch/InputPrefix.js +7 -16
  19. package/lib/ComplexSearch/index.js +50 -107
  20. package/lib/constants.js +7 -9
  21. package/lib/index.d.ts +5 -5
  22. package/lib/index.js +10 -17
  23. package/lib/message.js +17 -22
  24. package/lib/search.d.ts +2 -2
  25. package/lib/search.js +9 -28
  26. package/lib/searchTagList/PureTag.js +11 -23
  27. package/lib/searchTagList/index.d.ts +1 -1
  28. package/lib/searchTagList/index.js +12 -48
  29. package/lib/style.d.ts +1 -1
  30. package/lib/style.js +13 -24
  31. package/lib/types/IRcSearchOptions.type.d.ts +13 -13
  32. package/lib/types/IRcSearchOptions.type.js +5 -1
  33. package/lib/types/IRcSearchProps.type.d.ts +2 -2
  34. package/lib/types/IRcSearchProps.type.js +5 -1
  35. package/lib/types/IRcSearchTagItemProps.type.js +5 -1
  36. package/lib/types/IRcSearchTagListProps.type.js +5 -1
  37. package/lib/useCssVar.js +6 -19
  38. package/lib/utils.d.ts +1 -3
  39. package/lib/utils.js +18 -72
  40. package/package.json +19 -16
  41. package/dist/index.css +0 -73
  42. package/dist/index.js +0 -135349
  43. package/doc-dist/0.js +0 -2094
  44. package/doc-dist/1.js +0 -27
  45. package/doc-dist/10.js +0 -6
  46. package/doc-dist/11.js +0 -6
  47. package/doc-dist/12.js +0 -6
  48. package/doc-dist/13.js +0 -6
  49. package/doc-dist/14.js +0 -6
  50. package/doc-dist/15.js +0 -6
  51. package/doc-dist/16.js +0 -6
  52. package/doc-dist/3.js +0 -89
  53. package/doc-dist/4.js +0 -6
  54. package/doc-dist/5.js +0 -13
  55. package/doc-dist/6.css +0 -1
  56. package/doc-dist/6.js +0 -6
  57. package/doc-dist/6.os.css +0 -1
  58. package/doc-dist/7.js +0 -6
  59. package/doc-dist/8.js +0 -6
  60. package/doc-dist/9.js +0 -6
  61. package/doc-dist/console-fe-test-rc-search-doc.manifest.json +0 -38
  62. package/doc-dist/deps/console-fe-test-rc-search-doc-deps.manifest.json +0 -33
  63. package/doc-dist/deps/index.html +0 -14
  64. package/doc-dist/deps/main.css +0 -1
  65. package/doc-dist/deps/main.js +0 -103
  66. package/doc-dist/deps/main.os.css +0 -1
  67. package/doc-dist/index.css +0 -1
  68. package/doc-dist/index.html +0 -14
  69. package/doc-dist/index.js +0 -19
  70. package/doc-dist/index.os.css +0 -1
  71. package/doc-dist/log-deps-build.log +0 -19
  72. package/es/provider/LoggerProvider.js +0 -37
  73. package/lib/provider/LoggerProvider.d.ts +0 -8
  74. package/lib/provider/LoggerProvider.js +0 -47
@@ -1 +0,0 @@
1
- html .DemoContainer-___index-scoped__container___2J8VW{width:800px;max-width:100%;border:1px solid #e3e4e6;border-radius:4px}html .DemoContainer-___index-scoped__container___2J8VW.canFullScreen{width:1200px}html .DemoContainer-___index-scoped__container___2J8VW:hover{-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;transition:all .3s ease-in-out;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.16);box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}html .DemoContainer-___index-scoped__container___2J8VW .DemoContainer-___index-scoped__title___1oo1m{height:40px;line-height:40px;font-family:PingFangSC-Medium;font-size:14px;color:#303030;letter-spacing:0;border-bottom:1px solid #dedede;padding-left:16px;margin:0}html .DemoContainer-___index-scoped__container___2J8VW .DemoContainer-___index-scoped__demo___17jE8{border-bottom:1px solid #dedede;width:100%;overflow-x:auto}html .DemoContainer-___index-scoped__container___2J8VW .DemoContainer-___index-scoped__demo___17jE8 .DemoContainer-___index-scoped__demoInner___1rt9f{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-width:100%;padding:32px 16px}html .DemoContainer-___index-scoped__container___2J8VW .DemoContainer-___index-scoped__describe___najBj{padding:12px 0 16px 12px;border-bottom:1px solid #dedede}html .DemoContainer-___index-scoped__container___2J8VW .DemoContainer-___index-scoped__describe___najBj p{font-size:12px;margin:0}html .DemoContainer-___index-scoped__container___2J8VW .DemoContainer-___index-scoped__operations___1YsVs{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;align-items:center;height:40px;color:#666;font-size:15px;opacity:.7}html .DemoContainer-___index-scoped__container___2J8VW .DemoContainer-___index-scoped__operations___1YsVs>.DemoContainer-___index-scoped__operation___1EAz9{width:16px;height:16px;cursor:pointer;margin-right:16px}html .DemoContainer-___index-scoped__codemirror___QVlTJ{border-top:1px solid #dedede}html .DemoContainer-___index-scoped__fullViewDialog___1_Bbc.DemoContainer-___index-scoped__fullViewDialog___1_Bbc{width:-webkit-calc(100% - 24px);width:-moz-calc(100% - 24px);width:calc(100% - 24px);height:-webkit-calc(100% - 24px);height:-moz-calc(100% - 24px);height:calc(100% - 24px);margin:12px}html .DemoContainer-___index-scoped__fullViewDialog___1_Bbc .rc-dialog-content{height:100%;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-moz-box-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-webkit-align-items:stretch;-moz-box-align:stretch;align-items:stretch}html .DemoContainer-___index-scoped__fullViewDialog___1_Bbc .rc-dialog-content .rc-dialog-header{-webkit-box-flex:0;-webkit-flex:0 0 auto;-moz-box-flex:0;flex:0 0 auto}html .DemoContainer-___index-scoped__fullViewDialog___1_Bbc .rc-dialog-content .rc-dialog-body{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;flex:1 1 auto;min-height:0;overflow:auto}html .CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}html .CodeMirror-lines{padding:4px 0}html .CodeMirror pre.CodeMirror-line,html .CodeMirror pre.CodeMirror-line-like{padding:0 4px}html .CodeMirror-gutter-filler,html .CodeMirror-scrollbar-filler{background-color:#fff}html .CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}html .CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}html .CodeMirror-guttermarker{color:#000}html .CodeMirror-guttermarker-subtle{color:#999}html .CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}html .CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}html .cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}html .cm-fat-cursor div.CodeMirror-cursors{z-index:1}html .cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}html .cm-animate-fat-cursor,html .cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}html .cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}html .cm-tab{display:inline-block;text-decoration:inherit}html .CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}html .CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}html .cm-s-default .cm-header{color:#00f}html .cm-s-default .cm-quote{color:#090}html .cm-negative{color:#d44}html .cm-positive{color:#292}html .cm-header,html .cm-strong{font-weight:700}html .cm-em{font-style:italic}html .cm-link{text-decoration:underline}html .cm-strikethrough{text-decoration:line-through}html .cm-s-default .cm-keyword{color:#708}html .cm-s-default .cm-atom{color:#219}html .cm-s-default .cm-number{color:#164}html .cm-s-default .cm-def{color:#00f}html .cm-s-default .cm-variable-2{color:#05a}html .cm-s-default .cm-type,html .cm-s-default .cm-variable-3{color:#085}html .cm-s-default .cm-comment{color:#a50}html .cm-s-default .cm-string{color:#a11}html .cm-s-default .cm-string-2{color:#f50}html .cm-s-default .cm-meta,html .cm-s-default .cm-qualifier{color:#555}html .cm-s-default .cm-builtin{color:#30a}html .cm-s-default .cm-bracket{color:#997}html .cm-s-default .cm-tag{color:#170}html .cm-s-default .cm-attribute{color:#00c}html .cm-s-default .cm-hr{color:#999}html .cm-s-default .cm-link{color:#00c}html .cm-invalidchar,html .cm-s-default .cm-error{color:red}html .CodeMirror-composing{border-bottom:2px solid}html div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}html div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}html .CodeMirror-matchingtag{background:rgba(255,150,0,.3)}html .CodeMirror-activeline-background{background:#e8f2ff}html .CodeMirror{position:relative;overflow:hidden;background:#fff}html .CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}html .CodeMirror-sizer{position:relative;border-right:50px solid transparent}html .CodeMirror-gutter-filler,html .CodeMirror-hscrollbar,html .CodeMirror-scrollbar-filler,html .CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:none}html .CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}html .CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}html .CodeMirror-scrollbar-filler{right:0;bottom:0}html .CodeMirror-gutter-filler{left:0;bottom:0}html .CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}html .CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}html .CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}html .CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}html .CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}html .CodeMirror-gutter-wrapper ::selection{background-color:transparent}html .CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}html .CodeMirror-lines{cursor:text;min-height:1px}html .CodeMirror pre.CodeMirror-line,html .CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-moz-font-variant-ligatures:contextual;font-variant-ligatures:contextual}html .CodeMirror-wrap pre.CodeMirror-line,html .CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}html .CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}html .CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}html .CodeMirror-rtl pre{direction:rtl}html .CodeMirror-code{outline:none}html .CodeMirror-gutter,html .CodeMirror-gutters,html .CodeMirror-linenumber,html .CodeMirror-scroll,html .CodeMirror-sizer{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}html .CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}html .CodeMirror-cursor{position:absolute;pointer-events:none}html .CodeMirror-measure pre{position:static}html div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}html .CodeMirror-focused div.CodeMirror-cursors,html div.CodeMirror-dragcursors{visibility:visible}html .CodeMirror-selected{background:#d9d9d9}html .CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}html .CodeMirror-crosshair{cursor:crosshair}html .CodeMirror-line::selection,html .CodeMirror-line>span::selection,html .CodeMirror-line>span>span::selection{background:#d7d4f0}html .CodeMirror-line::-moz-selection,html .CodeMirror-line>span::-moz-selection,html .CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}html .cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}html .cm-force-border{padding-right:.1px}@media print{html .CodeMirror div.CodeMirror-cursors{visibility:hidden}}html .cm-tab-wrap-hack:after{content:""}html span.CodeMirror-selectedtext{background:none}
@@ -1,19 +0,0 @@
1
- 开始构建微应用external依赖...
2
- BreezrPluginStyledComponentsIsolation The plugin will trying to use the package's name as isolation id of styled-components. This behavior usually occurred on dev mode. And if you were received this warning on publish mode then you should to set `options.styledComponentStyleSheetId` implicitly.
3
- ℹ Compiling Webpack
4
- `isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`
5
- at isModuleDeclaration (/Users/fringey/www/github/alibabacloud-console-components/node_modules/@babel/types/lib/validators/generated/index.js:2740:35)
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.06s
8
- WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
9
- This can impact web performance.
10
- Assets:
11
- main.js (2.74 MiB),entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
12
- Entrypoints:
13
- main (2.74 MiB)
14
- main.css
15
- main.js
16
- ,webpack performance recommendations:
17
- You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
18
- For more info visit https://webpack.js.org/guides/code-splitting/
19
- 成功构建微应用external依赖
@@ -1,37 +0,0 @@
1
- import { useEffect } from 'react';
2
- import { getEnv, getLogger, isValidKey } from '../utils';
3
- ;
4
- var TOPIC = 'com-usage';
5
- var SAMPLING = getEnv() === 'local' ? 1 : 0.5; // 用来记录是否已经发送过日志,防止日志量太多,比如在列表中使用组件
6
-
7
- var LOGGER_RECORD = {};
8
-
9
- var LoggerProvider = function LoggerProvider(props) {
10
- var regionId = props.regionId,
11
- resourceType = props.resourceType,
12
- componentName = props.componentName;
13
- useEffect(function () {
14
- var recordKey = "".concat(componentName, "-").concat(resourceType);
15
- var propsArr = new Array();
16
- ["regionId", "resourceType"].forEach(function (t) {
17
- if (t && isValidKey(t, props)) {
18
- propsArr.push("".concat(t, "=").concat(props[t]));
19
- }
20
- });
21
- var info = {
22
- env: getEnv(),
23
- properties: propsArr.join('&'),
24
- component: componentName
25
- };
26
-
27
- if (!LOGGER_RECORD[recordKey]) {
28
- getLogger().log(TOPIC, info, {
29
- sampling: SAMPLING
30
- });
31
- LOGGER_RECORD[recordKey] = true;
32
- }
33
- }, [regionId, resourceType, componentName]);
34
- return null;
35
- };
36
-
37
- export default LoggerProvider;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export interface LoggerProviderProps {
3
- regionId?: string;
4
- resourceType: string;
5
- componentName: string;
6
- }
7
- declare const LoggerProvider: React.FC<LoggerProviderProps>;
8
- export default LoggerProvider;
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = require("react");
9
-
10
- var _utils = require("../utils");
11
-
12
- ;
13
- var TOPIC = 'com-usage';
14
- var SAMPLING = (0, _utils.getEnv)() === 'local' ? 1 : 0.5; // 用来记录是否已经发送过日志,防止日志量太多,比如在列表中使用组件
15
-
16
- var LOGGER_RECORD = {};
17
-
18
- var LoggerProvider = function LoggerProvider(props) {
19
- var regionId = props.regionId,
20
- resourceType = props.resourceType,
21
- componentName = props.componentName;
22
- (0, _react.useEffect)(function () {
23
- var recordKey = "".concat(componentName, "-").concat(resourceType);
24
- var propsArr = new Array();
25
- ["regionId", "resourceType"].forEach(function (t) {
26
- if (t && (0, _utils.isValidKey)(t, props)) {
27
- propsArr.push("".concat(t, "=").concat(props[t]));
28
- }
29
- });
30
- var info = {
31
- env: (0, _utils.getEnv)(),
32
- properties: propsArr.join('&'),
33
- component: componentName
34
- };
35
-
36
- if (!LOGGER_RECORD[recordKey]) {
37
- (0, _utils.getLogger)().log(TOPIC, info, {
38
- sampling: SAMPLING
39
- });
40
- LOGGER_RECORD[recordKey] = true;
41
- }
42
- }, [regionId, resourceType, componentName]);
43
- return null;
44
- };
45
-
46
- var _default = LoggerProvider;
47
- exports.default = _default;