@docusaurus/theme-classic 0.0.0-4845 → 0.0.0-4849

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -569,7 +569,9 @@ declare module '@theme/MDXComponents' {
569
569
  readonly h4: (props: ComponentProps<'h4'>) => JSX.Element;
570
570
  readonly h5: (props: ComponentProps<'h5'>) => JSX.Element;
571
571
  readonly h6: (props: ComponentProps<'h6'>) => JSX.Element;
572
- } & {[tagName: string]: ComponentType<unknown>};
572
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
573
+ [tagName: string]: ComponentType<any>;
574
+ };
573
575
 
574
576
  const MDXComponents: MDXComponentsObject;
575
577
  export default MDXComponents;
@@ -879,7 +881,7 @@ declare module '@theme/ThemedImage' {
879
881
  }
880
882
 
881
883
  declare module '@theme/Details' {
882
- import {Details, type DetailsProps} from '@docusaurus/theme-common';
884
+ import {Details, type DetailsProps} from '@docusaurus/theme-common/Details';
883
885
 
884
886
  export interface Props extends DetailsProps {}
885
887
  export default Details;
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import clsx from 'clsx';
9
- import {Details as DetailsGeneric} from '@docusaurus/theme-common';
9
+ import {Details as DetailsGeneric} from '@docusaurus/theme-common/Details';
10
10
  import styles from './styles.module.css'; // Should we have a custom details/summary comp in Infima instead of reusing
11
11
  // alert classes?
12
12
 
@@ -9,6 +9,10 @@
9
9
  .generatedIndexPage {
10
10
  max-width: 75% !important;
11
11
  }
12
+
13
+ .list article:nth-last-child(-n + 2) {
14
+ margin-bottom: 0 !important;
15
+ }
12
16
  }
13
17
 
14
18
  /* Duplicated from .markdown h1 */
@@ -17,6 +21,6 @@
17
21
  margin-bottom: calc(1.25 * var(--ifm-leading));
18
22
  }
19
23
 
20
- .list article:nth-last-child(-n + 2) {
24
+ .list article:last-child {
21
25
  margin-bottom: 0 !important;
22
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-4845",
3
+ "version": "0.0.0-4849",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -21,15 +21,15 @@
21
21
  "format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
22
22
  },
23
23
  "dependencies": {
24
- "@docusaurus/core": "0.0.0-4845",
25
- "@docusaurus/plugin-content-blog": "0.0.0-4845",
26
- "@docusaurus/plugin-content-docs": "0.0.0-4845",
27
- "@docusaurus/plugin-content-pages": "0.0.0-4845",
28
- "@docusaurus/theme-common": "0.0.0-4845",
29
- "@docusaurus/theme-translations": "0.0.0-4845",
30
- "@docusaurus/utils": "0.0.0-4845",
31
- "@docusaurus/utils-common": "0.0.0-4845",
32
- "@docusaurus/utils-validation": "0.0.0-4845",
24
+ "@docusaurus/core": "0.0.0-4849",
25
+ "@docusaurus/plugin-content-blog": "0.0.0-4849",
26
+ "@docusaurus/plugin-content-docs": "0.0.0-4849",
27
+ "@docusaurus/plugin-content-pages": "0.0.0-4849",
28
+ "@docusaurus/theme-common": "0.0.0-4849",
29
+ "@docusaurus/theme-translations": "0.0.0-4849",
30
+ "@docusaurus/utils": "0.0.0-4849",
31
+ "@docusaurus/utils-common": "0.0.0-4849",
32
+ "@docusaurus/utils-validation": "0.0.0-4849",
33
33
  "@mdx-js/react": "^1.6.22",
34
34
  "clsx": "^1.1.1",
35
35
  "copy-text-to-clipboard": "^3.0.1",
@@ -42,8 +42,11 @@
42
42
  "rtlcss": "^3.5.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@docusaurus/module-type-aliases": "0.0.0-4845",
46
- "@docusaurus/types": "0.0.0-4845",
45
+ "@babel/cli": "^7.17.6",
46
+ "@babel/core": "^7.17.9",
47
+ "@babel/preset-typescript": "^7.16.7",
48
+ "@docusaurus/module-type-aliases": "0.0.0-4849",
49
+ "@docusaurus/types": "0.0.0-4849",
47
50
  "@types/mdx-js__react": "^1.5.5",
48
51
  "@types/prismjs": "^1.26.0",
49
52
  "@types/rtlcss": "^3.1.3",
@@ -59,5 +62,5 @@
59
62
  "engines": {
60
63
  "node": ">=14"
61
64
  },
62
- "gitHead": "5381d62303ebb8010c7de7dbe9b4c5d5be612fea"
65
+ "gitHead": "a8b33f240c15ed993eed5f6741ec57272d76b3ae"
63
66
  }
@@ -7,7 +7,7 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
- import {Details as DetailsGeneric} from '@docusaurus/theme-common';
10
+ import {Details as DetailsGeneric} from '@docusaurus/theme-common/Details';
11
11
  import type {Props} from '@theme/Details';
12
12
  import styles from './styles.module.css';
13
13
 
@@ -9,6 +9,10 @@
9
9
  .generatedIndexPage {
10
10
  max-width: 75% !important;
11
11
  }
12
+
13
+ .list article:nth-last-child(-n + 2) {
14
+ margin-bottom: 0 !important;
15
+ }
12
16
  }
13
17
 
14
18
  /* Duplicated from .markdown h1 */
@@ -17,6 +21,6 @@
17
21
  margin-bottom: calc(1.25 * var(--ifm-leading));
18
22
  }
19
23
 
20
- .list article:nth-last-child(-n + 2) {
24
+ .list article:last-child {
21
25
  margin-bottom: 0 !important;
22
26
  }
@@ -569,7 +569,9 @@ declare module '@theme/MDXComponents' {
569
569
  readonly h4: (props: ComponentProps<'h4'>) => JSX.Element;
570
570
  readonly h5: (props: ComponentProps<'h5'>) => JSX.Element;
571
571
  readonly h6: (props: ComponentProps<'h6'>) => JSX.Element;
572
- } & {[tagName: string]: ComponentType<unknown>};
572
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
573
+ [tagName: string]: ComponentType<any>;
574
+ };
573
575
 
574
576
  const MDXComponents: MDXComponentsObject;
575
577
  export default MDXComponents;
@@ -879,7 +881,7 @@ declare module '@theme/ThemedImage' {
879
881
  }
880
882
 
881
883
  declare module '@theme/Details' {
882
- import {Details, type DetailsProps} from '@docusaurus/theme-common';
884
+ import {Details, type DetailsProps} from '@docusaurus/theme-common/Details';
883
885
 
884
886
  export interface Props extends DetailsProps {}
885
887
  export default Details;