Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
89 lines (89 loc) · 4.03 KB
/
Copy pathpackage.json
File metadata and controls
89 lines (89 loc) · 4.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"name": "@taskwizer/web-browser",
"private": true,
"version": "1.0.0",
"type": "module",
"description": "TaskWizer Web Browser - Browser automation and web content viewer",
"main": "./dist/index.es.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.es.js"
},
"./components": {
"types": "./dist/components/index.d.ts",
"import": "./dist/components/index.js"
},
"./services": {
"types": "./dist/services/index.d.ts",
"import": "./dist/services/index.js"
},
"./types": {
"types": "./dist/types.d.ts",
"import": "./dist/types.js"
}
},
"scripts": {
"dev": "vite",
"build": "npm run build:library",
"build:library": "BUILD_MODE=library vite build",
"build:standalone": "BUILD_MODE=standalone vite build",
"build:spa": "BUILD_MODE=spa vite build",
"build:pages": "BUILD_MODE=spa vite build",
"build:types": "tsc --emitDeclarationOnly",
"fix:declarations": "mkdir -p dist/components && cp packages/web-browser/dist/src/index.d.ts dist/index.d.ts && cp packages/web-browser/dist/components/*.d.ts dist/components/ 2>/dev/null || true && cp packages/web-browser/dist/types.d.ts dist/types.d.ts 2>/dev/null || true && cp packages/web-browser/dist/App.d.ts dist/App.d.ts 2>/dev/null || true && sed -i 's/..\\//.\\//g' dist/index.d.ts && (echo 'export { BrowserView } from \"./BrowserView\"; echo 'export { TabComponent } from \"./Tab\"; echo 'export { TabBar } from \"./TabBar\"; echo 'export { NavigationBar } from \"./NavigationBar\"; echo 'export { ContentRenderer } from \"./ContentRenderer\";' > dist/components/index.d.ts) || echo '// Core exports for @taskwizer/web-browser package\n\n// Components\nexport { BrowserView } from \"./components/BrowserView\";\nexport { TabComponent } from \"./components/Tab\";\n\n// Types\nexport { Tab, TabGroup, ConversationMessage, GeminiSearchResult, Bookmark, ContextMenuAction } from \"./types\";\n\n// App and configuration\nexport { default as WebBrowserApp } from \"./App\";\n\nexport interface WebBrowserConfig {\n enableApi?: boolean;\n apiBasePath?: string;\n standalone?: boolean;\n defaultUrl?: string;\n enablePdf?: boolean;\n enableEpub?: boolean;\n maxFileSize?: number;\n}\n\nexport declare function createWebBrowserConfig(overrides?: Partial<WebBrowserConfig>): WebBrowserConfig;' > dist/index.d.ts",
"build:full": "npm run build:library && npm run fix:declarations",
"preview": "vite preview",
"server:start": "cd server && npm start",
"test": "vitest",
"test:ui": "vitest --ui",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:install": "playwright install",
"type-check": "tsc --noEmit"
},
"dependencies": {
"@google/genai": "^1.27.0",
"@sentry/react": "^10.22.0",
"@sentry/vite-plugin": "^4.6.0",
"@tailwindcss/postcss": "^4.1.16",
"@taskwizer/shared": "file:../shared",
"@types/dompurify": "^3.0.5",
"dompurify": "^3.3.0",
"epubjs": "^0.3.93",
"object-hash": "^3.0.0",
"pdfjs-dist": "^5.4.394",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-markdown": "^10.1.0",
"react-pdf": "^10.2.0",
"rehype-highlight": "^7.0.2",
"remark-gfm": "^4.0.1",
"tailwindcss": "^4.1.16",
"zustand": "^5.0.8"
},
"devDependencies": {
"@playwright/test": "^1.56.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^22.14.0",
"@types/react-pdf": "^6.2.0",
"@vitejs/plugin-react": "^5.0.0",
"@vitest/ui": "^4.0.7",
"autoprefixer": "^10.4.21",
"jsdom": "^27.1.0",
"postcss": "^8.5.6",
"rollup": "^4.28.1",
"typescript": "~5.8.2",
"vite": "^6.1.8",
"vite-plugin-dts": "^4.5.4",
"vite-plugin-pwa": "^1.1.0",
"vite-plugin-static-copy": "^3.1.4",
"vitest": "^4.0.7",
"workbox-window": "^7.3.0"
}
}