@docusaurus/theme-classic 0.0.0-4696 → 0.0.0-4699

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.
@@ -250,14 +250,10 @@ function DocSidebarItemLink({
250
250
  onClick: onItemClick ? () => onItemClick(item) : undefined,
251
251
  })}
252
252
  {...props}>
253
- {isInternalUrl(href) ? (
254
- label
255
- ) : (
256
- <span>
257
- {label}
258
- <IconExternalLink />
259
- </span>
260
- )}
253
+ <span>
254
+ {label}
255
+ {!isInternalUrl(href) && <IconExternalLink />}
256
+ </span>
261
257
  </Link>
262
258
  </li>
263
259
  );
@@ -30,14 +30,10 @@ function FooterLink({to, href, label, prependBaseUrlToHref, ...props}) {
30
30
  to: toUrl,
31
31
  })}
32
32
  {...props}>
33
- {href && !isInternalUrl(href) ? (
34
- <span>
35
- {label}
36
- <IconExternalLink />
37
- </span>
38
- ) : (
39
- label
40
- )}
33
+ <span>
34
+ {label}
35
+ {href && !isInternalUrl(href) && <IconExternalLink />}
36
+ </span>
41
37
  </Link>
42
38
  );
43
39
  }
@@ -52,19 +52,17 @@ export default function NavbarNavLink({
52
52
  : null),
53
53
  })}
54
54
  {...props}>
55
- {isExternalLink ? (
56
- <span>
57
- {label}
55
+ <span>
56
+ {label}
57
+ {isExternalLink && (
58
58
  <IconExternalLink
59
59
  {...(isDropdownLink && {
60
60
  width: 12,
61
61
  height: 12,
62
62
  })}
63
63
  />
64
- </span>
65
- ) : (
66
- label
67
- )}
64
+ )}
65
+ </span>
68
66
  </Link>
69
67
  );
70
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-4696",
3
+ "version": "0.0.0-4699",
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-4696",
25
- "@docusaurus/plugin-content-blog": "0.0.0-4696",
26
- "@docusaurus/plugin-content-docs": "0.0.0-4696",
27
- "@docusaurus/plugin-content-pages": "0.0.0-4696",
28
- "@docusaurus/theme-common": "0.0.0-4696",
29
- "@docusaurus/theme-translations": "0.0.0-4696",
30
- "@docusaurus/utils": "0.0.0-4696",
31
- "@docusaurus/utils-common": "0.0.0-4696",
32
- "@docusaurus/utils-validation": "0.0.0-4696",
24
+ "@docusaurus/core": "0.0.0-4699",
25
+ "@docusaurus/plugin-content-blog": "0.0.0-4699",
26
+ "@docusaurus/plugin-content-docs": "0.0.0-4699",
27
+ "@docusaurus/plugin-content-pages": "0.0.0-4699",
28
+ "@docusaurus/theme-common": "0.0.0-4699",
29
+ "@docusaurus/theme-translations": "0.0.0-4699",
30
+ "@docusaurus/utils": "0.0.0-4699",
31
+ "@docusaurus/utils-common": "0.0.0-4699",
32
+ "@docusaurus/utils-validation": "0.0.0-4699",
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.3.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@docusaurus/module-type-aliases": "0.0.0-4696",
46
- "@docusaurus/types": "0.0.0-4696",
45
+ "@docusaurus/module-type-aliases": "0.0.0-4699",
46
+ "@docusaurus/types": "0.0.0-4699",
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": "8157433e404db871178e42d7f138553b4d128950"
62
+ "gitHead": "ae96a5ebd7fb6dde9af93742deb5c295bea4915d"
63
63
  }
@@ -269,14 +269,10 @@ function DocSidebarItemLink({
269
269
  onClick: onItemClick ? () => onItemClick(item) : undefined,
270
270
  })}
271
271
  {...props}>
272
- {isInternalUrl(href) ? (
273
- label
274
- ) : (
275
- <span>
276
- {label}
277
- <IconExternalLink />
278
- </span>
279
- )}
272
+ <span>
273
+ {label}
274
+ {!isInternalUrl(href) && <IconExternalLink />}
275
+ </span>
280
276
  </Link>
281
277
  </li>
282
278
  );
@@ -42,14 +42,10 @@ function FooterLink({
42
42
  to: toUrl,
43
43
  })}
44
44
  {...props}>
45
- {href && !isInternalUrl(href) ? (
46
- <span>
47
- {label}
48
- <IconExternalLink />
49
- </span>
50
- ) : (
51
- label
52
- )}
45
+ <span>
46
+ {label}
47
+ {href && !isInternalUrl(href) && <IconExternalLink />}
48
+ </span>
53
49
  </Link>
54
50
  );
55
51
  }
@@ -55,14 +55,12 @@ export default function NavbarNavLink({
55
55
  : null),
56
56
  })}
57
57
  {...props}>
58
- {isExternalLink ? (
59
- <span>
60
- {label}
58
+ <span>
59
+ {label}
60
+ {isExternalLink && (
61
61
  <IconExternalLink {...(isDropdownLink && {width: 12, height: 12})} />
62
- </span>
63
- ) : (
64
- label
65
- )}
62
+ )}
63
+ </span>
66
64
  </Link>
67
65
  );
68
66
  }