@opencompass-fe/oc-webkit-eval 0.2.6 → 0.2.8
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/README.md +37 -37
- package/dist/assets/svg/top-nav/menu-button.svg.js +1 -1
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/footer/footer.js +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/footer-expansion/footer-expansion.js +1 -1
- package/dist/components/footer-expansion/index.js +1 -1
- package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.js +1 -1
- package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.js +1 -1
- package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.module.less.js +2 -2
- package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.js +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/components/header/hooks/useUrl.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header/secondHeader.js +1 -1
- package/dist/components/md-render/index.js +4 -4
- package/dist/components/online-evaluation/index.js +1 -1
- package/dist/components/online-evaluation/online-evaluation.js +1 -1
- package/dist/components/side-nav/index.js +1 -1
- package/dist/components/side-nav/side-nav.js +1 -1
- package/dist/components/side-nav/side-nav.module.less.js +2 -2
- package/dist/components/top-nav/index.js +1 -1
- package/dist/components/top-nav/shared.js +1 -1
- package/dist/components/top-nav/top-nav.js +1 -1
- package/dist/components/top-nav/top-nav.module.less.js +2 -2
- package/dist/constants/enums.js +1 -1
- package/dist/extraComponents/button/button.js +1 -1
- package/dist/helper/index.js +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/mobile/components/top-nav/top-nav.js +1 -1
- package/dist/providers/OcContext.js +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +34 -34
- package/dist/types/components/md-render/index.d.ts +4 -4
- package/dist/types/constants/enums.d.ts +26 -26
- package/dist/types/google-log/home.d.ts +6 -6
- package/dist/types/helper/index.d.ts +10 -10
- package/dist/types/index.d.ts +149 -149
- package/package.json +149 -150
package/dist/types/index.d.ts
CHANGED
|
@@ -12,155 +12,155 @@ export { envTypeEnum, evaluationTypeEnum, langTypeEnum, topNavActiveKeyEnum, web
|
|
|
12
12
|
export { TOP_NAV_LOCALE_STORAGE_KEY } from './constants/storage.js';
|
|
13
13
|
export { getMenuData } from './helper/index.js';
|
|
14
14
|
|
|
15
|
-
interface DefaultRespDTO<T> {
|
|
16
|
-
msgCode: number;
|
|
17
|
-
msg: string;
|
|
18
|
-
success: boolean;
|
|
19
|
-
data: T;
|
|
20
|
-
}
|
|
21
|
-
interface ApplyEvalRequest {
|
|
22
|
-
modelName: string;
|
|
23
|
-
orgName: string;
|
|
24
|
-
modelScenarios: string;
|
|
25
|
-
email: string;
|
|
26
|
-
phoneNumber: string;
|
|
27
|
-
}
|
|
28
|
-
interface IUserInfo {
|
|
29
|
-
active?: number;
|
|
30
|
-
avatar?: string;
|
|
31
|
-
contribution?: null;
|
|
32
|
-
email?: string;
|
|
33
|
-
githubAccount?: null;
|
|
34
|
-
lastLoginAt?: string;
|
|
35
|
-
phone?: string;
|
|
36
|
-
userId: string;
|
|
37
|
-
username?: string;
|
|
38
|
-
nickname?: string;
|
|
39
|
-
access?: string;
|
|
40
|
-
bio?: string;
|
|
41
|
-
birth?: string;
|
|
42
|
-
location?: string;
|
|
43
|
-
locationEn?: string;
|
|
44
|
-
organization?: string;
|
|
45
|
-
qq?: string;
|
|
46
|
-
twitter?: string;
|
|
47
|
-
website?: string;
|
|
48
|
-
wechat?: string;
|
|
49
|
-
zhihu?: string;
|
|
50
|
-
ssoUid?: string;
|
|
51
|
-
token?: string;
|
|
52
|
-
roleIds?: string[];
|
|
53
|
-
}
|
|
54
|
-
interface SubMenu {
|
|
55
|
-
title: {
|
|
56
|
-
zh: string;
|
|
57
|
-
en: string;
|
|
58
|
-
};
|
|
59
|
-
key: string;
|
|
60
|
-
isExternal?: boolean;
|
|
61
|
-
href?: {
|
|
62
|
-
zh: string;
|
|
63
|
-
en: string;
|
|
64
|
-
} | string;
|
|
65
|
-
onClick?: (lang: any, source: any, url: any) => void;
|
|
66
|
-
isActive: boolean;
|
|
67
|
-
customNode?: React.ReactNode;
|
|
68
|
-
}
|
|
69
|
-
interface HeaderProps {
|
|
70
|
-
envType: envTypeEnum;
|
|
71
|
-
handleUnauth: () => void;
|
|
72
|
-
locale: langTypeEnum;
|
|
73
|
-
setLocale: (locale: langTypeEnum) => void;
|
|
74
|
-
logout: () => Promise<unknown>;
|
|
75
|
-
userInfo: IUserInfo;
|
|
76
|
-
jumpLogin: () => void;
|
|
77
|
-
webType: webTypeEnum;
|
|
78
|
-
applyAbilityEval: (data: ApplyEvalRequest) => Promise<DefaultRespDTO<any>>;
|
|
79
|
-
navMenuList?: SubMenu[];
|
|
80
|
-
isLLM: boolean;
|
|
81
|
-
isDefaultShowSecondMenu?: boolean;
|
|
82
|
-
}
|
|
83
|
-
interface OnlineEvaluationProps {
|
|
84
|
-
envType: envTypeEnum;
|
|
85
|
-
webType: webTypeEnum;
|
|
86
|
-
locale: langTypeEnum;
|
|
87
|
-
children?: React.ReactElement;
|
|
88
|
-
}
|
|
89
|
-
interface SideNavProps {
|
|
90
|
-
locale: langTypeEnum;
|
|
91
|
-
envType: envTypeEnum;
|
|
92
|
-
children?: React.ReactElement;
|
|
93
|
-
}
|
|
94
|
-
type TopNavLinkTarget = '_self' | '_blank';
|
|
95
|
-
interface DropdownItem {
|
|
96
|
-
key?: string;
|
|
97
|
-
id?: string;
|
|
98
|
-
type?: 'group' | 'item' | 'divider';
|
|
99
|
-
labelZh?: string;
|
|
100
|
-
labelEn?: string;
|
|
101
|
-
label?: string;
|
|
102
|
-
href?: string;
|
|
103
|
-
linkTarget?: TopNavLinkTarget;
|
|
104
|
-
icon?: React.ReactNode;
|
|
105
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
106
|
-
children?: DropdownItem[];
|
|
107
|
-
}
|
|
108
|
-
interface TopNavNavItem {
|
|
109
|
-
key?: string;
|
|
110
|
-
label?: string;
|
|
111
|
-
labelZh?: string;
|
|
112
|
-
labelEn?: string;
|
|
113
|
-
href?: string;
|
|
114
|
-
linkTarget?: TopNavLinkTarget;
|
|
115
|
-
active?: boolean;
|
|
116
|
-
withDown?: boolean;
|
|
117
|
-
dropdownItems?: DropdownItem[];
|
|
118
|
-
}
|
|
119
|
-
interface TopNavArenaConfig {
|
|
120
|
-
/** 中文名称,默认 'Arena' */
|
|
121
|
-
labelZh?: string;
|
|
122
|
-
/** 英文名称,默认 'Arena' */
|
|
123
|
-
labelEn?: string;
|
|
124
|
-
/** 跳转地址,传入后渲染为 <a>,支持中键开新标签 */
|
|
125
|
-
href?: string;
|
|
126
|
-
/** 跳转方式: _self 当前页跳转, _blank 新页面打开 */
|
|
127
|
-
linkTarget?: TopNavLinkTarget;
|
|
128
|
-
}
|
|
129
|
-
interface TopNavProps {
|
|
130
|
-
/** 当前语言,用于导航文案和链接参数渲染 */
|
|
131
|
-
locale: langTypeEnum;
|
|
132
|
-
/** 点击语言切换按钮时触发,语言状态由父组件维护 */
|
|
133
|
-
onToggleLocale: () => void;
|
|
134
|
-
/** 当前运行环境,用于读取对应环境配置,如不传是用生产环境地址 */
|
|
135
|
-
envType?: envTypeEnum;
|
|
136
|
-
/** 点击品牌 Logo 后跳转的地址,根据环境有默认值 */
|
|
137
|
-
brandHref?: string;
|
|
138
|
-
/** 顶部导航菜单配置,根据环境有默认值 */
|
|
139
|
-
navItems?: TopNavNavItem[];
|
|
140
|
-
/** 当前激活的顶部导航菜单 key; 传入后由组件内部标记对应 navItems.active */
|
|
141
|
-
activeKey?: topNavActiveKeyEnum;
|
|
142
|
-
/** Arena 入口的文案和跳转配置,根据环境有默认值 */
|
|
143
|
-
arena?: TopNavArenaConfig;
|
|
144
|
-
/** 跳转登录回调,与 header 组件保持一致 */
|
|
145
|
-
jumpLogin?: () => void;
|
|
146
|
-
/**
|
|
147
|
-
* 由父组件在登录成功后回传的用户信息;
|
|
148
|
-
* 传入有效值时,OcTopNav 会用头像替换登录按钮。
|
|
149
|
-
* 设为 null/undefined 表示未登录,显示登录按钮。
|
|
150
|
-
*/
|
|
151
|
-
userInfo?: IUserInfo | null;
|
|
152
|
-
/** 点击头像时弹出的下拉菜单项(如个人中心/退出登录); 不传时根据环境有默认值 */
|
|
153
|
-
userMenuItems?: DropdownItem[];
|
|
154
|
-
/** 退出登录的接口调用,与 header 组件保持一致 */
|
|
155
|
-
logout?: () => Promise<unknown>;
|
|
156
|
-
/** 退出登录后的清理回调,与 header 组件保持一致 */
|
|
157
|
-
handleUnauth?: () => void;
|
|
158
|
-
}
|
|
159
|
-
interface FooterProps {
|
|
160
|
-
locale: langTypeEnum;
|
|
161
|
-
envType: envTypeEnum;
|
|
162
|
-
isSticky?: boolean;
|
|
163
|
-
customClassname?: string;
|
|
15
|
+
interface DefaultRespDTO<T> {
|
|
16
|
+
msgCode: number;
|
|
17
|
+
msg: string;
|
|
18
|
+
success: boolean;
|
|
19
|
+
data: T;
|
|
20
|
+
}
|
|
21
|
+
interface ApplyEvalRequest {
|
|
22
|
+
modelName: string;
|
|
23
|
+
orgName: string;
|
|
24
|
+
modelScenarios: string;
|
|
25
|
+
email: string;
|
|
26
|
+
phoneNumber: string;
|
|
27
|
+
}
|
|
28
|
+
interface IUserInfo {
|
|
29
|
+
active?: number;
|
|
30
|
+
avatar?: string;
|
|
31
|
+
contribution?: null;
|
|
32
|
+
email?: string;
|
|
33
|
+
githubAccount?: null;
|
|
34
|
+
lastLoginAt?: string;
|
|
35
|
+
phone?: string;
|
|
36
|
+
userId: string;
|
|
37
|
+
username?: string;
|
|
38
|
+
nickname?: string;
|
|
39
|
+
access?: string;
|
|
40
|
+
bio?: string;
|
|
41
|
+
birth?: string;
|
|
42
|
+
location?: string;
|
|
43
|
+
locationEn?: string;
|
|
44
|
+
organization?: string;
|
|
45
|
+
qq?: string;
|
|
46
|
+
twitter?: string;
|
|
47
|
+
website?: string;
|
|
48
|
+
wechat?: string;
|
|
49
|
+
zhihu?: string;
|
|
50
|
+
ssoUid?: string;
|
|
51
|
+
token?: string;
|
|
52
|
+
roleIds?: string[];
|
|
53
|
+
}
|
|
54
|
+
interface SubMenu {
|
|
55
|
+
title: {
|
|
56
|
+
zh: string;
|
|
57
|
+
en: string;
|
|
58
|
+
};
|
|
59
|
+
key: string;
|
|
60
|
+
isExternal?: boolean;
|
|
61
|
+
href?: {
|
|
62
|
+
zh: string;
|
|
63
|
+
en: string;
|
|
64
|
+
} | string;
|
|
65
|
+
onClick?: (lang: any, source: any, url: any) => void;
|
|
66
|
+
isActive: boolean;
|
|
67
|
+
customNode?: React.ReactNode;
|
|
68
|
+
}
|
|
69
|
+
interface HeaderProps {
|
|
70
|
+
envType: envTypeEnum;
|
|
71
|
+
handleUnauth: () => void;
|
|
72
|
+
locale: langTypeEnum;
|
|
73
|
+
setLocale: (locale: langTypeEnum) => void;
|
|
74
|
+
logout: () => Promise<unknown>;
|
|
75
|
+
userInfo: IUserInfo;
|
|
76
|
+
jumpLogin: () => void;
|
|
77
|
+
webType: webTypeEnum;
|
|
78
|
+
applyAbilityEval: (data: ApplyEvalRequest) => Promise<DefaultRespDTO<any>>;
|
|
79
|
+
navMenuList?: SubMenu[];
|
|
80
|
+
isLLM: boolean;
|
|
81
|
+
isDefaultShowSecondMenu?: boolean;
|
|
82
|
+
}
|
|
83
|
+
interface OnlineEvaluationProps {
|
|
84
|
+
envType: envTypeEnum;
|
|
85
|
+
webType: webTypeEnum;
|
|
86
|
+
locale: langTypeEnum;
|
|
87
|
+
children?: React.ReactElement;
|
|
88
|
+
}
|
|
89
|
+
interface SideNavProps {
|
|
90
|
+
locale: langTypeEnum;
|
|
91
|
+
envType: envTypeEnum;
|
|
92
|
+
children?: React.ReactElement;
|
|
93
|
+
}
|
|
94
|
+
type TopNavLinkTarget = '_self' | '_blank';
|
|
95
|
+
interface DropdownItem {
|
|
96
|
+
key?: string;
|
|
97
|
+
id?: string;
|
|
98
|
+
type?: 'group' | 'item' | 'divider';
|
|
99
|
+
labelZh?: string;
|
|
100
|
+
labelEn?: string;
|
|
101
|
+
label?: string;
|
|
102
|
+
href?: string;
|
|
103
|
+
linkTarget?: TopNavLinkTarget;
|
|
104
|
+
icon?: React.ReactNode;
|
|
105
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
106
|
+
children?: DropdownItem[];
|
|
107
|
+
}
|
|
108
|
+
interface TopNavNavItem {
|
|
109
|
+
key?: string;
|
|
110
|
+
label?: string;
|
|
111
|
+
labelZh?: string;
|
|
112
|
+
labelEn?: string;
|
|
113
|
+
href?: string;
|
|
114
|
+
linkTarget?: TopNavLinkTarget;
|
|
115
|
+
active?: boolean;
|
|
116
|
+
withDown?: boolean;
|
|
117
|
+
dropdownItems?: DropdownItem[];
|
|
118
|
+
}
|
|
119
|
+
interface TopNavArenaConfig {
|
|
120
|
+
/** 中文名称,默认 'Arena' */
|
|
121
|
+
labelZh?: string;
|
|
122
|
+
/** 英文名称,默认 'Arena' */
|
|
123
|
+
labelEn?: string;
|
|
124
|
+
/** 跳转地址,传入后渲染为 <a>,支持中键开新标签 */
|
|
125
|
+
href?: string;
|
|
126
|
+
/** 跳转方式: _self 当前页跳转, _blank 新页面打开 */
|
|
127
|
+
linkTarget?: TopNavLinkTarget;
|
|
128
|
+
}
|
|
129
|
+
interface TopNavProps {
|
|
130
|
+
/** 当前语言,用于导航文案和链接参数渲染 */
|
|
131
|
+
locale: langTypeEnum;
|
|
132
|
+
/** 点击语言切换按钮时触发,语言状态由父组件维护 */
|
|
133
|
+
onToggleLocale: () => void;
|
|
134
|
+
/** 当前运行环境,用于读取对应环境配置,如不传是用生产环境地址 */
|
|
135
|
+
envType?: envTypeEnum;
|
|
136
|
+
/** 点击品牌 Logo 后跳转的地址,根据环境有默认值 */
|
|
137
|
+
brandHref?: string;
|
|
138
|
+
/** 顶部导航菜单配置,根据环境有默认值 */
|
|
139
|
+
navItems?: TopNavNavItem[];
|
|
140
|
+
/** 当前激活的顶部导航菜单 key; 传入后由组件内部标记对应 navItems.active */
|
|
141
|
+
activeKey?: topNavActiveKeyEnum;
|
|
142
|
+
/** Arena 入口的文案和跳转配置,根据环境有默认值 */
|
|
143
|
+
arena?: TopNavArenaConfig;
|
|
144
|
+
/** 跳转登录回调,与 header 组件保持一致 */
|
|
145
|
+
jumpLogin?: () => void;
|
|
146
|
+
/**
|
|
147
|
+
* 由父组件在登录成功后回传的用户信息;
|
|
148
|
+
* 传入有效值时,OcTopNav 会用头像替换登录按钮。
|
|
149
|
+
* 设为 null/undefined 表示未登录,显示登录按钮。
|
|
150
|
+
*/
|
|
151
|
+
userInfo?: IUserInfo | null;
|
|
152
|
+
/** 点击头像时弹出的下拉菜单项(如个人中心/退出登录); 不传时根据环境有默认值 */
|
|
153
|
+
userMenuItems?: DropdownItem[];
|
|
154
|
+
/** 退出登录的接口调用,与 header 组件保持一致 */
|
|
155
|
+
logout?: () => Promise<unknown>;
|
|
156
|
+
/** 退出登录后的清理回调,与 header 组件保持一致 */
|
|
157
|
+
handleUnauth?: () => void;
|
|
158
|
+
}
|
|
159
|
+
interface FooterProps {
|
|
160
|
+
locale: langTypeEnum;
|
|
161
|
+
envType: envTypeEnum;
|
|
162
|
+
isSticky?: boolean;
|
|
163
|
+
customClassname?: string;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
export { ApplyEvalRequest, DefaultRespDTO, DropdownItem, FooterProps, HeaderProps, IUserInfo, OnlineEvaluationProps, SideNavProps, TopNavArenaConfig, TopNavLinkTarget, TopNavNavItem, TopNavProps };
|
package/package.json
CHANGED
|
@@ -1,150 +1,149 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@opencompass-fe/oc-webkit-eval",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Provide some common components for oc",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "https://github.com/lm-ecosystem/oc-webkit.git"
|
|
8
|
-
},
|
|
9
|
-
"main": "./dist/index.js",
|
|
10
|
-
"types": "./dist/types/index.d.ts",
|
|
11
|
-
"files": [
|
|
12
|
-
"dist",
|
|
13
|
-
"docs"
|
|
14
|
-
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"dev": "cross-env NODE_ENV=developemnt rollup -m -c rollup.config.js -w",
|
|
17
|
-
"build": "rimraf dist && rimraf es && cross-env NODE_ENV=production rollup -c rollup.config.js",
|
|
18
|
-
"publish": "npm run build && npm publish",
|
|
19
|
-
"test": "tsc --project ./tsconfig.test.json && jest",
|
|
20
|
-
"lint": "eslint 'src/**/*.{ts,tsx,js,jsx}' && npm run build:type",
|
|
21
|
-
"lint:fix": "eslint src/**/*.{ts,tsx,js,jsx} --fix",
|
|
22
|
-
"demo:preview": "vite --config test/vite.config.ts"
|
|
23
|
-
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"react"
|
|
26
|
-
],
|
|
27
|
-
"publishConfig": {
|
|
28
|
-
"registry": "https://registry.npmjs.org/",
|
|
29
|
-
"access": "public"
|
|
30
|
-
},
|
|
31
|
-
"private": false,
|
|
32
|
-
"homepage": "",
|
|
33
|
-
"license": "Apache-2.0",
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@ant-design/cssinjs": "^1.18.0-alpha.5",
|
|
36
|
-
"@ant-design/icons": "^4.7.0",
|
|
37
|
-
"@loadable/component": "^5.16.4",
|
|
38
|
-
"@microsoft/fetch-event-source": "^2.0.1",
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"antd": "
|
|
43
|
-
"antd-mobile": "^
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"react": "^
|
|
66
|
-
"react-
|
|
67
|
-
"react-
|
|
68
|
-
"react-
|
|
69
|
-
"react-
|
|
70
|
-
"react-
|
|
71
|
-
"react-
|
|
72
|
-
"react-
|
|
73
|
-
"react-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"rehype-
|
|
77
|
-
"rehype-
|
|
78
|
-
"rehype-
|
|
79
|
-
"
|
|
80
|
-
"remark-
|
|
81
|
-
"remark-
|
|
82
|
-
"remark-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
"antd": "
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"@babel/
|
|
95
|
-
"@
|
|
96
|
-
"@rollup/plugin-
|
|
97
|
-
"@rollup/plugin-
|
|
98
|
-
"@rollup/plugin-
|
|
99
|
-
"@rollup/plugin-
|
|
100
|
-
"@rollup/plugin-
|
|
101
|
-
"@rollup
|
|
102
|
-
"@
|
|
103
|
-
"@types/
|
|
104
|
-
"@types/
|
|
105
|
-
"@types/
|
|
106
|
-
"@types/
|
|
107
|
-
"@types/
|
|
108
|
-
"@types/office-
|
|
109
|
-
"@types/
|
|
110
|
-
"@types/react": "^
|
|
111
|
-
"@types/react-
|
|
112
|
-
"@
|
|
113
|
-
"@typescript-eslint/
|
|
114
|
-
"@
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"eslint": "^
|
|
120
|
-
"eslint-
|
|
121
|
-
"eslint-plugin-
|
|
122
|
-
"eslint-plugin-
|
|
123
|
-
"eslint-plugin-react": "^
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"office-addin-
|
|
128
|
-
"office-addin-
|
|
129
|
-
"office-addin-
|
|
130
|
-
"office-addin-
|
|
131
|
-
"office-addin-
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"prettier": "
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"rollup": "^2.
|
|
139
|
-
"rollup-plugin-
|
|
140
|
-
"rollup-plugin-
|
|
141
|
-
"rollup-plugin-
|
|
142
|
-
"rollup-plugin-
|
|
143
|
-
"rollup-plugin-
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@opencompass-fe/oc-webkit-eval",
|
|
3
|
+
"version": "0.2.8",
|
|
4
|
+
"description": "Provide some common components for oc",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/lm-ecosystem/oc-webkit.git"
|
|
8
|
+
},
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"docs"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"dev": "cross-env NODE_ENV=developemnt rollup -m -c rollup.config.js -w",
|
|
17
|
+
"build": "rimraf dist && rimraf es && cross-env NODE_ENV=production rollup -c rollup.config.js",
|
|
18
|
+
"publish": "npm run build && npm publish",
|
|
19
|
+
"test": "tsc --project ./tsconfig.test.json && jest",
|
|
20
|
+
"lint": "eslint 'src/**/*.{ts,tsx,js,jsx}' && npm run build:type",
|
|
21
|
+
"lint:fix": "eslint src/**/*.{ts,tsx,js,jsx} --fix",
|
|
22
|
+
"demo:preview": "vite --config test/vite.config.ts"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"react"
|
|
26
|
+
],
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"registry": "https://registry.npmjs.org/",
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"private": false,
|
|
32
|
+
"homepage": "",
|
|
33
|
+
"license": "Apache-2.0",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@ant-design/cssinjs": "^1.18.0-alpha.5",
|
|
36
|
+
"@ant-design/icons": "^4.7.0",
|
|
37
|
+
"@loadable/component": "^5.16.4",
|
|
38
|
+
"@microsoft/fetch-event-source": "^2.0.1",
|
|
39
|
+
"@react-hook/hover": "^4.0.0",
|
|
40
|
+
"ahooks": "^3.8.1",
|
|
41
|
+
"antd": ">=4.15.0",
|
|
42
|
+
"antd-mobile": "^5.38.1",
|
|
43
|
+
"antd-mobile-icons": "^0.3.0",
|
|
44
|
+
"axios": "^1.6.2",
|
|
45
|
+
"classnames": "^2.3.2",
|
|
46
|
+
"core-js": "^3.9.1",
|
|
47
|
+
"country-flag-icons": "^1.5.16",
|
|
48
|
+
"cross-env": "^7.0.3",
|
|
49
|
+
"diff": "^5.1.0",
|
|
50
|
+
"diff2html": "^3.4.41",
|
|
51
|
+
"es6-promise": "^4.2.8",
|
|
52
|
+
"event-source-polyfill": "^1.0.31",
|
|
53
|
+
"events": "^3.3.0",
|
|
54
|
+
"html2canvas": "^1.4.1",
|
|
55
|
+
"js-cookie": "^3.0.5",
|
|
56
|
+
"jssha": "^3.3.1",
|
|
57
|
+
"localforage": "^1.10.0",
|
|
58
|
+
"lodash-es": "^4.17.21",
|
|
59
|
+
"lottie-react": "^2.4.0",
|
|
60
|
+
"moment": "^2.30.1",
|
|
61
|
+
"postcss": "^8.4.23",
|
|
62
|
+
"program-language-detector": "^0.0.12",
|
|
63
|
+
"rapid-uploader": "^0.0.10",
|
|
64
|
+
"react": "^18.2.0",
|
|
65
|
+
"react-contextmenu": "^2.14.0",
|
|
66
|
+
"react-copy-to-clipboard": "^5.1.0",
|
|
67
|
+
"react-device-detect": "^2.2.3",
|
|
68
|
+
"react-dom": "^18.2.0",
|
|
69
|
+
"react-images-viewer": "1.6.2",
|
|
70
|
+
"react-markdown": "^9.0.1",
|
|
71
|
+
"react-router-dom": "^6.10.0",
|
|
72
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
73
|
+
"react-text-selection-popover": "^1.3.2",
|
|
74
|
+
"regenerator-runtime": "^0.13.7",
|
|
75
|
+
"rehype-katex": "^7.0.1",
|
|
76
|
+
"rehype-raw": "^7.0.0",
|
|
77
|
+
"rehype-sanitize": "^6.0.0",
|
|
78
|
+
"rehype-slug": "^6.0.0",
|
|
79
|
+
"remark-breaks": "^4.0.0",
|
|
80
|
+
"remark-code-format": "^1.0.8",
|
|
81
|
+
"remark-gfm": "^4.0.0",
|
|
82
|
+
"remark-math": "^6.0.0",
|
|
83
|
+
"selection-popover": "^0.3.0",
|
|
84
|
+
"sse.js": "^2.2.0"
|
|
85
|
+
},
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
"@ant-design/icons": "^4.7.0",
|
|
88
|
+
"antd": ">=4.15.0",
|
|
89
|
+
"antd-mobile": "^5.38.1",
|
|
90
|
+
"react": "^18.2.0"
|
|
91
|
+
},
|
|
92
|
+
"devDependencies": {
|
|
93
|
+
"@babel/core": "^7.13.10",
|
|
94
|
+
"@babel/preset-typescript": "^7.13.0",
|
|
95
|
+
"@rollup/plugin-alias": "^5.0.0",
|
|
96
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
97
|
+
"@rollup/plugin-commonjs": "^21.0.2",
|
|
98
|
+
"@rollup/plugin-image": "^3.0.2",
|
|
99
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
100
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
101
|
+
"@svgr/rollup": "^6.5.1",
|
|
102
|
+
"@types/classnames": "^2.3.1",
|
|
103
|
+
"@types/event-source-polyfill": "^1.0.1",
|
|
104
|
+
"@types/js-cookie": "^3.0.3",
|
|
105
|
+
"@types/lodash-es": "^4.17.7",
|
|
106
|
+
"@types/node": "^18.15.11",
|
|
107
|
+
"@types/office-js": "^1.0.256",
|
|
108
|
+
"@types/office-runtime": "^1.0.23",
|
|
109
|
+
"@types/react": "^18.0.28",
|
|
110
|
+
"@types/react-copy-to-clipboard": "^5.0.4",
|
|
111
|
+
"@types/react-dom": "^18.0.11",
|
|
112
|
+
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
113
|
+
"@typescript-eslint/parser": "^6.4.0",
|
|
114
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
115
|
+
"acorn": "^8.5.0",
|
|
116
|
+
"babel-loader": "^8.2.2",
|
|
117
|
+
"esbuild": "^0.28.0",
|
|
118
|
+
"eslint": "^8.47.0",
|
|
119
|
+
"eslint-config-prettier": "^9.0.0",
|
|
120
|
+
"eslint-plugin-office-addins": "^2.1.5",
|
|
121
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
122
|
+
"eslint-plugin-react": "^7.33.2",
|
|
123
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
124
|
+
"jest": "^29.6.2",
|
|
125
|
+
"less": "^4.2.0",
|
|
126
|
+
"office-addin-cli": "^1.5.5",
|
|
127
|
+
"office-addin-debugging": "^5.0.12",
|
|
128
|
+
"office-addin-dev-certs": "^1.11.3",
|
|
129
|
+
"office-addin-lint": "^2.2.5",
|
|
130
|
+
"office-addin-manifest": "^1.12.3",
|
|
131
|
+
"office-addin-prettier-config": "^1.2.0",
|
|
132
|
+
"os-browserify": "^0.3.0",
|
|
133
|
+
"prettier": "3.0.2",
|
|
134
|
+
"prettier-eslint": "^15.0.1",
|
|
135
|
+
"process": "^0.11.10",
|
|
136
|
+
"rimraf": "^3.0.2",
|
|
137
|
+
"rollup": "^2.43.1",
|
|
138
|
+
"rollup-plugin-dts": "^4.2.2",
|
|
139
|
+
"rollup-plugin-esbuild": "^3.0.2",
|
|
140
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
141
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
142
|
+
"rollup-plugin-typescript2": "^0.31.2",
|
|
143
|
+
"rollup-plugin-url": "^3.0.1",
|
|
144
|
+
"shx": "^0.3.4",
|
|
145
|
+
"terser": "^5.16.9",
|
|
146
|
+
"typescript": "^4.2.3",
|
|
147
|
+
"vite": "^8.0.14"
|
|
148
|
+
}
|
|
149
|
+
}
|