@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
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ <img style="width:100%" src="https://user-images.githubusercontent.com/4838076/143581035-ebee5ba2-9cb1-4fe8-a05b-2f44bd69bb4b.gif" alt="Component toolkit for live running code editing experiences" />
2
+
3
+ # Sandpack React
4
+
5
+ React components that give you the power of editable sandboxes that run in the browser.
6
+
7
+ ```jsx
8
+ import { Sandpack } from "@codesandbox/sandpack-react";
9
+
10
+ <Sandpack template="react" />;
11
+ ```
12
+
13
+ [Read more](https://sandpack.codesandbox.io/)
14
+
15
+ ## Documentation
16
+
17
+ For full documentation, visit [https://sandpack.codesandbox.io/docs/](https://sandpack.codesandbox.io/docs/)
18
+
19
+ ## Migration: from `files` map to `SandpackFS`
20
+
21
+ Sandpack now stores file content inside a ZenFS-backed filesystem
22
+ (`SandpackFS`) instead of a synchronous `Record<string, string>` map. Most of
23
+ the existing APIs still accept the familiar `files` prop and materialize it
24
+ for you, but a few things changed that you should know about:
25
+
26
+ - **`sandpack.files` is gone.** Use `sandpack.fileList` (ordered array of
27
+ paths), `sandpack.fileMeta` (per-file `hidden` / `active` / `readOnly`), and
28
+ `sandpack.fs` (a `SandpackFS` instance) to read content:
29
+
30
+ ```ts
31
+ const { sandpack } = useSandpack();
32
+ const code = await sandpack.fs.readFile(sandpack.activeFile);
33
+ ```
34
+
35
+ - **File mutations are asynchronous.** `updateFile`, `addFile`,
36
+ `deleteFile`, `resetFile`, `resetAllFiles`, and `updateCurrentFile` all
37
+ return `Promise<void>` now. `useActiveCode` exposes an `isLoading` flag for
38
+ the initial read.
39
+
40
+ - **`options.fileResolver` was removed.** Hand Sandpack a fully-formed
41
+ filesystem via the new `fs` prop on `SandpackProvider` (or seed it via
42
+ `files`) instead of providing a resolver callback.
43
+
44
+ - **`SandpackBundlerFiles` is deprecated.** It remains exported as a type
45
+ alias for the `{code, ...meta}` snapshot shape that the bundler iframe
46
+ protocol still consumes, but new code should use `SandpackFilesInput` (the
47
+ input to `SandpackFS.fromFiles`) or operate on `SandpackFS` directly.
48
+
49
+ You can also pass a pre-built `SandpackFS` to `SandpackProvider`:
50
+
51
+ ```tsx
52
+ import { SandpackFS } from "@codesandbox/sandpack-client";
53
+
54
+ const fs = await SandpackFS.fromFiles({
55
+ "/index.js": { code: "console.log('hi')" },
56
+ });
57
+
58
+ <SandpackProvider fs={fs}>{/* ... */}</SandpackProvider>;
59
+ ```
60
+
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "sandpack-react",
3
+ "version": "2.20.0",
4
+ "srcHash": "27388e45c3fd7f06b444c422055deb2a84e93d027eb7a2c014f7b1d91b67ea19",
5
+ "builtAt": "2026-06-29T12:49:38.087Z"
6
+ }