Merge branch 'master' of github.com:payloadcms/payload into feat/form-onchange

This commit is contained in:
Jacob Fletcher
2021-11-24 14:25:08 -05:00
27 changed files with 1552 additions and 65 deletions

View File

@@ -66,6 +66,7 @@ const getBaseUploadFields = ({ config, collection }: Options): Field[] => {
name: 'filename',
label: 'File Name',
type: 'text',
index: true,
admin: {
readOnly: true,
disabled: true,

View File

@@ -4,6 +4,7 @@ import { Editor } from 'slate';
import { PayloadRequest } from '../../express/types';
import { Document } from '../../types';
import { ConditionalDateProps } from '../../admin/components/elements/DatePicker/types';
import { Description } from '../../admin/components/forms/FieldDescription/types';
export type FieldHook = (args: {
value?: unknown,
@@ -40,8 +41,6 @@ type Admin = {
hidden?: boolean
}
export type Description = string | ((value: Record<string, unknown>) => string);
export type Labels = {
singular: string;
plural: string;