@lobehub/ui 5.29.2 → 5.30.0

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.
@@ -7,6 +7,10 @@ declare const restrictedImports: {
7
7
  message: string;
8
8
  name: string;
9
9
  }[];
10
+ patterns: {
11
+ group: string[];
12
+ message: string;
13
+ }[];
10
14
  })[];
11
15
  };
12
16
  };
@@ -18,6 +22,10 @@ declare const _default: {
18
22
  message: string;
19
23
  name: string;
20
24
  }[];
25
+ patterns: {
26
+ group: string[];
27
+ message: string;
28
+ }[];
21
29
  })[];
22
30
  };
23
31
  }[];
@@ -1,29 +1,59 @@
1
1
  //#region src/eslint/index.ts
2
2
  const DEPRECATED_UI_COMPONENTS = [
3
+ "AutoComplete",
3
4
  "Button",
5
+ "Checkbox",
6
+ "CheckboxGroup",
4
7
  "Drawer",
5
8
  "Modal",
9
+ "Radio",
10
+ "RadioGroup",
6
11
  "Segmented",
7
12
  "Select",
13
+ "Slider",
14
+ "SliderWithInput",
8
15
  "Tabs"
9
16
  ];
10
- const restrictedImports = { rules: { "no-restricted-imports": ["error", { paths: [
11
- {
12
- importNames: DEPRECATED_UI_COMPONENTS,
13
- message: "The antd-based wrapper is deprecated. Import from \"@lobehub/ui/base-ui\" instead.",
14
- name: "@lobehub/ui"
15
- },
16
- {
17
- importNames: ["createStyles"],
18
- message: "`createStyles` is banned in this project. Use `createStaticStyles` from \"antd-style\" instead.",
19
- name: "antd-style"
20
- },
21
- {
22
- importNames: DEPRECATED_UI_COMPONENTS,
23
- message: "Direct antd import is deprecated. Import from \"@lobehub/ui\" or \"@lobehub/ui/base-ui\" instead.",
24
- name: "antd"
25
- }
26
- ] }] } };
17
+ const restrictedImports = { rules: { "no-restricted-imports": ["error", {
18
+ paths: [
19
+ {
20
+ importNames: DEPRECATED_UI_COMPONENTS,
21
+ message: "The antd-based wrapper is deprecated. Import from \"@lobehub/ui/base-ui\" instead.",
22
+ name: "@lobehub/ui"
23
+ },
24
+ {
25
+ importNames: ["createStyles"],
26
+ message: "`createStyles` is banned in this project. Use `createStaticStyles` from \"antd-style\" instead.",
27
+ name: "antd-style"
28
+ },
29
+ {
30
+ importNames: DEPRECATED_UI_COMPONENTS,
31
+ message: "Direct antd import is deprecated. Import from \"@lobehub/ui/base-ui\" instead.",
32
+ name: "antd"
33
+ }
34
+ ],
35
+ patterns: [{
36
+ group: [
37
+ "antd/es/auto-complete",
38
+ "antd/es/auto-complete/*",
39
+ "antd/es/checkbox",
40
+ "antd/es/checkbox/*",
41
+ "antd/es/radio",
42
+ "antd/es/radio/*",
43
+ "antd/es/slider",
44
+ "antd/es/slider/*",
45
+ "antd/lib/auto-complete",
46
+ "antd/lib/auto-complete/*",
47
+ "antd/lib/checkbox",
48
+ "antd/lib/checkbox/*",
49
+ "antd/lib/radio",
50
+ "antd/lib/radio/*",
51
+ "antd/lib/slider",
52
+ "antd/lib/slider/*"
53
+ ],
54
+ message: "Direct antd component import is deprecated. Import from \"@lobehub/ui/base-ui\" instead."
55
+ }]
56
+ }] } };
27
57
  var eslint_default = [restrictedImports];
28
58
  //#endregion
