@iyulab/chat-components 0.1.0 → 0.1.1
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/CHANGELOG.md +7 -4
- package/LICENSE +20 -20
- package/README.md +36 -20
- package/dist/components/blocks/UCodeBlock.component.d.ts +1 -1
- package/dist/components/blocks/UMarkedBlock.component.d.ts +1 -1
- package/dist/components/blocks/UThinkBlock.component.d.ts +1 -1
- package/dist/components/buttons/UCopyButton.component.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Iyulab, Inc.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Iyulab, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,20 +1,36 @@
|
|
|
1
|
-
# @iyulab/chat-components
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
# @iyulab/chat-components
|
|
2
|
+
|
|
3
|
+
LLM 채팅 인터페이스를 위한 웹 컴포넌트 라이브러리
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @iyulab/chat-components
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import '@iyulab/chat-components';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Components
|
|
18
|
+
|
|
19
|
+
- `u-message` - 메시지 컴포넌트
|
|
20
|
+
- `u-code-block` - 코드 블록
|
|
21
|
+
- `u-marked-block` - 마크다운 렌더링
|
|
22
|
+
- `u-text-block` - 텍스트 블록
|
|
23
|
+
- `u-think-block` - 추론 과정 표시
|
|
24
|
+
- `u-tool-block` - 도구 호출 표시
|
|
25
|
+
- `u-attach-button` - 파일 첨부
|
|
26
|
+
- `u-copy-button` - 복사 버튼
|
|
27
|
+
- `u-send-button` - 전송 버튼
|
|
28
|
+
- `u-think-button` - 추론 레벨 설정
|
|
29
|
+
|
|
30
|
+
## Documentation
|
|
31
|
+
|
|
32
|
+
자세한 사용법은 [docs](./docs/README.md)를 참고하세요.
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
MIT
|
|
@@ -13,7 +13,7 @@ export declare class UCodeBlock extends BaseElement {
|
|
|
13
13
|
language: string;
|
|
14
14
|
/** 표시할 코드 내용입니다. */
|
|
15
15
|
value?: string;
|
|
16
|
-
render():
|
|
16
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
17
17
|
/**
|
|
18
18
|
* 코드에 구문 강조를 적용합니다.
|
|
19
19
|
* @param value 코드 문자열
|
|
@@ -9,7 +9,7 @@ export declare class UMarkedBlock extends BaseElement {
|
|
|
9
9
|
private parser;
|
|
10
10
|
/** 마크다운 컨텐츠를 렌더링할 때 사용할 값입니다. */
|
|
11
11
|
value?: string;
|
|
12
|
-
render():
|
|
12
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
13
13
|
/**
|
|
14
14
|
* 마크다운 문자열을 HTML로 변환합니다.
|
|
15
15
|
* @param value 변환할 마크다운 문자열
|
|
@@ -16,7 +16,7 @@ export declare class UThinkBlock extends BaseElement {
|
|
|
16
16
|
/** 추론 컨텐츠의 내용 */
|
|
17
17
|
value?: string;
|
|
18
18
|
protected updated(changedProperties: PropertyValues): void;
|
|
19
|
-
render():
|
|
19
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
20
20
|
/**
|
|
21
21
|
* 컨텐츠 접기/펼치기 토글
|
|
22
22
|
*/
|
|
@@ -16,7 +16,7 @@ export declare class UCopyButton extends BaseElement {
|
|
|
16
16
|
delay: number;
|
|
17
17
|
connectedCallback(): void;
|
|
18
18
|
disconnectedCallback(): void;
|
|
19
|
-
render():
|
|
19
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
20
20
|
/**
|
|
21
21
|
* 클립보드에 텍스트를 복사하는 메서드입니다.
|
|
22
22
|
* 복사 후 재사용 대기 시간이 설정되어 있으면, 일정 시간 후에 복사 가능 상태로 되돌립니다.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iyulab/chat-components",
|
|
3
3
|
"description": "llm chat components for building chat interfaces",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"author": "iyulab",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"main": "./dist/index.js",
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
|
-
"types": "./
|
|
32
|
-
"import": "./
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"import": "./dist/index.js"
|
|
33
33
|
},
|
|
34
34
|
"./dist/*": {
|
|
35
|
-
"types": "./
|
|
36
|
-
"import": "./
|
|
35
|
+
"types": "./dist/*.d.ts",
|
|
36
|
+
"import": "./dist/*"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
@@ -62,4 +62,4 @@
|
|
|
62
62
|
"vite": "^7.3.0",
|
|
63
63
|
"vite-plugin-dts": "^4.5.4"
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
}
|