Feature Policies API + Invitations Policies (#375)

- Added Feature Policy API: a declarative system to enable/disable/modify default behavior in the SaaS kit
- Team invitation policies with pre-checks using the Feature Policy API: Invite Members dialog now shows loading, errors, and clear reasons when invitations are blocked
- Version bump to 2.16.0 and widespread dependency updates (Supabase, React types, react-i18next, etc.).
- Added comprehensive docs for the new policy system and orchestrators.
- Subscription cancellations now trigger immediate invoicing explicitly
This commit is contained in:
Giancarlo Buomprisco
2025-09-30 12:36:19 +08:00
committed by GitHub
parent 3c13b5ec1e
commit 1dd6fdad22
53 changed files with 3908 additions and 1128 deletions

View File

@@ -26,14 +26,14 @@
"@kit/supabase": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:*",
"@supabase/supabase-js": "2.57.4",
"@types/react": "19.1.13",
"@supabase/supabase-js": "2.58.0",
"@types/react": "19.1.15",
"date-fns": "^4.1.0",
"lucide-react": "^0.544.0",
"next": "15.5.4",
"react": "19.1.1",
"react-hook-form": "^7.63.0",
"react-i18next": "^15.7.3",
"react-i18next": "^16.0.0",
"zod": "^3.25.74"
},
"typesVersions": {

View File

@@ -32,6 +32,7 @@ class BillingWebhooksService {
return gateway.cancelSubscription({
subscriptionId: subscription.id,
invoiceNow: true,
});
}
}

View File

@@ -24,7 +24,7 @@
"@kit/supabase": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:*",
"@types/react": "19.1.13",
"@types/react": "19.1.15",
"next": "15.5.4",
"react": "19.1.1",
"zod": "^3.25.74"

View File

@@ -27,7 +27,7 @@
"@kit/supabase": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:*",
"@types/react": "19.1.13",
"@types/react": "19.1.15",
"date-fns": "^4.1.0",
"next": "15.5.4",
"react": "19.1.1",