@docusaurus/theme-classic 3.0.0 → 3.0.1

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.
@@ -9,8 +9,15 @@
9
9
  Workaround to avoid rendering empty search container
10
10
  See https://github.com/facebook/docusaurus/pull/9385
11
11
  */
12
- .navbarSearchContainer:not(:has(> *)) {
13
- display: none;
12
+ /*
13
+ TODO temporary @supports check, remove before 2025
14
+ only needed for Firefox < 121
15
+ see https://github.com/facebook/docusaurus/issues/9527#issuecomment-1805272379
16
+ */
17
+ @supports selector(:has(*)) {
18
+ .navbarSearchContainer:not(:has(> *)) {
19
+ display: none;
20
+ }
14
21
  }
15
22
 
16
23
  @media (max-width: 996px) {
@@ -14,6 +14,7 @@ import {
14
14
  import {isSamePath, useLocalPathname} from '@docusaurus/theme-common/internal';
15
15
  import NavbarNavLink from '@theme/NavbarItem/NavbarNavLink';
16
16
  import NavbarItem from '@theme/NavbarItem';
17
+ import styles from './styles.module.css';
17
18
  function isItemActive(item, localPathname) {
18
19
  if (isSamePath(item.to, localPathname)) {
19
20
  return true;
@@ -116,6 +117,7 @@ function DropdownNavbarItemMobile({
116
117
  <NavbarNavLink
117
118
  role="button"
118
119
  className={clsx(
120
+ styles.dropdownNavbarItemMobile,
119
121
  'menu__link menu__link--sublist menu__link--sublist-caret',
120
122
  className,
121
123
  )}
@@ -0,0 +1,10 @@
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
+ .dropdownNavbarItemMobile {
9
+ cursor: pointer;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -20,26 +20,26 @@
20
20
  "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@docusaurus/core": "3.0.0",
24
- "@docusaurus/mdx-loader": "3.0.0",
25
- "@docusaurus/module-type-aliases": "3.0.0",
26
- "@docusaurus/plugin-content-blog": "3.0.0",
27
- "@docusaurus/plugin-content-docs": "3.0.0",
28
- "@docusaurus/plugin-content-pages": "3.0.0",
29
- "@docusaurus/theme-common": "3.0.0",
30
- "@docusaurus/theme-translations": "3.0.0",
31
- "@docusaurus/types": "3.0.0",
32
- "@docusaurus/utils": "3.0.0",
33
- "@docusaurus/utils-common": "3.0.0",
34
- "@docusaurus/utils-validation": "3.0.0",
23
+ "@docusaurus/core": "3.0.1",
24
+ "@docusaurus/mdx-loader": "3.0.1",
25
+ "@docusaurus/module-type-aliases": "3.0.1",
26
+ "@docusaurus/plugin-content-blog": "3.0.1",
27
+ "@docusaurus/plugin-content-docs": "3.0.1",
28
+ "@docusaurus/plugin-content-pages": "3.0.1",
29
+ "@docusaurus/theme-common": "3.0.1",
30
+ "@docusaurus/theme-translations": "3.0.1",
31
+ "@docusaurus/types": "3.0.1",
32
+ "@docusaurus/utils": "3.0.1",
33
+ "@docusaurus/utils-common": "3.0.1",
34
+ "@docusaurus/utils-validation": "3.0.1",
35
35
  "@mdx-js/react": "^3.0.0",
36
- "clsx": "^1.2.1",
36
+ "clsx": "^2.0.0",
37
37
  "copy-text-to-clipboard": "^3.2.0",
38
38
  "infima": "0.2.0-alpha.43",
39
39
  "lodash": "^4.17.21",
40
40
  "nprogress": "^0.2.0",
41
41
  "postcss": "^8.4.26",
42
- "prism-react-renderer": "^2.1.0",
42
+ "prism-react-renderer": "^2.3.0",
43
43
  "prismjs": "^1.29.0",
44
44
  "react-router-dom": "^5.3.4",
45
45
  "rtlcss": "^4.1.0",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">=18.0"
64
64
  },
65
- "gitHead": "ca8b4638c47119d38838656c4a11ee3a5e7ba6f2"
65
+ "gitHead": "29d816067fd0022d4ca3bd5fdc42098dac9f7ffc"
66
66
  }
@@ -9,8 +9,15 @@
9
9
  Workaround to avoid rendering empty search container
10
10
  See https://github.com/facebook/docusaurus/pull/9385
11
11
  */
12
- .navbarSearchContainer:not(:has(> *)) {
13
- display: none;
12
+ /*
13
+ TODO temporary @supports check, remove before 2025
14
+ only needed for Firefox < 121
15
+ see https://github.com/facebook/docusaurus/issues/9527#issuecomment-1805272379
16
+ */
17
+ @supports selector(:has(*)) {
18
+ .navbarSearchContainer:not(:has(> *)) {
19
+ display: none;
20
+ }
14
21
  }
15
22
 
16
23
  @media (max-width: 996px) {
@@ -19,6 +19,7 @@ import type {
19
19
  DesktopOrMobileNavBarItemProps,
20
20
  Props,
21
21
  } from '@theme/NavbarItem/DropdownNavbarItem';
22
+ import styles from './styles.module.css';
22
23
 
23
24
  function isItemActive(
24
25
  item: LinkLikeNavbarItemProps,
@@ -143,6 +144,7 @@ function DropdownNavbarItemMobile({
143
144
  <NavbarNavLink
144
145
  role="button"
145
146
  className={clsx(
147
+ styles.dropdownNavbarItemMobile,
146
148
  'menu__link menu__link--sublist menu__link--sublist-caret',
147
149
  className,
148
150
  )}
@@ -0,0 +1,10 @@
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
+ .dropdownNavbarItemMobile {
9
+ cursor: pointer;
10
+ }