MCPcopy Create free account

hub / github.com/keystonejs/keystone / functions

Functions2,041 in github.com/keystonejs/keystone

↓ 601 callersFunctiontest
(val)
tests/cli-tests/utils.ts:154
↓ 435 callersFunctionrunner
(enableLogging: boolean)
tests/api-tests/db-enable-logging.test.ts:6
↓ 352 callersFunctionlist
(config: ListConfig<ListTypeInfo>)
packages/core/src/schema.ts:34
↓ 346 callersFunctiontext
( config: TextFieldConfig<ListTypeInfo> = {} )
packages/core/src/fields/types/text/index.ts:68
↓ 286 callersFunctioncreateIcon
(children: ReactNode, name: string)
design-system/packages/icons/src/Icon.tsx:23
↓ 224 callersFunctionrelationship
({ ref, ...config }: RelationshipFieldConfig<ListTypeInfo>)
packages/core/src/fields/types/relationship/index.ts:110
↓ 192 callersFunctiontest
(val)
packages/fields-document/src/DocumentEditor/tests/utils.tsx:381
↓ 177 callersFunctionmakeEditor
( node: Node, { documentFeatures = defaultDocumentFeatures, componentBlocks = {}, normalizatio
packages/fields-document/src/DocumentEditor/tests/utils.tsx:198
↓ 110 callersFunctionuseTheme
()
design-system/packages/core/src/theme.tsx:17
↓ 75 callersFunctiongqlSuper
(...args: Parameters<typeof context.graphql.raw>)
tests/api-tests/test-runner.ts:160
↓ 68 callersFunctionconfig
(config: KeystoneConfig<TypeInfo>)
packages/core/src/schema.ts:9
↓ 61 callersFunctionsetupTestRunner
({ config: config_, serve = false, identifier, }: { config: FloatingConfig<TypeInfo> serve?: boolean
tests/api-tests/test-runner.ts:202
↓ 60 callersFunctioninteger
(config: IntegerFieldConfig<ListTypeInfo> = {})
packages/core/src/fields/types/integer/index.ts:36
↓ 56 callersMethodadd
({ fn, skip = false, only = false })
tests/benchmarks/lib/utils.js:34
↓ 51 callersFunctiontimestamp
( config: TimestampFieldConfig<ListTypeInfo> = {} )
packages/core/src/fields/types/timestamp/index.ts:30
↓ 44 callersFunctioncomponent
( options: { /** The preview component shown in the editor */ preview: (props: PreviewProps<ObjectFi
packages/fields-document/src/DocumentEditor/component-blocks/api.tsx:425
↓ 44 callersFunctiongql
(...args: Parameters<typeof context.graphql.raw>)
tests/api-tests/test-runner.ts:167
↓ 43 callersFunctionuseMediaQuery
()
docs/lib/media.ts:29
↓ 37 callersFunctioncompareIds
(list: { id: IdType }[], ids: IdType[])
tests/api-tests/relationships/nested-mutations/two-way-backreference/to-many.test.ts:57
↓ 35 callersFunctionafterAll
()
packages/cloudinary/src/test-fixtures.skip.ts:38
↓ 33 callersFunctioncheckbox
( config: CheckboxFieldConfig<ListTypeInfo> = {} )
packages/core/src/fields/types/checkbox/index.ts:22
↓ 31 callersFunctionaddValidationError
(msg: string)
packages/core/src/lib/core/hooks.ts:21
↓ 31 callersFunctionmatch
(inputValues, where, expectedIndexes)
tests/api-tests/fields/types/utils.ts:74
↓ 31 callersFunctiononChange
(event: ChangeEvent<HTMLInputElement>)
packages/core/src/fields/types/integer/views/utils.tsx:57
↓ 31 callersFunctiontest
(val)
packages/fields-document/src/validation.test.tsx:74
↓ 30 callersFunctioninitialiseData
({ context }: { context: ContextFromRunner<typeof runner> })
tests/api-tests/queries/orderBy.test.ts:74
↓ 30 callersFunctionseed
( context: KeystoneContext, initialData: T )
tests/api-tests/utils.ts:206
↓ 27 callersFunctionf
(operation: 'query' | 'mutation', fieldName: string)
packages/core/src/lib/context/api.ts:8
↓ 26 callersFunctionfieldType
( dbField: TDBField )
packages/core/src/types/next-fields.ts:461
↓ 25 callersFunctiongetPreviewProps
(editor: Editor)
packages/fields-document/src/DocumentEditor/component-blocks/insertion-and-preview-props.test.tsx:172
↓ 25 callersFunctionselect
(config: SelectFieldConfig<ListTypeInfo>)
packages/core/src/fields/types/select/index.ts:58
↓ 25 callersMethodtoEqualEditor
( expected: [T] extends [Editor] ? Editor : 'toEqualEditor only accepts an Editor' )
packages/fields-document/src/DocumentEditor/tests/utils.tsx:79
↓ 24 callersFunctiongetTeacher
(context: ContextFromRunner<typeof runner>, teacherId: IdType)
tests/api-tests/relationships/nested-mutations/two-way-backreference/to-many.test.ts:35
↓ 24 callersFunctiononChange
(selectedOption: { value: string, label: string })
packages/core/src/admin-ui/components/Pagination.tsx:78
↓ 23 callersFunctionallOperations
(f: F)
packages/core/src/access.ts:18
↓ 23 callersMethodcreate
(data: Record<string, unknown>, list: InitialisedList)
packages/core/src/lib/core/mutations/index.ts:114
↓ 23 callersFunctionexpectGraphQLValidationError
( errors: readonly any[] | undefined, args: { message: string }[] )
tests/api-tests/utils.ts:71
↓ 22 callersFunctionexpectSingleRelationshipError
( errors: readonly any[] | undefined, path: string, fieldPath: string, message: string )
tests/api-tests/utils.ts:192
↓ 22 callersFunctionforwardRefWithAs
( render: ( props: BaseProps & { as?: ElementType }, ref: React.Ref<any> ) => Exclude<ReactNode, u
design-system/packages/core/src/utils.ts:74
↓ 21 callersFunctiongetCompanyAndLocation
( context: KeystoneContext, companyId: IdType, locationId: IdType )
tests/api-tests/relationships/crud/one-to-one.test.ts:74
↓ 21 callersFunctiongetStudent
(context: ContextFromRunner<typeof runner>, studentId: IdType)
tests/api-tests/relationships/nested-mutations/two-way-backreference/to-many.test.ts:41
↓ 20 callersFunctionassertNever
(arg: never)
packages/fields-document/src/DocumentEditor/component-blocks/utils.ts:62
↓ 19 callersFunctioncreateInitialData
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/one-to-one.test.ts:13
↓ 19 callersFunctiongetContext
( config: KeystoneConfig<TypeInfo>, PrismaModule: unknown )
packages/core/src/context.ts:8
↓ 19 callersFunctionpassword
(config: PasswordFieldConfig<ListTypeInfo> = {})
packages/core/src/fields/types/password/index.ts:56
↓ 19 callersFunctionspawnCommand
(cwd: string, commands: string[])
tests/cli-tests/utils.ts:75
↓ 18 callersFunctionuseList
(listKey: string)
packages/core/src/admin-ui/context.tsx:150
↓ 18 callersFunctionvalidate
(val: unknown)
packages/fields-document/src/validation.test.tsx:55
↓ 17 callersFunctioncreate
(listKey: ListKey, data: any)
tests/api-tests/queries/relationships.test.ts:120
↓ 17 callersFunctionexampleProjectTests
( exampleName: string, tests: (browser: playwright.BrowserType<playwright.Browser>, mode: 'dev' | 'prod')
tests/examples-smoke-tests/utils.ts:71
↓ 17 callersFunctionloadIndex
(page: playwright.Page)
tests/examples-smoke-tests/utils.ts:10
↓ 17 callersFunctiontestdir
(dir: Fixture)
tests/cli-tests/utils.ts:115
↓ 17 callersFunctionvirtual
({ field, ...config }: VirtualFieldConfig<ListTypeInfo>)
packages/core/src/fields/types/virtual/index.ts:45
↓ 16 callersFunctioncreateContext
({ config, lists, graphQLSchema, graphQLSchemaSudo, prismaClient, prismaTypes }: { config: __Res
packages/core/src/lib/context/createContext.ts:22
↓ 16 callersFunctionmapResponsiveProp
( value: Keys | readonly (Keys | null)[], valueMap: Map )
design-system/packages/core/src/utils.ts:98
↓ 16 callersFunctionrunTelemetry
( cwd: string, lists: Record<string, InitialisedList>, dbProviderName: DatabaseProvider )
packages/core/src/lib/telemetry.ts:278
↓ 15 callersFunctiongetInitialPropsValue
(schema: ComponentSchema)
packages/fields-document/src/DocumentEditor/component-blocks/initial-values.ts:26
↓ 15 callersFunctiongetPrismaSchema
(config: FloatingConfig<TypeInfo>)
tests/api-tests/utils.ts:236
↓ 15 callersFunctionhumanize
(str: string)
packages/core/src/lib/utils.ts:7
↓ 15 callersFunctiononChange
(updater: readonly { key: string | undefined, value?: unknown }[])
packages/fields-document/src/DocumentEditor/component-blocks/preview-props.ts:90
↓ 15 callersFunctionuseToolbarState
()
packages/fields-document/src/DocumentEditor/toolbar-state.tsx:16
↓ 14 callersFunctionassert
(condition: boolean)
packages/fields-document/src/DocumentEditor/utils.ts:157
↓ 14 callersFunctioncreateInitialData
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud-self-ref/one-to-one.test.ts:13
↓ 14 callersFunctioncreateUserAndFriend
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud-self-ref/one-to-one.test.ts:25
↓ 14 callersFunctiondocument
({ componentBlocks = {}, dividers, formatting, layouts, relationships: configRelationships, links,
packages/fields-document/src/index.ts:74
↓ 13 callersFunctionassertValidComponentSchema
(schema: ComponentSchema, lists: ReadonlySet<string>)
packages/fields-document/src/DocumentEditor/component-blocks/field-assertions.ts:4
↓ 13 callersFunctionpopulate
(N, f)
tests/benchmarks/lib/utils.js:26
↓ 13 callersFunctiontimeQuery
({ context, query, variables, repeat = 1 })
tests/benchmarks/lib/utils.js:1
↓ 13 callersFunctionuserInputError
(msg: string)
packages/core/src/lib/core/graphql-errors.ts:3
↓ 12 callersFunctionaccessDeniedError
(msg: string)
packages/core/src/lib/core/graphql-errors.ts:6
↓ 12 callersFunctioncreateSystem
(config_: KeystoneConfig)
packages/core/src/lib/createSystem.ts:203
↓ 12 callersFunctionextensionError
(extension: string, things: { error: Error, tag: string }[])
packages/core/src/lib/core/graphql-errors.ts:16
↓ 12 callersFunctionmergeFieldHooks
( builtin?: InternalFieldHooks<ListTypeInfo>, hooks?: FieldHooks<ListTypeInfo>, )
packages/core/src/fields/resolve-hooks.ts:38
↓ 12 callersFunctiononClose
()
design-system/packages/modals/src/AlertDialog.tsx:38
↓ 12 callersFunctiontoggleList
(editor: Editor, format: 'ordered-list' | 'unordered-list')
packages/fields-document/src/DocumentEditor/lists-shared.ts:12
↓ 12 callersFunctionuseKeystone
()
packages/core/src/admin-ui/context.tsx:116
↓ 11 callersFunctioncannotForItem
(operation: string, list: InitialisedList)
packages/core/src/lib/core/access-control.ts:24
↓ 11 callersFunctioncliMock
(cwd: string, args: string | string[])
tests/cli-tests/utils.ts:66
↓ 11 callersFunctioncreateGetPreviewProps
( rootSchema: Schema, rootOnChange: ( cb: (val: ValueForComponentSchema<Schema>) => ValueForComponentS
packages/fields-document/src/DocumentEditor/component-blocks/preview-props.ts:65
↓ 11 callersFunctiongetCompanyAndLocation
( context: KeystoneContext, companyId: IdType, locationId: IdType )
tests/api-tests/relationships/crud/one-to-many.test.ts:49
↓ 11 callersFunctiongetOperationAccess
( list: InitialisedList, context: KeystoneContext, operation: 'query' | 'create' | 'update' | 'delete' )
packages/core/src/lib/core/access-control.ts:72
↓ 11 callersFunctionkeystoneTestWrapper
(testFn: (args: any) => void = () => {})
tests/api-tests/fields/crud.test.ts:39
↓ 11 callersFunctionnestList
(editor: Editor)
packages/fields-document/src/DocumentEditor/lists-shared.ts:149
↓ 11 callersFunctionparse
(value: IDType)
packages/core/src/lib/id-field.ts:147
↓ 11 callersFunctionsetupTestEnv
({ config: config_, serve = false, identifier, }: { config: FloatingConfig<TypeInfo> serve?: boolean
tests/api-tests/test-runner.ts:84
↓ 11 callersFunctionstatelessSessions
({ secret = randomBytes(32).toString('base64url'), maxAge = 60 * 60 * 8, // 8 hours, cookieName = 'keyst
packages/core/src/session.ts:62
↓ 10 callersFunctionboolToTrueOrUndefined
(bool: boolean)
docs/components/docs/DocumentEditorDemo.tsx:189
↓ 10 callersFunctioncreateAuth
({ listKey, secretField, initFirstItem, identityField, magicAuthLink, passwordResetLink, session
packages/auth/src/index.ts:28
↓ 10 callersFunctiondeserializeChildren
(nodes: MDNode[], input: string)
packages/fields-document/src/DocumentEditor/pasting/markdown.ts:33
↓ 10 callersFunctionfilterTests
(field: FieldTypeFunc<BaseListTypeInfo>, cb: (match: Match) => void)
tests/api-tests/fields/types/utils.ts:71
↓ 10 callersFunctiongetCompanyAndLocation
( context: KeystoneContext, companyId: IdType, locationId: IdType )
tests/api-tests/relationships/crud/many-to-many.test.ts:49
↓ 10 callersFunctiongetKeysForArrayValue
(value: readonly unknown[])
packages/fields-document/src/DocumentEditor/component-blocks/preview-props.ts:19
↓ 10 callersFunctiongetSchema
(field: { ref: string many?: boolean })
tests/api-tests/fields/types/relationship.test.ts:11
↓ 10 callersFunctiongetUserAndFriend
(context: KeystoneContext, userId: IdType, friendId: IdType)
tests/api-tests/relationships/crud-self-ref/one-to-many.test.ts:40
↓ 10 callersFunctiongetUserAndFriend
(context: KeystoneContext, userId: IdType, friendId: IdType)
tests/api-tests/relationships/crud-self-ref/many-to-many.test.ts:40
↓ 10 callersFunctiongql
([content]: TemplateStringsArray)
tests/admin-ui-tests/live-reloading.test.ts:19
↓ 10 callersFunctiongql
([content]: TemplateStringsArray)
examples/document-field/src/utils.tsx:1
↓ 10 callersFunctionhtmlToEditor
(html: string)
packages/fields-document/src/DocumentEditor/pasting/test-utils.tsx:6
↓ 10 callersFunctioninsertNodesButReplaceIfSelectionIsAtEmptyParagraphOrHeading
( editor: Editor, nodes: Node | Node[], slate?: { ReactEditor: { focus: (editor: Editor) => vo
packages/fields-document/src/DocumentEditor/utils.ts:77
↓ 10 callersFunctionintrospectDatabase
(cwd: string, url: string)
tests/cli-tests/utils.ts:179
next →1–100 of 2,041, ranked by callers