@docusaurus/theme-classic 4.0.0-canary-6980 → 4.0.0-canary-6985

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.
@@ -6,4 +6,4 @@
6
6
  */
7
7
  import type { ReactNode } from 'react';
8
8
  import type { Props } from '@theme/Admonition';
9
- export default function Admonition(unprocessedProps: Props): ReactNode;
9
+ export default function Admonition(props: Props): ReactNode;
@@ -4,7 +4,6 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import {processAdmonitionProps} from '@docusaurus/theme-common';
8
7
  import AdmonitionTypes from '@theme/Admonition/Types';
9
8
  function getAdmonitionTypeComponent(type) {
10
9
  const component = AdmonitionTypes[type];
@@ -16,8 +15,7 @@ function getAdmonitionTypeComponent(type) {
16
15
  );
17
16
  return AdmonitionTypes.info;
18
17
  }
19
- export default function Admonition(unprocessedProps) {
20
- const props = processAdmonitionProps(unprocessedProps);
18
+ export default function Admonition(props) {
21
19
  const AdmonitionTypeComponent = getAdmonitionTypeComponent(props.type);
22
20
  // eslint-disable-next-line react-hooks/static-components
23
21
  return <AdmonitionTypeComponent {...props} />;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "4.0.0-canary-6980",
3
+ "version": "4.0.0-canary-6985",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -14,18 +14,18 @@
14
14
  },
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@docusaurus/core": "4.0.0-canary-6980",
18
- "@docusaurus/mdx-loader": "4.0.0-canary-6980",
19
- "@docusaurus/module-type-aliases": "4.0.0-canary-6980",
20
- "@docusaurus/plugin-content-blog": "4.0.0-canary-6980",
21
- "@docusaurus/plugin-content-docs": "4.0.0-canary-6980",
22
- "@docusaurus/plugin-content-pages": "4.0.0-canary-6980",
23
- "@docusaurus/theme-common": "4.0.0-canary-6980",
24
- "@docusaurus/theme-translations": "4.0.0-canary-6980",
25
- "@docusaurus/types": "4.0.0-canary-6980",
26
- "@docusaurus/utils": "4.0.0-canary-6980",
27
- "@docusaurus/utils-common": "4.0.0-canary-6980",
28
- "@docusaurus/utils-validation": "4.0.0-canary-6980",
17
+ "@docusaurus/core": "4.0.0-canary-6985",
18
+ "@docusaurus/mdx-loader": "4.0.0-canary-6985",
19
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6985",
20
+ "@docusaurus/plugin-content-blog": "4.0.0-canary-6985",
21
+ "@docusaurus/plugin-content-docs": "4.0.0-canary-6985",
22
+ "@docusaurus/plugin-content-pages": "4.0.0-canary-6985",
23
+ "@docusaurus/theme-common": "4.0.0-canary-6985",
24
+ "@docusaurus/theme-translations": "4.0.0-canary-6985",
25
+ "@docusaurus/types": "4.0.0-canary-6985",
26
+ "@docusaurus/utils": "4.0.0-canary-6985",
27
+ "@docusaurus/utils-common": "4.0.0-canary-6985",
28
+ "@docusaurus/utils-validation": "4.0.0-canary-6985",
29
29
  "@mdx-js/react": "^3.1.1",
30
30
  "clsx": "^2.1.1",
31
31
  "copy-text-to-clipboard": "^3.2.2",
@@ -6,7 +6,6 @@
6
6
  */
7
7
 
8
8
  import type {ComponentType, ReactNode} from 'react';
9
- import {processAdmonitionProps} from '@docusaurus/theme-common';
10
9
  import type {Props} from '@theme/Admonition';
11
10
  import AdmonitionTypes from '@theme/Admonition/Types';
12
11
 
@@ -21,8 +20,7 @@ function getAdmonitionTypeComponent(type: string): ComponentType<Props> {
21
20
  return AdmonitionTypes.info!;
22
21
  }
23
22
 
24
- export default function Admonition(unprocessedProps: Props): ReactNode {
25
- const props = processAdmonitionProps(unprocessedProps);
23
+ export default function Admonition(props: Props): ReactNode {
26
24
  const AdmonitionTypeComponent = getAdmonitionTypeComponent(props.type);
27
25
  // eslint-disable-next-line react-hooks/static-components
28
26
  return <AdmonitionTypeComponent {...props} />;