fumadocs-core 15.2.4 → 15.2.5

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/sidebar.d.ts CHANGED
@@ -24,7 +24,7 @@ type SidebarContentProps<T extends ElementType> = AsProps<T> & {
24
24
  *
25
25
  * When the sidebar is opening and media query is matched, scrolling outside the sidebar will be blocked.
26
26
  *
27
- * @example (min-width: 1000px)
27
+ * @example (max-width: 1000px)
28
28
  */
29
29
  removeScrollOn?: string;
30
30
  };
package/dist/sidebar.js CHANGED
@@ -54,7 +54,7 @@ function SidebarTrigger({
54
54
  function SidebarList({
55
55
  as,
56
56
  blockScrollingWidth,
57
- removeScrollOn = blockScrollingWidth ? `(min-width: ${blockScrollingWidth}px)` : void 0,
57
+ removeScrollOn = blockScrollingWidth ? `(width < ${blockScrollingWidth}px)` : void 0,
58
58
  ...props
59
59
  }) {
60
60
  const { open } = useSidebarContext();
@@ -63,7 +63,7 @@ function SidebarList({
63
63
  if (!removeScrollOn) return;
64
64
  const mediaQueryList = window.matchMedia(removeScrollOn);
65
65
  const handleChange = () => {
66
- setIsBlocking(!mediaQueryList.matches);
66
+ setIsBlocking(mediaQueryList.matches);
67
67
  };
68
68
  handleChange();
69
69
  mediaQueryList.addEventListener("change", handleChange);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "15.2.4",
3
+ "version": "15.2.5",
4
4
  "description": "The library for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -109,10 +109,10 @@
109
109
  "mdast-util-mdx-jsx": "^3.2.0",
110
110
  "mdast-util-mdxjs-esm": "^2.0.1",
111
111
  "next": "^15.2.4",
112
- "react-router": "^7.4.1",
112
+ "react-router": "^7.5.0",
113
113
  "remark-mdx": "^3.1.0",
114
114
  "remark-rehype": "^11.1.2",
115
- "typescript": "^5.8.2",
115
+ "typescript": "^5.8.3",
116
116
  "unified": "^11.0.5",
117
117
  "vfile": "^6.0.3",
118
118
  "eslint-config-custom": "0.0.0",