@techhalo/chat 1.0.0

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 ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@techhalo/chat",
3
+ "description": "Techhalo Chat Widget",
4
+ "version": "1.0.0",
5
+ "author": "Techhalo",
6
+ "type": "module",
7
+ "main": "dist/halo-chat.umd.js",
8
+ "module": "dist/halo-chat.es.js",
9
+ "types": "src/types/halochat.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/halo-chat.es.js",
13
+ "require": "./dist/halo-chat.umd.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist/*",
18
+ "src/types/*.d.ts"
19
+ ],
20
+ "scripts": {
21
+ "setup-env": "cp .env.example .env && echo ':white_check_mark: Environment setup complete!'",
22
+ "dev": "vite dev --host --port 3000",
23
+ "build:svelte": "rollup -c",
24
+ "prepack": "rollup -c",
25
+ "build": "vite build",
26
+ "preview": "vite preview",
27
+ "check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json"
28
+ },
29
+ "devDependencies": {
30
+ "@rollup/plugin-commonjs": "^28.0.2",
31
+ "@rollup/plugin-json": "^6.1.0",
32
+ "@rollup/plugin-node-resolve": "^16.0.0",
33
+ "@rollup/plugin-replace": "^6.0.2",
34
+ "@sveltejs/vite-plugin-svelte": "^5.0.3",
35
+ "@tsconfig/svelte": "^5.0.4",
36
+ "@types/node": "^24.3.0",
37
+ "autoprefixer": "^10.4.20",
38
+ "dotenv": "^17.2.1",
39
+ "postcss": "^8.5.1",
40
+ "svelte": "^5.15.0",
41
+ "svelte-check": "^4.1.1",
42
+ "tailwindcss": "^3.4.17",
43
+ "typescript": "~5.6.2",
44
+ "vite": "^6.0.5"
45
+ },
46
+ "dependencies": {
47
+ "@langchain/core": "^0.3.55",
48
+ "@rollup/plugin-typescript": "^12.1.2",
49
+ "@rollup/plugin-url": "^8.0.2",
50
+ "date-picker-svelte": "^2.16.0",
51
+ "highlight.js": "^11.11.1",
52
+ "jspdf": "^3.0.1",
53
+ "jspdf-autotable": "^5.0.2",
54
+ "marked": "^12.0.0",
55
+ "postcss-prefix-selector": "^2.1.1",
56
+ "rollup-plugin-postcss": "^4.0.2",
57
+ "rollup-plugin-svelte": "^7.2.0",
58
+ "rollup-plugin-terser": "^7.0.2",
59
+ "rxjs": "^7.8.1",
60
+ "svelte-youtube-embed": "^0.4.4",
61
+ "uuid": "^11.0.5",
62
+ "vite-plugin-purgecss": "^0.2.12"
63
+ },
64
+ "publishConfig": {
65
+ "access": "public"
66
+ }
67
+ }
@@ -0,0 +1,39 @@
1
+ import { DetailedHTMLProps, HTMLAttributes } from "react";
2
+
3
+ declare module "HaloChat" {}
4
+
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ "halo-chat": DetailedHTMLProps<
9
+ HTMLAttributes<HTMLElement> & {
10
+ projectId: string;
11
+ position: string;
12
+ onCustomEvent?: (event: CustomEvent) => void;
13
+ },
14
+ HTMLElement
15
+ >;
16
+ }
17
+ }
18
+ }
19
+
20
+ declare global {
21
+ interface HTMLElementTagNameMap {
22
+ "halo-chat": HaloChatElement;
23
+ }
24
+ }
25
+
26
+ export interface HaloChatElement extends HTMLElement {
27
+ projectId: string;
28
+ position: string;
29
+ onCustomEvent?: (event: CustomEvent) => void;
30
+ addEventListener(
31
+ type: string,
32
+ listener: EventListenerOrEventListenerObject,
33
+ options?: boolean | AddEventListenerOptions
34
+ ): void;
35
+ }
36
+
37
+ declare module "@HaloChat/HaloChat" {
38
+ export = HaloChatElement;
39
+ }