@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
@@ -89,6 +89,7 @@ type Config = {
89
89
  twitterHandle: string;
90
90
  globalNote?: React.ReactNode;
91
91
  i18n?: true;
92
+ pressKit?: true;
92
93
  };
93
94
 
94
95
  declare function Link({ href, text, noBreadcrumb, doNotInferSectionTitle, titleNormalCase, children }: {
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "scripts": {
5
5
  "// Check types while developing": "",
6
6
  "types": "tsc --noEmit --watch",