@modochats/widget 0.1.3 → 0.1.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.
- package/README.md +28 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
A responsive web chat widget for customer support.
|
|
4
4
|
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### NPM
|
|
8
|
+
|
|
9
|
+
Install the package via npm:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @modochats/widget
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Then, import and use in your JavaScript/TypeScript code:
|
|
16
|
+
|
|
17
|
+
```javascript
|
|
18
|
+
import {Widget} from "@modochats/widget";
|
|
19
|
+
|
|
20
|
+
const widget = new Widget("your-public-key", {
|
|
21
|
+
// options
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### CDN
|
|
26
|
+
|
|
27
|
+
Alternatively, include the script directly from CDN:
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<script src="https://cdn.jsdelivr.net/gh/modochats/webcomponent@main/cdn-dist/modo-web-component.min.js"></script>
|
|
31
|
+
```
|
|
32
|
+
|
|
5
33
|
## Features
|
|
6
34
|
|
|
7
35
|
- 🌙 Dark/Light theme support with customizable colors
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Widget
|
|
1
|
+
export { Widget } from "./app.js";
|
|
2
2
|
export type { WidgetOptions, FetchPaginationRes } from "./types/app.js";
|
|
3
3
|
export { Chatbot } from "./services/chatbot/chatbot.js";
|
|
4
4
|
export { Conversation } from "./services/chat/conversation.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Widget
|
|
1
|
+
export { Widget } from "./app.js";
|
|
2
2
|
export type { WidgetOptions, FetchPaginationRes } from "./types/app.js";
|
|
3
3
|
export { Chatbot } from "./services/chatbot/chatbot.js";
|
|
4
4
|
export { Conversation } from "./services/chat/conversation.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,YAAY,EAAC,aAAa,EAAE,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAGtE,OAAO,EAAC,OAAO,EAAC,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAG9D,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAG9C,YAAY,EAAC,kBAAkB,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAC7E,YAAY,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED