@docusaurus/theme-classic 0.0.0-4707 → 0.0.0-4708

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.
@@ -45,7 +45,7 @@ const MDXComponents = {
45
45
  const shouldBeInline = React.Children.toArray(props.children).every(
46
46
  (el) =>
47
47
  (typeof el === 'string' && !el.includes('\n')) ||
48
- (React.isValidElement(el) && inlineElements.includes(el.props.mdxType)),
48
+ (isValidElement(el) && inlineElements.includes(el.props.mdxType)),
49
49
  );
50
50
  return shouldBeInline ? <code {...props} /> : <CodeBlock {...props} />;
51
51
  },
@@ -4,7 +4,7 @@
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 React, {useState, cloneElement, Children, isValidElement} from 'react';
7
+ import React, {useState, cloneElement, isValidElement} from 'react';
8
8
  import useIsBrowser from '@docusaurus/useIsBrowser';
9
9
  import {
10
10
  useScrollPositionBlocker,
@@ -28,7 +28,7 @@ function TabsComponent(props) {
28
28
  groupId,
29
29
  className,
30
30
  } = props;
31
- const children = Children.map(props.children, (child) => {
31
+ const children = React.Children.map(props.children, (child) => {
32
32
  if (isValidElement(child) && isTabItem(child)) {
33
33
  return child;
34
34
  } // child.type.name will give non-sensical values in prod because of
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-4707",
3
+ "version": "0.0.0-4708",
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-4707",
25
- "@docusaurus/plugin-content-blog": "0.0.0-4707",
26
- "@docusaurus/plugin-content-docs": "0.0.0-4707",
27
- "@docusaurus/plugin-content-pages": "0.0.0-4707",
28
- "@docusaurus/theme-common": "0.0.0-4707",
29
- "@docusaurus/theme-translations": "0.0.0-4707",
30
- "@docusaurus/utils": "0.0.0-4707",
31
- "@docusaurus/utils-common": "0.0.0-4707",
32
- "@docusaurus/utils-validation": "0.0.0-4707",
24
+ "@docusaurus/core": "0.0.0-4708",
25
+ "@docusaurus/plugin-content-blog": "0.0.0-4708",
26
+ "@docusaurus/plugin-content-docs": "0.0.0-4708",
27
+ "@docusaurus/plugin-content-pages": "0.0.0-4708",
28
+ "@docusaurus/theme-common": "0.0.0-4708",
29
+ "@docusaurus/theme-translations": "0.0.0-4708",
30
+ "@docusaurus/utils": "0.0.0-4708",
31
+ "@docusaurus/utils-common": "0.0.0-4708",
32
+ "@docusaurus/utils-validation": "0.0.0-4708",
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,8 @@
42
42
  "rtlcss": "^3.3.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@docusaurus/module-type-aliases": "0.0.0-4707",
46
- "@docusaurus/types": "0.0.0-4707",
45
+ "@docusaurus/module-type-aliases": "0.0.0-4708",
46
+ "@docusaurus/types": "0.0.0-4708",
47
47
  "@types/mdx-js__react": "^1.5.5",
48
48
  "@types/prismjs": "^1.26.0",
49
49
  "@types/rtlcss": "^3.1.2",
@@ -59,5 +59,5 @@
59
59
  "engines": {
60
60
  "node": ">=14"
61
61
  },
62
- "gitHead": "0092bf6871799bbc934553842aafd69768517768"
62
+ "gitHead": "f73cf7ae74e29c8a8b00e7a053d5ad02c57a6382"
63
63
  }
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import React, {
9
- type ComponentProps,
10
9
  isValidElement,
10
+ type ComponentProps,
11
11
  type ReactElement,
12
12
  } from 'react';
13
13
  import Head from '@docusaurus/Head';
@@ -52,7 +52,7 @@ const MDXComponents: MDXComponentsObject = {
52
52
  const shouldBeInline = React.Children.toArray(props.children).every(
53
53
  (el) =>
54
54
  (typeof el === 'string' && !el.includes('\n')) ||
55
- (React.isValidElement(el) && inlineElements.includes(el.props.mdxType)),
55
+ (isValidElement(el) && inlineElements.includes(el.props.mdxType)),
56
56
  );
57
57
 
58
58
  return shouldBeInline ? <code {...props} /> : <CodeBlock {...props} />;
@@ -8,7 +8,6 @@
8
8
  import React, {
9
9
  useState,
10
10
  cloneElement,
11
- Children,
12
11
  isValidElement,
13
12
  type ReactElement,
14
13
  } from 'react';
@@ -40,7 +39,7 @@ function TabsComponent(props: Props): JSX.Element {
40
39
  groupId,
41
40
  className,
42
41
  } = props;
43
- const children = Children.map(props.children, (child) => {
42
+ const children = React.Children.map(props.children, (child) => {
44
43
  if (isValidElement(child) && isTabItem(child)) {
45
44
  return child;
46
45
  }