@cusuai/web-sdk 0.2.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,70 @@
1
+ {
2
+ "name": "@cusuai/web-sdk",
3
+ "version": "0.2.0",
4
+ "description": "Framework-agnostic Cusu customer chat widget (Shadow DOM, ES + IIFE).",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "author": "Cusu",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/cusuai/cusu-web-sdk.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/cusuai/cusu-web-sdk/issues"
14
+ },
15
+ "homepage": "https://github.com/cusuai/cusu-web-sdk#readme",
16
+ "keywords": [
17
+ "cusu",
18
+ "chat",
19
+ "widget",
20
+ "customer-support",
21
+ "shadow-dom"
22
+ ],
23
+ "main": "./dist/index.js",
24
+ "module": "./dist/index.js",
25
+ "types": "./dist/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "import": "./dist/index.js",
30
+ "default": "./dist/index.js"
31
+ }
32
+ },
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "scripts": {
40
+ "dev": "vite build --watch",
41
+ "build": "vite build",
42
+ "prepare": "vite build",
43
+ "prepublishOnly": "bun run check && bun run test && bun run build",
44
+ "check": "svelte-check --tsconfig ./tsconfig.json",
45
+ "lint": "biome check .",
46
+ "format": "biome check --write .",
47
+ "test": "bun test src",
48
+ "test:coverage": "bun test --coverage --coverage-reporter=text --coverage-reporter=lcov src",
49
+ "test:coverage:check": "bun run scripts/check-coverage.ts --write-badge",
50
+ "audit": "bun audit --audit-level=moderate",
51
+ "ci": "bun run lint && bun run check && bun run test:coverage && bun run test:coverage:check && bun run build && bun run audit"
52
+ },
53
+ "devDependencies": {
54
+ "@biomejs/biome": "^2.5.12",
55
+ "@inlang/paraglide-js": "^2.25.0",
56
+ "@sveltejs/vite-plugin-svelte": "^7.1.2",
57
+ "@tailwindcss/vite": "^4.3.0",
58
+ "svelte": "^5.56.1",
59
+ "svelte-check": "^4.6.0",
60
+ "tailwindcss": "^4.3.0",
61
+ "typescript": "^6.0.3",
62
+ "vite": "^8.0.16"
63
+ },
64
+ "dependencies": {
65
+ "@hugeicons/core-free-icons": "^4.3.0",
66
+ "@hugeicons/svelte": "^1.1.5",
67
+ "dompurify": "^3.4.14",
68
+ "marked": "^18.0.11"
69
+ }
70
+ }