@opencompass-fe/oc-webkit-eval 0.2.7 → 0.2.9

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 (37) hide show
  1. package/README.md +37 -37
  2. package/dist/assets/svg/top-nav/menu-button.svg.js +1 -1
  3. package/dist/components/dropdown/dropdown.js +1 -1
  4. package/dist/components/footer/footer.js +1 -1
  5. package/dist/components/footer/index.js +1 -1
  6. package/dist/components/footer-expansion/footer-expansion.js +1 -1
  7. package/dist/components/footer-expansion/index.js +1 -1
  8. package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.js +1 -1
  9. package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.js +1 -1
  10. package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.module.less.js +2 -2
  11. package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.js +1 -1
  12. package/dist/components/header/header.js +1 -1
  13. package/dist/components/header/hooks/useUrl.js +1 -1
  14. package/dist/components/header/index.js +1 -1
  15. package/dist/components/header/secondHeader.js +1 -1
  16. package/dist/components/md-render/index.js +4 -4
  17. package/dist/components/online-evaluation/index.js +1 -1
  18. package/dist/components/online-evaluation/online-evaluation.js +1 -1
  19. package/dist/components/side-nav/index.js +1 -1
  20. package/dist/components/side-nav/side-nav.js +1 -1
  21. package/dist/components/side-nav/side-nav.module.less.js +2 -2
  22. package/dist/components/top-nav/index.js +1 -1
  23. package/dist/components/top-nav/shared.js +1 -1
  24. package/dist/components/top-nav/top-nav.js +1 -1
  25. package/dist/constants/enums.js +1 -1
  26. package/dist/extraComponents/button/button.js +1 -1
  27. package/dist/helper/index.js +1 -1
  28. package/dist/locale/index.js +1 -1
  29. package/dist/mobile/components/top-nav/top-nav.js +1 -1
  30. package/dist/providers/OcContext.js +1 -1
  31. package/dist/types/components/dropdown/dropdown.d.ts +34 -34
  32. package/dist/types/components/md-render/index.d.ts +4 -4
  33. package/dist/types/constants/enums.d.ts +26 -26
  34. package/dist/types/google-log/home.d.ts +6 -6
  35. package/dist/types/helper/index.d.ts +10 -10
  36. package/dist/types/index.d.ts +149 -149
  37. package/package.json +149 -150
