mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 23:49:51 +00:00
Core: require explicit import for new search clients
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-core': patch
|
||||
---
|
||||
|
||||
require explicit import for new search clients
|
||||
@@ -317,7 +317,6 @@ export function Writing({
|
||||
}
|
||||
|
||||
export function AgnosticBackground() {
|
||||
const { resolvedTheme } = useTheme();
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
const visible = useIsVisible(ref);
|
||||
|
||||
@@ -328,7 +327,7 @@ export function AgnosticBackground() {
|
||||
>
|
||||
<Dithering
|
||||
colorBack="#00000000"
|
||||
colorFront={resolvedTheme === 'dark' ? '#fc7744' : '#c6bb58'}
|
||||
colorFront="#c6bb58"
|
||||
shape="warp"
|
||||
type="4x4"
|
||||
speed={visible ? 0.4 : 0}
|
||||
|
||||
@@ -143,15 +143,6 @@ export function useDocsSearch(
|
||||
client = oramaStaticClient(clientRest);
|
||||
break;
|
||||
}
|
||||
case 'flexsearch-static': {
|
||||
const res = (promiseMap[clientRest.type] ??=
|
||||
import('./client/flexsearch-static')) as Promise<
|
||||
typeof import('./client/flexsearch-static')
|
||||
>;
|
||||
const { flexsearchStaticClient } = use(res);
|
||||
client = flexsearchStaticClient(clientRest);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
throw new Error('unknown search client');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user