@brillout/docpress 0.5.13 → 0.5.14
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/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -316,6 +316,7 @@ var alignable_default = "/assets/alignable-B4QZV4X7.svg";
|
|
|
316
316
|
|
|
317
317
|
// src/components/Sponsors/sponsorsList.ts
|
|
318
318
|
var individuals = [
|
|
319
|
+
{ username: "EralChen" },
|
|
319
320
|
{ username: "3dyuval" },
|
|
320
321
|
{ username: "talzion12" },
|
|
321
322
|
{ username: "felixhaeberle" },
|
|
@@ -178,6 +178,7 @@ activateNavigationMask();
|
|
|
178
178
|
activateMenuToggle();
|
|
179
179
|
initNavigationFullscreen();
|
|
180
180
|
autoHideNavigationOverlayOnLinkClick();
|
|
181
|
+
navHeaderRightClickInterceptor();
|
|
181
182
|
function activateMenuToggle() {
|
|
182
183
|
const menuToggle = document.getElementById("menu-toggle");
|
|
183
184
|
menuToggle.onclick = navigationOverlayToggle;
|
|
@@ -202,3 +203,14 @@ function navigationOverlayToggle() {
|
|
|
202
203
|
function navigationOverlayHide() {
|
|
203
204
|
document.body.classList.remove("show-menu");
|
|
204
205
|
}
|
|
206
|
+
function navHeaderRightClickInterceptor() {
|
|
207
|
+
const navHeader = document.getElementById("navigation-header");
|
|
208
|
+
if (!navHeader.classList.contains("press-kit"))
|
|
209
|
+
return;
|
|
210
|
+
if (window.location.pathname === "/press")
|
|
211
|
+
return;
|
|
212
|
+
navHeader.oncontextmenu = (ev) => {
|
|
213
|
+
ev.preventDefault();
|
|
214
|
+
window.location.href = "/press";
|
|
215
|
+
};
|
|
216
|
+
}
|
|
@@ -53,6 +53,7 @@ function NavigationHeader() {
|
|
|
53
53
|
const pageContext = usePageContext();
|
|
54
54
|
return /* @__PURE__ */ React.createElement("div", {
|
|
55
55
|
id: "navigation-header",
|
|
56
|
+
className: pageContext.config.pressKit && "press-kit",
|
|
56
57
|
style: {
|
|
57
58
|
display: "flex",
|
|
58
59
|
flexDirection: "column",
|