@docusaurus/preset-classic 3.7.0 → 3.8.0

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.
package/lib/index.js CHANGED
@@ -31,6 +31,11 @@ function preset(context, opts = {}) {
31
31
  throw new Error('The "googleAnalytics" field in themeConfig should now be specified as option for plugin-google-analytics. For preset-classic, simply move themeConfig.googleAnalytics to preset options. More information at https://github.com/facebook/docusaurus/pull/5832.');
32
32
  }
33
33
  const plugins = [];
34
+ // TODO Docusaurus v4: temporary due to the opt-in flag
35
+ // In v4 we'd like to use layers everywhere natively
36
+ if (siteConfig.future.v4.useCssCascadeLayers) {
37
+ plugins.push(makePluginConfig('@docusaurus/plugin-css-cascade-layers'));
38
+ }
34
39
  if (docs !== false) {
35
40
  plugins.push(makePluginConfig('@docusaurus/plugin-content-docs', docs));
36
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/preset-classic",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "Classic preset for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -18,20 +18,21 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/core": "3.7.0",
22
- "@docusaurus/plugin-content-blog": "3.7.0",
23
- "@docusaurus/plugin-content-docs": "3.7.0",
24
- "@docusaurus/plugin-content-pages": "3.7.0",
25
- "@docusaurus/plugin-debug": "3.7.0",
26
- "@docusaurus/plugin-google-analytics": "3.7.0",
27
- "@docusaurus/plugin-google-gtag": "3.7.0",
28
- "@docusaurus/plugin-google-tag-manager": "3.7.0",
29
- "@docusaurus/plugin-sitemap": "3.7.0",
30
- "@docusaurus/plugin-svgr": "3.7.0",
31
- "@docusaurus/theme-classic": "3.7.0",
32
- "@docusaurus/theme-common": "3.7.0",
33
- "@docusaurus/theme-search-algolia": "3.7.0",
34
- "@docusaurus/types": "3.7.0"
21
+ "@docusaurus/core": "3.8.0",
22
+ "@docusaurus/plugin-content-blog": "3.8.0",
23
+ "@docusaurus/plugin-content-docs": "3.8.0",
24
+ "@docusaurus/plugin-content-pages": "3.8.0",
25
+ "@docusaurus/plugin-css-cascade-layers": "3.8.0",
26
+ "@docusaurus/plugin-debug": "3.8.0",
27
+ "@docusaurus/plugin-google-analytics": "3.8.0",
28
+ "@docusaurus/plugin-google-gtag": "3.8.0",
29
+ "@docusaurus/plugin-google-tag-manager": "3.8.0",
30
+ "@docusaurus/plugin-sitemap": "3.8.0",
31
+ "@docusaurus/plugin-svgr": "3.8.0",
32
+ "@docusaurus/theme-classic": "3.8.0",
33
+ "@docusaurus/theme-common": "3.8.0",
34
+ "@docusaurus/theme-search-algolia": "3.8.0",
35
+ "@docusaurus/types": "3.8.0"
35
36
  },
36
37
  "peerDependencies": {
37
38
  "react": "^18.0.0 || ^19.0.0",
@@ -40,5 +41,5 @@
40
41
  "engines": {
41
42
  "node": ">=18.0"
42
43
  },
43
- "gitHead": "dd59750c16fe6908a26f18806a54d4c3dbe6db43"
44
+ "gitHead": "948d63c42fad0ba24b7b531a9deb6167e64dc845"
44
45
  }
package/src/index.ts CHANGED
@@ -62,6 +62,13 @@ export default function preset(
62
62
  }
63
63
 
64
64
  const plugins: PluginConfig[] = [];
65
+
66
+ // TODO Docusaurus v4: temporary due to the opt-in flag
67
+ // In v4 we'd like to use layers everywhere natively
68
+ if (siteConfig.future.v4.useCssCascadeLayers) {
69
+ plugins.push(makePluginConfig('@docusaurus/plugin-css-cascade-layers'));
70
+ }
71
+
65
72
  if (docs !== false) {
66
73
  plugins.push(makePluginConfig('@docusaurus/plugin-content-docs', docs));
67
74
  }