boltdocs 1.10.1 → 1.10.2
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/dist/{SearchDialog-MEWGAONO.mjs → SearchDialog-AGVF6JBO.mjs} +1 -1
- package/dist/{SearchDialog-BEVZQ74P.css → SearchDialog-YPDOM7Q6.css} +196 -28
- package/dist/{chunk-OZLYRXAD.mjs → chunk-TKLQWU7H.mjs} +177 -171
- package/dist/client/index.css +196 -28
- package/dist/client/index.d.mts +3 -10
- package/dist/client/index.d.ts +3 -10
- package/dist/client/index.js +377 -341
- package/dist/client/index.mjs +91 -52
- package/dist/client/ssr.css +196 -28
- package/dist/client/ssr.js +190 -192
- package/dist/client/ssr.mjs +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +0 -1
- package/src/client/theme/components/CodeBlock/CodeBlock.tsx +22 -1
- package/src/client/theme/components/Playground/Playground.tsx +104 -48
- package/src/client/theme/components/Playground/playground.css +88 -18
- package/src/client/theme/styles/markdown.css +53 -0
- package/src/client/theme/styles/variables.css +0 -12
- package/src/client/theme/styles.css +1 -0
- package/src/client/theme/ui/CopyMarkdown/copy-markdown.css +0 -2
- package/src/client/theme/ui/ErrorBoundary/ErrorBoundary.tsx +19 -15
- package/src/client/theme/ui/ErrorBoundary/error-boundary.css +55 -0
- package/src/client/theme/ui/Layout/Layout.tsx +5 -10
- package/src/client/theme/ui/Layout/base.css +2 -1
- package/src/client/theme/ui/Layout/responsive.css +11 -0
- package/src/client/theme/ui/BackgroundGradient/BackgroundGradient.tsx +0 -10
- package/src/client/theme/ui/BackgroundGradient/index.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { useLocation } from "react-router-dom";
|
|
3
3
|
import { Link } from "../Link";
|
|
4
|
-
import { ChevronLeft, ChevronRight
|
|
4
|
+
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
5
5
|
import { usePreload } from "../../../app/preload";
|
|
6
6
|
import { BoltdocsConfig } from "../../../../node/config";
|
|
7
7
|
import { ComponentRoute } from "../../../types";
|
|
@@ -10,14 +10,12 @@ export { Sidebar } from "../Sidebar";
|
|
|
10
10
|
export { OnThisPage } from "../OnThisPage";
|
|
11
11
|
export { Head } from "../Head";
|
|
12
12
|
export { Breadcrumbs } from "../Breadcrumbs";
|
|
13
|
-
export { BackgroundGradient } from "../BackgroundGradient";
|
|
14
13
|
|
|
15
14
|
import { Navbar } from "../Navbar";
|
|
16
15
|
import { Sidebar } from "../Sidebar";
|
|
17
16
|
import { OnThisPage } from "../OnThisPage";
|
|
18
17
|
import { Head } from "../Head";
|
|
19
18
|
import { Breadcrumbs } from "../Breadcrumbs";
|
|
20
|
-
import { BackgroundGradient } from "../BackgroundGradient";
|
|
21
19
|
import { ProgressBar } from "../ProgressBar";
|
|
22
20
|
import { ErrorBoundary } from "../ErrorBoundary";
|
|
23
21
|
import { CopyMarkdown } from "../CopyMarkdown";
|
|
@@ -112,7 +110,6 @@ export function ThemeLayout({
|
|
|
112
110
|
return (
|
|
113
111
|
<div className={`boltdocs-layout ${className}`} style={style}>
|
|
114
112
|
<ProgressBar />
|
|
115
|
-
{background !== undefined ? background : <BackgroundGradient />}
|
|
116
113
|
{head !== undefined ? (
|
|
117
114
|
head
|
|
118
115
|
) : (
|
|
@@ -148,14 +145,12 @@ export function ThemeLayout({
|
|
|
148
145
|
)}
|
|
149
146
|
<div className="boltdocs-page">
|
|
150
147
|
<div className="boltdocs-page-header">
|
|
151
|
-
<CopyMarkdown
|
|
152
|
-
content={routes[currentIndex]?._rawContent}
|
|
148
|
+
<CopyMarkdown
|
|
149
|
+
content={routes[currentIndex]?._rawContent}
|
|
153
150
|
config={config.themeConfig?.copyMarkdown}
|
|
154
151
|
/>
|
|
155
152
|
</div>
|
|
156
|
-
<ErrorBoundary>
|
|
157
|
-
{children}
|
|
158
|
-
</ErrorBoundary>
|
|
153
|
+
<ErrorBoundary>{children}</ErrorBoundary>
|
|
159
154
|
</div>
|
|
160
155
|
|
|
161
156
|
{/* Prev / Next Navigation */}
|
|
@@ -92,12 +92,13 @@ a {
|
|
|
92
92
|
|
|
93
93
|
.boltdocs-page-header {
|
|
94
94
|
position: absolute;
|
|
95
|
-
top: 0;
|
|
95
|
+
top: -0.5rem; /* Move up slightly to overlap less with title body */
|
|
96
96
|
right: 0;
|
|
97
97
|
display: flex;
|
|
98
98
|
justify-content: flex-end;
|
|
99
99
|
padding: 1rem 0;
|
|
100
100
|
pointer-events: none;
|
|
101
|
+
z-index: 101; /* Ensure it stays above everything */
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
.boltdocs-page-header > * {
|
|
@@ -20,6 +20,17 @@
|
|
|
20
20
|
font-size: 2.25rem;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.boltdocs-page h1 {
|
|
24
|
+
padding-right: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.boltdocs-page-header {
|
|
28
|
+
position: static;
|
|
29
|
+
justify-content: flex-start;
|
|
30
|
+
margin-bottom: 1rem;
|
|
31
|
+
padding: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
23
34
|
.ld-cards--2,
|
|
24
35
|
.ld-cards--3,
|
|
25
36
|
.ld-cards--4 {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { BackgroundGradient } from "./BackgroundGradient";
|