@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.
Files changed (582) hide show
  1. package/README.md +60 -0
  2. package/dist/.ir-build-stamp.json +6 -0
  3. package/dist/index.d.ts +1771 -0
  4. package/dist/index.js +5544 -0
  5. package/dist/index.mjs +5440 -0
  6. package/dist/src/components/CodeEditor/CodeMirror.d.ts +50 -0
  7. package/dist/src/components/CodeEditor/CodeMirror.d.ts.map +1 -0
  8. package/dist/src/components/CodeEditor/highlightDecorators.d.ts +4 -0
  9. package/dist/src/components/CodeEditor/highlightDecorators.d.ts.map +1 -0
  10. package/dist/src/components/CodeEditor/highlightInlineError.d.ts +3 -0
  11. package/dist/src/components/CodeEditor/highlightInlineError.d.ts.map +1 -0
  12. package/dist/src/components/CodeEditor/index.d.ts +50 -0
  13. package/dist/src/components/CodeEditor/index.d.ts.map +1 -0
  14. package/dist/src/components/CodeEditor/languages-mocks.d.ts +9 -0
  15. package/dist/src/components/CodeEditor/languages-mocks.d.ts.map +1 -0
  16. package/dist/src/components/CodeEditor/styles.css.d.ts +6 -0
  17. package/dist/src/components/CodeEditor/styles.css.d.ts.map +1 -0
  18. package/dist/src/components/CodeEditor/useSyntaxHighlight.d.ts +7 -0
  19. package/dist/src/components/CodeEditor/useSyntaxHighlight.d.ts.map +1 -0
  20. package/dist/src/components/CodeEditor/utils.d.ts +16 -0
  21. package/dist/src/components/CodeEditor/utils.d.ts.map +1 -0
  22. package/dist/src/components/CodeViewer/index.d.ts +28 -0
  23. package/dist/src/components/CodeViewer/index.d.ts.map +1 -0
  24. package/dist/src/components/Console/ConsoleList.css.d.ts +29 -0
  25. package/dist/src/components/Console/ConsoleList.css.d.ts.map +1 -0
  26. package/dist/src/components/Console/ConsoleList.d.ts +6 -0
  27. package/dist/src/components/Console/ConsoleList.d.ts.map +1 -0
  28. package/dist/src/components/Console/Header.css.d.ts +5 -0
  29. package/dist/src/components/Console/Header.css.d.ts.map +1 -0
  30. package/dist/src/components/Console/Header.d.ts +7 -0
  31. package/dist/src/components/Console/Header.d.ts.map +1 -0
  32. package/dist/src/components/Console/SandpackConsole.css.d.ts +4 -0
  33. package/dist/src/components/Console/SandpackConsole.css.d.ts.map +1 -0
  34. package/dist/src/components/Console/SandpackConsole.d.ts +27 -0
  35. package/dist/src/components/Console/SandpackConsole.d.ts.map +1 -0
  36. package/dist/src/components/Console/StdoutList.css.d.ts +2 -0
  37. package/dist/src/components/Console/StdoutList.css.d.ts.map +1 -0
  38. package/dist/src/components/Console/StdoutList.d.ts +8 -0
  39. package/dist/src/components/Console/StdoutList.d.ts.map +1 -0
  40. package/dist/src/components/Console/index.d.ts +3 -0
  41. package/dist/src/components/Console/index.d.ts.map +1 -0
  42. package/dist/src/components/Console/useSandpackConsole.d.ts +16 -0
  43. package/dist/src/components/Console/useSandpackConsole.d.ts.map +1 -0
  44. package/dist/src/components/Console/utils/constraints.d.ts +14 -0
  45. package/dist/src/components/Console/utils/constraints.d.ts.map +1 -0
  46. package/dist/src/components/Console/utils/fromConsoleToString.d.ts +13 -0
  47. package/dist/src/components/Console/utils/fromConsoleToString.d.ts.map +1 -0
  48. package/dist/src/components/Console/utils/getType.d.ts +8 -0
  49. package/dist/src/components/Console/utils/getType.d.ts.map +1 -0
  50. package/dist/src/components/Console/utils/transformers.d.ts +5 -0
  51. package/dist/src/components/Console/utils/transformers.d.ts.map +1 -0
  52. package/dist/src/components/FileExplorer/File.css.d.ts +2 -0
  53. package/dist/src/components/FileExplorer/File.css.d.ts.map +1 -0
  54. package/dist/src/components/FileExplorer/File.d.ts +11 -0
  55. package/dist/src/components/FileExplorer/File.d.ts.map +1 -0
  56. package/dist/src/components/FileExplorer/FileExplorer.css.d.ts +2 -0
  57. package/dist/src/components/FileExplorer/FileExplorer.css.d.ts.map +1 -0
  58. package/dist/src/components/FileExplorer/ModuleList.d.ts +25 -0
  59. package/dist/src/components/FileExplorer/ModuleList.d.ts.map +1 -0
  60. package/dist/src/components/FileExplorer/index.d.ts +13 -0
  61. package/dist/src/components/FileExplorer/index.d.ts.map +1 -0
  62. package/dist/src/components/FileExplorer/utils.d.ts +17 -0
  63. package/dist/src/components/FileExplorer/utils.d.ts.map +1 -0
  64. package/dist/src/components/FileTabs/FileTabs.css.d.ts +6 -0
  65. package/dist/src/components/FileTabs/FileTabs.css.d.ts.map +1 -0
  66. package/dist/src/components/FileTabs/index.d.ts +19 -0
  67. package/dist/src/components/FileTabs/index.d.ts.map +1 -0
  68. package/dist/src/components/Navigator/Navigator.css.d.ts +4 -0
  69. package/dist/src/components/Navigator/Navigator.css.d.ts.map +1 -0
  70. package/dist/src/components/Navigator/index.d.ts +8 -0
  71. package/dist/src/components/Navigator/index.d.ts.map +1 -0
  72. package/dist/src/components/Navigator/utils.d.ts +2 -0
  73. package/dist/src/components/Navigator/utils.d.ts.map +1 -0
  74. package/dist/src/components/Preview/Preview.css.d.ts +4 -0
  75. package/dist/src/components/Preview/Preview.css.d.ts.map +1 -0
  76. package/dist/src/components/Preview/index.d.ts +31 -0
  77. package/dist/src/components/Preview/index.d.ts.map +1 -0
  78. package/dist/src/components/ReactDevTools/ReactDevTools.css.d.ts +2 -0
  79. package/dist/src/components/ReactDevTools/ReactDevTools.css.d.ts.map +1 -0
  80. package/dist/src/components/ReactDevTools/index.d.ts +8 -0
  81. package/dist/src/components/ReactDevTools/index.d.ts.map +1 -0
  82. package/dist/src/components/Tests/Describes.css.d.ts +3 -0
  83. package/dist/src/components/Tests/Describes.css.d.ts.map +1 -0
  84. package/dist/src/components/Tests/Describes.d.ts +11 -0
  85. package/dist/src/components/Tests/Describes.d.ts.map +1 -0
  86. package/dist/src/components/Tests/FormattedError.css.d.ts +2 -0
  87. package/dist/src/components/Tests/FormattedError.css.d.ts.map +1 -0
  88. package/dist/src/components/Tests/FormattedError.d.ts +9 -0
  89. package/dist/src/components/Tests/FormattedError.d.ts.map +1 -0
  90. package/dist/src/components/Tests/Header.css.d.ts +5 -0
  91. package/dist/src/components/Tests/Header.css.d.ts.map +1 -0
  92. package/dist/src/components/Tests/Header.d.ts +18 -0
  93. package/dist/src/components/Tests/Header.d.ts.map +1 -0
  94. package/dist/src/components/Tests/RunButton.d.ts +5 -0
  95. package/dist/src/components/Tests/RunButton.d.ts.map +1 -0
  96. package/dist/src/components/Tests/SandpackTests.css.d.ts +4 -0
  97. package/dist/src/components/Tests/SandpackTests.css.d.ts.map +1 -0
  98. package/dist/src/components/Tests/SandpackTests.d.ts +18 -0
  99. package/dist/src/components/Tests/SandpackTests.d.ts.map +1 -0
  100. package/dist/src/components/Tests/Specs.css.d.ts +9 -0
  101. package/dist/src/components/Tests/Specs.css.d.ts.map +1 -0
  102. package/dist/src/components/Tests/Specs.d.ts +17 -0
  103. package/dist/src/components/Tests/Specs.d.ts.map +1 -0
  104. package/dist/src/components/Tests/Summary.css.d.ts +4 -0
  105. package/dist/src/components/Tests/Summary.css.d.ts.map +1 -0
  106. package/dist/src/components/Tests/Summary.d.ts +20 -0
  107. package/dist/src/components/Tests/Summary.d.ts.map +1 -0
  108. package/dist/src/components/Tests/Tests.css.d.ts +6 -0
  109. package/dist/src/components/Tests/Tests.css.d.ts.map +1 -0
  110. package/dist/src/components/Tests/Tests.d.ts +17 -0
  111. package/dist/src/components/Tests/Tests.d.ts.map +1 -0
  112. package/dist/src/components/Tests/index.d.ts +2 -0
  113. package/dist/src/components/Tests/index.d.ts.map +1 -0
  114. package/dist/src/components/Tests/style.css.d.ts +8 -0
  115. package/dist/src/components/Tests/style.css.d.ts.map +1 -0
  116. package/dist/src/components/Tests/style.d.ts +3 -0
  117. package/dist/src/components/Tests/style.d.ts.map +1 -0
  118. package/dist/src/components/Tests/utils.d.ts +14 -0
  119. package/dist/src/components/Tests/utils.d.ts.map +1 -0
  120. package/dist/src/components/TranspiledCode/TranspiledCode.css.d.ts +2 -0
  121. package/dist/src/components/TranspiledCode/TranspiledCode.css.d.ts.map +1 -0
  122. package/dist/src/components/TranspiledCode/index.d.ts +4 -0
  123. package/dist/src/components/TranspiledCode/index.d.ts.map +1 -0
  124. package/dist/src/components/common/DependenciesProgress.css.d.ts +2 -0
  125. package/dist/src/components/common/DependenciesProgress.css.d.ts.map +1 -0
  126. package/dist/src/components/common/DependenciesProgress.d.ts +4 -0
  127. package/dist/src/components/common/DependenciesProgress.d.ts.map +1 -0
  128. package/dist/src/components/common/ErrorOverlay.d.ts +6 -0
  129. package/dist/src/components/common/ErrorOverlay.d.ts.map +1 -0
  130. package/dist/src/components/common/Layout.css.d.ts +2 -0
  131. package/dist/src/components/common/Layout.css.d.ts.map +1 -0
  132. package/dist/src/components/common/Layout.d.ts +8 -0
  133. package/dist/src/components/common/Layout.d.ts.map +1 -0
  134. package/dist/src/components/common/Loading.css.d.ts +4 -0
  135. package/dist/src/components/common/Loading.css.d.ts.map +1 -0
  136. package/dist/src/components/common/Loading.d.ts +5 -0
  137. package/dist/src/components/common/Loading.d.ts.map +1 -0
  138. package/dist/src/components/common/LoadingOverlay.css.d.ts +5 -0
  139. package/dist/src/components/common/LoadingOverlay.css.d.ts.map +1 -0
  140. package/dist/src/components/common/LoadingOverlay.d.ts +12 -0
  141. package/dist/src/components/common/LoadingOverlay.d.ts.map +1 -0
  142. package/dist/src/components/common/OpenInCodeSandboxButton/OpenInCodeSandboxButton.d.ts +3 -0
  143. package/dist/src/components/common/OpenInCodeSandboxButton/OpenInCodeSandboxButton.d.ts.map +1 -0
  144. package/dist/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.d.ts +7 -0
  145. package/dist/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.d.ts.map +1 -0
  146. package/dist/src/components/common/OpenInCodeSandboxButton/index.d.ts +3 -0
  147. package/dist/src/components/common/OpenInCodeSandboxButton/index.d.ts.map +1 -0
  148. package/dist/src/components/common/RoundedButton.d.ts +3 -0
  149. package/dist/src/components/common/RoundedButton.d.ts.map +1 -0
  150. package/dist/src/components/common/RunButton.css.d.ts +2 -0
  151. package/dist/src/components/common/RunButton.css.d.ts.map +1 -0
  152. package/dist/src/components/common/RunButton.d.ts +3 -0
  153. package/dist/src/components/common/RunButton.d.ts.map +1 -0
  154. package/dist/src/components/common/Stack.css.d.ts +2 -0
  155. package/dist/src/components/common/Stack.css.d.ts.map +1 -0
  156. package/dist/src/components/common/Stack.d.ts +7 -0
  157. package/dist/src/components/common/Stack.d.ts.map +1 -0
  158. package/dist/src/components/common/index.d.ts +9 -0
  159. package/dist/src/components/common/index.d.ts.map +1 -0
  160. package/dist/src/components/icons/index.d.ts +16 -0
  161. package/dist/src/components/icons/index.d.ts.map +1 -0
  162. package/dist/src/components/index.d.ts +10 -0
  163. package/dist/src/components/index.d.ts.map +1 -0
  164. package/dist/src/contexts/sandpackContext.d.ts +11 -0
  165. package/dist/src/contexts/sandpackContext.d.ts.map +1 -0
  166. package/dist/src/contexts/utils/testHelpers.d.ts +9 -0
  167. package/dist/src/contexts/utils/testHelpers.d.ts.map +1 -0
  168. package/dist/src/contexts/utils/useAppState.d.ts +15 -0
  169. package/dist/src/contexts/utils/useAppState.d.ts.map +1 -0
  170. package/dist/src/contexts/utils/useClient.d.ts +32 -0
  171. package/dist/src/contexts/utils/useClient.d.ts.map +1 -0
  172. package/dist/src/contexts/utils/useFiles.d.ts +41 -0
  173. package/dist/src/contexts/utils/useFiles.d.ts.map +1 -0
  174. package/dist/src/hooks/index.d.ts +12 -0
  175. package/dist/src/hooks/index.d.ts.map +1 -0
  176. package/dist/src/hooks/useActiveCode.d.ts +21 -0
  177. package/dist/src/hooks/useActiveCode.d.ts.map +1 -0
  178. package/dist/src/hooks/useErrorMessage.d.ts +5 -0
  179. package/dist/src/hooks/useErrorMessage.d.ts.map +1 -0
  180. package/dist/src/hooks/useLoadingOverlayState.d.ts +7 -0
  181. package/dist/src/hooks/useLoadingOverlayState.d.ts.map +1 -0
  182. package/dist/src/hooks/useSandpack.d.ts +14 -0
  183. package/dist/src/hooks/useSandpack.d.ts.map +1 -0
  184. package/dist/src/hooks/useSandpackClient.d.ts +23 -0
  185. package/dist/src/hooks/useSandpackClient.d.ts.map +1 -0
  186. package/dist/src/hooks/useSandpackNavigation.d.ts +9 -0
  187. package/dist/src/hooks/useSandpackNavigation.d.ts.map +1 -0
  188. package/dist/src/hooks/useSandpackPreviewProgress.d.ts +5 -0
  189. package/dist/src/hooks/useSandpackPreviewProgress.d.ts.map +1 -0
  190. package/dist/src/hooks/useSandpackShell.d.ts +8 -0
  191. package/dist/src/hooks/useSandpackShell.d.ts.map +1 -0
  192. package/dist/src/hooks/useSandpackShellStdout.d.ts +12 -0
  193. package/dist/src/hooks/useSandpackShellStdout.d.ts.map +1 -0
  194. package/dist/src/hooks/useSandpackTheme.d.ts +10 -0
  195. package/dist/src/hooks/useSandpackTheme.d.ts.map +1 -0
  196. package/dist/src/hooks/useTranspiledCode.d.ts +5 -0
  197. package/dist/src/hooks/useTranspiledCode.d.ts.map +1 -0
  198. package/dist/src/index.d.ts +15 -0
  199. package/dist/src/index.d.ts.map +1 -0
  200. package/dist/src/presets/Sandpack.css.d.ts +20 -0
  201. package/dist/src/presets/Sandpack.css.d.ts.map +1 -0
  202. package/dist/src/presets/Sandpack.d.ts +3 -0
  203. package/dist/src/presets/Sandpack.d.ts.map +1 -0
  204. package/dist/src/presets/index.d.ts +2 -0
  205. package/dist/src/presets/index.d.ts.map +1 -0
  206. package/dist/src/setup.jest.d.ts +2 -0
  207. package/dist/src/setup.jest.d.ts.map +1 -0
  208. package/dist/src/styles/__generated__/cssText.d.ts +7 -0
  209. package/dist/src/styles/__generated__/cssText.d.ts.map +1 -0
  210. package/dist/src/styles/constants.d.ts +10 -0
  211. package/dist/src/styles/constants.d.ts.map +1 -0
  212. package/dist/src/styles/getSandpackCssText.d.ts +16 -0
  213. package/dist/src/styles/getSandpackCssText.d.ts.map +1 -0
  214. package/dist/src/styles/index.d.ts +65 -0
  215. package/dist/src/styles/index.d.ts.map +1 -0
  216. package/dist/src/styles/shared.css.d.ts +22 -0
  217. package/dist/src/styles/shared.css.d.ts.map +1 -0
  218. package/dist/src/styles/themeContext.css.d.ts +17 -0
  219. package/dist/src/styles/themeContext.css.d.ts.map +1 -0
  220. package/dist/src/styles/themeContext.d.ts +21 -0
  221. package/dist/src/styles/themeContext.d.ts.map +1 -0
  222. package/dist/src/styles/vars.css.d.ts +98 -0
  223. package/dist/src/styles/vars.css.d.ts.map +1 -0
  224. package/dist/src/templates/common.d.ts +6 -0
  225. package/dist/src/templates/common.d.ts.map +1 -0
  226. package/dist/src/templates/index.d.ts +549 -0
  227. package/dist/src/templates/index.d.ts.map +1 -0
  228. package/dist/src/templates/node/astro.d.ts +22 -0
  229. package/dist/src/templates/node/astro.d.ts.map +1 -0
  230. package/dist/src/templates/node/nexjs.d.ts +22 -0
  231. package/dist/src/templates/node/nexjs.d.ts.map +1 -0
  232. package/dist/src/templates/node/node.d.ts +13 -0
  233. package/dist/src/templates/node/node.d.ts.map +1 -0
  234. package/dist/src/templates/node/vite-preact-ts.d.ts +34 -0
  235. package/dist/src/templates/node/vite-preact-ts.d.ts.map +1 -0
  236. package/dist/src/templates/node/vite-preact.d.ts +25 -0
  237. package/dist/src/templates/node/vite-preact.d.ts.map +1 -0
  238. package/dist/src/templates/node/vite-react-ts.d.ts +34 -0
  239. package/dist/src/templates/node/vite-react-ts.d.ts.map +1 -0
  240. package/dist/src/templates/node/vite-react.d.ts +25 -0
  241. package/dist/src/templates/node/vite-react.d.ts.map +1 -0
  242. package/dist/src/templates/node/vite-svelte-ts.d.ts +37 -0
  243. package/dist/src/templates/node/vite-svelte-ts.d.ts.map +1 -0
  244. package/dist/src/templates/node/vite-svelte.d.ts +25 -0
  245. package/dist/src/templates/node/vite-svelte.d.ts.map +1 -0
  246. package/dist/src/templates/node/vite-vue-ts.d.ts +34 -0
  247. package/dist/src/templates/node/vite-vue-ts.d.ts.map +1 -0
  248. package/dist/src/templates/node/vite-vue.d.ts +25 -0
  249. package/dist/src/templates/node/vite-vue.d.ts.map +1 -0
  250. package/dist/src/templates/node/vite.d.ts +19 -0
  251. package/dist/src/templates/node/vite.d.ts.map +1 -0
  252. package/dist/src/templates/runtime/angular.d.ts +31 -0
  253. package/dist/src/templates/runtime/angular.d.ts.map +1 -0
  254. package/dist/src/templates/runtime/react-typescript.d.ts +25 -0
  255. package/dist/src/templates/runtime/react-typescript.d.ts.map +1 -0
  256. package/dist/src/templates/runtime/react.d.ts +22 -0
  257. package/dist/src/templates/runtime/react.d.ts.map +1 -0
  258. package/dist/src/templates/runtime/solid.d.ts +22 -0
  259. package/dist/src/templates/runtime/solid.d.ts.map +1 -0
  260. package/dist/src/templates/runtime/svelte.d.ts +22 -0
  261. package/dist/src/templates/runtime/svelte.d.ts.map +1 -0
  262. package/dist/src/templates/runtime/tests-ts.d.ts +20 -0
  263. package/dist/src/templates/runtime/tests-ts.d.ts.map +1 -0
  264. package/dist/src/templates/runtime/vanilla-typescript.d.ts +22 -0
  265. package/dist/src/templates/runtime/vanilla-typescript.d.ts.map +1 -0
  266. package/dist/src/templates/runtime/vanilla.d.ts +19 -0
  267. package/dist/src/templates/runtime/vanilla.d.ts.map +1 -0
  268. package/dist/src/templates/runtime/vue-ts.d.ts +26 -0
  269. package/dist/src/templates/runtime/vue-ts.d.ts.map +1 -0
  270. package/dist/src/templates/runtime/vue.d.ts +22 -0
  271. package/dist/src/templates/runtime/vue.d.ts.map +1 -0
  272. package/dist/src/templates/static.d.ts +16 -0
  273. package/dist/src/templates/static.d.ts.map +1 -0
  274. package/dist/src/themes/index.d.ts +14 -0
  275. package/dist/src/themes/index.d.ts.map +1 -0
  276. package/dist/src/types.d.ts +477 -0
  277. package/dist/src/types.d.ts.map +1 -0
  278. package/dist/src/utils/ansi-to-react.d.ts +13 -0
  279. package/dist/src/utils/ansi-to-react.d.ts.map +1 -0
  280. package/dist/src/utils/array.d.ts +2 -0
  281. package/dist/src/utils/array.d.ts.map +1 -0
  282. package/dist/src/utils/classNames.d.ts +6 -0
  283. package/dist/src/utils/classNames.d.ts.map +1 -0
  284. package/dist/src/utils/createSandpackFS.d.ts +35 -0
  285. package/dist/src/utils/createSandpackFS.d.ts.map +1 -0
  286. package/dist/src/utils/storyHelpers.d.ts +9 -0
  287. package/dist/src/utils/storyHelpers.d.ts.map +1 -0
  288. package/dist/src/utils/stringUtils.d.ts +10 -0
  289. package/dist/src/utils/stringUtils.d.ts.map +1 -0
  290. package/dist/src/utils/useAsyncSandpackId.d.ts +9 -0
  291. package/dist/src/utils/useAsyncSandpackId.d.ts.map +1 -0
  292. package/dist/styles.css +890 -0
  293. package/dist/unstyled/index.js +5942 -0
  294. package/dist/unstyled/index.mjs +5838 -0
  295. package/dist/unstyled/src/components/CodeEditor/CodeMirror.d.ts +50 -0
  296. package/dist/unstyled/src/components/CodeEditor/CodeMirror.d.ts.map +1 -0
  297. package/dist/unstyled/src/components/CodeEditor/highlightDecorators.d.ts +4 -0
  298. package/dist/unstyled/src/components/CodeEditor/highlightDecorators.d.ts.map +1 -0
  299. package/dist/unstyled/src/components/CodeEditor/highlightInlineError.d.ts +3 -0
  300. package/dist/unstyled/src/components/CodeEditor/highlightInlineError.d.ts.map +1 -0
  301. package/dist/unstyled/src/components/CodeEditor/index.d.ts +50 -0
  302. package/dist/unstyled/src/components/CodeEditor/index.d.ts.map +1 -0
  303. package/dist/unstyled/src/components/CodeEditor/languages-mocks.d.ts +9 -0
  304. package/dist/unstyled/src/components/CodeEditor/languages-mocks.d.ts.map +1 -0
  305. package/dist/unstyled/src/components/CodeEditor/styles.css.d.ts +6 -0
  306. package/dist/unstyled/src/components/CodeEditor/styles.css.d.ts.map +1 -0
  307. package/dist/unstyled/src/components/CodeEditor/useSyntaxHighlight.d.ts +7 -0
  308. package/dist/unstyled/src/components/CodeEditor/useSyntaxHighlight.d.ts.map +1 -0
  309. package/dist/unstyled/src/components/CodeEditor/utils.d.ts +16 -0
  310. package/dist/unstyled/src/components/CodeEditor/utils.d.ts.map +1 -0
  311. package/dist/unstyled/src/components/CodeViewer/index.d.ts +28 -0
  312. package/dist/unstyled/src/components/CodeViewer/index.d.ts.map +1 -0
  313. package/dist/unstyled/src/components/Console/ConsoleList.css.d.ts +29 -0
  314. package/dist/unstyled/src/components/Console/ConsoleList.css.d.ts.map +1 -0
  315. package/dist/unstyled/src/components/Console/ConsoleList.d.ts +6 -0
  316. package/dist/unstyled/src/components/Console/ConsoleList.d.ts.map +1 -0
  317. package/dist/unstyled/src/components/Console/Header.css.d.ts +5 -0
  318. package/dist/unstyled/src/components/Console/Header.css.d.ts.map +1 -0
  319. package/dist/unstyled/src/components/Console/Header.d.ts +7 -0
  320. package/dist/unstyled/src/components/Console/Header.d.ts.map +1 -0
  321. package/dist/unstyled/src/components/Console/SandpackConsole.css.d.ts +4 -0
  322. package/dist/unstyled/src/components/Console/SandpackConsole.css.d.ts.map +1 -0
  323. package/dist/unstyled/src/components/Console/SandpackConsole.d.ts +27 -0
  324. package/dist/unstyled/src/components/Console/SandpackConsole.d.ts.map +1 -0
  325. package/dist/unstyled/src/components/Console/StdoutList.css.d.ts +2 -0
  326. package/dist/unstyled/src/components/Console/StdoutList.css.d.ts.map +1 -0
  327. package/dist/unstyled/src/components/Console/StdoutList.d.ts +8 -0
  328. package/dist/unstyled/src/components/Console/StdoutList.d.ts.map +1 -0
  329. package/dist/unstyled/src/components/Console/index.d.ts +3 -0
  330. package/dist/unstyled/src/components/Console/index.d.ts.map +1 -0
  331. package/dist/unstyled/src/components/Console/useSandpackConsole.d.ts +16 -0
  332. package/dist/unstyled/src/components/Console/useSandpackConsole.d.ts.map +1 -0
  333. package/dist/unstyled/src/components/Console/utils/constraints.d.ts +14 -0
  334. package/dist/unstyled/src/components/Console/utils/constraints.d.ts.map +1 -0
  335. package/dist/unstyled/src/components/Console/utils/fromConsoleToString.d.ts +13 -0
  336. package/dist/unstyled/src/components/Console/utils/fromConsoleToString.d.ts.map +1 -0
  337. package/dist/unstyled/src/components/Console/utils/getType.d.ts +8 -0
  338. package/dist/unstyled/src/components/Console/utils/getType.d.ts.map +1 -0
  339. package/dist/unstyled/src/components/Console/utils/transformers.d.ts +5 -0
  340. package/dist/unstyled/src/components/Console/utils/transformers.d.ts.map +1 -0
  341. package/dist/unstyled/src/components/FileExplorer/File.css.d.ts +2 -0
  342. package/dist/unstyled/src/components/FileExplorer/File.css.d.ts.map +1 -0
  343. package/dist/unstyled/src/components/FileExplorer/File.d.ts +11 -0
  344. package/dist/unstyled/src/components/FileExplorer/File.d.ts.map +1 -0
  345. package/dist/unstyled/src/components/FileExplorer/FileExplorer.css.d.ts +2 -0
  346. package/dist/unstyled/src/components/FileExplorer/FileExplorer.css.d.ts.map +1 -0
  347. package/dist/unstyled/src/components/FileExplorer/ModuleList.d.ts +25 -0
  348. package/dist/unstyled/src/components/FileExplorer/ModuleList.d.ts.map +1 -0
  349. package/dist/unstyled/src/components/FileExplorer/index.d.ts +13 -0
  350. package/dist/unstyled/src/components/FileExplorer/index.d.ts.map +1 -0
  351. package/dist/unstyled/src/components/FileExplorer/utils.d.ts +17 -0
  352. package/dist/unstyled/src/components/FileExplorer/utils.d.ts.map +1 -0
  353. package/dist/unstyled/src/components/FileTabs/FileTabs.css.d.ts +6 -0
  354. package/dist/unstyled/src/components/FileTabs/FileTabs.css.d.ts.map +1 -0
  355. package/dist/unstyled/src/components/FileTabs/index.d.ts +19 -0
  356. package/dist/unstyled/src/components/FileTabs/index.d.ts.map +1 -0
  357. package/dist/unstyled/src/components/Navigator/Navigator.css.d.ts +4 -0
  358. package/dist/unstyled/src/components/Navigator/Navigator.css.d.ts.map +1 -0
  359. package/dist/unstyled/src/components/Navigator/index.d.ts +8 -0
  360. package/dist/unstyled/src/components/Navigator/index.d.ts.map +1 -0
  361. package/dist/unstyled/src/components/Navigator/utils.d.ts +2 -0
  362. package/dist/unstyled/src/components/Navigator/utils.d.ts.map +1 -0
  363. package/dist/unstyled/src/components/Preview/Preview.css.d.ts +4 -0
  364. package/dist/unstyled/src/components/Preview/Preview.css.d.ts.map +1 -0
  365. package/dist/unstyled/src/components/Preview/index.d.ts +31 -0
  366. package/dist/unstyled/src/components/Preview/index.d.ts.map +1 -0
  367. package/dist/unstyled/src/components/ReactDevTools/ReactDevTools.css.d.ts +2 -0
  368. package/dist/unstyled/src/components/ReactDevTools/ReactDevTools.css.d.ts.map +1 -0
  369. package/dist/unstyled/src/components/ReactDevTools/index.d.ts +8 -0
  370. package/dist/unstyled/src/components/ReactDevTools/index.d.ts.map +1 -0
  371. package/dist/unstyled/src/components/Tests/Describes.css.d.ts +3 -0
  372. package/dist/unstyled/src/components/Tests/Describes.css.d.ts.map +1 -0
  373. package/dist/unstyled/src/components/Tests/Describes.d.ts +11 -0
  374. package/dist/unstyled/src/components/Tests/Describes.d.ts.map +1 -0
  375. package/dist/unstyled/src/components/Tests/FormattedError.css.d.ts +2 -0
  376. package/dist/unstyled/src/components/Tests/FormattedError.css.d.ts.map +1 -0
  377. package/dist/unstyled/src/components/Tests/FormattedError.d.ts +9 -0
  378. package/dist/unstyled/src/components/Tests/FormattedError.d.ts.map +1 -0
  379. package/dist/unstyled/src/components/Tests/Header.css.d.ts +5 -0
  380. package/dist/unstyled/src/components/Tests/Header.css.d.ts.map +1 -0
  381. package/dist/unstyled/src/components/Tests/Header.d.ts +18 -0
  382. package/dist/unstyled/src/components/Tests/Header.d.ts.map +1 -0
  383. package/dist/unstyled/src/components/Tests/RunButton.d.ts +5 -0
  384. package/dist/unstyled/src/components/Tests/RunButton.d.ts.map +1 -0
  385. package/dist/unstyled/src/components/Tests/SandpackTests.css.d.ts +4 -0
  386. package/dist/unstyled/src/components/Tests/SandpackTests.css.d.ts.map +1 -0
  387. package/dist/unstyled/src/components/Tests/SandpackTests.d.ts +18 -0
  388. package/dist/unstyled/src/components/Tests/SandpackTests.d.ts.map +1 -0
  389. package/dist/unstyled/src/components/Tests/Specs.css.d.ts +9 -0
  390. package/dist/unstyled/src/components/Tests/Specs.css.d.ts.map +1 -0
  391. package/dist/unstyled/src/components/Tests/Specs.d.ts +17 -0
  392. package/dist/unstyled/src/components/Tests/Specs.d.ts.map +1 -0
  393. package/dist/unstyled/src/components/Tests/Summary.css.d.ts +4 -0
  394. package/dist/unstyled/src/components/Tests/Summary.css.d.ts.map +1 -0
  395. package/dist/unstyled/src/components/Tests/Summary.d.ts +20 -0
  396. package/dist/unstyled/src/components/Tests/Summary.d.ts.map +1 -0
  397. package/dist/unstyled/src/components/Tests/Tests.css.d.ts +6 -0
  398. package/dist/unstyled/src/components/Tests/Tests.css.d.ts.map +1 -0
  399. package/dist/unstyled/src/components/Tests/Tests.d.ts +17 -0
  400. package/dist/unstyled/src/components/Tests/Tests.d.ts.map +1 -0
  401. package/dist/unstyled/src/components/Tests/index.d.ts +2 -0
  402. package/dist/unstyled/src/components/Tests/index.d.ts.map +1 -0
  403. package/dist/unstyled/src/components/Tests/style.css.d.ts +8 -0
  404. package/dist/unstyled/src/components/Tests/style.css.d.ts.map +1 -0
  405. package/dist/unstyled/src/components/Tests/style.d.ts +3 -0
  406. package/dist/unstyled/src/components/Tests/style.d.ts.map +1 -0
  407. package/dist/unstyled/src/components/Tests/utils.d.ts +14 -0
  408. package/dist/unstyled/src/components/Tests/utils.d.ts.map +1 -0
  409. package/dist/unstyled/src/components/TranspiledCode/TranspiledCode.css.d.ts +2 -0
  410. package/dist/unstyled/src/components/TranspiledCode/TranspiledCode.css.d.ts.map +1 -0
  411. package/dist/unstyled/src/components/TranspiledCode/index.d.ts +4 -0
  412. package/dist/unstyled/src/components/TranspiledCode/index.d.ts.map +1 -0
  413. package/dist/unstyled/src/components/common/DependenciesProgress.css.d.ts +2 -0
  414. package/dist/unstyled/src/components/common/DependenciesProgress.css.d.ts.map +1 -0
  415. package/dist/unstyled/src/components/common/DependenciesProgress.d.ts +4 -0
  416. package/dist/unstyled/src/components/common/DependenciesProgress.d.ts.map +1 -0
  417. package/dist/unstyled/src/components/common/ErrorOverlay.d.ts +6 -0
  418. package/dist/unstyled/src/components/common/ErrorOverlay.d.ts.map +1 -0
  419. package/dist/unstyled/src/components/common/Layout.css.d.ts +2 -0
  420. package/dist/unstyled/src/components/common/Layout.css.d.ts.map +1 -0
  421. package/dist/unstyled/src/components/common/Layout.d.ts +8 -0
  422. package/dist/unstyled/src/components/common/Layout.d.ts.map +1 -0
  423. package/dist/unstyled/src/components/common/Loading.css.d.ts +4 -0
  424. package/dist/unstyled/src/components/common/Loading.css.d.ts.map +1 -0
  425. package/dist/unstyled/src/components/common/Loading.d.ts +5 -0
  426. package/dist/unstyled/src/components/common/Loading.d.ts.map +1 -0
  427. package/dist/unstyled/src/components/common/LoadingOverlay.css.d.ts +5 -0
  428. package/dist/unstyled/src/components/common/LoadingOverlay.css.d.ts.map +1 -0
  429. package/dist/unstyled/src/components/common/LoadingOverlay.d.ts +12 -0
  430. package/dist/unstyled/src/components/common/LoadingOverlay.d.ts.map +1 -0
  431. package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/OpenInCodeSandboxButton.d.ts +3 -0
  432. package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/OpenInCodeSandboxButton.d.ts.map +1 -0
  433. package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.d.ts +7 -0
  434. package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/UnstyledOpenInCodeSandboxButton.d.ts.map +1 -0
  435. package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/index.d.ts +3 -0
  436. package/dist/unstyled/src/components/common/OpenInCodeSandboxButton/index.d.ts.map +1 -0
  437. package/dist/unstyled/src/components/common/RoundedButton.d.ts +3 -0
  438. package/dist/unstyled/src/components/common/RoundedButton.d.ts.map +1 -0
  439. package/dist/unstyled/src/components/common/RunButton.css.d.ts +2 -0
  440. package/dist/unstyled/src/components/common/RunButton.css.d.ts.map +1 -0
  441. package/dist/unstyled/src/components/common/RunButton.d.ts +3 -0
  442. package/dist/unstyled/src/components/common/RunButton.d.ts.map +1 -0
  443. package/dist/unstyled/src/components/common/Stack.css.d.ts +2 -0
  444. package/dist/unstyled/src/components/common/Stack.css.d.ts.map +1 -0
  445. package/dist/unstyled/src/components/common/Stack.d.ts +7 -0
  446. package/dist/unstyled/src/components/common/Stack.d.ts.map +1 -0
  447. package/dist/unstyled/src/components/common/index.d.ts +9 -0
  448. package/dist/unstyled/src/components/common/index.d.ts.map +1 -0
  449. package/dist/unstyled/src/components/icons/index.d.ts +16 -0
  450. package/dist/unstyled/src/components/icons/index.d.ts.map +1 -0
  451. package/dist/unstyled/src/components/index.d.ts +10 -0
  452. package/dist/unstyled/src/components/index.d.ts.map +1 -0
  453. package/dist/unstyled/src/contexts/sandpackContext.d.ts +11 -0
  454. package/dist/unstyled/src/contexts/sandpackContext.d.ts.map +1 -0
  455. package/dist/unstyled/src/contexts/utils/testHelpers.d.ts +9 -0
  456. package/dist/unstyled/src/contexts/utils/testHelpers.d.ts.map +1 -0
  457. package/dist/unstyled/src/contexts/utils/useAppState.d.ts +15 -0
  458. package/dist/unstyled/src/contexts/utils/useAppState.d.ts.map +1 -0
  459. package/dist/unstyled/src/contexts/utils/useClient.d.ts +32 -0
  460. package/dist/unstyled/src/contexts/utils/useClient.d.ts.map +1 -0
  461. package/dist/unstyled/src/contexts/utils/useFiles.d.ts +41 -0
  462. package/dist/unstyled/src/contexts/utils/useFiles.d.ts.map +1 -0
  463. package/dist/unstyled/src/hooks/index.d.ts +12 -0
  464. package/dist/unstyled/src/hooks/index.d.ts.map +1 -0
  465. package/dist/unstyled/src/hooks/useActiveCode.d.ts +21 -0
  466. package/dist/unstyled/src/hooks/useActiveCode.d.ts.map +1 -0
  467. package/dist/unstyled/src/hooks/useErrorMessage.d.ts +5 -0
  468. package/dist/unstyled/src/hooks/useErrorMessage.d.ts.map +1 -0
  469. package/dist/unstyled/src/hooks/useLoadingOverlayState.d.ts +7 -0
  470. package/dist/unstyled/src/hooks/useLoadingOverlayState.d.ts.map +1 -0
  471. package/dist/unstyled/src/hooks/useSandpack.d.ts +14 -0
  472. package/dist/unstyled/src/hooks/useSandpack.d.ts.map +1 -0
  473. package/dist/unstyled/src/hooks/useSandpackClient.d.ts +23 -0
  474. package/dist/unstyled/src/hooks/useSandpackClient.d.ts.map +1 -0
  475. package/dist/unstyled/src/hooks/useSandpackNavigation.d.ts +9 -0
  476. package/dist/unstyled/src/hooks/useSandpackNavigation.d.ts.map +1 -0
  477. package/dist/unstyled/src/hooks/useSandpackPreviewProgress.d.ts +5 -0
  478. package/dist/unstyled/src/hooks/useSandpackPreviewProgress.d.ts.map +1 -0
  479. package/dist/unstyled/src/hooks/useSandpackShell.d.ts +8 -0
  480. package/dist/unstyled/src/hooks/useSandpackShell.d.ts.map +1 -0
  481. package/dist/unstyled/src/hooks/useSandpackShellStdout.d.ts +12 -0
  482. package/dist/unstyled/src/hooks/useSandpackShellStdout.d.ts.map +1 -0
  483. package/dist/unstyled/src/hooks/useSandpackTheme.d.ts +10 -0
  484. package/dist/unstyled/src/hooks/useSandpackTheme.d.ts.map +1 -0
  485. package/dist/unstyled/src/hooks/useTranspiledCode.d.ts +5 -0
  486. package/dist/unstyled/src/hooks/useTranspiledCode.d.ts.map +1 -0
  487. package/dist/unstyled/src/index.d.ts +15 -0
  488. package/dist/unstyled/src/index.d.ts.map +1 -0
  489. package/dist/unstyled/src/presets/Sandpack.css.d.ts +20 -0
  490. package/dist/unstyled/src/presets/Sandpack.css.d.ts.map +1 -0
  491. package/dist/unstyled/src/presets/Sandpack.d.ts +3 -0
  492. package/dist/unstyled/src/presets/Sandpack.d.ts.map +1 -0
  493. package/dist/unstyled/src/presets/index.d.ts +2 -0
  494. package/dist/unstyled/src/presets/index.d.ts.map +1 -0
  495. package/dist/unstyled/src/setup.jest.d.ts +2 -0
  496. package/dist/unstyled/src/setup.jest.d.ts.map +1 -0
  497. package/dist/unstyled/src/styles/__generated__/cssText.d.ts +7 -0
  498. package/dist/unstyled/src/styles/__generated__/cssText.d.ts.map +1 -0
  499. package/dist/unstyled/src/styles/constants.d.ts +10 -0
  500. package/dist/unstyled/src/styles/constants.d.ts.map +1 -0
  501. package/dist/unstyled/src/styles/getSandpackCssText.d.ts +16 -0
  502. package/dist/unstyled/src/styles/getSandpackCssText.d.ts.map +1 -0
  503. package/dist/unstyled/src/styles/index.d.ts +65 -0
  504. package/dist/unstyled/src/styles/index.d.ts.map +1 -0
  505. package/dist/unstyled/src/styles/shared.css.d.ts +22 -0
  506. package/dist/unstyled/src/styles/shared.css.d.ts.map +1 -0
  507. package/dist/unstyled/src/styles/themeContext.css.d.ts +17 -0
  508. package/dist/unstyled/src/styles/themeContext.css.d.ts.map +1 -0
  509. package/dist/unstyled/src/styles/themeContext.d.ts +21 -0
  510. package/dist/unstyled/src/styles/themeContext.d.ts.map +1 -0
  511. package/dist/unstyled/src/styles/vars.css.d.ts +98 -0
  512. package/dist/unstyled/src/styles/vars.css.d.ts.map +1 -0
  513. package/dist/unstyled/src/templates/common.d.ts +6 -0
  514. package/dist/unstyled/src/templates/common.d.ts.map +1 -0
  515. package/dist/unstyled/src/templates/index.d.ts +549 -0
  516. package/dist/unstyled/src/templates/index.d.ts.map +1 -0
  517. package/dist/unstyled/src/templates/node/astro.d.ts +22 -0
  518. package/dist/unstyled/src/templates/node/astro.d.ts.map +1 -0
  519. package/dist/unstyled/src/templates/node/nexjs.d.ts +22 -0
  520. package/dist/unstyled/src/templates/node/nexjs.d.ts.map +1 -0
  521. package/dist/unstyled/src/templates/node/node.d.ts +13 -0
  522. package/dist/unstyled/src/templates/node/node.d.ts.map +1 -0
  523. package/dist/unstyled/src/templates/node/vite-preact-ts.d.ts +34 -0
  524. package/dist/unstyled/src/templates/node/vite-preact-ts.d.ts.map +1 -0
  525. package/dist/unstyled/src/templates/node/vite-preact.d.ts +25 -0
  526. package/dist/unstyled/src/templates/node/vite-preact.d.ts.map +1 -0
  527. package/dist/unstyled/src/templates/node/vite-react-ts.d.ts +34 -0
  528. package/dist/unstyled/src/templates/node/vite-react-ts.d.ts.map +1 -0
  529. package/dist/unstyled/src/templates/node/vite-react.d.ts +25 -0
  530. package/dist/unstyled/src/templates/node/vite-react.d.ts.map +1 -0
  531. package/dist/unstyled/src/templates/node/vite-svelte-ts.d.ts +37 -0
  532. package/dist/unstyled/src/templates/node/vite-svelte-ts.d.ts.map +1 -0
  533. package/dist/unstyled/src/templates/node/vite-svelte.d.ts +25 -0
  534. package/dist/unstyled/src/templates/node/vite-svelte.d.ts.map +1 -0
  535. package/dist/unstyled/src/templates/node/vite-vue-ts.d.ts +34 -0
  536. package/dist/unstyled/src/templates/node/vite-vue-ts.d.ts.map +1 -0
  537. package/dist/unstyled/src/templates/node/vite-vue.d.ts +25 -0
  538. package/dist/unstyled/src/templates/node/vite-vue.d.ts.map +1 -0
  539. package/dist/unstyled/src/templates/node/vite.d.ts +19 -0
  540. package/dist/unstyled/src/templates/node/vite.d.ts.map +1 -0
  541. package/dist/unstyled/src/templates/runtime/angular.d.ts +31 -0
  542. package/dist/unstyled/src/templates/runtime/angular.d.ts.map +1 -0
  543. package/dist/unstyled/src/templates/runtime/react-typescript.d.ts +25 -0
  544. package/dist/unstyled/src/templates/runtime/react-typescript.d.ts.map +1 -0
  545. package/dist/unstyled/src/templates/runtime/react.d.ts +22 -0
  546. package/dist/unstyled/src/templates/runtime/react.d.ts.map +1 -0
  547. package/dist/unstyled/src/templates/runtime/solid.d.ts +22 -0
  548. package/dist/unstyled/src/templates/runtime/solid.d.ts.map +1 -0
  549. package/dist/unstyled/src/templates/runtime/svelte.d.ts +22 -0
  550. package/dist/unstyled/src/templates/runtime/svelte.d.ts.map +1 -0
  551. package/dist/unstyled/src/templates/runtime/tests-ts.d.ts +20 -0
  552. package/dist/unstyled/src/templates/runtime/tests-ts.d.ts.map +1 -0
  553. package/dist/unstyled/src/templates/runtime/vanilla-typescript.d.ts +22 -0
  554. package/dist/unstyled/src/templates/runtime/vanilla-typescript.d.ts.map +1 -0
  555. package/dist/unstyled/src/templates/runtime/vanilla.d.ts +19 -0
  556. package/dist/unstyled/src/templates/runtime/vanilla.d.ts.map +1 -0
  557. package/dist/unstyled/src/templates/runtime/vue-ts.d.ts +26 -0
  558. package/dist/unstyled/src/templates/runtime/vue-ts.d.ts.map +1 -0
  559. package/dist/unstyled/src/templates/runtime/vue.d.ts +22 -0
  560. package/dist/unstyled/src/templates/runtime/vue.d.ts.map +1 -0
  561. package/dist/unstyled/src/templates/static.d.ts +16 -0
  562. package/dist/unstyled/src/templates/static.d.ts.map +1 -0
  563. package/dist/unstyled/src/themes/index.d.ts +14 -0
  564. package/dist/unstyled/src/themes/index.d.ts.map +1 -0
  565. package/dist/unstyled/src/types.d.ts +477 -0
  566. package/dist/unstyled/src/types.d.ts.map +1 -0
  567. package/dist/unstyled/src/utils/ansi-to-react.d.ts +13 -0
  568. package/dist/unstyled/src/utils/ansi-to-react.d.ts.map +1 -0
  569. package/dist/unstyled/src/utils/array.d.ts +2 -0
  570. package/dist/unstyled/src/utils/array.d.ts.map +1 -0
  571. package/dist/unstyled/src/utils/classNames.d.ts +6 -0
  572. package/dist/unstyled/src/utils/classNames.d.ts.map +1 -0
  573. package/dist/unstyled/src/utils/createSandpackFS.d.ts +35 -0
  574. package/dist/unstyled/src/utils/createSandpackFS.d.ts.map +1 -0
  575. package/dist/unstyled/src/utils/storyHelpers.d.ts +9 -0
  576. package/dist/unstyled/src/utils/storyHelpers.d.ts.map +1 -0
  577. package/dist/unstyled/src/utils/stringUtils.d.ts +10 -0
  578. package/dist/unstyled/src/utils/stringUtils.d.ts.map +1 -0
  579. package/dist/unstyled/src/utils/useAsyncSandpackId.d.ts +9 -0
  580. package/dist/unstyled/src/utils/useAsyncSandpackId.d.ts.map +1 -0
  581. package/dist/unstyled.d.ts +1 -0
  582. 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,4 @@
