diff --git a/package-lock.json b/package-lock.json index 9d4eb71cc515..11bdbcea1a9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4856,34 +4856,34 @@ } }, "node_modules/@docsearch/css": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.8.0.tgz", - "integrity": "sha512-pieeipSOW4sQ0+bE5UFC51AOZp9NGxg89wAlZ1BAQFaiRAGK1IKUaPQ0UGZeNctJXyqZ1UvBtOQh2HH+U5GtmA==", + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.8.1.tgz", + "integrity": "sha512-XiPhKT+ghUi4pEi/ACE9iDmwWsLA6d6xSwtR5ab48iB63OtYWFLZHUKdH7jHKTmwOs0Eg22TX4Kb3H5liFm5bQ==", "dev": true, "license": "MIT" }, "node_modules/@docsearch/js": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/@docsearch/js/-/js-3.8.0.tgz", - "integrity": "sha512-PVuV629f5UcYRtBWqK7ID6vNL5647+2ADJypwTjfeBIrJfwPuHtzLy39hMGMfFK+0xgRyhTR0FZ83EkdEraBlg==", + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/@docsearch/js/-/js-3.8.1.tgz", + "integrity": "sha512-e27EsGPOSlfola18BJXLDgpAVThGOhGmqjsiGyS8kIrF+IWaRnYr9xOaZltfatFK1ytrAepyevwm7eLwBTL8Zg==", "dev": true, "license": "MIT", "dependencies": { - "@docsearch/react": "3.8.0", + "@docsearch/react": "3.8.1", "preact": "^10.0.0" } }, - "node_modules/@docsearch/react": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.8.0.tgz", - "integrity": "sha512-WnFK720+iwTVt94CxY3u+FgX6exb3BfN5kE9xUY6uuAH/9W/UFboBZFLlrw/zxFRHoHZCOXRtOylsXF+6LHI+Q==", + "node_modules/@docsearch/js/node_modules/@docsearch/react": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.8.1.tgz", + "integrity": "sha512-7vgQuktQNBQdNWO1jbkiwgIrTZ0r5nPIHqcO3Z2neAWgkdUuldvvMfEOEaPXT5lqcezEv7i0h+tC285nD3jpZg==", "dev": true, "license": "MIT", "dependencies": { "@algolia/autocomplete-core": "1.17.7", "@algolia/autocomplete-preset-algolia": "1.17.7", - "@docsearch/css": "3.8.0", - "algoliasearch": "^5.12.0" + "@docsearch/css": "3.8.1", + "algoliasearch": "^5.14.2" }, "peerDependencies": { "@types/react": ">= 16.8.0 < 19.0.0", @@ -4906,6 +4906,49 @@ } } }, + "node_modules/@docsearch/js/node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@docsearch/js/node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/@docsearch/js/node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + } + }, "node_modules/@dual-bundle/import-meta-resolve": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@dual-bundle/import-meta-resolve/-/import-meta-resolve-4.1.0.tgz", @@ -39971,7 +40014,8 @@ "@angular/platform-browser-dynamic": "16.2.12", "@angular/platform-server": "16.2.12", "@angular/router": "16.2.12", - "@docsearch/js": "3.8.0", + "@docsearch/css": "3.8.1", + "@docsearch/js": "3.8.1", "@ng-web-apis/universal": "4.11.1", "@nguniversal/builders": "16.2.0", "@nguniversal/express-engine": "16.2.0", diff --git a/projects/demo-playwright/tests/legacy/combo-box/combobox.pw.spec.ts b/projects/demo-playwright/tests/legacy/combo-box/combobox.pw.spec.ts index 0eae9206cf2a..df38a2a5ccb4 100644 --- a/projects/demo-playwright/tests/legacy/combo-box/combobox.pw.spec.ts +++ b/projects/demo-playwright/tests/legacy/combo-box/combobox.pw.spec.ts @@ -35,6 +35,11 @@ test.describe('ComboBox', () => { test(`search shouldn't be reset if an exact match is entered when strict is ${strict}`, async ({ page, }) => { + await tuiGoto( + page, + `components/combo-box/API?strict=${strict}&sandboxExpanded=true`, + ); + const {apiPageExample} = new TuiDocumentationPagePO(page); const comboBoxPO = new TuiComboBoxPO(apiPageExample); @@ -42,11 +47,6 @@ test.describe('ComboBox', () => { await page.waitForTimeout(300); // safari flaky - await tuiGoto( - page, - `components/combo-box/API?strict=${strict}&sandboxExpanded=true`, - ); - await expect(page).toHaveScreenshot( `search-should-not-be-reset-strict-${strict}.png`, ); diff --git a/projects/demo/package.json b/projects/demo/package.json index fdd3bb313bb8..6cabafe4e272 100644 --- a/projects/demo/package.json +++ b/projects/demo/package.json @@ -12,7 +12,8 @@ "@angular/platform-browser-dynamic": "16.2.12", "@angular/platform-server": "16.2.12", "@angular/router": "16.2.12", - "@docsearch/js": "3.8.0", + "@docsearch/css": "3.8.1", + "@docsearch/js": "3.8.1", "@ng-web-apis/universal": "4.11.1", "@nguniversal/builders": "16.2.0", "@nguniversal/express-engine": "16.2.0", diff --git a/projects/demo/project.json b/projects/demo/project.json index 079647dc948c..8eeaaa42966d 100644 --- a/projects/demo/project.json +++ b/projects/demo/project.json @@ -65,11 +65,7 @@ } ], "baseHref": "/", - "styles": [ - "{projectRoot}/src/styles/styles.less", - "{projectRoot}/src/styles/styles.scss", - "@docsearch/css/dist/style.css" - ], + "styles": ["{projectRoot}/src/styles/styles.less", "{projectRoot}/src/styles/styles.scss"], "scripts": [], "allowedCommonJsDependencies": ["markdown-it"], "vendorChunk": true, diff --git a/projects/demo/src/styles/styles.less b/projects/demo/src/styles/styles.less index 5c783096c6f1..b0e76f00cfb2 100644 --- a/projects/demo/src/styles/styles.less +++ b/projects/demo/src/styles/styles.less @@ -3,6 +3,7 @@ @import '@taiga-ui/core/styles/taiga-ui-fonts.less'; @import '@taiga-ui/addon-mobile/styles/taiga-ui-mobile.less'; @import '@taiga-ui/styles/taiga-ui-global.less'; +@import '@docsearch/css/dist/style.css'; html, body {