Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/codesandbox/sandpack
/ functions
Functions
600 in github.com/codesandbox/sandpack
⨍
Functions
600
◇
Types & classes
154
↓ 2 callers
Method
setLocationURLIntoIFrame
()
sandpack-client/src/clients/runtime/index.ts:294
↓ 2 callers
Method
setLocationURLIntoIFrame
()
sandpack-client/src/clients/node/index.ts:227
↓ 2 callers
Function
standardizeStitchesTheme
( theme: SandpackTheme )
sandpack-react/src/styles/index.ts:41
↓ 2 callers
Function
transform
(code, id)
sandpack-react/scripts/rollup-remove-css-transformer.js:10
↓ 2 callers
Function
updateColor
(key, color)
website/theme/pages/index.js:47
↓ 2 callers
Function
updateMode
(newMode)
website/theme/pages/index.js:73
↓ 2 callers
Method
updateSandbox
( sandboxSetup = this.sandboxSetup, isInitializationCompile?: boolean )
sandpack-client/src/clients/runtime/index.ts:316
↓ 2 callers
Function
useActiveAnchor
()
website/codesandbox-theme-docs/src/contexts/active-anchor.tsx:29
↓ 2 callers
Function
useCombinedRefs
( ...refs: Array<React.Ref<T>> )
sandpack-react/src/components/CodeEditor/utils.ts:230
↓ 2 callers
Function
useLayoutExampleContext
()
website/landing/components/Intro/Sections/LayoutContext.tsx:21
↓ 2 callers
Function
useSandpackId
()
sandpack-react/src/utils/useAsyncSandpackId.ts:6
↓ 2 callers
Function
useSandpackPreviewProgress
( props: | { timeout?: number; clientId?: string; } | undefined )
sandpack-react/src/hooks/useSandpackPreviewProgress.ts:27
↓ 2 callers
Function
useSandpackShellStdout
({ clientId, maxMessageCount = MAX_MESSAGE_COUNT, resetOnPreviewRestart = false, }: { clientId?: strin
sandpack-react/src/hooks/useSandpackShellStdout.ts:9
↓ 2 callers
Function
useSyntaxHighlight
({ langSupport, highlightTheme, code = "", }: { langSupport: LanguageSupport; highlightTheme: Highli
sandpack-react/src/components/CodeEditor/useSyntaxHighlight.ts:5
↓ 2 callers
Function
withMargin
(label: string)
sandpack-react/src/components/Tests/Summary.tsx:48
↓ 1 callers
Method
_init
(files: FilesMap)
sandpack-client/src/clients/node/index.ts:78
↓ 1 callers
Function
ansiToJSON
* Converts ANSI strings into JSON output. * @name ansiToJSON * @function * @param {String} input The input string. * @param {boolean} use_classes
sandpack-react/src/utils/ansi-to-react.ts:19
↓ 1 callers
Function
arrayToString
( output: Array<any>, references: Array<Message>, level: number )
sandpack-react/src/components/Console/utils/fromConsoleToString.ts:76
↓ 1 callers
Function
breakpoint
()
website/landing/components/Intro/Examples.tsx:62
↓ 1 callers
Function
combineTemplateFilesToSetup
({ files, template, customSetup, }: { files?: SandpackFiles; template?: SandpackPredefinedTemplate;
sandpack-react/src/utils/sandpackUtils.ts:167
↓ 1 callers
Method
compile
(files: FilesMap)
sandpack-client/src/clients/static/index.ts:191
↓ 1 callers
Method
createBundlerURL
()
sandpack-client/src/clients/runtime/index.ts:161
↓ 1 callers
Function
createClass
* Create a class string. * @name createClass * @function * @param {AnserJsonEntry} bundle * @return {String} class name(s)
sandpack-react/src/utils/ansi-to-react.ts:35
↓ 1 callers
Method
createPreviewURLFromId
(id: string)
sandpack-client/src/clients/node/index.ts:180
↓ 1 callers
Method
createShellProcessFromTask
* It creates a new shell and run the starting task
sandpack-client/src/clients/node/index.ts:127
↓ 1 callers
Function
createStyle
* Create the style attribute. * @name createStyle * @function * @param {AnserJsonEntry} bundle * @return {Object} returns the style object
sandpack-react/src/utils/ansi-to-react.ts:63
↓ 1 callers
Method
dispatchDoneMessage
* Send all messages and events to tell to the * consumer that the bundler is ready without any error
sandpack-client/src/clients/node/index.ts:237
↓ 1 callers
Function
doSearch
(search: string)
website/codesandbox-theme-docs/src/components/flexsearch.tsx:159
↓ 1 callers
Function
extendMeta
( meta: string | Record<string, any> = {}, fallback: Record<string, any> )
website/codesandbox-theme-docs/src/utils/normalize-pages.ts:8
↓ 1 callers
Function
findFirstRoute
(items: DocsItem[])
website/codesandbox-theme-docs/src/utils/normalize-pages.ts:73
↓ 1 callers
Function
findSummary
(children: ReactNode)
website/codesandbox-theme-docs/src/mdx-components.tsx:136
↓ 1 callers
Function
finishSearch
()
website/codesandbox-theme-docs/src/components/search.tsx:128
↓ 1 callers
Function
fixBackspace
(txt: string)
sandpack-react/src/utils/ansi-to-react.ts:186
↓ 1 callers
Function
formatDiffMessage
(error: TestError, path: string)
sandpack-react/src/components/Tests/FormattedError.tsx:44
↓ 1 callers
Function
formatErrorMessage
( filePath: string, message: string, location: string, errorInCode: string )
sandpack-client/src/utils.ts:184
↓ 1 callers
Function
formatSymbols
(message: Message)
sandpack-react/src/components/Console/utils/fromConsoleToString.ts:38
↓ 1 callers
Function
generateShortId
(input: string)
sandpack-react/src/utils/useAsyncSandpackId.ts:54
↓ 1 callers
Function
getAllSuiteResults
(specs: Spec[])
sandpack-react/src/components/Tests/utils.ts:45
↓ 1 callers
Function
getAllTestResults
(specs: Spec[])
sandpack-react/src/components/Tests/utils.ts:16
↓ 1 callers
Function
getComponents
({ isRawLayout, components, }: { isRawLayout?: boolean; components?: DocsThemeConfig["components"]; })
website/codesandbox-theme-docs/src/mdx-components.tsx:313
↓ 1 callers
Method
getDecoration
(view: EditorView)
sandpack-react/src/components/CodeEditor/highlightDecorators.ts:22
↓ 1 callers
Function
getDocumentHeight
()
sandpack-client/src/clients/node/inject-scripts/resize.ts:6
↓ 1 callers
Function
getDuration
(specs: Spec[])
sandpack-react/src/components/Tests/utils.ts:64
↓ 1 callers
Function
getEditorTheme
()
sandpack-react/src/components/CodeEditor/utils.ts:21
↓ 1 callers
Function
getErrorInOriginalCode
(errorFrame: ErrorStackFrame)
sandpack-client/src/utils.ts:146
↓ 1 callers
Function
getErrorLocation
(errorFrame: ErrorStackFrame)
sandpack-client/src/utils.ts:140
↓ 1 callers
Function
getExtension
(filepath: string)
sandpack-client/src/clients/runtime/utils.ts:184
↓ 1 callers
Function
getFailingTests
(block: Describe | Spec)
sandpack-react/src/components/Tests/utils.ts:13
↓ 1 callers
Function
getFileParameters
( files: SandpackBundlerFiles, environment?: SandboxEnvironment )
sandpack-react/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.tsx:18
↓ 1 callers
Function
getGitEditUrl
(filePath?: string)
website/codesandbox-theme-docs/src/utils/get-git-edit-url.ts:5
↓ 1 callers
Function
getHeadingText
(heading: Heading)
website/codesandbox-theme-docs/src/utils/get-heading-text.ts:3
↓ 1 callers
Function
getIcon
()
sandpack-react/src/components/FileExplorer/File.tsx:53
↓ 1 callers
Function
getParameters
(parameters: Record<string, any>)
sandpack-react/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.tsx:10
↓ 1 callers
Function
getRelevantStackFrame
( frames?: ErrorStackFrame[] )
sandpack-client/src/utils.ts:130
↓ 1 callers
Function
getSpecTestResults
(spec: Spec)
sandpack-react/src/components/Tests/utils.ts:29
↓ 1 callers
Function
getStableServiceWorkerId
()
sandpack-react/src/contexts/utils/useClient.ts:160
↓ 1 callers
Function
getStringFromReactChildren
(children: ReactNode)
website/codesandbox-theme-docs/src/mdx-components.tsx:241
↓ 1 callers
Function
getTemplate
( pkg: PackageJSON | null, /* eslint-disable @typescript-eslint/no-explicit-any */ modules: any )
sandpack-client/src/clients/runtime/utils.ts:8
↓ 1 callers
Function
getTheme
()
website/codesandbox-theme-docs/src/mdx-components.tsx:263
↓ 1 callers
Function
getTheme
()
website/docs/src/components/Themes.jsx:17
↓ 1 callers
Function
getTheme
()
website/docs/src/components/Playground.jsx:35
↓ 1 callers
Function
getTheme
()
website/docs/src/components/CodeBlock.tsx:43
↓ 1 callers
Function
getTranspiledCode
(sandpack: SandpackState)
sandpack-react/src/hooks/useTranspiledCode.ts:5
↓ 1 callers
Function
getTriggerText
(currentPath: string)
sandpack-react/src/components/FileTabs/index.tsx:99
↓ 1 callers
Function
getType
( message: SandpackMessageConsoleMethods )
sandpack-react/src/components/Console/utils/getType.ts:3
↓ 1 callers
Method
globalListen
(listener: ListenerFunction)
sandpack-client/src/clients/runtime/iframe-protocol.ts:78
↓ 1 callers
Method
globalListeners
()
sandpack-client/src/clients/node/index.ts:251
↓ 1 callers
Function
handleCodeUpdate
( newCode: string, shouldUpdatePreview = true )
sandpack-react/src/components/CodeEditor/index.tsx:91
↓ 1 callers
Method
handleWorkerRequest
( request: IPreviewRequestMessage, port: MessagePort )
sandpack-client/src/clients/runtime/index.ts:229
↓ 1 callers
Function
highlightDecorators
(positions: Decorators)
sandpack-react/src/components/CodeEditor/highlightDecorators.ts:9
↓ 1 callers
Function
highlightInlineError
()
sandpack-react/src/components/CodeEditor/highlightInlineError.ts:8
↓ 1 callers
Method
initializeElement
()
sandpack-client/src/clients/runtime/index.ts:501
↓ 1 callers
Method
injectExternalResources
( content: FileContent, externalResources: ClientOptions["externalResources"] = [] )
sandpack-client/src/clients/static/index.ts:129
↓ 1 callers
Method
injectProtocolScript
(content: FileContent)
sandpack-client/src/clients/static/index.ts:117
↓ 1 callers
Method
injectScriptIntoHead
( content: FileContent, opts: { script: string; // eslint-disable-next-line @typescript-es
sandpack-client/src/clients/static/index.ts:155
↓ 1 callers
Function
injectScriptToIframe
( iframe: HTMLIFrameElement, channelId: string )
sandpack-client/src/clients/node/inject-scripts/index.ts:22
↓ 1 callers
Function
insertHtmlAfterRegex
( regex: RegExp, content: string, insertable: string )
sandpack-client/src/clients/static/utils.ts:3
↓ 1 callers
Function
isString
(char: string)
sandpack-client/src/clients/node/taskManager.ts:21
↓ 1 callers
Function
isTabItem
(item: unknown)
website/codesandbox-theme-docs/src/components/tabs.tsx:11
↓ 1 callers
Function
isWhitespace
(char: string)
sandpack-client/src/clients/node/taskManager.ts:9
↓ 1 callers
Function
joinClassNames
(...args: any[])
sandpack-react/src/utils/classNames.tsx:39
↓ 1 callers
Function
loadIndexesImpl
( basePath: string, locale: string )
website/codesandbox-theme-docs/src/components/flexsearch.tsx:63
↓ 1 callers
Function
loadPreviewIframe
( iframe: HTMLIFrameElement, url: string )
sandpack-client/src/clients/node/iframe.utils.ts:5
↓ 1 callers
Function
loadSandpackClient
( iframeSelector: string | HTMLIFrameElement, sandboxSetup: SandboxSetup, options: ClientOptions = {} )
sandpack-client/src/clients/index.ts:8
↓ 1 callers
Method
manageIframes
* Nodebox needs to handle two types of iframes at the same time: * * 1. Runtime iframe: where the emulator process runs, which is responsible
sandpack-client/src/clients/node/index.ts:195
↓ 1 callers
Function
mapBundlerErrors
(originalMessage: string)
sandpack-react/src/components/common/ErrorOverlay.tsx:18
↓ 1 callers
Function
mapProgressMessage
( originalMessage: WorkerStatusUpdate & { command?: string }, firstTotalPending: number )
sandpack-react/src/hooks/useSandpackPreviewProgress.ts:6
↓ 1 callers
Function
normalizePages
({ list, locale, defaultLocale, route, docsRoot = "", underCurrentDocsRoot = false, pageThemeCon
website/codesandbox-theme-docs/src/utils/normalize-pages.ts:85
↓ 1 callers
Function
objectToString
( output: Record<string, Message>, references: Array<Message>, level: number )
sandpack-react/src/components/Console/utils/fromConsoleToString.ts:92
↓ 1 callers
Function
onKeyDown
({ e, index, }: { e: React.KeyboardEvent<HTMLElement>; index: number; })
sandpack-react/src/components/FileTabs/index.tsx:127
↓ 1 callers
Function
onResize
()
website/landing/components/Hero/HeroDesktop/HeroDesktop.tsx:90
↓ 1 callers
Function
onResize
()
website/landing/components/Showcase/Showcase.tsx:72
↓ 1 callers
Function
onResize
()
website/landing/components/AdvancedUsage/AdvancedUsage.tsx:40
↓ 1 callers
Function
onResize
()
website/landing/components/Features/Features.tsx:61
↓ 1 callers
Function
onResize
()
website/landing/components/Intro/Examples.tsx:41
↓ 1 callers
Function
onResize
()
website/landing/components/Intro/Sections/common.tsx:186
↓ 1 callers
Function
parseArgument
()
sandpack-client/src/clients/node/taskManager.ts:81
↓ 1 callers
Function
parseCommand
()
sandpack-client/src/clients/node/taskManager.ts:61
↓ 1 callers
Function
parseEnvVars
()
sandpack-client/src/clients/node/taskManager.ts:111
↓ 1 callers
Function
parseOperator
()
sandpack-client/src/clients/node/taskManager.ts:71
← previous
next →
101–200 of 600, ranked by callers