Commit Graph

52 Commits

Author SHA1 Message Date
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
2022-10-28 09:43:28 -10:00
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>
2022-10-06 21:18:23 +01:00
dan
a224f9d9ff [Beta] Accurate MDX line numbers (#5153) 2022-10-05 00:14:38 +01:00
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
2022-10-04 15:05:41 +01:00
dan
b59b64f386 [Beta] Upgrade to MDX 2 (#5107)
* [Beta] MDX 2

* Fix up old pages
2022-09-24 17:37:15 +01:00
dan
402581e15f [Beta] Bump React/Next (#5105)
* [Beta] Upgrade React/Next

* useEvent

* ts
2022-09-24 12:49:25 +01:00
dan
26fc12cf0a [Beta] Remove linter TODOs (#5102) 2022-09-24 02:02:32 +01:00
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
2022-09-10 06:28:25 +01:00
dan
9914e5e025 [Beta] Fix layout jump due to sandbox tabs (#5014) 2022-09-07 21:24:31 +01:00
Ricky
5b2d2bd9d6 [beta] Fix lint, remove unused vars (#5010) 2022-09-07 12:44:13 -04:00
dan
9185945fef [Beta] Add disk cache for MDX (#5005)
* [Beta] Add disk cache for MDX

* Test cache

* Revert "Test cache"

This reverts commit 7d64ec4cd1.

* Add cache miss log
2022-09-07 13:40:11 +01:00
Dan Abramov
f1cdb194bd [Beta] Panel fixes 2022-09-07 04:44:52 +01:00
dan
f7c91ebbf1 [Beta] Refactor Navigation (#5001) 2022-09-07 00:53:24 +01:00
dan
bc6310fd98 [Beta] Don't rely on special MDX props (#4991) 2022-09-06 00:24:23 +01:00
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
2022-09-05 22:42:29 +01:00
dan
da6a06e54b Revert "[beta] upgrade sandpack and refactor sandpack.css (#4843)" (#4959)
This reverts commit 537e0a354d.
2022-09-02 05:42:53 +01:00
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>
2022-08-31 23:35:37 +01:00
Danilo Woznica
eca969cd1f fix(sandpack): message listeners (#4778) 2022-06-27 17:36:57 +01:00
ycjcl868
022c8ff29d [Beta] Add some types (#4728)
* [Beta] Optimize some performance

* Unnecessary image optimization

* Unused optimizeFonts
2022-06-08 15:10:24 +01:00
Felix Leupold
53de0f721f [Beta] Upgrade React Types & Fix resulting type issues (#4694)
* upgrade react types

* fix type errors after upgrade
2022-05-26 12:30:00 +01:00
Dan Abramov
663f975620 [Beta] Serve fonts from same domain 2022-05-24 03:51:41 +01:00
dan
4e629996e4 [Beta] Update Next and React (#4680)
* [Beta] Update Next and React

* Fix types
2022-05-23 22:10:25 +01:00
dan
2ece592999 [Beta] Load CodeMirror linter plugin lazily (#4678) 2022-05-23 18:57:51 +01:00
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>
2022-05-18 18:51:43 +01:00
Dan Abramov
b6a181c526 Fix editable code blocks 2022-02-23 18:02:00 +00:00
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
2022-02-22 13:45:41 +00:00
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
2022-02-21 21:40:33 +00:00
dan
0883863c67 [Beta] Use a light GA client (#4355)
* [Beta] Use a light GA client

* oopsie
2022-02-18 03:56:41 +00:00
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>
2022-02-16 23:06:04 +05:30
Danilo Woznica
b10ae600dc sandpack: bring back init mode (#4337)
* sandpack: bring back init mode

* upgrade sandpack
2022-02-15 16:18:59 +00:00
Strek
1e79ed6890 Removes readme and contributing.md from generate heading lint (#4295)
* Removes readme and contributing.md from generate heading

* lint only markdowns in source
2022-02-04 18:38:21 +00:00
Danilo Woznica
4d005ad7e0 fix(sandpack): disable init-mode (#4278) 2022-02-04 16:33:35 +05:30
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
2022-02-02 11:44:26 +00:00
Strek
e1dcbffde1 bump next to latest (#4251) 2022-01-28 19:15:35 +00:00
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
2022-01-28 18:56:11 +00:00
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
2022-01-24 16:28:52 +00:00
Strek
d84b74040c Bump next (#4228) 2022-01-22 17:19:56 +00:00
R Nabors
b1f91c92f4 Analytics for Beta (#4224)
* adding google analytics metrics to beta

* adding google analytics metrics to beta
2022-01-21 18:51:26 +00:00
Strek
cd1b0dfed9 Changed the version generation script to update vercel.json instead of _redirects (#4136)
* Changed the version generation script to update vercel.json instead of _redirects

* Fix prettier failures

* Expected to return a value at the end of async function 'writeRedirectsFile'

* Add same script for beta as well

* Fixes review comments

* Fixes formatting in old site
2022-01-18 17:31:17 +00:00
Strek
0b21acb5ab Added hook to validate if headings are present or not (#4143)
* Added hook to validate if headings are present or not

* Remove un wanted default param

* Add validate Ids to ci check too

* Revamp heading id generation and validation workflow

* Update validateHeadingIDs.js
2022-01-18 17:28:11 +00:00
Strek
40c8cd2df9 Add check-all script for beta site (#4120)
* Update package.json

* Update README.md

* Update package.json

* Add tsc for check-all as well

* Update README.md

* Update README.md

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2021-11-24 17:28:14 +00:00
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
2021-11-15 15:33:15 +00:00
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
2021-11-15 04:20:32 +00:00
harish-sethuraman
f31c9fdae8 Remove unwanted dependency (#4083) 2021-11-11 00:32:38 +00:00
Alexey Pyltsyn
0b7fd7b7a4 Add git hook to generate headings ids (#4043)
* Add git hook to generate headings ids

* Fixes "Analyze Bundle" workflow
2021-11-10 18:19:44 +00:00
Danilo Woznica
8ed148b2ca fix(sandpack): upgrade dependencies (#4075)
* fix(sandpack): upgrade dependencies

* fix(sandpack): remove selector that relies on the editor state
2021-11-08 15:32:48 +00:00
Dan Abramov
ff7d2a1efa Try to add bundle analyzer 2021-11-06 16:14:19 +00:00
Dan Abramov
8cd97ad66a Bump to Next 12 (#4037) 2021-11-04 00:50:54 +00:00
Dan Abramov
1c2f980f01 [Beta] Add bundle analyzer (#4036) 2021-11-04 00:00:32 +00:00
Danilo Woznica
9707812678 fix(sandpack): do not translate code blocks (#4034) 2021-11-03 21:09:55 +00:00