1
0
Fork 0
Commit graph

39 commits

Author SHA1 Message Date
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
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
Dylan Tientcheu
283ff35e6c
feat(js)!: expose instance API + lifecycle callbacks (#2826) 2026-01-08 18:17:45 +01:00
Paul Jankowski
3ffd9f6f29
chore: Allow using staging env on DocSearch website (#2829) 2026-01-08 11:27:42 -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
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
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
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
Paul Jankowski
0267f55453
feat: Modal and AskAI UX tweaks (#2765)
* feat: UX tweaks for Modal

* Prepare new conversation screen to accept suggested questions

* Add conversation history screen

* Reset basic askai config

* Reset askai api url

* Document new translations

* Remove unused CSS

* Add translation for stopped streaming text

* Add rest of translations

* Bump allowed bundle size

* Bump allowed bundle size
2025-09-23 11:44:23 -04:00
Paul Jankowski
55934d8f98
fix(modal): Fixes issue with index typings on DocSearchModal (#2760) 2025-09-16 09:48:12 -04:00
Greg Brimble
5be3e846a9
Add keyboardShortcuts property to allow users to customize shortcuts (#2740)
Co-authored-by: Paul Jankowski <33367713+8bittitan@users.noreply.github.com>
2025-09-04 09:05:08 -04:00
Paul Jankowski
905e26d693
feat(v4): Add support for multi-index search (#2736)
* feat(v4): Add support for multi-index search

* feat(docs): Document new indices property and mark indeName and searchParameters as deprecated

---------

Co-authored-by: Dylan Tientcheu <dylan.tientcheu@algolia.com>
2025-09-02 11:18:38 -04:00
Dylan Tientcheu
d5c9c527d7
feat: a11y and ux tweaks (#2712)
Co-authored-by: Natan Yagudayev <natanyagudayev@gmail.com>
2025-08-14 20:04:30 +02:00
Paul Jankowski
95af410f82
feat: Add recent searches limit param (#2704) 2025-08-07 12:39:25 -04:00
Dylan Tientcheu
55e3eb301c
feat(askai): add facet filtering (#2676) 2025-07-22 11:28:18 +02:00
Dylan Tientcheu
19c1ef9192
feat(v4): release v4 (#2555) (#2666)
* feat(v4): add new UI (#2555)

* feat: add new footer ui

* feat: add new search box ui

* feat: add searchbox actions

* feat: add start screen

* feat: add no results screen

* feat: add new card ui

* feat: add new icons

* feat: add new key press class

* fix: cypress tests

* fix: circleci

* fix: circleci

* fix: close aria label

* fix: circleci

* fix: remove unused classes

* fix: circleci

* feat: update version

* feat: add new dark mode ui

* fix: colors

* fix: design review

* fix: hit title length

* fix: improve accessibility

* fix: ci

* chore: increase bundle size threshold

* fix: css

* feat(v4): ask-ai foundations  (#2574)

* feat(v4): docsearch askAI context (#2587)

* fix(v4): ask ai updates (#2654)

* feat(v4): update beta documentation (#2659)

* chore: release v4.0.0-beta.0 (#2660)

* fix: make release run on branches like v4

* chore: release v4.0.0-beta.0

* hotfix: closing on askai error

* chore: release v4.0.0-beta.1 (#2661)

* fix: add a section on models

* fix: update to `<package>@beta`

* feat(docsearch-website): Updated docs (#2662)

* feat(v4): update the landing page (#2665)

* fix: beta in readme

* feat: added glow around the search bar and a little copy above the keyboard

* feat: add glow around the search bar and copy above the keyboard

* fix: Add more styling

* fix: polishing v4 (#2667)

* chore: release v4.0.0-beta.2 (#2668)

* fix: update docusaurus tarballs

* fix(website): update docusaurus tarballs

* fix: mobile search bar

---------

Co-authored-by: Vasco Bettencourt <32492444+vascobettencourt@users.noreply.github.com>
Co-authored-by: Natan Yagudayev <natanyagudayev@gmail.com>
2025-07-17 15:53:46 +02:00
NiteshSingh17
85568ce095
feat: add theme prop (#2651)
Co-authored-by: Dylan Tientcheu <dylantientcheu@gmail.com>
2025-07-08 20:05:25 +02:00
reece-white
698c00c955
feat(deps): update react to 19 (#2487)
* chore(deps): update react to 19

* fix: examples to show backwards compatibility with react 18

* fix: types

* fix: eslint

---------

Co-authored-by: Dylan Tientcheu <dylantientcheu@gmail.com>
2025-02-06 17:24:14 +01:00
Pierre Millot
24c6b4dbf7
fix: use SearchParamsObject for searchParameters (#2362) 2024-11-16 22:54:18 +01:00
Pierre Millot
08d9a37807
fix(types): use a minimal type for transformSearchClient (#2348) 2024-11-12 16:15:02 +01:00
Pierre Millot
aa666deccc
chore(deps): dependencies 2024-11-04 (#2335)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-04 18:15:51 +01:00
Pierre Millot
d360855f16
fix: use vite instead of parcel in the examples (#2329)
Parcel would delete some random file like identity because it though it was not used, vite is smarter.
Also remove unused imports
2024-10-31 16:44:34 +01:00
Pierre Millot
93578a4de0
fix: upgrade algoliasearch to v5 (#2326)
We can use the new generated client to stay up to date and upgrade packages that depends on docsearch.

---------

Co-authored-by: shortcuts <vannicattec@gmail.com>
2024-10-30 15:46:38 +01:00
Paul Jankowski
26691a5c8a
feat(api): allow insights options to be forwarded to Autocomplete (#1904)
* Allow insights options to be forwarded to Autocomplete

* Add autocomplete params to hits for insights

* Fixes TS errors after Autocomplete update

* Bump bundlesize after Autocomplete update

* Cleanup checking if insights is active

* Add documentation for sending events with DocSearch

* Move insights boolean casting to inside of getSources

* Update packages/docsearch-react/src/DocSearchModal.tsx

Co-authored-by: François Chalifour <francoischalifour@users.noreply.github.com>

---------

Co-authored-by: François Chalifour <francoischalifour@users.noreply.github.com>
2023-06-08 10:47:42 -04:00
Bojan Rajh
f82a73367a
feat: implement maxResultsPerGroup prop (#1891) 2023-05-17 16:18:50 -04:00
Adam Skoufis
379f163a72
fix: Correctly type getMissingResultsUrl query as string (#1781) 2023-02-06 11:50:49 +01:00
Clément Vannicatte
80630cb36d
feat(v3): require appId (#1299)
BREAKING CHANGE
2022-02-21 13:59:53 +01:00
Clément Vannicatte
2c1fe7c77c
feat(noResults): allow providing URL to report missing results (#1289) 2022-02-02 10:39:44 +01:00
Clément Vannicatte
80677fd7d3
fix(DocSearchProps): type searchParameters (#1200) 2021-12-03 13:25:45 +01:00
Clément Vannicatte
ef13dea393
feat(translations): expose Button and Modal translations (#1183) 2021-11-22 14:24:07 +01:00
renovate[bot]
10c5b2ea14
chore(deps): update lint dependency (#1120)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Samuel Bodin <1637651+bodinsamuel@users.noreply.github.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
2021-11-02 12:06:22 +01:00
Clément Vannicatte
6e194c73bf
fix(v3): pass initialQuery (#1051) 2021-09-30 11:54:11 +02:00
Clément Vannicatte
9300cb4bd6
fix(dependencies): upgrade dependencies (#1015) 2021-07-09 10:48:33 +02:00
François Chalifour
f228c1178f fix(react): make navigator optional 2020-11-24 12:35:08 +01:00
François Chalifour
9a388427ca feat: update Autocomplete version 2020-11-24 12:08:46 +01:00
François Chalifour
038d448b65 chore: move docsearch-react to packages 2020-09-01 11:36:46 +02:00
Renamed from src/DocSearch.tsx (Browse further)