@a.izzuddin/ai-chat 0.2.23 → 0.2.25-beta.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/README.md +346 -346
- package/README.npm.md +293 -293
- package/custom-elements.json +13 -13
- package/dist/index.js +147 -58
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +147 -58
- package/dist/index.mjs.map +1 -1
- package/global.d.ts +24 -24
- package/package.json +88 -88
package/global.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
// Type declarations for ai-chat custom element
|
|
2
|
-
declare namespace JSX {
|
|
3
|
-
interface IntrinsicElements {
|
|
4
|
-
'ai-chat': {
|
|
5
|
-
ref?: any;
|
|
6
|
-
'api-url'?: string;
|
|
7
|
-
'session-id'?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
theme?: 'light' | 'dark';
|
|
10
|
-
mode?: 'fullscreen' | 'widget';
|
|
11
|
-
'widget-width'?: string;
|
|
12
|
-
'widget-height'?: string;
|
|
13
|
-
'primary-color'?: string;
|
|
14
|
-
'primary-color-hover'?: string;
|
|
15
|
-
'user-message-bg'?: string;
|
|
16
|
-
'bot-message-bg'?: string;
|
|
17
|
-
'bot-avatar-url'?: string;
|
|
18
|
-
'background-image-url'?: string;
|
|
19
|
-
'welcome-message'?: string;
|
|
20
|
-
'welcome-subtitle'?: string;
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
// Type declarations for ai-chat custom element
|
|
2
|
+
declare namespace JSX {
|
|
3
|
+
interface IntrinsicElements {
|
|
4
|
+
'ai-chat': {
|
|
5
|
+
ref?: any;
|
|
6
|
+
'api-url'?: string;
|
|
7
|
+
'session-id'?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
theme?: 'light' | 'dark';
|
|
10
|
+
mode?: 'fullscreen' | 'widget';
|
|
11
|
+
'widget-width'?: string;
|
|
12
|
+
'widget-height'?: string;
|
|
13
|
+
'primary-color'?: string;
|
|
14
|
+
'primary-color-hover'?: string;
|
|
15
|
+
'user-message-bg'?: string;
|
|
16
|
+
'bot-message-bg'?: string;
|
|
17
|
+
'bot-avatar-url'?: string;
|
|
18
|
+
'background-image-url'?: string;
|
|
19
|
+
'welcome-message'?: string;
|
|
20
|
+
'welcome-subtitle'?: string;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@a.izzuddin/ai-chat",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "A framework-agnostic AI chat web component. Works with React, Vue, Svelte, Angular, and vanilla JavaScript.",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"custom-elements.json",
|
|
11
|
-
"global.d.ts"
|
|
12
|
-
],
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
|
-
"import": "./dist/index.mjs",
|
|
17
|
-
"require": "./dist/index.js"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"customElements": "custom-elements.json",
|
|
21
|
-
"keywords": [
|
|
22
|
-
"ai",
|
|
23
|
-
"chat",
|
|
24
|
-
"chatbot",
|
|
25
|
-
"web-components",
|
|
26
|
-
"custom-elements",
|
|
27
|
-
"lit",
|
|
28
|
-
"typescript",
|
|
29
|
-
"framework-agnostic",
|
|
30
|
-
"react",
|
|
31
|
-
"vue",
|
|
32
|
-
"svelte",
|
|
33
|
-
"angular"
|
|
34
|
-
],
|
|
35
|
-
"author": "a.izzuddin",
|
|
36
|
-
"license": "MIT",
|
|
37
|
-
"repository": {
|
|
38
|
-
"type": "git",
|
|
39
|
-
"url": "git+https://github.com/aiddin/ai-chat.git"
|
|
40
|
-
},
|
|
41
|
-
"bugs": {
|
|
42
|
-
"url": "https://github.com/aiddin/ai-chat/issues"
|
|
43
|
-
},
|
|
44
|
-
"homepage": "https://github.com/aiddin/ai-chat#readme",
|
|
45
|
-
"scripts": {
|
|
46
|
-
"dev": "next dev",
|
|
47
|
-
"dev:demo": "next dev",
|
|
48
|
-
"build": "tsup && npm run analyze",
|
|
49
|
-
"analyze": "custom-elements-manifest analyze --litelement",
|
|
50
|
-
"build:demo": "next build",
|
|
51
|
-
"start": "next start",
|
|
52
|
-
"lint": "eslint",
|
|
53
|
-
"test": "playwright test",
|
|
54
|
-
"test:ui": "playwright test --ui",
|
|
55
|
-
"test:debug": "playwright test --debug",
|
|
56
|
-
"prepublishOnly": "npm run build",
|
|
57
|
-
"tauri": "tauri",
|
|
58
|
-
"tauri:dev": "tauri dev",
|
|
59
|
-
"tauri:build": "tauri build"
|
|
60
|
-
},
|
|
61
|
-
"dependencies": {
|
|
62
|
-
"lit": "^3.3.1"
|
|
63
|
-
},
|
|
64
|
-
"devDependencies": {
|
|
65
|
-
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
66
|
-
"@playwright/test": "^1.57.0",
|
|
67
|
-
"@shadcn/ui": "^0.0.4",
|
|
68
|
-
"@tailwindcss/postcss": "^4",
|
|
69
|
-
"@tauri-apps/cli": "^2.9.4",
|
|
70
|
-
"@types/node": "^20",
|
|
71
|
-
"@types/react": "^19.2.7",
|
|
72
|
-
"@types/react-dom": "^19.2.3",
|
|
73
|
-
"autoprefixer": "^10.4.22",
|
|
74
|
-
"eslint": "^9",
|
|
75
|
-
"eslint-config-next": "16.0.5",
|
|
76
|
-
"markdown-it": "^14.1.0",
|
|
77
|
-
"next": "16.0.5",
|
|
78
|
-
"playwright": "^1.57.0",
|
|
79
|
-
"postcss": "^8.5.6",
|
|
80
|
-
"react": "19.2.0",
|
|
81
|
-
"react-dom": "19.2.0",
|
|
82
|
-
"tailwindcss": "^4.1.17",
|
|
83
|
-
"tsup": "^8.5.1",
|
|
84
|
-
"tw-animate-css": "^1.4.0",
|
|
85
|
-
"typescript": "^5"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@a.izzuddin/ai-chat",
|
|
3
|
+
"version": "0.2.25-beta.1",
|
|
4
|
+
"description": "A framework-agnostic AI chat web component. Works with React, Vue, Svelte, Angular, and vanilla JavaScript.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"custom-elements.json",
|
|
11
|
+
"global.d.ts"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.mjs",
|
|
17
|
+
"require": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"customElements": "custom-elements.json",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"ai",
|
|
23
|
+
"chat",
|
|
24
|
+
"chatbot",
|
|
25
|
+
"web-components",
|
|
26
|
+
"custom-elements",
|
|
27
|
+
"lit",
|
|
28
|
+
"typescript",
|
|
29
|
+
"framework-agnostic",
|
|
30
|
+
"react",
|
|
31
|
+
"vue",
|
|
32
|
+
"svelte",
|
|
33
|
+
"angular"
|
|
34
|
+
],
|
|
35
|
+
"author": "a.izzuddin",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/aiddin/ai-chat.git"
|
|
40
|
+
},
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/aiddin/ai-chat/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/aiddin/ai-chat#readme",
|
|
45
|
+
"scripts": {
|
|
46
|
+
"dev": "next dev",
|
|
47
|
+
"dev:demo": "next dev",
|
|
48
|
+
"build": "tsup && npm run analyze",
|
|
49
|
+
"analyze": "custom-elements-manifest analyze --litelement",
|
|
50
|
+
"build:demo": "next build",
|
|
51
|
+
"start": "next start",
|
|
52
|
+
"lint": "eslint",
|
|
53
|
+
"test": "playwright test",
|
|
54
|
+
"test:ui": "playwright test --ui",
|
|
55
|
+
"test:debug": "playwright test --debug",
|
|
56
|
+
"prepublishOnly": "npm run build",
|
|
57
|
+
"tauri": "tauri",
|
|
58
|
+
"tauri:dev": "tauri dev",
|
|
59
|
+
"tauri:build": "tauri build"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"lit": "^3.3.1"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
66
|
+
"@playwright/test": "^1.57.0",
|
|
67
|
+
"@shadcn/ui": "^0.0.4",
|
|
68
|
+
"@tailwindcss/postcss": "^4",
|
|
69
|
+
"@tauri-apps/cli": "^2.9.4",
|
|
70
|
+
"@types/node": "^20",
|
|
71
|
+
"@types/react": "^19.2.7",
|
|
72
|
+
"@types/react-dom": "^19.2.3",
|
|
73
|
+
"autoprefixer": "^10.4.22",
|
|
74
|
+
"eslint": "^9",
|
|
75
|
+
"eslint-config-next": "16.0.5",
|
|
76
|
+
"markdown-it": "^14.1.0",
|
|
77
|
+
"next": "16.0.5",
|
|
78
|
+
"playwright": "^1.57.0",
|
|
79
|
+
"postcss": "^8.5.6",
|
|
80
|
+
"react": "19.2.0",
|
|
81
|
+
"react-dom": "19.2.0",
|
|
82
|
+
"tailwindcss": "^4.1.17",
|
|
83
|
+
"tsup": "^8.5.1",
|
|
84
|
+
"tw-animate-css": "^1.4.0",
|
|
85
|
+
"typescript": "^5"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|