@docusaurus/preset-classic 2.3.0 → 2.4.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
@@ -49,13 +49,13 @@ function preset(context, opts = {}) {
49
49
  plugins.push(makePluginConfig('@docusaurus/plugin-google-gtag', gtag));
50
50
  }
51
51
  if (googleTagManager) {
52
- plugins.push(makePluginConfig('@docusaurus/plugin-google-gtag', googleTagManager));
52
+ plugins.push(makePluginConfig('@docusaurus/plugin-google-tag-manager', googleTagManager));
53
53
  }
54
54
  if (isProd && sitemap !== false) {
55
55
  plugins.push(makePluginConfig('@docusaurus/plugin-sitemap', sitemap));
56
56
  }
57
57
  if (Object.keys(rest).length > 0) {
58
- throw new Error(`Unrecognized keys ${Object.keys(rest).join(', ')} found in preset-classic configuration. The allowed keys are debug, docs, blog, pages, sitemap, theme, googleAnalytics, gtag. Check the documentation: https://docusaurus.io/docs/using-plugins#docusauruspreset-classic for more information on how to configure individual plugins.`);
58
+ throw new Error(`Unrecognized keys ${Object.keys(rest).join(', ')} found in preset-classic configuration. The allowed keys are debug, docs, blog, pages, sitemap, theme, googleAnalytics, gtag, and googleTagManager. Check the documentation: https://docusaurus.io/docs/using-plugins#docusauruspreset-classic for more information on how to configure individual plugins.`);
59
59
  }
60
60
  return { themes, plugins };
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/preset-classic",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Classic preset for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -18,19 +18,19 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/core": "2.3.0",
22
- "@docusaurus/plugin-content-blog": "2.3.0",
23
- "@docusaurus/plugin-content-docs": "2.3.0",
24
- "@docusaurus/plugin-content-pages": "2.3.0",
25
- "@docusaurus/plugin-debug": "2.3.0",
26
- "@docusaurus/plugin-google-analytics": "2.3.0",
27
- "@docusaurus/plugin-google-gtag": "2.3.0",
28
- "@docusaurus/plugin-google-tag-manager": "2.3.0",
29
- "@docusaurus/plugin-sitemap": "2.3.0",
30
- "@docusaurus/theme-classic": "2.3.0",
31
- "@docusaurus/theme-common": "2.3.0",
32
- "@docusaurus/theme-search-algolia": "2.3.0",
33
- "@docusaurus/types": "2.3.0"
21
+ "@docusaurus/core": "2.4.0",
22
+ "@docusaurus/plugin-content-blog": "2.4.0",
23
+ "@docusaurus/plugin-content-docs": "2.4.0",
24
+ "@docusaurus/plugin-content-pages": "2.4.0",
25
+ "@docusaurus/plugin-debug": "2.4.0",
26
+ "@docusaurus/plugin-google-analytics": "2.4.0",
27
+ "@docusaurus/plugin-google-gtag": "2.4.0",
28
+ "@docusaurus/plugin-google-tag-manager": "2.4.0",
29
+ "@docusaurus/plugin-sitemap": "2.4.0",
30
+ "@docusaurus/theme-classic": "2.4.0",
31
+ "@docusaurus/theme-common": "2.4.0",
32
+ "@docusaurus/theme-search-algolia": "2.4.0",
33
+ "@docusaurus/types": "2.4.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": "^16.8.4 || ^17.0.0",
@@ -39,5 +39,5 @@
39
39
  "engines": {
40
40
  "node": ">=16.14"
41
41
  },
42
- "gitHead": "ad477781bdca6a11fa9c6daef5048bdcec0ee37e"
42
+ "gitHead": "898b85ef134cc43bf3b1209aad0ca8cdcfb214c5"
43
43
  }
package/src/index.ts CHANGED
@@ -83,7 +83,10 @@ export default function preset(
83
83
  }
84
84
  if (googleTagManager) {
85
85
  plugins.push(
86
- makePluginConfig('@docusaurus/plugin-google-gtag', googleTagManager),
86
+ makePluginConfig(
87
+ '@docusaurus/plugin-google-tag-manager',
88
+ googleTagManager,
89
+ ),
87
90
  );
88
91
  }
89
92
  if (isProd && sitemap !== false) {
@@ -93,7 +96,7 @@ export default function preset(
93
96
  throw new Error(
94
97
  `Unrecognized keys ${Object.keys(rest).join(
95
98
  ', ',
96
- )} found in preset-classic configuration. The allowed keys are debug, docs, blog, pages, sitemap, theme, googleAnalytics, gtag. Check the documentation: https://docusaurus.io/docs/using-plugins#docusauruspreset-classic for more information on how to configure individual plugins.`,
99
+ )} found in preset-classic configuration. The allowed keys are debug, docs, blog, pages, sitemap, theme, googleAnalytics, gtag, and googleTagManager. Check the documentation: https://docusaurus.io/docs/using-plugins#docusauruspreset-classic for more information on how to configure individual plugins.`,
97
100
  );
98
101
  }
99
102