fumadocs-ui 14.1.1 → 14.2.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.
- package/dist/{chunk-PZTQPB4U.js → chunk-AFMXKA2S.js} +1 -1
- package/dist/chunk-CLF6ZVYS.js +259 -0
- package/dist/chunk-DGKCMOIC.js +56 -0
- package/dist/{chunk-CPGKWLLV.js → chunk-F534DZID.js} +1 -1
- package/dist/{chunk-WRBUXI2A.js → chunk-IL64LMKR.js} +1 -1
- package/dist/{chunk-IHIFNFRB.js → chunk-ILBYBJ5C.js} +1 -1
- package/dist/{chunk-JUOW3DZK.js → chunk-J6XGK6ZG.js} +3 -3
- package/dist/{chunk-ET4TW6M5.js → chunk-UUGCW3UP.js} +16 -2
- package/dist/{chunk-5QPVK7QM.js → chunk-VPJMNIJX.js} +65 -65
- package/dist/{chunk-V6RONFCQ.js → chunk-W36BQGMB.js} +2 -2
- package/dist/{chunk-5KVEK5A7.js → chunk-ZBOI25UW.js} +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/callout.js +2 -2
- package/dist/components/codeblock.js +2 -2
- package/dist/components/dialog/search-algolia.d.ts +7 -6
- package/dist/components/dialog/search-algolia.js +9 -5
- package/dist/components/dialog/search-default.d.ts +4 -2
- package/dist/components/dialog/search-default.js +6 -4
- package/dist/components/dialog/search-orama.d.ts +32 -0
- package/dist/components/dialog/search-orama.js +82 -0
- package/dist/components/dialog/search.d.ts +9 -17
- package/dist/components/dialog/search.js +6 -7
- package/dist/components/files.js +1 -1
- package/dist/components/heading.js +2 -2
- package/dist/components/inline-toc.js +1 -1
- package/dist/components/layout/root-toggle.js +2 -2
- package/dist/components/type-table.js +1 -1
- package/dist/{dynamic-sidebar-MEINO4E2.js → dynamic-sidebar-SYEETGZL.js} +4 -4
- package/dist/{edit-on-github-PCTRDRD6.js → edit-on-github-FIYOWWPQ.js} +1 -1
- package/dist/layouts/docs.client.js +9 -9
- package/dist/layouts/docs.js +3 -3
- package/dist/layouts/home.client.js +5 -5
- package/dist/mdx.client.js +2 -2
- package/dist/mdx.js +3 -3
- package/dist/page.client.js +1 -1
- package/dist/page.js +1 -1
- package/dist/provider.d.ts +5 -3
- package/dist/provider.js +1 -1
- package/dist/style.css +1 -1
- package/dist/tag-list-BsEgfE3x.d.ts +6 -0
- package/package.json +12 -14
- package/dist/chunk-TYZZJ335.js +0 -295
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
SearchDialog,
|
|
4
3
|
TagsList
|
|
5
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-DGKCMOIC.js";
|
|
5
|
+
import {
|
|
6
|
+
SearchDialog
|
|
7
|
+
} from "../../chunk-CLF6ZVYS.js";
|
|
6
8
|
import "../../chunk-QKOA6KEZ.js";
|
|
7
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-VPJMNIJX.js";
|
|
8
10
|
import "../../chunk-TK3TM3MR.js";
|
|
9
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-UUGCW3UP.js";
|
|
10
12
|
import "../../chunk-27HFSL7N.js";
|
|
11
13
|
import {
|
|
12
14
|
useI18n
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OramaCloudOptions } from 'fumadocs-core/search/client';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { SharedProps } from './search.js';
|
|
4
|
+
import { T as TagItem } from '../../tag-list-BsEgfE3x.js';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
6
|
+
import 'fumadocs-core/server';
|
|
7
|
+
|
|
8
|
+
interface OramaSearchDialogProps extends SharedProps {
|
|
9
|
+
client: OramaCloudOptions['client'];
|
|
10
|
+
searchOptions?: OramaCloudOptions['params'];
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
defaultTag?: string;
|
|
13
|
+
tags?: TagItem[];
|
|
14
|
+
/**
|
|
15
|
+
* Add the "Powered by Orama" label
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue false
|
|
18
|
+
*/
|
|
19
|
+
showOrama?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Allow to clear tag filters
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue false
|
|
24
|
+
*/
|
|
25
|
+
allowClear?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Orama Cloud integration
|
|
29
|
+
*/
|
|
30
|
+
declare function OramaSearchDialog({ client, searchOptions, tags, defaultTag, showOrama, allowClear, ...props }: OramaSearchDialogProps): ReactNode;
|
|
31
|
+
|
|
32
|
+
export { type OramaSearchDialogProps, OramaSearchDialog as default };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
TagsList
|
|
4
|
+
} from "../../chunk-DGKCMOIC.js";
|
|
5
|
+
import {
|
|
6
|
+
SearchDialog
|
|
7
|
+
} from "../../chunk-CLF6ZVYS.js";
|
|
8
|
+
import "../../chunk-QKOA6KEZ.js";
|
|
9
|
+
import "../../chunk-VPJMNIJX.js";
|
|
10
|
+
import "../../chunk-TK3TM3MR.js";
|
|
11
|
+
import "../../chunk-UUGCW3UP.js";
|
|
12
|
+
import "../../chunk-27HFSL7N.js";
|
|
13
|
+
import "../../chunk-EFMHXXHW.js";
|
|
14
|
+
import "../../chunk-MLKGABMK.js";
|
|
15
|
+
|
|
16
|
+
// src/components/dialog/search-orama.tsx
|
|
17
|
+
import {
|
|
18
|
+
useDocsSearch
|
|
19
|
+
} from "fumadocs-core/search/client";
|
|
20
|
+
import { useState } from "react";
|
|
21
|
+
import { useOnChange } from "fumadocs-core/utils/use-on-change";
|
|
22
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
function OramaSearchDialog({
|
|
24
|
+
client,
|
|
25
|
+
searchOptions,
|
|
26
|
+
tags,
|
|
27
|
+
defaultTag,
|
|
28
|
+
showOrama = false,
|
|
29
|
+
allowClear = false,
|
|
30
|
+
...props
|
|
31
|
+
}) {
|
|
32
|
+
const [tag, setTag] = useState(defaultTag);
|
|
33
|
+
const { search, setSearch, query } = useDocsSearch(
|
|
34
|
+
{
|
|
35
|
+
type: "orama-cloud",
|
|
36
|
+
client,
|
|
37
|
+
params: searchOptions
|
|
38
|
+
},
|
|
39
|
+
void 0,
|
|
40
|
+
tag
|
|
41
|
+
);
|
|
42
|
+
useOnChange(defaultTag, (v) => {
|
|
43
|
+
setTag(v);
|
|
44
|
+
});
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
46
|
+
SearchDialog,
|
|
47
|
+
{
|
|
48
|
+
search,
|
|
49
|
+
onSearchChange: setSearch,
|
|
50
|
+
results: query.data ?? [],
|
|
51
|
+
isLoading: query.isLoading,
|
|
52
|
+
...props,
|
|
53
|
+
footer: tags ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
54
|
+
/* @__PURE__ */ jsx(
|
|
55
|
+
TagsList,
|
|
56
|
+
{
|
|
57
|
+
tag,
|
|
58
|
+
onTagChange: setTag,
|
|
59
|
+
items: tags,
|
|
60
|
+
allowClear,
|
|
61
|
+
children: showOrama ? /* @__PURE__ */ jsx(Label, {}) : null
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
props.footer
|
|
65
|
+
] }) : props.footer
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function Label() {
|
|
70
|
+
return /* @__PURE__ */ jsx(
|
|
71
|
+
"a",
|
|
72
|
+
{
|
|
73
|
+
href: "https://orama.com",
|
|
74
|
+
rel: "noreferrer noopener",
|
|
75
|
+
className: "ms-auto text-xs text-fd-muted-foreground",
|
|
76
|
+
children: "Search powered by Orama"
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
OramaSearchDialog as default
|
|
82
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { SortedResult } from 'fumadocs-core/server';
|
|
2
|
-
import {
|
|
3
|
+
import { ReactNode } from 'react';
|
|
3
4
|
|
|
4
5
|
type SearchLink = [name: string, href: string];
|
|
5
6
|
interface SharedProps {
|
|
@@ -10,28 +11,19 @@ interface SharedProps {
|
|
|
10
11
|
*/
|
|
11
12
|
links?: SearchLink[];
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
type SearchDialogProps = SharedProps & SearchValueProps & Omit<SearchResultProps, 'items'> & {
|
|
14
15
|
results: SortedResult[] | 'empty';
|
|
15
16
|
footer?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
interface
|
|
17
|
+
};
|
|
18
|
+
interface SearchValueProps {
|
|
18
19
|
search: string;
|
|
19
20
|
onSearchChange: (v: string) => void;
|
|
20
21
|
isLoading?: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface SearchResultProps {
|
|
21
24
|
items: SortedResult[];
|
|
22
25
|
hideResults?: boolean;
|
|
23
26
|
}
|
|
24
|
-
declare function SearchDialog({ open, onOpenChange, footer, links, ...props }: SearchDialogProps):
|
|
25
|
-
interface TagItem {
|
|
26
|
-
name: string;
|
|
27
|
-
value: string | undefined;
|
|
28
|
-
}
|
|
29
|
-
interface TagsListProps extends HTMLAttributes<HTMLDivElement> {
|
|
30
|
-
tag?: string;
|
|
31
|
-
onTagChange: (tag: string | undefined) => void;
|
|
32
|
-
allowClear?: boolean;
|
|
33
|
-
items: TagItem[];
|
|
34
|
-
}
|
|
35
|
-
declare function TagsList({ tag, onTagChange, items, allowClear, ...props }: TagsListProps): ReactNode;
|
|
27
|
+
declare function SearchDialog({ open, onOpenChange, footer, links, ...props }: SearchDialogProps): react_jsx_runtime.JSX.Element;
|
|
36
28
|
|
|
37
|
-
export { SearchDialog, type SearchLink, type SharedProps
|
|
29
|
+
export { SearchDialog, type SearchLink, type SharedProps };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import {
|
|
2
|
-
SearchDialog
|
|
3
|
-
|
|
4
|
-
} from "../../chunk-TYZZJ335.js";
|
|
3
|
+
SearchDialog
|
|
4
|
+
} from "../../chunk-CLF6ZVYS.js";
|
|
5
5
|
import "../../chunk-QKOA6KEZ.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-VPJMNIJX.js";
|
|
7
7
|
import "../../chunk-TK3TM3MR.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-UUGCW3UP.js";
|
|
9
9
|
import "../../chunk-27HFSL7N.js";
|
|
10
10
|
import "../../chunk-EFMHXXHW.js";
|
|
11
11
|
import "../../chunk-MLKGABMK.js";
|
|
12
12
|
export {
|
|
13
|
-
SearchDialog
|
|
14
|
-
TagsList
|
|
13
|
+
SearchDialog
|
|
15
14
|
};
|
package/dist/components/files.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
RootToggle
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-IL64LMKR.js";
|
|
5
5
|
import "../../chunk-CDPVENXR.js";
|
|
6
6
|
import "../../chunk-IVBHRX3O.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-VPJMNIJX.js";
|
|
8
8
|
import "../../chunk-TK3TM3MR.js";
|
|
9
9
|
import "../../chunk-27HFSL7N.js";
|
|
10
10
|
import "../../chunk-MLKGABMK.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Sidebar
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-J6XGK6ZG.js";
|
|
5
|
+
import "./chunk-W36BQGMB.js";
|
|
6
6
|
import "./chunk-CDPVENXR.js";
|
|
7
7
|
import "./chunk-TQJ6YPJ3.js";
|
|
8
8
|
import {
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
import "./chunk-2FLZOPQN.js";
|
|
12
12
|
import {
|
|
13
13
|
PanelLeft
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VPJMNIJX.js";
|
|
15
15
|
import {
|
|
16
16
|
twMerge
|
|
17
17
|
} from "./chunk-TK3TM3MR.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-UUGCW3UP.js";
|
|
19
19
|
import "./chunk-YL3MZH7N.js";
|
|
20
20
|
import {
|
|
21
21
|
useSidebar
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
RootToggle
|
|
4
|
+
} from "../chunk-IL64LMKR.js";
|
|
2
5
|
import {
|
|
3
6
|
Sidebar,
|
|
4
7
|
itemVariants
|
|
5
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-J6XGK6ZG.js";
|
|
6
9
|
import {
|
|
7
10
|
BaseLinkItem,
|
|
8
11
|
ButtonItem,
|
|
9
12
|
IconItem,
|
|
10
13
|
ThemeToggle
|
|
11
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-AFMXKA2S.js";
|
|
12
15
|
import {
|
|
13
16
|
SearchToggle
|
|
14
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-W36BQGMB.js";
|
|
18
|
+
import "../chunk-CDPVENXR.js";
|
|
15
19
|
import {
|
|
16
20
|
LanguageToggle,
|
|
17
21
|
LanguageToggleText
|
|
18
22
|
} from "../chunk-KZTWSBYY.js";
|
|
19
|
-
import {
|
|
20
|
-
RootToggle
|
|
21
|
-
} from "../chunk-WRBUXI2A.js";
|
|
22
|
-
import "../chunk-CDPVENXR.js";
|
|
23
23
|
import {
|
|
24
24
|
Collapsible,
|
|
25
25
|
CollapsibleContent,
|
|
@@ -44,13 +44,13 @@ import {
|
|
|
44
44
|
Menu,
|
|
45
45
|
PanelLeft,
|
|
46
46
|
X
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-VPJMNIJX.js";
|
|
48
48
|
import {
|
|
49
49
|
twMerge
|
|
50
50
|
} from "../chunk-TK3TM3MR.js";
|
|
51
51
|
import {
|
|
52
52
|
useSearchContext
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-UUGCW3UP.js";
|
|
54
54
|
import {
|
|
55
55
|
TreeContextProvider
|
|
56
56
|
} from "../chunk-YL3MZH7N.js";
|
package/dist/layouts/docs.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
Ellipsis,
|
|
20
20
|
Languages
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-VPJMNIJX.js";
|
|
22
22
|
import {
|
|
23
23
|
getLinks,
|
|
24
24
|
replaceOrDefault
|
|
@@ -56,7 +56,7 @@ function getSidebarTabs(pageTree, { transform } = {}) {
|
|
|
56
56
|
// src/layouts/docs.tsx
|
|
57
57
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
58
58
|
var DynamicSidebar = dynamic(
|
|
59
|
-
() => import("../dynamic-sidebar-
|
|
59
|
+
() => import("../dynamic-sidebar-SYEETGZL.js")
|
|
60
60
|
);
|
|
61
61
|
function DocsLayout({
|
|
62
62
|
nav: {
|
|
@@ -92,7 +92,7 @@ function DocsLayout({
|
|
|
92
92
|
sidebar.banner
|
|
93
93
|
] });
|
|
94
94
|
const footer = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
95
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-row items-center border-t py-
|
|
95
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-row items-center border-t py-2 empty:hidden max-md:gap-1.5 max-md:px-3 md:mx-3", children: /* @__PURE__ */ jsx(
|
|
96
96
|
SidebarFooter,
|
|
97
97
|
{
|
|
98
98
|
sidebarCollapsible: collapsible,
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
ButtonItem,
|
|
5
5
|
IconItem,
|
|
6
6
|
ThemeToggle
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-AFMXKA2S.js";
|
|
8
8
|
import {
|
|
9
9
|
LargeSearchToggle,
|
|
10
10
|
SearchToggle
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-W36BQGMB.js";
|
|
12
|
+
import "../chunk-CDPVENXR.js";
|
|
12
13
|
import {
|
|
13
14
|
LanguageToggle,
|
|
14
15
|
LanguageToggleText
|
|
15
16
|
} from "../chunk-KZTWSBYY.js";
|
|
16
|
-
import "../chunk-CDPVENXR.js";
|
|
17
17
|
import {
|
|
18
18
|
buttonVariants
|
|
19
19
|
} from "../chunk-QKOA6KEZ.js";
|
|
@@ -26,13 +26,13 @@ import "../chunk-IVBHRX3O.js";
|
|
|
26
26
|
import {
|
|
27
27
|
ChevronDown,
|
|
28
28
|
Languages
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-VPJMNIJX.js";
|
|
30
30
|
import {
|
|
31
31
|
twMerge
|
|
32
32
|
} from "../chunk-TK3TM3MR.js";
|
|
33
33
|
import {
|
|
34
34
|
useSearchContext
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-UUGCW3UP.js";
|
|
36
36
|
import "../chunk-EFMHXXHW.js";
|
|
37
37
|
import "../chunk-MLKGABMK.js";
|
|
38
38
|
|
package/dist/mdx.client.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CodeBlock,
|
|
4
4
|
Pre
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZBOI25UW.js";
|
|
6
6
|
import "./chunk-2KMKNVSN.js";
|
|
7
7
|
import "./chunk-QKOA6KEZ.js";
|
|
8
8
|
import "./chunk-2FLZOPQN.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-VPJMNIJX.js";
|
|
10
10
|
import "./chunk-TK3TM3MR.js";
|
|
11
11
|
import "./chunk-MLKGABMK.js";
|
|
12
12
|
|
package/dist/mdx.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Pre } from "./mdx.client"
|
|
2
2
|
import {
|
|
3
3
|
Heading
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ILBYBJ5C.js";
|
|
5
5
|
import {
|
|
6
6
|
Callout
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-F534DZID.js";
|
|
8
|
+
import "./chunk-VPJMNIJX.js";
|
|
9
9
|
import {
|
|
10
10
|
Card,
|
|
11
11
|
Cards
|
package/dist/page.client.js
CHANGED
package/dist/page.js
CHANGED
|
@@ -25,7 +25,7 @@ import { AnchorProvider } from "fumadocs-core/toc";
|
|
|
25
25
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
26
|
var ClerkTOCItems = dynamic(() => import("./toc-clerk-SKE4LBT7.js"));
|
|
27
27
|
var EditOnGitHub = dynamic(
|
|
28
|
-
() => import("./edit-on-github-
|
|
28
|
+
() => import("./edit-on-github-FIYOWWPQ.js")
|
|
29
29
|
);
|
|
30
30
|
function DocsPage({
|
|
31
31
|
toc = [],
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactNode, MutableRefObject } from 'react';
|
|
3
3
|
import { ThemeProviderProps } from 'next-themes/dist/types';
|
|
4
4
|
import { DefaultSearchDialogProps } from './components/dialog/search-default.js';
|
|
5
5
|
import { SearchLink, SharedProps } from './components/dialog/search.js';
|
|
6
6
|
export { u as useI18n } from './i18n-Db2HAPOu.js';
|
|
7
7
|
export { u as useTreeContext } from './tree-06ley65N.js';
|
|
8
|
+
import './tag-list-BsEgfE3x.js';
|
|
9
|
+
import 'react/jsx-runtime';
|
|
8
10
|
import 'fumadocs-core/server';
|
|
9
11
|
|
|
10
12
|
interface HotKey {
|
|
11
|
-
display:
|
|
13
|
+
display: ReactNode;
|
|
12
14
|
/**
|
|
13
15
|
* Key code or a function determining whether the key is pressed.
|
|
14
16
|
*/
|
|
@@ -41,7 +43,7 @@ interface SearchProviderProps {
|
|
|
41
43
|
* Additional props to the dialog
|
|
42
44
|
*/
|
|
43
45
|
options?: Partial<SharedProps>;
|
|
44
|
-
children?:
|
|
46
|
+
children?: ReactNode;
|
|
45
47
|
}
|
|
46
48
|
interface SearchContextType {
|
|
47
49
|
enabled: boolean;
|