oasis-chat 0.0.4 → 0.0.6
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 +3 -2
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -11,7 +11,8 @@ npm install oasis-chatting
|
|
|
11
11
|
## 사용 예시
|
|
12
12
|
|
|
13
13
|
```js
|
|
14
|
-
import { createButton } from 'oasis-
|
|
14
|
+
import { createButton } from 'oasis-chat';
|
|
15
|
+
import 'oasis-chat/style.css'; // CSS 파일 import 필요
|
|
15
16
|
|
|
16
17
|
const btn = createButton({
|
|
17
18
|
label: 'Hello 버튼',
|
|
@@ -21,7 +22,7 @@ const btn = createButton({
|
|
|
21
22
|
document.body.appendChild(btn);
|
|
22
23
|
```
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
**중요**: 스타일을 적용하려면 CSS 파일을 반드시 import 해야 합니다.
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
## 개발/빌드
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oasis-chat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Vanilla JS button component with no runtime deps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -27,11 +27,13 @@
|
|
|
27
27
|
"jsdelivr": "./dist/index.umd.js",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
30
31
|
"import": "./dist/index.es.js",
|
|
31
32
|
"require": "./dist/index.cjs.js",
|
|
32
|
-
"types": "./dist/index.d.ts",
|
|
33
33
|
"default": "./dist/index.es.js"
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"./style.css": "./dist/oasis-chat.css",
|
|
36
|
+
"./dist/oasis-chat.css": "./dist/oasis-chat.css"
|
|
35
37
|
},
|
|
36
38
|
"sideEffects": [
|
|
37
39
|
"*.css"
|