@chatbi-v/cli 2.1.10 → 3.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatbi-v/cli",
3
- "version": "2.1.10",
3
+ "version": "3.0.0",
4
4
  "description": "Standardized CLI tooling for ChatBI Monorepo",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -37,11 +37,12 @@
37
37
  "ora": "^7.0.1",
38
38
  "picocolors": "^1.0.0",
39
39
  "prompts": "^2.4.2",
40
- "tsup": "^8.5.1",
41
- "typescript": "^5.0.0",
42
- "vite": "^5.4.21"
40
+ "vite": "^5.4.11"
43
41
  },
44
42
  "devDependencies": {
43
+ "tsup": "^8.5.1",
44
+ "typescript": "^5.0.0",
45
+ "@types/eslint": "^9.6.1",
45
46
  "@types/boxen": "^3.0.5",
46
47
  "@types/figlet": "^1.7.0",
47
48
  "@types/fs-extra": "^11.0.0",
@@ -49,8 +50,9 @@
49
50
  "@types/node": "^20.0.0",
50
51
  "@types/prompts": "^2.4.9",
51
52
  "@vitest/coverage-v8": "1.6.1",
52
- "tsup": "^8.5.1",
53
- "vitest": "^1.0.0"
53
+ "vitest": "^1.0.0",
54
+ "eslint": "^9.17.0",
55
+ "@chatbi-v/eslint-plugin-theme": "3.0.0"
54
56
  },
55
57
  "scripts": {
56
58
  "build": "tsup",
@@ -11,25 +11,26 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@ant-design/icons": "^5.2.6",
14
- "@ant-design/x": "^2.1.1",
15
- "@chatbi-v/core": "^2.1.10",
16
- "@chatbi-v/mocks": "^2.1.10",
17
- "antd": "^5.29.3",
14
+ "@ant-design/x": "^2.1.0",
15
+ "@chatbi-v/core": "^3.0.0",
16
+ "@chatbi-v/react": "^3.0.0",
17
+ "@chatbi-v/mocks": "^3.0.0",
18
+ "antd": "^5.20.0",
18
19
  "react": "^18.3.1",
19
20
  "react-dom": "^18.3.1",
20
21
  "react-router-dom": "^7.10.1",
21
- "zustand": "^5.0.9"
22
+ "zustand": "^5.0.3"
22
23
  },
23
24
  "devDependencies": {
24
- "@chatbi-v/cli": "^2.1.10",
25
- "@chatbi-v/config":"^2.1.10",
25
+ "@chatbi-v/cli": "^3.0.0",
26
+ "@chatbi-v/config":"^3.0.0",
26
27
  "@types/node": "^25.0.3",
27
- "@types/react": "^18.2.43",
28
- "@types/react-dom": "^18.2.17",
28
+ "@types/react": "^18.3.12",
29
+ "@types/react-dom": "^18.3.1",
29
30
  "@vitejs/plugin-react": "^4.2.1",
30
31
  "less": "^4.5.1",
31
32
  "typescript": "^5.3.3",
32
- "vite": "^5.0.8",
33
+ "vite": "^5.4.11",
33
34
  "tailwindcss": "^3.4.1",
34
35
  "autoprefixer": "^10.4.17",
35
36
  "postcss": "^8.4.35"
@@ -1,4 +1,4 @@
1
- import { usePluginLoader as useCorePluginLoader } from '@chatbi-v/core';
1
+ import { usePluginLoader as useCorePluginLoader } from '@chatbi-v/react';
2
2
  import { useMemo } from 'react';
3
3
 
4
4
  import { appConfig } from '../../app.config';
@@ -1,5 +1,6 @@
1
- import { PluginSlot, Slot, StatusBarItemSkeleton } from '@chatbi-v/core';
2
- import React from 'react';
1
+ import { Slot, StatusBarItemSkeleton } from '@chatbi-v/core';
2
+ import { PluginSlot } from '@chatbi-v/react';
3
+ import React, { Suspense } from 'react';
3
4
  import { Navigate, Route, Routes } from 'react-router-dom';
4
5
 
5
6
  import { ContentSkeleton } from '../components/LayoutSkeletons';
@@ -28,7 +29,11 @@ export const MainContent: React.FC<MainContentProps> = React.memo(({
28
29
  <Route
29
30
  key={route.path}
30
31
  path={route.path}
31
- element={<route.component {...sharedProps} config={route.meta?.config} />}
32
+ element={
33
+ <Suspense fallback={<ContentSkeleton />}>
34
+ <route.component {...sharedProps} config={route.meta?.config} />
35
+ </Suspense>
36
+ }
32
37
  />
33
38
  ))}
34
39
 
@@ -1,9 +1,6 @@
1
- import {
2
- MenuFoldOutlined,
3
- MenuUnfoldOutlined,
4
- SettingOutlined,
5
- } from '@ant-design/icons';
6
- import { AvatarSkeleton,type PluginExtension, pluginManager, PluginSlot, SidebarIconSkeleton, Slot } from '@chatbi-v/core';
1
+ import { MenuFoldOutlined, MenuUnfoldOutlined, SettingOutlined, } from '@ant-design/icons';
2
+ import { AvatarSkeleton, type PluginExtension, pluginManager, SidebarIconSkeleton, Slot } from '@chatbi-v/core';
3
+ import { PluginSlot } from '@chatbi-v/react';
7
4
  import React from 'react';
8
5
  import { useNavigate } from 'react-router-dom';
9
6
 
@@ -1,5 +1,6 @@
1
1
  import { XProvider } from '@ant-design/x';
2
- import { ApiProvider, pluginManager, PluginProvider } from '@chatbi-v/core';
2
+ import { ApiProvider, pluginManager } from '@chatbi-v/core';
3
+ import { PluginProvider } from '@chatbi-v/react';
3
4
  import { App as AntdApp, ConfigProvider } from 'antd';
4
5
  import React, { ReactNode } from 'react';
5
6
 
@@ -16,8 +16,8 @@
16
16
  "libs/*"
17
17
  ],
18
18
  "dependencies": {
19
- "@chatbi-v/core": "^2.1.10",
20
- "@chatbi-v/mocks": "^2.1.10",
19
+ "@chatbi-v/core": "^3.0.0",
20
+ "@chatbi-v/mocks": "^3.0.0",
21
21
  "react": "^18.3.1",
22
22
  "react-dom": "^18.3.1",
23
23
  "antd": "^5.29.3",
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "typescript": "^5.0.0",
31
- "@chatbi-v/config": "^2.1.10",
32
- "@chatbi-v/cli": "^2.1.10",
31
+ "@chatbi-v/config": "^3.0.0",
32
+ "@chatbi-v/cli": "^3.0.0",
33
33
  "@ant-design/icons": "^5.6.1",
34
34
  "@types/react": "^18.3.1",
35
35
  "@types/react-dom": "^18.3.1",
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "plugin": true,
23
23
  "peerDependencies": {
24
- "@chatbi-v/core": "^2.1.10",
24
+ "@chatbi-v/core": "^3.0.0",
25
25
  "antd": "^5.20.0",
26
26
  "react": ">=18.0.0",
27
27
  "react-dom": ">=18.0.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@chatbi-v/core": "^2.1.10",
31
- "@chatbi-v/config": "^2.1.10",
30
+ "@chatbi-v/core": "^3.0.0",
31
+ "@chatbi-v/config": "^3.0.0",
32
32
  "tsup": "^8.5.1",
33
33
  "vite": "^5.0.0"
34
34
  }