@cozeloop/components 0.0.3 → 0.0.4

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 (165) hide show
  1. package/package.json +9 -3
  2. package/.eslintcache +0 -1
  3. package/.rush/temp/shrinkwrap-deps.json +0 -770
  4. package/OWNERS +0 -5
  5. package/config/rush-project.json +0 -8
  6. package/eslint.config.js +0 -7
  7. package/rslib.config.js +0 -7
  8. package/script/publish.js +0 -146
  9. package/src/base-search-select/base-search-form-select.tsx +0 -10
  10. package/src/base-search-select/base-search-select.tsx +0 -200
  11. package/src/base-search-select/index.module.less +0 -16
  12. package/src/base-search-select/index.tsx +0 -3
  13. package/src/base-search-select/types.ts +0 -16
  14. package/src/base-search-select/utils.ts +0 -78
  15. package/src/basic-card/index.tsx +0 -23
  16. package/src/card-pane/index.module.less +0 -14
  17. package/src/card-pane/index.tsx +0 -25
  18. package/src/chip-select/index.module.less +0 -17
  19. package/src/chip-select/index.tsx +0 -7
  20. package/src/code-editor/index.tsx +0 -9
  21. package/src/code-usage/code-item.module.less +0 -32
  22. package/src/code-usage/index.tsx +0 -91
  23. package/src/codemirror-editor/code-editor.tsx +0 -139
  24. package/src/codemirror-editor/index.ts +0 -4
  25. package/src/codemirror-editor/json-editor.tsx +0 -183
  26. package/src/codemirror-editor/raw-text-editor.tsx +0 -68
  27. package/src/codemirror-editor/text-editor.tsx +0 -58
  28. package/src/codemirror-editor/themes/coze-dark.ts +0 -116
  29. package/src/codemirror-editor/themes/coze-light.ts +0 -122
  30. package/src/collapse-card/index.module.less +0 -27
  31. package/src/collapse-card/index.tsx +0 -93
  32. package/src/collapsible-card/index.module.less +0 -63
  33. package/src/collapsible-card/index.tsx +0 -57
  34. package/src/column-manage-storage/index.tsx +0 -64
  35. package/src/columns-select/index.tsx +0 -244
  36. package/src/edit-icon-button/index.tsx +0 -36
  37. package/src/footer-actions/index.tsx +0 -33
  38. package/src/hooks/use-infinite-scroll.ts +0 -183
  39. package/src/hooks/use-mouse-down-offset.ts +0 -50
  40. package/src/hooks/use-unsave-leave-warning.ts +0 -49
  41. package/src/id-render/icon-button-container.tsx +0 -37
  42. package/src/id-render/index.tsx +0 -64
  43. package/src/index-controller/record-navigation.tsx +0 -57
  44. package/src/index-controller/use-item-index-controller.ts +0 -197
  45. package/src/index.ts +0 -208
  46. package/src/infinite-scroll-table/index.tsx +0 -99
  47. package/src/info-tooltip/index.tsx +0 -41
  48. package/src/input-components/radio-button.tsx +0 -63
  49. package/src/input-slider/index.module.less +0 -30
  50. package/src/input-slider/index.tsx +0 -161
  51. package/src/input-with-count/index.tsx +0 -31
  52. package/src/jump-button/jump-icon-button.tsx +0 -12
  53. package/src/large-txt-render/index.tsx +0 -46
  54. package/src/layout/content.tsx +0 -28
  55. package/src/layout/header.tsx +0 -15
  56. package/src/layout/index.module.less +0 -28
  57. package/src/layout/index.tsx +0 -9
  58. package/src/layout/tabs.tsx +0 -11
  59. package/src/lazy-load-component/index.tsx +0 -55
  60. package/src/logic-editor/index.ts +0 -3
  61. package/src/logic-editor/logic-editor.module.less +0 -13
  62. package/src/logic-editor/logic-editor.tsx +0 -200
  63. package/src/logic-editor/logic-left-render.tsx +0 -100
  64. package/src/logic-editor/logic-operator-render.tsx +0 -54
  65. package/src/logic-editor/logic-right-render.tsx +0 -51
  66. package/src/logic-editor/logic-types.tsx +0 -238
  67. package/src/logic-editor/utils.ts +0 -22
  68. package/src/logic-expr/assets/select.svg +0 -1
  69. package/src/logic-expr/consts.ts +0 -6
  70. package/src/logic-expr/expr-group-render.tsx +0 -238
  71. package/src/logic-expr/expr-render.tsx +0 -226
  72. package/src/logic-expr/index.module.less +0 -252
  73. package/src/logic-expr/index.ts +0 -13
  74. package/src/logic-expr/logic-expr.tsx +0 -261
  75. package/src/logic-expr/logic-not.tsx +0 -46
  76. package/src/logic-expr/logic-toggle.tsx +0 -96
  77. package/src/logic-expr/types.ts +0 -95
  78. package/src/loop-radio-group/index.tsx +0 -16
  79. package/src/multi-part-editor/components/image-item-renderer.tsx +0 -134
  80. package/src/multi-part-editor/components/index.module.less +0 -21
  81. package/src/multi-part-editor/components/multipart-item-renderer.tsx +0 -74
  82. package/src/multi-part-editor/components/url-input-modal.tsx +0 -317
  83. package/src/multi-part-editor/components/video-item-renderer.tsx +0 -145
  84. package/src/multi-part-editor/index.module.less +0 -8
  85. package/src/multi-part-editor/index.tsx +0 -571
  86. package/src/multi-part-editor/multi-part-render.tsx +0 -87
  87. package/src/multi-part-editor/type.tsx +0 -103
  88. package/src/multi-part-editor/upload-button.tsx +0 -256
  89. package/src/multi-part-editor/utils.ts +0 -64
  90. package/src/open-detail-button/index.tsx +0 -30
  91. package/src/page-content/index.tsx +0 -99
  92. package/src/primary-page/index.tsx +0 -1
  93. package/src/primary-page/primary-header.tsx +0 -64
  94. package/src/primary-title/index.module.less +0 -14
  95. package/src/primary-title/index.tsx +0 -18
  96. package/src/provider/index.tsx +0 -89
  97. package/src/resizable-side-sheet/index.tsx +0 -69
  98. package/src/resize-sidesheet/index.module.less +0 -14
  99. package/src/resize-sidesheet/index.tsx +0 -68
  100. package/src/resize-sidesheet/use-drag.ts +0 -43
  101. package/src/schema-editor/index.tsx +0 -52
  102. package/src/search-form/index.tsx +0 -134
  103. package/src/semi-schema-form/components/tmpls/array-field-item.tsx +0 -97
  104. package/src/semi-schema-form/components/tmpls/array-field.tsx +0 -127
  105. package/src/semi-schema-form/components/tmpls/base-input.tsx +0 -126
  106. package/src/semi-schema-form/components/tmpls/description-field.tsx +0 -23
  107. package/src/semi-schema-form/components/tmpls/error-list.tsx +0 -44
  108. package/src/semi-schema-form/components/tmpls/field-error.tsx +0 -33
  109. package/src/semi-schema-form/components/tmpls/field.tsx +0 -54
  110. package/src/semi-schema-form/components/tmpls/icon-button.tsx +0 -112
  111. package/src/semi-schema-form/components/tmpls/index.ts +0 -39
  112. package/src/semi-schema-form/components/tmpls/object-field.tsx +0 -173
  113. package/src/semi-schema-form/components/tmpls/submit.tsx +0 -31
  114. package/src/semi-schema-form/components/tmpls/title-field.tsx +0 -30
  115. package/src/semi-schema-form/components/widgets/checkbox.tsx +0 -67
  116. package/src/semi-schema-form/components/widgets/checkboxs.tsx +0 -100
  117. package/src/semi-schema-form/components/widgets/index.ts +0 -17
  118. package/src/semi-schema-form/components/widgets/radio.tsx +0 -105
  119. package/src/semi-schema-form/components/widgets/range.tsx +0 -73
  120. package/src/semi-schema-form/components/widgets/select.tsx +0 -108
  121. package/src/semi-schema-form/components/widgets/textarea.tsx +0 -63
  122. package/src/semi-schema-form/index.tsx +0 -14
  123. package/src/sentinel-form/enum.ts +0 -16
  124. package/src/sentinel-form/index.tsx +0 -382
  125. package/src/step-nav/index.module.less +0 -45
  126. package/src/step-nav/index.tsx +0 -53
  127. package/src/table/index.module.less +0 -144
  128. package/src/table/index.tsx +0 -18
  129. package/src/table/sort-icon.tsx +0 -73
  130. package/src/table/table-with-pagination.tsx +0 -150
  131. package/src/table/table-without-pagniation.tsx +0 -66
  132. package/src/table-batch-operate/table-batch-operation.tsx +0 -47
  133. package/src/table-batch-operate/use-batch-operate.ts +0 -111
  134. package/src/table-col-actions/index.module.less +0 -8
  135. package/src/table-col-actions/index.tsx +0 -149
  136. package/src/table-cols-config/index.module.less +0 -34
  137. package/src/table-cols-config/index.tsx +0 -171
  138. package/src/table-cols-config/type.ts +0 -12
  139. package/src/table-cols-config/use-hidden-col-keys.ts +0 -53
  140. package/src/table-cols-config/util.ts +0 -56
  141. package/src/table-empty/index.tsx +0 -23
  142. package/src/table-header/index.module.less +0 -7
  143. package/src/table-header/index.tsx +0 -70
  144. package/src/tabs/index.module.less +0 -48
  145. package/src/tabs/index.tsx +0 -9
  146. package/src/text-area-pro/index.module.less +0 -5
  147. package/src/text-area-pro/index.tsx +0 -49
  148. package/src/text-with-copy/index.tsx +0 -95
  149. package/src/title-with-sub/index.tsx +0 -27
  150. package/src/tooltip-when-disabled/index.tsx +0 -23
  151. package/src/tooltip-with-disabled/index.tsx +0 -17
  152. package/src/types.d.ts +0 -24
  153. package/src/upload/index.ts +0 -39
  154. package/src/user-profile/index.tsx +0 -49
  155. package/src/utils/basic.ts +0 -29
  156. package/src/version-list/index.module.less +0 -16
  157. package/src/version-list/version-descriptions.tsx +0 -80
  158. package/src/version-list/version-item.tsx +0 -30
  159. package/src/version-list/version-list.tsx +0 -59
  160. package/src/version-list/version-switch-panel.tsx +0 -31
  161. package/tailwind.config.ts +0 -6
  162. package/tsconfig.build.json +0 -44
  163. package/tsconfig.json +0 -17
  164. package/tsconfig.misc.json +0 -28
  165. package/vitest.config.mts +0 -7
