@docusaurus/theme-classic 0.0.0-4191 → 0.0.0-4192
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/deps.d.ts +13 -0
- package/lib/theme/NavbarItem/DocNavbarItem.js +1 -3
- package/lib/theme-classic.d.ts +805 -0
- package/lib/types.d.ts +0 -806
- package/lib-next/deps.d.ts +13 -0
- package/lib-next/theme/NavbarItem/DocNavbarItem.js +1 -2
- package/lib-next/theme-classic.d.ts +805 -0
- package/lib-next/types.d.ts +0 -806
- package/package.json +12 -13
- package/src/deps.d.ts +13 -0
- package/src/theme/DocPage/index.tsx +1 -1
- package/src/theme/DocSidebarItem/index.tsx +1 -1
- package/src/theme/DocTagDocListPage/index.tsx +1 -1
- package/src/theme/DocVersionBanner/index.tsx +1 -1
- package/src/theme/NavbarItem/DocNavbarItem.tsx +2 -3
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +1 -1
- package/src/theme-classic.d.ts +805 -0
- package/src/types.d.ts +0 -806
package/lib/deps.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare module 'prism-react-renderer/prism' {
|
|
9
|
+
import type * as PrismNamespace from 'prismjs';
|
|
10
|
+
|
|
11
|
+
const Prism: typeof PrismNamespace;
|
|
12
|
+
export default Prism;
|
|
13
|
+
}
|
|
@@ -17,8 +17,6 @@ var _index = require("./index");
|
|
|
17
17
|
|
|
18
18
|
var _themeCommon = require("@docusaurus/theme-common");
|
|
19
19
|
|
|
20
|
-
var _utilsCommon = require("@docusaurus/utils-common");
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
21
|
|
|
24
22
|
/**
|
|
@@ -55,7 +53,7 @@ function DocNavbarItem({
|
|
|
55
53
|
} = (0, _themeCommon.useDocsPreferredVersion)(docsPluginId);
|
|
56
54
|
const latestVersion = (0, _useDocs.useLatestVersion)(docsPluginId); // Versions used to look for the doc to link to, ordered + no duplicate
|
|
57
55
|
|
|
58
|
-
const versions = (0,
|
|
56
|
+
const versions = (0, _themeCommon.uniq)([activeVersion, preferredVersion, latestVersion].filter(Boolean));
|
|
59
57
|
const doc = getDocInVersions(versions, docId);
|
|
60
58
|
const activeDocInfimaClassName = (0, _index.getInfimaActiveClassName)(props.mobile);
|
|
61
59
|
return <_DefaultNavbarItem.default exact {...props} className={(0, _clsx.default)(props.className, {
|