MCPcopy Create free account

hub / github.com/styleguidist/react-styleguidist / functions

Functions497 in github.com/styleguidist/react-styleguidist

↓ 148 callersFunctiontest
(val)
test/deabsdeepSerializer.js:79
↓ 89 callersFunctionrender
(methods: string[])
src/client/rsg-components/Methods/Methods.spec.tsx:26
↓ 45 callersFunctiongetConfig
* Read, parse and validate config file or passed config. * * @param {object|string} [config] All config options or config file name or nothing. * @
src/scripts/config.ts:36
↓ 41 callersMethodrender
()
src/client/rsg-components/Styled/Styled.tsx:39
↓ 33 callersFunctiongetText
(node: { innerHTML: string })
src/client/rsg-components/Props/Props.spec.tsx:10
↓ 33 callersFunctionsanitizeConfig
( config: T, schema: Record<keyof T, ConfigSchemaOptions<T>>, rootDir: string )
src/scripts/utils/sanitizeConfig.ts:58
↓ 30 callersMethodget
(key: string)
src/typings/dependencies/react-docgen.ts:11
↓ 23 callersFunctionrenderJs
(propTypes: string[], defaultProps: string[] = [])
src/client/rsg-components/Props/Props.spec.tsx:35
↓ 22 callersFunctiongetUrl
( { name, slug, example, anchor, isolated, nochrome, absolute, hashPath, useSlugAsIdParam,
src/client/utils/getUrl.ts:79
↓ 19 callersFunctionmakeWebpackConfig
* Return Styleguidist Webpack config. * * @param {string} [env=production] 'production' or 'development'. * @return {object}
src/scripts/index.esm.ts:63
↓ 18 callersFunctiongetImports
(code: string)
src/loaders/utils/getImports.ts:8
↓ 16 callersMethodrender
()
src/client/rsg-components/TableOfContents/TableOfContents.tsx:89
↓ 15 callersFunctionexpectSnapshotToMatch
(markdown: string)
src/client/rsg-components/Markdown/Markdown.spec.tsx:7
↓ 15 callersFunctiongetProps
(doc: DocumentationObject, filepath?: string)
src/loaders/utils/getProps.ts:58
↓ 14 callersFunctiongetComponentFiles
( components?: string | string[] | (() => string[]) | undefined, rootDir?: string, ignore?: string[] )
src/loaders/utils/getComponentFiles.ts:40
↓ 12 callersMethoderror
(msg: string)
src/typings/dependencies/glogg.ts:6
↓ 11 callersFunctiongetRouteData
( sections: Rsg.Section[], hash: string, pagePerSection = false )
src/client/utils/getRouteData.ts:22
↓ 10 callersFunctioncompileCode
( code: string, compilerConfig: TransformOptions, onError?: (err: Error) => void )
src/client/utils/compileCode.ts:15
↓ 10 callersFunctiondeabs
(x: string[])
src/loaders/utils/__tests__/getComponentFiles.spec.ts:11
↓ 10 callersFunctiongetNameFromFilePath
(filePath: string)
src/loaders/utils/getNameFromFilePath.ts:12
↓ 10 callersFunctiontranspileImports
(code: string)
src/client/utils/transpileImports.ts:10
↓ 9 callersFunctiongenerate
(keys: string[], dep: string, base: string, fn: string)
src/client/utils/rewriteImports.ts:17
↓ 9 callersFunctiongetQueryOptions
(options = {})
src/loaders/__tests__/examples-loader.spec.ts:17
↓ 9 callersFunctionparseExample
( content: string, lang?: string | null, modifiers?: string, updateExample: (example: Omit<Rsg.CodeExample
src/loaders/utils/parseExample.ts:13
↓ 9 callersFunctionrequireIt
(filepath: string)
src/loaders/utils/requireIt.ts:10
↓ 8 callersFunctionchunkify
( markdown: string, updateExample?: (example: Omit<Rsg.CodeExample, 'type'>) => Omit<Rsg.CodeExample, 'type'
src/loaders/utils/chunkify.ts:22
↓ 8 callersFunctiongetPageTitle
( sections: Rsg.Section[], baseTitle: string, displayMode: string )
src/client/utils/getPageTitle.ts:16
↓ 8 callersFunctionhasInHash
(hash: string, search: string)
src/client/utils/handleHash.ts:31
↓ 8 callersFunctionmakeProp
( name: string, required = false, defaultValue: any = undefined, type: PropTypeDescriptor = { name: 'strin
src/loaders/utils/__tests__/sortProps.spec.ts:4
↓ 8 callersFunctionmergeWebpackConfig
( baseConfig: MetaConfig, userConfig: MetaConfig, env = 'production' )
src/scripts/utils/mergeWebpackConfig.ts:48
↓ 8 callersMethodwarn
(msg: string)
src/typings/dependencies/glogg.ts:5
↓ 7 callersFunctioncreateServer
( config: Rsg.SanitizedStyleguidistConfig, env: 'development' | 'production' | 'none' )
src/scripts/create-server.ts:6
↓ 7 callersFunctiongetFilterRegExp
(query: string)
src/client/utils/getFilterRegExp.ts:7
↓ 7 callersFunctiongetInfoFromHash
( hash: string )
src/client/utils/getInfoFromHash.ts:16
↓ 7 callersFunctionscale
(value: number)
examples/styled-components/src/theme.ts:3
↓ 7 callersFunctionsplitExampleCode
(code: string)
src/client/utils/splitExampleCode.ts:18
↓ 7 callersFunctiontestComponent
(name: string)
src/scripts/__tests__/config.spec.ts:6
↓ 6 callersFunctiondeabsDeep
* Recursively replace absolute paths in object keys and values or in array values with a “~”. * * @param {object} obj * @param {object} [options]
test/deabsdeepSerializer.js:17
↓ 6 callersMethoddebug
(msg: string)
src/typings/dependencies/glogg.ts:3
↓ 6 callersFunctiongetClasses
(plugins: WebpackPlugin[] = [], name: string)
src/scripts/__tests__/make-webpack-config.spec.ts:22
↓ 6 callersMethodgetExampleFilename
(componentPath: string)
src/typings/RsgStyleguidistConfig.ts:41
↓ 6 callersFunctiongetHash
(hash: string, prependHash?: string)
src/client/utils/handleHash.ts:42
↓ 6 callersFunctiongetSections
( sections: Rsg.ConfigSection[], config: Rsg.SanitizedStyleguidistConfig, parentDepth?: number )
src/loaders/utils/getSections.ts:59
↓ 6 callersMethodon
(event: string | symbol, listener: (...args: any[]) => void)
src/typings/dependencies/glogg.ts:7
↓ 6 callersFunctionprocessComponents
( components: Rsg.Component[], { useRouterLinks, useHashId, hashPath }: HrefOptions )
src/client/utils/processComponents.ts:17
↓ 6 callersFunctionprocessSection
( section: Rsg.ConfigSection, config: Rsg.SanitizedStyleguidistConfig, parentDepth?: number )
src/loaders/utils/getSections.ts:75
↓ 6 callersMethodrender
()
src/client/rsg-components/Preview/Preview.tsx:133
↓ 6 callersFunctionrenderComponent
(content = 'tooltip', placement?: TooltipPlacement)
src/client/rsg-components/Tooltip/Tooltip.spec.tsx:5
↓ 6 callersFunctionsetupLogger
( methods?: Record<string, (message: string) => void>, verbose?: boolean, defaults?: Record<string, (messag
src/scripts/logger.ts:26
↓ 5 callersFunctionfilterComponentsByName
( components: Rsg.Component[], query: string )
src/client/utils/filterComponentsByName.ts:11
↓ 5 callersFunctionfindSection
( sections: Rsg.Section[], name: string )
src/client/utils/findSection.ts:11
↓ 5 callersFunctionfindUserWebpackConfig
(resolve?: (input: string) => string)
src/scripts/utils/findUserWebpackConfig.ts:20
↓ 5 callersFunctiongetComponent
(module: Module, name?: string)
src/client/utils/getComponent.ts:16
↓ 5 callersFunctiongetExamples
( file: string, displayName: string, examplesFile?: string | false, defaultExample?: string | false )
src/loaders/utils/getExamples.ts:12
↓ 5 callersFunctiongetType
(prop: PropDescriptor)
src/client/rsg-components/Props/util.ts:21
↓ 5 callersFunctionhighlightCode
(code: string, lang?: string)
src/loaders/utils/highlightCode.ts:33
↓ 5 callersFunctionrenderStyleguide
( styleguide: StyleguideObject, codeRevision: number, loc: { hash: string; pathname: string; search: string
src/client/utils/renderStyleguide.tsx:25
↓ 5 callersFunctionunquote
(string?: string)
src/client/rsg-components/Props/util.ts:6
↓ 5 callersFunctionuseStyleGuideContext
()
src/client/rsg-components/Context/Context.ts:27
↓ 4 callersFunctionfilterSectionsByName
( sections: Rsg.TOCItem[], query: string )
src/client/utils/filterSectionsByName.ts:12
↓ 4 callersFunctionformat
(message: string)
src/scripts/logger.ts:9
↓ 4 callersFunctiongetHashAsArray
(hash: string, prependHash?: string)
src/client/utils/handleHash.ts:53
↓ 4 callersFunctiongetMarkdown
(props: TagProps)
src/client/rsg-components/JsDoc/JsDoc.tsx:21
↓ 4 callersFunctiongetParameterByName
(hash: string, name: string)
src/client/utils/handleHash.ts:66
↓ 4 callersMethodonce
(actionName: string, action: (msg: string) => void)
src/typings/dependencies/glogg.ts:8
↓ 4 callersFunctionprintErrorWithLink
* @param {string} message * @param {string} linkTitle * @param {string} linkUrl
src/bin/styleguidist.js:223
↓ 4 callersFunctionprocessSections
( sections: Rsg.Section[], { useRouterLinks, useHashId = false, hashPath = [] }: HrefOptions )
src/client/utils/processSections.ts:11
↓ 4 callersFunctionrenderShape
(props: Record<string, PropDescriptor>)
src/client/rsg-components/Props/renderExtra.tsx:43
↓ 4 callersFunctionsortProps
* Sorts an array of properties by their 'required' property first and 'name' * property second. * * @param {array} props * @return {array} Sorted
src/loaders/utils/sortProps.ts:11
↓ 3 callersFunctionabsolutize
(filepath: string)
src/loaders/examples-loader.ts:16
↓ 3 callersFunctionfilterComponentsInSectionsByExactName
( sections: Rsg.Section[], name: string, recursive: boolean )
src/client/utils/filterComponentsInSectionsByExactName.ts:12
↓ 3 callersFunctiongetAst
(code: string)
src/client/utils/getAst.ts:15
↓ 3 callersFunctiongetAst
( code: string, plugins: ((BaseParser: typeof Parser) => typeof Parser)[] = [] )
src/loaders/utils/getAst.ts:14
↓ 3 callersFunctiongetComponentFilesFromSections
( sections: Rsg.ConfigSection[], rootDir?: string, ignore?: string[] )
src/loaders/utils/getComponentFilesFromSections.ts:12
↓ 3 callersFunctiongetDefaultWebpackConfig
()
src/scripts/__tests__/index.esm.spec.ts:9
↓ 3 callersFunctiongetDoctrineTags
(documentation: Annotation)
src/loaders/utils/getProps.ts:30
↓ 3 callersFunctionhighlightCodeInMarkdown
(markdown: string)
src/loaders/utils/highlightCodeInMarkdown.ts:19
↓ 3 callersMethodinfo
(msg: string)
src/typings/dependencies/glogg.ts:4
↓ 3 callersFunctionpropsToArray
(props: any)
src/client/rsg-components/Props/Props.spec.tsx:8
↓ 3 callersMethodrender
()
src/client/rsg-components/Wrapper/Wrapper.ts:18
↓ 3 callersFunctionrenderType
(type: ExtendedPropTypeDescriptor)
src/client/rsg-components/Props/renderType.tsx:12
↓ 3 callersFunctionshowSpaces
(string?: string)
src/client/rsg-components/Props/util.ts:44
↓ 3 callersFunctionverboseLog
* @param {string} header * @param {object} object
src/bin/styleguidist.js:337
↓ 2 callersFunctionabsolutize
(files: string[])
src/loaders/utils/__tests__/getComponentFiles.spec.ts:24
↓ 2 callersFunctionalias
(key: string)
src/client/utils/rewriteImports.ts:7
↓ 2 callersMethodapply
()
src/scripts/utils/__tests__/mergeWebpackConfig.spec.ts:7
↓ 2 callersFunctioncompile
(code: string, config: TransformOptions)
src/client/utils/compileCode.ts:4
↓ 2 callersFunctiondeabs
(s)
test/deabsdeepSerializer.js:23
↓ 2 callersFunctiondeabs
(x: string[])
src/loaders/utils/__tests__/getComponentFilesFromSections.spec.ts:26
↓ 2 callersFunctionevalInContext
( header: string, require: (module: string) => any, code: string )
src/loaders/utils/client/evalInContext.ts:13
↓ 2 callersMethodexecuteCode
()
src/client/rsg-components/Preview/Preview.tsx:77
↓ 2 callersFunctionexpandDefaultComponent
(source: string, componentName: string)
src/loaders/utils/expandDefaultComponent.ts:11
↓ 2 callersFunctionfilterComponentExamples
( component: Rsg.Component, index: number )
src/client/utils/filterComponentExamples.ts:12
↓ 2 callersFunctionfilterComponentsByExactName
( components: Rsg.Component[], name: string )
src/client/utils/filterComponentsByExactName.ts:10
↓ 2 callersFunctionfilterComponentsWithExample
( sections: Rsg.LoaderSection[] )
src/loaders/utils/filterComponentsWithExample.ts:9
↓ 2 callersFunctionfilterSectionExamples
(section: Rsg.Section, index = -1)
src/client/utils/filterSectionExamples.ts:11
↓ 2 callersFunctionfindFileCaseInsensitive
(filepath: string)
src/scripts/utils/findFileCaseInsensitive.ts:13
↓ 2 callersFunctiongetAllContentPages
( sections: Rsg.LoaderSection[] )
src/loaders/utils/getAllContentPages.ts:9
↓ 2 callersMethodgetComponentPathLine
(componentPath: string)
src/typings/RsgStyleguidistConfig.ts:40
↓ 2 callersFunctiongetComponentPatternsFromSections
(sections: Rsg.ConfigSection[])
src/loaders/utils/getComponentPatternsFromSections.ts:10
next →1–100 of 497, ranked by callers