@openviking/react 0.0.0-stage → 0.1.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/README.md +62 -2
- package/dist/components/agent-connect/agent-connect.d.ts +1 -0
- package/dist/components/agent-connect/style.css +2 -0
- package/dist/components/agent-connect/style.js +0 -0
- package/dist/components/agent-connect.js +0 -0
- package/dist/components/file-preview/file-preview.d.ts +1 -0
- package/dist/components/file-preview/style.css +2 -0
- package/dist/components/file-preview/style.js +0 -0
- package/dist/components/file-preview.js +0 -0
- package/dist/components/file-tree/file-tree.d.ts +1 -0
- package/dist/components/file-tree/style.css +2 -0
- package/dist/components/file-tree/style.js +0 -0
- package/dist/components/file-tree.js +0 -0
- package/dist/components/resource-import/resource-import.d.ts +1 -0
- package/dist/components/resource-import/style.css +2 -0
- package/dist/components/resource-import/style.js +0 -0
- package/dist/components/resource-import.js +0 -0
- package/dist/components/scope-switcher/scope-switcher.d.ts +1 -0
- package/dist/components/scope-switcher/style.css +2 -0
- package/dist/components/scope-switcher/style.js +0 -0
- package/dist/components/scope-switcher.js +0 -0
- package/dist/components/status-badge/status-badge.d.ts +8 -0
- package/dist/components/status-badge/style.css +37 -0
- package/dist/components/status-badge/style.js +0 -0
- package/dist/components/status-badge.js +30 -0
- package/dist/components/style.css +53 -0
- package/dist/components/style.js +0 -0
- package/dist/components/tui/style.css +2 -0
- package/dist/components/tui/style.js +0 -0
- package/dist/components/tui/tui.d.ts +1 -0
- package/dist/components/tui.js +0 -0
- package/dist/components/viking-bot/style.css +2 -0
- package/dist/components/viking-bot/style.js +0 -0
- package/dist/components/viking-bot/viking-bot.d.ts +1 -0
- package/dist/components/viking-bot.js +0 -0
- package/dist/icons/index.d.ts +23 -0
- package/dist/icons.js +25 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/style.css +55 -0
- package/dist/style.js +0 -0
- package/package.json +87 -4
package/README.md
CHANGED
|
@@ -1,3 +1,63 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @openviking/react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React UI modules for OpenViking applications. The initial scaffold exports `StatusBadge`; business modules have not been migrated.
|
|
4
|
+
|
|
5
|
+
This package inherits the repository's AGPL-3.0-only license. The release workflow publishes it to npm when a `react@<version>` tag matches the version in this package's manifest.
|
|
6
|
+
|
|
7
|
+
## 模块目录
|
|
8
|
+
|
|
9
|
+
| 源码目录 | 公开入口 | 职责 |
|
|
10
|
+
| ------------------------------------------------------------------------ | ---------------------------------------------- | -------------------------------- |
|
|
11
|
+
| [components/file-tree](./src/components/file-tree/README.md) | `@openviking/react/components/file-tree` | 目录树渲染、展开、选中与事件回传 |
|
|
12
|
+
| [components/file-preview](./src/components/file-preview/README.md) | `@openviking/react/components/file-preview` | 只读预览状态与扩展页签 |
|
|
13
|
+
| [components/tui](./src/components/tui/README.md) | `@openviking/react/components/tui` | 命令输入、执行状态与结果展示 |
|
|
14
|
+
| [components/viking-bot](./src/components/viking-bot/README.md) | `@openviking/react/components/viking-bot` | 对话、会话、回复及附件交互 |
|
|
15
|
+
| [components/scope-switcher](./src/components/scope-switcher/README.md) | `@openviking/react/components/scope-switcher` | 作用域选择与切换交互 |
|
|
16
|
+
| [components/agent-connect](./src/components/agent-connect/README.md) | `@openviking/react/components/agent-connect` | Agent 接入步骤、配置说明及状态 |
|
|
17
|
+
| [components/resource-import](./src/components/resource-import/README.md) | `@openviking/react/components/resource-import` | 导入方式、文件选择、进度及结果 |
|
|
18
|
+
| [pages](./src/pages/README.md) | 尚无公开入口 | 页面组合、数据获取与处理 |
|
|
19
|
+
| [hooks](./src/hooks/README.md)、[utils](./src/utils/README.md) | 仅包内使用 | 跨模块 Hook 与纯工具 |
|
|
20
|
+
|
|
21
|
+
七个业务模块均为占位入口,尚无组件或类型可导入;对应 CSS 入口目前为空样式。`StatusBadge` 是唯一已实现的脚手架示例,可从根入口或 `@openviking/react/components/status-badge` 导入。
|
|
22
|
+
组件通过 props 接收视图数据与状态,通过回调表达用户意图,遵循 [组件目录约定](./src/components/AGENTS.md)。[pages](./src/pages/README.md) 负责取数、处理业务状态和编排;尚未定义首个页面。
|
|
23
|
+
|
|
24
|
+
## 公开入口与样式
|
|
25
|
+
|
|
26
|
+
- 根入口聚合已实现的公开 API;具体组件使用 `components/<模块>` 子路径。不提供 `@openviking/react/components` 或 `@openviking/react/pages` 分类聚合 JS 入口。包导出显式列举,内部文件不开放。
|
|
27
|
+
- 当前私有开发包的旧 `/tree`、`/preview`、`/console`、`/tui` 和 `/viking-bot` 子路径统一替换为上述分层路径,不保留旧路径别名。
|
|
28
|
+
- JS 入口共享实现,不隐式加载 CSS。整包、组件集合与单模块样式由同一份源码构建,选择所需范围导入即可。
|
|
29
|
+
|
|
30
|
+
| 范围 | CSS 入口 |
|
|
31
|
+
| -------- | ----------------------------------------------- |
|
|
32
|
+
| 整包 | `@openviking/react/style.css` |
|
|
33
|
+
| 组件集合 | `@openviking/react/components/style.css` |
|
|
34
|
+
| 单组件 | `@openviking/react/components/<模块>/style.css` |
|
|
35
|
+
|
|
36
|
+
单组件 CSS 可独立使用。后续有真实页面时再开放 `@openviking/react/pages/<页面>`、`pages/style.css` 及 `pages/<页面>/style.css`;页面 CSS 包含页面自身与依赖组件所需样式,整包 CSS 同步纳入页面样式。公共 Hook 有真实实现后再开放 `@openviking/react/hooks`;Hook 不提供 CSS。模块私有 Hook 和工具不进入公共导出。
|
|
37
|
+
|
|
38
|
+
经验看板属于预览扩展;任务进度先归所属模块;API Key 展示控件按需复用,凭证创建及管理由宿主负责。本次不新增这些独立模块。
|
|
39
|
+
|
|
40
|
+
## 使用示例
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
import { StatusBadge } from '@openviking/react';
|
|
44
|
+
import '@openviking/react/style.css';
|
|
45
|
+
|
|
46
|
+
export default function Example() {
|
|
47
|
+
return <StatusBadge status="ready">Connected</StatusBadge>;
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 图标
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
import { PdfIcon } from '@openviking/react/icons';
|
|
55
|
+
|
|
56
|
+
<PdfIcon width={20} height={20} className="file-icon" alt="PDF" />;
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
图标默认以 16 × 16 的图片渲染。装饰性图标可沿用默认空 `alt`,用于传达文件类型时可提供描述。SVG 随构建产物内联,宿主直接消费包导出。
|
|
60
|
+
|
|
61
|
+
React and ReactDOM are peer dependencies (`^18.2.0 || ^19.0.0`), automatically externalized by Rslib. Rslib emits shared ESM JavaScript and declarations, plus independently built CSS entries. The public `@openviking/react/style.css` entry resolves to `dist/style.css`. Styles are scoped and do not reset application styles.
|
|
62
|
+
|
|
63
|
+
From `frontend/`, run `npm run build:lib` to generate `packages/react/dist/`. See the [workspace README](../../README.md) for documentation development and deployment.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type StatusBadgeStatus = 'ready' | 'processing' | 'error';
|
|
3
|
+
export interface StatusBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** The state to display. Text accompanies the color indicator. */
|
|
5
|
+
status: StatusBadgeStatus;
|
|
6
|
+
}
|
|
7
|
+
/** Displays a status with a color indicator and an optional custom label. */
|
|
8
|
+
export declare function StatusBadge({ status, children, className, ...props }: StatusBadgeProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.badge-up7fab {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
border-radius: var(--ov-ui-radius, 6px);
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
border: 1px solid;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: .5em;
|
|
8
|
+
padding: .3em .7em;
|
|
9
|
+
font-family: inherit;
|
|
10
|
+
font-size: .875rem;
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
line-height: 1.5;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.badge-up7fab[data-status="ready"] {
|
|
17
|
+
color: var(--ov-ui-status-ready, #187347);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.badge-up7fab[data-status="processing"] {
|
|
21
|
+
color: var(--ov-ui-status-processing, #2563c5);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.badge-up7fab[data-status="error"] {
|
|
25
|
+
color: var(--ov-ui-status-error, #c43838);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.indicator-EU2f1X {
|
|
29
|
+
background: currentColor;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
flex: none;
|
|
32
|
+
width: .45em;
|
|
33
|
+
height: .45em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const status_badge_module = {
|
|
3
|
+
badge: "badge-up7fab",
|
|
4
|
+
indicator: "indicator-EU2f1X"
|
|
5
|
+
};
|
|
6
|
+
const labels = {
|
|
7
|
+
ready: 'Ready',
|
|
8
|
+
processing: 'Processing',
|
|
9
|
+
error: 'Error'
|
|
10
|
+
};
|
|
11
|
+
function StatusBadge({ status, children, className, ...props }) {
|
|
12
|
+
return /*#__PURE__*/ jsxs("span", {
|
|
13
|
+
...props,
|
|
14
|
+
className: [
|
|
15
|
+
status_badge_module.badge,
|
|
16
|
+
className
|
|
17
|
+
].filter(Boolean).join(' '),
|
|
18
|
+
"data-status": status,
|
|
19
|
+
children: [
|
|
20
|
+
/*#__PURE__*/ jsx("span", {
|
|
21
|
+
className: status_badge_module.indicator,
|
|
22
|
+
"aria-hidden": "true"
|
|
23
|
+
}),
|
|
24
|
+
/*#__PURE__*/ jsx("span", {
|
|
25
|
+
children: children ?? labels[status]
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export { StatusBadge };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.badge-up7fab {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
border-radius: var(--ov-ui-radius, 6px);
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
border: 1px solid;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: .5em;
|
|
8
|
+
padding: .3em .7em;
|
|
9
|
+
font-family: inherit;
|
|
10
|
+
font-size: .875rem;
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
line-height: 1.5;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.badge-up7fab[data-status="ready"] {
|
|
17
|
+
color: var(--ov-ui-status-ready, #187347);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.badge-up7fab[data-status="processing"] {
|
|
21
|
+
color: var(--ov-ui-status-processing, #2563c5);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.badge-up7fab[data-status="error"] {
|
|
25
|
+
color: var(--ov-ui-status-error, #c43838);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.indicator-EU2f1X {
|
|
29
|
+
background: currentColor;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
flex: none;
|
|
32
|
+
width: .45em;
|
|
33
|
+
height: .45em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
type IconProps = Omit<ComponentPropsWithoutRef<'img'>, 'src' | 'srcSet'>;
|
|
3
|
+
export declare const AudioIcon: {
|
|
4
|
+
(props: IconProps): import("react").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const PdfIcon: {
|
|
8
|
+
(props: IconProps): import("react").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const PptIcon: {
|
|
12
|
+
(props: IconProps): import("react").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const VideoIcon: {
|
|
16
|
+
(props: IconProps): import("react").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const WordIcon: {
|
|
20
|
+
(props: IconProps): import("react").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const audioinline_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4KICA8cmVjdCB4PSIzIiB5PSIyIiB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjN2MzYWVkIi8+CiAgPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgIDxwYXRoIGQ9Ik03IDExVjdsNC0xdjRNNyAxMUg2bTUtMWgtMSIvPgogIDwvZz4KPC9zdmc+Cg==";
|
|
3
|
+
const pdfinline_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4KICA8cmVjdCB4PSIzIiB5PSIyIiB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjYjkxYzFjIi8+CiAgPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgIDxwYXRoIGQ9Ik02IDExVjZoM3YzSDZtNCAyaDEiLz4KICA8L2c+Cjwvc3ZnPgo=";
|
|
4
|
+
const pptinline_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4KICA8cmVjdCB4PSIzIiB5PSIyIiB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjYzI0MTBjIi8+CiAgPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgIDxwYXRoIGQ9Ik02IDdoNXY0SDZ6bTIuNSA0djEiLz4KICA8L2c+Cjwvc3ZnPgo=";
|
|
5
|
+
const videoinline_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4KICA8cmVjdCB4PSIzIiB5PSIyIiB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjMDM2OWExIi8+CiAgPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgIDxwYXRoIGQ9Im03IDYgNCAyLjVMNyAxMXoiLz4KICA8L2c+Cjwvc3ZnPgo=";
|
|
6
|
+
const wordinline_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4KICA8cmVjdCB4PSIzIiB5PSIyIiB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjMWQ0ZWQ4Ii8+CiAgPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgIDxwYXRoIGQ9Im01LjUgNyAxIDQgMi0zIDIgMyAxLTQiLz4KICA8L2c+Cjwvc3ZnPgo=";
|
|
7
|
+
function createIcon(src, name) {
|
|
8
|
+
function Icon(props) {
|
|
9
|
+
return /*#__PURE__*/ jsx("img", {
|
|
10
|
+
alt: "",
|
|
11
|
+
width: 16,
|
|
12
|
+
height: 16,
|
|
13
|
+
...props,
|
|
14
|
+
src: src
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
Icon.displayName = name;
|
|
18
|
+
return Icon;
|
|
19
|
+
}
|
|
20
|
+
const AudioIcon = createIcon(audioinline_namespaceObject, 'AudioIcon');
|
|
21
|
+
const PdfIcon = createIcon(pdfinline_namespaceObject, 'PdfIcon');
|
|
22
|
+
const PptIcon = createIcon(pptinline_namespaceObject, 'PptIcon');
|
|
23
|
+
const VideoIcon = createIcon(videoinline_namespaceObject, 'VideoIcon');
|
|
24
|
+
const WordIcon = createIcon(wordinline_namespaceObject, 'WordIcon');
|
|
25
|
+
export { AudioIcon, PdfIcon, PptIcon, VideoIcon, WordIcon };
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StatusBadge } from "./components/status-badge.js";
|
package/dist/style.css
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.badge-up7fab {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
border-radius: var(--ov-ui-radius, 6px);
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
border: 1px solid;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: .5em;
|
|
8
|
+
padding: .3em .7em;
|
|
9
|
+
font-family: inherit;
|
|
10
|
+
font-size: .875rem;
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
line-height: 1.5;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.badge-up7fab[data-status="ready"] {
|
|
17
|
+
color: var(--ov-ui-status-ready, #187347);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.badge-up7fab[data-status="processing"] {
|
|
21
|
+
color: var(--ov-ui-status-processing, #2563c5);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.badge-up7fab[data-status="error"] {
|
|
25
|
+
color: var(--ov-ui-status-error, #c43838);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.indicator-EU2f1X {
|
|
29
|
+
background: currentColor;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
flex: none;
|
|
32
|
+
width: .45em;
|
|
33
|
+
height: .45em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
package/dist/style.js
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,89 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openviking/react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "React UI modules for OpenViking applications.",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"license": "AGPL-3.0-only",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/volcengine/OpenViking.git",
|
|
13
|
+
"directory": "frontend/packages/react"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"**/*.css"
|
|
21
|
+
],
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"import": "./dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./components/status-badge": {
|
|
29
|
+
"types": "./dist/components/status-badge/status-badge.d.ts",
|
|
30
|
+
"import": "./dist/components/status-badge.js"
|
|
31
|
+
},
|
|
32
|
+
"./components/status-badge/style.css": "./dist/components/status-badge/style.css",
|
|
33
|
+
"./components/file-tree": {
|
|
34
|
+
"types": "./dist/components/file-tree/file-tree.d.ts",
|
|
35
|
+
"import": "./dist/components/file-tree.js"
|
|
36
|
+
},
|
|
37
|
+
"./components/file-tree/style.css": "./dist/components/file-tree/style.css",
|
|
38
|
+
"./components/file-preview": {
|
|
39
|
+
"types": "./dist/components/file-preview/file-preview.d.ts",
|
|
40
|
+
"import": "./dist/components/file-preview.js"
|
|
41
|
+
},
|
|
42
|
+
"./components/file-preview/style.css": "./dist/components/file-preview/style.css",
|
|
43
|
+
"./components/tui": {
|
|
44
|
+
"types": "./dist/components/tui/tui.d.ts",
|
|
45
|
+
"import": "./dist/components/tui.js"
|
|
46
|
+
},
|
|
47
|
+
"./components/tui/style.css": "./dist/components/tui/style.css",
|
|
48
|
+
"./components/viking-bot": {
|
|
49
|
+
"types": "./dist/components/viking-bot/viking-bot.d.ts",
|
|
50
|
+
"import": "./dist/components/viking-bot.js"
|
|
51
|
+
},
|
|
52
|
+
"./components/viking-bot/style.css": "./dist/components/viking-bot/style.css",
|
|
53
|
+
"./components/scope-switcher": {
|
|
54
|
+
"types": "./dist/components/scope-switcher/scope-switcher.d.ts",
|
|
55
|
+
"import": "./dist/components/scope-switcher.js"
|
|
56
|
+
},
|
|
57
|
+
"./components/scope-switcher/style.css": "./dist/components/scope-switcher/style.css",
|
|
58
|
+
"./components/agent-connect": {
|
|
59
|
+
"types": "./dist/components/agent-connect/agent-connect.d.ts",
|
|
60
|
+
"import": "./dist/components/agent-connect.js"
|
|
61
|
+
},
|
|
62
|
+
"./components/agent-connect/style.css": "./dist/components/agent-connect/style.css",
|
|
63
|
+
"./components/resource-import": {
|
|
64
|
+
"types": "./dist/components/resource-import/resource-import.d.ts",
|
|
65
|
+
"import": "./dist/components/resource-import.js"
|
|
66
|
+
},
|
|
67
|
+
"./components/resource-import/style.css": "./dist/components/resource-import/style.css",
|
|
68
|
+
"./style.css": "./dist/style.css",
|
|
69
|
+
"./components/style.css": "./dist/components/style.css",
|
|
70
|
+
"./package.json": "./package.json",
|
|
71
|
+
"./icons": {
|
|
72
|
+
"types": "./dist/icons/index.d.ts",
|
|
73
|
+
"import": "./dist/icons.js"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"scripts": {
|
|
77
|
+
"check": "tsc --noEmit && tsc --noEmit -p tsconfig.config.json",
|
|
78
|
+
"dev": "rslib build --watch",
|
|
79
|
+
"build": "rslib build"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
83
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@rsbuild/plugin-react": "^2.1.1",
|
|
87
|
+
"@rslib/core": "^1.0.5"
|
|
88
|
+
}
|
|
89
|
+
}
|