{"_id":"@chatjet-ai/docusaurus-theme-search","_rev":"1-6a90d4aa9a2db655b411be50eb5f9721","name":"@chatjet-ai/docusaurus-theme-search","dist-tags":{"latest":"0.2.3"},"versions":{"0.2.1":{"name":"@chatjet-ai/docusaurus-theme-search","private":false,"version":"0.2.1","description":"A Markprompt search theme for Docusaurus","repository":{"type":"git","url":"git+https://github.com/motifland/markprompt-js.git","directory":"packages/react"},"license":"MIT","sideEffects":false,"type":"module","exports":"./dist/index.cjs","main":"dist/index.cjs","scripts":{"prepack":"tsc --build --clean && tsc --build && cpy 'src/**/*.css' dist"},"dependencies":{"@docusaurus/types":"^2.0.0","@markprompt/docusaurus-theme-search":"^0.2.1","@markprompt/react":"0.5.0","@radix-ui/react-visually-hidden":"^1.0.3"},"devDependencies":{"@docusaurus/module-type-aliases":"^2.0.0","cpy-cli":"^4.0.0"},"peerDependencies":{"react":"^17"},"publishConfig":{"access":"public"},"gitHead":"27f3170dce57abcffc767514a3e404d1d663833a","bugs":{"url":"https://github.com/motifland/markprompt-js/issues"},"homepage":"https://github.com/motifland/markprompt-js#readme","_id":"@chatjet-ai/docusaurus-theme-search@0.2.1","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-PCaRECoRfj4i3Whfu102mNIujI9uaOTGmgn3eHppExThEvaS7kVDgdcBjvnz1OX1PK+Mzrvc9otvlWuOdmeBSw==","shasum":"8f78c9acb6d7e9e61d3c04a488f2c1ce329e6a9f","tarball":"https://registry.npmjs.org/@chatjet-ai/docusaurus-theme-search/-/docusaurus-theme-search-0.2.1.tgz","fileCount":13,"unpackedSize":36869,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHASmyOztMiEVbC+fGnG8v4lTfS83HqcUBU7mAcX5ZvdAiEA/a2S6yjUT7PSNgFznMNHzAhfE2IuqdZ6g7jap0njzo4="}]},"_npmUser":{"name":"chatjet-ai","email":"posture0609@gmail.com"},"directories":{},"maintainers":[{"name":"chatjet-ai","email":"posture0609@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/docusaurus-theme-search_0.2.1_1687027617568_0.1398277150884506"},"_hasShrinkwrap":false},"0.2.3":{"name":"@chatjet-ai/docusaurus-theme-search","private":false,"version":"0.2.3","description":"A Markprompt search theme for Docusaurus","repository":{"type":"git","url":"git+https://github.com/motifland/markprompt-js.git","directory":"packages/react"},"license":"MIT","sideEffects":false,"type":"module","exports":"./dist/index.cjs","main":"dist/index.cjs","scripts":{"prepack":"tsc --build --clean && tsc --build && cpy 'src/**/*.css' dist"},"dependencies":{"@docusaurus/types":"^2.0.0","@markprompt/docusaurus-theme-search":"^0.2.1","@markprompt/react":"0.5.0","@radix-ui/react-visually-hidden":"^1.0.3"},"devDependencies":{"@docusaurus/module-type-aliases":"^2.0.0","cpy-cli":"^4.0.0"},"peerDependencies":{"react":"^17"},"publishConfig":{"access":"public"},"gitHead":"27f3170dce57abcffc767514a3e404d1d663833a","bugs":{"url":"https://github.com/motifland/markprompt-js/issues"},"homepage":"https://github.com/motifland/markprompt-js#readme","_id":"@chatjet-ai/docusaurus-theme-search@0.2.3","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-+o9NK3vAeL0zBdo8U5mymDHfSeYdx6HDwpbDlEZHAEhZf/rk/3gSWb4E79Q/h5I/sM8dFtGp5lDETr1nHrDksw==","shasum":"4a890baed235d39f7bf2d7d93af4a226b5f2ad1b","tarball":"https://registry.npmjs.org/@chatjet-ai/docusaurus-theme-search/-/docusaurus-theme-search-0.2.3.tgz","fileCount":13,"unpackedSize":36861,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH92DPHXX2qJahUEaXrGNuYygUn89115HeVKXe3Q/1K/AiEApGRfBA0AcbiAkxERIgzrQAiDhfDYjOo1m7qfo/hy6fI="}]},"_npmUser":{"name":"chatjet-ai","email":"posture0609@gmail.com"},"directories":{},"maintainers":[{"name":"chatjet-ai","email":"posture0609@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/docusaurus-theme-search_0.2.3_1687217887308_0.30690167311738636"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-17T18:46:57.494Z","0.2.1":"2023-06-17T18:46:57.758Z","modified":"2023-06-19T23:38:07.626Z","0.2.3":"2023-06-19T23:38:07.513Z"},"maintainers":[{"name":"chatjet-ai","email":"posture0609@gmail.com"}],"description":"A Markprompt search theme for Docusaurus","homepage":"https://github.com/motifland/markprompt-js#readme","repository":{"type":"git","url":"git+https://github.com/motifland/markprompt-js.git","directory":"packages/react"},"bugs":{"url":"https://github.com/motifland/markprompt-js/issues"},"license":"MIT","readme":"# Markprompt Docusaurus plugin\r\n\r\nA [Chatjet-ai](https://chatjet.co) plugin for [Docusaurus](https://docusaurus.io).\r\n\r\n<br />\r\n<p align=\"center\">\r\n  <a aria-label=\"NPM version\" href=\"https://www.npmjs.com/package/@chatjet-ai/docusaurus-theme-search\">\r\n    <img alt=\"\" src=\"https://badgen.net/npm/v/@chatjet-ai/docusaurus-theme-search\">\r\n  </a>\r\n  <a aria-label=\"License\" href=\"https://github.com/motifland/markprompt-js/blob/main/packages/docusaurus-theme-search/LICENSE\">\r\n    <img alt=\"\" src=\"https://badgen.net/npm/license/@chatjet-ai/docusaurus-theme-search\">\r\n  </a>\r\n  <a aria-label=\"Coverage\" href=\"https://app.codecov.io/gh/motifland/markprompt-js/tree/main/packages%2Fdocusaurus-theme-search\">\r\n    <img alt=\"\" src=\"https://codecov.io/gh/motifland/markprompt-js/branch/main/graph/badge.svg\" />\r\n  </a>\r\n</p>\r\n\r\n## Table of Contents\r\n\r\n- [Installation](#installation)\r\n- [Usage](#usage)\r\n  - [Basic Usage](#basic-usage)\r\n  - [Swizzling](#swizzling)\r\n- [Example](#example)\r\n- [Community](#community)\r\n- [Authors](#authors)\r\n\r\n## Installation\r\n\r\n```sh\r\nnpm install @chatjet-ai/docusaurus-theme-search\r\n```\r\n\r\n## Usage\r\n\r\n### Basic Usage\r\n\r\nIn your `docusaurus.config.js`, add `@chatjet-ai/docusaurus-theme-search` to `themes`. Configure `markprompt` in the `themeConfig`.\r\n\r\n```js\r\nconst config = {\r\n  // …\r\n\r\n  themes: [\r\n    // …\r\n    '@chatjet-ai/docusaurus-theme-search',\r\n  ],\r\n\r\n  themeConfig:\r\n    /** @type {import('@chatjet-ai/docusaurus-theme-search').ThemeConfig} */ ({\r\n      markprompt: {\r\n        projectKey: 'Your Markprompt key',\r\n      },\r\n    }),\r\n};\r\n```\r\n\r\nNow a search button will appears on your docusaurus page.\r\n\r\n### Swizzling\r\n\r\nThe Markprompt `SearchBar` can be swizzled. This allows you to fully customize the prompt. To swizzle, run:\r\n\r\n```js\r\nnpx docusaurus swizzle '@chatjet-ai/docusaurus-theme-search' SearchBar --typescript\r\n```\r\n\r\nChoose `Wrap`, and confirm.\r\n\r\nThis is useful for example if you want to add another search provider in addition to Markprompt. Typically you will want to wrap `<Markprompt.Root>` in a fragment and add your custom search provider.\r\n\r\n```tsx\r\nexport default function SearchBar() {\r\n  const { siteConfig } = useDocusaurusContext();\r\n  const markpromptConfig = siteConfig.themeConfig.markprompt;\r\n\r\n  return (\r\n    <>\r\n      <YourSearchComponent />\r\n      <Markprompt.Root {...markpromptConfig}>\r\n    </>\r\n  )\r\n}\r\n```\r\n\r\n## Example\r\n\r\nAn example is available on <https://github.com/motifland/markprompt-js/tree/main/examples/with-docusaurus>.\r\n\r\n## Community\r\n\r\n- [Twitter @chatjet-ai](https://twitter.com/markprompt)\r\n- [Discord](https://discord.gg/MBMh4apz6X)\r\n\r\n## Authors\r\n\r\nThis library is created by the team behind [chatjet-ai](https://chatjet.co)\r\n([@chatjet-ai](https://twitter.com/markprompt)).\r\n","readmeFilename":"README.md"}