1
+ import type { Extension } from "@codemirror/state";
2
+ import type { Decorators } from "../CodeEditor/CodeMirror";
3
+ export declare function highlightDecorators(positions: Decorators): Extension;
4
+ //# sourceMappingURL=highlightDecorators.d.ts.map
@@ -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,3 @@
1
+ import type { Extension } from "@codemirror/state";
2
+ export declare function highlightInlineError(): Extension;
3
+ //# sourceMappingURL=highlightInlineError.d.ts.map
@@ -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,6 @@
1
+ import * as React from "react";
2
+ import type { SandpackConsoleData } from "./utils/getType";
3
+ export declare const ConsoleList: React.FC<{
4
+ data: SandpackConsoleData;
5
+ }>;
6
+ //# sourceMappingURL=ConsoleList.d.ts.map
@@ -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,5 @@
1
+ export declare const wrapperClassName: string;
2
+ export declare const flexClassName: string;
3
+ export declare const headerButtonClassName: string;
4
+ export declare const headerTitleClassName: string;
5
+ //# sourceMappingURL=Header.css.d.ts.map
@@ -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,7 @@
1
+ import React from "react";
2
+ export declare const Header: React.FC<{
3
+ currentTab: "server" | "client";
4
+ setCurrentTab: (value: "server" | "client") => void;
5
+ node: boolean;
6
+ }>;
7
+ //# sourceMappingURL=Header.d.ts.map
@@ -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,4 @@
1
+ export declare const consoleWrapperClassName: string;
2
+ export declare const consoleListClassName: string;
3
+ export declare const consoleActionsClassName: string;
4
+ //# sourceMappingURL=SandpackConsole.css.d.ts.map
@@ -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,2 @@
1
+ export declare const consoleItemClassName: string;
2
+ //# sourceMappingURL=StdoutList.css.d.ts.map
@@ -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,8 @@
1
+ import * as React from "react";
2
+ export declare const StdoutList: React.FC<{
3
+ data: Array<{
4
+ data: string;
5
+ id: string;
6
+ }>;
7
+ }>;
8
+ //# sourceMappingURL=StdoutList.d.ts.map
@@ -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,3 @@
1
+ export { SandpackConsole } from "./SandpackConsole";
2
+ export { useSandpackConsole } from "./useSandpackConsole";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export declare const explorerClassName: string;
2
+ //# sourceMappingURL=File.css.d.ts.map
@@ -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,2 @@
1
+ export declare const fileExplorerClassName: string;
2
+ //# sourceMappingURL=FileExplorer.css.d.ts.map
@@ -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"}
@@ -0,0 +1,4 @@
1
+ export declare const navigatorClassName: string;
2
+ export declare const inputClassName: string;
3
+ export declare const navigatorButtonClassName: string;
4
+ //# sourceMappingURL=Navigator.css.d.ts.map