bitmax-crm-widget 1.0.0 → 1.0.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/README.md +10 -9
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -21,13 +21,13 @@ Universal chat widget that works on **any website** - React, Vue, HTML, WordPres
|
|
|
21
21
|
### Option 1: NPM (for React/Vue/Node projects)
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm install
|
|
24
|
+
npm install bitmax-crm-widget
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
### Option 2: CDN (for HTML/WordPress/any website)
|
|
28
28
|
|
|
29
29
|
```html
|
|
30
|
-
<script src="https://unpkg.com
|
|
30
|
+
<script src="https://unpkg.com/bitmax-crm-widget/dist/chat-widget.min.js"></script>
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
---
|
|
@@ -37,7 +37,7 @@ npm install @bitmax-crm/widget
|
|
|
37
37
|
### React / MERN Application
|
|
38
38
|
|
|
39
39
|
```jsx
|
|
40
|
-
import { ChatCRMWidget } from '
|
|
40
|
+
import { ChatCRMWidget } from 'bitmax-crm-widget';
|
|
41
41
|
|
|
42
42
|
function App() {
|
|
43
43
|
return (
|
|
@@ -66,7 +66,7 @@ function App() {
|
|
|
66
66
|
<!-- Your website content -->
|
|
67
67
|
|
|
68
68
|
<!-- Chat Widget -->
|
|
69
|
-
<script src="https://unpkg.com
|
|
69
|
+
<script src="https://unpkg.com/bitmax-crm-widget/dist/chat-widget.min.js"></script>
|
|
70
70
|
<script>
|
|
71
71
|
ChatCRMWidget.init({
|
|
72
72
|
apiKey: 'your_api_key_here',
|
|
@@ -102,7 +102,7 @@ By default, all visitors are treated as guests:
|
|
|
102
102
|
Pass user data for logged-in customers:
|
|
103
103
|
|
|
104
104
|
```jsx
|
|
105
|
-
import { ChatCRMWidget } from '
|
|
105
|
+
import { ChatCRMWidget } from 'bitmax-crm-widget';
|
|
106
106
|
import { useAuth } from './context/AuthContext'; // Your auth system
|
|
107
107
|
|
|
108
108
|
function App() {
|
|
@@ -242,7 +242,7 @@ export default function RootLayout({ children }) {
|
|
|
242
242
|
</template>
|
|
243
243
|
|
|
244
244
|
<script>
|
|
245
|
-
import { ChatCRMWidget } from '
|
|
245
|
+
import { ChatCRMWidget } from 'bitmax-crm-widget';
|
|
246
246
|
|
|
247
247
|
export default {
|
|
248
248
|
components: { ChatCRMWidget },
|
|
@@ -262,7 +262,7 @@ Add to your theme's `footer.php`:
|
|
|
262
262
|
|
|
263
263
|
```php
|
|
264
264
|
<!-- Before </body> tag -->
|
|
265
|
-
<script src="https://unpkg.com
|
|
265
|
+
<script src="https://unpkg.com/bitmax-crm-widget/dist/chat-widget.min.js"></script>
|
|
266
266
|
<script>
|
|
267
267
|
ChatCRMWidget.init({
|
|
268
268
|
apiKey: '<?php echo get_option('chat_crm_api_key'); ?>',
|
|
@@ -289,7 +289,7 @@ import { WebView } from 'react-native-webview';
|
|
|
289
289
|
const injectedJS = `
|
|
290
290
|
(function() {
|
|
291
291
|
const script = document.createElement('script');
|
|
292
|
-
script.src = 'https://unpkg.com
|
|
292
|
+
script.src = 'https://unpkg.com/bitmax-crm-widget/dist/chat-widget.min.js';
|
|
293
293
|
script.onload = function() {
|
|
294
294
|
ChatCRMWidget.init({
|
|
295
295
|
apiKey: 'your_key',
|
|
@@ -383,7 +383,7 @@ Widget auto-updates when you refresh the page (CDN version).
|
|
|
383
383
|
|
|
384
384
|
For NPM version:
|
|
385
385
|
```bash
|
|
386
|
-
npm update
|
|
386
|
+
npm update bitmax-crm-widget
|
|
387
387
|
```
|
|
388
388
|
|
|
389
389
|
---
|
|
@@ -413,3 +413,4 @@ You now have a professional chat widget supporting both **guest users** and **lo
|
|
|
413
413
|
4. Reply from CRM - user sees it instantly!
|
|
414
414
|
|
|
415
415
|
Enjoy! 🚀
|
|
416
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitmax-crm-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Universal Chat CRM Widget - Works on any website (React, Vue, HTML, WordPress, etc.)",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"module": "dist/index.esm.js",
|
|
7
8
|
"files": [
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"license": "MIT",
|
|
31
32
|
"repository": {
|
|
32
33
|
"type": "git",
|
|
33
|
-
"url": "https://github.com/
|
|
34
|
+
"url": "git+https://github.com/ARMANANS1218/bitmax-crm-widget.git"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
37
|
"react": ">=16.8.0",
|