Commit Graph

35 Commits

Author SHA1 Message Date
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
Rachel Nabors
926dbeeb7c Re-add public folder 2021-10-28 22:27:24 +01:00
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>
2021-10-28 21:33:41 +01:00