File tree Expand file tree Collapse file tree
docusaurus-plugin-content-docs
docusaurus-theme-classic/src
docusaurus-theme-live-codeblock
docusaurus-theme-search-algolia Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 "version" : " 2.0.0-beta.18" ,
44 "description" : " Docs plugin for Docusaurus." ,
55 "main" : " lib/index.js" ,
6+ "sideEffects" : false ,
67 "exports" : {
78 "./client" : " ./lib/client/index.js" ,
89 "./server" : " ./lib/server-export.js" ,
Original file line number Diff line number Diff line change @@ -879,7 +879,7 @@ declare module '@theme/ThemedImage' {
879879}
880880
881881declare module '@theme/Details' {
882- import { Details , type DetailsProps } from '@docusaurus/theme-common' ;
882+ import { Details , type DetailsProps } from '@docusaurus/theme-common/Details ' ;
883883
884884 export interface Props extends DetailsProps { }
885885 export default Details ;
Original file line number Diff line number Diff line change 77
88import React from 'react' ;
99import clsx from 'clsx' ;
10- import { Details as DetailsGeneric } from '@docusaurus/theme-common' ;
10+ import { Details as DetailsGeneric } from '@docusaurus/theme-common/Details ' ;
1111import type { Props } from '@theme/Details' ;
1212import styles from './styles.module.css' ;
1313
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (c) Facebook, Inc. and its affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ */
7+
8+ // `Details` is a separate export entry because of side-effects messing with CSS
9+ // insertion order. See https://github.com/facebook/docusaurus/pull/7085.
10+ // However, because TS doesn't recognize `exports` (also a problem in
11+ // `content-docs`), we have to manually create a stub.
12+
13+ // eslint-disable-next-line import/named
14+ export { Details , type DetailsProps } from './lib/components/Details' ;
Original file line number Diff line number Diff line change 44 "description" : " Common code for Docusaurus themes." ,
55 "main" : " ./lib/index.js" ,
66 "types" : " ./lib/index.d.ts" ,
7+ "sideEffects" : [
8+ " lib/components/Details/*" ,
9+ " *.css"
10+ ],
11+ "exports" : {
12+ "." : " ./lib/index.js" ,
13+ "./Details" : " ./lib/components/Details/index.js"
14+ },
715 "scripts" : {
816 "build" : " node copyUntypedFiles.mjs && tsc" ,
917 "watch" : " node copyUntypedFiles.mjs && tsc --watch"
Original file line number Diff line number Diff line change @@ -63,8 +63,6 @@ export {useLocationChange} from './utils/useLocationChange';
6363
6464export { useCollapsible , Collapsible } from './components/Collapsible' ;
6565
66- export { Details , type DetailsProps } from './components/Details' ;
67-
6866export {
6967 useDocsPreferredVersion ,
7068 useDocsPreferredVersionByPluginId ,
Original file line number Diff line number Diff line change 88 "declarationMap" : true ,
99 "rootDir" : " src" ,
1010 "outDir" : " lib"
11- }
11+ },
12+ "include" : [" src" ]
1213}
Original file line number Diff line number Diff line change 44 "description" : " Docusaurus live code block component." ,
55 "main" : " lib/index.js" ,
66 "types" : " src/theme-live-codeblock.d.ts" ,
7+ "sideEffects" : [
8+ " lib/theme/Playground/*"
9+ ],
710 "publishConfig" : {
811 "access" : " public"
912 },
Original file line number Diff line number Diff line change 33 "version" : " 2.0.0-beta.18" ,
44 "description" : " Algolia search component for Docusaurus." ,
55 "main" : " lib/index.js" ,
6+ "sideEffects" : [
7+ " *.css"
8+ ],
69 "exports" : {
710 "./client" : " ./lib/client/index.js" ,
811 "." : " ./lib/index.js"
Original file line number Diff line number Diff line change 44 "description" : " Common (Node/Browser) utility functions for Docusaurus packages." ,
55 "main" : " ./lib/index.js" ,
66 "types" : " ./lib/index.d.ts" ,
7+ "sideEffects" : false ,
78 "scripts" : {
89 "build" : " tsc" ,
910 "watch" : " tsc --watch"
You can’t perform that action at this time.
0 commit comments