@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,50 @@
|
|
|
1
|
+
import type { Extension } from "@codemirror/state";
|
|
2
|
+
import { EditorView } from "@codemirror/view";
|
|
3
|
+
import type { KeyBinding } from "@codemirror/view";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import type { CustomLanguage, EditorState as SandpackEditorState, SandpackInitMode } from "../../types";
|
|
6
|
+
export type Decorators = Array<{
|
|
7
|
+
className?: string;
|
|
8
|
+
line: number;
|
|
9
|
+
startColumn?: number;
|
|
10
|
+
endColumn?: number;
|
|
11
|
+
elementAttributes?: Record<string, string>;
|
|
12
|
+
}>;
|
|
13
|
+
interface CodeMirrorProps {
|
|
14
|
+
code: string;
|
|
15
|
+
filePath?: string;
|
|
16
|
+
fileType?: string;
|
|
17
|
+
onCodeUpdate?: (newCode: string) => void;
|
|
18
|
+
showLineNumbers?: boolean;
|
|
19
|
+
showInlineErrors?: boolean;
|
|
20
|
+
wrapContent?: boolean;
|
|
21
|
+
editorState?: SandpackEditorState;
|
|
22
|
+
/**
|
|
23
|
+
* This disables editing of content by the user in all files.
|
|
24
|
+
*/
|
|
25
|
+
readOnly?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Controls the visibility of Read-only label, which will only
|
|
28
|
+
* appears when `readOnly` is `true`
|
|
29
|
+
*/
|
|
30
|
+
showReadOnly?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Provides a way to draw or style a piece of the content.
|
|
33
|
+
*/
|
|
34
|
+
decorators?: Decorators;
|
|
35
|
+
initMode: SandpackInitMode;
|
|
36
|
+
extensions?: Extension[];
|
|
37
|
+
extensionsKeymap?: KeyBinding[];
|
|
38
|
+
/**
|
|
39
|
+
* Provides a way to add custom language modes by supplying a language
|
|
40
|
+
* type, applicable file extensions, and a LanguageSupport instance
|
|
41
|
+
* for that syntax mode
|
|
42
|
+
*/
|
|
43
|
+
additionalLanguages?: CustomLanguage[];
|
|
44
|
+
}
|
|
45
|
+
export interface CodeMirrorRef {
|
|
46
|
+
getCodemirror: () => EditorView | undefined;
|
|
47
|
+
}
|
|
48
|
+
export declare const CodeMirror: React.ForwardRefExoticComponent<CodeMirrorProps & React.RefAttributes<CodeMirrorRef>>;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=CodeMirror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeMirror.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/CodeMirror.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAIL,UAAU,EAEX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EACV,cAAc,EACd,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAsBrB,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5C,CAAC,CAAC;AAWH,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC;IAChC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,cAAc,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,UAAU,GAAG,SAAS,CAAC;CAC7C;AAED,eAAO,MAAM,UAAU,uFAmctB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlightDecorators.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/highlightDecorators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAI3D,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,UAAU,GAAG,SAAS,CAoDpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlightInlineError.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/highlightInlineError.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAMnD,wBAAgB,oBAAoB,IAAI,SAAS,CAEhD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Extension } from "@codemirror/state";
|
|
2
|
+
import type { KeyBinding } from "@codemirror/view";
|
|
3
|
+
import type { CustomLanguage, SandpackInitMode } from "../../types";
|
|
4
|
+
import { CodeMirror } from "./CodeMirror";
|
|
5
|
+
import type { CodeMirrorRef } from "./CodeMirror";
|
|
6
|
+
export type CodeEditorRef = CodeMirrorRef;
|
|
7
|
+
export interface CodeEditorProps {
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
className?: string;
|
|
10
|
+
showTabs?: boolean;
|
|
11
|
+
showLineNumbers?: boolean;
|
|
12
|
+
showInlineErrors?: boolean;
|
|
13
|
+
showRunButton?: boolean;
|
|
14
|
+
wrapContent?: boolean;
|
|
15
|
+
closableTabs?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* This provides a way to control how some components are going to
|
|
18
|
+
* be initialized on the page. The CodeEditor and the Preview components
|
|
19
|
+
* are quite expensive and might overload the memory usage, so this gives
|
|
20
|
+
* a certain control of when to initialize them.
|
|
21
|
+
*/
|
|
22
|
+
initMode?: SandpackInitMode;
|
|
23
|
+
/**
|
|
24
|
+
* CodeMirror extensions for the editor state, which can
|
|
25
|
+
* provide extra features and functionalities to the editor component.
|
|
26
|
+
*/
|
|
27
|
+
extensions?: Extension[];
|
|
28
|
+
/**
|
|
29
|
+
* Property to register CodeMirror extension keymap.
|
|
30
|
+
*/
|
|
31
|
+
extensionsKeymap?: KeyBinding[];
|
|
32
|
+
/**
|
|
33
|
+
* This disables editing of the editor content by the user.
|
|
34
|
+
*/
|
|
35
|
+
readOnly?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Controls the visibility of Read-only label, which will only
|
|
38
|
+
* appears when `readOnly` is `true`
|
|
39
|
+
*/
|
|
40
|
+
showReadOnly?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Provides a way to add custom language modes by supplying a language
|
|
43
|
+
* type, applicable file extensions, and a LanguageSupport instance
|
|
44
|
+
* for that syntax mode
|
|
45
|
+
*/
|
|
46
|
+
additionalLanguages?: CustomLanguage[];
|
|
47
|
+
}
|
|
48
|
+
export { CodeMirror as CodeEditor };
|
|
49
|
+
export declare const SandpackCodeEditor: import("react").ForwardRefExoticComponent<CodeEditorProps & import("react").RefAttributes<CodeMirrorRef>>;
|
|
50
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAKnD,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAOpE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;AAE1C,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,cAAc,EAAE,CAAC;CACxC;AAED,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,CAAC;AAEpC,eAAO,MAAM,kBAAkB,2GA8E9B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const html = "\n<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n <title>HTML 5 Boilerplate</title>\n <link rel=\"stylesheet\" href=\"style.css\">\n </head>\n <body>\n <script src=\"index.js\"></script>\n </body>\n</html>\n";
|
|
2
|
+
export declare const js = "function foo(params) {\n return params\n}\n\nconst baz = (foo) => {\n return foo\n}\n\nconst array = [];\nconst object = {};\nconst regex = new Regex(//);\n\nconst expr = 'Papayas';\nswitch (expr) {\n case 'Oranges':\n console.log('Oranges are $0.59 a pound.');\n break;\n case 'Mangoes':\n case 'Papayas':\n console.log('Mangoes and papayas are $2.79 a pound.');\n // expected output: \"Mangoes and papayas are $2.79 a pound.\"\n break;\n default:\n console.log(`Sorry, we are out of ${expr}.`);\n}";
|
|
3
|
+
export declare const jsx = "function Greeting({ name }) {\n return <h1>Hello, {name}!</h1>;\n}\n\nexport default function App() {\n return (\n <div>\n <Greeting name=\"Divyesh\" />\n <Greeting name=\"Sarah\" />\n <Greeting name=\"Taylor\" />\n </div>\n );\n}";
|
|
4
|
+
export declare const css = "body {\n background-color: lightblue;\n}\n\nh1 {\n color: white;\n text-align: center;\n}\n\np {\n font-family: verdana;\n font-size: 20px;\n}";
|
|
5
|
+
export declare const less = "@width: 10px;\n@height: @width + 10px;\n\n#header {\n width: @width;\n height: @height;\n}";
|
|
6
|
+
export declare const vue = "<template>\n<div class=\"column is-12\">\n <label class=\"label\" for=\"email\">Email</label>\n <p :class=\"{ 'control': true }\">\n <input v-validate=\"'required|email'\" :class=\"{'input': true, 'is-danger': errors.has('email') }\" name=\"email\" type=\"text\" placeholder=\"Email\">\n <span v-show=\"errors.has('email')\" class=\"help is-danger\">{{ errors.first('email') }}</span>\n </p>\n</div>\n</template>\n\n<script>\n export default {\n name: 'basic-example'\n};\n</script>";
|
|
7
|
+
export declare const shell = "#!/bin/sh\n\nEXAMPLE=\"drawn joyed\"\n\n# Prints the EXAMPLE variable\nfunction show-example() {\n echo $EXAMPLE\n}";
|
|
8
|
+
export declare const python = "import os\n\napi_token = os.environ['API_TOKEN']\n\n# Prints the api_token variable\nprint(\"API token:\", api_token)";
|
|
9
|
+
//# sourceMappingURL=languages-mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"languages-mocks.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/languages-mocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,2YAchB,CAAC;AAEF,eAAO,MAAM,EAAE,ghBAwBb,CAAC;AAEH,eAAO,MAAM,GAAG,mQAYd,CAAC;AAEH,eAAO,MAAM,GAAG,wJAYd,CAAC;AAEH,eAAO,MAAM,IAAI,iGAMf,CAAC;AAEH,eAAO,MAAM,GAAG,ggBAcN,CAAC;AAEX,eAAO,MAAM,KAAK,yHAOhB,CAAC;AAEH,eAAO,MAAM,MAAM,0HAKY,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const placeholderClassName: string;
|
|
2
|
+
export declare const tokensClassName: string;
|
|
3
|
+
export declare const editorClassName: string;
|
|
4
|
+
export declare const cmClassName: string;
|
|
5
|
+
export declare const readOnlyClassName: string;
|
|
6
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/styles.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB,QAO/B,CAAC;AAcH,eAAO,MAAM,eAAe,QAAY,CAAC;AASzC,eAAO,MAAM,eAAe,QAa1B,CAAC;AAqBH,eAAO,MAAM,WAAW,QAItB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAW5B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HighlightStyle, LanguageSupport } from "@codemirror/language";
|
|
2
|
+
export declare const useSyntaxHighlight: ({ langSupport, highlightTheme, code, }: {
|
|
3
|
+
langSupport: LanguageSupport;
|
|
4
|
+
highlightTheme: HighlightStyle;
|
|
5
|
+
code?: string;
|
|
6
|
+
}) => React.ReactNode[];
|
|
7
|
+
//# sourceMappingURL=useSyntaxHighlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSyntaxHighlight.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/useSyntaxHighlight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAI5E,eAAO,MAAM,kBAAkB,GAAI,wCAIhC;IACD,WAAW,EAAE,eAAe,CAAC;IAC7B,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,KAAG,KAAK,CAAC,SAAS,EA2ClB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { LanguageSupport } from "@codemirror/language";
|
|
2
|
+
import { HighlightStyle } from "@codemirror/language";
|
|
3
|
+
import type { Extension, Text } from "@codemirror/state";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import type { CustomLanguage, SandpackTheme } from "../../types";
|
|
6
|
+
export declare const getCodeMirrorPosition: (doc: Text, { line, column }: {
|
|
7
|
+
line: number;
|
|
8
|
+
column?: number;
|
|
9
|
+
}) => number;
|
|
10
|
+
export declare const getEditorTheme: () => Extension;
|
|
11
|
+
export declare const styleTokens: () => Record<string, string>;
|
|
12
|
+
export declare const getSyntaxHighlight: (theme: SandpackTheme) => HighlightStyle;
|
|
13
|
+
export declare const getLanguageFromFile: (filePath: string | undefined, fileType: string | undefined, additionalLanguages: CustomLanguage[]) => string;
|
|
14
|
+
export declare const getCodeMirrorLanguage: (extension: string, additionalLanguages: CustomLanguage[]) => LanguageSupport;
|
|
15
|
+
export declare const useCombinedRefs: <T>(...refs: Array<React.Ref<T>>) => React.Ref<T>;
|
|
16
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAGzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,qBAAqB,GAChC,KAAK,IAAI,EACT,kBAAkB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAClD,MAEF,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,SA6D9B,CAAC;AAKL,eAAO,MAAM,WAAW,QAAO,MAAM,CAAC,MAAM,EAAE,MAAM,CAsBnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,aAAa,KAAG,cAoDtD,CAAC;AAIL,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,GAAG,SAAS,EAC5B,UAAU,MAAM,GAAG,SAAS,EAC5B,qBAAqB,cAAc,EAAE,KACpC,MAqCF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,WAAW,MAAM,EACjB,qBAAqB,cAAc,EAAE,KACpC,eAeF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,EAC/B,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAC3B,KAAK,CAAC,GAAG,CAAC,CAAC,CAoBX,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { CustomLanguage, SandpackInitMode } from "../..";
|
|
3
|
+
import type { Decorators } from "../CodeEditor/CodeMirror";
|
|
4
|
+
export interface CodeViewerProps {
|
|
5
|
+
showTabs?: boolean;
|
|
6
|
+
showLineNumbers?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Provides a way to draw or style a piece of the content.
|
|
9
|
+
*/
|
|
10
|
+
decorators?: Decorators;
|
|
11
|
+
code?: string;
|
|
12
|
+
wrapContent?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* This provides a way to control how some components are going to
|
|
15
|
+
* be initialized on the page. The CodeEditor and the Preview components
|
|
16
|
+
* are quite expensive and might overload the memory usage, so this gives
|
|
17
|
+
* a certain control of when to initialize them.
|
|
18
|
+
*/
|
|
19
|
+
initMode?: SandpackInitMode;
|
|
20
|
+
/**
|
|
21
|
+
* Provides a way to add custom language modes by supplying a language
|
|
22
|
+
* type, applicable file extensions, and a LanguageSupport instance
|
|
23
|
+
* for that syntax mode
|
|
24
|
+
*/
|
|
25
|
+
additionalLanguages?: CustomLanguage[];
|
|
26
|
+
}
|
|
27
|
+
export declare const SandpackCodeViewer: React.ForwardRefExoticComponent<CodeViewerProps & React.RefAttributes<import("../CodeEditor/CodeMirror").CodeMirrorRef>>;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeViewer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAM3D,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,cAAc,EAAE,CAAC;CACxC;AAED,eAAO,MAAM,kBAAkB,0HAuD9B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const consoleItemClassName: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
variant: {
|
|
3
|
+
error: {
|
|
4
|
+
color: `var(--${string})`;
|
|
5
|
+
background: `var(--${string})`;
|
|
6
|
+
selectors: {
|
|
7
|
+
"&:not(:first-child):after": {
|
|
8
|
+
background: `var(--${string})`;
|
|
9
|
+
opacity: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
warning: {
|
|
14
|
+
color: `var(--${string})`;
|
|
15
|
+
background: `var(--${string})`;
|
|
16
|
+
selectors: {
|
|
17
|
+
"&:not(:first-child):after": {
|
|
18
|
+
background: `var(--${string})`;
|
|
19
|
+
opacity: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
clear: {
|
|
24
|
+
fontStyle: "italic";
|
|
25
|
+
};
|
|
26
|
+
info: {};
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
29
|
+
//# sourceMappingURL=ConsoleList.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsoleList.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Console/ConsoleList.css.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsoleList.d.ts","sourceRoot":"","sources":["../../../../src/components/Console/ConsoleList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAgD/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Console/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 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Console/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;IAC5B,UAAU,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAChC,aAAa,EAAE,CAAC,KAAK,EAAE,QAAQ,GAAG,QAAQ,KAAK,IAAI,CAAC;IACpD,IAAI,EAAE,OAAO,CAAC;CACf,CA4CA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandpackConsole.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Console/SandpackConsole.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,QAGlC,CAAC;AAiBH,eAAO,MAAM,oBAAoB,QAG/B,CAAC;AAEH,eAAO,MAAM,uBAAuB,QAMlC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SandpackConsoleData } from "./utils/getType";
|
|
3
|
+
interface SandpackConsoleProps {
|
|
4
|
+
clientId?: string;
|
|
5
|
+
showHeader?: boolean;
|
|
6
|
+
showSyntaxError?: boolean;
|
|
7
|
+
showSetupProgress?: boolean;
|
|
8
|
+
showRestartButton?: boolean;
|
|
9
|
+
showResetConsoleButton?: boolean;
|
|
10
|
+
maxMessageCount?: number;
|
|
11
|
+
onLogsChange?: (logs: SandpackConsoleData) => void;
|
|
12
|
+
resetOnPreviewRestart?: boolean;
|
|
13
|
+
standalone?: boolean;
|
|
14
|
+
actionsChildren?: React.JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export interface SandpackConsoleRef {
|
|
17
|
+
reset: () => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* `SandpackConsole` is a Sandpack devtool that allows printing
|
|
21
|
+
* the console logs from a Sandpack client. It is designed to be
|
|
22
|
+
* a light version of a browser console, which means that it's
|
|
23
|
+
* limited to a set of common use cases you may encounter when coding.
|
|
24
|
+
*/
|
|
25
|
+
export declare const SandpackConsole: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & SandpackConsoleProps & React.RefAttributes<SandpackConsoleRef>>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=SandpackConsole.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandpackConsole.d.ts","sourceRoot":"","sources":["../../../../src/components/Console/SandpackConsole.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqB/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACnD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,wIAuI3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StdoutList.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Console/StdoutList.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,QAkB/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StdoutList.d.ts","sourceRoot":"","sources":["../../../../src/components/Console/StdoutList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,IAAI,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3C,CAgBA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Console/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SandpackConsoleData } from "./utils/getType";
|
|
2
|
+
/**
|
|
3
|
+
* It provides an interface to consume the logs from a sandpack client.
|
|
4
|
+
*
|
|
5
|
+
* @category Hooks
|
|
6
|
+
*/
|
|
7
|
+
export declare const useSandpackConsole: ({ clientId, maxMessageCount, showSyntaxError, resetOnPreviewRestart, }: {
|
|
8
|
+
clientId?: string;
|
|
9
|
+
maxMessageCount?: number;
|
|
10
|
+
showSyntaxError?: boolean;
|
|
11
|
+
resetOnPreviewRestart: boolean;
|
|
12
|
+
}) => {
|
|
13
|
+
logs: SandpackConsoleData;
|
|
14
|
+
reset: () => void;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useSandpackConsole.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSandpackConsole.d.ts","sourceRoot":"","sources":["../../../../src/components/Console/useSandpackConsole.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,wEAKhC;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC;CAChC,KAAG;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAA;CAwDjD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const SYNTAX_ERROR_PATTERN: string[];
|
|
2
|
+
export declare const CLEAR_LOG: {
|
|
3
|
+
id: string;
|
|
4
|
+
method: "clear";
|
|
5
|
+
data: string[];
|
|
6
|
+
};
|
|
7
|
+
export declare const TRANSFORMED_TYPE_KEY = "@t";
|
|
8
|
+
export declare const TRANSFORMED_TYPE_KEY_ALTERNATE = "#@t";
|
|
9
|
+
export declare const CIRCULAR_REF_KEY = "@r";
|
|
10
|
+
export declare const MAX_LENGTH_STRING = 10000;
|
|
11
|
+
export declare const MAX_NEST_LEVEL = 2;
|
|
12
|
+
export declare const MAX_KEYS = 400;
|
|
13
|
+
export declare const MAX_MESSAGE_COUNT: number;
|
|
14
|
+
//# sourceMappingURL=constraints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../../../../src/components/Console/utils/constraints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,UAAyC,CAAC;AAE3E,eAAO,MAAM,SAAS;;;;CAIrB,CAAC;AAEF,eAAO,MAAM,oBAAoB,OAAO,CAAC;AACzC,eAAO,MAAM,8BAA8B,QAAQ,CAAC;AACpD,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,QAAQ,MAAM,CAAC;AAC5B,eAAO,MAAM,iBAAiB,QAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TransformsTypes } from "./transformers";
|
|
2
|
+
export type Message = null | string | number | undefined | Array<any> | Record<any, any> | boolean | symbol | {
|
|
3
|
+
"@r": number;
|
|
4
|
+
} | {
|
|
5
|
+
"@t": TransformsTypes;
|
|
6
|
+
data: {
|
|
7
|
+
name: string;
|
|
8
|
+
body: string;
|
|
9
|
+
proto: TransformsTypes;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const fromConsoleToString: (message: Message, references: Array<Message>, level?: number) => string;
|
|
13
|
+
//# sourceMappingURL=fromConsoleToString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fromConsoleToString.d.ts","sourceRoot":"","sources":["../../../../../src/components/Console/utils/fromConsoleToString.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,OAAO,GACf,IAAI,GACJ,MAAM,GACN,MAAM,GACN,SAAS,GACT,KAAK,CAAC,GAAG,CAAC,GACV,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAChB,OAAO,GACP,MAAM,GACN;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IACE,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,eAAe,CAAC;KACxB,CAAC;CACH,CAAC;AA2FN,eAAO,MAAM,mBAAmB,GAC9B,SAAS,OAAO,EAChB,YAAY,KAAK,CAAC,OAAO,CAAC,EAC1B,cAAS,KACR,MAqEF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SandpackMessageConsoleMethods } from "@immediately-run/sandpack-client";
|
|
2
|
+
export declare const getType: (message: SandpackMessageConsoleMethods) => "info" | "warning" | "error" | "clear";
|
|
3
|
+
export type SandpackConsoleData = Array<{
|
|
4
|
+
data: Array<string | Record<string, string>> | undefined;
|
|
5
|
+
id: string;
|
|
6
|
+
method: SandpackMessageConsoleMethods;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=getType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getType.d.ts","sourceRoot":"","sources":["../../../../../src/components/Console/utils/getType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAEtF,eAAO,MAAM,OAAO,GAClB,SAAS,6BAA6B,KACrC,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,OAgBjC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC;IACtC,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,6BAA6B,CAAC;CACvC,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type TransformsTypes = "Function" | "HTMLElement" | "[[NaN]]" | "[[undefined]]" | "[[Date]]" | "[[RegExp]]" | "[[Error]]" | "[[RegExp]]" | "[[Error]]" | "[[ArrayBuffer]]" | "[[TypedArray]]" | "[[Map]]" | "[[Set]]" | "Arithmetic";
|
|
2
|
+
type Transforms = Record<TransformsTypes, (...params: any) => any>;
|
|
3
|
+
export declare const transformers: Transforms;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=transformers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Console/utils/transformers.ts"],"names":[],"mappings":"AAqBA,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,aAAa,GACb,SAAS,GACT,eAAe,GACf,UAAU,GACV,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,WAAW,GACX,iBAAiB,GACjB,gBAAgB,GAChB,SAAS,GACT,SAAS,GACT,YAAY,CAAC;AAEjB,KAAK,UAAU,GAAG,MAAM,CAAC,eAAe,EAAE,CAAC,GAAG,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;AAQnE,eAAO,MAAM,YAAY,EAAE,UAqH1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.css.d.ts","sourceRoot":"","sources":["../../../../src/components/FileExplorer/File.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,QAK5B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface Props {
|
|
3
|
+
path: string;
|
|
4
|
+
selectFile?: (path: string) => void;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
depth: number;
|
|
8
|
+
isDirOpen?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const File: React.FC<Props>;
|
|
11
|
+
//# sourceMappingURL=File.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../../src/components/FileExplorer/File.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA0ChC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileExplorer.css.d.ts","sourceRoot":"","sources":["../../../../src/components/FileExplorer/FileExplorer.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB,QAIhC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FileMetaMap } from "@immediately-run/sandpack-client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SandpackOptions } from "../../types";
|
|
4
|
+
import type { SandpackFileExplorerProp } from ".";
|
|
5
|
+
export interface ModuleListProps extends SandpackFileExplorerProp {
|
|
6
|
+
prefixedPath: string;
|
|
7
|
+
fileList: string[];
|
|
8
|
+
fileMeta: FileMetaMap;
|
|
9
|
+
selectFile: (path: string) => void;
|
|
10
|
+
activeFile: NonNullable<SandpackOptions["activeFile"]>;
|
|
11
|
+
depth?: number;
|
|
12
|
+
visibleFiles: NonNullable<SandpackOptions["visibleFiles"]>;
|
|
13
|
+
}
|
|
14
|
+
export interface DirectoryProps extends SandpackFileExplorerProp {
|
|
15
|
+
prefixedPath: string;
|
|
16
|
+
fileList: string[];
|
|
17
|
+
fileMeta: FileMetaMap;
|
|
18
|
+
selectFile: (path: string) => void;
|
|
19
|
+
activeFile: NonNullable<SandpackOptions["activeFile"]>;
|
|
20
|
+
depth: number;
|
|
21
|
+
visibleFiles: NonNullable<SandpackOptions["visibleFiles"]>;
|
|
22
|
+
}
|
|
23
|
+
export declare const Directory: React.FC<DirectoryProps>;
|
|
24
|
+
export declare const ModuleList: React.FC<ModuleListProps>;
|
|
25
|
+
//# sourceMappingURL=ModuleList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleList.d.ts","sourceRoot":"","sources":["../../../../src/components/FileExplorer/ModuleList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,GAAG,CAAC;AAElD,MAAM,WAAW,eAAgB,SAAQ,wBAAwB;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,WAAW,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,cAAe,SAAQ,wBAAwB;IAC9D,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,WAAW,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC;CAC5D;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAyC9C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA+ChD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SandpackFileExplorerProp {
|
|
3
|
+
/**
|
|
4
|
+
* enable auto hidden file in file explorer
|
|
5
|
+
*
|
|
6
|
+
* @description set with hidden property in files property
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
autoHiddenFiles?: boolean;
|
|
10
|
+
initialCollapsedFolder?: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare const SandpackFileExplorer: ({ className, autoHiddenFiles, initialCollapsedFolder, ...props }: SandpackFileExplorerProp & React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element | null;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/FileExplorer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,MAAM,WAAW,wBAAwB;IACvC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC;AAED,eAAO,MAAM,oBAAoB,GAAI,kEAKlC,wBAAwB,GACzB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IA0D5D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FileMetaMap } from "@immediately-run/sandpack-client";
|
|
2
|
+
/**
|
|
3
|
+
* Build the `{directories, modules}` split used by the file explorer. Takes
|
|
4
|
+
* the flat list of paths from `SandpackFS.list()` plus the metadata sidecar
|
|
5
|
+
* so we can honor `hidden` without round-tripping to the bundler.
|
|
6
|
+
*/
|
|
7
|
+
export declare const fromPropsToModules: ({ autoHiddenFiles, visibleFiles, fileList, fileMeta, prefixedPath, }: {
|
|
8
|
+
prefixedPath: string;
|
|
9
|
+
fileList: string[];
|
|
10
|
+
fileMeta: FileMetaMap;
|
|
11
|
+
autoHiddenFiles?: boolean;
|
|
12
|
+
visibleFiles: string[];
|
|
13
|
+
}) => {
|
|
14
|
+
directories: string[];
|
|
15
|
+
modules: string[];
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/FileExplorer/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,sEAMhC;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,WAAW,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,KAAG;IAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAgC7C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const tabsClassName: string;
|
|
2
|
+
export declare const tabsScrollableClassName: string;
|
|
3
|
+
export declare const closeButtonClassName: string;
|
|
4
|
+
export declare const tabContainer: string;
|
|
5
|
+
export declare const tabButton: string;
|
|
6
|
+
//# sourceMappingURL=FileTabs.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileTabs.css.d.ts","sourceRoot":"","sources":["../../../../src/components/FileTabs/FileTabs.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,QAGxB,CAAC;AAEH,eAAO,MAAM,uBAAuB,QAQlC,CAAC;AAEH,eAAO,MAAM,oBAAoB,QAS/B,CAAC;AAUH,eAAO,MAAM,YAAY,QAavB,CAAC;AAEH,eAAO,MAAM,SAAS,QAUpB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { tabButton } from "./FileTabs.css";
|
|
3
|
+
export { tabButton };
|
|
4
|
+
export interface FileTabsProps {
|
|
5
|
+
/**
|
|
6
|
+
* This adds a close button next to each file with a unique trigger to close it.
|
|
7
|
+
*/
|
|
8
|
+
closableTabs?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* unique id appended with active files. This is
|
|
11
|
+
* used in aria-controls value along the combination of activeFile
|
|
12
|
+
*/
|
|
13
|
+
activeFileUniqueId?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* FileTabs is a list of all open files, the active file, and its state.
|
|
17
|
+
*/
|
|
18
|
+
export declare const FileTabs: ({ closableTabs, className, activeFileUniqueId, ...props }: FileTabsProps & React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/FileTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,EAEL,SAAS,EAIV,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AAEH,eAAO,MAAM,QAAQ,GAAI,2DAKtB,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,KAAG,KAAK,CAAC,GAAG,CAAC,OAgJnE,CAAC"}
|