@diplodoc/client 3.10.3 → 3.11.0
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/CHANGELOG.md +12 -0
- package/build/client/app-34c68624e23be7ce.css.map +1 -1
- package/build/client/app-9912bc5fc2ea22c6.js +2 -0
- package/build/client/app-9912bc5fc2ea22c6.js.map +1 -0
- package/build/client/manifest.json +4 -4
- package/build/client/search-b82629d53f2e437c.css.map +1 -1
- package/build/client/search-c72f8c6ef62ff42a.js +2 -0
- package/build/client/search-c72f8c6ef62ff42a.js.map +1 -0
- package/build/client/{vendor-0ca3ecbd78ee745e.js → vendor-bc3eb63ddaa9dd73.js} +2 -2
- package/build/client/vendor-bc3eb63ddaa9dd73.js.map +1 -0
- package/build/components/Search/Page.d.ts +3 -0
- package/build/components/Search/index.d.ts +9 -3
- package/build/server/app.js +376 -323
- package/build/server/app.js.map +1 -1
- package/package.json +2 -2
- package/build/client/app-5320a31c05d20641.js +0 -2
- package/build/client/app-5320a31c05d20641.js.map +0 -1
- package/build/client/search-81a7f828ef481c84.js +0 -2
- package/build/client/search-81a7f828ef481c84.js.map +0 -1
- package/build/client/vendor-0ca3ecbd78ee745e.js.map +0 -1
- package/build/components/Search/Search.d.ts +0 -3
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
1
2
|
import type { SearchConfig, SearchData, WorkerApi, WorkerConfig } from './types';
|
|
3
|
+
import React from 'react';
|
|
2
4
|
export type { SearchConfig, WorkerConfig, WorkerApi };
|
|
3
|
-
export declare const SearchContext:
|
|
4
|
-
export declare const SearchProvider:
|
|
5
|
-
export
|
|
5
|
+
export declare const SearchContext: React.Context<SearchData | SearchConfig | null | undefined>;
|
|
6
|
+
export declare const SearchProvider: React.Provider<SearchData | SearchConfig | null | undefined>;
|
|
7
|
+
export interface SearchProps {
|
|
8
|
+
data: SearchConfig;
|
|
9
|
+
url: URL;
|
|
10
|
+
}
|
|
11
|
+
export declare function Search(props: SearchProps): ReactElement;
|
|
6
12
|
export declare function useSearch(): SearchData | SearchConfig | null | undefined;
|