diff --git a/packages/plugin-docusaurus-v3/package.json b/packages/plugin-docusaurus-v3/package.json
index 0d81c01e6..18793bff2 100644
--- a/packages/plugin-docusaurus-v3/package.json
+++ b/packages/plugin-docusaurus-v3/package.json
@@ -39,7 +39,8 @@
"devDependencies": {
"@types/jsdom": "^21.1.6",
"@types/markdown-it": "^13.0.7",
- "@types/pako": "^2.0.3"
+ "@types/pako": "^2.0.3",
+ "typescript": "^5.6.3"
},
"peerDependencies": {
"@docusaurus/plugin-content-docs": ">= 3.2.0",
diff --git a/packages/plugin-docusaurus-v3/src/theme/SearchBar/index.tsx b/packages/plugin-docusaurus-v3/src/theme/SearchBar/index.tsx
index e43ec0327..c4da30fb2 100644
--- a/packages/plugin-docusaurus-v3/src/theme/SearchBar/index.tsx
+++ b/packages/plugin-docusaurus-v3/src/theme/SearchBar/index.tsx
@@ -8,23 +8,26 @@ import { OramaSearchBox, OramaSearchButton } from "@orama/react-components"
import { useOrama, PluginData } from "./useOrama"
export function OramaSearchNoDocs() {
- const { searchBoxConfig, searchBtnConfig, colorMode } = useOrama()
+ const { searchBoxConfig, searchBtnConfig: {text, ...searchBtnConfigRest}, colorMode } = useOrama()
return (
-
{searchBoxConfig.basic && (
-
+ <>
+
+ {text || "Search"}
+
+
+ >
)}
)
@@ -35,7 +38,7 @@ export function OramaSearchWithDocs({ pluginId }: { pluginId: string }) {
const activeVersion = useActiveVersion(pluginId)
const { preferredVersion } = useDocsPreferredVersion(pluginId)
const currentVersion = activeVersion || preferredVersion || versions[0]
- const { searchBoxConfig, searchBtnConfig, colorMode } = useOrama()
+ const { searchBoxConfig, searchBtnConfig: { text, ...searchBtnConfigRest }, colorMode } = useOrama()
const searchParams = {
...(currentVersion && {
@@ -47,14 +50,15 @@ export function OramaSearchWithDocs({ pluginId }: { pluginId: string }) {
return (
-
+
+ {text || "Search"}
+
{searchBoxConfig.basic && (
)}
diff --git a/packages/plugin-docusaurus-v3/src/theme/SearchBar/useOrama.ts b/packages/plugin-docusaurus-v3/src/theme/SearchBar/useOrama.ts
index f9b58d732..9798fcc62 100644
--- a/packages/plugin-docusaurus-v3/src/theme/SearchBar/useOrama.ts
+++ b/packages/plugin-docusaurus-v3/src/theme/SearchBar/useOrama.ts
@@ -85,7 +85,7 @@ export const useOrama = () => {
setSearchBoxConfig({
basic: {
clientInstance: oramaInstance,
- disableChat: !endpoint?.url
+ facetProperty: 'category',
},
custom: searchBoxCustomConfig
})
diff --git a/packages/plugin-docusaurus/package.json b/packages/plugin-docusaurus/package.json
index 0a44e2cb5..ef808b4c4 100644
--- a/packages/plugin-docusaurus/package.json
+++ b/packages/plugin-docusaurus/package.json
@@ -44,7 +44,8 @@
"devDependencies": {
"@types/jsdom": "^21.1.6",
"@types/markdown-it": "^13.0.7",
- "@types/pako": "^2.0.3"
+ "@types/pako": "^2.0.3",
+ "typescript": "^5.6.3"
},
"peerDependencies": {
"@docusaurus/plugin-content-docs": "2.x",
diff --git a/packages/plugin-docusaurus/src/theme/SearchBar/index.tsx b/packages/plugin-docusaurus/src/theme/SearchBar/index.tsx
index d3bd1bde2..fb9db25d3 100644
--- a/packages/plugin-docusaurus/src/theme/SearchBar/index.tsx
+++ b/packages/plugin-docusaurus/src/theme/SearchBar/index.tsx
@@ -8,23 +8,26 @@ import { OramaSearchBox, OramaSearchButton } from "@orama/react-components"
import { useOrama, PluginData } from "./useOrama"
export function OramaSearchNoDocs() {
- const { searchBoxConfig, searchBtnConfig, colorMode } = useOrama()
+ const { searchBoxConfig, searchBtnConfig: { text, ...searchBtnConfigRest }, colorMode } = useOrama()
return (
-
{searchBoxConfig.basic && (
-
+ <>
+
+ {text || "Search"}
+
+
+ >
)}
)
@@ -35,7 +38,7 @@ export function OramaSearchWithDocs({ pluginId }: { pluginId: string }) {
const activeVersion = useActiveVersion(pluginId)
const { preferredVersion } = useDocsPreferredVersion(pluginId)
const currentVersion = activeVersion || preferredVersion || versions[0]
- const { searchBoxConfig, searchBtnConfig, colorMode } = useOrama()
+ const { searchBoxConfig, searchBtnConfig: { text, ...searchBtnConfigRest }, colorMode } = useOrama()
const searchParams = {
...(currentVersion && {
@@ -47,14 +50,15 @@ export function OramaSearchWithDocs({ pluginId }: { pluginId: string }) {
return (
-
+
+ {text || "Search"}
+
{searchBoxConfig.basic && (
)}
diff --git a/packages/plugin-docusaurus/src/theme/SearchBar/useOrama.ts b/packages/plugin-docusaurus/src/theme/SearchBar/useOrama.ts
index a7776345b..60cdd978c 100644
--- a/packages/plugin-docusaurus/src/theme/SearchBar/useOrama.ts
+++ b/packages/plugin-docusaurus/src/theme/SearchBar/useOrama.ts
@@ -85,7 +85,7 @@ export const useOrama = () => {
setSearchBoxConfig({
basic: {
clientInstance: oramaInstance,
- disableChat: !endpoint?.url
+ facetProperty: 'category',
},
custom: searchBoxCustomConfig
})
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 592a9bb6b..c68c597d3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -427,6 +427,9 @@ importers:
'@types/pako':
specifier: ^2.0.3
version: 2.0.3
+ typescript:
+ specifier: ^5.6.3
+ version: 5.6.3
packages/plugin-docusaurus-v3:
dependencies:
@@ -500,6 +503,9 @@ importers:
'@types/pako':
specifier: ^2.0.3
version: 2.0.3
+ typescript:
+ specifier: ^5.6.3
+ version: 5.6.3
packages/plugin-embeddings:
dependencies: