{"_id":"@dbx-tools/ui-ai-search","_rev":"3-141bc2a8efeec5e2224d1f78199b6aa7","name":"@dbx-tools/ui-ai-search","dist-tags":{"latest":"0.6.8"},"versions":{"0.6.6":{"name":"@dbx-tools/ui-ai-search","version":"0.6.6","license":"UNLICENSED","_id":"@dbx-tools/ui-ai-search@0.6.6","maintainers":[{"name":"regbo","email":"reggie.pierce@gmail.com"},{"name":"reggie-db","email":"reggie.pierce@databricks.com"}],"homepage":"https://github.com/reggie-db/dbx-tools#readme","bugs":{"url":"https://github.com/reggie-db/dbx-tools/issues"},"//":"~~ Generated by projen. To modify, edit .projenrc.js and run \"pnpm exec projen\".","dist":{"shasum":"4bb1d0143ef2e53b27450c7a049e5c54da68c020","tarball":"https://registry.npmjs.org/@dbx-tools/ui-ai-search/-/ui-ai-search-0.6.6.tgz","fileCount":8,"integrity":"sha512-FyKBVv4d+QhC+H4+Xvbhghljb9FX3oxV29HoP3ZyDR7RCZznV3LWv6g9VNrUap9hLeEpG+EpCpGtJgOZqFvvYg==","signatures":[{"sig":"MEUCIHU8Q2F9s+mXiqo5Wv5FtGV/RQN/sM/KLDh5MAmnBsvLAiEAg+b5+g2by9rIBmv5mLpuhBZUnCcFolQWNyRVw1k5La4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dbx-tools%2fui-ai-search@0.6.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21999},"type":"module","_from":"file:dbx-tools-ui-ai-search-0.6.6.tgz","exports":{"./react":"./src/react/index.ts","./styles.css":"./src/styles.css","./package.json":"./package.json"},"scripts":{"test":"projen test","build":"projen build","watch":"projen watch","projen":"projen","compile":"projen compile","default":"projen default","package":"projen package","pre-compile":"projen pre-compile","post-compile":"projen post-compile"},"_npmUser":{"name":"reggie-db","email":"reggie.pierce@databricks.com"},"_resolved":"/tmp/0dd2ec77980d11e6c51a4057b0a62c21/dbx-tools-ui-ai-search-0.6.6.tgz","_integrity":"sha512-FyKBVv4d+QhC+H4+Xvbhghljb9FX3oxV29HoP3ZyDR7RCZznV3LWv6g9VNrUap9hLeEpG+EpCpGtJgOZqFvvYg==","repository":{"url":"git+https://github.com/reggie-db/dbx-tools.git","type":"git","directory":"packages/ui/ai-search"},"_npmVersion":"11.16.0","description":"React search box and results for Databricks AI Search.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"react":"^19.2.4","react-dom":"^19.2.4","lucide-react":"^0.554.0","@dbx-tools/ui-appkit":"0.6.6","@dbx-tools/shared-core":"0.6.6","@dbx-tools/shared-ai-search":"0.6.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"dbxToolsConfig":{"tags":["ui"]},"devDependencies":{"tsx":"^4.23.0","typescript":"^5.9.3","@types/node":"^24.6.0","@types/react":"^19.2.2","@types/react-dom":"^19.2.2"},"_npmOperationalInternal":{"tmp":"tmp/ui-ai-search_0.6.6_1785460171898_0.6293189165943534","host":"s3://npm-registry-packages-npm-production"}},"0.6.7":{"name":"@dbx-tools/ui-ai-search","version":"0.6.7","license":"UNLICENSED","_id":"@dbx-tools/ui-ai-search@0.6.7","maintainers":[{"name":"regbo","email":"reggie.pierce@gmail.com"},{"name":"reggie-db","email":"reggie.pierce@databricks.com"}],"homepage":"https://github.com/reggie-db/dbx-tools#readme","bugs":{"url":"https://github.com/reggie-db/dbx-tools/issues"},"//":"~~ Generated by projen. To modify, edit .projenrc.js and run \"pnpm exec projen\".","dist":{"shasum":"34ceaf1bfb43d008dcd35545ddc7b5f5541a2076","tarball":"https://registry.npmjs.org/@dbx-tools/ui-ai-search/-/ui-ai-search-0.6.7.tgz","fileCount":8,"integrity":"sha512-FyTmA6Bh338dlWbJONyhvSQNEhIF9El3bfamyZJ44s7mR6/sbzD9AqhctbU872ZN2LEAIAIvP07Hk/8/5SHC3w==","signatures":[{"sig":"MEUCIQCIOQq3eTX5zMfW7DYJqe3/FM/xKNiO/S57XzoQXHA1yAIgcZNdqad6UIz5zyGM2gC91L/R0MZNlRAZQA78U4NL9CA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dbx-tools%2fui-ai-search@0.6.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21999},"type":"module","_from":"file:dbx-tools-ui-ai-search-0.6.7.tgz","exports":{"./react":"./src/react/index.ts","./styles.css":"./src/styles.css","./package.json":"./package.json"},"scripts":{"test":"projen test","build":"projen build","watch":"projen watch","projen":"projen","compile":"projen compile","default":"projen default","package":"projen package","pre-compile":"projen pre-compile","post-compile":"projen post-compile"},"_npmUser":{"name":"reggie-db","email":"reggie.pierce@databricks.com"},"_resolved":"/tmp/4079687f64a6acc9227ea495090c3024/dbx-tools-ui-ai-search-0.6.7.tgz","_integrity":"sha512-FyTmA6Bh338dlWbJONyhvSQNEhIF9El3bfamyZJ44s7mR6/sbzD9AqhctbU872ZN2LEAIAIvP07Hk/8/5SHC3w==","repository":{"url":"git+https://github.com/reggie-db/dbx-tools.git","type":"git","directory":"packages/ui/ai-search"},"_npmVersion":"11.16.0","description":"React search box and results for Databricks AI Search.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"react":"^19.2.4","react-dom":"^19.2.4","lucide-react":"^0.554.0","@dbx-tools/ui-appkit":"0.6.7","@dbx-tools/shared-core":"0.6.7","@dbx-tools/shared-ai-search":"0.6.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"dbxToolsConfig":{"tags":["ui"]},"devDependencies":{"tsx":"^4.23.0","typescript":"^5.9.3","@types/node":"^24.6.0","@types/react":"^19.2.2","@types/react-dom":"^19.2.2"},"_npmOperationalInternal":{"tmp":"tmp/ui-ai-search_0.6.7_1785461019364_0.5035494195806101","host":"s3://npm-registry-packages-npm-production"}},"0.6.8":{"name":"@dbx-tools/ui-ai-search","repository":{"type":"git","url":"git+https://github.com/reggie-db/dbx-tools.git","directory":"packages/ui/ai-search"},"devDependencies":{"@types/node":"^24.6.0","@types/react":"^19.2.2","@types/react-dom":"^19.2.2","tsx":"^4.23.0","typescript":"^5.9.3"},"dependencies":{"lucide-react":"^0.554.0","react":"^19.2.4","react-dom":"^19.2.4","@dbx-tools/shared-ai-search":"0.6.8","@dbx-tools/shared-core":"0.6.8","@dbx-tools/ui-appkit":"0.6.8"},"license":"UNLICENSED","publishConfig":{"access":"public"},"version":"0.6.8","type":"module","exports":{"./react":"./src/react/index.ts","./styles.css":"./src/styles.css","./package.json":"./package.json"},"dbxToolsConfig":{"tags":["ui"]},"//":"~~ Generated by projen. To modify, edit .projenrc.js and run \"pnpm exec projen\".","scripts":{"build":"projen build","compile":"projen compile","default":"projen default","package":"projen package","post-compile":"projen post-compile","pre-compile":"projen pre-compile","test":"projen test","watch":"projen watch","projen":"projen"},"_id":"@dbx-tools/ui-ai-search@0.6.8","description":"React search box and results for Databricks AI Search.","bugs":{"url":"https://github.com/reggie-db/dbx-tools/issues"},"homepage":"https://github.com/reggie-db/dbx-tools#readme","_integrity":"sha512-9DHMvhq4LKxLmnYVqsxVXU220AoEt2CWny9mBbmpJO6U5GDHrZXFEBeMFvLbNvUhOY4Hq3m88h0Om6A+8qDGEg==","_resolved":"/tmp/5069f66b6d1055d1215c0e7e2831752d/dbx-tools-ui-ai-search-0.6.8.tgz","_from":"file:dbx-tools-ui-ai-search-0.6.8.tgz","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-9DHMvhq4LKxLmnYVqsxVXU220AoEt2CWny9mBbmpJO6U5GDHrZXFEBeMFvLbNvUhOY4Hq3m88h0Om6A+8qDGEg==","shasum":"701e75d20279fa891b6be6c0b971d3f4be5fa55a","tarball":"https://registry.npmjs.org/@dbx-tools/ui-ai-search/-/ui-ai-search-0.6.8.tgz","fileCount":8,"unpackedSize":21999,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dbx-tools%2fui-ai-search@0.6.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB+5yONdsxkYBuBaZtNq/LutP9PYO3MVwRFPfw5FhhZXAiEA90H6NXVAmmnq8+TGByKhFVfYR3MeNIOHJBTBx7tFiXU="}]},"_npmUser":{"name":"reggie-db","email":"reggie.pierce@databricks.com"},"directories":{},"maintainers":[{"name":"regbo","email":"reggie.pierce@gmail.com"},{"name":"reggie-db","email":"reggie.pierce@databricks.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ui-ai-search_0.6.8_1785462326138_0.9623980551966036"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-31T01:09:31.750Z","modified":"2026-07-31T01:45:26.646Z","0.6.6":"2026-07-31T01:09:32.048Z","0.6.7":"2026-07-31T01:23:39.494Z","0.6.8":"2026-07-31T01:45:26.289Z"},"bugs":{"url":"https://github.com/reggie-db/dbx-tools/issues"},"license":"UNLICENSED","homepage":"https://github.com/reggie-db/dbx-tools#readme","repository":{"type":"git","url":"git+https://github.com/reggie-db/dbx-tools.git","directory":"packages/ui/ai-search"},"description":"React search box and results for Databricks AI Search.","maintainers":[{"name":"regbo","email":"reggie.pierce@gmail.com"},{"name":"reggie-db","email":"reggie.pierce@databricks.com"}],"readme":"# @dbx-tools/ui-ai-search\n\nReact search box and results for Databricks AI Search.\n\nImport this package when an AppKit UI wants a drop-in, search-as-you-type box\nover the [`@dbx-tools/ai-search`](../../node/ai-search) plugin. The components\nread the plugin's boot config (indexes, default index, page size, route path)\nthrough AppKit's `usePluginClientConfig`, so search is one component and zero\nprops.\n\n**Key features:**\n\n- `SearchBox` - a debounced, cancellable search-as-you-type input with a results\n  dropdown, styled with AppKit tokens. Meilisearch-style instant search.\n- `SearchResults` - a presentational hit list for a full-page results layout.\n- `useSearch` - the hook the components share: `{ query, setQuery, hits,\nloading, error, config, submit, clear }`, debounced and abortable, targeting\n  the single-index or universal (federated) route.\n- Universal search with one flag (`universal`) to search every configured index.\n- `renderHit` overrides on both components for full control of a row; a sensible\n  default shows a title, id, and score.\n\n## Quick Start\n\n```tsx\nimport { SearchBox } from \"@dbx-tools/ui-ai-search/react\";\nimport \"@dbx-tools/ui-ai-search/styles.css\";\n\nexport function DocsSearch() {\n  return <SearchBox placeholder=\"Search docs…\" onSelect={(hit) => open(hit.id)} />;\n}\n```\n\nUniversal search across every index the plugin knows about:\n\n```tsx\n<SearchBox universal showIndex placeholder=\"Search everything…\" />\n```\n\n## Use The Hook\n\n```tsx\nimport { useSearch, SearchResults } from \"@dbx-tools/ui-ai-search/react\";\n\nfunction Results() {\n  const { query, setQuery, hits, loading } = useSearch({ limit: 20 });\n  return (\n    <>\n      <input value={query} onChange={(e) => setQuery(e.target.value)} />\n      {loading ? \"…\" : <SearchResults hits={hits} />}\n    </>\n  );\n}\n```\n\n## Subpaths\n\n- `@dbx-tools/ui-ai-search/react` - `SearchBox`, `SearchResults`, `useSearch`,\n  and the re-exported `SearchHit` / `SearchResult` / `SearchMode` /\n  `SearchClientConfig` types.\n- `@dbx-tools/ui-ai-search/styles.css` - AppKit-token styling for the box and\n  results; import once after Tailwind and your AppKit-UI theme.\n\nRuntime search, routes, and the plugin live in\n[`@dbx-tools/ai-search`](../../node/ai-search); the wire contract lives in\n[`@dbx-tools/shared-ai-search`](../../shared/ai-search).\n","readmeFilename":"README.md"}