@docusaurus/theme-classic 0.0.0-4112 → 0.0.0-4119

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.
@@ -125,7 +125,7 @@ function DocPage(props) {
125
125
  const currentDocRoute = docRoutes.find(docRoute => (0, _router.matchPath)(location.pathname, docRoute));
126
126
 
127
127
  if (!currentDocRoute) {
128
- return <_NotFound.default {...props} />;
128
+ return <_NotFound.default />;
129
129
  }
130
130
 
131
131
  return <>
@@ -52,10 +52,9 @@ function useWindowSize() {
52
52
  (0, _react.useEffect)(() => {
53
53
  function updateWindowSize() {
54
54
  setWindowSize(getWindowSize());
55
- } // @ts-expect-error: annoying TS setTimeout typing...
56
-
55
+ }
57
56
 
58
- const timeout = DevSimulateSSR ? setTimeout(updateWindowSize, 1000) : undefined;
57
+ const timeout = DevSimulateSSR ? window.setTimeout(updateWindowSize, 1000) : undefined;
59
58
  window.addEventListener('resize', updateWindowSize);
60
59
  return () => {
61
60
  window.removeEventListener('resize', updateWindowSize);
package/lib/types.d.ts CHANGED
@@ -778,7 +778,7 @@ declare module '@theme/TagsListByLetter' {
778
778
  }
779
779
 
780
780
  declare module '@theme/TagsListInline' {
781
- export type Tag = Readonly<{label: string; permalink}>;
781
+ export type Tag = Readonly<{label: string; permalink: string}>;
782
782
  export interface Props {
783
783
  readonly tags: readonly Tag[];
784
784
  }
@@ -130,7 +130,7 @@ function DocPage(props) {
130
130
  );
131
131
 
132
132
  if (!currentDocRoute) {
133
- return <NotFound {...props} />;
133
+ return <NotFound />;
134
134
  }
135
135
 
136
136
  return (
@@ -42,10 +42,10 @@ function useWindowSize() {
42
42
  useEffect(() => {
43
43
  function updateWindowSize() {
44
44
  setWindowSize(getWindowSize());
45
- } // @ts-expect-error: annoying TS setTimeout typing...
45
+ }
46
46
 
47
47
  const timeout = DevSimulateSSR
48
- ? setTimeout(updateWindowSize, 1000)
48
+ ? window.setTimeout(updateWindowSize, 1000)
49
49
  : undefined;
50
50
  window.addEventListener('resize', updateWindowSize);
51
51
  return () => {
@@ -778,7 +778,7 @@ declare module '@theme/TagsListByLetter' {
778
778
  }
779
779
 
780
780
  declare module '@theme/TagsListInline' {
781
- export type Tag = Readonly<{label: string; permalink}>;
781
+ export type Tag = Readonly<{label: string; permalink: string}>;
782
782
  export interface Props {
783
783
  readonly tags: readonly Tag[];
784
784
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-4112",
3
+ "version": "0.0.0-4119",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/types.d.ts",
@@ -23,15 +23,15 @@
23
23
  "update-code-translations": "node -e 'require(\"./update-code-translations.js\").run()'"
24
24
  },
25
25
  "dependencies": {
26
- "@docusaurus/core": "0.0.0-4112",
27
- "@docusaurus/plugin-content-blog": "0.0.0-4112",
28
- "@docusaurus/plugin-content-docs": "0.0.0-4112",
29
- "@docusaurus/plugin-content-pages": "0.0.0-4112",
30
- "@docusaurus/theme-common": "0.0.0-4112",
31
- "@docusaurus/types": "0.0.0-4112",
32
- "@docusaurus/utils": "0.0.0-4112",
33
- "@docusaurus/utils-common": "0.0.0-4112",
34
- "@docusaurus/utils-validation": "0.0.0-4112",
26
+ "@docusaurus/core": "0.0.0-4119",
27
+ "@docusaurus/plugin-content-blog": "0.0.0-4119",
28
+ "@docusaurus/plugin-content-docs": "0.0.0-4119",
29
+ "@docusaurus/plugin-content-pages": "0.0.0-4119",
30
+ "@docusaurus/theme-common": "0.0.0-4119",
31
+ "@docusaurus/types": "0.0.0-4119",
32
+ "@docusaurus/utils": "0.0.0-4119",
33
+ "@docusaurus/utils-common": "0.0.0-4119",
34
+ "@docusaurus/utils-validation": "0.0.0-4119",
35
35
  "@mdx-js/mdx": "^1.6.21",
36
36
  "@mdx-js/react": "^1.6.21",
37
37
  "chalk": "^4.1.2",
@@ -50,7 +50,7 @@
50
50
  "rtlcss": "^3.3.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@docusaurus/module-type-aliases": "0.0.0-4112",
53
+ "@docusaurus/module-type-aliases": "0.0.0-4119",
54
54
  "@types/mdx-js__react": "^1.5.4",
55
55
  "@types/parse-numeric-range": "^0.0.1",
56
56
  "@types/rtlcss": "^3.1.1",
@@ -64,5 +64,5 @@
64
64
  "engines": {
65
65
  "node": ">=12.13.0"
66
66
  },
67
- "gitHead": "b81a5030e94dd5c3a4bcca81b28e4b9b2470f035"
67
+ "gitHead": "7e10683e0fdecfc20a042bc35a542a51bda26a1e"
68
68
  }
@@ -148,7 +148,7 @@ function DocPage(props: Props): JSX.Element {
148
148
  matchPath(location.pathname, docRoute),
149
149
  );
150
150
  if (!currentDocRoute) {
151
- return <NotFound {...props} />;
151
+ return <NotFound />;
152
152
  }
153
153
  return (
154
154
  <>
@@ -51,9 +51,8 @@ function useWindowSize(): WindowSize {
51
51
  setWindowSize(getWindowSize());
52
52
  }
53
53
 
54
- // @ts-expect-error: annoying TS setTimeout typing...
55
- const timeout: number | undefined = DevSimulateSSR
56
- ? setTimeout(updateWindowSize, 1000)
54
+ const timeout = DevSimulateSSR
55
+ ? window.setTimeout(updateWindowSize, 1000)
57
56
  : undefined;
58
57
 
59
58
  window.addEventListener('resize', updateWindowSize);
package/src/types.d.ts CHANGED
@@ -778,7 +778,7 @@ declare module '@theme/TagsListByLetter' {
778
778
  }
779
779
 
780
780
  declare module '@theme/TagsListInline' {
781
- export type Tag = Readonly<{label: string; permalink}>;
781
+ export type Tag = Readonly<{label: string; permalink: string}>;
782
782
  export interface Props {
783
783
  readonly tags: readonly Tag[];
784
784
  }