package/src/types.d.ts DELETED
@@ -1,24 +0,0 @@
1
- /// <reference types='@coze-arch/bot-typings' />
2
-
3
- interface Window {
4
- optimizeEditorMap?: Record<string, any>;
5
- }
6
-
7
- declare module '*.svg' {
8
- export const ReactComponent: React.FunctionComponent<
9
- React.SVGProps<SVGSVGElement>
10
- >;
11
-
12
- /**
13
- * The default export type depends on the svgDefaultExport config,
14
- * it can be a string or a ReactComponent
15
- * */
16
- const content: any;
17
- export default content;
18
- }
19
- declare type Int64 = string | number;
20
-
21
- /**
22
- * defined in rsbuild config for `@monaco-editor/react` loader
23
- */
24
- declare const MONACO_UNPKG: string;
@@ -1,39 +0,0 @@
1
- import { type customRequestArgs } from '@coze-arch/coze-design';
2
-
3
- export function uploadFile({
4
- file,
5
- fileType = 'image',
6
- onProgress,
7
- onSuccess,
8
- onError,
9
- spaceID,
10
- }: {
11
- file: File;
12
- fileType?: 'image' | 'object';
13
- onProgress?: customRequestArgs['onProgress'];
14
- onSuccess?: customRequestArgs['onSuccess'];
15
- onError?: customRequestArgs['onError'];
16
- spaceID: string;
17
- }) {
18
- const result = new Promise<string>((resolve, reject) => {
19
- (async function () {
20
- try {
21
- const formData = new FormData();
22
- formData.append('file', file);
23
- formData.append('business_type', 'evaluation');
24
- formData.append('workspace_id', spaceID);
25
- const res = await fetch('/api/foundation/v1/files', {
26
- method: 'POST',
27
- body: formData,
28
- });
29
- const resObj = await res.json();
30
- onSuccess?.({ status: 200, Uri: resObj?.data?.file_name });
31
- resolve(resObj?.data?.file_name ?? '');
32
- } catch (e) {
33
- onError?.({ status: 500 });
34
- reject(e);
35
- }
36
- })();
37
- });
38
- return result;
39
- }
@@ -1,49 +0,0 @@
1
- import cn from 'classnames';
2
- import { CozAvatar, Typography } from '@coze-arch/coze-design';
3
-
4
- interface UserInfoProps {
5
- avatarUrl?: string;
6
- name?: string;
7
- className?: string;
8
- avatarClassName?: string;
9
- userNameClassName?: string;
10
- }
11
- export const UserProfile = ({
12
- avatarUrl,
13
- name,
14
- className,
15
- avatarClassName,
16
- userNameClassName,
17
- }: UserInfoProps) => {
18
- if (!avatarUrl && !name) {
19
- return null;
20
- }
21
- return (
22
- <div className={cn('flex items-center gap-[6px] w-full', className)}>
23
- <CozAvatar
24
- className={cn('!w-[20px] !h-[20px]', avatarClassName)}
25
- src={avatarUrl}
26
- >
27
- {name}
28
- </CozAvatar>
29
- <Typography.Text
30
- className={cn('flex-1 overflow-hidden !text-[13px]', userNameClassName)}
31
- style={{
32
- fontSize: 'inherit',
33
- color: 'inherit',
34
- fontWeight: 'inherit',
35
- lineHeight: 'inherit',
36
- }}
37
- ellipsis={{
38
- showTooltip: {
39
- opts: {
40
- theme: 'dark',
41
- },
42
- },
43
- }}
44
- >
45
- {name}
46
- </Typography.Text>
47
- </div>
48
- );
49
- };
@@ -1,29 +0,0 @@
1
- import copy from 'copy-to-clipboard';
2
- import { Toast } from '@coze-arch/coze-design';
3
-
4
- export const handleCopy = async (value: string, hideToast?: boolean) => {
5
- try {
6
- copy(value);
7
- !hideToast &&
8
- Toast.success({
9
- content: '复制成功',
10
- showClose: false,
11
- zIndex: 99999,
12
- });
13
- return Promise.resolve(true);
14
- } catch (e) {
15
- Toast.warning({
16
- content: '复制失败',
17
- showClose: false,
18
- zIndex: 99999,
19
- });
20
- console.error(e);
21
- return Promise.resolve(false);
22
- }
23
- };
24
-
25
- export function sleep(timer = 600) {
26
- return new Promise<void>(resolve => {
27
- setTimeout(() => resolve(), timer);
28
- });
29
- }
@@ -1,16 +0,0 @@
1
- /* stylelint-disable declaration-no-important */
2
- .description{
3
- :global{
4
- .semi-descriptions-item{
5
- padding-bottom: 8px;
6
- }
7
-
8
- .semi-descriptions-key{
9
- font-size: 13px !important;
10
- }
11
-
12
- th{
13
- padding-right: 12px;
14
- }
15
- }
16
- }
@@ -1,80 +0,0 @@
1
- /* eslint-disable complexity */
2
- import cs from 'classnames';
3
- import { formatTimestampToString } from '@cozeloop/toolkit';
4
- import { type UserInfo } from '@cozeloop/api-schema/evaluation';
5
- import { Descriptions, Tag, Typography } from '@coze-arch/coze-design';
6
-
7
- import { UserProfile } from '../user-profile';
8
-
9
- import styles from './index.module.less';
10
- export type Integer64 = string;
11
-
12
- export interface Version {
13
- id: Integer64;
14
- version?: string;
15
- submitTime?: Integer64;
16
- submitter?: UserInfo;
17
- description?: string;
18
- isDraft?: boolean;
19
- draftSubmitText?: string;
20
- }
21
-
22
- export default function VersionDescriptions({
23
- version,
24
- className,
25
- }: {
26
- version: Version | undefined;
27
- className?: string;
28
- }) {
29
- const {
30
- version: versionName,
31
- draftSubmitText = '保存时间',
32
- submitTime,
33
- submitter,
34
- description,
35
- isDraft = false,
36
- } = version || {};
37
-
38
- return (
39
- <Descriptions align="left" className={cs(styles.description, className)}>
40
- <Tag color={isDraft ? 'primary' : 'green'} className="mb-2">
41
- {isDraft ? '当前草稿' : '提交'}
42
- </Tag>
43
- {isDraft ? null : (
44
- <Descriptions.Item itemKey="版本">
45
- <span className="font-medium">{versionName ?? '-'}</span>
46
- </Descriptions.Item>
47
- )}
48
- {!submitTime ? null : (
49
- <Descriptions.Item
50
- itemKey={isDraft ? draftSubmitText : '提交时间'}
51
- className="!text-[13px]"
52
- >
53
- <span className="font-medium !text-[13px]">
54
- {submitTime
55
- ? formatTimestampToString(submitTime, 'YYYY-MM-DD HH:mm:ss')
56
- : '-'}
57
- </span>
58
- </Descriptions.Item>
59
- )}
60
- {isDraft && !submitter ? null : (
61
- <Descriptions.Item itemKey="提交人" className="!text-[13px]">
62
- <UserProfile
63
- name={submitter?.name}
64
- avatarUrl={submitter?.avatar_url}
65
- />
66
- </Descriptions.Item>
67
- )}
68
- {isDraft ? null : (
69
- <Descriptions.Item itemKey="版本说明" className="!text-[13px]">
70
- <Typography.Text
71
- ellipsis={{ rows: 2, showTooltip: true }}
72
- className="!text-[13px]"
73
- >
74
- {description || '-'}
75
- </Typography.Text>
76
- </Descriptions.Item>
77
- )}
78
- </Descriptions>
79
- );
80
- }
@@ -1,30 +0,0 @@
1
- import VersionDescriptions, { type Version } from './version-descriptions';
2
-
3
- interface Props {
4
- version: Version | undefined;
5
- active?: boolean;
6
- className?: string;
7
- onClick?: () => void;
8
- }
9
-
10
- export default function VersionItem({
11
- version,
12
- active,
13
- className,
14
- onClick,
15
- }: Props) {
16
- return (
17
- <div className={`group flex cursor-pointer ${className}`} onClick={onClick}>
18
- <div className="w-6 h-10 flex items-center shrink-0">
19
- <div
20
- className={`w-2 h-2 rounded-full ${active ? 'bg-green-700' : 'bg-gray-300'} `}
21
- />
22
- </div>
23
- <div
24
- className={`grow px-2 pt-2 rounded-m ${active ? 'bg-gray-100' : ''} group-hover:bg-gray-100`}
25
- >
26
- <VersionDescriptions version={version} />
27
- </div>
28
- </div>
29
- );
30
- }
@@ -1,59 +0,0 @@
1
- import { Button, List } from '@coze-arch/coze-design';
2
-
3
- import VersionItem from './version-item';
4
- import { type Integer64, type Version } from './version-descriptions';
5
-
6
- export interface VersionListProps {
7
- versions: Version[] | undefined;
8
- activeVersionId?: Integer64;
9
- loadMoreLoading?: boolean;
10
- enableLoadMore?: boolean;
11
- noMore?: boolean;
12
- onActiveChange?: (versionId: Integer64, version: Version) => void;
13
- onLoadMore?: () => void;
14
- }
15
-
16
- export default function VersionList({
17
- versions = [],
18
- loadMoreLoading = false,
19
- enableLoadMore = false,
20
- noMore = false,
21
- activeVersionId,
22
- onActiveChange,
23
- onLoadMore,
24
- }: VersionListProps) {
25
- const loadMore =
26
- !enableLoadMore || noMore ? null : (
27
- <div className="flex justify-center">
28
- <Button
29
- loading={loadMoreLoading}
30
- color="primary"
31
- onClick={() => onLoadMore?.()}
32
- >
33
- 显示更多
34
- </Button>
35
- </div>
36
- );
37
-
38
- return (
39
- <>
40
- <List
41
- dataSource={versions}
42
- loadMore={loadMore}
43
- renderItem={version => {
44
- const active =
45
- activeVersionId === undefined || activeVersionId === version?.id;
46
- return (
47
- <VersionItem
48
- key={version.id}
49
- className="pb-3"
50
- version={version}
51
- active={active}
52
- onClick={() => onActiveChange?.(version?.id, version)}
53
- />
54
- );
55
- }}
56
- />
57
- </>
58
- );
59
- }
@@ -1,31 +0,0 @@
1
- import { IconCozCross } from '@coze-arch/coze-design/icons';
2
-
3
- import VersionList, { type VersionListProps } from './version-list';
4
-
5
- export default function VersionSwitchPanel({
6
- visible = true,
7
- onClose,
8
- ...versionListProps
9
- }: VersionListProps & {
10
- visible?: boolean;
11
- onClose?: () => void;
12
- }) {
13
- if (!visible) {
14
- return null;
15
- }
16
- return (
17
- <div className="h-full w-[360px] flex flex-col border-0 border-l border-gray-200 border-solid overflow-hidden">
18
- <div className="shrink-0 flex items-center px-6 h-12 border-0 border-b border-gray-200 border-solid bg-gray-100">
19
- <div className="text-sm font-medium">版本记录</div>
20
- <IconCozCross
21
- className="ml-auto cursor-pointer text-gray-400 hover:text-gray-900"
22
- onClick={onClose}
23
- />
24
- </div>
25
- <div className="grow py-6 pl-6 pr-[18px] overflow-auto styled-scrollbar">
26
- <VersionList {...versionListProps} />
27
- </div>
28
- <div className="shrink-0"></div>
29
- </div>
30
- );
31
- }
@@ -1,6 +0,0 @@
1
- import {
2
- createTailwindcssConfig,
3
- type TailwindcssConfig,
4
- } from '@cozeloop/tailwind-config';
5
-
6
- export default createTailwindcssConfig({}) as TailwindcssConfig;
@@ -1,44 +0,0 @@
1
- {
2
- "extends": "@coze-arch/ts-config/tsconfig.web.json",
3
- "compilerOptions": {
4
- "jsx": "react-jsx",
5
- "useUnknownInCatchVariables": false,
6
- "types": ["vitest/globals"],
7
- "paths": {
8
- "@/*": ["./src/*"]
9
- },
10
- "strictNullChecks": true,
11
- "rootDir": "./src",
12
- "outDir": "./dist/lib",
13
- "tsBuildInfoFile": "dist/lib/tsconfig.build.tsbuildinfo",
14
- "lib": ["DOM", "ESNext"],
15
- "module": "ESNext",
16
- "target": "ES2020",
17
- "moduleResolution": "bundler"
18
- },
19
- "include": ["./src"],
20
- "references": [
21
- {
22
- "path": "../api-schema/tsconfig.build.json"
23
- },
24
- {
25
- "path": "../../../config/eslint-config/tsconfig.build.json"
26
- },
27
- {
28
- "path": "../../config/opensource/tailwind-config/tsconfig.build.json"
29
- },
30
- {
31
- "path": "../../../config/ts-config/tsconfig.build.json"
32
- },
33
- {
34
- "path": "../../../coze-studio/packages/arch/bot-typings/tsconfig.build.json"
35
- },
36
- {
37
- "path": "../hooks/tsconfig.build.json"
38
- },
39
- {
40
- "path": "../toolkit/tsconfig.build.json"
41
- }
42
- ],
43
- "$schema": "https://json.schemastore.org/tsconfig"
44
- }
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- "composite": true,
5
- "moduleResolution": "bundler",
6
- "module": "es2015"
7
- },
8
- "references": [
9
- {
10
- "path": "./tsconfig.build.json"
11
- },
12
- {
13
- "path": "./tsconfig.misc.json"
14
- }
15
- ],
16
- "exclude": ["**/*"]
17
- }
@@ -1,28 +0,0 @@
1
- {
2
- "extends": "@coze-arch/ts-config/tsconfig.web.json",
3
- "$schema": "https://json.schemastore.org/tsconfig",
4
- "include": [
5
- "__tests__",
6
- "vitest.config.mts",
7
- "tailwind.config.ts",
8
- "stories",
9
- ".storybook/*"
10
- ],
11
- "exclude": ["./dist"],
12
- "references": [
13
- {
14
- "path": "./tsconfig.build.json"
15
- }
16
- ],
17
- "compilerOptions": {
18
- "jsx": "preserve",
19
- "rootDir": "./",
20
- "outDir": "./dist",
21
- "useUnknownInCatchVariables": false,
22
- "types": ["vitest/globals"],
23
- "paths": {
24
- "@/*": ["./src/*"]
25
- },
26
- "strictNullChecks": true
27
- }
28
- }
package/vitest.config.mts DELETED
@@ -1,7 +0,0 @@
1
- import { defineConfig } from '@coze-arch/vitest-config';
2
-
3
- export default defineConfig({
4
- dirname: __dirname,
5
- preset: 'web',
6
- test: {},
7
- });