@immediately-run/sandpack-react 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -0
- package/dist/.ir-build-stamp.json +6 -0
- package/dist/index.d.ts +1771 -0
- package/dist/index.js +5544 -0
- package/dist/index.mjs +5440 -0
- package/dist/src/components/CodeEditor/CodeMirror.d.ts +50 -0
- package/dist/src/components/CodeEditor/CodeMirror.d.ts.map +1 -0
- package/dist/src/components/CodeEditor/highlightDecorators.d.ts +4 -0
- package/dist/src/components/CodeEditor/highlightDecorators.d.ts.map +1 -0
- package/dist/src/components/CodeEditor/highlightInlineError.d.ts +3 -0
- package/dist/src/components/CodeEditor/highlightInlineError.d.ts.map +1 -0
- package/dist/src/components/CodeEditor/index.d.ts +50 -0
- package/dist/src/components/CodeEditor/index.d.ts.map +1 -0
- package/dist/src/components/CodeEditor/languages-mocks.d.ts +9 -0
- package/dist/src/components/CodeEditor/languages-mocks.d.ts.map +1 -0
- package/dist/src/components/CodeEditor/styles.css.d.ts +6 -0
- package/dist/src/components/CodeEditor/styles.css.d.ts.map +1 -0
- package/dist/src/components/CodeEditor/useSyntaxHighlight.d.ts +7 -0
- package/dist/src/components/CodeEditor/useSyntaxHighlight.d.ts.map +1 -0
- package/dist/src/components/CodeEditor/utils.d.ts +16 -0
- package/dist/src/components/CodeEditor/utils.d.ts.map +1 -0
- package/dist/src/components/CodeViewer/index.d.ts +28 -0
- package/dist/src/components/CodeViewer/index.d.ts.map +1 -0
- package/dist/src/components/Console/ConsoleList.css.d.ts +29 -0
- package/dist/src/components/Console/ConsoleList.css.d.ts.map +1 -0
- package/dist/src/components/Console/ConsoleList.d.ts +6 -0
- package/dist/src/components/Console/ConsoleList.d.ts.map +1 -0
- package/dist/src/components/Console/Header.css.d.ts +5 -0
- package/dist/src/components/Console/Header.css.d.ts.map +1 -0
- package/dist/src/components/Console/Header.d.ts +7 -0
- package/dist/src/components/Console/Header.d.ts.map +1 -0
- package/dist/src/components/Console/SandpackConsole.css.d.ts +4 -0
- package/dist/src/components/Console/SandpackConsole.css.d.ts.map +1 -0
- package/dist/src/components/Console/SandpackConsole.d.ts +27 -0
- package/dist/src/components/Console/SandpackConsole.d.ts.map +1 -0
- package/dist/src/components/Console/StdoutList.css.d.ts +2 -0
- package/dist/src/components/Console/StdoutList.css.d.ts.map +1 -0
- package/dist/src/components/Console/StdoutList.d.ts +8 -0
- package/dist/src/components/Console/StdoutList.d.ts.map +1 -0
- package/dist/src/components/Console/index.d.ts +3 -0
- package/dist/src/components/Console/index.d.ts.map +1 -0
- package/dist/src/components/Console/useSandpackConsole.d.ts +16 -0
- package/dist/src/components/Console/useSandpackConsole.d.ts.map +1 -0
- package/dist/src/components/Console/utils/constraints.d.ts +14 -0
- package/dist/src/components/Console/utils/constraints.d.ts.map +1 -0
- package/dist/src/components/Console/utils/fromConsoleToString.d.ts +13 -0
- package/dist/src/components/Console/utils/fromConsoleToString.d.ts.map +1 -0
- package/dist/src/components/Console/utils/getType.d.ts +8 -0
- package/dist/src/components/Console/utils/getType.d.ts.map +1 -0
- package/dist/src/components/Console/utils/transformers.d.ts +5 -0
- package/dist/src/components/Console/utils/transformers.d.ts.map +1 -0
- package/dist/src/components/FileExplorer/File.css.d.ts +2 -0
- package/dist/src/components/FileExplorer/File.css.d.ts.map +1 -0
- package/dist/src/components/FileExplorer/File.d.ts +11 -0
- package/dist/src/components/FileExplorer/File.d.ts.map +1 -0
- package/dist/src/components/FileExplorer/FileExplorer.css.d.ts +2 -0
- package/dist/src/components/FileExplorer/FileExplorer.css.d.ts.map +1 -0
- package/dist/src/components/FileExplorer/ModuleList.d.ts +25 -0
- package/dist/src/components/FileExplorer/ModuleList.d.ts.map +1 -0
- package/dist/src/components/FileExplorer/index.d.ts +13 -0
- package/dist/src/components/FileExplorer/index.d.ts.map +1 -0
- package/dist/src/components/FileExplorer/utils.d.ts +17 -0
- package/dist/src/components/FileExplorer/utils.d.ts.map +1 -0
- package/dist/src/components/FileTabs/FileTabs.css.d.ts +6 -0
- package/dist/src/components/FileTabs/FileTabs.css.d.ts.map +1 -0
- package/dist/src/components/FileTabs/index.d.ts +19 -0
- package/dist/src/components/FileTabs/index.d.ts.map +1 -0
- package/dist/src/components/Navigator/Navigator.css.d.ts +4 -0
- package/dist/src/components/Navigator/Navigator.css.d.ts.map +1 -0
- package/dist/src/components/Navigator/index.d.ts +8 -0
- package/dist/src/components/Navigator/index.d.ts.map +1 -0
- package/dist/src/components/Navigator/utils.d.ts +2 -0
- package/dist/src/components/Navigator/utils.d.ts.map +1 -0
- package/dist/src/components/Preview/Preview.css.d.ts +4 -0
- package/dist/src/components/Preview/Preview.css.d.ts.map +1 -0
- package/dist/src/components/Preview/index.d.ts +31 -0
- package/dist/src/components/Preview/index.d.ts.map +1 -0
- package/dist/src/components/ReactDevTools/ReactDevTools.css.d.ts +2 -0
- package/dist/src/components/ReactDevTools/ReactDevTools.css.d.ts.map +1 -0
- package/dist/src/components/ReactDevTools/index.d.ts +8 -0
- package/dist/src/components/ReactDevTools/index.d.ts.map +1 -0
- package/dist/src/components/Tests/Describes.css.d.ts +3 -0
- package/dist/src/components/Tests/Describes.css.d.ts.map +1 -0
- package/dist/src/components/Tests/Describes.d.ts +11 -0
- package/dist/src/components/Tests/Describes.d.ts.map +1 -0
- package/dist/src/components/Tests/FormattedError.css.d.ts +2 -0
- package/dist/src/components/Tests/FormattedError.css.d.ts.map +1 -0
- package/dist/src/components/Tests/FormattedError.d.ts +9 -0
- package/dist/src/components/Tests/FormattedError.d.ts.map +1 -0
- package/dist/src/components/Tests/Header.css.d.ts +5 -0
- package/dist/src/components/Tests/Header.css.d.ts.map +1 -0
- package/dist/src/components/Tests/Header.d.ts +18 -0
- package/dist/src/components/Tests/Header.d.ts.map +1 -0
- package/dist/src/components/Tests/RunButton.d.ts +5 -0
- package/dist/src/components/Tests/RunButton.d.ts.map +1 -0
- package/dist/src/components/Tests/SandpackTests.css.d.ts +4 -0
- package/dist/src/components/Tests/SandpackTests.css.d.ts.map +1 -0
- package/dist/src/components/Tests/SandpackTests.d.ts +18 -0
- package/dist/src/components/Tests/SandpackTests.d.ts.map +1 -0
- package/dist/src/components/Tests/Specs.css.d.ts +9 -0
- package/dist/src/components/Tests/Specs.css.d.ts.map +1 -0
- package/dist/src/components/Tests/Specs.d.ts +17 -0
- package/dist/src/components/Tests/Specs.d.ts.map +1 -0
- package/dist/src/components/Tests/Summary.css.d.ts +4 -0
- package/dist/src/components/Tests/Summary.css.d.ts.map +1 -0
- package/dist/src/components/Tests/Summary.d.ts +20 -0
- package/dist/src/components/Tests/Summary.d.ts.map +1 -0
- package/dist/src/components/Tests/Tests.css.d.ts +6 -0
- package/dist/src/components/Tests/Tests.css.d.ts.map +1 -0
- package/dist/src/components/Tests/Tests.d.ts +17 -0
- package/dist/src/components/Tests/Tests.d.ts.map +1 -0
- package/dist/src/components/Tests/index.d.ts +2 -0
- package/dist/src/components/Tests/index.d.ts.map +1 -0
- package/dist/src/components/Tests/style.css.d.ts +8 -0
- package/dist/src/components/Tests/style.css.d.ts.map +1 -0
- package/dist/src/components/Tests/style.d.ts +3 -0
- package/dist/src/components/Tests/style.d.ts.map +1 -0
- package/dist/src/components/Tests/utils.d.ts +14 -0
- package/dist/src/components/Tests/utils.d.ts.map +1 -0
- package/dist/src/components/TranspiledCode/TranspiledCode.css.d.ts +2 -0
- package/dist/src/components/TranspiledCode/TranspiledCode.css.d.ts.map +1 -0
- package/dist/src/components/TranspiledCode/index.d.ts +4 -0
- package/dist/src/components/TranspiledCode/index.d.ts.map +1 -0
- package/dist/src/components/common/DependenciesProgress.css.d.ts +2 -0
- package/dist/src/components/common/DependenciesProgress.css.d.ts.map +1 -0
- package/dist/src/components/common/DependenciesProgress.d.ts +4 -0
- package/dist/src/components/common/DependenciesProgress.d.ts.map +1 -0
- package/dist/src/components/common/ErrorOverlay.d.ts +6 -0
- package/dist/src/components/common/ErrorOverlay.d.ts.map +1 -0
- package/dist/src/components/common/Layout.css.d.ts +2 -0
- package/dist/src/components/common/Layout.css.d.ts.map +1 -0
- package/dist/src/components/common/Layout.d.ts +8 -0
- package/dist/src/components/common/Layout.d.ts.map +1 -0
- package/dist/src/components/common/Loading.css.d.ts +4 -0
- package/dist/src/components/common/Loading.css.d.ts.map +1 -0
- package/dist/src/components/common/Loading.d.ts +5 -0
- package/dist/src/components/common/Loading.d.ts.map +1 -0
- package/dist/src/components/common/LoadingOverlay.css.d.ts +5 -0
- package/dist/src/components/common/LoadingOverlay.css.d.ts.map +1 -0
- package/dist/src/components/common/LoadingOverlay.d.ts +12 -0
- package/dist/src/components/common/LoadingOverlay.d.ts.map +1 -0
- package/dist/src/components/common/OpenInCodeSandboxButton/OpenInCodeSandboxButton.d.ts +3 -0
- package/dist/src/components/common/OpenInCodeSandboxButton/OpenInCodeSandboxButton.d.ts.map +1 -0
- package/dist/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.d.ts +7 -0
- package/dist/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.d.ts.map +1 -0
- package/dist/src/components/common/OpenInCodeSandboxButton/index.d.ts +3 -0
- package/dist/src/components/common/OpenInCodeSandboxButton/index.d.ts.map +1 -0
- package/dist/src/components/common/RoundedButton.d.ts +3 -0
- package/dist/src/components/common/RoundedButton.d.ts.map +1 -0
- package/dist/src/components/common/RunButton.css.d.ts +2 -0
- package/dist/src/components/common/RunButton.css.d.ts.map +1 -0
- package/dist/src/components/common/RunButton.d.ts +3 -0
- package/dist/src/components/common/RunButton.d.ts.map +1 -0
- package/dist/src/components/common/Stack.css.d.ts +2 -0
- package/dist/src/components/common/Stack.css.d.ts.map +1 -0
- package/dist/src/components/common/Stack.d.ts +7 -0
- package/dist/src/components/common/Stack.d.ts.map +1 -0
- package/dist/src/components/common/index.d.ts +9 -0
- package/dist/src/components/common/index.d.ts.map +1 -0
- package/dist/src/components/icons/index.d.ts +16 -0
- package/dist/src/components/icons/index.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +10 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/contexts/sandpackContext.d.ts +11 -0
- package/dist/src/contexts/sandpackContext.d.ts.map +1 -0
- package/dist/src/contexts/utils/testHelpers.d.ts +9 -0
- package/dist/src/contexts/utils/testHelpers.d.ts.map +1 -0
- package/dist/src/contexts/utils/useAppState.d.ts +15 -0
- package/dist/src/contexts/utils/useAppState.d.ts.map +1 -0
- package/dist/src/contexts/utils/useClient.d.ts +32 -0
- package/dist/src/contexts/utils/useClient.d.ts.map +1 -0
- package/dist/src/contexts/utils/useFiles.d.ts +41 -0
- package/dist/src/contexts/utils/useFiles.d.ts.map +1 -0
- package/dist/src/hooks/index.d.ts +12 -0
- package/dist/src/hooks/index.d.ts.map +1 -0
- package/dist/src/hooks/useActiveCode.d.ts +21 -0
- package/dist/src/hooks/useActiveCode.d.ts.map +1 -0
- package/dist/src/hooks/useErrorMessage.d.ts +5 -0
- package/dist/src/hooks/useErrorMessage.d.ts.map +1 -0
- package/dist/src/hooks/useLoadingOverlayState.d.ts +7 -0
- package/dist/src/hooks/useLoadingOverlayState.d.ts.map +1 -0
- package/dist/src/hooks/useSandpack.d.ts +14 -0
- package/dist/src/hooks/useSandpack.d.ts.map +1 -0
- package/dist/src/hooks/useSandpackClient.d.ts +23 -0
- package/dist/src/hooks/useSandpackClient.d.ts.map +1 -0
- package/dist/src/hooks/useSandpackNavigation.d.ts +9 -0
- package/dist/src/hooks/useSandpackNavigation.d.ts.map +1 -0
- package/dist/src/hooks/useSandpackPreviewProgress.d.ts +5 -0
- package/dist/src/hooks/useSandpackPreviewProgress.d.ts.map +1 -0
- package/dist/src/hooks/useSandpackShell.d.ts +8 -0
- package/dist/src/hooks/useSandpackShell.d.ts.map +1 -0
- package/dist/src/hooks/useSandpackShellStdout.d.ts +12 -0
- package/dist/src/hooks/useSandpackShellStdout.d.ts.map +1 -0
- package/dist/src/hooks/useSandpackTheme.d.ts +10 -0
- package/dist/src/hooks/useSandpackTheme.d.ts.map +1 -0
- package/dist/src/hooks/useTranspiledCode.d.ts +5 -0
- package/dist/src/hooks/useTranspiledCode.d.ts.map +1 -0
- package/dist/src/index.d.ts +15 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/presets/Sandpack.css.d.ts +20 -0
- package/dist/src/presets/Sandpack.css.d.ts.map +1 -0
- package/dist/src/presets/Sandpack.d.ts +3 -0
- package/dist/src/presets/Sandpack.d.ts.map +1 -0
- package/dist/src/presets/index.d.ts +2 -0
- package/dist/src/presets/index.d.ts.map +1 -0
- package/dist/src/setup.jest.d.ts +2 -0
- package/dist/src/setup.jest.d.ts.map +1 -0
- package/dist/src/styles/__generated__/cssText.d.ts +7 -0
- package/dist/src/styles/__generated__/cssText.d.ts.map +1 -0
- package/dist/src/styles/constants.d.ts +10 -0
- package/dist/src/styles/constants.d.ts.map +1 -0
- package/dist/src/styles/getSandpackCssText.d.ts +16 -0
- package/dist/src/styles/getSandpackCssText.d.ts.map +1 -0
- package/dist/src/styles/index.d.ts +65 -0
- package/dist/src/styles/index.d.ts.map +1 -0
- package/dist/src/styles/shared.css.d.ts +22 -0
- package/dist/src/styles/shared.css.d.ts.map +1 -0
- package/dist/src/styles/themeContext.css.d.ts +17 -0
- package/dist/src/styles/themeContext.css.d.ts.map +1 -0
- package/dist/src/styles/themeContext.d.ts +21 -0
- package/dist/src/styles/themeContext.d.ts.map +1 -0
- package/dist/src/styles/vars.css.d.ts +98 -0
- package/dist/src/styles/vars.css.d.ts.map +1 -0
- package/dist/src/templates/common.d.ts +6 -0
- package/dist/src/templates/common.d.ts.map +1 -0
- package/dist/src/templates/index.d.ts +549 -0
- package/dist/src/templates/index.d.ts.map +1 -0
- package/dist/src/templates/node/astro.d.ts +22 -0
- package/dist/src/templates/node/astro.d.ts.map +1 -0
- package/dist/src/templates/node/nexjs.d.ts +22 -0
- package/dist/src/templates/node/nexjs.d.ts.map +1 -0
- package/dist/src/templates/node/node.d.ts +13 -0
- package/dist/src/templates/node/node.d.ts.map +1 -0
- package/dist/src/templates/node/vite-preact-ts.d.ts +34 -0
- package/dist/src/templates/node/vite-preact-ts.d.ts.map +1 -0
- package/dist/src/templates/node/vite-preact.d.ts +25 -0
- package/dist/src/templates/node/vite-preact.d.ts.map +1 -0
- package/dist/src/templates/node/vite-react-ts.d.ts +34 -0
- package/dist/src/templates/node/vite-react-ts.d.ts.map +1 -0
- package/dist/src/templates/node/vite-react.d.ts +25 -0
- package/dist/src/templates/node/vite-react.d.ts.map +1 -0
- package/dist/src/templates/node/vite-svelte-ts.d.ts +37 -0
- package/dist/src/templates/node/vite-svelte-ts.d.ts.map +1 -0
- package/dist/src/templates/node/vite-svelte.d.ts +25 -0
- package/dist/src/templates/node/vite-svelte.d.ts.map +1 -0
- package/dist/src/templates/node/vite-vue-ts.d.ts +34 -0
- package/dist/src/templates/node/vite-vue-ts.d.ts.map +1 -0
- package/dist/src/templates/node/vite-vue.d.ts +25 -0
- package/dist/src/templates/node/vite-vue.d.ts.map +1 -0
- package/dist/src/templates/node/vite.d.ts +19 -0
- package/dist/src/templates/node/vite.d.ts.map +1 -0
- package/dist/src/templates/runtime/angular.d.ts +31 -0
- package/dist/src/templates/runtime/angular.d.ts.map +1 -0
- package/dist/src/templates/runtime/react-typescript.d.ts +25 -0
- package/dist/src/templates/runtime/react-typescript.d.ts.map +1 -0
- package/dist/src/templates/runtime/react.d.ts +22 -0
- package/dist/src/templates/runtime/react.d.ts.map +1 -0
- package/dist/src/templates/runtime/solid.d.ts +22 -0
- package/dist/src/templates/runtime/solid.d.ts.map +1 -0
- package/dist/src/templates/runtime/svelte.d.ts +22 -0
- package/dist/src/templates/runtime/svelte.d.ts.map +1 -0
- package/dist/src/templates/runtime/tests-ts.d.ts +20 -0
- package/dist/src/templates/runtime/tests-ts.d.ts.map +1 -0
- package/dist/src/templates/runtime/vanilla-typescript.d.ts +22 -0
- package/dist/src/templates/runtime/vanilla-typescript.d.ts.map +1 -0
- package/dist/src/templates/runtime/vanilla.d.ts +19 -0
- package/dist/src/templates/runtime/vanilla.d.ts.map +1 -0
- package/dist/src/templates/runtime/vue-ts.d.ts +26 -0
- package/dist/src/templates/runtime/vue-ts.d.ts.map +1 -0
- package/dist/src/templates/runtime/vue.d.ts +22 -0
- package/dist/src/templates/runtime/vue.d.ts.map +1 -0
- package/dist/src/templates/static.d.ts +16 -0
- package/dist/src/templates/static.d.ts.map +1 -0
- package/dist/src/themes/index.d.ts +14 -0
- package/dist/src/themes/index.d.ts.map +1 -0
- package/dist/src/types.d.ts +477 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/utils/ansi-to-react.d.ts +13 -0
- package/dist/src/utils/ansi-to-react.d.ts.map +1 -0
- package/dist/src/utils/array.d.ts +2 -0
- package/dist/src/utils/array.d.ts.map +1 -0
- package/dist/src/utils/classNames.d.ts +6 -0
- package/dist/src/utils/classNames.d.ts.map +1 -0
- package/dist/src/utils/createSandpackFS.d.ts +35 -0
- package/dist/src/utils/createSandpackFS.d.ts.map +1 -0
- package/dist/src/utils/storyHelpers.d.ts +9 -0
- package/dist/src/utils/storyHelpers.d.ts.map +1 -0
- package/dist/src/utils/stringUtils.d.ts +10 -0
- package/dist/src/utils/stringUtils.d.ts.map +1 -0
- package/dist/src/utils/useAsyncSandpackId.d.ts +9 -0
- package/dist/src/utils/useAsyncSandpackId.d.ts.map +1 -0
- package/dist/styles.css +890 -0
- package/dist/unstyled/index.js +5942 -0
- package/dist/unstyled/index.mjs +5838 -0
- package/dist/unstyled/src/components/CodeEditor/CodeMirror.d.ts +50 -0
- package/dist/unstyled/src/components/CodeEditor/CodeMirror.d.ts.map +1 -0
- package/dist/unstyled/src/components/CodeEditor/highlightDecorators.d.ts +4 -0
- package/dist/unstyled/src/components/CodeEditor/highlightDecorators.d.ts.map +1 -0
- package/dist/unstyled/src/components/CodeEditor/highlightInlineError.d.ts +3 -0
- package/dist/unstyled/src/components/CodeEditor/highlightInlineError.d.ts.map +1 -0
- package/dist/unstyled/src/components/CodeEditor/index.d.ts +50 -0
- package/dist/unstyled/src/components/CodeEditor/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/CodeEditor/languages-mocks.d.ts +9 -0
- package/dist/unstyled/src/components/CodeEditor/languages-mocks.d.ts.map +1 -0
- package/dist/unstyled/src/components/CodeEditor/styles.css.d.ts +6 -0
- package/dist/unstyled/src/components/CodeEditor/styles.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/CodeEditor/useSyntaxHighlight.d.ts +7 -0
- package/dist/unstyled/src/components/CodeEditor/useSyntaxHighlight.d.ts.map +1 -0
- package/dist/unstyled/src/components/CodeEditor/utils.d.ts +16 -0
- package/dist/unstyled/src/components/CodeEditor/utils.d.ts.map +1 -0
- package/dist/unstyled/src/components/CodeViewer/index.d.ts +28 -0
- package/dist/unstyled/src/components/CodeViewer/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/ConsoleList.css.d.ts +29 -0
- package/dist/unstyled/src/components/Console/ConsoleList.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/ConsoleList.d.ts +6 -0
- package/dist/unstyled/src/components/Console/ConsoleList.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/Header.css.d.ts +5 -0
- package/dist/unstyled/src/components/Console/Header.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/Header.d.ts +7 -0
- package/dist/unstyled/src/components/Console/Header.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/SandpackConsole.css.d.ts +4 -0
- package/dist/unstyled/src/components/Console/SandpackConsole.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/SandpackConsole.d.ts +27 -0
- package/dist/unstyled/src/components/Console/SandpackConsole.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/StdoutList.css.d.ts +2 -0
- package/dist/unstyled/src/components/Console/StdoutList.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/StdoutList.d.ts +8 -0
- package/dist/unstyled/src/components/Console/StdoutList.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/index.d.ts +3 -0
- package/dist/unstyled/src/components/Console/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/useSandpackConsole.d.ts +16 -0
- package/dist/unstyled/src/components/Console/useSandpackConsole.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/utils/constraints.d.ts +14 -0
- package/dist/unstyled/src/components/Console/utils/constraints.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/utils/fromConsoleToString.d.ts +13 -0
- package/dist/unstyled/src/components/Console/utils/fromConsoleToString.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/utils/getType.d.ts +8 -0
- package/dist/unstyled/src/components/Console/utils/getType.d.ts.map +1 -0
- package/dist/unstyled/src/components/Console/utils/transformers.d.ts +5 -0
- package/dist/unstyled/src/components/Console/utils/transformers.d.ts.map +1 -0
- package/dist/unstyled/src/components/FileExplorer/File.css.d.ts +2 -0
- package/dist/unstyled/src/components/FileExplorer/File.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/FileExplorer/File.d.ts +11 -0
- package/dist/unstyled/src/components/FileExplorer/File.d.ts.map +1 -0
- package/dist/unstyled/src/components/FileExplorer/FileExplorer.css.d.ts +2 -0
- package/dist/unstyled/src/components/FileExplorer/FileExplorer.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/FileExplorer/ModuleList.d.ts +25 -0
- package/dist/unstyled/src/components/FileExplorer/ModuleList.d.ts.map +1 -0
- package/dist/unstyled/src/components/FileExplorer/index.d.ts +13 -0
- package/dist/unstyled/src/components/FileExplorer/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/FileExplorer/utils.d.ts +17 -0
- package/dist/unstyled/src/components/FileExplorer/utils.d.ts.map +1 -0
- package/dist/unstyled/src/components/FileTabs/FileTabs.css.d.ts +6 -0
- package/dist/unstyled/src/components/FileTabs/FileTabs.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/FileTabs/index.d.ts +19 -0
- package/dist/unstyled/src/components/FileTabs/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/Navigator/Navigator.css.d.ts +4 -0
- package/dist/unstyled/src/components/Navigator/Navigator.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Navigator/index.d.ts +8 -0
- package/dist/unstyled/src/components/Navigator/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/Navigator/utils.d.ts +2 -0
- package/dist/unstyled/src/components/Navigator/utils.d.ts.map +1 -0
- package/dist/unstyled/src/components/Preview/Preview.css.d.ts +4 -0
- package/dist/unstyled/src/components/Preview/Preview.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Preview/index.d.ts +31 -0
- package/dist/unstyled/src/components/Preview/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/ReactDevTools/ReactDevTools.css.d.ts +2 -0
- package/dist/unstyled/src/components/ReactDevTools/ReactDevTools.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/ReactDevTools/index.d.ts +8 -0
- package/dist/unstyled/src/components/ReactDevTools/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/Describes.css.d.ts +3 -0
- package/dist/unstyled/src/components/Tests/Describes.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/Describes.d.ts +11 -0
- package/dist/unstyled/src/components/Tests/Describes.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/FormattedError.css.d.ts +2 -0
- package/dist/unstyled/src/components/Tests/FormattedError.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/FormattedError.d.ts +9 -0
- package/dist/unstyled/src/components/Tests/FormattedError.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/Header.css.d.ts +5 -0
- package/dist/unstyled/src/components/Tests/Header.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/Header.d.ts +18 -0
- package/dist/unstyled/src/components/Tests/Header.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/RunButton.d.ts +5 -0
- package/dist/unstyled/src/components/Tests/RunButton.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/SandpackTests.css.d.ts +4 -0
- package/dist/unstyled/src/components/Tests/SandpackTests.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/SandpackTests.d.ts +18 -0
- package/dist/unstyled/src/components/Tests/SandpackTests.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/Specs.css.d.ts +9 -0
- package/dist/unstyled/src/components/Tests/Specs.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/Specs.d.ts +17 -0
- package/dist/unstyled/src/components/Tests/Specs.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/Summary.css.d.ts +4 -0
- package/dist/unstyled/src/components/Tests/Summary.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/Summary.d.ts +20 -0
- package/dist/unstyled/src/components/Tests/Summary.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/Tests.css.d.ts +6 -0
- package/dist/unstyled/src/components/Tests/Tests.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/Tests.d.ts +17 -0
- package/dist/unstyled/src/components/Tests/Tests.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/index.d.ts +2 -0
- package/dist/unstyled/src/components/Tests/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/style.css.d.ts +8 -0
- package/dist/unstyled/src/components/Tests/style.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/style.d.ts +3 -0
- package/dist/unstyled/src/components/Tests/style.d.ts.map +1 -0
- package/dist/unstyled/src/components/Tests/utils.d.ts +14 -0
- package/dist/unstyled/src/components/Tests/utils.d.ts.map +1 -0
- package/dist/unstyled/src/components/TranspiledCode/TranspiledCode.css.d.ts +2 -0
- package/dist/unstyled/src/components/TranspiledCode/TranspiledCode.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/TranspiledCode/index.d.ts +4 -0
- package/dist/unstyled/src/components/TranspiledCode/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/DependenciesProgress.css.d.ts +2 -0
- package/dist/unstyled/src/components/common/DependenciesProgress.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/DependenciesProgress.d.ts +4 -0
- package/dist/unstyled/src/components/common/DependenciesProgress.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/ErrorOverlay.d.ts +6 -0
- package/dist/unstyled/src/components/common/ErrorOverlay.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/Layout.css.d.ts +2 -0
- package/dist/unstyled/src/components/common/Layout.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/Layout.d.ts +8 -0
- package/dist/unstyled/src/components/common/Layout.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/Loading.css.d.ts +4 -0
- package/dist/unstyled/src/components/common/Loading.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/Loading.d.ts +5 -0
- package/dist/unstyled/src/components/common/Loading.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/LoadingOverlay.css.d.ts +5 -0
- package/dist/unstyled/src/components/common/LoadingOverlay.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/LoadingOverlay.d.ts +12 -0
- package/dist/unstyled/src/components/common/LoadingOverlay.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/OpenInCodeSandboxButton.d.ts +3 -0
- package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/OpenInCodeSandboxButton.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.d.ts +7 -0
- package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/index.d.ts +3 -0
- package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/RoundedButton.d.ts +3 -0
- package/dist/unstyled/src/components/common/RoundedButton.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/RunButton.css.d.ts +2 -0
- package/dist/unstyled/src/components/common/RunButton.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/RunButton.d.ts +3 -0
- package/dist/unstyled/src/components/common/RunButton.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/Stack.css.d.ts +2 -0
- package/dist/unstyled/src/components/common/Stack.css.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/Stack.d.ts +7 -0
- package/dist/unstyled/src/components/common/Stack.d.ts.map +1 -0
- package/dist/unstyled/src/components/common/index.d.ts +9 -0
- package/dist/unstyled/src/components/common/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/icons/index.d.ts +16 -0
- package/dist/unstyled/src/components/icons/index.d.ts.map +1 -0
- package/dist/unstyled/src/components/index.d.ts +10 -0
- package/dist/unstyled/src/components/index.d.ts.map +1 -0
- package/dist/unstyled/src/contexts/sandpackContext.d.ts +11 -0
- package/dist/unstyled/src/contexts/sandpackContext.d.ts.map +1 -0
- package/dist/unstyled/src/contexts/utils/testHelpers.d.ts +9 -0
- package/dist/unstyled/src/contexts/utils/testHelpers.d.ts.map +1 -0
- package/dist/unstyled/src/contexts/utils/useAppState.d.ts +15 -0
- package/dist/unstyled/src/contexts/utils/useAppState.d.ts.map +1 -0
- package/dist/unstyled/src/contexts/utils/useClient.d.ts +32 -0
- package/dist/unstyled/src/contexts/utils/useClient.d.ts.map +1 -0
- package/dist/unstyled/src/contexts/utils/useFiles.d.ts +41 -0
- package/dist/unstyled/src/contexts/utils/useFiles.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/index.d.ts +12 -0
- package/dist/unstyled/src/hooks/index.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useActiveCode.d.ts +21 -0
- package/dist/unstyled/src/hooks/useActiveCode.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useErrorMessage.d.ts +5 -0
- package/dist/unstyled/src/hooks/useErrorMessage.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useLoadingOverlayState.d.ts +7 -0
- package/dist/unstyled/src/hooks/useLoadingOverlayState.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useSandpack.d.ts +14 -0
- package/dist/unstyled/src/hooks/useSandpack.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useSandpackClient.d.ts +23 -0
- package/dist/unstyled/src/hooks/useSandpackClient.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useSandpackNavigation.d.ts +9 -0
- package/dist/unstyled/src/hooks/useSandpackNavigation.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useSandpackPreviewProgress.d.ts +5 -0
- package/dist/unstyled/src/hooks/useSandpackPreviewProgress.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useSandpackShell.d.ts +8 -0
- package/dist/unstyled/src/hooks/useSandpackShell.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useSandpackShellStdout.d.ts +12 -0
- package/dist/unstyled/src/hooks/useSandpackShellStdout.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useSandpackTheme.d.ts +10 -0
- package/dist/unstyled/src/hooks/useSandpackTheme.d.ts.map +1 -0
- package/dist/unstyled/src/hooks/useTranspiledCode.d.ts +5 -0
- package/dist/unstyled/src/hooks/useTranspiledCode.d.ts.map +1 -0
- package/dist/unstyled/src/index.d.ts +15 -0
- package/dist/unstyled/src/index.d.ts.map +1 -0
- package/dist/unstyled/src/presets/Sandpack.css.d.ts +20 -0
- package/dist/unstyled/src/presets/Sandpack.css.d.ts.map +1 -0
- package/dist/unstyled/src/presets/Sandpack.d.ts +3 -0
- package/dist/unstyled/src/presets/Sandpack.d.ts.map +1 -0
- package/dist/unstyled/src/presets/index.d.ts +2 -0
- package/dist/unstyled/src/presets/index.d.ts.map +1 -0
- package/dist/unstyled/src/setup.jest.d.ts +2 -0
- package/dist/unstyled/src/setup.jest.d.ts.map +1 -0
- package/dist/unstyled/src/styles/__generated__/cssText.d.ts +7 -0
- package/dist/unstyled/src/styles/__generated__/cssText.d.ts.map +1 -0
- package/dist/unstyled/src/styles/constants.d.ts +10 -0
- package/dist/unstyled/src/styles/constants.d.ts.map +1 -0
- package/dist/unstyled/src/styles/getSandpackCssText.d.ts +16 -0
- package/dist/unstyled/src/styles/getSandpackCssText.d.ts.map +1 -0
- package/dist/unstyled/src/styles/index.d.ts +65 -0
- package/dist/unstyled/src/styles/index.d.ts.map +1 -0
- package/dist/unstyled/src/styles/shared.css.d.ts +22 -0
- package/dist/unstyled/src/styles/shared.css.d.ts.map +1 -0
- package/dist/unstyled/src/styles/themeContext.css.d.ts +17 -0
- package/dist/unstyled/src/styles/themeContext.css.d.ts.map +1 -0
- package/dist/unstyled/src/styles/themeContext.d.ts +21 -0
- package/dist/unstyled/src/styles/themeContext.d.ts.map +1 -0
- package/dist/unstyled/src/styles/vars.css.d.ts +98 -0
- package/dist/unstyled/src/styles/vars.css.d.ts.map +1 -0
- package/dist/unstyled/src/templates/common.d.ts +6 -0
- package/dist/unstyled/src/templates/common.d.ts.map +1 -0
- package/dist/unstyled/src/templates/index.d.ts +549 -0
- package/dist/unstyled/src/templates/index.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/astro.d.ts +22 -0
- package/dist/unstyled/src/templates/node/astro.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/nexjs.d.ts +22 -0
- package/dist/unstyled/src/templates/node/nexjs.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/node.d.ts +13 -0
- package/dist/unstyled/src/templates/node/node.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/vite-preact-ts.d.ts +34 -0
- package/dist/unstyled/src/templates/node/vite-preact-ts.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/vite-preact.d.ts +25 -0
- package/dist/unstyled/src/templates/node/vite-preact.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/vite-react-ts.d.ts +34 -0
- package/dist/unstyled/src/templates/node/vite-react-ts.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/vite-react.d.ts +25 -0
- package/dist/unstyled/src/templates/node/vite-react.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/vite-svelte-ts.d.ts +37 -0
- package/dist/unstyled/src/templates/node/vite-svelte-ts.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/vite-svelte.d.ts +25 -0
- package/dist/unstyled/src/templates/node/vite-svelte.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/vite-vue-ts.d.ts +34 -0
- package/dist/unstyled/src/templates/node/vite-vue-ts.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/vite-vue.d.ts +25 -0
- package/dist/unstyled/src/templates/node/vite-vue.d.ts.map +1 -0
- package/dist/unstyled/src/templates/node/vite.d.ts +19 -0
- package/dist/unstyled/src/templates/node/vite.d.ts.map +1 -0
- package/dist/unstyled/src/templates/runtime/angular.d.ts +31 -0
- package/dist/unstyled/src/templates/runtime/angular.d.ts.map +1 -0
- package/dist/unstyled/src/templates/runtime/react-typescript.d.ts +25 -0
- package/dist/unstyled/src/templates/runtime/react-typescript.d.ts.map +1 -0
- package/dist/unstyled/src/templates/runtime/react.d.ts +22 -0
- package/dist/unstyled/src/templates/runtime/react.d.ts.map +1 -0
- package/dist/unstyled/src/templates/runtime/solid.d.ts +22 -0
- package/dist/unstyled/src/templates/runtime/solid.d.ts.map +1 -0
- package/dist/unstyled/src/templates/runtime/svelte.d.ts +22 -0
- package/dist/unstyled/src/templates/runtime/svelte.d.ts.map +1 -0
- package/dist/unstyled/src/templates/runtime/tests-ts.d.ts +20 -0
- package/dist/unstyled/src/templates/runtime/tests-ts.d.ts.map +1 -0
- package/dist/unstyled/src/templates/runtime/vanilla-typescript.d.ts +22 -0
- package/dist/unstyled/src/templates/runtime/vanilla-typescript.d.ts.map +1 -0
- package/dist/unstyled/src/templates/runtime/vanilla.d.ts +19 -0
- package/dist/unstyled/src/templates/runtime/vanilla.d.ts.map +1 -0
- package/dist/unstyled/src/templates/runtime/vue-ts.d.ts +26 -0
- package/dist/unstyled/src/templates/runtime/vue-ts.d.ts.map +1 -0
- package/dist/unstyled/src/templates/runtime/vue.d.ts +22 -0
- package/dist/unstyled/src/templates/runtime/vue.d.ts.map +1 -0
- package/dist/unstyled/src/templates/static.d.ts +16 -0
- package/dist/unstyled/src/templates/static.d.ts.map +1 -0
- package/dist/unstyled/src/themes/index.d.ts +14 -0
- package/dist/unstyled/src/themes/index.d.ts.map +1 -0
- package/dist/unstyled/src/types.d.ts +477 -0
- package/dist/unstyled/src/types.d.ts.map +1 -0
- package/dist/unstyled/src/utils/ansi-to-react.d.ts +13 -0
- package/dist/unstyled/src/utils/ansi-to-react.d.ts.map +1 -0
- package/dist/unstyled/src/utils/array.d.ts +2 -0
- package/dist/unstyled/src/utils/array.d.ts.map +1 -0
- package/dist/unstyled/src/utils/classNames.d.ts +6 -0
- package/dist/unstyled/src/utils/classNames.d.ts.map +1 -0
- package/dist/unstyled/src/utils/createSandpackFS.d.ts +35 -0
- package/dist/unstyled/src/utils/createSandpackFS.d.ts.map +1 -0
- package/dist/unstyled/src/utils/storyHelpers.d.ts +9 -0
- package/dist/unstyled/src/utils/storyHelpers.d.ts.map +1 -0
- package/dist/unstyled/src/utils/stringUtils.d.ts +10 -0
- package/dist/unstyled/src/utils/stringUtils.d.ts.map +1 -0
- package/dist/unstyled/src/utils/useAsyncSandpackId.d.ts +9 -0
- package/dist/unstyled/src/utils/useAsyncSandpackId.d.ts.map +1 -0
- package/dist/unstyled.d.ts +1 -0
- package/package.json +108 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Navigator.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigator/Navigator.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,QAO7B,CAAC;AAEH,eAAO,MAAM,cAAc,QAyBzB,CAAC;AAEH,eAAO,MAAM,wBAAwB,QAGnC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface NavigatorProps {
|
|
3
|
+
clientId: string;
|
|
4
|
+
onURLChange?: (newURL: string) => void;
|
|
5
|
+
startRoute?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Navigator: ({ clientId, onURLChange, className, startRoute, ...props }: NavigatorProps & React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,GAAI,4DAMvB,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,KAAG,KAAK,CAAC,GAAG,CAAC,OAiHpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigator/utils.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,KAAG,MAAM,EAQ5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Preview.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Preview/Preview.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,QAO3B,CAAC;AAcH,eAAO,MAAM,aAAa,QAQxB,CAAC;AAEH,eAAO,MAAM,uBAAuB,QAOlC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SandpackClient } from "@immediately-run/sandpack-client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface PreviewProps {
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
showNavigator?: boolean;
|
|
6
|
+
showOpenInCodeSandbox?: boolean;
|
|
7
|
+
showRefreshButton?: boolean;
|
|
8
|
+
showRestartButton?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to show the `<ErrorOverlay>` component on top of
|
|
11
|
+
* the preview, if a runtime error happens.
|
|
12
|
+
*/
|
|
13
|
+
showSandpackErrorOverlay?: boolean;
|
|
14
|
+
showOpenNewtab?: boolean;
|
|
15
|
+
actionsChildren?: React.JSX.Element;
|
|
16
|
+
children?: React.JSX.Element;
|
|
17
|
+
startRoute?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SandpackPreviewRef {
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve the current Sandpack client instance from preview
|
|
22
|
+
*/
|
|
23
|
+
getClient: () => InstanceType<typeof SandpackClient> | null;
|
|
24
|
+
/**
|
|
25
|
+
* Returns the client id, which will be used to
|
|
26
|
+
* initialize a client in the main Sandpack context
|
|
27
|
+
*/
|
|
28
|
+
clientId: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const SandpackPreview: React.ForwardRefExoticComponent<PreviewProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SandpackPreviewRef>>;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Preview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA4B/B,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG,IAAI,CAAC;IAC5D;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,gIAiI3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactDevTools.css.d.ts","sourceRoot":"","sources":["../../../../src/components/ReactDevTools/ReactDevTools.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,QAG3B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type DevToolsTheme = "dark" | "light" | "auto";
|
|
3
|
+
export declare const SandpackReactDevTools: ({ clientId, theme, className, ...props }: {
|
|
4
|
+
clientId?: string;
|
|
5
|
+
theme?: DevToolsTheme;
|
|
6
|
+
} & React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ReactDevTools/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/C,eAAO,MAAM,qBAAqB,GAAI,0CAKnC;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAiD9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Describes.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/Describes.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,QAGxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAE7B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Test } from "./Tests";
|
|
3
|
+
export interface Describe {
|
|
4
|
+
name: string;
|
|
5
|
+
tests: Record<string, Test>;
|
|
6
|
+
describes: Record<string, Describe>;
|
|
7
|
+
}
|
|
8
|
+
export declare const Describes: React.FC<{
|
|
9
|
+
describes: Describe[];
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=Describes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Describes.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/Describes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAIpC,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,EAAE,QAAQ,EAAE,CAAA;CAAE,CA+BzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormattedError.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/FormattedError.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,QAK7B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TestError } from "@immediately-run/sandpack-client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface Props {
|
|
4
|
+
error: TestError;
|
|
5
|
+
path: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormattedError: React.FC<Props>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=FormattedError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormattedError.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/FormattedError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,UAAU,KAAK;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAQ1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/Header.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,QAS3B,CAAC;AAEH,eAAO,MAAM,aAAa,QAKxB,CAAC;AAEH,eAAO,MAAM,qBAAqB,QAEhC,CAAC;AAEH,eAAO,MAAM,oBAAoB,QAQ/B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Status } from "./SandpackTests";
|
|
3
|
+
interface Props {
|
|
4
|
+
setVerbose: () => void;
|
|
5
|
+
setSuiteOnly: () => void;
|
|
6
|
+
verbose: boolean;
|
|
7
|
+
suiteOnly: boolean;
|
|
8
|
+
status: Status;
|
|
9
|
+
watchMode: boolean;
|
|
10
|
+
setWatchMode: () => void;
|
|
11
|
+
showSuitesOnly: boolean;
|
|
12
|
+
showVerboseButton: boolean;
|
|
13
|
+
showWatchButton: boolean;
|
|
14
|
+
hideTestsAndSupressLogs: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const Header: React.FC<Props>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,uBAAuB,EAAE,OAAO,CAAC;CAClC;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAqElC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/RunButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAMA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandpackTests.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/SandpackTests.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,QAMlC,CAAC;AAMH,eAAO,MAAM,kBAAkB,QAQ7B,CAAC;AAEH,eAAO,MAAM,2BAA2B,QAGtC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Spec } from "./Specs";
|
|
3
|
+
export type Status = "initialising" | "idle" | "running" | "complete";
|
|
4
|
+
export declare const SandpackTests: React.FC<{
|
|
5
|
+
verbose?: boolean;
|
|
6
|
+
watchMode?: boolean;
|
|
7
|
+
onComplete?: (specs: Record<string, Spec>) => void;
|
|
8
|
+
actionsChildren?: React.JSX.Element;
|
|
9
|
+
showVerboseButton?: boolean;
|
|
10
|
+
showWatchButton?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Hide the tests and supress logs
|
|
13
|
+
* If `true` the tests will be hidden and the logs will be supressed. This is useful when you want to run tests in the background and don't want to show the tests to the user.
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
hideTestsAndSupressLogs?: boolean;
|
|
17
|
+
} & React.HtmlHTMLAttributes<HTMLDivElement>>;
|
|
18
|
+
//# sourceMappingURL=SandpackTests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandpackTests.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/SandpackTests.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAcpC,MAAM,MAAM,MAAM,GAAG,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;AAoBtE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAClC;IACE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC;IACnD,eAAe,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IACpC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,GAAG,KAAK,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAmY7C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const fileContainer: string;
|
|
2
|
+
export declare const gapBottomClassName: string;
|
|
3
|
+
export declare const failTestClassName: string;
|
|
4
|
+
export declare const labelClassName: string;
|
|
5
|
+
export declare const specLabelClassName: string;
|
|
6
|
+
export declare const filePathButtonClassName: string;
|
|
7
|
+
export declare const filePathClassName: string;
|
|
8
|
+
export declare const fileNameClassName: string;
|
|
9
|
+
//# sourceMappingURL=Specs.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Specs.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/Specs.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,QAKxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAE7B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAE5B,CAAC;AAEH,eAAO,MAAM,cAAc,QAEzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAK7B,CAAC;AAEH,eAAO,MAAM,uBAAuB,QAIlC,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAI5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAK5B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TestError } from "@immediately-run/sandpack-client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { Describe } from "./Describes";
|
|
4
|
+
import type { Status } from "./SandpackTests";
|
|
5
|
+
export type Spec = {
|
|
6
|
+
error?: TestError;
|
|
7
|
+
} & Describe;
|
|
8
|
+
interface Props {
|
|
9
|
+
specs: Spec[];
|
|
10
|
+
verbose: boolean;
|
|
11
|
+
status: Status;
|
|
12
|
+
openSpec: (name: string) => void;
|
|
13
|
+
hideTestsAndSupressLogs?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const Specs: React.FC<Props>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=Specs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Specs.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/Specs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAoB9C,MAAM,MAAM,IAAI,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,QAAQ,CAAC;AAEpD,UAAU,KAAK;IACb,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAoIjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Summary.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/Summary.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,QAE7B,CAAC;AAEH,eAAO,MAAM,cAAc,QAIzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAG7B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TestResults {
|
|
3
|
+
pass: number;
|
|
4
|
+
fail: number;
|
|
5
|
+
skip: number;
|
|
6
|
+
total: number;
|
|
7
|
+
}
|
|
8
|
+
export interface SuiteResults {
|
|
9
|
+
pass: number;
|
|
10
|
+
fail: number;
|
|
11
|
+
total: number;
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
suites: SuiteResults;
|
|
15
|
+
tests: TestResults;
|
|
16
|
+
duration: number;
|
|
17
|
+
}
|
|
18
|
+
export declare const Summary: React.FC<Props>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=Summary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Summary.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/Summary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,KAAK;IACb,MAAM,EAAE,YAAY,CAAC;IACrB,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwEnC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const testContainerClassName: string;
|
|
2
|
+
export declare const containerClassName: string;
|
|
3
|
+
export declare const testClassName: string;
|
|
4
|
+
export declare const durationClassName: string;
|
|
5
|
+
export declare const gapRightClassName: string;
|
|
6
|
+
//# sourceMappingURL=Tests.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tests.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/Tests.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,QAEjC,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAG7B,CAAC;AAEH,eAAO,MAAM,aAAa,QAGxB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAE5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAE5B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TestError } from "@immediately-run/sandpack-client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
type TestStatus = "idle" | "running" | "pass" | "fail";
|
|
4
|
+
export interface Test {
|
|
5
|
+
name: string;
|
|
6
|
+
blocks: string[];
|
|
7
|
+
status: TestStatus;
|
|
8
|
+
path: string;
|
|
9
|
+
errors: TestError[];
|
|
10
|
+
duration?: number | undefined;
|
|
11
|
+
}
|
|
12
|
+
interface SandpackTests extends React.HtmlHTMLAttributes<HTMLDivElement> {
|
|
13
|
+
tests: Test[];
|
|
14
|
+
}
|
|
15
|
+
export declare const Tests: React.FC<SandpackTests>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=Tests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tests.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/Tests.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,KAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,UAAU,aAAc,SAAQ,KAAK,CAAC,kBAAkB,CAAC,cAAc,CAAC;IACtE,KAAK,EAAE,IAAI,EAAE,CAAC;CACf;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAqDzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const passTextClassName: string;
|
|
2
|
+
export declare const failTextClassName: string;
|
|
3
|
+
export declare const skipTextClassName: string;
|
|
4
|
+
export declare const titleTextClassName: string;
|
|
5
|
+
export declare const runBackgroundClassName: string;
|
|
6
|
+
export declare const passBackgroundClassName: string;
|
|
7
|
+
export declare const failBackgroundClassName: string;
|
|
8
|
+
//# sourceMappingURL=style.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/style.css.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,iBAAiB,QAA4B,CAAC;AAC3D,eAAO,MAAM,iBAAiB,QAA4B,CAAC;AAC3D,eAAO,MAAM,iBAAiB,QAA4B,CAAC;AAC3D,eAAO,MAAM,kBAAkB,QAA6B,CAAC;AAY7D,eAAO,MAAM,sBAAsB,QAAgC,CAAC;AACpE,eAAO,MAAM,uBAAuB,QAAiC,CAAC;AACtE,eAAO,MAAM,uBAAuB,QAAiC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const setTestTheme: (isDark: boolean) => Record<string, string>;
|
|
2
|
+
export { failBackgroundClassName, failTextClassName, passBackgroundClassName, passTextClassName, runBackgroundClassName, skipTextClassName, titleTextClassName, } from "./style.css";
|
|
3
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/style.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,QAAQ,OAAO,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAMlE,CAAC;AAEH,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Describe } from "./Describes";
|
|
2
|
+
import type { Spec } from "./Specs";
|
|
3
|
+
import type { SuiteResults, TestResults } from "./Summary";
|
|
4
|
+
import type { Test } from "./Tests";
|
|
5
|
+
export declare const getFailingTests: (block: Describe | Spec) => Test[];
|
|
6
|
+
export declare const getAllTestResults: (specs: Spec[]) => TestResults;
|
|
7
|
+
export declare const getSpecTestResults: (spec: Spec) => TestResults;
|
|
8
|
+
export declare const getAllSuiteResults: (specs: Spec[]) => SuiteResults;
|
|
9
|
+
export declare const getDuration: (specs: Spec[]) => number;
|
|
10
|
+
export declare const isEmpty: (block: Spec | Describe) => boolean;
|
|
11
|
+
export declare const splitTail: <A>(as: A[]) => [A[], A | undefined];
|
|
12
|
+
export declare const flatMap: <A, B>(as: A[], f: (a: A) => B[]) => B[];
|
|
13
|
+
export declare const set: (path: string[], value: unknown) => <A extends Record<string, any>>(object: A) => A;
|
|
14
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Tests/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAOpC,eAAO,MAAM,eAAe,GAAI,OAAO,QAAQ,GAAG,IAAI,KAAG,IAAI,EACT,CAAC;AAErD,eAAO,MAAM,iBAAiB,GAAI,OAAO,IAAI,EAAE,KAAG,WAW/C,CAAC;AAEJ,eAAO,MAAM,kBAAkB,GAAI,MAAM,IAAI,KAAG,WAc7C,CAAC;AAEJ,eAAO,MAAM,kBAAkB,GAAI,OAAO,IAAI,EAAE,KAAG,YAiB9C,CAAC;AAEN,eAAO,MAAM,WAAW,GAAI,OAAO,IAAI,EAAE,KAAG,MACmC,CAAC;AAEhF,eAAO,MAAM,OAAO,GAAI,OAAO,IAAI,GAAG,QAAQ,KAAG,OAEF,CAAC;AAEhD,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,IAAI,CAAC,EAAE,KAAG,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,SAAS,CAKzD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAG,CAAC,EACJ,CAAC;AAExD,eAAO,MAAM,GAAG,GACb,MAAM,MAAM,EAAE,EAAE,OAAO,OAAO,MAE9B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ,CAAC,KAAG,CACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranspiledCode.css.d.ts","sourceRoot":"","sources":["../../../../src/components/TranspiledCode/TranspiledCode.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,QAQlC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { CodeViewerProps } from "../CodeViewer";
|
|
3
|
+
export declare const SandpackTranspiledCode: ({ className, ...props }: CodeViewerProps & React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TranspiledCode/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAQrD,eAAO,MAAM,sBAAsB,GAAI,yBAGpC,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,KAAG,KAAK,CAAC,GAAG,CAAC,OA0CrE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DependenciesProgress.css.d.ts","sourceRoot":"","sources":["../../../../src/components/common/DependenciesProgress.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,QAU5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DependenciesProgress.d.ts","sourceRoot":"","sources":["../../../../src/components/common/DependenciesProgress.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAiBhE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/common/ErrorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqC/B,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACrE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqIpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Layout.css.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Layout.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,QAU1B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { layoutClassName } from "./Layout.css";
|
|
3
|
+
export { layoutClassName };
|
|
4
|
+
export interface SandpackLayoutProps extends React.HtmlHTMLAttributes<unknown> {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const SandpackLayout: React.ForwardRefExoticComponent<SandpackLayoutProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
//# sourceMappingURL=Layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC;IAC5E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,cAAc,4FAiBzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loading.css.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Loading.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,QAExB,CAAC;AAQH,eAAO,MAAM,gBAAgB,QAQ3B,CAAC;AAyBH,eAAO,MAAM,eAAe,QAK1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,eAAO,MAAM,OAAO,GAAI,gDAIrB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACxC,qBAAqB,EAAE,OAAO,CAAC;CAChC,KAAG,KAAK,CAAC,GAAG,CAAC,OAsBb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingOverlay.css.d.ts","sourceRoot":"","sources":["../../../../src/components/common/LoadingOverlay.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,QAE3B,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAE9B,CAAC;AAEH,eAAO,MAAM,aAAa,QAQxB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAU5B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface LoadingOverlayProps {
|
|
3
|
+
clientId?: string;
|
|
4
|
+
/**
|
|
5
|
+
* It enforces keeping the loading state visible,
|
|
6
|
+
* which is helpful for external loading states.
|
|
7
|
+
*/
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
showOpenInCodeSandbox: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const LoadingOverlay: React.FC<LoadingOverlayProps & React.HTMLAttributes<HTMLDivElement>>;
|
|
12
|
+
//# sourceMappingURL=LoadingOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/common/LoadingOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA8B/B,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CACnC,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CA4I3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenInCodeSandboxButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/common/OpenInCodeSandboxButton/OpenInCodeSandboxButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAYjC,eAAO,MAAM,uBAAuB,QAAO,GAAG,CAAC,OAAO,GAAG,IAgBxD,CAAC"}
|
package/dist/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SandpackState } from "../../../types";
|
|
3
|
+
export declare const UnstyledOpenInCodeSandboxButton: React.FC<React.HtmlHTMLAttributes<unknown>>;
|
|
4
|
+
export declare const ExportToWorkspaceButton: React.FC<React.HtmlHTMLAttributes<unknown> & {
|
|
5
|
+
state: SandpackState;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=UnstyledOpenInCodeSandboxButton.d.ts.map
|
package/dist/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnstyledOpenInCodeSandboxButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAkCxE,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,EAAE,CACpD,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,CASlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAC5C,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,GAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CAAE,CA+C7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/common/OpenInCodeSandboxButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoundedButton.d.ts","sourceRoot":"","sources":["../../../../src/components/common/RoundedButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAClC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAmB9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunButton.css.d.ts","sourceRoot":"","sources":["../../../../src/components/common/RunButton.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,QAK7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunButton.d.ts","sourceRoot":"","sources":["../../../../src/components/common/RunButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAC9B,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAiB9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.css.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Stack.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc,QAazB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { stackClassName } from "./Stack.css";
|
|
3
|
+
export { stackClassName };
|
|
4
|
+
export declare const SandpackStack: React.FC<React.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../src/components/common/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAClC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAUtE,CAAC"}
|