dan
119177b847
[Beta] useEvent -> useEffectEvent ( #5373 )
* [Beta] useEvent -> useEffectEvent
* tweak
2 years ago
Danilo Woznica
8ab1291909
[Beta] Sandpack: fix accessibility issue on Codeeditor ( #5216 )
* Update package.json and yarn.lock
* Update package.json and yarn.lock
* Update package.json and yarn.lock
* Update package.json and yarn.lock
2 years ago
Danilo Woznica
f3420fdc56
[beta] Sandpack: provide bare components and move styles ( #5124 )
* Update 6 files
* Update _document.tsx
* Update _document.tsx
* Update _document.tsx
* Update .env.production
* Update package.json and yarn.lock
* editor style
* file tab
* loading
* loading
* tweaks
* tweak
* bump sandpack
* remove test page
* Remove stitches from the bundle
* apply ios fix only for playground
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2 years ago
dan
a224f9d9ff
[Beta] Accurate MDX line numbers ( #5153 )
2 years ago
Danilo Woznica
7b0e3bd99e
[beta] Sandpack: fix package.json dependencies & remove cm-markdown dependency ( #5151 )
* Update 6 files
* Update 3 files
* Update _app.tsx and _document.tsx
2 years ago
dan
b59b64f386
[Beta] Upgrade to MDX 2 ( #5107 )
* [Beta] MDX 2
* Fix up old pages
2 years ago
dan
402581e15f
[Beta] Bump React/Next ( #5105 )
* [Beta] Upgrade React/Next
* useEvent
* ts
2 years ago
dan
26fc12cf0a
[Beta] Remove linter TODOs ( #5102 )
2 years ago
dan
1ef61b4f90
[Beta] Upgrade Sandpack ( #5033 )
* Revert "Revert "[beta] upgrade sandpack and refactor sandpack.css (#4843 )" (#4959 )"
This reverts commit da6a06e54b
.
* Fix tabbing
* Fixes
* More bump
* Bump bundler
* Fix overflows
2 years ago
dan
9914e5e025
[Beta] Fix layout jump due to sandbox tabs ( #5014 )
2 years ago
Ricky
5b2d2bd9d6
[beta] Fix lint, remove unused vars ( #5010 )
2 years ago
dan
9185945fef
[Beta] Add disk cache for MDX ( #5005 )
* [Beta] Add disk cache for MDX
* Test cache
* Revert "Test cache"
This reverts commit 7d64ec4cd10c7bb9d78df115180dc7de8a237f31.
* Add cache miss log
2 years ago
Dan Abramov
f1cdb194bd
[Beta] Panel fixes
2 years ago
dan
9247d1a359
[Beta] Make banner scrollable ( #5002 )
2 years ago
dan
6e21a2e5a8
[Beta] Move from MDX loader to getStaticPaths ( #4990 )
* Move Markdown from src/pages to src/content
* Use getStaticProps
* Fix Fast Refresh
* Clean up
* rm unused
* Fixes
2 years ago
dan
da6a06e54b
Revert "[beta] upgrade sandpack and refactor sandpack.css ( #4843 )" ( #4959 )
This reverts commit 537e0a354d
.
2 years ago
Danilo Woznica
537e0a354d
[beta] upgrade sandpack and refactor sandpack.css ( #4843 )
* upgrade sandpack and address breaking changes
* remove unnecessaries fixes
* use Sandpack components instead reimplementing them
* refactor: sandpack.css
* fixes
* fix: sticky and syntax-highlight
Co-authored-by: dan <dan.abramov@gmail.com>
2 years ago
Danilo Woznica
eca969cd1f
fix(sandpack): message listeners ( #4778 )
3 years ago
ycjcl868
022c8ff29d
[Beta] Add some types ( #4728 )
* [Beta] Optimize some performance
* Unnecessary image optimization
* Unused optimizeFonts
3 years ago
Felix Leupold
53de0f721f
[Beta] Upgrade React Types & Fix resulting type issues ( #4694 )
* upgrade react types
* fix type errors after upgrade
3 years ago
dan
4e629996e4
[Beta] Update Next and React ( #4680 )
* [Beta] Update Next and React
* Fix types
3 years ago
dan
2ece592999
[Beta] Load CodeMirror linter plugin lazily ( #4678 )
3 years ago
Danilo Woznica
fc88516abf
[Beta] Adds eslint integration on Sandpack ( #4665 )
* added sandpack linter and installed latest sandpacl
* integrate eslint into Sandpack
* Format the linting errors, disable preview on lint error, have only two react hooks
* fixes build
* split eslint-integration
* fix tooltip text color, error rename to 'Lint Error', show single lint error
* NIT
* Just enable it
* Delete eslint.md
Co-authored-by: Strek <ssharishkumar@gmail.com>
Co-authored-by: dan <dan.abramov@gmail.com>
3 years ago
Dan Abramov
b6a181c526
Fix editable code blocks
3 years ago
Strek
275d03f1c0
Upgrade sandpack to fix code cutting issue in view only editor ( #4371 )
* Upgrade sandpack to fix code cutting issue in view only editor
* Added proper sandpack version
3 years ago
Anjorin Damilare
9bcbe7ba5f
[beta] bump tailwind to v3 and update config ( #4366 )
* [beta] bump tailwind to v3 and update config
* fix widget wrong position
* fix content tailwind config
3 years ago
dan
0883863c67
[Beta] Use a light GA client ( #4355 )
* [Beta] Use a light GA client
* oopsie
3 years ago
Strek
2979d0c967
Splitting sandpack from main bundle ( #4256 )
* Initial Commit
* play with it
* oops
* easier repro
* import type
* remove `suspense: true`
* Add patch for next
* Patch package
* Add fallback
* Enable flag
* Fixes local dev env and adds better fallback for codeblock
* Adds fallback for sandpack (should work fine)
* turn off concurrentFeatures
* Revert "turn off concurrentFeatures"
This reverts commit 50158ecbd33969e707a2a91a54e822e90c2ebfde.
* Update SandpackWrapper.tsx
* Removed flags and setTimeouts
* add timeouts and promise again
* Adds bottom bezel and scroll to sandpack fallback
* tinker bottombezel and remove console
* Update CodeBlock.tsx
* Update SandpackWrapper.tsx
* removing overflows to avoid explicit scrolls
* upgrade nextjs to canary
* Rm patch
* Fix TS
* Bump Next
* No more CSS jumping
* Reverts the canary to use the latest Next.js `12.0.10`
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@me.com>
3 years ago
Danilo Woznica
b10ae600dc
sandpack: bring back init mode ( #4337 )
* sandpack: bring back init mode
* upgrade sandpack
3 years ago
Danilo Woznica
4d005ad7e0
fix(sandpack): disable init-mode ( #4278 )
3 years ago
Danilo Woznica
626f957364
fix(sandpack): improve memory usage ( #4126 )
* fix(sandpack): init mode
* init mode tweaks
* sandpack preview: keep loading state while preview is still working
* prettify it
* fix: renew client listener on remount
3 years ago
Strek
e1dcbffde1
bump next to latest ( #4251 )
3 years ago
Strek
3564e690b8
Introduce lint staged ( #4240 )
* Commit lint staging
* Add mdx parser for prettier
* fix css
* Fixed lint staged for md
* Fixed markdowns
* Revert prettifying markdown since build fails
* Removed css command and included with tsx
* replace with older readme and contibuting
3 years ago
Danilo Woznica
d80ef566a3
Sandpack: upgrade dependencies and adds ReactDevtools ( #4161 )
* upgrade sandpack dependencies
* update csb button
* remove unnecessary ref
* add react dev tools
* remove duplicated/unnecessary element
* fix: codemirror gutter
* fix codemirror gutter
* make devtools optional
* bump sandpack version
* fix: add website theme to the react devtools
* fix: react devtools ui tweaks
* devtools: custom theme
* refactor: reset sandbox
* fix sandpack
* fix: devtools style
* fix: tweaks on mobile version
* fix: soft refresh when module is loaded
* bump sandpack version
* update color
* remove demo
* remove inspect button
* bring back key logic
* refactor: icon align
* update sandpack
* logic to keep the content synced
3 years ago
Strek
d84b74040c
Bump next ( #4228 )
3 years ago
R Nabors
b1f91c92f4
Analytics for Beta ( #4224 )
* adding google analytics metrics to beta
* adding google analytics metrics to beta
3 years ago
Strek
ea086bd312
Fixing Eslint configuration ( #4087 )
* fix-collapsable-color
* Made Eslint work and added next's eslint config
* Add lint:fix to pre commit rule
* Reverts older anchor links
* Fixed review comments
* Replace with spaces like before
* Update DocsFooter.tsx
* Update arrow function
* Update CodeBlock.tsx
* Update MDXComponents.tsx
* Update SidebarLink.tsx
3 years ago
Titus
4022f9774b
Use custom ID format that works better with MDX 2 ( #4105 )
* Fix two unicode whitespaces which are invalid
* Use custom ID format that works better with MDX 2
* Fix sebastian
* remark-slug as dev dep
3 years ago
harish-sethuraman
f31c9fdae8
Remove unwanted dependency ( #4083 )
3 years ago
Alexey Pyltsyn
0b7fd7b7a4
Add git hook to generate headings ids ( #4043 )
* Add git hook to generate headings ids
* Fixes "Analyze Bundle" workflow
3 years ago
Danilo Woznica
8ed148b2ca
fix(sandpack): upgrade dependencies ( #4075 )
* fix(sandpack): upgrade dependencies
* fix(sandpack): remove selector that relies on the editor state
3 years ago
Dan Abramov
7451b15015
Revert "fix(dependencies): update yarn.lock ( #4045 )" ( #4046 )
This reverts commit b249a442f4
.
3 years ago
Danilo Woznica
b249a442f4
fix(dependencies): update yarn.lock ( #4045 )
Co-authored-by: Danilo Woznica <danilo@codesandbox.io>
3 years ago
Dan Abramov
8cd97ad66a
Bump to Next 12 ( #4037 )
3 years ago
Dan Abramov
1c2f980f01
[Beta] Add bundle analyzer ( #4036 )
3 years ago
Danilo Woznica
9707812678
fix(sandpack): do not translate code blocks ( #4034 )
3 years ago
Rachel Nabors
981db3397e
Initial check-in of new React docs and website
Co-authored-by: Dan Abramov <dan.abramov@me.com>
Co-authored-by: Sylwia Vargas <sylwia.vargas@gmail.com>
Co-authored-by: Dan Lebowitz <dan.lebo@me.com>
Co-authored-by: Razvan Gradinar <grazvan@fb.com>
Co-authored-by: Jared Palmer <jared@palmer.net>
Co-authored-by: Dane Grant <danecando@gmail.com>
Co-authored-by: Dustin Goodman <dustin.s.goodman@gmail.com>
Co-authored-by: Rick Hanlon <rickhanlonii@gmail.com>
Co-authored-by: Maggie Appleton <maggie.fm.appleton@gmail.com>
Co-authored-by: Alex Moldovan <alex.n.moldovan@gmail.com>
Co-authored-by: Ives van Hoorne <ives.v.h@gmail.com>
Co-authored-by: Brian Vaughn <bvaughn@fb.com>
Co-authored-by: Dmitri Pavlutin <dpavlutin@gmail.com>
3 years ago