1
0
Fork 0
Commit graph

167 commits

Author SHA1 Message Date
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
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
Dylan Tientcheu
2ff6353cb2
chore: release v4.1.0 (#2770) 2025-09-22 23:01:57 +02:00
Paul Jankowski
b15f302ee3
feat: Split docsearch-react package exports (#2764)
* feat: Split docsearch-react package exports

* Adds more explicit exports from @docsearch/react package

* fix: docusaurus import

---------

Co-authored-by: Dylan Tientcheu <dylan.tientcheu@algolia.com>
Co-authored-by: Dylan Tientcheu <dylantientcheu@gmail.com>
2025-09-22 13:46:55 -04:00
Dylan Tientcheu
9a908b89b0
fix: add docsearch 4 to website (#2767)
Co-authored-by: Paul Jankowski <8BitTitan@gmail.com>
2025-09-22 10:52:07 +02:00
Dylan Tientcheu
4f895f8839
chore: release v4.0.1 (#2763) 2025-09-16 16:54:49 +02:00
Dylan Tientcheu
e76e07e9f4
chore: release v4.0.1 (#2762) 2025-09-16 16:03:46 +02:00
Paul Jankowski
55934d8f98
fix(modal): Fixes issue with index typings on DocSearchModal (#2760) 2025-09-16 09:48:12 -04:00
Paul Jankowski
40112944e8
fix(deps): Adds zod to dependency list (#2759) 2025-09-16 08:54:50 -04:00
Dylan Tientcheu
7f97f5c6f6
chore: release v4.0.0 (#2757) 2025-09-15 17:44:14 +02:00
Dylan Tientcheu
6921e7225a
chore: Promote DocSearch v4 from Beta to Stable (#2752)
Co-authored-by: Paul Jankowski <8BitTitan@gmail.com>
Co-authored-by: Paul Jankowski <33367713+8bittitan@users.noreply.github.com>
2025-09-15 16:41:59 +02:00
Paul Jankowski
df20e6c791
feat(askai): ai-sdk v5 (#2746)
* feat(askai): Initial ai-sdk v5 work

* Add sdk version header, code cleanup

* feat(askai): Get ai sdk v5 working

* fix: tests bundlesize

* fix: not all streaming states were showing

* fix: Show reasoning state, fix CSS issues, extract link sources for multiple text parts

* Remove important for removing text decoration
2025-09-11 10:53:10 -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
47be73da2c
chore: release v4.0.0-beta.8 (#2739) 2025-08-28 15:52:04 +02:00
Dylan Tientcheu
e8ba175868
fix: ensure content items are saved to recent searches (#2738) 2025-08-28 15:48:51 +02:00
Paul Jankowski
f065790ce6
feat(docs): Add Ask AI error documentation (#2726)
* feat(docs): Add Ask AI error documentation

* feat(askai): Render AI stream error messages as Markdown to allow for links
2025-08-27 17:02:46 -04:00
Dylan Tientcheu
e2fe65e739
fix(docsearch): use correct index name for Ask AI localStorage keys (#2733) 2025-08-26 16:26:30 +02:00
Dylan Tientcheu
bdb5d907e8
chore: release v4.0.0-beta.7 (#2717) 2025-08-14 21:00:32 +02: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
2e4c11459e
feat(askai): Dont display links from code blocks in sources (#2709)
* feat(askai): Dont display links from code blocks in sources

* Remove no-continue comment
2025-08-11 10:28:28 -04:00
Dylan Tientcheu
dfe6cd5ab3
chore: release v4.0.0-beta.6 (#2707) 2025-08-11 09:19:43 +02:00
Dylan Tientcheu
3478262b3e
fix: cater for transformItems to use DS with custom indices (#2705) 2025-08-08 16:24:24 +02:00
Paul Jankowski
95af410f82
feat: Add recent searches limit param (#2704) 2025-08-07 12:39:25 -04:00
Dylan Tientcheu
9b29687456
chore: release v4.0.0-beta.5 (#2685) 2025-07-24 12:31:54 +02:00
Dylan Tientcheu
36021b9051
chore: release v4.0.0-beta.4 (#2679) 2025-07-22 18:52:30 +02:00
Dylan Tientcheu
60d8d5aa30
chore: release v4.0.0-beta.3 (#2677) 2025-07-22 11:30:03 +02: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
Blake V.
b68a79261e
feat(a11y): add aria-keyshortcuts to search button (#2365) 2025-04-18 08:31:24 +02:00
Vasco Bettencourt
b21e3c6c14
chore(deps): replace yarn watch with nodemon (#2565) 2025-04-14 23:58:15 +03:00
mantou
ec351710b1
fix: <input> in ShadowDOM will open docsearch (#2212)
Co-authored-by: Paul Jankowski <33367713+8bittitan@users.noreply.github.com>
2025-03-14 16:53:27 -04:00
Max Schmitt
c591f00442
fix(a11y): have unique ids for favorite/recent lists (#2485) 2025-03-05 18:29:47 -05:00
Dylan Tientcheu
86dad6d870
chore: release v3.9.0 (#2501)
* chore: release v3.9.0

* chore: bump css to 3.9.0

* fix: lock
2025-02-19 09:41:02 +01:00
Dylan Tientcheu
8509002e1e
chore: release v3.9.0 (#2500) 2025-02-17 11:52:21 +01: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
Algolia Bot
7857cf80b5
chore: release v3.8.3 (#2463)
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
2025-01-21 15:23:25 +01:00
Pierre Millot
db8edeb818
fix(ui): compensate for scrollbar (#2413)
fixes #2378
2025-01-21 09:41:27 +01:00
Algolia Bot
7813494a39
chore(deps): dependencies 2024-11-25 (#2366) 2025-01-20 18:01:57 +01:00
Clément Vannicatte
a425f6f4e5
chore: release v3.8.2 (#2416) 2024-12-17 16:31:08 +01:00
Algolia Bot
a159f76856
chore: release v3.8.1 (#2412)
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
2024-12-16 16:36:41 +01:00
루밀LuMir
b6fd7b6789
chore: add repository.directory property to package.json (#2372) 2024-11-23 10:01:26 +01:00