Comparing version 3.17.2-canary.e4ecf14 to 3.18.0-canary.707517e
@@ -10,3 +10,3 @@ import type { I18nClient } from '@payloadcms/translations'; | ||
export type ClientComponentProps = { | ||
customComponents: FormField['customComponents']; | ||
customComponents?: FormField['customComponents']; | ||
field: ClientBlock | ClientField | ClientTab; | ||
@@ -13,0 +13,0 @@ forceRender?: boolean; |
@@ -43,10 +43,9 @@ import { type SupportedLanguages } from '@payloadcms/translations'; | ||
filterOptions?: FilterOptionsResult; | ||
initialValue: unknown; | ||
isSidebar?: boolean; | ||
initialValue?: unknown; | ||
passesCondition?: boolean; | ||
requiresRender?: boolean; | ||
rows?: Row[]; | ||
valid: boolean; | ||
valid?: boolean; | ||
validate?: Validate; | ||
value: unknown; | ||
value?: unknown; | ||
}; | ||
@@ -53,0 +52,0 @@ export type FieldStateWithoutComponents = Omit<FieldState, 'customComponents'>; |
@@ -97,2 +97,8 @@ import type { AcceptedLanguages, I18nClient } from '@payloadcms/translations'; | ||
initialSchemaPath?: string; | ||
/** | ||
* @deprecated | ||
* This is a legacy property that will be removed in v4. | ||
* Please use `fieldIsSidebar(field)` from `payload` instead. | ||
* Or check `field.admin.position === 'sidebar'` directly. | ||
*/ | ||
isSidebar: boolean; | ||
@@ -99,0 +105,0 @@ path: string; |
@@ -12,2 +12,3 @@ import { authCollectionEndpoints } from '../../auth/endpoints/index.js'; | ||
import { findVersionByIDHandler } from './findVersionByID.js'; | ||
import { findVersionsHandler } from './findVersions.js'; | ||
import { getFileHandler } from './getFile.js'; | ||
@@ -47,2 +48,7 @@ import { previewHandler } from './preview.js'; | ||
{ | ||
handler: findVersionsHandler, | ||
method: 'get', | ||
path: '/versions' | ||
}, | ||
{ | ||
handler: duplicateHandler, | ||
@@ -49,0 +55,0 @@ method: 'post', |
@@ -14,2 +14,3 @@ import httpStatus from 'http-status'; | ||
import { deleteCollectionVersions } from '../../versions/deleteCollectionVersions.js'; | ||
import { deleteScheduledPublishJobs } from '../../versions/deleteScheduledPublishJobs.js'; | ||
import { buildAfterOperation } from './utils.js'; | ||
@@ -109,2 +110,13 @@ export const deleteOperation = async (incomingArgs)=>{ | ||
// ///////////////////////////////////// | ||
// Delete scheduled posts | ||
// ///////////////////////////////////// | ||
if (collectionConfig.versions?.drafts && collectionConfig.versions.drafts.schedulePublish) { | ||
await deleteScheduledPublishJobs({ | ||
id, | ||
slug: collectionConfig.slug, | ||
payload, | ||
req | ||
}); | ||
} | ||
// ///////////////////////////////////// | ||
// Delete document | ||
@@ -111,0 +123,0 @@ // ///////////////////////////////////// |
@@ -13,2 +13,3 @@ import executeAccess from '../../auth/executeAccess.js'; | ||
import { deleteCollectionVersions } from '../../versions/deleteCollectionVersions.js'; | ||
import { deleteScheduledPublishJobs } from '../../versions/deleteScheduledPublishJobs.js'; | ||
import { buildAfterOperation } from './utils.js'; | ||
@@ -101,2 +102,13 @@ export const deleteByIDOperation = async (incomingArgs)=>{ | ||
// ///////////////////////////////////// | ||
// Delete scheduled posts | ||
// ///////////////////////////////////// | ||
if (collectionConfig.versions?.drafts && collectionConfig.versions.drafts.schedulePublish) { | ||
await deleteScheduledPublishJobs({ | ||
id, | ||
slug: collectionConfig.slug, | ||
payload, | ||
req | ||
}); | ||
} | ||
// ///////////////////////////////////// | ||
// Delete document | ||
@@ -103,0 +115,0 @@ // ///////////////////////////////////// |
@@ -6,3 +6,3 @@ import type { I18nClient } from '@payloadcms/translations'; | ||
import { type ClientGlobalConfig } from '../globals/config/client.js'; | ||
export type ServerOnlyRootProperties = keyof Pick<SanitizedConfig, 'bin' | 'cors' | 'csrf' | 'custom' | 'db' | 'editor' | 'email' | 'endpoints' | 'graphQL' | 'hooks' | 'jobs' | 'logger' | 'onInit' | 'plugins' | 'secret' | 'sharp' | 'typescript'>; | ||
export type ServerOnlyRootProperties = keyof Pick<SanitizedConfig, 'bin' | 'cors' | 'csrf' | 'custom' | 'db' | 'editor' | 'email' | 'endpoints' | 'graphQL' | 'hooks' | 'i18n' | 'jobs' | 'logger' | 'onInit' | 'plugins' | 'secret' | 'sharp' | 'typescript'>; | ||
export type ServerOnlyRootAdminProperties = keyof Pick<SanitizedConfig['admin'], 'components'>; | ||
@@ -16,3 +16,2 @@ export type ClientConfig = { | ||
globals: ClientGlobalConfig[]; | ||
i18n?: Omit<SanitizedConfig['i18n'], 'supportedLanguages'>; | ||
} & Omit<SanitizedConfig, 'admin' | 'collections' | 'globals' | 'i18n' | ServerOnlyRootProperties>; | ||
@@ -19,0 +18,0 @@ export declare const serverOnlyAdminConfigProperties: readonly Partial<ServerOnlyRootAdminProperties>[]; |
@@ -14,2 +14,3 @@ import { createClientCollectionConfigs } from '../collections/config/client.js'; | ||
'bin', | ||
'i18n', | ||
'typescript', | ||
@@ -68,8 +69,2 @@ 'cors', | ||
break; | ||
case 'i18n': | ||
clientConfig.i18n = { | ||
fallbackLanguage: config.i18n.fallbackLanguage, | ||
translations: config.i18n.translations | ||
}; | ||
break; | ||
case 'localization': | ||
@@ -76,0 +71,0 @@ if (typeof config.localization === 'object' && config.localization) { |
@@ -640,3 +640,3 @@ import type { DefaultTranslationKeys, DefaultTranslationsObject, I18nClient, I18nOptions, TFunction } from '@payloadcms/translations'; | ||
* @deprecated | ||
* This option is deprecated and will be removed in the next major version. | ||
* This option is deprecated and will be removed in v4. | ||
* To disable the admin panel itself, delete your `/app/(payload)/admin` directory. | ||
@@ -643,0 +643,0 @@ * To disable all REST API and GraphQL endpoints, delete your `/app/(payload)/api` directory. |
@@ -386,3 +386,3 @@ import type { ExecutionResult, GraphQLSchema, ValidationRule } from 'graphql'; | ||
export { validateSearchParam } from './database/queryValidation/validateSearchParams.js'; | ||
export type { BaseDatabaseAdapter, BeginTransaction, CommitTransaction, Connect, Count, CountArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateVersion, CreateVersionArgs, DatabaseAdapterResult as DatabaseAdapterObj, DBIdentifierName, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Destroy, Find, FindArgs, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindVersions, FindVersionsArgs, GenerateSchema, Init, Migration, MigrationData, MigrationTemplateArgs, PaginatedDocs, QueryDrafts, QueryDraftsArgs, RollbackTransaction, Transaction, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, Upsert, } from './database/types.js'; | ||
export type { BaseDatabaseAdapter, BeginTransaction, CommitTransaction, Connect, Count, CountArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateVersion, CreateVersionArgs, DatabaseAdapterResult as DatabaseAdapterObj, DBIdentifierName, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Destroy, Find, FindArgs, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindVersions, FindVersionsArgs, GenerateSchema, Init, Migration, MigrationData, MigrationTemplateArgs, PaginatedDocs, QueryDrafts, QueryDraftsArgs, RollbackTransaction, Transaction, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, Upsert, UpsertArgs, } from './database/types.js'; | ||
export type { EmailAdapter as PayloadEmailAdapter, SendEmailOptions } from './email/types.js'; | ||
@@ -389,0 +389,0 @@ export { APIError, APIErrorName, AuthenticationError, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, InvalidConfiguration, InvalidFieldName, InvalidFieldRelationship, Locked, LockedAuth, MissingCollectionLabel, MissingEditorProp, MissingFieldInputOptions, MissingFieldType, MissingFile, NotFound, QueryError, ValidationError, ValidationErrorName, } from './errors/index.js'; |
@@ -61,2 +61,3 @@ import httpStatus from 'http-status'; | ||
const response = await handleEndpoints({ | ||
basePath, | ||
config: incomingConfig, | ||
@@ -63,0 +64,0 @@ request: new Request(url, { |
@@ -13,3 +13,6 @@ export const deleteCollectionVersions = async ({ id, slug, payload, req })=>{ | ||
} catch (err) { | ||
payload.logger.error(`There was an error removing versions for the deleted ${slug} document with ID ${id}.`); | ||
payload.logger.error({ | ||
err, | ||
msg: `There was an error removing versions for the deleted ${slug} document with ID ${id}.` | ||
}); | ||
} | ||
@@ -16,0 +19,0 @@ }; |
@@ -16,2 +16,3 @@ export const PAYLOAD_PACKAGE_LIST = [ | ||
'@payloadcms/plugin-form-builder', | ||
'@payloadcms/plugin-multi-tenant', | ||
'@payloadcms/plugin-nested-docs', | ||
@@ -18,0 +19,0 @@ '@payloadcms/plugin-redirects', |
{ | ||
"name": "payload", | ||
"version": "3.17.2-canary.e4ecf14", | ||
"version": "3.18.0-canary.707517e", | ||
"description": "Node, React, Headless CMS and Application Framework built on Next.js", | ||
@@ -103,3 +103,3 @@ "keywords": [ | ||
"ws": "^8.16.0", | ||
"@payloadcms/translations": "3.17.2-canary.e4ecf14" | ||
"@payloadcms/translations": "3.18.0-canary.707517e" | ||
}, | ||
@@ -106,0 +106,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5216813
1952
38560
+ Added@payloadcms/translations@3.18.0-canary.707517e(transitive)
- Removed@payloadcms/translations@3.17.2-canary.e4ecf14(transitive)