@surfableai/widget 0.1.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,43 @@
1
+ {
2
+ "name": "@surfableai/widget",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "build": "tsup src/index.ts --format cjs,esm --dts",
20
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
21
+ "lint": "eslint src/",
22
+ "type-check": "tsc --noEmit",
23
+ "test": "pnpm run test:unit && pnpm run test:integration",
24
+ "test:unit": "sh -c 'FILES=$(find tests src -name \"*.test.ts\" -o -name \"*.test.tsx\" 2>/dev/null | grep -v integration || true); if [ -n \"$FILES\" ]; then bun test --isolate $FILES; else echo \"No widget unit tests found\"; fi'",
25
+ "test:integration": "echo 'No widget integration tests configured yet'",
26
+ "test:e2e": "echo 'Widget E2E is covered through @surfable/web Playwright'",
27
+ "test:smoke": "echo 'Widget package has no smoke tests'"
28
+ },
29
+ "peerDependencies": {
30
+ "react": "^18.2.0 || ^19.0.0",
31
+ "react-dom": "^18.2.0 || ^19.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "^20",
35
+ "@types/react": "^18.2.0",
36
+ "@types/react-dom": "^18.2.0",
37
+ "tsup": "^8.0.0",
38
+ "typescript": "^6.0.2"
39
+ },
40
+ "dependencies": {
41
+ "react-markdown": "^10.1.0"
42
+ }
43
+ }