Files
sofa/docs/package.json
T
jake fd4a8119ce feat(native): add iOS home screen widgets for continue watching and upcoming
- Add `ContinueWatching` (systemSmall) and `Upcoming` (systemSmall) SwiftUI widgets via `expo-widgets`, registered in `app.json` under the `group.com.jakejarvis.sofa` app group
- Add `widget-images` local Expo module with a Swift `WidgetImagesModule` that downloads and resizes remote poster images into the shared app group container for use by widgets; also copies bundled assets (sofa icon fallback)
- Add `src/lib/widgets.ts` to fetch dashboard data, cache poster images, and write a JSON timeline to the shared container via `expo-widgets`
- Add `ContinueWatching` and `Upcoming` SwiftUI widget views in `src/widgets/`
- Add `useWidgetRefresh` hook that refreshes widgets on foreground (throttled to once per minute) and on session ready
- Debounce widget refresh in `invalidateTitleQueries` so rapid mutations (e.g. marking multiple episodes watched) batch into a single refresh
- Expose `titles.upcoming` from the dashboard procedure and add `upcomingTitles` field to the dashboard schema
- Bump iOS deployment target to 16.2 (required by WidgetKit timeline APIs)
2026-03-21 21:03:58 -04:00

49 lines
1.2 KiB
JSON

{
"name": "sofa-docs",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "next build",
"dev": "next dev",
"start": "next start",
"lint": "oxlint",
"format": "oxfmt",
"format:check": "oxfmt --check",
"check-types": "fumadocs-mdx && next typegen && tsc --noEmit",
"generate:api-docs": "bun scripts/generate-api-docs.ts",
"postinstall": "fumadocs-mdx"
},
"dependencies": {
"@takumi-rs/image-response": "^0.73.1",
"@vercel/analytics": "^2.0.1",
"fumadocs-core": "^16.7.4",
"fumadocs-mdx": "^14.2.11",
"fumadocs-openapi": "^10.4.1",
"fumadocs-ui": "^16.7.4",
"lucide-react": "^0.577.0",
"next": "16.2.1",
"react": "19.2.4",
"react-dom": "19.2.4",
"shiki": "^4.0.2",
"tailwind-merge": "^3.5.0"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.2.2",
"@types/bun": "1.3.11",
"@types/mdx": "^2.0.13",
"@types/node": "^25.5.0",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"oxfmt": "0.41.0",
"oxlint": "1.56.0",
"postcss": "^8.5.8",
"tailwindcss": "^4.2.2",
"typescript": "^5.9.3"
},
"overrides": {
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3"
},
"packageManager": "bun@1.3.11"
}