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
This commit is contained in:
parent
a98294a4fc
commit
ded5d44f5b
24 changed files with 196 additions and 154 deletions
20
CHANGELOG.md
20
CHANGELOG.md
|
|
@ -1,3 +1,23 @@
|
|||
## [4.4.0](https://github.com/algolia/docsearch/compare/v4.3.2...v4.4.0) (2025-12-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **button:** Fixes default button styling accessibility ([#2814](https://github.com/algolia/docsearch/pull/2814)) ([b0a28f5](https://github.com/algolia/docsearch/commit/b0a28f57f74a903aef4ad6620f0d34eb5be9e7a4)), closes [#2804](https://github.com/algolia/docsearch/issues/2804)
|
||||
* **modal:** Fixes modal opening on every keypress ([#2813](https://github.com/algolia/docsearch/pull/2813)) ([373d139](https://github.com/algolia/docsearch/commit/373d1394e1e789f451a55a6377798705351856ca)), closes [#2809](https://github.com/algolia/docsearch/issues/2809)
|
||||
* **modal:** dropdown menu styles ([#2801](https://github.com/algolia/docsearch/pull/2801)) ([5ef01ec](https://github.com/algolia/docsearch/commit/5ef01ecd4dbda1bfb89e03ddbad4be6e30dba89a))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **sidepanel:** Introduce Ask AI Sidepanel ([#2816](https://github.com/algolia/docsearch/issues/2816)) ([171c504](https://github.com/algolia/docsearch/commit/171c504f11d63e9a3a3abfc69b779594ef2c0b67))
|
||||
* **askai:** add thread depth limit logic ([#2812](https://github.com/algolia/docsearch/pull/2812)) ([fd0de3d](https://github.com/algolia/docsearch/commit/fd0de3d16f8c434b7f75793fae69fe8e2c2d159d))
|
||||
* **askai:** Handle errors better for Ask AI ([#2803](https://github.com/algolia/docsearch/pull/2803)) ([d531137](https://github.com/algolia/docsearch/commit/d531137f14accb82732804452bf324093a827cea))
|
||||
* **modal:** Native RTL support ([#2802](https://github.com/algolia/docsearch/pull/2802)) ([9ed6c5a](https://github.com/algolia/docsearch/commit/9ed6c5a9bad1bcbaf46f551506dccdd9342c03c8)), closes [#1512](https://github.com/algolia/docsearch/issues/1512)
|
||||
* **docs:** Add utm_ params to apply links ([#2817](https://github.com/algolia/docsearch/pull/2817)) ([8a9c451](https://github.com/algolia/docsearch/commit/8a9c4519eb04254d64fad8432c4fc395cf848cc1))
|
||||
|
||||
|
||||
|
||||
## [4.3.2](https://github.com/algolia/docsearch/compare/v4.3.1...v4.3.2) (2025-11-10)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@docsearch/js-example",
|
||||
"description": "DocSearch v4 Vanilla JavaScript example",
|
||||
"version": "4.3.2",
|
||||
"version": "4.4.0",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
|
@ -10,9 +10,9 @@
|
|||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docsearch/css": "4.3.2",
|
||||
"@docsearch/js": "4.3.2",
|
||||
"@docsearch/sidepanel-js": "4.3.2"
|
||||
"@docsearch/css": "4.4.0",
|
||||
"@docsearch/js": "4.4.0",
|
||||
"@docsearch/sidepanel-js": "4.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^6.0.7"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@docsearch/react-example",
|
||||
"description": "DocSearch v4 React example",
|
||||
"version": "4.3.2",
|
||||
"version": "4.4.0",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
"packages/*",
|
||||
"examples/*"
|
||||
],
|
||||
"version": "4.3.2",
|
||||
"version": "4.4.0",
|
||||
"npmClient": "yarn"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@docsearch/core",
|
||||
"description": "Core package logic for DocSearch",
|
||||
"version": "4.3.1",
|
||||
"version": "4.4.0",
|
||||
"license": "MIT",
|
||||
"homepage": "https://docsearch.algolia.com",
|
||||
"repository": {
|
||||
|
|
@ -38,7 +38,9 @@
|
|||
"build:clean": "rm -rf ./dist",
|
||||
"build:clean-types": "rm -rf ./dist/esm/types",
|
||||
"build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types",
|
||||
"build": "yarn build:clean && yarn build:types && rollup --config --bundleConfigAsCjs && yarn build:clean-types",
|
||||
"build:source": "rollup --config --bundleConfigAsCjs",
|
||||
"build:dts": "rollup --config rollup.dts.config.js --bundleConfigAsCjs",
|
||||
"build": "yarn build:clean && yarn build:types && yarn build:source && yarn build:dts && yarn build:clean-types",
|
||||
"on:change": "yarn build",
|
||||
"watch": "nodemon --watch src --ext ts,tsx,js,jsx,json --ignore dist/ --ignore node_modules/ --verbose --delay 250ms --exec \"yarn on:change\""
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
import { dts } from 'rollup-plugin-dts';
|
||||
|
||||
import { plugins } from '../../rollup.base.config';
|
||||
import { getBundleBanner } from '../../scripts/getBundleBanner';
|
||||
|
|
@ -59,24 +58,4 @@ export default [
|
|||
output: sourceOutput('useKeyboardShortcuts.js'),
|
||||
plugins: sourcePlugins,
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/index.d.ts',
|
||||
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/useTheme.d.ts',
|
||||
output: [{ file: 'dist/esm/useTheme.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/useDocSearchKeyboardEvents.d.ts',
|
||||
output: [{ file: 'dist/esm/useDocSearchKeyboardEvents.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/useKeyboardShortcuts.d.ts',
|
||||
output: [{ file: 'dist/esm/useKeyboardShortcuts.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
];
|
||||
|
|
|
|||
24
packages/docsearch-core/rollup.dts.config.js
Normal file
24
packages/docsearch-core/rollup.dts.config.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { dts } from 'rollup-plugin-dts';
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'dist/esm/types/index.d.ts',
|
||||
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/useTheme.d.ts',
|
||||
output: [{ file: 'dist/esm/useTheme.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/useDocSearchKeyboardEvents.d.ts',
|
||||
output: [{ file: 'dist/esm/useDocSearchKeyboardEvents.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/useKeyboardShortcuts.d.ts',
|
||||
output: [{ file: 'dist/esm/useKeyboardShortcuts.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
];
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@docsearch/css",
|
||||
"description": "Styles for DocSearch.",
|
||||
"version": "4.3.2",
|
||||
"version": "4.4.0",
|
||||
"license": "MIT",
|
||||
"homepage": "https://docsearch.algolia.com",
|
||||
"repository": {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@docsearch/js",
|
||||
"description": "JavaScript package for DocSearch, the best search experience for docs.",
|
||||
"version": "4.3.2",
|
||||
"version": "4.4.0",
|
||||
"license": "MIT",
|
||||
"homepage": "https://docsearch.algolia.com",
|
||||
"repository": {
|
||||
|
|
@ -28,15 +28,17 @@
|
|||
"build:clean": "rm -rf ./dist",
|
||||
"build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types",
|
||||
"build:clean-types": "rm -rf ./dist/esm/types",
|
||||
"build": "yarn build:clean && yarn build:types && rollup --config --bundleConfigAsCjs && yarn build:clean-types",
|
||||
"build:source": "rollup --config --bundleConfigAsCjs",
|
||||
"build:dts": "rollup --config rollup.dts.config.js --bundleConfigAsCjs",
|
||||
"build": "yarn build:clean && yarn build:types && yarn build:source && yarn build:dts && yarn build:clean-types",
|
||||
"on:change": "yarn build",
|
||||
"watch": "nodemon --watch src --exec \"yarn on:change\" --ignore dist/ --ext ts,tsx"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docsearch/react": "4.4.0",
|
||||
"htm": "3.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docsearch/react": "4.3.2",
|
||||
"@rollup/plugin-replace": "6.0.2",
|
||||
"nodemon": "^3.1.9",
|
||||
"preact": "^10.0.0",
|
||||
|
|
|
|||
|
|
@ -1,21 +1,11 @@
|
|||
// rollup.config.js
|
||||
import replace from '@rollup/plugin-replace';
|
||||
import { dts } from 'rollup-plugin-dts';
|
||||
|
||||
import { plugins } from '../../rollup.base.config.js';
|
||||
import { getBundleBanner } from '../../scripts/getBundleBanner.js';
|
||||
|
||||
import pkg from './package.json' with { type: 'json' };
|
||||
|
||||
const externalsForTypes = [
|
||||
/^preact(\/|$)/,
|
||||
/^preact\/jsx-runtime$/,
|
||||
/^react(\/|$)/,
|
||||
/^react-dom(\/|$)/,
|
||||
/^@types\/react(\/|$)/,
|
||||
/^@ai-sdk\/react(\/|$)/,
|
||||
];
|
||||
|
||||
export default [
|
||||
// ESM JS
|
||||
{
|
||||
|
|
@ -57,16 +47,4 @@ export default [
|
|||
}),
|
||||
],
|
||||
},
|
||||
|
||||
// Types bundle
|
||||
{
|
||||
input: 'dist/esm/types/index.d.ts',
|
||||
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
|
||||
external: (id) => externalsForTypes.some((rx) => rx.test(id)),
|
||||
plugins: [
|
||||
dts({
|
||||
respectExternal: true,
|
||||
}),
|
||||
],
|
||||
},
|
||||
];
|
||||
|
|
|
|||
23
packages/docsearch-js/rollup.dts.config.js
Normal file
23
packages/docsearch-js/rollup.dts.config.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { dts } from 'rollup-plugin-dts';
|
||||
|
||||
const externalsForTypes = [
|
||||
/^preact(\/|$)/,
|
||||
/^preact\/jsx-runtime$/,
|
||||
/^react(\/|$)/,
|
||||
/^react-dom(\/|$)/,
|
||||
/^@types\/react(\/|$)/,
|
||||
/^@ai-sdk\/react(\/|$)/,
|
||||
];
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'dist/esm/types/index.d.ts',
|
||||
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
|
||||
external: (id) => externalsForTypes.some((rx) => rx.test(id)),
|
||||
plugins: [
|
||||
dts({
|
||||
respectExternal: true,
|
||||
}),
|
||||
],
|
||||
},
|
||||
];
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@docsearch/modal",
|
||||
"description": "DocSearch modal package for keyword search and Ask AI.",
|
||||
"version": "4.3.2",
|
||||
"version": "4.4.0",
|
||||
"license": "MIT",
|
||||
"homepage": "https://docsearch.algolia.com",
|
||||
"repository": {
|
||||
|
|
@ -36,13 +36,15 @@
|
|||
"build:clean": "rm -rf ./dist",
|
||||
"build:clean-types": "rm -rf ./dist/esm/types",
|
||||
"build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types",
|
||||
"build": "yarn build:clean && yarn build:types && rollup --config --bundleConfigAsCjs && rollup --config rollup.dts.config.js --bundleConfigAsCjs && yarn build:clean-types",
|
||||
"build:source": "rollup --config --bundleConfigAsCjs",
|
||||
"build:dts": "rollup --config rollup.dts.config.js --bundleConfigAsCjs",
|
||||
"build": "yarn build:clean && yarn build:types && yarn build:source && yarn build:dts && yarn build:clean-types",
|
||||
"on:change": "yarn build",
|
||||
"watch": "nodemon --watch src --ext ts,tsx,js,jsx,json --ignore dist/ --ignore node_modules/ --verbose --delay 250ms --exec \"yarn on:change\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@docsearch/core": "4.3.1",
|
||||
"@docsearch/react": "4.3.2"
|
||||
"@docsearch/core": "4.4.0",
|
||||
"@docsearch/react": "4.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-replace": "6.0.2",
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ function sourceOutput(fileName) {
|
|||
];
|
||||
}
|
||||
|
||||
const externals = ['react', 'react-dom', '@docsearch/core'];
|
||||
const externals = ['react', 'react-dom', '@docsearch/core', /^@docsearch\/react/];
|
||||
|
||||
export default [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@docsearch/react",
|
||||
"description": "React package for DocSearch, the best search experience for docs.",
|
||||
"version": "4.3.2",
|
||||
"version": "4.4.0",
|
||||
"license": "MIT",
|
||||
"homepage": "https://docsearch.algolia.com",
|
||||
"repository": {
|
||||
|
|
@ -45,15 +45,17 @@
|
|||
"build:clean": "rm -rf ./dist",
|
||||
"build:clean-types": "rm -rf ./dist/esm/types",
|
||||
"build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types",
|
||||
"build": "yarn build:clean && yarn build:types && rollup --config --bundleConfigAsCjs && yarn build:clean-types",
|
||||
"build:source": "rollup --config --bundleConfigAsCjs",
|
||||
"build:dts": "rollup --config rollup.dts.config.js --bundleConfigAsCjs",
|
||||
"build": "yarn build:clean && yarn build:types && yarn build:source && yarn build:dts && yarn build:clean-types",
|
||||
"on:change": "yarn build",
|
||||
"watch": "nodemon --watch src --ext ts,tsx,js,jsx,json --ignore dist/ --ignore node_modules/ --verbose --delay 250ms --exec \"yarn on:change\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-sdk/react": "^2.0.30",
|
||||
"@algolia/autocomplete-core": "1.19.2",
|
||||
"@docsearch/core": "4.3.1",
|
||||
"@docsearch/css": "4.3.2",
|
||||
"@docsearch/core": "4.4.0",
|
||||
"@docsearch/css": "4.4.0",
|
||||
"ai": "^5.0.30",
|
||||
"algoliasearch": "^5.28.0",
|
||||
"marked": "^16.3.0",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
import { dts } from 'rollup-plugin-dts';
|
||||
|
||||
import { plugins } from '../../rollup.base.config';
|
||||
import { getBundleBanner } from '../../scripts/getBundleBanner';
|
||||
|
|
@ -79,39 +78,4 @@ export default [
|
|||
output: sourceOutput('Sidepanel.js'),
|
||||
plugins: sourcePlugins,
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/index.d.ts',
|
||||
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/DocSearchModal.d.ts',
|
||||
output: [{ file: 'dist/esm/DocSearchModal.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/DocSearchButton.d.ts',
|
||||
output: [{ file: 'dist/esm/DocSearchButton.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/useDocSearchKeyboardEvents.d.ts',
|
||||
output: [{ file: 'dist/esm/useDocSearchKeyboardEvents.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/useTheme.d.ts',
|
||||
output: [{ file: 'dist/esm/useTheme.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/version.d.ts',
|
||||
output: [{ file: 'dist/esm/version.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/Sidepanel.d.ts',
|
||||
output: [{ file: 'dist/esm/Sidepanel.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
];
|
||||
|
|
|
|||
39
packages/docsearch-react/rollup.dts.config.js
Normal file
39
packages/docsearch-react/rollup.dts.config.js
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
import { dts } from 'rollup-plugin-dts';
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'dist/esm/types/index.d.ts',
|
||||
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/DocSearchModal.d.ts',
|
||||
output: [{ file: 'dist/esm/DocSearchModal.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/DocSearchButton.d.ts',
|
||||
output: [{ file: 'dist/esm/DocSearchButton.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/useDocSearchKeyboardEvents.d.ts',
|
||||
output: [{ file: 'dist/esm/useDocSearchKeyboardEvents.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/useTheme.d.ts',
|
||||
output: [{ file: 'dist/esm/useTheme.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/version.d.ts',
|
||||
output: [{ file: 'dist/esm/version.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/Sidepanel.d.ts',
|
||||
output: [{ file: 'dist/esm/Sidepanel.d.ts', format: 'es' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
];
|
||||
|
|
@ -1 +1 @@
|
|||
export const version = '4.3.2';
|
||||
export const version = '4.4.0';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@docsearch/sidepanel-js",
|
||||
"description": "JavaScript package for DocSearch Sidepanel for interfacing with Ask AI.",
|
||||
"version": "4.3.2",
|
||||
"version": "4.4.0",
|
||||
"license": "MIT",
|
||||
"homepage": "https://docsearch.algolia.com",
|
||||
"repository": {
|
||||
|
|
@ -31,12 +31,16 @@
|
|||
"build:clean": "rm -rf ./dist",
|
||||
"build:clean-types": "rm -rf ./dist/esm/types",
|
||||
"build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types",
|
||||
"build": "yarn build:clean && yarn build:types && rollup --config --bundleConfigAsCjs && yarn build:clean-types",
|
||||
"build:source": "rollup --config --bundleConfigAsCjs",
|
||||
"build:dts": "rollup --config rollup.dts.config.js --bundleConfigAsCjs",
|
||||
"build": "yarn build:clean && yarn build:types && yarn build:source && yarn build:dts && yarn build:clean-types",
|
||||
"on:change": "yarn build",
|
||||
"watch": "nodemon --watch src --ext ts,tsx,js,jsx,json --ignore dist/ --ignore node_modules/ --verbose --delay 250ms --exec \"yarn on:change\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@docsearch/react": "4.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docsearch/react": "4.3.2",
|
||||
"@rollup/plugin-replace": "6.0.2",
|
||||
"nodemon": "^3.1.9",
|
||||
"preact": "^10.0.0",
|
||||
|
|
|
|||
|
|
@ -1,21 +1,11 @@
|
|||
// rollup.config.js
|
||||
import replace from '@rollup/plugin-replace';
|
||||
import { dts } from 'rollup-plugin-dts';
|
||||
|
||||
import { plugins } from '../../rollup.base.config.js';
|
||||
import { getBundleBanner } from '../../scripts/getBundleBanner.js';
|
||||
|
||||
import pkg from './package.json' with { type: 'json' };
|
||||
|
||||
const externalsForTypes = [
|
||||
/^preact(\/|$)/,
|
||||
/^preact\/jsx-runtime$/,
|
||||
/^react(\/|$)/,
|
||||
/^react-dom(\/|$)/,
|
||||
/^@types\/react(\/|$)/,
|
||||
/^@ai-sdk\/react(\/|$)/,
|
||||
];
|
||||
|
||||
export default [
|
||||
// ESM JS
|
||||
{
|
||||
|
|
@ -57,16 +47,4 @@ export default [
|
|||
}),
|
||||
],
|
||||
},
|
||||
|
||||
// Types bundle
|
||||
{
|
||||
input: 'dist/esm/types/index.d.ts',
|
||||
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
|
||||
external: (id) => externalsForTypes.some((rx) => rx.test(id)),
|
||||
plugins: [
|
||||
dts({
|
||||
respectExternal: true,
|
||||
}),
|
||||
],
|
||||
},
|
||||
];
|
||||
|
|
|
|||
23
packages/docsearch-sidepanel-js/rollup.dts.config.js
Normal file
23
packages/docsearch-sidepanel-js/rollup.dts.config.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { dts } from 'rollup-plugin-dts';
|
||||
|
||||
const externalsForTypes = [
|
||||
/^preact(\/|$)/,
|
||||
/^preact\/jsx-runtime$/,
|
||||
/^react(\/|$)/,
|
||||
/^react-dom(\/|$)/,
|
||||
/^@types\/react(\/|$)/,
|
||||
/^@ai-sdk\/react(\/|$)/,
|
||||
];
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'dist/esm/types/index.d.ts',
|
||||
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
|
||||
external: (id) => externalsForTypes.some((rx) => rx.test(id)),
|
||||
plugins: [
|
||||
dts({
|
||||
respectExternal: true,
|
||||
}),
|
||||
],
|
||||
},
|
||||
];
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@docsearch/sidepanel",
|
||||
"description": "DocSearch Sidepanel package for Ask AI.",
|
||||
"version": "4.3.2",
|
||||
"version": "4.4.0",
|
||||
"license": "MIT",
|
||||
"homepage": "https://docsearch.algolia.com",
|
||||
"repository": {
|
||||
|
|
@ -41,14 +41,16 @@
|
|||
"build:clean": "rm -rf ./dist",
|
||||
"build:clean-types": "rm -rf ./dist/esm/types",
|
||||
"build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types",
|
||||
"build": "yarn build:clean && yarn build:types && rollup --config --bundleConfigAsCjs && rollup --config rollup.dts.config.js --bundleConfigAsCjs && yarn build:clean-types",
|
||||
"build:source": "rollup --config --bundleConfigAsCjs",
|
||||
"build:dts": "rollup --config rollup.dts.config.js --bundleConfigAsCjs",
|
||||
"build": "yarn build:clean && yarn build:types && yarn build:source && yarn build:dts && yarn build:clean-types",
|
||||
"on:change": "yarn build",
|
||||
"watch": "nodemon --watch src --ext ts,tsx,js,jsx,json --ignore dist/ --ignore node_modules/ --verbose --delay 250ms --exec \"yarn on:change\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@docsearch/core": "4.3.1",
|
||||
"@docsearch/css": "4.3.2",
|
||||
"@docsearch/react": "4.3.2"
|
||||
"@docsearch/core": "4.4.0",
|
||||
"@docsearch/css": "4.4.0",
|
||||
"@docsearch/react": "4.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-replace": "6.0.2",
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ function sourceOutput(fileName) {
|
|||
];
|
||||
}
|
||||
|
||||
const externals = ['react', 'react-dom', '@docsearch/core'];
|
||||
const externals = ['react', 'react-dom', '@docsearch/core', /^@docsearch\/react/];
|
||||
|
||||
export default [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@docsearch/website",
|
||||
"version": "4.3.2",
|
||||
"version": "4.4.0",
|
||||
"private": true,
|
||||
"homepage": "https://docsearch.algolia.com/",
|
||||
"scripts": {
|
||||
|
|
@ -16,8 +16,8 @@
|
|||
"write-heading-ids": "docusaurus write-heading-ids"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docsearch/css": "4.3.2",
|
||||
"@docsearch/react": "4.3.2",
|
||||
"@docsearch/css": "4.4.0",
|
||||
"@docsearch/react": "4.4.0",
|
||||
"@docusaurus/core": "3.8.1-canary-6397",
|
||||
"@docusaurus/preset-classic": "3.8.1-canary-6397",
|
||||
"@mdx-js/react": "^3.1.0",
|
||||
|
|
|
|||
36
yarn.lock
36
yarn.lock
|
|
@ -2327,7 +2327,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@docsearch/core@npm:4.3.1, @docsearch/core@workspace:*, @docsearch/core@workspace:packages/docsearch-core":
|
||||
"@docsearch/core@npm:4.4.0, @docsearch/core@workspace:*, @docsearch/core@workspace:packages/docsearch-core":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@docsearch/core@workspace:packages/docsearch-core"
|
||||
dependencies:
|
||||
|
|
@ -2351,7 +2351,7 @@ __metadata:
|
|||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@docsearch/css@npm:4.3.2, @docsearch/css@workspace:*, @docsearch/css@workspace:packages/docsearch-css":
|
||||
"@docsearch/css@npm:4.4.0, @docsearch/css@workspace:*, @docsearch/css@workspace:packages/docsearch-css":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@docsearch/css@workspace:packages/docsearch-css"
|
||||
dependencies:
|
||||
|
|
@ -2363,18 +2363,18 @@ __metadata:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "@docsearch/js-example@workspace:examples/demo-js"
|
||||
dependencies:
|
||||
"@docsearch/css": "npm:4.3.2"
|
||||
"@docsearch/js": "npm:4.3.2"
|
||||
"@docsearch/sidepanel-js": "npm:4.3.2"
|
||||
"@docsearch/css": "npm:4.4.0"
|
||||
"@docsearch/js": "npm:4.4.0"
|
||||
"@docsearch/sidepanel-js": "npm:4.4.0"
|
||||
vite: "npm:^6.0.7"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@docsearch/js@npm:4.3.2, @docsearch/js@workspace:packages/docsearch-js":
|
||||
"@docsearch/js@npm:4.4.0, @docsearch/js@workspace:packages/docsearch-js":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@docsearch/js@workspace:packages/docsearch-js"
|
||||
dependencies:
|
||||
"@docsearch/react": "npm:4.3.2"
|
||||
"@docsearch/react": "npm:4.4.0"
|
||||
"@rollup/plugin-replace": "npm:6.0.2"
|
||||
htm: "npm:3.1.1"
|
||||
nodemon: "npm:^3.1.9"
|
||||
|
|
@ -2387,8 +2387,8 @@ __metadata:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "@docsearch/modal@workspace:packages/docsearch-modal"
|
||||
dependencies:
|
||||
"@docsearch/core": "npm:4.3.1"
|
||||
"@docsearch/react": "npm:4.3.2"
|
||||
"@docsearch/core": "npm:4.4.0"
|
||||
"@docsearch/react": "npm:4.4.0"
|
||||
"@rollup/plugin-replace": "npm:6.0.2"
|
||||
"@testing-library/jest-dom": "npm:6.6.3"
|
||||
"@testing-library/react": "npm:16.2.0"
|
||||
|
|
@ -2489,8 +2489,8 @@ __metadata:
|
|||
dependencies:
|
||||
"@ai-sdk/react": "npm:^2.0.30"
|
||||
"@algolia/autocomplete-core": "npm:1.19.2"
|
||||
"@docsearch/core": "npm:4.3.1"
|
||||
"@docsearch/css": "npm:4.3.2"
|
||||
"@docsearch/core": "npm:4.4.0"
|
||||
"@docsearch/css": "npm:4.4.0"
|
||||
"@rollup/plugin-replace": "npm:6.0.2"
|
||||
"@testing-library/jest-dom": "npm:6.6.3"
|
||||
"@testing-library/react": "npm:16.2.0"
|
||||
|
|
@ -2518,11 +2518,11 @@ __metadata:
|
|||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@docsearch/sidepanel-js@npm:4.3.2, @docsearch/sidepanel-js@workspace:packages/docsearch-sidepanel-js":
|
||||
"@docsearch/sidepanel-js@npm:4.4.0, @docsearch/sidepanel-js@workspace:packages/docsearch-sidepanel-js":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@docsearch/sidepanel-js@workspace:packages/docsearch-sidepanel-js"
|
||||
dependencies:
|
||||
"@docsearch/react": "npm:4.3.2"
|
||||
"@docsearch/react": "npm:4.4.0"
|
||||
"@rollup/plugin-replace": "npm:6.0.2"
|
||||
nodemon: "npm:^3.1.9"
|
||||
preact: "npm:^10.0.0"
|
||||
|
|
@ -2534,9 +2534,9 @@ __metadata:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "@docsearch/sidepanel@workspace:packages/docsearch-sidepanel"
|
||||
dependencies:
|
||||
"@docsearch/core": "npm:4.3.1"
|
||||
"@docsearch/css": "npm:4.3.2"
|
||||
"@docsearch/react": "npm:4.3.2"
|
||||
"@docsearch/core": "npm:4.4.0"
|
||||
"@docsearch/css": "npm:4.4.0"
|
||||
"@docsearch/react": "npm:4.4.0"
|
||||
"@rollup/plugin-replace": "npm:6.0.2"
|
||||
"@testing-library/jest-dom": "npm:6.6.3"
|
||||
"@testing-library/react": "npm:16.2.0"
|
||||
|
|
@ -2561,8 +2561,8 @@ __metadata:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "@docsearch/website@workspace:packages/website"
|
||||
dependencies:
|
||||
"@docsearch/css": "npm:4.3.2"
|
||||
"@docsearch/react": "npm:4.3.2"
|
||||
"@docsearch/css": "npm:4.4.0"
|
||||
"@docsearch/react": "npm:4.4.0"
|
||||
"@docusaurus/core": "npm:3.8.1-canary-6397"
|
||||
"@docusaurus/module-type-aliases": "npm:3.8.1-canary-6397"
|
||||
"@docusaurus/preset-classic": "npm:3.8.1-canary-6397"
|
||||
|
|
|
|||
Loading…
Reference in a new issue