@brillout/docpress 0.5.19 → 0.5.21

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
@@ -81,7 +81,9 @@ type Config = {
81
81
  headings: HeadingDefinition[];
82
82
  headingsDetached: HeadingDetachedDefinition[];
83
83
  navHeaderMobile: React.ReactNode;
84
+ navHeaderMobileWrapperStyle?: React.CSSProperties;
84
85
  navHeader: React.ReactNode;
86
+ navHeaderWrapperStyle?: React.CSSProperties;
85
87
  titleNormalCase: boolean;
86
88
  tagline: string;
87
89
  websiteUrl: string;
package/dist/index.js CHANGED
@@ -319,6 +319,7 @@ var alignable_default = "/assets/alignable-B4QZV4X7.svg";
319
319
 
320
320
  // src/components/Sponsors/sponsorsList.ts
321
321
  var individuals = [
322
+ { username: "d3x7r0" },
322
323
  { username: "ChristophP" },
323
324
  { username: "msiegenthaler" },
324
325
  { username: "linkyard" },
@@ -14,11 +14,13 @@ function autoScrollNav() {
14
14
  const navLink = navLinks[0];
15
15
  if (!navLink)
16
16
  return;
17
+ const scrollTopOriginal = document.documentElement.scrollTop;
17
18
  navLink.scrollIntoView({
18
- behavior: "auto",
19
+ behavior: "instant",
19
20
  block: "center",
20
- inline: "center"
21
+ inline: "start"
21
22
  });
23
+ document.documentElement.scrollTop = scrollTopOriginal;
22
24
  }
23
25
 
24
26
  // src/installSectionUrlHashs.ts
@@ -69,7 +69,8 @@ function NavigationHeader() {
69
69
  justifyContent: "left",
70
70
  textDecoration: "none",
71
71
  paddingTop: 12,
72
- paddingBottom: 7
72
+ paddingBottom: 7,
73
+ ...pageContext.config.navHeaderWrapperStyle
73
74
  },
74
75
  href: "/"
75
76
  }, pageContext.config.navHeader), /* @__PURE__ */ React.createElement(Links, null));
@@ -355,7 +356,8 @@ function MobileHeader() {
355
356
  display: "flex",
356
357
  alignItems: "center",
357
358
  justifyContent: "left",
358
- textDecoration: "none"
359
+ textDecoration: "none",
360
+ ...pageContext.config.navHeaderMobileWrapperStyle
359
361
  }
360
362
  }, pageContext.config.navHeaderMobile)));
361
363
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.5.19",
3
+ "version": "0.5.21",
4
4
  "scripts": {
5
5
  "// Check types while developing": "",
6
6
  "types": "tsc --noEmit --watch",