Update 'next' version and dependencies in pnpm-lock.yaml

This commit updates the package version of 'next' from 14.3.0-canary.7 to 14.3.0-canary.9 throughout the pnpm-lock.yaml file. Other dependencies updated with the respective package include '@makerkit/data-loader-supabase-nextjs', '@keystatic/next' and so on. This update is important to ensure the latest features are being utilized while retaining compatibility with existing code.
This commit is contained in:
giancarlo
2024-04-18 15:34:07 +08:00
parent 0dfd5d8ec1
commit 53f94abe88
23 changed files with 205 additions and 194 deletions

View File

@@ -47,7 +47,7 @@
"@types/react": "^18.2.79",
"date-fns": "^3.6.0",
"lucide-react": "^0.368.0",
"next": "14.3.0-canary.7",
"next": "14.3.0-canary.9",
"react": "18.2.0",
"react-hook-form": "^7.51.3",
"react-i18next": "^14.1.0",

View File

@@ -142,10 +142,10 @@ export function PlanPicker(
htmlFor={interval}
key={interval}
className={cn(
'hover:bg-muted flex items-center space-x-2 rounded-md border border-transparent px-4 py-2',
'hover:bg-secondary flex items-center space-x-2 rounded-md border border-transparent px-4 py-2',
{
['border-primary']: selected,
['hover:bg-muted']: !selected,
['border-primary bg-secondary']: selected,
['hover:bg-secondary']: !selected,
},
)}
>
@@ -173,7 +173,6 @@ export function PlanPicker(
<span
className={cn('text-sm', {
['font-semibold']: selected,
['cursor-pointer']: !selected,
})}
>

View File

@@ -26,7 +26,7 @@
"dependencies": {
"@stripe/react-stripe-js": "^2.7.0",
"@stripe/stripe-js": "^3.3.0",
"stripe": "^15.1.0"
"stripe": "^15.2.0"
},
"devDependencies": {
"@kit/billing": "workspace:^",

View File

@@ -50,7 +50,10 @@ async function getKeystaticClient() {
function mockCMSClient() {
return {
getContentItems() {
return Promise.resolve([]);
return Promise.resolve({
items: [],
total: 0,
});
},
getContentItemBySlug() {
return Promise.resolve(undefined);

View File

@@ -36,7 +36,7 @@
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"lucide-react": "^0.368.0",
"next": "14.3.0-canary.7",
"next": "14.3.0-canary.9",
"next-themes": "0.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",

View File

@@ -83,8 +83,8 @@ export function PersonalAccountDropdown({
'animate-in fade-in group flex cursor-pointer items-center focus:outline-none',
className ?? '',
{
['active:bg-muted/50 items-center space-x-2.5 rounded-md' +
' hover:bg-muted p-2 transition-colors']: showProfileName,
['active:bg-secondary/50 items-center space-x-2.5 rounded-md' +
' hover:bg-secondary p-2 transition-colors']: showProfileName,
},
)}
>

View File

@@ -40,7 +40,7 @@
"@tanstack/react-table": "^8.16.0",
"@types/react": "^18.2.79",
"lucide-react": "^0.368.0",
"next": "14.3.0-canary.7",
"next": "14.3.0-canary.9",
"react": "18.2.0",
"react-hook-form": "^7.51.3",
"zod": "^3.22.4"

View File

@@ -32,7 +32,7 @@
"@tanstack/react-query": "5.29.2",
"@types/react": "^18.2.79",
"lucide-react": "^0.368.0",
"next": "14.3.0-canary.7",
"next": "14.3.0-canary.9",
"react-hook-form": "^7.51.3",
"react-i18next": "^14.1.0",
"sonner": "^1.4.41",

View File

@@ -37,7 +37,7 @@
"class-variance-authority": "^0.7.0",
"date-fns": "^3.6.0",
"lucide-react": "^0.368.0",
"next": "14.3.0-canary.7",
"next": "14.3.0-canary.9",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.51.3",

View File

@@ -28,7 +28,7 @@
"@kit/tailwind-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@supabase/supabase-js": "^2.42.4",
"next": "14.3.0-canary.7",
"next": "14.3.0-canary.9",
"zod": "^3.22.4"
},
"eslintConfig": {

View File

@@ -32,7 +32,7 @@
"@supabase/supabase-js": "^2.42.4",
"@tanstack/react-query": "5.29.2",
"@types/react": "^18.2.79",
"next": "14.3.0-canary.7",
"next": "14.3.0-canary.9",
"react": "18.2.0",
"zod": "^3.22.4"
},

View File

@@ -59,7 +59,7 @@
"date-fns": "^3.6.0",
"eslint": "^8.57.0",
"lucide-react": "^0.368.0",
"next": "14.3.0-canary.7",
"next": "14.3.0-canary.9",
"next-themes": "0.3.0",
"prettier": "^3.2.5",
"react-day-picker": "^8.10.1",

View File

@@ -14,7 +14,7 @@ export function Page(
<div
className={
props.contentContainerClassName ??
'mx-auto flex h-screen w-full flex-col overflow-y-auto'
'mx-auto flex h-screen w-full flex-col space-y-4 overflow-y-auto'
}
>
{props.children}
@@ -45,27 +45,29 @@ export function PageHeader({
}>) {
return (
<div
className={'mb-4 flex items-start justify-between border-b px-4 py-2.5'}
className={'flex min-h-16 items-center justify-between border-b px-4'}
>
<div
className={
'flex items-center space-x-4 lg:flex-col lg:items-start lg:space-x-0'
'flex items-center space-x-4 lg:flex-col lg:space-y-0.5 lg:items-start lg:space-x-0'
}
>
<div className={'flex items-center lg:hidden'}>{mobileNavigation}</div>
<h1>
<span className={'flex items-center space-x-0.5 lg:space-x-2'}>
<span
className={'font-heading text-xl font-semibold dark:text-white'}
>
{title}
</span>
</span>
<h1
className={
'font-heading text-xl font-semibold leading-none dark:text-white'
}
>
{title}
</h1>
<h2 className={'hidden lg:block'}>
<span className={'text-base font-normal text-muted-foreground'}>
<span
className={
'text-base font-normal leading-none text-muted-foreground'
}
>
{description}
</span>
</h2>

View File

@@ -161,12 +161,12 @@ export function SidebarItem({
const currentPath = usePathname() ?? '';
const active = isRouteActive(path, currentPath, end ? 0 : 3);
const variant = active ? 'secondary' : 'ghost';
const size = collapsed ? 'icon' : 'default';
const size = collapsed ? 'icon' : 'sm';
return (
<Link key={path} href={path}>
<Button
className={cn('flex w-full shadow-none', {
className={cn('flex w-full text-sm shadow-none', {
'justify-start space-x-2': !collapsed,
})}
size={size}

View File

@@ -53,10 +53,10 @@ const RadioGroupItemLabel = (
className={cn(
props.className,
'flex cursor-pointer rounded-md' +
' items-center space-x-4 border border-input hover:bg-muted' +
' items-center space-x-4 border border-input hover:bg-secondary' +
' transition-duration-500 p-4 text-sm transition-all focus-within:border-primary',
{
[`border-primary`]: props.selected,
[`border-primary bg-secondary`]: props.selected,
},
)}
>