29
59
  export { eslint_default as default, restrictedImports };
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../src/eslint/index.ts"],"sourcesContent":["const DEPRECATED_UI_COMPONENTS = ['Button', 'Drawer', 'Modal', 'Segmented', 'Select', 'Tabs'];\n\nexport const restrictedImports = {\n rules: {\n 'no-restricted-imports': [\n 'error',\n {\n paths: [\n {\n importNames: DEPRECATED_UI_COMPONENTS,\n message:\n 'The antd-based wrapper is deprecated. Import from \"@lobehub/ui/base-ui\" instead.',\n name: '@lobehub/ui',\n },\n {\n importNames: ['createStyles'],\n message:\n '`createStyles` is banned in this project. Use `createStaticStyles` from \"antd-style\" instead.',\n name: 'antd-style',\n },\n {\n importNames: DEPRECATED_UI_COMPONENTS,\n message:\n 'Direct antd import is deprecated. Import from \"@lobehub/ui\" or \"@lobehub/ui/base-ui\" instead.',\n name: 'antd',\n },\n ],\n },\n ],\n },\n};\n\nexport default [restrictedImports];\n"],"mappings":";AAAA,MAAM,2BAA2B;CAAC;CAAU;CAAU;CAAS;CAAa;CAAU;AAAM;AAE5F,MAAa,oBAAoB,EAC/B,OAAO,EACL,yBAAyB,CACvB,SACA,EACE,OAAO;CACL;EACE,aAAa;EACb,SACE;EACF,MAAM;CACR;CACA;EACE,aAAa,CAAC,cAAc;EAC5B,SACE;EACF,MAAM;CACR;CACA;EACE,aAAa;EACb,SACE;EACF,MAAM;CACR;AACF,EACF,CACF,EACF,EACF;AAEA,IAAA,iBAAe,CAAC,iBAAiB"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/eslint/index.ts"],"sourcesContent":["const DEPRECATED_UI_COMPONENTS = [\n 'AutoComplete',\n 'Button',\n 'Checkbox',\n 'CheckboxGroup',\n 'Drawer',\n 'Modal',\n 'Radio',\n 'RadioGroup',\n 'Segmented',\n 'Select',\n 'Slider',\n 'SliderWithInput',\n 'Tabs',\n];\n\nconst DEPRECATED_ANTD_COMPONENT_PATHS = [\n 'antd/es/auto-complete',\n 'antd/es/auto-complete/*',\n 'antd/es/checkbox',\n 'antd/es/checkbox/*',\n 'antd/es/radio',\n 'antd/es/radio/*',\n 'antd/es/slider',\n 'antd/es/slider/*',\n 'antd/lib/auto-complete',\n 'antd/lib/auto-complete/*',\n 'antd/lib/checkbox',\n 'antd/lib/checkbox/*',\n 'antd/lib/radio',\n 'antd/lib/radio/*',\n 'antd/lib/slider',\n 'antd/lib/slider/*',\n];\n\nexport const restrictedImports = {\n rules: {\n 'no-restricted-imports': [\n 'error',\n {\n paths: [\n {\n importNames: DEPRECATED_UI_COMPONENTS,\n message:\n 'The antd-based wrapper is deprecated. Import from \"@lobehub/ui/base-ui\" instead.',\n name: '@lobehub/ui',\n },\n {\n importNames: ['createStyles'],\n message:\n '`createStyles` is banned in this project. Use `createStaticStyles` from \"antd-style\" instead.',\n name: 'antd-style',\n },\n {\n importNames: DEPRECATED_UI_COMPONENTS,\n message: 'Direct antd import is deprecated. Import from \"@lobehub/ui/base-ui\" instead.',\n name: 'antd',\n },\n ],\n patterns: [\n {\n group: DEPRECATED_ANTD_COMPONENT_PATHS,\n message:\n 'Direct antd component import is deprecated. Import from \"@lobehub/ui/base-ui\" instead.',\n },\n ],\n },\n ],\n },\n};\n\nexport default [restrictedImports];\n"],"mappings":";AAAA,MAAM,2BAA2B;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAqBA,MAAa,oBAAoB,EAC/B,OAAO,EACL,yBAAyB,CACvB,SACA;CACE,OAAO;EACL;GACE,aAAa;GACb,SACE;GACF,MAAM;EACR;EACA;GACE,aAAa,CAAC,cAAc;GAC5B,SACE;GACF,MAAM;EACR;EACA;GACE,aAAa;GACb,SAAS;GACT,MAAM;EACR;CACF;CACA,UAAU,CACR;EACE,OAAO;GA5CjB;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EA6BiB;EACP,SACE;CACJ,CACF;AACF,CACF,EACF,EACF;AAEA,IAAA,iBAAe,CAAC,iBAAiB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "5.29.2",
3
+ "version": "5.30.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",