@sp-days-framework/docusaurus-plugin-interactive-tasks 1.0.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/LICENSE +21 -0
- package/README.md +339 -0
- package/lib/contexts/DocTaskCounterContext.d.ts +15 -0
- package/lib/contexts/DocTaskCounterContext.d.ts.map +1 -0
- package/lib/contexts/DocTaskCounterContext.js +7 -0
- package/lib/contexts/DocTaskCounterContext.js.map +1 -0
- package/lib/contexts/TaskContext.d.ts +72 -0
- package/lib/contexts/TaskContext.d.ts.map +1 -0
- package/lib/contexts/TaskContext.js +6 -0
- package/lib/contexts/TaskContext.js.map +1 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +59 -0
- package/lib/index.js.map +1 -0
- package/lib/plugin/TaskRegistryPlugin.d.ts +27 -0
- package/lib/plugin/TaskRegistryPlugin.d.ts.map +1 -0
- package/lib/plugin/TaskRegistryPlugin.js +328 -0
- package/lib/plugin/TaskRegistryPlugin.js.map +1 -0
- package/lib/plugin/remarkTaskDirective.d.ts +29 -0
- package/lib/plugin/remarkTaskDirective.d.ts.map +1 -0
- package/lib/plugin/remarkTaskDirective.js +277 -0
- package/lib/plugin/remarkTaskDirective.js.map +1 -0
- package/lib/theme/DocRoot/Layout/index.d.ts +14 -0
- package/lib/theme/DocRoot/Layout/index.d.ts.map +1 -0
- package/lib/theme/DocRoot/Layout/index.js +27 -0
- package/lib/theme/DocRoot/Layout/index.js.map +1 -0
- package/lib/theme/DocRoot/index.d.ts +22 -0
- package/lib/theme/DocRoot/index.d.ts.map +1 -0
- package/lib/theme/DocRoot/index.js +33 -0
- package/lib/theme/DocRoot/index.js.map +1 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +4 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts.map +1 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.js +24 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.js.map +1 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +40 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +4 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.d.ts.map +1 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.js +67 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.js.map +1 -0
- package/lib/theme/DocSidebar/Desktop/Content/styles.module.css +16 -0
- package/lib/theme/DocSidebar/Desktop/index.d.ts +6 -0
- package/lib/theme/DocSidebar/Desktop/index.d.ts.map +1 -0
- package/lib/theme/DocSidebar/Desktop/index.js +21 -0
- package/lib/theme/DocSidebar/Desktop/index.js.map +1 -0
- package/lib/theme/DocSidebar/Desktop/styles.module.css +37 -0
- package/lib/theme/DocSidebar/Mobile/index.d.ts +6 -0
- package/lib/theme/DocSidebar/Mobile/index.d.ts.map +1 -0
- package/lib/theme/DocSidebar/Mobile/index.js +29 -0
- package/lib/theme/DocSidebar/Mobile/index.js.map +1 -0
- package/lib/theme/DocSidebar/index.d.ts +4 -0
- package/lib/theme/DocSidebar/index.d.ts.map +1 -0
- package/lib/theme/DocSidebar/index.js +21 -0
- package/lib/theme/DocSidebar/index.js.map +1 -0
- package/lib/theme/DocSidebarItem/Category/index.d.ts +4 -0
- package/lib/theme/DocSidebarItem/Category/index.d.ts.map +1 -0
- package/lib/theme/DocSidebarItem/Category/index.js +316 -0
- package/lib/theme/DocSidebarItem/Category/index.js.map +1 -0
- package/lib/theme/DocSidebarItem/Category/styles.module.css +187 -0
- package/lib/theme/DocSidebarItem/Html/index.d.ts +4 -0
- package/lib/theme/DocSidebarItem/Html/index.d.ts.map +1 -0
- package/lib/theme/DocSidebarItem/Html/index.js +17 -0
- package/lib/theme/DocSidebarItem/Html/index.js.map +1 -0
- package/lib/theme/DocSidebarItem/Html/styles.module.css +6 -0
- package/lib/theme/DocSidebarItem/Link/index.d.ts +6 -0
- package/lib/theme/DocSidebarItem/Link/index.d.ts.map +1 -0
- package/lib/theme/DocSidebarItem/Link/index.js +149 -0
- package/lib/theme/DocSidebarItem/Link/index.js.map +1 -0
- package/lib/theme/DocSidebarItem/Link/styles.module.css +197 -0
- package/lib/theme/DocSidebarItem/index.d.ts +4 -0
- package/lib/theme/DocSidebarItem/index.d.ts.map +1 -0
- package/lib/theme/DocSidebarItem/index.js +22 -0
- package/lib/theme/DocSidebarItem/index.js.map +1 -0
- package/lib/theme/DocSidebarItems/index.d.ts +6 -0
- package/lib/theme/DocSidebarItems/index.d.ts.map +1 -0
- package/lib/theme/DocSidebarItems/index.js +48 -0
- package/lib/theme/DocSidebarItems/index.js.map +1 -0
- package/lib/theme/DocTaskCounterProvider/index.d.ts +20 -0
- package/lib/theme/DocTaskCounterProvider/index.d.ts.map +1 -0
- package/lib/theme/DocTaskCounterProvider/index.js +105 -0
- package/lib/theme/DocTaskCounterProvider/index.js.map +1 -0
- package/lib/theme/MDXComponents.d.ts +19 -0
- package/lib/theme/MDXComponents.d.ts.map +1 -0
- package/lib/theme/MDXComponents.js +52 -0
- package/lib/theme/MDXComponents.js.map +1 -0
- package/lib/theme/Root.d.ts +9 -0
- package/lib/theme/Root.d.ts.map +1 -0
- package/lib/theme/Root.js +105 -0
- package/lib/theme/Root.js.map +1 -0
- package/lib/theme/Task/Hint/index.d.ts +14 -0
- package/lib/theme/Task/Hint/index.d.ts.map +1 -0
- package/lib/theme/Task/Hint/index.js +23 -0
- package/lib/theme/Task/Hint/index.js.map +1 -0
- package/lib/theme/Task/Hint/styles.module.css +72 -0
- package/lib/theme/Task/Solution/index.d.ts +14 -0
- package/lib/theme/Task/Solution/index.d.ts.map +1 -0
- package/lib/theme/Task/Solution/index.js +23 -0
- package/lib/theme/Task/Solution/index.js.map +1 -0
- package/lib/theme/Task/Solution/styles.module.css +71 -0
- package/lib/theme/Task/Text/index.d.ts +14 -0
- package/lib/theme/Task/Text/index.d.ts.map +1 -0
- package/lib/theme/Task/Text/index.js +18 -0
- package/lib/theme/Task/Text/index.js.map +1 -0
- package/lib/theme/Task/Text/styles.module.css +39 -0
- package/lib/theme/Task/index.d.ts +11 -0
- package/lib/theme/Task/index.d.ts.map +1 -0
- package/lib/theme/Task/index.js +286 -0
- package/lib/theme/Task/index.js.map +1 -0
- package/lib/theme/Task/styles.module.css +529 -0
- package/lib/theme/TaskAutoHideToggle/index.d.ts +10 -0
- package/lib/theme/TaskAutoHideToggle/index.d.ts.map +1 -0
- package/lib/theme/TaskAutoHideToggle/index.js +79 -0
- package/lib/theme/TaskAutoHideToggle/index.js.map +1 -0
- package/lib/theme/TaskAutoHideToggle/styles.module.css +41 -0
- package/lib/theme/TaskExample/index.d.ts +16 -0
- package/lib/theme/TaskExample/index.d.ts.map +1 -0
- package/lib/theme/TaskExample/index.js +249 -0
- package/lib/theme/TaskExample/index.js.map +1 -0
- package/lib/theme/TaskPlaceholder/README.md +119 -0
- package/lib/theme/TaskPlaceholder/index.d.ts +23 -0
- package/lib/theme/TaskPlaceholder/index.d.ts.map +1 -0
- package/lib/theme/TaskPlaceholder/index.js +293 -0
- package/lib/theme/TaskPlaceholder/index.js.map +1 -0
- package/lib/theme/TaskProgression/index.d.ts +11 -0
- package/lib/theme/TaskProgression/index.d.ts.map +1 -0
- package/lib/theme/TaskProgression/index.js +131 -0
- package/lib/theme/TaskProgression/index.js.map +1 -0
- package/lib/theme/TaskProgression/styles.module.css +162 -0
- package/lib/theme/TaskProgressionOverview/index.d.ts +10 -0
- package/lib/theme/TaskProgressionOverview/index.d.ts.map +1 -0
- package/lib/theme/TaskProgressionOverview/index.js +123 -0
- package/lib/theme/TaskProgressionOverview/index.js.map +1 -0
- package/lib/theme/TaskProgressionOverview/styles.module.css +159 -0
- package/lib/theme/TaskProvider/index.d.ts +15 -0
- package/lib/theme/TaskProvider/index.d.ts.map +1 -0
- package/lib/theme/TaskProvider/index.js +134 -0
- package/lib/theme/TaskProvider/index.js.map +1 -0
- package/lib/utils/badgeStyles.d.ts +29 -0
- package/lib/utils/badgeStyles.d.ts.map +1 -0
- package/lib/utils/badgeStyles.js +60 -0
- package/lib/utils/badgeStyles.js.map +1 -0
- package/lib/utils/icons.d.ts +38 -0
- package/lib/utils/icons.d.ts.map +1 -0
- package/lib/utils/icons.js +53 -0
- package/lib/utils/icons.js.map +1 -0
- package/lib/utils/logger.d.ts +38 -0
- package/lib/utils/logger.d.ts.map +1 -0
- package/lib/utils/logger.js +72 -0
- package/lib/utils/logger.js.map +1 -0
- package/lib/utils/storage.d.ts +33 -0
- package/lib/utils/storage.d.ts.map +1 -0
- package/lib/utils/storage.js +105 -0
- package/lib/utils/storage.js.map +1 -0
- package/lib/utils/useDocTaskStats.d.ts +58 -0
- package/lib/utils/useDocTaskStats.d.ts.map +1 -0
- package/lib/utils/useDocTaskStats.js +206 -0
- package/lib/utils/useDocTaskStats.js.map +1 -0
- package/lib/utils/usePluginId.d.ts +24 -0
- package/lib/utils/usePluginId.d.ts.map +1 -0
- package/lib/utils/usePluginId.js +61 -0
- package/lib/utils/usePluginId.js.map +1 -0
- package/lib/utils/useResolveDocPath.d.ts +33 -0
- package/lib/utils/useResolveDocPath.d.ts.map +1 -0
- package/lib/utils/useResolveDocPath.js +122 -0
- package/lib/utils/useResolveDocPath.js.map +1 -0
- package/lib/utils/useTaskBadgeAnimation.d.ts +16 -0
- package/lib/utils/useTaskBadgeAnimation.d.ts.map +1 -0
- package/lib/utils/useTaskBadgeAnimation.js +51 -0
- package/lib/utils/useTaskBadgeAnimation.js.map +1 -0
- package/lib/validateThemeConfig.d.ts +8 -0
- package/lib/validateThemeConfig.d.ts.map +1 -0
- package/lib/validateThemeConfig.js +15 -0
- package/lib/validateThemeConfig.js.map +1 -0
- package/package.json +82 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DocRoot/Layout wrapper
|
|
3
|
+
* Wraps the main content area with DocTaskCounterProvider
|
|
4
|
+
*
|
|
5
|
+
* TaskProvider is provided at the DocRoot level (parent of this component)
|
|
6
|
+
* so both sidebar and content have access to it.
|
|
7
|
+
*
|
|
8
|
+
* IMPORTANT: We import from @docusaurus/theme-classic directly to avoid circular dependencies
|
|
9
|
+
* Do NOT use @theme-original/DocRoot/Layout
|
|
10
|
+
*/
|
|
11
|
+
import { type ReactNode } from 'react';
|
|
12
|
+
import type { Props } from '@theme/DocRoot/Layout';
|
|
13
|
+
export default function DocRootLayout({ children }: Props): ReactNode;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/DocRoot/Layout/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,GAAG,SAAS,CAQpE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DocRoot/Layout wrapper
|
|
4
|
+
* Wraps the main content area with DocTaskCounterProvider
|
|
5
|
+
*
|
|
6
|
+
* TaskProvider is provided at the DocRoot level (parent of this component)
|
|
7
|
+
* so both sidebar and content have access to it.
|
|
8
|
+
*
|
|
9
|
+
* IMPORTANT: We import from @docusaurus/theme-classic directly to avoid circular dependencies
|
|
10
|
+
* Do NOT use @theme-original/DocRoot/Layout
|
|
11
|
+
*/
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.default = DocRootLayout;
|
|
17
|
+
const react_1 = __importDefault(require("react"));
|
|
18
|
+
// Import directly from theme-classic to avoid circular dependency
|
|
19
|
+
const Layout_1 = __importDefault(require("@docusaurus/theme-classic/lib/theme/DocRoot/Layout"));
|
|
20
|
+
const DocTaskCounterProvider_1 = require("../../DocTaskCounterProvider");
|
|
21
|
+
function DocRootLayout({ children }) {
|
|
22
|
+
// Wrap children (the actual doc content) with DocTaskCounterProvider
|
|
23
|
+
// This provides the task counter context to Task components in the MDX
|
|
24
|
+
return (react_1.default.createElement(Layout_1.default, null,
|
|
25
|
+
react_1.default.createElement(DocTaskCounterProvider_1.DocTaskCounterProvider, null, children)));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/theme/DocRoot/Layout/index.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;AAQH,gCAQC;AAdD,kDAA8C;AAC9C,kEAAkE;AAClE,gGAAuF;AACvF,yEAAsE;AAGtE,SAAwB,aAAa,CAAC,EAAE,QAAQ,EAAS;IACvD,qEAAqE;IACrE,uEAAuE;IACvE,OAAO,CACL,8BAAC,gBAAqB;QACpB,8BAAC,+CAAsB,QAAE,QAAQ,CAA0B,CACrC,CACzB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DocRoot wrapper component
|
|
3
|
+
* Provides TaskProvider context to the entire docs layout (sidebar + content)
|
|
4
|
+
*
|
|
5
|
+
* This is a critical component that ensures TaskProvider is available to:
|
|
6
|
+
* - Sidebar components (DocSidebarItem/Link, DocSidebarItem/Category)
|
|
7
|
+
* - Main content (Task components, TaskProgression)
|
|
8
|
+
* - All other doc page components
|
|
9
|
+
*
|
|
10
|
+
* IMPORTANT: We import from @docusaurus/theme-classic directly to avoid circular dependencies
|
|
11
|
+
* Do NOT use @theme-original/DocRoot here as it would create an infinite loop!
|
|
12
|
+
* This is a known limitation for theme packages
|
|
13
|
+
*
|
|
14
|
+
* TRADE-OFF: This approach bypasses theme resolution, which breaks MDX CodeBlock rendering.
|
|
15
|
+
* The proper solution is to have users add TaskProvider at the site level (src/theme/Root).
|
|
16
|
+
*
|
|
17
|
+
* DocTaskCounterProvider is added in DocRoot/Layout to wrap only the main content area.
|
|
18
|
+
*/
|
|
19
|
+
import { type ReactNode } from 'react';
|
|
20
|
+
import type { Props } from '@theme/DocRoot';
|
|
21
|
+
export default function DocRoot(props: Props): ReactNode;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/DocRoot/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,CAMvD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DocRoot wrapper component
|
|
4
|
+
* Provides TaskProvider context to the entire docs layout (sidebar + content)
|
|
5
|
+
*
|
|
6
|
+
* This is a critical component that ensures TaskProvider is available to:
|
|
7
|
+
* - Sidebar components (DocSidebarItem/Link, DocSidebarItem/Category)
|
|
8
|
+
* - Main content (Task components, TaskProgression)
|
|
9
|
+
* - All other doc page components
|
|
10
|
+
*
|
|
11
|
+
* IMPORTANT: We import from @docusaurus/theme-classic directly to avoid circular dependencies
|
|
12
|
+
* Do NOT use @theme-original/DocRoot here as it would create an infinite loop!
|
|
13
|
+
* This is a known limitation for theme packages
|
|
14
|
+
*
|
|
15
|
+
* TRADE-OFF: This approach bypasses theme resolution, which breaks MDX CodeBlock rendering.
|
|
16
|
+
* The proper solution is to have users add TaskProvider at the site level (src/theme/Root).
|
|
17
|
+
*
|
|
18
|
+
* DocTaskCounterProvider is added in DocRoot/Layout to wrap only the main content area.
|
|
19
|
+
*/
|
|
20
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.default = DocRoot;
|
|
25
|
+
const react_1 = __importDefault(require("react"));
|
|
26
|
+
// Import directly from theme-classic to avoid circular dependency
|
|
27
|
+
const DocRoot_1 = __importDefault(require("@docusaurus/theme-classic/lib/theme/DocRoot"));
|
|
28
|
+
const TaskProvider_1 = require("../TaskProvider");
|
|
29
|
+
function DocRoot(props) {
|
|
30
|
+
return (react_1.default.createElement(TaskProvider_1.TaskProvider, null,
|
|
31
|
+
react_1.default.createElement(DocRoot_1.default, { ...props })));
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/DocRoot/index.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;AAQH,0BAMC;AAZD,kDAA8C;AAC9C,kEAAkE;AAClE,0FAA0E;AAC1E,kDAA+C;AAG/C,SAAwB,OAAO,CAAC,KAAY;IAC1C,OAAO,CACL,8BAAC,2BAAY;QACX,8BAAC,iBAAe,OAAK,KAAK,GAAI,CACjB,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/theme/DocSidebar/Desktop/CollapseButton/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAI5C,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,0CAA0C,CAAC;AAIpE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAC,OAAO,EAAC,EAAE,KAAK,GAAG,SAAS,CAsBlE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = CollapseButton;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const clsx_1 = __importDefault(require("clsx"));
|
|
9
|
+
const Translate_1 = require("@docusaurus/Translate");
|
|
10
|
+
const Arrow_1 = __importDefault(require("@theme/Icon/Arrow"));
|
|
11
|
+
const styles_module_css_1 = __importDefault(require("./styles.module.css"));
|
|
12
|
+
function CollapseButton({ onClick }) {
|
|
13
|
+
return (react_1.default.createElement("button", { type: "button", title: (0, Translate_1.translate)({
|
|
14
|
+
id: 'theme.docs.sidebar.collapseButtonTitle',
|
|
15
|
+
message: 'Collapse sidebar',
|
|
16
|
+
description: 'The title attribute for collapse button of doc sidebar',
|
|
17
|
+
}), "aria-label": (0, Translate_1.translate)({
|
|
18
|
+
id: 'theme.docs.sidebar.collapseButtonAriaLabel',
|
|
19
|
+
message: 'Collapse sidebar',
|
|
20
|
+
description: 'The title attribute for collapse button of doc sidebar',
|
|
21
|
+
}), className: (0, clsx_1.default)('button button--secondary button--outline', styles_module_css_1.default.collapseSidebarButton), onClick: onClick },
|
|
22
|
+
react_1.default.createElement(Arrow_1.default, { className: styles_module_css_1.default.collapseSidebarButtonIcon })));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/theme/DocSidebar/Desktop/CollapseButton/index.tsx"],"names":[],"mappings":";;;;;AAQA,iCAsBC;AA9BD,kDAA4C;AAC5C,gDAAwB;AACxB,qDAAgD;AAChD,8DAA0C;AAG1C,4EAAyC;AAEzC,SAAwB,cAAc,CAAC,EAAC,OAAO,EAAQ;IACrD,OAAO,CACL,0CACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,IAAA,qBAAS,EAAC;YACf,EAAE,EAAE,wCAAwC;YAC5C,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,wDAAwD;SACtE,CAAC,gBACU,IAAA,qBAAS,EAAC;YACpB,EAAE,EAAE,4CAA4C;YAChD,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,wDAAwD;SACtE,CAAC,EACF,SAAS,EAAE,IAAA,cAAI,EACb,0CAA0C,EAC1C,2BAAM,CAAC,qBAAqB,CAC7B,EACD,OAAO,EAAE,OAAO;QAChB,8BAAC,eAAS,IAAC,SAAS,EAAE,2BAAM,CAAC,yBAAyB,GAAI,CACnD,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--docusaurus-collapse-button-bg: transparent;
|
|
3
|
+
--docusaurus-collapse-button-bg-hover: rgb(0 0 0 / 10%);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
[data-theme='dark']:root {
|
|
7
|
+
--docusaurus-collapse-button-bg: rgb(255 255 255 / 5%);
|
|
8
|
+
--docusaurus-collapse-button-bg-hover: rgb(255 255 255 / 10%);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media (min-width: 997px) {
|
|
12
|
+
.collapseSidebarButton {
|
|
13
|
+
display: block !important;
|
|
14
|
+
background-color: var(--docusaurus-collapse-button-bg);
|
|
15
|
+
height: 40px;
|
|
16
|
+
position: sticky;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
border-radius: 0;
|
|
19
|
+
border: 1px solid var(--ifm-toc-border-color);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.collapseSidebarButtonIcon {
|
|
23
|
+
transform: rotate(180deg);
|
|
24
|
+
margin-top: 4px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[dir='rtl'] .collapseSidebarButtonIcon {
|
|
28
|
+
transform: rotate(0);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.collapseSidebarButton:hover,
|
|
32
|
+
.collapseSidebarButton:focus {
|
|
33
|
+
background-color: var(--docusaurus-collapse-button-bg-hover);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.collapseSidebarButton {
|
|
38
|
+
display: none;
|
|
39
|
+
margin: 0;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/theme/DocSidebar/Desktop/Content/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAStD,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,mCAAmC,CAAC;AAmB7D,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,IAAI,EACJ,OAAO,EACP,SAAS,GACV,EAAE,KAAK,GAAG,SAAS,CAqBnB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.default = DocSidebarDesktopContent;
|
|
40
|
+
const react_1 = __importStar(require("react"));
|
|
41
|
+
const clsx_1 = __importDefault(require("clsx"));
|
|
42
|
+
const theme_common_1 = require("@docusaurus/theme-common");
|
|
43
|
+
const internal_1 = require("@docusaurus/theme-common/internal");
|
|
44
|
+
const Translate_1 = require("@docusaurus/Translate");
|
|
45
|
+
const DocSidebarItems_1 = __importDefault(require("@theme/DocSidebarItems"));
|
|
46
|
+
const styles_module_css_1 = __importDefault(require("./styles.module.css"));
|
|
47
|
+
function useShowAnnouncementBar() {
|
|
48
|
+
const { isActive } = (0, internal_1.useAnnouncementBar)();
|
|
49
|
+
const [showAnnouncementBar, setShowAnnouncementBar] = (0, react_1.useState)(isActive);
|
|
50
|
+
(0, internal_1.useScrollPosition)(({ scrollY }) => {
|
|
51
|
+
if (isActive) {
|
|
52
|
+
setShowAnnouncementBar(scrollY === 0);
|
|
53
|
+
}
|
|
54
|
+
}, [isActive]);
|
|
55
|
+
return isActive && showAnnouncementBar;
|
|
56
|
+
}
|
|
57
|
+
function DocSidebarDesktopContent({ path, sidebar, className, }) {
|
|
58
|
+
const showAnnouncementBar = useShowAnnouncementBar();
|
|
59
|
+
return (react_1.default.createElement("nav", { "aria-label": (0, Translate_1.translate)({
|
|
60
|
+
id: 'theme.docs.sidebar.navAriaLabel',
|
|
61
|
+
message: 'Docs sidebar',
|
|
62
|
+
description: 'The ARIA label for the sidebar navigation',
|
|
63
|
+
}), className: (0, clsx_1.default)('menu thin-scrollbar', styles_module_css_1.default.menu, showAnnouncementBar && styles_module_css_1.default.menuWithAnnouncementBar, className) },
|
|
64
|
+
react_1.default.createElement("ul", { className: (0, clsx_1.default)(theme_common_1.ThemeClassNames.docs.docSidebarMenu, 'menu__list') },
|
|
65
|
+
react_1.default.createElement(DocSidebarItems_1.default, { items: sidebar, activePath: path, level: 1 }))));
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/theme/DocSidebar/Desktop/Content/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,2CAyBC;AArDD,+CAAsD;AACtD,gDAAwB;AACxB,2DAAyD;AACzD,gEAG2C;AAC3C,qDAAgD;AAChD,6EAAqD;AAGrD,4EAAyC;AAEzC,SAAS,sBAAsB;IAC7B,MAAM,EAAC,QAAQ,EAAC,GAAG,IAAA,6BAAkB,GAAE,CAAC;IACxC,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,IAAA,gBAAQ,EAAC,QAAQ,CAAC,CAAC;IAEzE,IAAA,4BAAiB,EACf,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE;QACZ,IAAI,QAAQ,EAAE,CAAC;YACb,sBAAsB,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC;QACxC,CAAC;IACH,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IACF,OAAO,QAAQ,IAAI,mBAAmB,CAAC;AACzC,CAAC;AAED,SAAwB,wBAAwB,CAAC,EAC/C,IAAI,EACJ,OAAO,EACP,SAAS,GACH;IACN,MAAM,mBAAmB,GAAG,sBAAsB,EAAE,CAAC;IAErD,OAAO,CACL,qDACc,IAAA,qBAAS,EAAC;YACpB,EAAE,EAAE,iCAAiC;YACrC,OAAO,EAAE,cAAc;YACvB,WAAW,EAAE,2CAA2C;SACzD,CAAC,EACF,SAAS,EAAE,IAAA,cAAI,EACb,qBAAqB,EACrB,2BAAM,CAAC,IAAI,EACX,mBAAmB,IAAI,2BAAM,CAAC,uBAAuB,EACrD,SAAS,CACV;QACD,sCAAI,SAAS,EAAE,IAAA,cAAI,EAAC,8BAAe,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC;YACpE,8BAAC,yBAAe,IAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAI,CAC5D,CACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@media (min-width: 997px) {
|
|
2
|
+
.menu {
|
|
3
|
+
flex-grow: 1;
|
|
4
|
+
padding: 0.5rem;
|
|
5
|
+
}
|
|
6
|
+
@supports (scrollbar-gutter: stable) {
|
|
7
|
+
.menu {
|
|
8
|
+
padding: 0.5rem 0 0.5rem 0.5rem;
|
|
9
|
+
scrollbar-gutter: stable;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.menuWithAnnouncementBar {
|
|
14
|
+
margin-bottom: var(--docusaurus-announcement-bar-height);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Props } from '@theme/DocSidebar/Desktop';
|
|
3
|
+
declare function DocSidebarDesktop({ path, sidebar, onCollapse, isHidden }: Props): React.JSX.Element;
|
|
4
|
+
declare const _default: React.MemoExoticComponent<typeof DocSidebarDesktop>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/DocSidebar/Desktop/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,2BAA2B,CAAC;AAIrD,iBAAS,iBAAiB,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAC,EAAE,KAAK,qBAoBtE;;AAED,wBAA6C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const clsx_1 = __importDefault(require("clsx"));
|
|
8
|
+
const theme_common_1 = require("@docusaurus/theme-common");
|
|
9
|
+
const Logo_1 = __importDefault(require("@theme/Logo"));
|
|
10
|
+
const CollapseButton_1 = __importDefault(require("@theme/DocSidebar/Desktop/CollapseButton"));
|
|
11
|
+
const Content_1 = __importDefault(require("@theme/DocSidebar/Desktop/Content"));
|
|
12
|
+
const styles_module_css_1 = __importDefault(require("./styles.module.css"));
|
|
13
|
+
function DocSidebarDesktop({ path, sidebar, onCollapse, isHidden }) {
|
|
14
|
+
const { navbar: { hideOnScroll }, docs: { sidebar: { hideable }, }, } = (0, theme_common_1.useThemeConfig)();
|
|
15
|
+
return (react_1.default.createElement("div", { className: (0, clsx_1.default)(styles_module_css_1.default.sidebar, hideOnScroll && styles_module_css_1.default.sidebarWithHideableNavbar, isHidden && styles_module_css_1.default.sidebarHidden) },
|
|
16
|
+
hideOnScroll && react_1.default.createElement(Logo_1.default, { tabIndex: -1, className: styles_module_css_1.default.sidebarLogo }),
|
|
17
|
+
react_1.default.createElement(Content_1.default, { path: path, sidebar: sidebar }),
|
|
18
|
+
hideable && react_1.default.createElement(CollapseButton_1.default, { onClick: onCollapse })));
|
|
19
|
+
}
|
|
20
|
+
exports.default = react_1.default.memo(DocSidebarDesktop);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/theme/DocSidebar/Desktop/index.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,gDAAwB;AACxB,2DAAwD;AACxD,uDAA+B;AAC/B,8FAAsE;AACtE,gFAAwD;AAGxD,4EAAyC;AAEzC,SAAS,iBAAiB,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAQ;IACrE,MAAM,EACJ,MAAM,EAAE,EAAC,YAAY,EAAC,EACtB,IAAI,EAAE,EACJ,OAAO,EAAE,EAAC,QAAQ,EAAC,GACpB,GACF,GAAG,IAAA,6BAAc,GAAE,CAAC;IAErB,OAAO,CACL,uCACE,SAAS,EAAE,IAAA,cAAI,EACb,2BAAM,CAAC,OAAO,EACd,YAAY,IAAI,2BAAM,CAAC,yBAAyB,EAChD,QAAQ,IAAI,2BAAM,CAAC,aAAa,CACjC;QACA,YAAY,IAAI,8BAAC,cAAI,IAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,2BAAM,CAAC,WAAW,GAAI;QACtE,8BAAC,iBAAO,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAI;QACxC,QAAQ,IAAI,8BAAC,wBAAc,IAAC,OAAO,EAAE,UAAU,GAAI,CAChD,CACP,CAAC;AACJ,CAAC;AAED,kBAAe,eAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@media (min-width: 997px) {
|
|
2
|
+
.sidebar {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
padding-top: var(--ifm-navbar-height);
|
|
7
|
+
width: var(--doc-sidebar-width);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sidebarWithHideableNavbar {
|
|
11
|
+
padding-top: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sidebarHidden {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
visibility: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.sidebarLogo {
|
|
20
|
+
display: flex !important;
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin: 0 var(--ifm-navbar-padding-horizontal);
|
|
23
|
+
min-height: var(--ifm-navbar-height);
|
|
24
|
+
max-height: var(--ifm-navbar-height);
|
|
25
|
+
color: inherit !important;
|
|
26
|
+
text-decoration: none !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sidebarLogo img {
|
|
30
|
+
margin-right: 0.5rem;
|
|
31
|
+
height: 2rem;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.sidebarLogo {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Props } from '@theme/DocSidebar/Mobile';
|
|
3
|
+
declare function DocSidebarMobile(props: Props): React.JSX.Element;
|
|
4
|
+
declare const _default: React.MemoExoticComponent<typeof DocSidebarMobile>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/DocSidebar/Mobile/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,0BAA0B,CAAC;AA4BpD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,KAAK,qBAOrC;;AAED,wBAA4C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const clsx_1 = __importDefault(require("clsx"));
|
|
8
|
+
const theme_common_1 = require("@docusaurus/theme-common");
|
|
9
|
+
const internal_1 = require("@docusaurus/theme-common/internal");
|
|
10
|
+
const DocSidebarItems_1 = __importDefault(require("@theme/DocSidebarItems"));
|
|
11
|
+
// eslint-disable-next-line react/function-component-definition
|
|
12
|
+
const DocSidebarMobileSecondaryMenu = ({ sidebar, path, }) => {
|
|
13
|
+
const mobileSidebar = (0, internal_1.useNavbarMobileSidebar)();
|
|
14
|
+
return (react_1.default.createElement("ul", { className: (0, clsx_1.default)(theme_common_1.ThemeClassNames.docs.docSidebarMenu, 'menu__list') },
|
|
15
|
+
react_1.default.createElement(DocSidebarItems_1.default, { items: sidebar, activePath: path, onItemClick: (item) => {
|
|
16
|
+
// Mobile sidebar should only be closed if the category has a link
|
|
17
|
+
if (item.type === 'category' && item.href) {
|
|
18
|
+
mobileSidebar.toggle();
|
|
19
|
+
}
|
|
20
|
+
if (item.type === 'link') {
|
|
21
|
+
mobileSidebar.toggle();
|
|
22
|
+
}
|
|
23
|
+
}, level: 1 })));
|
|
24
|
+
};
|
|
25
|
+
function DocSidebarMobile(props) {
|
|
26
|
+
return (react_1.default.createElement(theme_common_1.NavbarSecondaryMenuFiller, { component: DocSidebarMobileSecondaryMenu, props: props }));
|
|
27
|
+
}
|
|
28
|
+
exports.default = react_1.default.memo(DocSidebarMobile);
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/theme/DocSidebar/Mobile/index.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,gDAAwB;AACxB,2DAIkC;AAClC,gEAAyE;AACzE,6EAAqD;AAGrD,+DAA+D;AAC/D,MAAM,6BAA6B,GAAwC,CAAC,EAC1E,OAAO,EACP,IAAI,GACL,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,IAAA,iCAAsB,GAAE,CAAC;IAC/C,OAAO,CACL,sCAAI,SAAS,EAAE,IAAA,cAAI,EAAC,8BAAe,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC;QACpE,8BAAC,yBAAe,IACd,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,IAAI,EAChB,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;gBACpB,kEAAkE;gBAClE,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;oBAC1C,aAAa,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;oBACzB,aAAa,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC;YACH,CAAC,EACD,KAAK,EAAE,CAAC,GACR,CACC,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,gBAAgB,CAAC,KAAY;IACpC,OAAO,CACL,8BAAC,wCAAyB,IACxB,SAAS,EAAE,6BAA6B,EACxC,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC;AAED,kBAAe,eAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/DocSidebar/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAI5C,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAE7C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,CAgB1D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = DocSidebar;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const theme_common_1 = require("@docusaurus/theme-common");
|
|
9
|
+
const Desktop_1 = __importDefault(require("@theme/DocSidebar/Desktop"));
|
|
10
|
+
const Mobile_1 = __importDefault(require("@theme/DocSidebar/Mobile"));
|
|
11
|
+
function DocSidebar(props) {
|
|
12
|
+
const windowSize = (0, theme_common_1.useWindowSize)();
|
|
13
|
+
// Desktop sidebar visible on hydration: need SSR rendering
|
|
14
|
+
const shouldRenderSidebarDesktop = windowSize === 'desktop' || windowSize === 'ssr';
|
|
15
|
+
// Mobile sidebar not visible on hydration: can avoid SSR rendering
|
|
16
|
+
const shouldRenderSidebarMobile = windowSize === 'mobile';
|
|
17
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
18
|
+
shouldRenderSidebarDesktop && react_1.default.createElement(Desktop_1.default, { ...props }),
|
|
19
|
+
shouldRenderSidebarMobile && react_1.default.createElement(Mobile_1.default, { ...props })));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/DocSidebar/index.tsx"],"names":[],"mappings":";;;;;AAMA,6BAgBC;AAtBD,kDAA4C;AAC5C,2DAAuD;AACvD,wEAA0D;AAC1D,sEAAwD;AAGxD,SAAwB,UAAU,CAAC,KAAY;IAC7C,MAAM,UAAU,GAAG,IAAA,4BAAa,GAAE,CAAC;IAEnC,2DAA2D;IAC3D,MAAM,0BAA0B,GAC9B,UAAU,KAAK,SAAS,IAAI,UAAU,KAAK,KAAK,CAAC;IAEnD,mEAAmE;IACnE,MAAM,yBAAyB,GAAG,UAAU,KAAK,QAAQ,CAAC;IAE1D,OAAO,CACL;QACG,0BAA0B,IAAI,8BAAC,iBAAiB,OAAK,KAAK,GAAI;QAC9D,yBAAyB,IAAI,8BAAC,gBAAgB,OAAK,KAAK,GAAI,CAC5D,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/DocSidebarItem/Category/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEZ,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAqBf,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,gCAAgC,CAAC;AAwN1D,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,CAUtE"}
|