@@ -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.7",
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
- "@openmmlab/oss-upload": "^1.3.0",
40
- "@react-hook/hover": "^4.0.0",
41
- "ahooks": "^3.8.1",
42
- "antd": ">=4.15.0",
43
- "antd-mobile": "^5.38.1",
44
- "antd-mobile-icons": "^0.3.0",
45
- "axios": "^1.6.2",
46
- "classnames": "^2.3.2",
47
- "core-js": "^3.9.1",
48
- "country-flag-icons": "^1.5.16",
49
- "cross-env": "^7.0.3",
50
- "diff": "^5.1.0",
51
- "diff2html": "^3.4.41",
52
- "es6-promise": "^4.2.8",
53
- "event-source-polyfill": "^1.0.31",
54
- "events": "^3.3.0",
55
- "html2canvas": "^1.4.1",
56
- "js-cookie": "^3.0.5",
57
- "jssha": "^3.3.1",
58
- "localforage": "^1.10.0",
59
- "lodash-es": "^4.17.21",
60
- "lottie-react": "^2.4.0",
61
- "moment": "^2.30.1",
62
- "postcss": "^8.4.23",
63
- "program-language-detector": "^0.0.12",
64
- "rapid-uploader": "^0.0.10",
65
- "react": "^18.2.0",
66
- "react-contextmenu": "^2.14.0",
67
- "react-copy-to-clipboard": "^5.1.0",
68
- "react-device-detect": "^2.2.3",
69
- "react-dom": "^18.2.0",
70
- "react-images-viewer": "1.6.2",
71
- "react-markdown": "^9.0.1",
72
- "react-router-dom": "^6.10.0",
73
- "react-syntax-highlighter": "^15.5.0",
74
- "react-text-selection-popover": "^1.3.2",
75
- "regenerator-runtime": "^0.13.7",
76
- "rehype-katex": "^7.0.1",
77
- "rehype-raw": "^7.0.0",
78
- "rehype-sanitize": "^6.0.0",
79
- "rehype-slug": "^6.0.0",
80
- "remark-breaks": "^4.0.0",
81
- "remark-code-format": "^1.0.8",
82
- "remark-gfm": "^4.0.0",
83
- "remark-math": "^6.0.0",
84
- "selection-popover": "^0.3.0",
85
- "sse.js": "^2.2.0"
86
- },
87
- "peerDependencies": {
88
- "@ant-design/icons": "^4.7.0",
89
- "antd": ">=4.15.0",
90
- "antd-mobile": "^5.38.1",
91
- "react": "^18.2.0"
92
- },
93
- "devDependencies": {
94
- "@babel/core": "^7.13.10",
95
- "@babel/preset-typescript": "^7.13.0",
96
- "@rollup/plugin-alias": "^5.0.0",
97
- "@rollup/plugin-babel": "^5.3.1",
98
- "@rollup/plugin-commonjs": "^21.0.2",
99
- "@rollup/plugin-image": "^3.0.2",
100
- "@rollup/plugin-json": "^6.0.0",
101
- "@rollup/plugin-node-resolve": "^15.0.2",
102
- "@svgr/rollup": "^6.5.1",
103
- "@types/classnames": "^2.3.1",
104
- "@types/event-source-polyfill": "^1.0.1",
105
- "@types/js-cookie": "^3.0.3",
106
- "@types/lodash-es": "^4.17.7",
107
- "@types/node": "^18.15.11",
108
- "@types/office-js": "^1.0.256",
109
- "@types/office-runtime": "^1.0.23",
110
- "@types/react": "^18.0.28",
111
- "@types/react-copy-to-clipboard": "^5.0.4",
112
- "@types/react-dom": "^18.0.11",
113
- "@typescript-eslint/eslint-plugin": "^6.4.0",
114
- "@typescript-eslint/parser": "^6.4.0",
115
- "@vitejs/plugin-react": "^6.0.2",
116
- "acorn": "^8.5.0",
117
- "babel-loader": "^8.2.2",
118
- "esbuild": "^0.28.0",
119
- "eslint": "^8.47.0",
120
- "eslint-config-prettier": "^9.0.0",
121
- "eslint-plugin-office-addins": "^2.1.5",
122
- "eslint-plugin-prettier": "^5.0.0",
123
- "eslint-plugin-react": "^7.33.2",
124
- "eslint-plugin-react-hooks": "^4.6.0",
125
- "jest": "^29.6.2",
126
- "less": "^4.2.0",
127
- "office-addin-cli": "^1.5.5",
128
- "office-addin-debugging": "^5.0.12",
129
- "office-addin-dev-certs": "^1.11.3",
130
- "office-addin-lint": "^2.2.5",
131
- "office-addin-manifest": "^1.12.3",
132
- "office-addin-prettier-config": "^1.2.0",
133
- "os-browserify": "^0.3.0",
134
- "prettier": "3.0.2",
135
- "prettier-eslint": "^15.0.1",
136
- "process": "^0.11.10",
137
- "rimraf": "^3.0.2",
138
- "rollup": "^2.43.1",
139
- "rollup-plugin-dts": "^4.2.2",
140
- "rollup-plugin-esbuild": "^3.0.2",
141
- "rollup-plugin-peer-deps-external": "^2.2.4",
142
- "rollup-plugin-postcss": "^4.0.2",
143
- "rollup-plugin-typescript2": "^0.31.2",
144
- "rollup-plugin-url": "^3.0.1",
145
- "shx": "^0.3.4",
146
- "terser": "^5.16.9",
147
- "typescript": "^4.2.3",
148
- "vite": "^8.0.14"
149
- }
150
- }
1
+ {
2
+ "name": "@opencompass-fe/oc-webkit-eval",
3
+ "version": "0.2.9",
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
+ }