fumadocs-ui 12.3.0 → 12.3.1

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.
@@ -11,8 +11,12 @@ interface DefaultSearchDialogProps extends SharedProps {
11
11
  * Search API URL
12
12
  */
13
13
  api?: string;
14
+ /**
15
+ * The debounced delay for performing a search.
16
+ */
17
+ delayMs?: number;
14
18
  footer?: ReactNode;
15
19
  }
16
- declare function DefaultSearchDialog({ tag, api, ...props }: DefaultSearchDialogProps): React.ReactElement;
20
+ declare function DefaultSearchDialog({ tag, api, delayMs, ...props }: DefaultSearchDialogProps): React.ReactElement;
17
21
 
18
22
  export { type DefaultSearchDialogProps, DefaultSearchDialog as default };
@@ -17,10 +17,11 @@ import { jsx } from "react/jsx-runtime";
17
17
  function DefaultSearchDialog({
18
18
  tag,
19
19
  api,
20
+ delayMs,
20
21
  ...props
21
22
  }) {
22
23
  const { locale } = useI18n();
23
- const { search, setSearch, query } = useDocsSearch(locale, tag, api);
24
+ const { search, setSearch, query } = useDocsSearch(locale, tag, api, delayMs);
24
25
  return /* @__PURE__ */ jsx(
25
26
  SearchDialog,
26
27
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-ui",
3
- "version": "12.3.0",
3
+ "version": "12.3.1",
4
4
  "description": "The framework for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -95,7 +95,7 @@
95
95
  "next-themes": "^0.3.0",
96
96
  "react-medium-image-zoom": "^5.2.4",
97
97
  "tailwind-merge": "^2.3.0",
98
- "fumadocs-core": "12.3.0"
98
+ "fumadocs-core": "12.3.1"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@algolia/client-search": "^4.23.3",