@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,9 @@
|
|
|
1
|
+
export * from "./Layout";
|
|
2
|
+
export * from "./Stack";
|
|
3
|
+
export * from "./ErrorOverlay";
|
|
4
|
+
export * from "./LoadingOverlay";
|
|
5
|
+
export * from "./OpenInCodeSandboxButton";
|
|
6
|
+
export * from "./RunButton";
|
|
7
|
+
export * from "./RoundedButton";
|
|
8
|
+
export * from "./DependenciesProgress";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const SignInIcon: () => React.ReactElement;
|
|
3
|
+
export declare const SignOutIcon: () => React.ReactElement;
|
|
4
|
+
export declare const RestartIcon: () => React.ReactElement;
|
|
5
|
+
export declare const RunIcon: () => React.ReactElement;
|
|
6
|
+
export declare const BackwardIcon: () => React.ReactElement;
|
|
7
|
+
export declare const ForwardIcon: () => React.ReactElement;
|
|
8
|
+
export declare const RefreshIcon: () => React.ReactElement;
|
|
9
|
+
export declare const CleanIcon: () => React.ReactElement;
|
|
10
|
+
export declare const ExportIcon: () => React.ReactElement;
|
|
11
|
+
export declare const DirectoryIconOpen: () => React.ReactElement;
|
|
12
|
+
export declare const DirectoryIconClosed: () => React.ReactElement;
|
|
13
|
+
export declare const FileIcon: () => React.ReactElement;
|
|
14
|
+
export declare const CloseIcon: () => React.ReactElement;
|
|
15
|
+
export declare const ConsoleIcon: () => React.ReactElement;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,eAAO,MAAM,UAAU,QAAO,KAAK,CAAC,YAKnC,CAAC;AAEF,eAAO,MAAM,WAAW,QAAO,KAAK,CAAC,YAKpC,CAAC;AAEF,eAAO,MAAM,WAAW,QAAO,KAAK,CAAC,YA0BpC,CAAC;AAEF,eAAO,MAAM,OAAO,QAAO,KAAK,CAAC,YAKhC,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,KAAK,CAAC,YAKrC,CAAC;AAEF,eAAO,MAAM,WAAW,QAAO,KAAK,CAAC,YAKpC,CAAC;AAEF,eAAO,MAAM,WAAW,QAAO,KAAK,CAAC,YASpC,CAAC;AAEF,eAAO,MAAM,SAAS,QAAO,KAAK,CAAC,YAMlC,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,KAAK,CAAC,YAanC,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,KAAK,CAAC,YAc1C,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,KAAK,CAAC,YAU5C,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,KAAK,CAAC,YASjC,CAAC;AAEF,eAAO,MAAM,SAAS,QAAO,KAAK,CAAC,YAMlC,CAAC;AAEF,eAAO,MAAM,WAAW,QAAO,KAAK,CAAC,YAMpC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./CodeEditor";
|
|
2
|
+
export * from "./CodeViewer";
|
|
3
|
+
export * from "./FileExplorer";
|
|
4
|
+
export * from "./FileTabs";
|
|
5
|
+
export * from "./Navigator";
|
|
6
|
+
export * from "./Preview";
|
|
7
|
+
export * from "./TranspiledCode";
|
|
8
|
+
export * from "./Tests";
|
|
9
|
+
export * from "./Console";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SandpackContext, SandpackProviderProps } from "../types";
|
|
3
|
+
declare const Sandpack: React.Context<SandpackContext | null>;
|
|
4
|
+
export { SandpackFS } from "@immediately-run/sandpack-client";
|
|
5
|
+
export declare const SandpackProvider: React.FC<SandpackProviderProps>;
|
|
6
|
+
/**
|
|
7
|
+
* @category Provider
|
|
8
|
+
*/
|
|
9
|
+
declare const SandpackConsumer: React.Consumer<SandpackContext | null>;
|
|
10
|
+
export { SandpackConsumer, Sandpack as SandpackReactContext };
|
|
11
|
+
//# sourceMappingURL=sandpackContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandpackContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/sandpackContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAOvE,QAAA,MAAM,QAAQ,uCAAoD,CAAC;AAEnE,OAAO,EACL,UAAU,EACX,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA4C5D,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,gBAAgB,wCAAoB,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,QAAQ,IAAI,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FilesState } from "./useFiles";
|
|
2
|
+
/**
|
|
3
|
+
* Build a fully-initialized {@link FilesState} for unit tests that exercise
|
|
4
|
+
* client or context hooks without going through React's async init path.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createTestFilesState(files?: Record<string, string>): Promise<FilesState & {
|
|
7
|
+
visibleFilesFromProps: string[];
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=testHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testHelpers.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/utils/testHelpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAuB,GAClD,OAAO,CAAC,UAAU,GAAG;IAAE,qBAAqB,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAmB3D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SandpackFS } from "@immediately-run/sandpack-client";
|
|
2
|
+
import type { SandpackProviderProps } from "../..";
|
|
3
|
+
interface SandpackAppState {
|
|
4
|
+
editorState: "pristine" | "dirty";
|
|
5
|
+
}
|
|
6
|
+
type UseAppState = (props: SandpackProviderProps, fs: SandpackFS | null, fileList: string[]) => SandpackAppState;
|
|
7
|
+
/**
|
|
8
|
+
* Tracks whether the user has edited any file relative to the initial
|
|
9
|
+
* contents. A "pristine" snapshot is captured on the first render with a
|
|
10
|
+
* resolved filesystem, and subsequent fs notifications trigger content
|
|
11
|
+
* comparisons.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useAppState: UseAppState;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=useAppState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppState.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/utils/useAppState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAGnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,UAAU,gBAAgB;IACxB,WAAW,EAAE,UAAU,GAAG,OAAO,CAAC;CACnC;AAED,KAAK,WAAW,GAAG,CACjB,KAAK,EAAE,qBAAqB,EAC5B,EAAE,EAAE,UAAU,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,EAAE,KACf,gBAAgB,CAAC;AAEtB;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,WAiEzB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { BundlerState, ListenerFunction, ReactDevToolsMode, SandpackError, SandpackMessage, UnsubscribeFunction, SandpackClient } from "@immediately-run/sandpack-client";
|
|
2
|
+
import type { SandpackInitMode, SandpackProviderProps, SandpackStatus } from "../..";
|
|
3
|
+
import type { FilesState } from "./useFiles";
|
|
4
|
+
type SandpackClientType = InstanceType<typeof SandpackClient>;
|
|
5
|
+
interface SandpackConfigState {
|
|
6
|
+
reactDevTools?: ReactDevToolsMode;
|
|
7
|
+
startRoute?: string;
|
|
8
|
+
initMode: SandpackInitMode;
|
|
9
|
+
bundlerState: BundlerState | undefined;
|
|
10
|
+
error: SandpackError | null;
|
|
11
|
+
status: SandpackStatus;
|
|
12
|
+
}
|
|
13
|
+
export interface ClientPropsOverride {
|
|
14
|
+
startRoute?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface UseClientOperations {
|
|
17
|
+
clients: Record<string, SandpackClientType>;
|
|
18
|
+
initializeSandpackIframe: () => void;
|
|
19
|
+
runSandpack: () => Promise<void>;
|
|
20
|
+
unregisterBundler: (clientId: string) => void;
|
|
21
|
+
registerBundler: (iframe: HTMLIFrameElement, clientId: string, clientPropsOverride?: ClientPropsOverride) => Promise<void>;
|
|
22
|
+
registerReactDevTools: (value: ReactDevToolsMode) => void;
|
|
23
|
+
addListener: (listener: ListenerFunction, clientId?: string) => UnsubscribeFunction;
|
|
24
|
+
dispatchMessage: (message: SandpackMessage, clientId?: string) => void;
|
|
25
|
+
lazyAnchorRef: React.RefObject<HTMLDivElement | null>;
|
|
26
|
+
unsubscribeClientListenersRef: React.MutableRefObject<Record<string, Record<string, UnsubscribeFunction>>>;
|
|
27
|
+
queuedListenersRef: React.MutableRefObject<Record<string, Record<string, ListenerFunction>>>;
|
|
28
|
+
}
|
|
29
|
+
type UseClient = (props: SandpackProviderProps, filesState: FilesState) => [SandpackConfigState, UseClientOperations];
|
|
30
|
+
export declare const useClient: UseClient;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=useClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useClient.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/utils/useClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,cAAc,EACf,MAAM,kCAAkC,CAAC;AAK1C,OAAO,KAAK,EACV,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,KAAK,kBAAkB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAI9D,UAAU,mBAAmB;IAC3B,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAY,EAAE,YAAY,GAAG,SAAS,CAAC;IACvC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC5C,wBAAwB,EAAE,MAAM,IAAI,CAAC;IACrC,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,eAAe,EAAE,CACf,MAAM,EAAE,iBAAiB,EACzB,QAAQ,EAAE,MAAM,EAChB,mBAAmB,CAAC,EAAE,mBAAmB,KACtC,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,qBAAqB,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC1D,WAAW,EAAE,CACX,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,CAAC,EAAE,MAAM,KACd,mBAAmB,CAAC;IACzB,eAAe,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACvE,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACtD,6BAA6B,EAAE,KAAK,CAAC,gBAAgB,CACnD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CACpD,CAAC;IACF,kBAAkB,EAAE,KAAK,CAAC,gBAAgB,CACxC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CACjD,CAAC;CACH;AAED,KAAK,SAAS,GAAG,CACf,KAAK,EAAE,qBAAqB,EAC5B,UAAU,EAAE,UAAU,KACnB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;AAEhD,eAAO,MAAM,SAAS,EAAE,SA2mBvB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { FileMetaMap, SandpackFS } from "@immediately-run/sandpack-client";
|
|
2
|
+
import type { SandboxEnvironment, SandpackProviderProps } from "../..";
|
|
3
|
+
export interface FilesState {
|
|
4
|
+
fs: SandpackFS;
|
|
5
|
+
fileList: string[];
|
|
6
|
+
fileMeta: FileMetaMap;
|
|
7
|
+
environment?: SandboxEnvironment;
|
|
8
|
+
visibleFiles: string[];
|
|
9
|
+
activeFile: string;
|
|
10
|
+
shouldUpdatePreview: boolean;
|
|
11
|
+
/** True while the async path enumeration is in flight. */
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface FilesOperations {
|
|
15
|
+
openFile: (path: string) => void;
|
|
16
|
+
resetFile: (path: string) => Promise<void>;
|
|
17
|
+
resetAllFiles: () => Promise<void>;
|
|
18
|
+
setActiveFile: (path: string) => void;
|
|
19
|
+
updateCurrentFile: (code: string, shouldUpdatePreview?: boolean) => Promise<void>;
|
|
20
|
+
updateFile: (path: string, code: string, shouldUpdatePreview?: boolean) => Promise<void>;
|
|
21
|
+
addFile: (path: string, code: string, shouldUpdatePreview?: boolean) => Promise<void>;
|
|
22
|
+
closeFile: (path: string) => void;
|
|
23
|
+
deleteFile: (path: string, shouldUpdatePreview?: boolean) => Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
export type UseFiles = (props: SandpackProviderProps) => [
|
|
26
|
+
FilesState & {
|
|
27
|
+
visibleFilesFromProps: string[];
|
|
28
|
+
},
|
|
29
|
+
FilesOperations
|
|
30
|
+
];
|
|
31
|
+
/**
|
|
32
|
+
* Manages the {@link SandpackFS} lifecycle for a provider.
|
|
33
|
+
*
|
|
34
|
+
* The supplied `props.fs` is used directly as the source of truth. On mount,
|
|
35
|
+
* the hook enumerates paths and derives `visibleFiles` / `activeFile` from the
|
|
36
|
+
* sidecar metadata. `isLoading` stays true until that first enumeration
|
|
37
|
+
* completes.
|
|
38
|
+
*/
|
|
39
|
+
export declare const useFiles: UseFiles;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=useFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFiles.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/utils/useFiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAIhF,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEvE,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,UAAU,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,0DAA0D;IAC1D,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,eAAe;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,iBAAiB,EAAE,CACjB,IAAI,EAAE,MAAM,EACZ,mBAAmB,CAAC,EAAE,OAAO,KAC1B,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,UAAU,EAAE,CACV,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,mBAAmB,CAAC,EAAE,OAAO,KAC1B,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,OAAO,EAAE,CACP,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,mBAAmB,CAAC,EAAE,OAAO,KAC1B,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,mBAAmB,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5E;AAED,MAAM,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,qBAAqB,KAAK;IACvD,UAAU,GAAG;QACX,qBAAqB,EAAE,MAAM,EAAE,CAAC;KACjC;IACD,eAAe;CAChB,CAAC;AAmBF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,QA+OtB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./useActiveCode";
|
|
2
|
+
export * from "./useErrorMessage";
|
|
3
|
+
export * from "./useLoadingOverlayState";
|
|
4
|
+
export * from "./useSandpack";
|
|
5
|
+
export * from "./useSandpackNavigation";
|
|
6
|
+
export * from "./useSandpackTheme";
|
|
7
|
+
export * from "./useTranspiledCode";
|
|
8
|
+
export * from "./useSandpackClient";
|
|
9
|
+
export * from "./useSandpackShell";
|
|
10
|
+
export * from "./useSandpackPreviewProgress";
|
|
11
|
+
export * from "./useSandpackShellStdout";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the current contents of the active file together with helpers to
|
|
3
|
+
* edit it. Content is fetched asynchronously from the backing
|
|
4
|
+
* {@link import("@immediately-run/sandpack-client").SandpackFS} so
|
|
5
|
+
* `code` is `undefined` until the first read resolves (reflected via
|
|
6
|
+
* `isLoading`).
|
|
7
|
+
*
|
|
8
|
+
* The editor owns the active file's buffer: `code` is loaded once per file and
|
|
9
|
+
* re-read only when the file is changed *externally* (i.e. by code running in
|
|
10
|
+
* the child iframe). The editor's own edits are never read back — that's what
|
|
11
|
+
* keeps typing free of echo/clobber.
|
|
12
|
+
*
|
|
13
|
+
* @category Hooks
|
|
14
|
+
*/
|
|
15
|
+
export declare const useActiveCode: () => {
|
|
16
|
+
code: string;
|
|
17
|
+
readOnly: boolean;
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
updateCode: (newCode: string, shouldUpdatePreview?: boolean) => Promise<void>;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useActiveCode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useActiveCode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useActiveCode.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,QAAO;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,mBAAmB,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAkD/E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useErrorMessage.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useErrorMessage.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,MAAM,GAAG,IAK3C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type LoadingOverlayState = "LOADING" | "PRE_FADING" | "FADING" | "HIDDEN" | "TIMEOUT";
|
|
2
|
+
export declare const FADE_ANIMATION_DURATION = 200;
|
|
3
|
+
/**
|
|
4
|
+
* @category Hooks
|
|
5
|
+
*/
|
|
6
|
+
export declare const useLoadingOverlayState: (clientId?: string, externalLoading?: boolean) => LoadingOverlayState;
|
|
7
|
+
//# sourceMappingURL=useLoadingOverlayState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLoadingOverlayState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useLoadingOverlayState.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,sBAAsB,GACjC,WAAW,MAAM,EACjB,kBAAkB,OAAO,KACxB,mBAuDF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SandpackClientDispatch, SandpackClientListen, SandpackState } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* @category Hooks
|
|
4
|
+
*/
|
|
5
|
+
export interface UseSandpack {
|
|
6
|
+
sandpack: SandpackState;
|
|
7
|
+
dispatch: SandpackClientDispatch;
|
|
8
|
+
listen: SandpackClientListen;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @category Hooks
|
|
12
|
+
*/
|
|
13
|
+
export declare function useSandpack(): UseSandpack;
|
|
14
|
+
//# sourceMappingURL=useSandpack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSandpack.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSandpack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACd,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,WAAW,CAgBzC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ListenerFunction, SandpackClient, SandpackMessage, UnsubscribeFunction } from "@immediately-run/sandpack-client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { ClientPropsOverride } from "../contexts/utils/useClient";
|
|
4
|
+
import type { SandpackState } from "../types";
|
|
5
|
+
interface UseSandpackClient {
|
|
6
|
+
sandpack: SandpackState;
|
|
7
|
+
getClient: () => InstanceType<typeof SandpackClient> | null;
|
|
8
|
+
iframe: React.MutableRefObject<HTMLIFrameElement | null>;
|
|
9
|
+
listen: (listener: ListenerFunction) => UnsubscribeFunction;
|
|
10
|
+
dispatch: (message: SandpackMessage) => void;
|
|
11
|
+
clientId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* It registers a new sandpack client and returns its instance,
|
|
15
|
+
* listeners, and dispatch function. Using it when creating a custom
|
|
16
|
+
* component to interact directly with the client is recommended.
|
|
17
|
+
* For other cases, use `useSandpack` instead.
|
|
18
|
+
*
|
|
19
|
+
* @category Hooks
|
|
20
|
+
*/
|
|
21
|
+
export declare const useSandpackClient: (clientPropsOverride?: ClientPropsOverride) => UseSandpackClient;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=useSandpackClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSandpackClient.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSandpackClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,UAAU,iBAAiB;IACzB,QAAQ,EAAE,aAAa,CAAC;IACxB,SAAS,EAAE,MAAM,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG,IAAI,CAAC;IAC5D,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACzD,MAAM,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,mBAAmB,CAAC;IAC5D,QAAQ,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAC5B,sBAAsB,mBAAmB,KACxC,iBAiCF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSandpackNavigation.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSandpackNavigation.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,WAAW,MAAM,KAChB;IACD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CASrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSandpackPreviewProgress.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSandpackPreviewProgress.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,0BAA0B,GACrC,OACI;IACE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GACD,SAAS,kBAqEd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSandpackShell.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSandpackShell.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,WAAW,MAAM,KAChB;IACD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,IAAI,CAAC;CAQzB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useSandpackShellStdout: ({ clientId, maxMessageCount, resetOnPreviewRestart: _resetOnPreviewRestart, }: {
|
|
2
|
+
clientId?: string;
|
|
3
|
+
maxMessageCount?: number;
|
|
4
|
+
resetOnPreviewRestart?: boolean;
|
|
5
|
+
}) => {
|
|
6
|
+
logs: Array<{
|
|
7
|
+
id: string;
|
|
8
|
+
data: string;
|
|
9
|
+
}>;
|
|
10
|
+
reset: () => void;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useSandpackShellStdout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSandpackShellStdout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSandpackShellStdout.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB,GAAI,+EAIpC;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,KAAG;IACF,IAAI,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC1C,KAAK,EAAE,MAAM,IAAI,CAAC;CAmCnB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SandpackTheme } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* @category Hooks
|
|
4
|
+
*/
|
|
5
|
+
export declare const useSandpackTheme: () => {
|
|
6
|
+
theme: SandpackTheme;
|
|
7
|
+
themeId: string;
|
|
8
|
+
themeMode: "dark" | "light" | "auto";
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useSandpackTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSandpackTheme.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSandpackTheme.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO;IAClC,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CAItC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTranspiledCode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTranspiledCode.ts"],"names":[],"mappings":"AAcA;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAO,MAAM,GAAG,IAO7C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./components/icons";
|
|
2
|
+
export * from "./components";
|
|
3
|
+
export * from "./components/common";
|
|
4
|
+
export * from "./hooks";
|
|
5
|
+
export { useClassNames } from "./utils/classNames";
|
|
6
|
+
export { getSandpackCssText } from "./styles/getSandpackCssText";
|
|
7
|
+
export * from "./styles/themeContext";
|
|
8
|
+
export * from "./contexts/sandpackContext";
|
|
9
|
+
export * from "./presets/";
|
|
10
|
+
export * from "./themes";
|
|
11
|
+
export * from "./types";
|
|
12
|
+
export * from "./templates";
|
|
13
|
+
export { createSandpackFS, resolveFile, createSandpackFromFS } from "./utils/createSandpackFS";
|
|
14
|
+
export type { CreateSandpackFSOptions, SandboxTemplate, } from "./utils/createSandpackFS";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAG3C,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAG5B,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC/F,YAAY,EACV,uBAAuB,EACvB,eAAe,GAChB,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const dragHandler: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
direction: {
|
|
3
|
+
vertical: {
|
|
4
|
+
right: number;
|
|
5
|
+
left: number;
|
|
6
|
+
height: number;
|
|
7
|
+
cursor: "ns-resize";
|
|
8
|
+
};
|
|
9
|
+
horizontal: {
|
|
10
|
+
top: number;
|
|
11
|
+
bottom: number;
|
|
12
|
+
width: number;
|
|
13
|
+
cursor: "ew-resize";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
export declare const buttonCounter: string;
|
|
18
|
+
export declare const consoleWrapper: string;
|
|
19
|
+
export declare const rtlLayoutClassName: string;
|
|
20
|
+
//# sourceMappingURL=Sandpack.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sandpack.css.d.ts","sourceRoot":"","sources":["../../../../src/presets/Sandpack.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;EA2BtB,CAAC;AAEH,eAAO,MAAM,aAAa,QAExB,CAAC;AAiBH,eAAO,MAAM,cAAc,QAGzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAS7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sandpack.d.ts","sourceRoot":"","sources":["../../../../src/presets/Sandpack.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,gBAAgB,EAA2B,MAAM,UAAU,CAAC;AAG1E,eAAO,MAAM,QAAQ,EAAE,gBA0QtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presets/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.jest.d.ts","sourceRoot":"","sources":["../../../src/setup.jest.ts"],"names":[],"mappings":"AAGA,OAAO,2CAA2C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module exports a placeholder string. At build time the
|
|
3
|
+
* `rollup-inline-css-text` plugin rewrites the sentinel below with the
|
|
4
|
+
* full extracted stylesheet so `getSandpackCssText()` keeps working for SSR.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CSS_TEXT = "@@SANDPACK_INLINE_CSS_TEXT@@";
|
|
7
|
+
//# sourceMappingURL=cssText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cssText.d.ts","sourceRoot":"","sources":["../../../../../src/styles/__generated__/cssText.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @category Theme
|
|
3
|
+
*
|
|
4
|
+
* Prefix used for every generated CSS variable and component class name.
|
|
5
|
+
* Kept in a standalone module so it can be safely imported from both runtime
|
|
6
|
+
* code and `*.css.ts` files (which are processed at build time by
|
|
7
|
+
* vanilla-extract and therefore must avoid importing larger graphs).
|
|
8
|
+
*/
|
|
9
|
+
export declare const THEME_PREFIX = "sp";
|
|
10
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/styles/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the full Sandpack stylesheet as a string.
|
|
3
|
+
*
|
|
4
|
+
* Useful for SSR scenarios where you want to inline the CSS into the HTML
|
|
5
|
+
* `<style>` tag instead of relying on a separate stylesheet request. The text
|
|
6
|
+
* is generated at build time from every vanilla-extract `*.css.ts` file shipped
|
|
7
|
+
* with `@immediately-run/sandpack-react`.
|
|
8
|
+
*
|
|
9
|
+
* @category Theme
|
|
10
|
+
*
|
|
11
|
+
* Tip: in environments that allow it, prefer importing the stylesheet directly
|
|
12
|
+
* (`import "@immediately-run/sandpack-react/styles.css"`); it lets the browser
|
|
13
|
+
* cache the CSS independently from the HTML payload.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getSandpackCssText: () => string;
|
|
16
|
+
//# sourceMappingURL=getSandpackCssText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSandpackCssText.d.ts","sourceRoot":"","sources":["../../../../src/styles/getSandpackCssText.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,QAAO,MAAkB,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { SandpackTheme, SandpackThemeProp } from "../types";
|
|
2
|
+
import { THEME_PREFIX } from "./constants";
|
|
3
|
+
import { vars } from "./vars.css";
|
|
4
|
+
import type { SandpackVarsContract } from "./vars.css";
|
|
5
|
+
export { THEME_PREFIX };
|
|
6
|
+
export { vars };
|
|
7
|
+
export type { SandpackVarsContract };
|
|
8
|
+
/**
|
|
9
|
+
* Flatten a `SandpackTheme` into the same `{ colors, syntax, font, ... }`
|
|
10
|
+
* record shape that the Stitches integration historically produced.
|
|
11
|
+
*
|
|
12
|
+
* Kept exported (under its old name as well) for backwards compatibility with
|
|
13
|
+
* downstream snapshot tests and consumers that reach into this internal helper.
|
|
14
|
+
*
|
|
15
|
+
* @category Theme
|
|
16
|
+
*/
|
|
17
|
+
export declare const standardizeThemeTokens: (theme: SandpackTheme) => Record<string, Record<string, string>>;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `standardizeThemeTokens` instead — kept for backwards
|
|
20
|
+
* compatibility with consumers that imported the old Stitches-flavoured name.
|
|
21
|
+
*/
|
|
22
|
+
export declare const standardizeStitchesTheme: (theme: SandpackTheme) => Record<string, Record<string, string>>;
|
|
23
|
+
/**
|
|
24
|
+
* Convert a flat token object produced by `standardizeThemeTokens` into the
|
|
25
|
+
* nested shape expected by `assignInlineVars(vars, ...)`.
|
|
26
|
+
*
|
|
27
|
+
* The two big differences vs. the flat record are:
|
|
28
|
+
* - syntax values are nested under `{ color, fontStyle }` to match the contract
|
|
29
|
+
* in `vars.css.ts`;
|
|
30
|
+
* - missing optional values (e.g. `fontStyle` for syntax tokens that are plain
|
|
31
|
+
* colour strings) are filled with empty strings so vanilla-extract is happy.
|
|
32
|
+
*/
|
|
33
|
+
export declare const themeVars: (theme: SandpackTheme) => {
|
|
34
|
+
colors: Record<string, string>;
|
|
35
|
+
syntax: Record<string, {
|
|
36
|
+
color: string;
|
|
37
|
+
fontStyle: string;
|
|
38
|
+
}>;
|
|
39
|
+
font: Record<string, string>;
|
|
40
|
+
space: Record<string, string>;
|
|
41
|
+
border: {
|
|
42
|
+
radius: string;
|
|
43
|
+
};
|
|
44
|
+
layout: {
|
|
45
|
+
height: string;
|
|
46
|
+
headerHeight: string;
|
|
47
|
+
};
|
|
48
|
+
transitions: {
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
zIndices: {
|
|
52
|
+
base: string;
|
|
53
|
+
overlay: string;
|
|
54
|
+
top: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* @category Theme
|
|
59
|
+
*/
|
|
60
|
+
export declare const standardizeTheme: (inputTheme?: SandpackThemeProp) => {
|
|
61
|
+
id: string;
|
|
62
|
+
theme: SandpackTheme;
|
|
63
|
+
mode: "dark" | "light";
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/styles/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGjE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAgBrC;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,aAAa,KACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4BvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,UAnC5B,aAAa,KACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkCsB,CAAC;AAE/D;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,aAAa,KACnB;IACD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3B,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,WAAW,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAgC1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAY,iBAA2B,KACtC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CA4C5D,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const iconStandaloneClassName: string;
|
|
2
|
+
export declare const buttonClassName: string;
|
|
3
|
+
export declare const roundedButtonClassName: string;
|
|
4
|
+
export declare const iconClassName: string;
|
|
5
|
+
export declare const fadeIn: string;
|
|
6
|
+
export declare const absoluteClassName: string;
|
|
7
|
+
export declare const errorClassName: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
8
|
+
solidBg: {
|
|
9
|
+
true: {
|
|
10
|
+
backgroundColor: `var(--${string})`;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
export declare const errorBundlerClassName: string;
|
|
15
|
+
export declare const errorMessageClassName: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
16
|
+
errorCode: {
|
|
17
|
+
true: {
|
|
18
|
+
fontFamily: `var(--${string})`;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=shared.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.css.d.ts","sourceRoot":"","sources":["../../../../src/styles/shared.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,QAAY,CAAC;AAGjD,eAAO,MAAM,eAAe,QAoC1B,CAAC;AAQH,eAAO,MAAM,sBAAsB,QAcjC,CAAC;AAEH,eAAO,MAAM,aAAa,QAAwB,CAAC;AAEnD,eAAO,MAAM,MAAM,QAGjB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAU5B,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;EASzB,CAAC;AAEH,eAAO,MAAM,qBAAqB,QAGhC,CAAC;AAoBH,eAAO,MAAM,qBAAqB;;;;;;EAOhC,CAAC"}
|