diff --git a/.changeset/pre.json b/.changeset/pre.json index f9f52ce5..fa1ddf1f 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -16,6 +16,9 @@ "@docsearch/website": "4.6.0" }, "changesets": [ + "better-cars-smell", + "brave-things-join", + "ready-clubs-serve", "sharp-donkeys-search", "tidy-moons-argue", "vast-numbers-read" diff --git a/adapters/docusaurus-theme-search-algolia/CHANGELOG.md b/adapters/docusaurus-theme-search-algolia/CHANGELOG.md index 43684852..6905ef09 100644 --- a/adapters/docusaurus-theme-search-algolia/CHANGELOG.md +++ b/adapters/docusaurus-theme-search-algolia/CHANGELOG.md @@ -1,5 +1,50 @@ # @docsearch/docusaurus-adapter +## 5.0.0-beta.2 + +### Patch Changes + +- 5eac1fd: feat(v5): General UI styling updates and fixes + + - New `--docsearch-font-family` variable, used by the search button, keyboard + keys, modal, and sidepanel. It replaces the system font stacks that were + duplicated across `sidepanel.css` and `button.css`, so overriding one + variable now themes every DocSearch surface + - The search input and modal heading are `1rem` at every breakpoint + (previously `0.875rem` with a mobile-only override) + - `.DocSearch-Title` uses `line-height: 1.5em` instead of `0.5em` and adds + `overflow-wrap: anywhere`, so long titles wrap instead of overlapping (#2908) + - Hit icon `svg` sizing moved into `.DocSearch-Hit-icon`. The + `.DocSearch-Hit-icon--small` modifier is replaced by + `.DocSearch-Hit-icon--start`, which top-aligns the icon; recent + conversations use it + - The Ask AI button icon centers with `display: inline-flex` instead of + `margin-block-start`/`align-self` overrides + - Removed the 2px offset on the Ask AI sources action text + - `SourcesPanel` accepts `pluralTitleText`. `titleText` is now the singular + label, and the trigger renders `{count} {label}` + - `AskAiScreenTranslations` and `ConversationScreenTranslations` expose + `relatedSourcesTextPlural` + - Docusaurus adapter: `theme.SearchModal.askAiScreen.relatedSourcesText` is + now the singular "Source", and the new + `theme.SearchModal.askAiScreen.relatedSourcesTextPlural` provides "Sources" + +- 4f6b5b1: feat(v5): UI and DX updates + + - Rename the Ask AI assistantId option to agentId (adapter theme.SearchModal.askAi.assistantId → agentId) + - appId and apiKey moved up into @docsearch/core, so they're configured once and shared + - Removed the indexName prop from the Sidepanel + - Facet defaults can now be read from the index searchParameters + - Restored nested grouping of search results + +- Updated dependencies [5eac1fd] +- Updated dependencies [4f6b5b1] +- Updated dependencies [9fe6738] + - @docsearch/react@5.0.0-beta.2 + - @docsearch/sidepanel@5.0.0-beta.2 + - @docsearch/modal@5.0.0-beta.2 + - @docsearch/core@5.0.0-beta.2 + ## 5.0.0-beta.1 ### Patch Changes diff --git a/adapters/docusaurus-theme-search-algolia/package.json b/adapters/docusaurus-theme-search-algolia/package.json index 65238c50..08acb365 100644 --- a/adapters/docusaurus-theme-search-algolia/package.json +++ b/adapters/docusaurus-theme-search-algolia/package.json @@ -1,6 +1,6 @@ { "name": "@docsearch/docusaurus-adapter", - "version": "5.0.0-beta.1", + "version": "5.0.0-beta.2", "description": "Algolia search component for Docusaurus.", "main": "lib/index.js", "sideEffects": [ diff --git a/examples/demo-js/package.json b/examples/demo-js/package.json index 68ef38b6..0b622f14 100644 --- a/examples/demo-js/package.json +++ b/examples/demo-js/package.json @@ -10,9 +10,9 @@ "preview": "vite preview" }, "dependencies": { - "@docsearch/css": "5.0.0-beta.1", - "@docsearch/js": "5.0.0-beta.1", - "@docsearch/sidepanel-js": "5.0.0-beta.1" + "@docsearch/css": "5.0.0-beta.2", + "@docsearch/js": "5.0.0-beta.2", + "@docsearch/sidepanel-js": "5.0.0-beta.2" }, "devDependencies": { "vite": "^6.0.7" diff --git a/packages/docsearch-core/CHANGELOG.md b/packages/docsearch-core/CHANGELOG.md index 5979bdd7..c566f14f 100644 --- a/packages/docsearch-core/CHANGELOG.md +++ b/packages/docsearch-core/CHANGELOG.md @@ -1,5 +1,17 @@ # @docsearch/core +## 5.0.0-beta.2 + +### Patch Changes + +- 4f6b5b1: feat(v5): UI and DX updates + + - Rename the Ask AI assistantId option to agentId (adapter theme.SearchModal.askAi.assistantId → agentId) + - appId and apiKey moved up into @docsearch/core, so they're configured once and shared + - Removed the indexName prop from the Sidepanel + - Facet defaults can now be read from the index searchParameters + - Restored nested grouping of search results + ## 5.0.0-beta.1 ## 5.0.0-beta.0 diff --git a/packages/docsearch-core/package.json b/packages/docsearch-core/package.json index 5e6a74fe..1e7c1af6 100644 --- a/packages/docsearch-core/package.json +++ b/packages/docsearch-core/package.json @@ -1,7 +1,7 @@ { "name": "@docsearch/core", "description": "Core package logic for DocSearch", - "version": "5.0.0-beta.1", + "version": "5.0.0-beta.2", "license": "MIT", "type": "module", "homepage": "https://docsearch.algolia.com", diff --git a/packages/docsearch-css/CHANGELOG.md b/packages/docsearch-css/CHANGELOG.md index 4bc9fdc1..13f36191 100644 --- a/packages/docsearch-css/CHANGELOG.md +++ b/packages/docsearch-css/CHANGELOG.md @@ -1,5 +1,53 @@ # @docsearch/css +## 5.0.0-beta.2 + +### Patch Changes + +- 5eac1fd: feat(v5): General UI styling updates and fixes + + - New `--docsearch-font-family` variable, used by the search button, keyboard + keys, modal, and sidepanel. It replaces the system font stacks that were + duplicated across `sidepanel.css` and `button.css`, so overriding one + variable now themes every DocSearch surface + - The search input and modal heading are `1rem` at every breakpoint + (previously `0.875rem` with a mobile-only override) + - `.DocSearch-Title` uses `line-height: 1.5em` instead of `0.5em` and adds + `overflow-wrap: anywhere`, so long titles wrap instead of overlapping (#2908) + - Hit icon `svg` sizing moved into `.DocSearch-Hit-icon`. The + `.DocSearch-Hit-icon--small` modifier is replaced by + `.DocSearch-Hit-icon--start`, which top-aligns the icon; recent + conversations use it + - The Ask AI button icon centers with `display: inline-flex` instead of + `margin-block-start`/`align-self` overrides + - Removed the 2px offset on the Ask AI sources action text + - `SourcesPanel` accepts `pluralTitleText`. `titleText` is now the singular + label, and the trigger renders `{count} {label}` + - `AskAiScreenTranslations` and `ConversationScreenTranslations` expose + `relatedSourcesTextPlural` + - Docusaurus adapter: `theme.SearchModal.askAiScreen.relatedSourcesText` is + now the singular "Source", and the new + `theme.SearchModal.askAiScreen.relatedSourcesTextPlural` provides "Sources" + +- 9fe6738: fix(askai): Ask AI fixes for v5 + + - `getMessageContent` now joins every assistant text part instead of stopping + at the first one, so copying an answer that interleaves text with tool calls + returns the complete response (#2782) + - Key Ask AI conversation storage by `appId` instead of `indexName`, fixes + triggering a new conversation in hybrid mode + - Negative feedback panel is labelled with `aria-labelledby` and reason chips + expose selection via `aria-pressed` (styling moved off the + `--selected` modifier) + - `Popover.Trigger` forwards refs, fixes sources panel not showing in some cases + - Add `--docsearch-error-soft-color`, `--docsearch-error-text-color`, and + `--docsearch-code-block-background` variables; restyle the Ask AI error panel + and markdown code blocks to use them + + ``` + + ``` + ## 5.0.0-beta.1 ### Patch Changes diff --git a/packages/docsearch-css/package.json b/packages/docsearch-css/package.json index 79e358b4..bf5b2d89 100644 --- a/packages/docsearch-css/package.json +++ b/packages/docsearch-css/package.json @@ -1,7 +1,7 @@ { "name": "@docsearch/css", "description": "Styles for DocSearch.", - "version": "5.0.0-beta.1", + "version": "5.0.0-beta.2", "license": "MIT", "homepage": "https://docsearch.algolia.com", "repository": { diff --git a/packages/docsearch-js/CHANGELOG.md b/packages/docsearch-js/CHANGELOG.md index 5d482315..927e66dc 100644 --- a/packages/docsearch-js/CHANGELOG.md +++ b/packages/docsearch-js/CHANGELOG.md @@ -1,5 +1,15 @@ # @docsearch/js +## 5.0.0-beta.2 + +### Patch Changes + +- Updated dependencies [5eac1fd] +- Updated dependencies [4f6b5b1] +- Updated dependencies [9fe6738] + - @docsearch/react@5.0.0-beta.2 + - @docsearch/core@5.0.0-beta.2 + ## 5.0.0-beta.1 ### Patch Changes diff --git a/packages/docsearch-js/package.json b/packages/docsearch-js/package.json index b395fad0..6c70637f 100644 --- a/packages/docsearch-js/package.json +++ b/packages/docsearch-js/package.json @@ -1,7 +1,7 @@ { "name": "@docsearch/js", "description": "JavaScript package for DocSearch, the best search experience for docs.", - "version": "5.0.0-beta.1", + "version": "5.0.0-beta.2", "license": "MIT", "homepage": "https://docsearch.algolia.com", "repository": { @@ -33,8 +33,8 @@ "watch": "tsdown --watch" }, "dependencies": { - "@docsearch/core": "5.0.0-beta.1", - "@docsearch/react": "5.0.0-beta.1" + "@docsearch/core": "5.0.0-beta.2", + "@docsearch/react": "5.0.0-beta.2" }, "devDependencies": { "htm": "3.1.1", diff --git a/packages/docsearch-modal/CHANGELOG.md b/packages/docsearch-modal/CHANGELOG.md index a9b3f0ae..2312747c 100644 --- a/packages/docsearch-modal/CHANGELOG.md +++ b/packages/docsearch-modal/CHANGELOG.md @@ -1,5 +1,23 @@ # @docsearch/modal +## 5.0.0-beta.2 + +### Patch Changes + +- 4f6b5b1: feat(v5): UI and DX updates + + - Rename the Ask AI assistantId option to agentId (adapter theme.SearchModal.askAi.assistantId → agentId) + - appId and apiKey moved up into @docsearch/core, so they're configured once and shared + - Removed the indexName prop from the Sidepanel + - Facet defaults can now be read from the index searchParameters + - Restored nested grouping of search results + +- Updated dependencies [5eac1fd] +- Updated dependencies [4f6b5b1] +- Updated dependencies [9fe6738] + - @docsearch/react@5.0.0-beta.2 + - @docsearch/core@5.0.0-beta.2 + ## 5.0.0-beta.1 ### Patch Changes diff --git a/packages/docsearch-modal/package.json b/packages/docsearch-modal/package.json index 7d6d2091..edf69b71 100644 --- a/packages/docsearch-modal/package.json +++ b/packages/docsearch-modal/package.json @@ -1,7 +1,7 @@ { "name": "@docsearch/modal", "description": "DocSearch modal package for keyword search and Ask AI.", - "version": "5.0.0-beta.1", + "version": "5.0.0-beta.2", "license": "MIT", "homepage": "https://docsearch.algolia.com", "repository": { @@ -35,8 +35,8 @@ "watch": "tsdown --watch" }, "dependencies": { - "@docsearch/core": "5.0.0-beta.1", - "@docsearch/react": "5.0.0-beta.1" + "@docsearch/core": "5.0.0-beta.2", + "@docsearch/react": "5.0.0-beta.2" }, "devDependencies": { "@testing-library/jest-dom": "6.6.3", diff --git a/packages/docsearch-react/CHANGELOG.md b/packages/docsearch-react/CHANGELOG.md index edea797c..84e5930c 100644 --- a/packages/docsearch-react/CHANGELOG.md +++ b/packages/docsearch-react/CHANGELOG.md @@ -1,5 +1,67 @@ # @docsearch/react +## 5.0.0-beta.2 + +### Patch Changes + +- 5eac1fd: feat(v5): General UI styling updates and fixes + + - New `--docsearch-font-family` variable, used by the search button, keyboard + keys, modal, and sidepanel. It replaces the system font stacks that were + duplicated across `sidepanel.css` and `button.css`, so overriding one + variable now themes every DocSearch surface + - The search input and modal heading are `1rem` at every breakpoint + (previously `0.875rem` with a mobile-only override) + - `.DocSearch-Title` uses `line-height: 1.5em` instead of `0.5em` and adds + `overflow-wrap: anywhere`, so long titles wrap instead of overlapping (#2908) + - Hit icon `svg` sizing moved into `.DocSearch-Hit-icon`. The + `.DocSearch-Hit-icon--small` modifier is replaced by + `.DocSearch-Hit-icon--start`, which top-aligns the icon; recent + conversations use it + - The Ask AI button icon centers with `display: inline-flex` instead of + `margin-block-start`/`align-self` overrides + - Removed the 2px offset on the Ask AI sources action text + - `SourcesPanel` accepts `pluralTitleText`. `titleText` is now the singular + label, and the trigger renders `{count} {label}` + - `AskAiScreenTranslations` and `ConversationScreenTranslations` expose + `relatedSourcesTextPlural` + - Docusaurus adapter: `theme.SearchModal.askAiScreen.relatedSourcesText` is + now the singular "Source", and the new + `theme.SearchModal.askAiScreen.relatedSourcesTextPlural` provides "Sources" + +- 4f6b5b1: feat(v5): UI and DX updates + + - Rename the Ask AI assistantId option to agentId (adapter theme.SearchModal.askAi.assistantId → agentId) + - appId and apiKey moved up into @docsearch/core, so they're configured once and shared + - Removed the indexName prop from the Sidepanel + - Facet defaults can now be read from the index searchParameters + - Restored nested grouping of search results + +- 9fe6738: fix(askai): Ask AI fixes for v5 + + - `getMessageContent` now joins every assistant text part instead of stopping + at the first one, so copying an answer that interleaves text with tool calls + returns the complete response (#2782) + - Key Ask AI conversation storage by `appId` instead of `indexName`, fixes + triggering a new conversation in hybrid mode + - Negative feedback panel is labelled with `aria-labelledby` and reason chips + expose selection via `aria-pressed` (styling moved off the + `--selected` modifier) + - `Popover.Trigger` forwards refs, fixes sources panel not showing in some cases + - Add `--docsearch-error-soft-color`, `--docsearch-error-text-color`, and + `--docsearch-code-block-background` variables; restyle the Ask AI error panel + and markdown code blocks to use them + + ``` + + ``` + +- Updated dependencies [5eac1fd] +- Updated dependencies [4f6b5b1] +- Updated dependencies [9fe6738] + - @docsearch/css@5.0.0-beta.2 + - @docsearch/core@5.0.0-beta.2 + ## 5.0.0-beta.1 ### Patch Changes diff --git a/packages/docsearch-react/package.json b/packages/docsearch-react/package.json index 369518e6..464a79b2 100644 --- a/packages/docsearch-react/package.json +++ b/packages/docsearch-react/package.json @@ -1,7 +1,7 @@ { "name": "@docsearch/react", "description": "React package for DocSearch, the best search experience for docs.", - "version": "5.0.0-beta.1", + "version": "5.0.0-beta.2", "license": "MIT", "homepage": "https://docsearch.algolia.com", "repository": { @@ -50,8 +50,8 @@ "@ai-sdk/react": "^2.0.30", "@algolia/autocomplete-core": "1.19.2", "@base-ui/react": "^1.5.0", - "@docsearch/core": "5.0.0-beta.1", - "@docsearch/css": "5.0.0-beta.1", + "@docsearch/core": "5.0.0-beta.2", + "@docsearch/css": "5.0.0-beta.2", "ai": "^5.0.30", "algoliasearch": "^5.28.0", "marked": "^16.3.0", @@ -59,7 +59,7 @@ }, "devDependencies": { "@algolia/autocomplete-core": "1.19.2", - "@docsearch/core": "5.0.0-beta.1", + "@docsearch/core": "5.0.0-beta.2", "@testing-library/jest-dom": "6.6.3", "@testing-library/react": "16.2.0", "preact": "11.0.0-beta.0", diff --git a/packages/docsearch-react/src/version.ts b/packages/docsearch-react/src/version.ts index 079fbc81..c7d697cb 100644 --- a/packages/docsearch-react/src/version.ts +++ b/packages/docsearch-react/src/version.ts @@ -1 +1 @@ -export const version = '5.0.0-beta.0'; +export const version = '5.0.0-beta.2'; diff --git a/packages/docsearch-sidepanel-js/CHANGELOG.md b/packages/docsearch-sidepanel-js/CHANGELOG.md index 85d73c02..b9bf0c0d 100644 --- a/packages/docsearch-sidepanel-js/CHANGELOG.md +++ b/packages/docsearch-sidepanel-js/CHANGELOG.md @@ -1,5 +1,15 @@ # @docsearch/sidepanel-js +## 5.0.0-beta.2 + +### Patch Changes + +- Updated dependencies [5eac1fd] +- Updated dependencies [4f6b5b1] +- Updated dependencies [9fe6738] + - @docsearch/react@5.0.0-beta.2 + - @docsearch/core@5.0.0-beta.2 + ## 5.0.0-beta.1 ### Patch Changes diff --git a/packages/docsearch-sidepanel-js/package.json b/packages/docsearch-sidepanel-js/package.json index 2d176eb8..2c08bc7b 100644 --- a/packages/docsearch-sidepanel-js/package.json +++ b/packages/docsearch-sidepanel-js/package.json @@ -1,7 +1,7 @@ { "name": "@docsearch/sidepanel-js", "description": "JavaScript package for DocSearch Sidepanel for interfacing with Ask AI.", - "version": "5.0.0-beta.1", + "version": "5.0.0-beta.2", "license": "MIT", "homepage": "https://docsearch.algolia.com", "repository": { @@ -32,8 +32,8 @@ "watch": "tsdown --watch" }, "dependencies": { - "@docsearch/core": "5.0.0-beta.1", - "@docsearch/react": "5.0.0-beta.1" + "@docsearch/core": "5.0.0-beta.2", + "@docsearch/react": "5.0.0-beta.2" }, "devDependencies": { "preact": "11.0.0-beta.0", diff --git a/packages/docsearch-sidepanel/CHANGELOG.md b/packages/docsearch-sidepanel/CHANGELOG.md index c11dd7b7..25049bf9 100644 --- a/packages/docsearch-sidepanel/CHANGELOG.md +++ b/packages/docsearch-sidepanel/CHANGELOG.md @@ -1,5 +1,24 @@ # @docsearch/sidepanel +## 5.0.0-beta.2 + +### Patch Changes + +- 4f6b5b1: feat(v5): UI and DX updates + + - Rename the Ask AI assistantId option to agentId (adapter theme.SearchModal.askAi.assistantId → agentId) + - appId and apiKey moved up into @docsearch/core, so they're configured once and shared + - Removed the indexName prop from the Sidepanel + - Facet defaults can now be read from the index searchParameters + - Restored nested grouping of search results + +- Updated dependencies [5eac1fd] +- Updated dependencies [4f6b5b1] +- Updated dependencies [9fe6738] + - @docsearch/react@5.0.0-beta.2 + - @docsearch/css@5.0.0-beta.2 + - @docsearch/core@5.0.0-beta.2 + ## 5.0.0-beta.1 ### Patch Changes diff --git a/packages/docsearch-sidepanel/package.json b/packages/docsearch-sidepanel/package.json index 288f96b8..50f86a52 100644 --- a/packages/docsearch-sidepanel/package.json +++ b/packages/docsearch-sidepanel/package.json @@ -1,7 +1,7 @@ { "name": "@docsearch/sidepanel", "description": "DocSearch Sidepanel package for Ask AI.", - "version": "5.0.0-beta.1", + "version": "5.0.0-beta.2", "license": "MIT", "homepage": "https://docsearch.algolia.com", "repository": { @@ -38,9 +38,9 @@ "watch": "tsdown --watch" }, "dependencies": { - "@docsearch/core": "5.0.0-beta.1", - "@docsearch/css": "5.0.0-beta.1", - "@docsearch/react": "5.0.0-beta.1" + "@docsearch/core": "5.0.0-beta.2", + "@docsearch/css": "5.0.0-beta.2", + "@docsearch/react": "5.0.0-beta.2" }, "devDependencies": { "@testing-library/jest-dom": "6.6.3",