@developer.notchatbot/webchat 1.3.0 → 1.4.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/package.json CHANGED
@@ -1,53 +1,53 @@
1
- {
2
- "name": "@developer.notchatbot/webchat",
3
- "version": "1.3.0",
4
- "description": "A beautiful React chatbot widget with single-file bundle",
5
- "main": "dist/webchat-bundle.min.umd.cjs",
6
- "module": "dist/webchat-bundle.min.js",
7
- "types": "dist/index.d.ts",
8
- "type": "module",
9
- "files": [
10
- "dist"
11
- ],
12
- "exports": {
13
- ".": {
14
- "import": "./dist/webchat-bundle.min.js",
15
- "require": "./dist/webchat-bundle.min.umd.cjs",
16
- "types": "./dist/index.d.ts"
17
- }
18
- },
19
- "scripts": {
20
- "dev": "vite",
21
- "build": "tsc && vite build",
22
- "preview": "vite preview"
23
- },
24
- "keywords": [
25
- "chatbot",
26
- "widget",
27
- "react",
28
- "typescript",
29
- "tailwind",
30
- "embed",
31
- "webchat",
32
- "chat-widget"
33
- ],
34
- "author": "NotChatBot",
35
- "license": "MIT",
36
- "devDependencies": {
37
- "@types/react": "^18.2.45",
38
- "@types/react-dom": "^18.2.18",
39
- "@vitejs/plugin-react": "^4.2.1",
40
- "autoprefixer": "^10.4.16",
41
- "postcss": "^8.4.32",
42
- "tailwindcss": "^3.4.0",
43
- "typescript": "^5.3.3",
44
- "vite": "^5.0.0",
45
- "vite-plugin-dts": "^4.5.4"
46
- },
47
- "dependencies": {
48
- "ably": "^1.2.50",
49
- "marked": "^15.0.12",
50
- "react": "^18.2.0",
51
- "react-dom": "^18.2.0"
52
- }
53
- }
1
+ {
2
+ "name": "@developer.notchatbot/webchat",
3
+ "version": "1.4.1",
4
+ "description": "A beautiful React chatbot widget with single-file bundle",
5
+ "main": "dist/webchat-bundle.min.umd.cjs",
6
+ "module": "dist/webchat-bundle.min.js",
7
+ "types": "dist/index.d.ts",
8
+ "type": "module",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/webchat-bundle.min.js",
15
+ "require": "./dist/webchat-bundle.min.umd.cjs",
16
+ "types": "./dist/index.d.ts"
17
+ }
18
+ },
19
+ "scripts": {
20
+ "dev": "vite",
21
+ "build": "tsc && vite build",
22
+ "preview": "vite preview"
23
+ },
24
+ "keywords": [
25
+ "chatbot",
26
+ "widget",
27
+ "react",
28
+ "typescript",
29
+ "tailwind",
30
+ "embed",
31
+ "webchat",
32
+ "chat-widget"
33
+ ],
34
+ "author": "NotChatBot",
35
+ "license": "MIT",
36
+ "devDependencies": {
37
+ "@types/react": "^18.2.45",
38
+ "@types/react-dom": "^18.2.18",
39
+ "@vitejs/plugin-react": "^4.2.1",
40
+ "autoprefixer": "^10.4.16",
41
+ "postcss": "^8.4.32",
42
+ "tailwindcss": "^3.4.0",
43
+ "typescript": "^5.3.3",
44
+ "vite": "^5.0.0",
45
+ "vite-plugin-dts": "^4.5.4"
46
+ },
47
+ "dependencies": {
48
+ "convex": "^1.27.3",
49
+ "marked": "^15.0.12",
50
+ "react": "^18.2.0",
51
+ "react-dom": "^18.2.0"
52
+ }
53
+ }
@@ -1,29 +0,0 @@
1
- import { default as Ably } from 'ably';
2
- import { Message } from '../types';
3
- export interface AblyConnectionData {
4
- client: Ably.Realtime;
5
- channel: Ably.Types.RealtimeChannelBase;
6
- }
7
- /**
8
- * Initializes Ably connection with provided token details
9
- * @param tokenDetails Token details from API
10
- * @param chatbotUid Chatbot UID
11
- * @param conversationId Conversation ID
12
- * @param onMessage Callback for new messages
13
- * @param onChatbotToggle Callback for chatbot activation changes
14
- * @param onConnectionChange Callback for connection status changes
15
- * @returns Promise that resolves to Ably connection data
16
- */
17
- export declare const initializeAblyConnection: (tokenDetails: any, chatbotUid: string, conversationId: string, onMessage: (message: Message) => void, onChatbotToggle?: (chatbotActivated: boolean) => void, onConnectionChange?: (status: string) => void) => Promise<AblyConnectionData>;
18
- /**
19
- * Fetches Ably token from conversation endpoint
20
- * @param conversationId Conversation ID
21
- * @param apiKey API key for authentication
22
- * @returns Promise that resolves to conversation data with token details
23
- */
24
- export declare const fetchAblyToken: (conversationId: string, apiKey: string) => Promise<any>;
25
- /**
26
- * Closes Ably connection safely
27
- * @param client Ably client to close
28
- */
29
- export declare const closeAblyConnection: (client: Ably.Realtime | null) => void;