- @settlekit/sdk: typed fetch HTTP client over the REST API; one resource client per /v1 resource (products, checkout, payments, entitlements, licenseKeys, apiKeys, bundles, github, discord, saas, escrow, agentServices…), AbortController timeouts, idempotency keys, SettleKitApiError envelope mapping. - @settlekit/react: SettleKitProvider, useEntitlement/useCheckout/useCredits hooks, <Paywall> + <UpgradeButton> (React 18, plan §4). - database: drizzle.config.ts + generated drizzle/0000_init.sql (48 tables, indexes, FKs) + db:generate/migrate/push/studio scripts. - infra: README, ARCHITECTURE, CONTRIBUTING, .env.example, .dockerignore, docker-compose.yml, per-app Dockerfiles + Dockerfile.next, Makefile. No tests. No CI/CD pipelines.
31 lines
603 B
JSON
31 lines
603 B
JSON
{
|
|
"name": "@settlekit/react",
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"files": ["dist"],
|
|
"scripts": {
|
|
"build": "tsc -b"
|
|
},
|
|
"dependencies": {
|
|
"@settlekit/common": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.14.0",
|
|
"@types/react": "^18.3.3",
|
|
"@types/react-dom": "^18.3.0",
|
|
"typescript": "^5.5.4"
|
|
}
|
|
}
|