Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/keystonejs/keystone
/ functions
Functions
2,041 in github.com/keystonejs/keystone
⨍
Functions
2,041
◇
Types & classes
49
↓ 10 callers
Function
isElementActive
( editor: Editor, format: Exclude<ElementFromValidation, { text: string }>['type'] )
packages/fields-document/src/DocumentEditor/utils.ts:41
↓ 10 callers
Function
makeGqlRequest
(query: string, variables?: Record<string, any>)
tests/admin-ui-tests/utils.ts:31
↓ 10 callers
Function
makeValidateHook
( meta: FieldData, config: { label?: string db?: { isNullable?: boolean } graphql?:
packages/core/src/fields/non-null-graphql.ts:20
↓ 10 callers
Function
match
( context: KeystoneContext, where: Record<string, any> | undefined, expected: any[] )
tests/api-tests/fields/types/fixtures/id/test-fixtures.ts:25
↓ 10 callers
Function
recordConsole
()
tests/cli-tests/utils.ts:27
↓ 10 callers
Function
setValue
(v: V, e: E)
design-system/packages/core/src/hooks/useManagedState.ts:26
↓ 10 callers
Function
useControlledPopover
( { isOpen, onClose }: { isOpen: boolean, onClose: () => void }, popperOptions: Partial<Options> = {}, p
design-system/packages/popover/src/Popover.tsx:33
↓ 9 callers
Function
blockContainer
(args: { allowedChildren: readonly [TypesWhichHaveNoExtraRequiredProps, ...Block['type'][]] invalidPositio
packages/fields-document/src/DocumentEditor/editor-shared.ts:195
↓ 9 callers
Function
createCompanyAndLocation
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/one-to-one.test.ts:32
↓ 9 callers
Function
createLocationAndCompany
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/one-to-one.test.ts:53
↓ 9 callers
Function
getUserAndFriend
(context: KeystoneContext, userId: IdType, friendId: IdType)
tests/api-tests/relationships/crud-self-ref/one-to-one.test.ts:43
↓ 9 callers
Function
makeDataGetter
( data: Data, errors: readonly GraphQLFormattedError[] | undefined )
packages/core/src/admin-ui/utils/dataGetter.ts:65
↓ 9 callers
Function
makeThrower
(suffix: string)
tests/api-tests/hooks.test.ts:11
↓ 9 callers
Function
setup
(create: (...args: any) => Promise<any>)
tests/api-tests/queries/relationships.test.ts:91
↓ 9 callers
Function
useId
(idFromProps?: string | null)
design-system/packages/core/src/utils.ts:123
↓ 8 callers
Function
bigInt
(config: BigIntFieldConfig<ListTypeInfo> = {})
packages/core/src/fields/types/bigInt/index.ts:36
↓ 8 callers
Function
checkFile
( filename: string, config: { matrixValue: 's3' } | { matrixValue: 'local', folder: string } )
tests/api-tests/fields/files.test.ts:86
↓ 8 callers
Function
controller
( config: FieldControllerConfig<TimestampFieldMeta> )
packages/core/src/fields/types/timestamp/views/index.tsx:230
↓ 8 callers
Function
deserializeMarkdown
(markdown: string)
packages/fields-document/src/DocumentEditor/pasting/markdown.test.tsx:8
↓ 8 callers
Function
expectAccessReturnError
( errors: readonly any[] | undefined, args: { path: any[], errors: { tag: string, returned: string }[] }[]
tests/api-tests/utils.ts:127
↓ 8 callers
Function
forUsers
({ admin, moderator, contributor, default: _default, }: { admin?: ({ session }: { session: Session &
examples/usecase-blog-moderated/schema.ts:31
↓ 8 callers
Function
getAccessFilters
( list: InitialisedList, context: KeystoneContext, operation: keyof typeof list.access.filter )
packages/core/src/lib/core/access-control.ts:126
↓ 8 callers
Function
getCompanyAndLocation
( context: KeystoneContext, companyId: IdType, locationId: IdType )
tests/api-tests/relationships/crud/many-to-many-one-sided.test.ts:48
↓ 8 callers
Function
getIDs
(context: KeystoneContext)
tests/api-tests/fields/types/fixtures/id/test-fixtures.ts:19
↓ 8 callers
Function
getUserAndFriend
(context: KeystoneContext, userId: IdType, friendId: IdType)
tests/api-tests/relationships/crud-self-ref/many-to-many-one-sided.test.ts:40
↓ 8 callers
Function
importBuiltKeystoneConfiguration
(cwd: string)
packages/core/src/scripts/utils.ts:13
↓ 8 callers
Function
initialise
({ context }: { context: KeystoneContext })
tests/api-tests/queries/singletons.test.ts:22
↓ 8 callers
Function
merge
(a?: A, b?: B)
packages/core/src/fields/resolve-hooks.ts:12
↓ 8 callers
Function
orderableFilterTests
( match: Match, valuesInAscendingOrder: readonly [unknown, unknown, unknown, unknown, unknown], isNullab
tests/api-tests/fields/types/utils.ts:103
↓ 8 callers
Function
range
tests/benchmarks/lib/utils.js:21
↓ 8 callers
Function
test
(val)
docs/markdoc/index.test.ts:29
↓ 8 callers
Function
toStr
(items: any[])
tests/api-tests/relationships/nested-mutations/two-way-backreference/to-many.test.ts:12
↓ 8 callers
Function
transform
(node, config)
docs/markdoc/config.ts:52
↓ 8 callers
Function
uniqueEqualityFilterTest
( field: FieldTypeFunc<BaseListTypeInfo>, values: readonly unknown[], isNullable: boolean )
tests/api-tests/fields/types/utils.ts:138
↓ 8 callers
Function
weakMemoize
(cb: (arg: Arg) => Return)
packages/core/src/lib/core/queries/output-field.ts:62
↓ 7 callers
Function
addShortcut
( text: string, insert: () => void, shouldBeEnabledInComponentBlock: ( locationDocumentFeatu
packages/fields-document/src/DocumentEditor/block-markdown-shortcuts.ts:31
↓ 7 callers
Function
capitalise
(s: string)
design-system/website/utils.ts:1
↓ 7 callers
Function
contextFunctionField
( key: Key, type: ScalarType<Type> | EnumType<Record<string, EnumValue<Type>>> )
packages/core/src/lib/resolve-admin-meta.ts:340
↓ 7 callers
Function
createReadData
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/one-to-many.test.ts:70
↓ 7 callers
Function
expectBadUserInput
( errors: readonly any[] | undefined, args: { path: any[], message: string }[] )
tests/api-tests/utils.ts:113
↓ 7 callers
Function
expectFilterDenied
( errors: readonly any[] | undefined, args: { path: any[], message: string }[] )
tests/api-tests/utils.ts:142
↓ 7 callers
Function
getCompanyAndLocation
( context: KeystoneContext, companyId: IdType, locationId: IdType )
tests/api-tests/relationships/crud/one-to-many-one-sided.test.ts:84
↓ 7 callers
Function
getInlineNodes
( text: string )
packages/fields-document/src/DocumentEditor/pasting/utils.ts:82
↓ 7 callers
Function
getUserAndFriend
(context: KeystoneContext, userId: IdType, friendId: IdType)
tests/api-tests/relationships/crud-self-ref/one-to-many-one-sided.test.ts:68
↓ 7 callers
Function
makeEditorWithChildField
( childField: ChildField, children: Children, normalization: 'disallow-non-normalized' | 'normalize' | '
packages/fields-document/src/DocumentEditor/component-blocks/document-features-normalization.test.tsx:224
↓ 7 callers
Function
makeEditorWithComplexComponentBlock
()
packages/fields-document/src/DocumentEditor/component-blocks/insertion-and-preview-props.test.tsx:181
↓ 7 callers
Function
prepareFile
(path_: string)
packages/cloudinary/src/test-fixtures.skip.ts:14
↓ 7 callers
Function
prepareFile
(_filePath: string)
tests/api-tests/fields/types/fixtures/image/test-fixtures-skip.ts:10
↓ 7 callers
Function
prepareFile
(_filePath: string)
tests/api-tests/fields/types/fixtures/file/test-fixtures.ts:10
↓ 7 callers
Function
printTypeReferenceWithoutNullable
( type: GraphQLNamedType | GraphQLList<GraphQLType>, )
packages/core/src/lib/typescript-schema-printer.ts:38
↓ 7 callers
Function
readOnlyBy
(f: ({ session }: { session?: Session }) => boolean)
examples/usecase-blog-moderated/schema.ts:69
↓ 7 callers
Function
seedMany
(listKey: string, context: any)
tests/api-tests/access.test.ts:249
↓ 7 callers
Function
setup
(options?: any)
tests/api-tests/auth-header.test.ts:16
↓ 7 callers
Function
transformContent
(errorReportingFilepath: string, content: string)
docs/markdoc/index.ts:63
↓ 7 callers
Function
unpackErrors
(errors: readonly any[] | undefined)
tests/api-tests/utils.ts:48
↓ 7 callers
Function
useToasts
()
design-system/packages/toast/src/context.tsx:19
↓ 7 callers
Function
withAuth
* withAuth * * Automatically extends your configuration with a prescriptive implementation.
packages/auth/src/index.ts:249
↓ 6 callers
Function
calendarDay
(config: CalendarDayFieldConfig<ListTypeInfo> = {})
packages/core/src/fields/types/calendarDay/index.ts:28
↓ 6 callers
Function
checkFile
( filename: string, config: { matrixValue: 's3' } | { matrixValue: 'local', folder: string } )
tests/api-tests/fields/images.crud.test.disabled.ts:88
↓ 6 callers
Function
checkFilterOrderAccess
( things: { fieldKey: string, list: InitialisedList }[], context: KeystoneContext, operation: 'filter' |
packages/core/src/lib/core/filter-order-access.ts:5
↓ 6 callers
Function
createReadData
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/many-to-many-one-sided.test.ts:66
↓ 6 callers
Function
createReadData
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/many-to-many.test.ts:70
↓ 6 callers
Function
createReadData
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud-self-ref/one-to-many.test.ts:59
↓ 6 callers
Function
decimal
(config: DecimalFieldConfig<ListTypeInfo> = {})
packages/core/src/fields/types/decimal/index.ts:58
↓ 6 callers
Function
defaultFlags
(flags: Partial<Flags>, defaults: Partial<Flags>)
packages/core/src/scripts/cli.ts:20
↓ 6 callers
Function
deserializeValue
( fields: Record<string, FieldMeta>, itemGetter: DataGetter<ItemData> )
packages/core/src/admin-ui/utils/serialization.tsx:14
↓ 6 callers
Function
float
(config: FloatFieldConfig<ListTypeInfo> = {})
packages/core/src/fields/types/float/index.ts:30
↓ 6 callers
Method
getData
(format: string)
packages/fields-document/src/DocumentEditor/pasting/data-transfer.ts:17
↓ 6 callers
Function
getFiles
( dir: string, glob: string[] = ['**', '!node_modules/**'], encoding: 'utf8' | null = 'utf8' )
tests/cli-tests/utils.ts:162
↓ 6 callers
Function
getSchemaAtPropPath
( path: ReadonlyPropPath, value: Record<string, unknown>, props: Record<string, ComponentSchema> )
packages/fields-document/src/DocumentEditor/component-blocks/utils.ts:183
↓ 6 callers
Function
getTelemetryConfig
()
packages/core/src/lib/telemetry.ts:35
↓ 6 callers
Function
group
(config: { label: string description?: string fields: BaseFields<ListTypeInfo> })
packages/core/src/schema.ts:14
↓ 6 callers
Function
initData
({ context }: { context: ContextFromRunner<typeof runner> })
tests/api-tests/fields/types/document.test.ts:59
↓ 6 callers
Function
inlineContainer
(args: { invalidPositionHandleMode: 'unwrap' | 'move' })
packages/fields-document/src/DocumentEditor/editor-shared.ts:99
↓ 6 callers
Function
isKind
( props: GenericPreviewProps<ComponentSchema, unknown>, kind: Kind )
packages/fields-document/src/DocumentEditor/component-blocks/get-value.ts:122
↓ 6 callers
Function
makeValidate
(context: string)
tests/api-tests/hooks.test.ts:29
↓ 6 callers
Function
onChange
(timeValue)
packages/core/src/fields/types/timestamp/views/index.tsx:67
↓ 6 callers
Function
resolve
(val)
packages/core/src/lib/id-field.ts:176
↓ 6 callers
Function
resolve
()
tests/sandbox/configs/all-the-things.ts:97
↓ 6 callers
Function
seed
(listKey: string, context: any)
tests/api-tests/access.test.ts:244
↓ 6 callers
Function
text
({ isIndexed, ...config }: TextFieldConfig<ListTypeInfo> = {})
examples/custom-field/1-text-field/index.ts:14
↓ 6 callers
Function
tryRequest
(app: express.Express, size: number)
tests/api-tests/body-parser.test.ts:28
↓ 6 callers
Function
withHelpers
( wrappedFn: (args: { context: KeystoneContext listKey: string i
tests/api-tests/fields/crud.test.ts:118
↓ 6 callers
Function
yn
(x: boolean)
tests/api-tests/omit.test.ts:11
↓ 5 callers
Function
EditorAfterButIgnoringingPointsWithNoContent
( editor: Editor, at: Location, { distance = 1, }: { distance?: number } = {} )
packages/fields-document/src/DocumentEditor/utils.ts:108
↓ 5 callers
Function
accessReturnError
(things: { tag: string, returned: string }[])
packages/core/src/lib/core/graphql-errors.ts:49
↓ 5 callers
Function
addFixtures
(context: ContextFromRunner<typeof runner>)
tests/api-tests/queries/cache-hints.test.ts:80
↓ 5 callers
Function
adminUITests
( pathToTest: string, tests: (browser: playwright.BrowserType<playwright.Browser>) => void )
tests/admin-ui-tests/utils.ts:65
↓ 5 callers
Function
areArraysEqual
(a: readonly unknown[], b: readonly unknown[])
packages/fields-document/src/DocumentEditor/document-features-normalization.ts:5
↓ 5 callers
Function
assertInRuntimeContext
( context: KeystoneContext | { isAdminUIBuildProcess: true }, { parentType, fieldName }: GraphQLResolveInf
packages/core/src/lib/resolve-admin-meta.ts:331
↓ 5 callers
Function
constructTimestamp
({ dateValue, timeValue, }: { dateValue: string timeValue: string })
packages/core/src/fields/types/timestamp/views/utils.ts:30
↓ 5 callers
Function
createCompanyAndLocation
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/many-to-many-one-sided.test.ts:31
↓ 5 callers
Function
createCompanyAndLocation
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/one-to-many.test.ts:31
↓ 5 callers
Function
createCompanyAndLocation
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/many-to-many.test.ts:31
↓ 5 callers
Function
createComplexData
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/one-to-many-one-sided.test.ts:48
↓ 5 callers
Function
createComplexData
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud-self-ref/one-to-many-one-sided.test.ts:39
↓ 5 callers
Function
createDocumentEditor
( documentFeatures: DocumentFeatures, componentBlocks: Record<string, ComponentBlock>, relationships: Re
packages/fields-document/src/DocumentEditor/editor-shared.ts:134
↓ 5 callers
Function
createInitialData
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud/one-to-many.test.ts:13
↓ 5 callers
Function
createItem
(context: any)
tests/api-tests/fields/files.test.ts:100
↓ 5 callers
Function
createUserAndFriend
(context: ContextFromRunner<typeof runner>)
tests/api-tests/relationships/crud-self-ref/many-to-many-one-sided.test.ts:25
← previous
next →
101–200 of 2,041, ranked by callers