@docusaurus/theme-classic 0.0.0-4723 → 0.0.0-4726

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.
@@ -41,11 +41,7 @@ declare module '@theme/BlogListPaginator' {
41
41
  }
42
42
 
43
43
  declare module '@theme/BlogSidebar' {
44
- export type BlogSidebarItem = {title: string; permalink: string};
45
- export type BlogSidebar = {
46
- title: string;
47
- items: BlogSidebarItem[];
48
- };
44
+ import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
49
45
 
50
46
  export interface Props {
51
47
  readonly sidebar: BlogSidebar;
@@ -106,7 +102,7 @@ declare module '@theme/BlogPostPaginator' {
106
102
  declare module '@theme/BlogLayout' {
107
103
  import type {ReactNode} from 'react';
108
104
  import type {Props as LayoutProps} from '@theme/Layout';
109
- import type {BlogSidebar} from '@theme/BlogSidebar';
105
+ import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
110
106
 
111
107
  export interface Props extends LayoutProps {
112
108
  readonly sidebar?: BlogSidebar;
@@ -163,6 +163,7 @@ function DocSidebarItemCategory({
163
163
  }
164
164
  }
165
165
  aria-current={isCurrentPage ? 'page' : undefined}
166
+ aria-expanded={collapsible ? !collapsed : undefined}
166
167
  href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback}
167
168
  {...props}>
168
169
  {label}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-4723",
3
+ "version": "0.0.0-4726",
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-4723",
25
- "@docusaurus/plugin-content-blog": "0.0.0-4723",
26
- "@docusaurus/plugin-content-docs": "0.0.0-4723",
27
- "@docusaurus/plugin-content-pages": "0.0.0-4723",
28
- "@docusaurus/theme-common": "0.0.0-4723",
29
- "@docusaurus/theme-translations": "0.0.0-4723",
30
- "@docusaurus/utils": "0.0.0-4723",
31
- "@docusaurus/utils-common": "0.0.0-4723",
32
- "@docusaurus/utils-validation": "0.0.0-4723",
24
+ "@docusaurus/core": "0.0.0-4726",
25
+ "@docusaurus/plugin-content-blog": "0.0.0-4726",
26
+ "@docusaurus/plugin-content-docs": "0.0.0-4726",
27
+ "@docusaurus/plugin-content-pages": "0.0.0-4726",
28
+ "@docusaurus/theme-common": "0.0.0-4726",
29
+ "@docusaurus/theme-translations": "0.0.0-4726",
30
+ "@docusaurus/utils": "0.0.0-4726",
31
+ "@docusaurus/utils-common": "0.0.0-4726",
32
+ "@docusaurus/utils-validation": "0.0.0-4726",
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.5.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@docusaurus/module-type-aliases": "0.0.0-4723",
46
- "@docusaurus/types": "0.0.0-4723",
45
+ "@docusaurus/module-type-aliases": "0.0.0-4726",
46
+ "@docusaurus/types": "0.0.0-4726",
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": "3ed5b13a953033f8b22c0427609252011a8f2f28"
62
+ "gitHead": "f0fd448c4509295ecdfe665dcc017980c4b5153b"
63
63
  }
@@ -22,7 +22,7 @@ export default function BlogLayout(props: Props): JSX.Element {
22
22
  <div className="row">
23
23
  {hasSidebar && (
24
24
  <aside className="col col--3">
25
- <BlogSidebar sidebar={sidebar!} />
25
+ <BlogSidebar sidebar={sidebar} />
26
26
  </aside>
27
27
  )}
28
28
  <main
@@ -179,6 +179,7 @@ function DocSidebarItemCategory({
179
179
  }
180
180
  }
181
181
  aria-current={isCurrentPage ? 'page' : undefined}
182
+ aria-expanded={collapsible ? !collapsed : undefined}
182
183
  href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback}
183
184
  {...props}>
184
185
  {label}
@@ -41,11 +41,7 @@ declare module '@theme/BlogListPaginator' {
41
41
  }
42
42
 
43
43
  declare module '@theme/BlogSidebar' {
44
- export type BlogSidebarItem = {title: string; permalink: string};
45
- export type BlogSidebar = {
46
- title: string;
47
- items: BlogSidebarItem[];
48
- };
44
+ import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
49
45
 
50
46
  export interface Props {
51
47
  readonly sidebar: BlogSidebar;
@@ -106,7 +102,7 @@ declare module '@theme/BlogPostPaginator' {
106
102
  declare module '@theme/BlogLayout' {
107
103
  import type {ReactNode} from 'react';
108
104
  import type {Props as LayoutProps} from '@theme/Layout';
109
- import type {BlogSidebar} from '@theme/BlogSidebar';
105
+ import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
110
106
 
111
107
  export interface Props extends LayoutProps {
112
108
  readonly sidebar?: BlogSidebar;