Update Payload dependencies to 3.56.0 and implement DefaultTemplate layout

- Updated all @payloadcms/* dependencies from 3.37.0 to 3.56.0
- Implemented DefaultTemplate from @payloadcms/next/templates with proper props structure
- Fixed TypeScript compilation by adding proper Locale type import
- Feature flags admin interface now wrapped in PayloadCMS default admin layout with navigation sidebar
- Verified build process works with updated dependencies

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-03 16:38:31 +02:00
parent a267824239
commit bca558fad3
4 changed files with 406 additions and 655 deletions

View File

@@ -88,7 +88,7 @@ export interface Config {
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
};
db: {
defaultIDType: string;
defaultIDType: number;
};
globals: {};
globalsSelect: {};
@@ -124,7 +124,7 @@ export interface UserAuthOperations {
* via the `definition` "posts".
*/
export interface Post {
id: string;
id: number;
title: string;
content?: {
root: {
@@ -151,7 +151,7 @@ export interface Post {
* via the `definition` "pages".
*/
export interface Page {
id: string;
id: number;
title: string;
slug: string;
content?: {
@@ -178,7 +178,7 @@ export interface Page {
* via the `definition` "users".
*/
export interface User {
id: string;
id: number;
name?: string | null;
role?: ('admin' | 'editor' | 'user') | null;
updatedAt: string;
@@ -190,6 +190,13 @@ export interface User {
hash?: string | null;
loginAttempts?: number | null;
lockUntil?: string | null;
sessions?:
| {
id: string;
createdAt?: string | null;
expiresAt: string;
}[]
| null;
password?: string | null;
}
/**
@@ -197,7 +204,7 @@ export interface User {
* via the `definition` "media".
*/
export interface Media {
id: string;
id: number;
alt?: string | null;
updatedAt: string;
createdAt: string;
@@ -218,7 +225,7 @@ export interface Media {
* via the `definition` "feature-flags".
*/
export interface FeatureFlag {
id: string;
id: number;
/**
* Unique identifier for the feature flag
*/
@@ -291,7 +298,7 @@ export interface FeatureFlag {
/**
* Team member responsible for this feature flag
*/
owner?: (string | null) | User;
owner?: (number | null) | User;
/**
* Optional expiration date for temporary flags
*/
@@ -308,32 +315,32 @@ export interface FeatureFlag {
* via the `definition` "payload-locked-documents".
*/
export interface PayloadLockedDocument {
id: string;
id: number;
document?:
| ({
relationTo: 'posts';
value: string | Post;
value: number | Post;
} | null)
| ({
relationTo: 'pages';
value: string | Page;
value: number | Page;
} | null)
| ({
relationTo: 'users';
value: string | User;
value: number | User;
} | null)
| ({
relationTo: 'media';
value: string | Media;
value: number | Media;
} | null)
| ({
relationTo: 'feature-flags';
value: string | FeatureFlag;
value: number | FeatureFlag;
} | null);
globalSlug?: string | null;
user: {
relationTo: 'users';
value: string | User;
value: number | User;
};
updatedAt: string;
createdAt: string;
@@ -343,10 +350,10 @@ export interface PayloadLockedDocument {
* via the `definition` "payload-preferences".
*/
export interface PayloadPreference {
id: string;
id: number;
user: {
relationTo: 'users';
value: string | User;
value: number | User;
};
key?: string | null;
value?:
@@ -366,7 +373,7 @@ export interface PayloadPreference {
* via the `definition` "payload-migrations".
*/
export interface PayloadMigration {
id: string;
id: number;
name?: string | null;
batch?: number | null;
updatedAt: string;
@@ -412,6 +419,13 @@ export interface UsersSelect<T extends boolean = true> {
hash?: T;
loginAttempts?: T;
lockUntil?: T;
sessions?:
| T
| {
id?: T;
createdAt?: T;
expiresAt?: T;
};
}
/**
* This interface was referenced by `Config`'s JSON-Schema