@modochats/widget 0.1.1 → 0.1.2
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/package.json +1 -1
- package/.yarn/install-state.gz +0 -0
- package/cdn-dist/README.md +0 -42
- package/cdn-dist/modo-web-component.js +0 -1344
- package/cdn-dist/modo-web-component.min.js +0 -1
- package/cdn-dist/package.json +0 -27
- package/rollup.config.js +0 -18
- package/rollup.dev.config.js +0 -22
- package/scripts/create-umd-bundle.js +0 -213
- package/scripts/terser-minify.js +0 -112
- package/temp/app.dev.js +0 -5101
- package/temp/app.dev.js.map +0 -1
- package/temp/app.js +0 -3570
- package/temp/audio/new-message.mp3 +0 -0
- package/temp/audio/on-hold.mp3 +0 -0
- package/temp/audio-processor.js +0 -261
- package/temp/css/index.css +0 -2283
- package/temp/dev.html +0 -87
- package/temp/index.html +0 -16
package/package.json
CHANGED
package/.yarn/install-state.gz
DELETED
|
Binary file
|
package/cdn-dist/README.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# Modo Web Component
|
|
2
|
-
|
|
3
|
-
A lightweight web component library.
|
|
4
|
-
|
|
5
|
-
## CDN Usage
|
|
6
|
-
|
|
7
|
-
### jsDelivr
|
|
8
|
-
```html
|
|
9
|
-
<script src="https://cdn.jsdelivr.net/gh/your-username/modo-web-component@main/cdn-dist/modo-web-component.min.js"></script>
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
### GitHub Raw
|
|
13
|
-
```html
|
|
14
|
-
<script src="https://raw.githubusercontent.com/your-username/modo-web-component/main/cdn-dist/modo-web-component.min.js"></script>
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
```javascript
|
|
20
|
-
// Initialize the chat widget
|
|
21
|
-
const chat = new ModoChat('your-public-key', {
|
|
22
|
-
position: 'right', // 'left' or 'right'
|
|
23
|
-
theme: 'dark', // 'dark' or 'light'
|
|
24
|
-
primaryColor: '#667eea',
|
|
25
|
-
title: 'پشتیبانی چت'
|
|
26
|
-
});
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Features
|
|
30
|
-
|
|
31
|
-
- 🌙 Dark/Light theme support
|
|
32
|
-
- 🌐 RTL (Persian/Farsi) language support
|
|
33
|
-
- 📱 Mobile responsive design
|
|
34
|
-
- 💬 Real-time chat functionality
|
|
35
|
-
- 🔗 WebSocket connection status
|
|
36
|
-
- 📝 Markdown message support
|
|
37
|
-
|
|
38
|
-
## Files
|
|
39
|
-
|
|
40
|
-
- `modo-web-component.js` - Development version
|
|
41
|
-
- `modo-web-component.min.js` - Production version (minified)
|
|
42
|
-
- `dist/` - Full distribution files
|