@clarify-labs/renderer 0.6.6 → 0.7.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/output/{OpenApiOperation-CI_PeMSy.js → OpenApiOperation-CWSOhUVa.js} +84 -19
- package/output/OpenApiOperation-CWSOhUVa.js.map +1 -0
- package/output/{OpenApiOperation-CxQQyEHK.cjs → OpenApiOperation-ZXToVSFC.cjs} +89 -18
- package/output/OpenApiOperation-ZXToVSFC.cjs.map +1 -0
- package/output/{ThemeRoot-BhP5M3Hd.cjs → ThemeRoot-CEvwrGp5.cjs} +29 -186
- package/output/ThemeRoot-CEvwrGp5.cjs.map +1 -0
- package/output/{ThemeRoot-DErmHskn.js → ThemeRoot-C_ZdzSMu.js} +21 -178
- package/output/ThemeRoot-C_ZdzSMu.js.map +1 -0
- package/output/app/AppShell.d.ts +2 -0
- package/output/app/PageFooter.d.ts +5 -1
- package/output/client.cjs +5 -2
- package/output/client.d.ts +1 -0
- package/output/client.js +4 -3
- package/output/components/LocalizedLink.d.ts +6 -0
- package/output/components/WebFrame.d.ts +11 -0
- package/output/components/index.d.ts +4 -0
- package/output/context.d.ts +1 -1
- package/output/core/types.d.ts +7 -1
- package/output/index.cjs +5 -4
- package/output/index.d.ts +2 -2
- package/output/index.js +5 -5
- package/output/mdx/components.d.ts +1 -0
- package/output/mdx/primitives.d.ts +2 -2
- package/output/preview.cjs +61 -23
- package/output/preview.cjs.map +1 -1
- package/output/preview.js +61 -23
- package/output/preview.js.map +1 -1
- package/output/{render-HeCAMIGm.js → render-CnUd0XwZ.js} +6 -5
- package/output/render-CnUd0XwZ.js.map +1 -0
- package/output/{render-C_NHO3rz.cjs → render-zHU25Nm9.cjs} +6 -5
- package/output/render-zHU25Nm9.cjs.map +1 -0
- package/output/renderer.css +220 -29
- package/output/server.cjs +5 -4
- package/output/server.cjs.map +1 -1
- package/output/server.js +5 -4
- package/output/server.js.map +1 -1
- package/output/shell/Search.d.ts +4 -0
- package/output/shell/search/Highlight.d.ts +11 -0
- package/output/shell/search/SearchDialog.d.ts +13 -0
- package/output/shell/search/SearchInput.d.ts +8 -0
- package/output/shell/search/SearchResult.d.ts +10 -0
- package/output/shell/search/items.d.ts +3 -0
- package/output/shell/search/pagefind.d.ts +5 -0
- package/output/shell/search/types.d.ts +37 -0
- package/output/shell/search/useSearchProps.d.ts +10 -0
- package/output/{shell-DvTfFx6M.js → shell-CumiARRe.js} +472 -61
- package/output/shell-CumiARRe.js.map +1 -0
- package/output/{shell-D4tS8Jts.cjs → shell-xxhV0p7k.cjs} +524 -59
- package/output/shell-xxhV0p7k.cjs.map +1 -0
- package/output/theme/variables.d.ts +2 -0
- package/package.json +1 -1
- package/output/OpenApiOperation-CI_PeMSy.js.map +0 -1
- package/output/OpenApiOperation-CxQQyEHK.cjs.map +0 -1
- package/output/ThemeRoot-BhP5M3Hd.cjs.map +0 -1
- package/output/ThemeRoot-DErmHskn.js.map +0 -1
- package/output/render-C_NHO3rz.cjs.map +0 -1
- package/output/render-HeCAMIGm.js.map +0 -1
- package/output/shell-D4tS8Jts.cjs.map +0 -1
- package/output/shell-DvTfFx6M.js.map +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Pagefind } from './types';
|
|
2
|
+
export declare function pagefindCacheKey(routePrefix: string, locale: string | undefined): string;
|
|
3
|
+
export declare function logSearchDebug(message: string, data?: Record<string, unknown>): void;
|
|
4
|
+
export declare function loadPagefind(routePrefix: string, locale: string | undefined): Promise<Pagefind | null>;
|
|
5
|
+
export declare function normalizePagefindUrl(url: string, routePrefix: string): string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type SearchItem = {
|
|
2
|
+
title: string;
|
|
3
|
+
pageTitle: string;
|
|
4
|
+
sectionTitle?: string;
|
|
5
|
+
url: string;
|
|
6
|
+
keywords: string;
|
|
7
|
+
};
|
|
8
|
+
export type PagefindSearchResultData = {
|
|
9
|
+
url: string;
|
|
10
|
+
meta: {
|
|
11
|
+
title?: string;
|
|
12
|
+
};
|
|
13
|
+
excerpt?: string;
|
|
14
|
+
};
|
|
15
|
+
export type PagefindSearchResult = {
|
|
16
|
+
id: string;
|
|
17
|
+
data: () => Promise<PagefindSearchResultData>;
|
|
18
|
+
};
|
|
19
|
+
export type Pagefind = {
|
|
20
|
+
init?: () => Promise<void>;
|
|
21
|
+
search: (query: string, options?: {
|
|
22
|
+
limit?: number;
|
|
23
|
+
}) => Promise<{
|
|
24
|
+
results: PagefindSearchResult[];
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
export type FullTextSearchItem = {
|
|
28
|
+
type: 'full-text';
|
|
29
|
+
id: string;
|
|
30
|
+
title: string;
|
|
31
|
+
url: string;
|
|
32
|
+
excerpt?: string;
|
|
33
|
+
};
|
|
34
|
+
export type QuickSearchItem = SearchItem & {
|
|
35
|
+
type: 'quick';
|
|
36
|
+
};
|
|
37
|
+
export type SearchDisplayItem = FullTextSearchItem | QuickSearchItem;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function useSearchProps(): {
|
|
2
|
+
buttonProps: {
|
|
3
|
+
ref: import('react').RefObject<HTMLButtonElement | null>;
|
|
4
|
+
onClick(): void;
|
|
5
|
+
};
|
|
6
|
+
dialogProps: {
|
|
7
|
+
open: boolean;
|
|
8
|
+
setOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
9
|
+
};
|
|
10
|
+
};
|