1
0
Fork 0
Commit graph

209 commits

Author SHA1 Message Date
Paul Jankowski
c94eafbbee
chore: Update to use tsdown for build system (#2824)
* chore: Update to use tsdown for build system

* fix: docsearch-react build

* fix: lint

* fix: glob resolved to incorrect version
2026-02-20 13:24:32 -05:00
Vincent Lemeunier
ad7e8a7f93
feat(askai): add compatibility with algolia mcp search tool [DASH-2294] (#2862)
## Summary
Fixes DASH-2294
Add compatibility with the Algolia MCP search tool (`algolia_search_index_${string}`) in AskAI.

## Changes
- Add `AlgoliaMCPSearchTool` type to handle the Algolia MCP server search tool
- Refactor how number of hits are retrieved in `ToolCall` into a `getNumberOfHits` helper

## Test plan
- Added unit tests for modified code 
2026-02-19 09:42:56 +01:00
Dylan Tientcheu
f86785218c
chore: release v4.6.0 (#2861) 2026-02-17 22:39:09 +01:00
Paul Jankowski
b3fb7f50f8
fix(sidepanel): autofocus prompt input on open for desktop only (#2857)
Focus the prompt textarea when the sidepanel opens, skipping mobile
to avoid triggering the virtual keyboard which disrupts the layout.
Blur the input when the sidepanel closes to remove lingering focus.
2026-02-10 11:28:20 -05:00
Dylan Tientcheu
7c36039b10
chore: release v4.5.4 (#2854)
* chore: release v4.5.4

* upgrade

* fix: lock
2026-02-05 14:28:54 +01:00
Dylan Tientcheu
343115dc7c
fix: include ac in package (#2853) 2026-02-05 14:19:46 +01:00
Paul Jankowski
6ef6505e87
fix: Missing result title would trigger an error (#2852) 2026-01-28 17:39:59 -05:00
Dylan Tientcheu
104f7d1a98
chore: release v4.5.3 (#2849) 2026-01-21 20:23:06 +01:00
Dylan Tientcheu
73eddb76fc
fix: make @docsearch/core a real dependency. (#2848) 2026-01-21 14:12:40 -05:00
Dylan Tientcheu
e50a55da86
chore: release v4.5.2 (#2846) 2026-01-21 14:45:22 +01:00
Dylan Tientcheu
0488acb078 Merge branch 'main' of https://github.com/algolia/docsearch 2026-01-20 17:22:00 +01:00
Dylan Tientcheu
5661250e51 fix: upgrade the css packages 2026-01-20 17:21:05 +01:00
Dylan Tientcheu
7bf4521339
chore: release v4.5.1 (#2845) 2026-01-20 17:16:59 +01:00
Dylan Tientcheu
23f640bac7 fix: export sidepanel styles 2026-01-20 17:13:11 +01:00
Dylan Tientcheu
65d5b79dae
chore: release v4.5.0 (#2844) 2026-01-20 12:29:56 +01:00
Dylan Tientcheu
1674dbd55b
chore: release v4.5.0-beta.3 (#2843) 2026-01-16 17:31:56 +01:00
Paul Jankowski
f1aaf911d7
feat(askai): Allow Agent Studio specific search params (#2842)
* feat(askai): Allow Agent Studio specific search params

* Simplify DocSearchProps types definitions

* Revert "Simplify DocSearchProps types definitions"

This reverts commit b53bc97688.

* fix: types
2026-01-16 10:06:04 -05:00
Dylan Tientcheu
55db6e9053
chore: release v4.5.0-beta.2 (#2841) 2026-01-13 19:52:12 +01:00
Dylan Tientcheu
021613587f
chore: release v4.5.0-beta.1 (#2840) 2026-01-13 18:48:33 +01:00
Paul Jankowski
ffa2835194
feat(askai): Allow use of Agent Studio for chat backend (#2832)
* feat(askai): Allow use of Agent Studio for chat backend

* feat(askai): Remove feedback actions if using Agent Studio

* feat(askai): Document agentStudio param

* Remove module resolution

* Update packages/website/docs/api.mdx

Co-authored-by: Dylan Tientcheu <dylan.tientcheu@algolia.com>

* Use css var for sidepanel button background

---------

Co-authored-by: Natan Yagudayev <natanyagudayev@gmail.com>
Co-authored-by: Dylan Tientcheu <dylan.tientcheu@algolia.com>
2026-01-13 10:58:11 -05:00
Paul Jankowski
7319f54898
fix(modal): Fixes modal opening on every key press (#2837) 2026-01-12 12:38:21 -05:00
Paul Jankowski
8ad60d9bab
fix(sidepanel): Fixes some issues while conversation is streaming (#2828)
* fix(sidepanel): Stop navigation during streaming

* fix(sidepanel): Fix scroll jumping while conversation is streaming

* fix(sidepanel): Keep input enabled but disable sending while streaming

---------

Co-authored-by: Dylan Tientcheu <dylan.tientcheu@algolia.com>
2026-01-08 17:36:16 -05:00
Dylan Tientcheu
13db25fe58
chore: release v4.5.0-beta.0 (#2834) 2026-01-08 20:32:06 +01:00
Dylan Tientcheu
283ff35e6c
feat(js)!: expose instance API + lifecycle callbacks (#2826) 2026-01-08 18:17:45 +01:00
Paul Jankowski
ed59c7baa6
fix(deps): Move dependencies to devDependencies to fix peer dependency issues (#2831) 2026-01-08 17:40:37 +01:00
Paul Jankowski
3ffd9f6f29
chore: Allow using staging env on DocSearch website (#2829) 2026-01-08 11:27:42 -05:00
Dylan Tientcheu
2800eaf46f hotfix: empty sidepanel header menu 2025-12-23 15:50:37 +01:00
Dylan Tientcheu
33c02df711
refactor(button): replace SVG icons with text characters for keyboard shortcuts (#2823) 2025-12-23 15:19:56 +01:00
Vasco Bettencourt
f9ba0a01a4
fix: prevent XSS vulnerability in AskAI conversation history (#2822)
* fix: prevent XSS vulnerability in AskAI conversation history

* fix
2025-12-23 11:49:00 +00:00
Paul Jankowski
ded5d44f5b
chore: release v4.4.0 (#2820)
* chore: release v4.4.0

* fix: changelog

* fix(ci): Split dts building to own process for all packages

* fix: remove unused import

* fix: remove unused import

* update yarn cache key

* fix: better dependency management
2025-12-19 12:56:58 -05:00
Paul Jankowski
a98294a4fc
Revert "chore: release v4.4.0 (#2818)" (#2819)
This reverts commit 79c17f5fc2.
2025-12-19 11:37:09 -05:00
Paul Jankowski
79c17f5fc2
chore: release v4.4.0 (#2818)
* chore: release v4.4.0

* fix: changelog
2025-12-19 10:16:11 -05:00
Paul Jankowski
171c504f11
feat(sidepanel): Introduce Ask AI Sidepanel (#2816)
* feat(sidepanel): Add sidepanel component for Ask AI (#2792)

* feat(sidepanel): Initial working Sidepanel implementation

* fix: circleci config

* fix: set proper sidepanel export

* Sidepanel props updates, conversation screen updates

* Started mobile work

* Style prompt input and header for mobile

* fixes prompt input height, adds more translations, mobile updates, fixes panel height calculations

* finish mobile, adds dark theme, minor fixes

* fix: lock

* Add missing titles to buttons

* Have most recent conversation be at the bottom of the exchange list, scroll to newest conversation

* fix: versions

* move to floating variant being default for Sidepanel

---------

Co-authored-by: Dylan Tientcheu <dylantientcheu@gmail.com>

* feat(sidepanel): Sidepanel/Modal hybrid mode (#2799)

* feat(sidepanel): Initial working Sidepanel implementation

* fix: circleci config

* fix: set proper sidepanel export

* Sidepanel props updates, conversation screen updates

* Started mobile work

* Style prompt input and header for mobile

* fixes prompt input height, adds more translations, mobile updates, fixes panel height calculations

* finish mobile, adds dark theme, minor fixes

* fix: lock

* Add missing titles to buttons

* Have most recent conversation be at the bottom of the exchange list, scroll to newest conversation

* feat(sidepanel): Allow hybrid mode for Sidepanel and Modal

* fix: yarn.lock

* fix: tests - dont send new chat message from modal while in hybrid mode

* Make docsearch core a true dependency

* Cleanup handling the registered views Set

---------

Co-authored-by: Dylan Tientcheu <dylantientcheu@gmail.com>

* feat(sidepanel): Add sidepanel-js package for CDN (#2800)

* feat(sidepanel): Initial working Sidepanel implementation

* fix: circleci config

* fix: set proper sidepanel export

* Sidepanel props updates, conversation screen updates

* Started mobile work

* Style prompt input and header for mobile

* fixes prompt input height, adds more translations, mobile updates, fixes panel height calculations

* finish mobile, adds dark theme, minor fixes

* fix: lock

* Add missing titles to buttons

* Have most recent conversation be at the bottom of the exchange list, scroll to newest conversation

* feat(sidepanel): Add sidepanel-js package for CDN

* fix: ci

* fix: yarn.lock

---------

Co-authored-by: Dylan Tientcheu <dylantientcheu@gmail.com>

* feat(sidepanel): Sidepanel UI/UX tweaks (#2808)

* fix(umd): Fixes global names for packages in UMD builds

* chore: Update tsdeclaration files, update directory field in package json files

* feat(sidepanel): Add Sidepanel documentation (#2811)

* feat(sidepanel): Add Sidepanel documentation

* Minor fixes and updates

* Hybrid mode update

* fix: hardcode yarn cache key for now

---------

Co-authored-by: Dylan Tientcheu <dylantientcheu@gmail.com>
2025-12-17 13:25:50 -05:00
Vasco Bettencourt
fd0de3d16f
feat(askai): add thread depth limit logic (#2812) 2025-12-16 08:59:28 +00:00
Paul Jankowski
d531137f14
feat(askai): Handle errors better for Ask AI (#2803) 2025-11-26 10:35:36 -05:00
Rami Yushuvaev
9ed6c5a9ba
feat: Native RTL support (#2802) 2025-11-20 11:09:21 +01:00
Paul Jankowski
98067b58a2
chore: release v4.3.2 (#2798) 2025-11-10 16:24:42 -05:00
Paul Jankowski
82a0083c75
chore: release v4.3.1 (#2796)
* chore: release v4.3.1

* Manually bump version numbers
2025-11-04 14:42:36 -05:00
Dylan Tientcheu
4d951ccc93
chore: release v4.3.0 (#2794) 2025-11-04 12:42:21 -05:00
Paul Jankowski
e5ae33fe90
feat(composable-api): Document Composable API (#2793) 2025-11-04 09:40:05 -05:00
Paul Jankowski
b91e3099c6
feat: Composable API packages versions (#2789) 2025-10-29 11:25:38 -04:00
Paul Jankowski
2b4779ad06
feat(suggested-questions): Add suggested questions (#2787)
* feat(suggested-questions): Add suggested questions

* fix: build

* add docs, fix react-example

* add some more documentation
2025-10-28 14:31:44 -04:00
Paul Jankowski
5e9bdfed70
feat(composable-api): Introduce new Composable API (#2779)
* feat(composable-api): Step 1, new core package, pull basic state up higer (#2771)

* feat(composable-api): Step 1, new core package, pull basic state up higher

* Package cleanup, update core Readme

* Cleanup to fix weird import behavior

* Fix dependencies

* Try fixing deps again

* Track new package dist in CI

* Make sure to restore core package

* feat(composable-api): Step 2, composable DocSearchButton (#2772)

* feat(composable-api): Step 1, new core package, pull basic state up higher

* Package cleanup, update core Readme

* Cleanup to fix weird import behavior

* Fix dependencies

* Try fixing deps again

* Track new package dist in CI

* Make sure to restore core package

* feat(composable-api): Step 2, move DocSearchButton to be composable

* Implement keyboard shortcuts props

* Set modal package version

* Render new DocSearchButton in react package

* Bump allowed bundle size for now

* feat(composable-api): Step 3, composable DocSearchModal (#2774)

* feat(composable-api): Step 1, new core package, pull basic state up higher

* Package cleanup, update core Readme

* Cleanup to fix weird import behavior

* Fix dependencies

* Try fixing deps again

* Track new package dist in CI

* Make sure to restore core package

* feat(composable-api): Step 2, move DocSearchButton to be composable

* Implement keyboard shortcuts props

* Set modal package version

* Render new DocSearchButton in react package

* Bump allowed bundle size for now

* feat(composable-api): Step 3, make DocSearchModal composable

* Clean up needed dependencies, add more bundle checks

* fix: CI

* add test cases to core package

* add test cases to modal package

* fixes after rebase

* fix: lint

* Memoize modal props to stabalize rendering

* Dont track isModalActive in props

* bump @docsearch/modal bundlesize

* remove icons dir from @docsearch-modal

* update version definition for @docsearch-react and @docsearch-modal

* fix: lint
2025-10-20 16:22:53 -04:00
Vasco Bettencourt
5381e76126
fix(docsearch-js): resultsFooterComponent not working in JS CDN version (#2786)
* fix: resultsFooterComponent not working in JS CDN version

* fix: ci

* feat: implement htm templates

* fix: ci

* fix

* fix

* fix: ci

* fix: types

* fix: rollup

* fix: ci

* fix

* feat: add hitComponent updated docs

* fix: formatting
2025-10-15 09:57:00 +01:00
Dylan Tientcheu
4e0fc72f4d
chore: release v4.2.0 (#2781) 2025-10-08 17:51:15 +02:00
Paul Jankowski
a3ab7a8176
feat: Modal UI/UX fixes and updates (#2780)
* feat: Modal UI/UX fixes and updates

* fix: manually handle common HTML entities to prevent XSS
2025-10-06 10:08:27 -04:00
Vasco Bettencourt
9986cbf426
feat: update Ask AI docs (#2775)
* feat: add link to Ask AI Algolia docs

* docs: add dual SDK support to Ask AI API docs

* fix: ci

* docs: uniformize Ask AI copy

* fix
2025-10-05 23:43:03 +01:00
Dylan Tientcheu
cd9e6fb3fb
fix: remove hit favorite and hit deletion animations (#2777) 2025-10-03 16:37:25 +02:00
Paul Jankowski
5d8943b5c6
fix(askai): Fixes issue with askai state being outside DocSearchModal (#2778)
Fixes an issue with Docusaurus after the new Ask AI screens were added.
This was caused from the state and callbacks being set outside of
DocSearchModal.

- Move askAiState inside of DocSearchModal
- Handle changing the state when needed
- Updates color styling of dropdown menu
2025-10-02 16:00:09 -04:00
Vasco Bettencourt
d8ad7f6d5f
feat: curate AskAI search parameters (#2768)
* feat: curate AskAI search parameters

* fix

* fix docs

* fix

* fix: remove attributesToSnippet

* fix

---------

Co-authored-by: Dylan Tientcheu <dylan.tientcheu@algolia.com>
2025-09-24 19:40:08 +01:00