mirror of
https://github.com/facebook/docusaurus.git
synced 2026-05-07 16:29:48 -04:00
49619fdee1
* feat(theme-live-codeblock): add reset button to live code playground Adds a reset button to live code playgrounds that restores edited code to its original state. The button appears in the playground header alongside the Live Editor label. Closes #10711 * chore: update theme translations for reset button * add mising LiveCodeBlockThemeConfig type import to website * some fixes * change type order * remove useless dogfood page * rename i18n key * extract context to a client api export * fix prop types import * restore former comment * refactor a bit, extract playground position prop * expose position prop + dogfood * wire position prop * fix type issues * subcomponents * restore some former CSS * fix React playground examples * restore comment --------- Co-authored-by: sebastien <lorber.sebastien@gmail.com> Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>