Dependencies Updates, Sidebar fixes, default plan, Radix single package (#297)

* Refactor Radix UI imports and update package dependencies, fix Sidebar "group" references, add default value to plan picker to preselect a plan
This commit is contained in:
Giancarlo Buomprisco
2025-07-11 16:57:27 +07:00
committed by GitHub
parent 1d734e6818
commit 50337298fd
72 changed files with 1902 additions and 1263 deletions

View File

@@ -21,7 +21,7 @@
"@kit/supabase": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:*",
"zod": "^3.25.67"
"zod": "^3.25.74"
},
"typesVersions": {
"*": {

View File

@@ -26,15 +26,15 @@
"@kit/supabase": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:*",
"@supabase/supabase-js": "2.50.2",
"@supabase/supabase-js": "2.50.5",
"@types/react": "19.1.8",
"date-fns": "^4.1.0",
"lucide-react": "^0.523.0",
"next": "15.3.4",
"lucide-react": "^0.525.0",
"next": "15.3.5",
"react": "19.1.0",
"react-hook-form": "^7.58.1",
"react-i18next": "^15.5.3",
"zod": "^3.25.67"
"react-hook-form": "^7.60.0",
"react-i18next": "^15.6.0",
"zod": "^3.25.74"
},
"typesVersions": {
"*": {

View File

@@ -45,6 +45,11 @@ export function PlanPicker(
onSubmit: (data: { planId: string; productId: string }) => void;
canStartTrial?: boolean;
pending?: boolean;
value?: {
interval: string;
planId: string;
productId: string;
};
}>,
) {
const { t } = useTranslation(`billing`);
@@ -81,9 +86,9 @@ export function PlanPicker(
),
),
defaultValues: {
interval: intervals[0],
planId: '',
productId: '',
interval: props.value?.interval ?? intervals[0],
planId: props.value?.planId ?? '',
productId: props.value?.productId ?? '',
},
});

View File

@@ -25,9 +25,9 @@
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:*",
"@types/react": "19.1.8",
"next": "15.3.4",
"next": "15.3.5",
"react": "19.1.0",
"zod": "^3.25.67"
"zod": "^3.25.74"
},
"typesVersions": {
"*": {

View File

@@ -17,7 +17,7 @@
"dependencies": {
"@stripe/react-stripe-js": "^3.7.0",
"@stripe/stripe-js": "^7.4.0",
"stripe": "^18.2.1"
"stripe": "^18.3.0"
},
"devDependencies": {
"@kit/billing": "workspace:*",
@@ -29,9 +29,9 @@
"@kit/ui": "workspace:*",
"@types/react": "19.1.8",
"date-fns": "^4.1.0",
"next": "15.3.4",
"next": "15.3.5",
"react": "19.1.0",
"zod": "^3.25.67"
"zod": "^3.25.74"
},
"typesVersions": {
"*": {

View File

@@ -2,7 +2,7 @@ import 'server-only';
import { StripeServerEnvSchema } from '../schema/stripe-server-env.schema';
const STRIPE_API_VERSION = '2025-05-28.basil';
const STRIPE_API_VERSION = '2025-06-30.basil';
/**
* @description returns a Stripe instance