MCPcopy Index your code

hub / github.com/codesandbox/sandpack / functions

Functions600 in github.com/codesandbox/sandpack

↓ 2 callersMethodsetLocationURLIntoIFrame
()
sandpack-client/src/clients/runtime/index.ts:294
↓ 2 callersMethodsetLocationURLIntoIFrame
()
sandpack-client/src/clients/node/index.ts:227
↓ 2 callersFunctionstandardizeStitchesTheme
( theme: SandpackTheme )
sandpack-react/src/styles/index.ts:41
↓ 2 callersFunctiontransform
(code, id)
sandpack-react/scripts/rollup-remove-css-transformer.js:10
↓ 2 callersFunctionupdateColor
(key, color)
website/theme/pages/index.js:47
↓ 2 callersFunctionupdateMode
(newMode)
website/theme/pages/index.js:73
↓ 2 callersMethodupdateSandbox
( sandboxSetup = this.sandboxSetup, isInitializationCompile?: boolean )
sandpack-client/src/clients/runtime/index.ts:316
↓ 2 callersFunctionuseActiveAnchor
()
website/codesandbox-theme-docs/src/contexts/active-anchor.tsx:29
↓ 2 callersFunctionuseCombinedRefs
( ...refs: Array<React.Ref<T>> )
sandpack-react/src/components/CodeEditor/utils.ts:230
↓ 2 callersFunctionuseLayoutExampleContext
()
website/landing/components/Intro/Sections/LayoutContext.tsx:21
↓ 2 callersFunctionuseSandpackId
()
sandpack-react/src/utils/useAsyncSandpackId.ts:6
↓ 2 callersFunctionuseSandpackPreviewProgress
( props: | { timeout?: number; clientId?: string; } | undefined )
sandpack-react/src/hooks/useSandpackPreviewProgress.ts:27
↓ 2 callersFunctionuseSandpackShellStdout
({ clientId, maxMessageCount = MAX_MESSAGE_COUNT, resetOnPreviewRestart = false, }: { clientId?: strin
sandpack-react/src/hooks/useSandpackShellStdout.ts:9
↓ 2 callersFunctionuseSyntaxHighlight
({ langSupport, highlightTheme, code = "", }: { langSupport: LanguageSupport; highlightTheme: Highli
sandpack-react/src/components/CodeEditor/useSyntaxHighlight.ts:5
↓ 2 callersFunctionwithMargin
(label: string)
sandpack-react/src/components/Tests/Summary.tsx:48
↓ 1 callersMethod_init
(files: FilesMap)
sandpack-client/src/clients/node/index.ts:78
↓ 1 callersFunctionansiToJSON
* 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 callersFunctionarrayToString
( output: Array<any>, references: Array<Message>, level: number )
sandpack-react/src/components/Console/utils/fromConsoleToString.ts:76
↓ 1 callersFunctionbreakpoint
()
website/landing/components/Intro/Examples.tsx:62
↓ 1 callersFunctioncombineTemplateFilesToSetup
({ files, template, customSetup, }: { files?: SandpackFiles; template?: SandpackPredefinedTemplate;
sandpack-react/src/utils/sandpackUtils.ts:167
↓ 1 callersMethodcompile
(files: FilesMap)
sandpack-client/src/clients/static/index.ts:191
↓ 1 callersMethodcreateBundlerURL
()
sandpack-client/src/clients/runtime/index.ts:161
↓ 1 callersFunctioncreateClass
* 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 callersMethodcreatePreviewURLFromId
(id: string)
sandpack-client/src/clients/node/index.ts:180
↓ 1 callersMethodcreateShellProcessFromTask
* It creates a new shell and run the starting task
sandpack-client/src/clients/node/index.ts:127
↓ 1 callersFunctioncreateStyle
* 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 callersMethoddispatchDoneMessage
* 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 callersFunctiondoSearch
(search: string)
website/codesandbox-theme-docs/src/components/flexsearch.tsx:159
↓ 1 callersFunctionextendMeta
( meta: string | Record<string, any> = {}, fallback: Record<string, any> )
website/codesandbox-theme-docs/src/utils/normalize-pages.ts:8
↓ 1 callersFunctionfindFirstRoute
(items: DocsItem[])
website/codesandbox-theme-docs/src/utils/normalize-pages.ts:73
↓ 1 callersFunctionfindSummary
(children: ReactNode)
website/codesandbox-theme-docs/src/mdx-components.tsx:136
↓ 1 callersFunctionfinishSearch
()
website/codesandbox-theme-docs/src/components/search.tsx:128
↓ 1 callersFunctionfixBackspace
(txt: string)
sandpack-react/src/utils/ansi-to-react.ts:186
↓ 1 callersFunctionformatDiffMessage
(error: TestError, path: string)
sandpack-react/src/components/Tests/FormattedError.tsx:44
↓ 1 callersFunctionformatErrorMessage
( filePath: string, message: string, location: string, errorInCode: string )
sandpack-client/src/utils.ts:184
↓ 1 callersFunctionformatSymbols
(message: Message)
sandpack-react/src/components/Console/utils/fromConsoleToString.ts:38
↓ 1 callersFunctiongenerateShortId
(input: string)
sandpack-react/src/utils/useAsyncSandpackId.ts:54
↓ 1 callersFunctiongetAllSuiteResults
(specs: Spec[])
sandpack-react/src/components/Tests/utils.ts:45
↓ 1 callersFunctiongetAllTestResults
(specs: Spec[])
sandpack-react/src/components/Tests/utils.ts:16
↓ 1 callersFunctiongetComponents
({ isRawLayout, components, }: { isRawLayout?: boolean; components?: DocsThemeConfig["components"]; })
website/codesandbox-theme-docs/src/mdx-components.tsx:313
↓ 1 callersMethodgetDecoration
(view: EditorView)
sandpack-react/src/components/CodeEditor/highlightDecorators.ts:22
↓ 1 callersFunctiongetDocumentHeight
()
sandpack-client/src/clients/node/inject-scripts/resize.ts:6
↓ 1 callersFunctiongetDuration
(specs: Spec[])
sandpack-react/src/components/Tests/utils.ts:64
↓ 1 callersFunctiongetEditorTheme
()
sandpack-react/src/components/CodeEditor/utils.ts:21
↓ 1 callersFunctiongetErrorInOriginalCode
(errorFrame: ErrorStackFrame)
sandpack-client/src/utils.ts:146
↓ 1 callersFunctiongetErrorLocation
(errorFrame: ErrorStackFrame)
sandpack-client/src/utils.ts:140
↓ 1 callersFunctiongetExtension
(filepath: string)
sandpack-client/src/clients/runtime/utils.ts:184
↓ 1 callersFunctiongetFailingTests
(block: Describe | Spec)
sandpack-react/src/components/Tests/utils.ts:13
↓ 1 callersFunctiongetFileParameters
( files: SandpackBundlerFiles, environment?: SandboxEnvironment )
sandpack-react/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.tsx:18
↓ 1 callersFunctiongetGitEditUrl
(filePath?: string)
website/codesandbox-theme-docs/src/utils/get-git-edit-url.ts:5
↓ 1 callersFunctiongetHeadingText
(heading: Heading)
website/codesandbox-theme-docs/src/utils/get-heading-text.ts:3
↓ 1 callersFunctiongetIcon
()
sandpack-react/src/components/FileExplorer/File.tsx:53
↓ 1 callersFunctiongetParameters
(parameters: Record<string, any>)
sandpack-react/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.tsx:10
↓ 1 callersFunctiongetRelevantStackFrame
( frames?: ErrorStackFrame[] )
sandpack-client/src/utils.ts:130
↓ 1 callersFunctiongetSpecTestResults
(spec: Spec)
sandpack-react/src/components/Tests/utils.ts:29
↓ 1 callersFunctiongetStableServiceWorkerId
()
sandpack-react/src/contexts/utils/useClient.ts:160
↓ 1 callersFunctiongetStringFromReactChildren
(children: ReactNode)
website/codesandbox-theme-docs/src/mdx-components.tsx:241
↓ 1 callersFunctiongetTemplate
( pkg: PackageJSON | null, /* eslint-disable @typescript-eslint/no-explicit-any */ modules: any )
sandpack-client/src/clients/runtime/utils.ts:8
↓ 1 callersFunctiongetTheme
()
website/codesandbox-theme-docs/src/mdx-components.tsx:263
↓ 1 callersFunctiongetTheme
()
website/docs/src/components/Themes.jsx:17
↓ 1 callersFunctiongetTheme
()
website/docs/src/components/Playground.jsx:35
↓ 1 callersFunctiongetTheme
()
website/docs/src/components/CodeBlock.tsx:43
↓ 1 callersFunctiongetTranspiledCode
(sandpack: SandpackState)
sandpack-react/src/hooks/useTranspiledCode.ts:5
↓ 1 callersFunctiongetTriggerText
(currentPath: string)
sandpack-react/src/components/FileTabs/index.tsx:99
↓ 1 callersFunctiongetType
( message: SandpackMessageConsoleMethods )
sandpack-react/src/components/Console/utils/getType.ts:3
↓ 1 callersMethodglobalListen
(listener: ListenerFunction)
sandpack-client/src/clients/runtime/iframe-protocol.ts:78
↓ 1 callersMethodglobalListeners
()
sandpack-client/src/clients/node/index.ts:251
↓ 1 callersFunctionhandleCodeUpdate
( newCode: string, shouldUpdatePreview = true )
sandpack-react/src/components/CodeEditor/index.tsx:91
↓ 1 callersMethodhandleWorkerRequest
( request: IPreviewRequestMessage, port: MessagePort )
sandpack-client/src/clients/runtime/index.ts:229
↓ 1 callersFunctionhighlightDecorators
(positions: Decorators)
sandpack-react/src/components/CodeEditor/highlightDecorators.ts:9
↓ 1 callersFunctionhighlightInlineError
()
sandpack-react/src/components/CodeEditor/highlightInlineError.ts:8
↓ 1 callersMethodinitializeElement
()
sandpack-client/src/clients/runtime/index.ts:501
↓ 1 callersMethodinjectExternalResources
( content: FileContent, externalResources: ClientOptions["externalResources"] = [] )
sandpack-client/src/clients/static/index.ts:129
↓ 1 callersMethodinjectProtocolScript
(content: FileContent)
sandpack-client/src/clients/static/index.ts:117
↓ 1 callersMethodinjectScriptIntoHead
( content: FileContent, opts: { script: string; // eslint-disable-next-line @typescript-es
sandpack-client/src/clients/static/index.ts:155
↓ 1 callersFunctioninjectScriptToIframe
( iframe: HTMLIFrameElement, channelId: string )
sandpack-client/src/clients/node/inject-scripts/index.ts:22
↓ 1 callersFunctioninsertHtmlAfterRegex
( regex: RegExp, content: string, insertable: string )
sandpack-client/src/clients/static/utils.ts:3
↓ 1 callersFunctionisString
(char: string)
sandpack-client/src/clients/node/taskManager.ts:21
↓ 1 callersFunctionisTabItem
(item: unknown)
website/codesandbox-theme-docs/src/components/tabs.tsx:11
↓ 1 callersFunctionisWhitespace
(char: string)
sandpack-client/src/clients/node/taskManager.ts:9
↓ 1 callersFunctionjoinClassNames
(...args: any[])
sandpack-react/src/utils/classNames.tsx:39
↓ 1 callersFunctionloadIndexesImpl
( basePath: string, locale: string )
website/codesandbox-theme-docs/src/components/flexsearch.tsx:63
↓ 1 callersFunctionloadPreviewIframe
( iframe: HTMLIFrameElement, url: string )
sandpack-client/src/clients/node/iframe.utils.ts:5
↓ 1 callersFunctionloadSandpackClient
( iframeSelector: string | HTMLIFrameElement, sandboxSetup: SandboxSetup, options: ClientOptions = {} )
sandpack-client/src/clients/index.ts:8
↓ 1 callersMethodmanageIframes
* 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 callersFunctionmapBundlerErrors
(originalMessage: string)
sandpack-react/src/components/common/ErrorOverlay.tsx:18
↓ 1 callersFunctionmapProgressMessage
( originalMessage: WorkerStatusUpdate & { command?: string }, firstTotalPending: number )
sandpack-react/src/hooks/useSandpackPreviewProgress.ts:6
↓ 1 callersFunctionnormalizePages
({ list, locale, defaultLocale, route, docsRoot = "", underCurrentDocsRoot = false, pageThemeCon
website/codesandbox-theme-docs/src/utils/normalize-pages.ts:85
↓ 1 callersFunctionobjectToString
( output: Record<string, Message>, references: Array<Message>, level: number )
sandpack-react/src/components/Console/utils/fromConsoleToString.ts:92
↓ 1 callersFunctiononKeyDown
({ e, index, }: { e: React.KeyboardEvent<HTMLElement>; index: number; })
sandpack-react/src/components/FileTabs/index.tsx:127
↓ 1 callersFunctiononResize
()
website/landing/components/Hero/HeroDesktop/HeroDesktop.tsx:90
↓ 1 callersFunctiononResize
()
website/landing/components/Showcase/Showcase.tsx:72
↓ 1 callersFunctiononResize
()
website/landing/components/AdvancedUsage/AdvancedUsage.tsx:40
↓ 1 callersFunctiononResize
()
website/landing/components/Features/Features.tsx:61
↓ 1 callersFunctiononResize
()
website/landing/components/Intro/Examples.tsx:41
↓ 1 callersFunctiononResize
()
website/landing/components/Intro/Sections/common.tsx:186
↓ 1 callersFunctionparseArgument
()
sandpack-client/src/clients/node/taskManager.ts:81
↓ 1 callersFunctionparseCommand
()
sandpack-client/src/clients/node/taskManager.ts:61
↓ 1 callersFunctionparseEnvVars
()
sandpack-client/src/clients/node/taskManager.ts:111
↓ 1 callersFunctionparseOperator
()
sandpack-client/src/clients/node/taskManager.ts:71
← previousnext →101–200 of 600, ranked by callers