Update dependencies and import dynamic method
This commit updates multiple dependencies in the pnpm-lock.yaml file and imports the dynamic method from 'next/dynamic' in the site-header-account-section.tsx file. These updates are part of routine maintenance and improvement of the codebase. The import allows for dynamic imports, which can enhance performance.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
"@kit/tailwind-config": "workspace:*",
|
||||
"@kit/tsconfig": "workspace:*",
|
||||
"@kit/ui": "workspace:*",
|
||||
"lucide-react": "^0.367.0",
|
||||
"lucide-react": "^0.368.0",
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
"@supabase/supabase-js": "^2.42.4",
|
||||
"@types/react": "^18.2.79",
|
||||
"date-fns": "^3.6.0",
|
||||
"lucide-react": "^0.367.0",
|
||||
"lucide-react": "^0.368.0",
|
||||
"next": "14.2.1",
|
||||
"react": "18.2.0",
|
||||
"react-hook-form": "^7.51.3",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"dependencies": {
|
||||
"@stripe/react-stripe-js": "^2.7.0",
|
||||
"@stripe/stripe-js": "^3.3.0",
|
||||
"stripe": "^14.25.0"
|
||||
"stripe": "^15.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@kit/billing": "workspace:^",
|
||||
|
||||
@@ -2,7 +2,7 @@ import 'server-only';
|
||||
|
||||
import { StripeServerEnvSchema } from '../schema/stripe-server-env.schema';
|
||||
|
||||
const STRIPE_API_VERSION = '2023-10-16';
|
||||
const STRIPE_API_VERSION = '2024-04-10';
|
||||
|
||||
/**
|
||||
* @description returns a Stripe instance
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
"@kit/tsconfig": "workspace:*",
|
||||
"@kit/ui": "workspace:^",
|
||||
"@supabase/supabase-js": "^2.42.4",
|
||||
"lucide-react": "^0.367.0",
|
||||
"lucide-react": "^0.368.0",
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-email/components": "0.0.15"
|
||||
"@react-email/components": "0.0.16"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@kit/eslint-config": "workspace:*",
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
"@kit/ui": "workspace:^",
|
||||
"@radix-ui/react-icons": "^1.3.0",
|
||||
"@supabase/supabase-js": "^2.42.4",
|
||||
"@tanstack/react-query": "5.29.0",
|
||||
"@tanstack/react-query": "5.29.2",
|
||||
"@types/react": "^18.2.79",
|
||||
"@types/react-dom": "^18.2.25",
|
||||
"lucide-react": "^0.367.0",
|
||||
"lucide-react": "^0.368.0",
|
||||
"next": "14.2.1",
|
||||
"next-themes": "0.3.0",
|
||||
"react": "18.2.0",
|
||||
|
||||
@@ -98,7 +98,7 @@ export function AccountSelector({
|
||||
variant="ghost"
|
||||
role="combobox"
|
||||
aria-expanded={open}
|
||||
className={cn('group w-full shadow', {
|
||||
className={cn('dark:shadow-primary/10 group w-full border px-4', {
|
||||
'justify-between': !collapsed,
|
||||
'justify-center': collapsed,
|
||||
})}
|
||||
|
||||
@@ -34,12 +34,12 @@
|
||||
"@kit/tsconfig": "workspace:*",
|
||||
"@kit/ui": "workspace:^",
|
||||
"@makerkit/data-loader-supabase-core": "^0.0.7",
|
||||
"@makerkit/data-loader-supabase-nextjs": "^1.0.0",
|
||||
"@makerkit/data-loader-supabase-nextjs": "^1.1.0",
|
||||
"@supabase/supabase-js": "^2.42.4",
|
||||
"@tanstack/react-query": "5.29.0",
|
||||
"@tanstack/react-query": "5.29.2",
|
||||
"@tanstack/react-table": "^8.16.0",
|
||||
"@types/react": "^18.2.79",
|
||||
"lucide-react": "^0.367.0",
|
||||
"lucide-react": "^0.368.0",
|
||||
"next": "14.2.1",
|
||||
"react": "18.2.0",
|
||||
"react-hook-form": "^7.51.3",
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
"@marsidev/react-turnstile": "^0.5.4",
|
||||
"@radix-ui/react-icons": "^1.3.0",
|
||||
"@supabase/supabase-js": "^2.42.4",
|
||||
"@tanstack/react-query": "5.29.0",
|
||||
"@tanstack/react-query": "5.29.2",
|
||||
"@types/react": "^18.2.79",
|
||||
"lucide-react": "^0.367.0",
|
||||
"lucide-react": "^0.368.0",
|
||||
"next": "14.2.1",
|
||||
"react-hook-form": "^7.51.3",
|
||||
"react-i18next": "^14.1.0",
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
"@kit/tsconfig": "workspace:*",
|
||||
"@kit/ui": "workspace:^",
|
||||
"@supabase/supabase-js": "^2.42.4",
|
||||
"@tanstack/react-query": "5.29.0",
|
||||
"@tanstack/react-query": "5.29.2",
|
||||
"@tanstack/react-table": "^8.16.0",
|
||||
"@types/react": "^18.2.79",
|
||||
"@types/react-dom": "^18.2.25",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"lucide-react": "^0.367.0",
|
||||
"lucide-react": "^0.368.0",
|
||||
"next": "14.2.1",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"@kit/tailwind-config": "workspace:*",
|
||||
"@kit/tsconfig": "workspace:*",
|
||||
"i18next": "^23.11.2",
|
||||
"i18next-browser-languagedetector": "7.2.0",
|
||||
"i18next-browser-languagedetector": "7.2.1",
|
||||
"i18next-resources-to-backend": "^1.2.1",
|
||||
"react-i18next": "^14.1.0"
|
||||
},
|
||||
|
||||
@@ -47,6 +47,19 @@ export function initializeI18nClient(
|
||||
return reject(err);
|
||||
}
|
||||
|
||||
console.log('i18n client initialized');
|
||||
console.log(
|
||||
`initialized with ${i18next.languages.join(', ')} languages`,
|
||||
clientInstance,
|
||||
);
|
||||
|
||||
console.log(
|
||||
'resource',
|
||||
i18next.getResource('en', 'billing', 'billingInterval.month'),
|
||||
);
|
||||
|
||||
console.log(i18next.t('billing:billingInterval.month'));
|
||||
|
||||
clientInstance = i18next;
|
||||
|
||||
resolve(clientInstance);
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"@supabase/gotrue-js": "2.62.2",
|
||||
"@supabase/ssr": "^0.3.0",
|
||||
"@supabase/supabase-js": "^2.42.4",
|
||||
"@tanstack/react-query": "5.29.0",
|
||||
"@tanstack/react-query": "5.29.2",
|
||||
"@types/react": "^18.2.79",
|
||||
"next": "14.2.1",
|
||||
"react": "18.2.0",
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"@radix-ui/react-tooltip": "1.0.7",
|
||||
"clsx": "^2.1.0",
|
||||
"cmdk": "1.0.0",
|
||||
"input-otp": "1.2.3",
|
||||
"input-otp": "1.2.4",
|
||||
"react-top-loading-bar": "2.3.1",
|
||||
"tailwind-merge": "^2.2.2"
|
||||
},
|
||||
@@ -58,7 +58,7 @@
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"eslint": "^8.57.0",
|
||||
"lucide-react": "^0.367.0",
|
||||
"lucide-react": "^0.368.0",
|
||||
"next": "14.2.1",
|
||||
"next-themes": "0.3.0",
|
||||
"prettier": "^3.2.5",
|
||||
@@ -66,7 +66,7 @@
|
||||
"react-hook-form": "^7.51.3",
|
||||
"react-i18next": "^14.1.0",
|
||||
"sonner": "^1.4.41",
|
||||
"tailwindcss": "3.4.1",
|
||||
"tailwindcss": "3.4.3",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"typescript": "^5.4.5",
|
||||
"zod": "^3.22.4"
|
||||
|
||||
@@ -44,7 +44,9 @@ export function PageHeader({
|
||||
mobileNavigation?: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<div className={'flex items-start justify-between p-4'}>
|
||||
<div
|
||||
className={'mb-4 flex items-start justify-between border-b px-4 py-2.5'}
|
||||
>
|
||||
<div
|
||||
className={
|
||||
'flex items-center space-x-4 lg:flex-col lg:items-start lg:space-x-0'
|
||||
|
||||
@@ -160,13 +160,13 @@ export function SidebarItem({
|
||||
|
||||
const currentPath = usePathname() ?? '';
|
||||
const active = isRouteActive(path, currentPath, end ? 0 : 3);
|
||||
const variant = active ? 'default' : 'ghost';
|
||||
const variant = active ? 'secondary' : 'ghost';
|
||||
const size = collapsed ? 'icon' : 'default';
|
||||
|
||||
return (
|
||||
<Link key={path} href={path}>
|
||||
<Button
|
||||
className={cn('flex w-full', {
|
||||
className={cn('flex w-full shadow-none', {
|
||||
'justify-start space-x-2': !collapsed,
|
||||
})}
|
||||
size={size}
|
||||
|
||||
Reference in New Issue
Block a user