docusaurus/packages/docusaurus-theme-common/src/hooks
Sébastien Lorber 31b279fea6
Some checks failed
Argos CI / take-screenshots (push) Has been cancelled
Build Hash Router / Build Hash Router (push) Has been cancelled
Canary Release / Publish Canary (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Continuous Releases / Continuous Releases (push) Has been cancelled
E2E Tests / E2E — Yarn v1 (18.0) (push) Has been cancelled
E2E Tests / E2E — Yarn v1 (20) (push) Has been cancelled
E2E Tests / E2E — Yarn v1 (22) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (node-modules, -s) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (node-modules, -st) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (pnp, -s) (push) Has been cancelled
E2E Tests / E2E — Yarn Berry (pnp, -st) (push) Has been cancelled
E2E Tests / E2E — npm (push) Has been cancelled
E2E Tests / E2E — pnpm (push) Has been cancelled
refactor(theme): introduce CodeBlockContextProvider + split into smaller components (#11062)
* introduce CodeBlockContextProvider

* refactor: apply lint autofix

* add comment

* move wordWrap to context

* Refactor button components

* remove console logs

* Extract more code block components

* Extract CodeBlockLineToken subcomponent

* add TODOs

---------

Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2025-04-04 20:11:40 +02:00
..
styles.css refactor: move @theme/hooks to @docusaurus/theme-common (#6289) 2022-01-07 19:19:35 +01:00
useBackToTopButton.ts refactor(theme): extract plumbing code of BTT button into theme-common (#7021) 2022-03-26 21:05:48 +08:00
useCodeWordWrap.ts refactor(theme): introduce CodeBlockContextProvider + split into smaller components (#11062) 2025-04-04 20:11:40 +02:00
useHideableNavbar.ts fix(theme): preserve url ?search#hash on navbar version/locale dropdowns navigations (#8059) 2022-09-07 19:36:04 +02:00
useKeyboardNavigation.ts feat(theme-common): JSDoc for all APIs (#6974) 2022-03-23 21:39:19 +08:00
useLockBodyScroll.ts feat(theme-common): JSDoc for all APIs (#6974) 2022-03-23 21:39:19 +08:00
useMutationObserver.ts refactor(theme-common): rename useDynamicCallback to useEvent (#7671) 2022-06-24 12:10:03 +02:00
usePrismTheme.ts chore: enable import/order rule (#7418) 2022-05-14 23:39:50 +08:00
useSearchPage.ts fix(search): search page should react to querystring changes + cleanup/refactor (#8757) 2023-03-10 19:13:58 +01:00
useTOCHighlight.ts refactor: fix more type-aware linting errors (#7479) 2022-05-24 19:19:24 +08:00
useWindowSize.ts refactor(theme-common): allow optional desktopBreakpoint param in useWindowSize (#9335) 2023-12-01 17:40:27 +01:00