@data-netmonk/mona-chat-widget 2.6.7 → 2.6.8
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 +943 -942
- package/dist/index.cjs +56 -56
- package/dist/index.js +5989 -5887
- package/package.json +88 -88
- package/dist/index.d.ts +0 -55
package/package.json
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@data-netmonk/mona-chat-widget",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "2.6.
|
|
5
|
-
"description": "Mona Chat Widget Component Library",
|
|
6
|
-
"author": "Haziq Abiyyu Mahdy",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"main": "dist/index.js",
|
|
9
|
-
"module": "dist/index.js",
|
|
10
|
-
"types": "dist/index.d.ts",
|
|
11
|
-
"files": [
|
|
12
|
-
"dist",
|
|
13
|
-
"README.md"
|
|
14
|
-
],
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@fingerprintjs/fingerprintjs": "^4.6.2",
|
|
17
|
-
"@heroicons/react": "^2.2.0",
|
|
18
|
-
"@reduxjs/toolkit": "^2.8.2",
|
|
19
|
-
"@storybook/addon-essentials": "^8.5.2",
|
|
20
|
-
"@storybook/addon-interactions": "^8.5.2",
|
|
21
|
-
"@storybook/addon-links": "^8.5.2",
|
|
22
|
-
"@storybook/react-vite": "^8.5.2",
|
|
23
|
-
"autoprefixer": "^10.4.20",
|
|
24
|
-
"axios": "^1.7.9",
|
|
25
|
-
"crypto-js": "^4.2.0",
|
|
26
|
-
"detectincognitojs": "^1.6.0",
|
|
27
|
-
"dotenv": "^16.4.7",
|
|
28
|
-
"framer-motion": "^6.5.1",
|
|
29
|
-
"moment": "^2.30.1",
|
|
30
|
-
"msw": "^2.7.0",
|
|
31
|
-
"msw-storybook-addon": "^2.0.4",
|
|
32
|
-
"nanoid": "^5.0.9",
|
|
33
|
-
"postcss": "^8.5.1",
|
|
34
|
-
"react-infinite-scroll-component": "^6.1.0",
|
|
35
|
-
"react-is": "^19.2.1",
|
|
36
|
-
"react-markdown": "^8.0.3",
|
|
37
|
-
"react-redux": "^9.2.0",
|
|
38
|
-
"react-resizable": "^3.0.5",
|
|
39
|
-
"redux": "^5.0.1",
|
|
40
|
-
"redux-persist": "^6.0.0",
|
|
41
|
-
"rehype-raw": "^7.0.0",
|
|
42
|
-
"remark-breaks": "^4.0.0",
|
|
43
|
-
"remark-gfm": "^3.0.1",
|
|
44
|
-
"styled-components": "^5.3.10"
|
|
45
|
-
},
|
|
46
|
-
"scripts": {
|
|
47
|
-
"build": "vite build --mode library",
|
|
48
|
-
"build-app": "vite build --mode app",
|
|
49
|
-
"dev": "vite",
|
|
50
|
-
"serve": "vite preview",
|
|
51
|
-
"storybook": "storybook dev -p 5177",
|
|
52
|
-
"build-storybook": "storybook build",
|
|
53
|
-
"serve-storybook": "vite preview --outDir storybook-static --port 5177",
|
|
54
|
-
"init-msw": "msw init public/",
|
|
55
|
-
"test": "vitest",
|
|
56
|
-
"coverage": "vitest run --coverage"
|
|
57
|
-
},
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"@testing-library/jest-dom": "^6.6.3",
|
|
60
|
-
"@testing-library/react": "^16.3.0",
|
|
61
|
-
"@testing-library/user-event": "^13.5.0",
|
|
62
|
-
"@types/react": "^18.3.0",
|
|
63
|
-
"@types/react-dom": "^18.3.0",
|
|
64
|
-
"@vitejs/plugin-react": "^4.0.0",
|
|
65
|
-
"@vitest/coverage-v8": "^3.0.7",
|
|
66
|
-
"eslint": "^8.57.0",
|
|
67
|
-
"eslint-plugin-react": "^7.32.2",
|
|
68
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
69
|
-
"eslint-plugin-react-refresh": "^0.3.4",
|
|
70
|
-
"eslint-plugin-storybook": "^0.6.15",
|
|
71
|
-
"jsdom": "^26.0.0",
|
|
72
|
-
"msw": "^2.7.0",
|
|
73
|
-
"prop-types": "^15.8.1",
|
|
74
|
-
"react": "18.3.0",
|
|
75
|
-
"react-dom": "18.3.0",
|
|
76
|
-
"storybook": "^8.5.2",
|
|
77
|
-
"tailwindcss": "^3.4.17",
|
|
78
|
-
"vite": "^4.5.14",
|
|
79
|
-
"vitest": "^3.0.7"
|
|
80
|
-
},
|
|
81
|
-
"peerDependencies": {
|
|
82
|
-
"react": "^18.0.0",
|
|
83
|
-
"react-dom": "^18.0.0"
|
|
84
|
-
},
|
|
85
|
-
"resolutions": {
|
|
86
|
-
"jackspeak": "2.1.1"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@data-netmonk/mona-chat-widget",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "2.6.8",
|
|
5
|
+
"description": "Mona Chat Widget Component Library",
|
|
6
|
+
"author": "Haziq Abiyyu Mahdy",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@fingerprintjs/fingerprintjs": "^4.6.2",
|
|
17
|
+
"@heroicons/react": "^2.2.0",
|
|
18
|
+
"@reduxjs/toolkit": "^2.8.2",
|
|
19
|
+
"@storybook/addon-essentials": "^8.5.2",
|
|
20
|
+
"@storybook/addon-interactions": "^8.5.2",
|
|
21
|
+
"@storybook/addon-links": "^8.5.2",
|
|
22
|
+
"@storybook/react-vite": "^8.5.2",
|
|
23
|
+
"autoprefixer": "^10.4.20",
|
|
24
|
+
"axios": "^1.7.9",
|
|
25
|
+
"crypto-js": "^4.2.0",
|
|
26
|
+
"detectincognitojs": "^1.6.0",
|
|
27
|
+
"dotenv": "^16.4.7",
|
|
28
|
+
"framer-motion": "^6.5.1",
|
|
29
|
+
"moment": "^2.30.1",
|
|
30
|
+
"msw": "^2.7.0",
|
|
31
|
+
"msw-storybook-addon": "^2.0.4",
|
|
32
|
+
"nanoid": "^5.0.9",
|
|
33
|
+
"postcss": "^8.5.1",
|
|
34
|
+
"react-infinite-scroll-component": "^6.1.0",
|
|
35
|
+
"react-is": "^19.2.1",
|
|
36
|
+
"react-markdown": "^8.0.3",
|
|
37
|
+
"react-redux": "^9.2.0",
|
|
38
|
+
"react-resizable": "^3.0.5",
|
|
39
|
+
"redux": "^5.0.1",
|
|
40
|
+
"redux-persist": "^6.0.0",
|
|
41
|
+
"rehype-raw": "^7.0.0",
|
|
42
|
+
"remark-breaks": "^4.0.0",
|
|
43
|
+
"remark-gfm": "^3.0.1",
|
|
44
|
+
"styled-components": "^5.3.10"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "vite build --mode library",
|
|
48
|
+
"build-app": "vite build --mode app",
|
|
49
|
+
"dev": "vite",
|
|
50
|
+
"serve": "vite preview",
|
|
51
|
+
"storybook": "storybook dev -p 5177",
|
|
52
|
+
"build-storybook": "storybook build",
|
|
53
|
+
"serve-storybook": "vite preview --outDir storybook-static --port 5177",
|
|
54
|
+
"init-msw": "msw init public/",
|
|
55
|
+
"test": "vitest",
|
|
56
|
+
"coverage": "vitest run --coverage"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
60
|
+
"@testing-library/react": "^16.3.0",
|
|
61
|
+
"@testing-library/user-event": "^13.5.0",
|
|
62
|
+
"@types/react": "^18.3.0",
|
|
63
|
+
"@types/react-dom": "^18.3.0",
|
|
64
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
65
|
+
"@vitest/coverage-v8": "^3.0.7",
|
|
66
|
+
"eslint": "^8.57.0",
|
|
67
|
+
"eslint-plugin-react": "^7.32.2",
|
|
68
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
69
|
+
"eslint-plugin-react-refresh": "^0.3.4",
|
|
70
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
71
|
+
"jsdom": "^26.0.0",
|
|
72
|
+
"msw": "^2.7.0",
|
|
73
|
+
"prop-types": "^15.8.1",
|
|
74
|
+
"react": "18.3.0",
|
|
75
|
+
"react-dom": "18.3.0",
|
|
76
|
+
"storybook": "^8.5.2",
|
|
77
|
+
"tailwindcss": "^3.4.17",
|
|
78
|
+
"vite": "^4.5.14",
|
|
79
|
+
"vitest": "^3.0.7"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"react": "^18.0.0",
|
|
83
|
+
"react-dom": "^18.0.0"
|
|
84
|
+
},
|
|
85
|
+
"resolutions": {
|
|
86
|
+
"jackspeak": "2.1.1"
|
|
87
|
+
}
|
|
88
|
+
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
|
|
3
|
-
declare module "@data-netmonk/mona-chat-widget" {
|
|
4
|
-
export interface ChatWidgetProps {
|
|
5
|
-
// Required props
|
|
6
|
-
sourceId: string;
|
|
7
|
-
webhookUrl: string;
|
|
8
|
-
|
|
9
|
-
// Optional props
|
|
10
|
-
userId?: string;
|
|
11
|
-
authUrl?: string;
|
|
12
|
-
username?: string;
|
|
13
|
-
width?: string;
|
|
14
|
-
height?: string;
|
|
15
|
-
right?: string;
|
|
16
|
-
bottom?: string;
|
|
17
|
-
zIndex?: number;
|
|
18
|
-
data?: string;
|
|
19
|
-
showLauncher?: boolean;
|
|
20
|
-
enabled?: boolean;
|
|
21
|
-
autoOpen?: boolean;
|
|
22
|
-
trace?: boolean;
|
|
23
|
-
onTraceEvent?: (event: unknown) => void;
|
|
24
|
-
onToggle?: (isOpen: boolean) => void;
|
|
25
|
-
onNavigate?: (target: string) => void;
|
|
26
|
-
position?: string;
|
|
27
|
-
themeMode?: "light" | "dark";
|
|
28
|
-
voiceConfig?: {
|
|
29
|
-
debugTts?: boolean;
|
|
30
|
-
sttEndpoint?: string;
|
|
31
|
-
sttApiKey?: string;
|
|
32
|
-
sttApiKeyHeader?: string;
|
|
33
|
-
sttApiKeyPrefix?: string;
|
|
34
|
-
ttsEndpoint?: string;
|
|
35
|
-
ttsApiKey?: string;
|
|
36
|
-
ttsApiKeyHeader?: string;
|
|
37
|
-
ttsApiKeyPrefix?: string;
|
|
38
|
-
preferWebhookTts?: boolean;
|
|
39
|
-
ttsMinioObjectEndpoint?: string;
|
|
40
|
-
ttsMinioApiKey?: string;
|
|
41
|
-
ttsMinioApiKeyHeader?: string;
|
|
42
|
-
ttsMinioApiKeyPrefix?: string;
|
|
43
|
-
ttsMinioBucket?: string;
|
|
44
|
-
ttsMinioDownload?: boolean;
|
|
45
|
-
};
|
|
46
|
-
widgetConfig?: {
|
|
47
|
-
widgetSecret?: string;
|
|
48
|
-
llmToken?: string;
|
|
49
|
-
useMockResponses?: boolean;
|
|
50
|
-
fallbackToMockOnError?: boolean;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export const ChatWidget: (props: ChatWidgetProps) => ReactElement;
|
|
55
|
-
}
|