MCPcopy Index your code

hub / github.com/codesandbox/sandpack / functions

Functions600 in github.com/codesandbox/sandpack

↓ 57 callersFunctiongetSandpackStateFromProps
( props: SandpackProviderProps )
sandpack-react/src/utils/sandpackUtils.ts:34
↓ 40 callersFunctionuseSandpack
()
sandpack-react/src/hooks/useSandpack.ts:22
↓ 32 callersFunctionuseClassNames
()
sandpack-react/src/utils/classNames.tsx:24
↓ 26 callersFunctioncreateContext
()
sandpack-react/src/contexts/sandpackContext.test.tsx:14
↓ 25 callersFunctionrenderComponent
( ComponentOrNode: FC<T> | ReactNode, props?: T )
website/codesandbox-theme-docs/src/utils/render.tsx:5
↓ 20 callersMethoddispatch
(message: SandpackNodeMessage)
sandpack-client/src/clients/node/index.ts:427
↓ 20 callersMethodlisten
(_listener: ListenerFunction)
sandpack-client/src/clients/base.ts:64
↓ 18 callersFunctiongetAmountOfListener
( /* eslint-disable @typescript-eslint/no-explicit-any */ instance: any, name = "client-id", ignoreGlo
sandpack-react/src/contexts/sandpackContext.test.tsx:27
↓ 18 callersFunctiongetAmountOfListener
( instance: UseClientOperations, name = "client-id", ignoreGlobalListener = false )
sandpack-react/src/contexts/utils/useClient.test.ts:12
↓ 18 callersFunctionuseConfig
()
website/codesandbox-theme-docs/src/contexts/config.tsx:27
↓ 16 callersFunctionnormalizePath
(path: R)
sandpack-client/src/utils.ts:195
↓ 15 callersFunctionuseBreakpoint
( breakpoint: keyof typeof media | string )
website/landing/components/common/useBreakpoint.ts:5
↓ 14 callersFunctionuseClient
( { options, customSetup, teamId, sandboxId }, filesState )
sandpack-react/src/contexts/utils/useClient.ts:73
↓ 12 callersFunctionmakePrimaryColor
(l)
website/codesandbox-theme-docs/tailwind.config.js:4
↓ 11 callersFunctiontokenize
(input: string)
sandpack-client/src/clients/node/taskManager.ts:57
↓ 10 callersFunctionclassNameToken
(name: string)
sandpack-react/src/components/CodeEditor/utils.ts:84
↓ 10 callersMethoddispatch
* Bundler communication
sandpack-client/src/clients/base.ts:60
↓ 9 callersFunctionset
(path: string[], value: unknown)
sandpack-react/src/components/Tests/utils.ts:82
↓ 9 callersFunctionuseFiles
(props)
sandpack-react/src/contexts/utils/useFiles.ts:54
↓ 8 callersFunctionaddPackageJSONIfNeeded
( files: SandpackBundlerFiles, dependencies?: Dependencies, devDependencies?: Dependencies, entry?: st
sandpack-client/src/utils.ts:40
↓ 8 callersFunctionnullthrows
(value?: T | null, err = "Value is nullish")
sandpack-client/src/utils.ts:14
↓ 8 callersFunctionresolveFile
( path: string, files: SandpackFiles )
sandpack-react/src/utils/sandpackUtils.ts:129
↓ 7 callersFunctioncalculateNearestUniquePath
( currentPath: string, otherPaths: string[] )
sandpack-react/src/utils/stringUtils.ts:6
↓ 7 callersFunctioncreateError
(message: string)
sandpack-client/src/utils.ts:11
↓ 7 callersFunctionfindStartScriptPackageJson
( packageJson: string )
sandpack-client/src/clients/node/client.utils.ts:50
↓ 7 callersMethodupdate
(update: ViewUpdate)
sandpack-react/src/components/CodeEditor/highlightDecorators.ts:18
↓ 7 callersFunctionuseActiveCode
()
sandpack-react/src/hooks/useActiveCode.ts:9
↓ 6 callersFunctionconvertedFilesToBundlerFiles
( files?: SandpackFiles )
sandpack-react/src/utils/sandpackUtils.ts:250
↓ 6 callersFunctionfromPropsToModules
({ autoHiddenFiles, visibleFiles, files, prefixedPath, }: { prefixedPath: string; files: SandpackB
sandpack-react/src/components/FileExplorer/utils.ts:3
↓ 6 callersFunctiongenerateRandomId
()
sandpack-react/src/utils/stringUtils.ts:114
↓ 6 callersFunctionshallowEqual
(a: any[], b: any[])
sandpack-react/src/utils/array.ts:3
↓ 6 callersFunctionstandardizeTheme
( inputTheme: SandpackThemeProp = "light" )
sandpack-react/src/styles/index.ts:77
↓ 6 callersFunctionupdateFile
( pathOrFiles: string | SandpackFiles, code?: string, shouldUpdatePreview = true )
sandpack-react/src/contexts/utils/useFiles.ts:68
↓ 6 callersFunctionvalidateHtml
(content: FileContent)
sandpack-client/src/clients/static/utils.ts:33
↓ 5 callersFunctioncreateHeaderLink
( Tag: `h${2 | 3 | 4 | 5 | 6}`, context: { index: number } )
website/codesandbox-theme-docs/src/mdx-components.tsx:85
↓ 5 callersMethoddispatch
(message: SandpackRuntimeMessage)
sandpack-client/src/clients/runtime/index.ts:396
↓ 5 callersFunctionflatMap
(as: A[], f: (a: A) => B[])
sandpack-react/src/components/Tests/utils.ts:78
↓ 5 callersFunctionuseAppState
(props, files)
sandpack-react/src/contexts/utils/useAppState.ts:17
↓ 5 callersFunctionuseMenu
()
website/codesandbox-theme-docs/src/contexts/menu.ts:14
↓ 5 callersFunctionuseSandpackExample
()
website/landing/components/Intro/SandpackExample.tsx:42
↓ 4 callersMethoddispatch
* Bundler communication
sandpack-client/src/clients/static/index.ts:225
↓ 4 callersFunctionescapeHtml
(unsafe: string)
sandpack-react/src/components/Tests/FormattedError.tsx:35
↓ 4 callersFunctionfiles
(full: boolean)
sandpack-react/src/components/Console/Console.stories.tsx:14
↓ 4 callersFunctionfromConsoleToString
( message: Message, references: Array<Message>, level = 0 )
sandpack-react/src/components/Console/utils/fromConsoleToString.ts:127
↓ 4 callersFunctiongetFSRoute
(asPath: string, locale?: string | undefined)
website/codesandbox-theme-docs/src/utils/get-fs-route.ts:3
↓ 4 callersFunctiongetFileName
(filePath: string)
sandpack-react/src/utils/stringUtils.ts:1
↓ 4 callersFunctionparseFromSandpackToJson
(code: string, key: string)
website/landing/components/Intro/Sections/Custom.tsx:173
↓ 4 callersFunctionsplitTail
(as: A[])
sandpack-react/src/components/Tests/utils.ts:71
↓ 4 callersFunctionuseSandpackTheme
()
sandpack-react/src/hooks/useSandpackTheme.ts:9
↓ 4 callersFunctionwriteBuffer
(content: string | Uint8Array)
sandpack-client/src/clients/node/client.utils.ts:18
↓ 3 callersMethodchannelListen
(listener: ListenerFunction)
sandpack-client/src/clients/runtime/iframe-protocol.ts:95
↓ 3 callersMethodcleanup
()
sandpack-client/src/clients/runtime/iframe-protocol.ts:35
↓ 3 callersMethoddestroy
()
sandpack-client/src/clients/base.ts:53
↓ 3 callersFunctiondispatchMessage
(url: string)
sandpack-client/src/clients/node/inject-scripts/historyListener.ts:14
↓ 3 callersFunctiongenerateBasedOnSimpleColors
(color, base)
website/theme/lib/generateTheme.js:4
↓ 3 callersFunctiongetCodeMirrorPosition
( doc: Text, { line, column }: { line: number; column?: number } )
sandpack-react/src/components/CodeEditor/utils.ts:14
↓ 3 callersMethodgetFiles
()
sandpack-client/src/clients/runtime/index.ts:486
↓ 3 callersFunctiongetGitIssueUrl
({ repository = "", title, labels, }: { repository?: string; title: string; labels?: string; })
website/codesandbox-theme-docs/src/utils/get-git-issue-url.ts:3
↓ 3 callersFunctiongetItem
()
website/codesandbox-theme-docs/src/utils/normalize-pages.ts:242
↓ 3 callersMethodgetTypeId
()
sandpack-client/src/clients/runtime/file-resolver-protocol.ts:51
↓ 3 callersMethodinjectContentIntoHead
( content: FileContent, contentToInsert: string )
sandpack-client/src/clients/static/index.ts:102
↓ 3 callersFunctionlistener
(event)
website/theme/hooks/useClickOutside.js:6
↓ 3 callersFunctionreadBuffer
(content: string | Uint8Array)
sandpack-client/src/clients/node/client.utils.ts:26
↓ 3 callersMethodupdateSandbox
( _sandboxSetup = this.sandboxSetup, _isInitializationCompile?: boolean )
sandpack-client/src/clients/base.ts:46
↓ 3 callersFunctionuseSandpackClient
( clientPropsOverride?: ClientPropsOverride )
sandpack-react/src/hooks/useSandpackClient.ts:32
↓ 3 callersFunctionuseSandpackNavigation
( clientId?: string )
sandpack-react/src/hooks/useSandpackNavigation.ts:6
↓ 3 callersFunctionuseSandpackShell
( clientId?: string )
sandpack-react/src/hooks/useSandpackShell.ts:6
↓ 2 callersFunctionaddElement
(to: number, className: string)
sandpack-react/src/components/CodeEditor/useSyntaxHighlight.ts:19
↓ 2 callersMethodcompile
* It initializes the emulator and provide it with files, template and script to run
sandpack-client/src/clients/node/index.ts:91
↓ 2 callersFunctioncreatePackageJSON
( dependencies: Dependencies = {}, devDependencies: Dependencies = {}, entry = "/index.js" )
sandpack-client/src/utils.ts:23
↓ 2 callersFunctionensureLength
(str: string, length: number)
sandpack-react/src/utils/useAsyncSandpackId.ts:46
↓ 2 callersFunctionextractErrorDetails
(msg: SandpackErrorMessage)
sandpack-client/src/utils.ts:101
↓ 2 callersFunctionfromBundlerFilesToFS
( files: SandpackBundlerFiles )
sandpack-client/src/clients/node/client.utils.ts:34
↓ 2 callersFunctiongenerateRandomId
()
sandpack-client/src/clients/node/client.utils.ts:11
↓ 2 callersFunctiongetClient
()
sandpack-react/src/hooks/useSandpackClient.ts:54
↓ 2 callersFunctiongetCodeMirrorLanguage
( extension: string, additionalLanguages: CustomLanguage[] )
sandpack-react/src/components/CodeEditor/utils.ts:210
↓ 2 callersFunctiongetLanguageFromFile
( filePath: string | undefined, fileType: string | undefined, additionalLanguages: CustomLanguage[] )
sandpack-react/src/components/CodeEditor/utils.ts:167
↓ 2 callersFunctiongetMessageFromError
(error: Error | string)
sandpack-client/src/clients/node/client.utils.ts:110
↓ 2 callersFunctiongetRelativeCoordinates
( event: any, referenceElement: any )
website/landing/components/Intro/Sections/common.tsx:94
↓ 2 callersFunctiongetSyntaxHighlight
(theme: SandpackTheme)
sandpack-react/src/components/CodeEditor/utils.ts:111
↓ 2 callersFunctiongetTests
(block: Describe | Spec)
sandpack-react/src/components/Tests/utils.ts:8
↓ 2 callersFunctiongetTheme
()
website/docs/src/components/Templates.jsx:17
↓ 2 callersFunctiongutterLineOffset
()
sandpack-react/src/components/CodeEditor/CodeMirror.tsx:437
↓ 2 callersFunctionisAlpha
(char: string)
sandpack-client/src/clients/node/taskManager.ts:5
↓ 2 callersFunctionisArgument
(char: string)
sandpack-client/src/clients/node/taskManager.ts:17
↓ 2 callersFunctionisCommand
(char: string)
sandpack-client/src/clients/node/taskManager.ts:1
↓ 2 callersFunctionisDarkColor
(color: string)
sandpack-react/src/utils/stringUtils.ts:81
↓ 2 callersFunctionisEmpty
(block: Spec | Describe)
sandpack-react/src/components/Tests/utils.ts:67
↓ 2 callersFunctionisEnvVar
(char: string)
sandpack-client/src/clients/node/taskManager.ts:25
↓ 2 callersFunctionisOperator
(char: string)
sandpack-client/src/clients/node/taskManager.ts:13
↓ 2 callersMethodlisten
(listener: ListenerFunction)
sandpack-client/src/clients/runtime/index.ts:414
↓ 2 callersMethodlistener
(listener: ListenerFunction)
sandpack-client/src/clients/event-emitter.ts:26
↓ 2 callersFunctionloadIndexes
(basePath: string, locale: string)
website/codesandbox-theme-docs/src/components/flexsearch.tsx:53
↓ 2 callersFunctiononClick
(event)
website/theme/components/menu/index.js:12
↓ 2 callersFunctiononResize
()
website/landing/components/Banner/Banner.tsx:40
↓ 2 callersFunctionopenSpec
(file: string)
sandpack-react/src/components/Tests/SandpackTests.tsx:372
↓ 2 callersFunctionreadBuffer
(content: string | Uint8Array)
sandpack-client/src/clients/static/utils.ts:25
↓ 2 callersMethodrender
()
examples/nextjs/pages/_document.tsx:6
↓ 2 callersFunctionsendResizeEvent
()
sandpack-client/src/clients/node/inject-scripts/resize.ts:15
↓ 2 callersMethodserviceWorkerHandshake
()
sandpack-client/src/clients/runtime/index.ts:192
next →1–100 of 600, ranked by callers