@indxsearch/intrface 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -1
- package/README.md +9 -5
- package/dist/index.es.js +390 -393
- package/dist/index.umd.js +4 -4
- package/package.json +2 -1
- package/dist/components/ActiveFiltersPanel.d.ts +0 -1
- package/dist/components/RangeFilterPanel.d.ts +0 -11
- package/dist/components/ResultTitle.d.ts +0 -0
- package/dist/components/SearchErrorBoundary.d.ts +0 -45
- package/dist/components/SearchInput.d.ts +0 -8
- package/dist/components/SearchResults.d.ts +0 -7
- package/dist/components/SearchSettingsPanel.d.ts +0 -1
- package/dist/components/SortByPanel.d.ts +0 -8
- package/dist/components/ValueFilterPanel.d.ts +0 -23
- package/dist/context/SearchContext.d.ts +0 -92
- package/dist/context/useSearch.d.ts +0 -1
- package/dist/index.d.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,46 @@ All notable changes to @indxsearch/intrface will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.1.0] - 2026-01-21
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Added dependency on `@indxsearch/indx-types` for centralized API type definitions
|
|
12
|
+
- Added `RequiredCoverageSetup` type for internal use (all properties guaranteed present)
|
|
13
|
+
- Added new CoverageSetup properties: `truncateWordHitLimit`, `truncateWordHitTolerance`, `includePatternMatches`
|
|
14
|
+
- Added "Include Pattern Matches" toggle to SearchSettingsPanel
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- **BREAKING FIX**: Fixed `SystemStatus.state` → `systemStatus.systemState` to match actual API response
|
|
18
|
+
- **BREAKING FIX**: Fixed `SearchResult.documentKey` type from `string` to `number` (Int32) to match API
|
|
19
|
+
- Fixed SystemState enum usage with proper numeric comparisons
|
|
20
|
+
- Updated CoverageSetup defaults to match IndxCloudApi v1.0.2 specification
|
|
21
|
+
- Fixed `truncationScore` default value: 254 → 255
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- **BREAKING**: Updated CoverageSetup interface to match IndxCloudApi v1.0.2
|
|
25
|
+
- Removed obsolete properties: `coverageMinWordHitsAbs`, `coverageMinWordHitsRelative`, `coverageLcsErrorToleranceRelativeq`, `coverageQLimitForErrorTolerance`
|
|
26
|
+
- These properties no longer exist in the API specification
|
|
27
|
+
- Updated SearchSettingsPanel UI to reflect new CoverageSetup parameters
|
|
28
|
+
- Removed `truncationScore` input from SearchSettingsPanel UI (still sent to API with default value)
|
|
29
|
+
- Now imports `CoverageSetup` and `ScoreEntry` types from `@indxsearch/indx-types`
|
|
30
|
+
- Imports `SystemState` enum as value (not just type) for runtime comparisons
|
|
31
|
+
|
|
32
|
+
### Technical Details
|
|
33
|
+
This release aligns `@indxsearch/intrface` with the official IndxCloudApi v1.0.2 Swagger specification. The breaking changes fix discrepancies between the package and the actual API that could cause runtime errors or unexpected behavior.
|
|
34
|
+
|
|
35
|
+
### Migration Guide
|
|
36
|
+
If upgrading from 2.0.x:
|
|
37
|
+
|
|
38
|
+
1. **SystemStatus access**: Change `statusData.state` to `statusData.systemState`
|
|
39
|
+
2. **DocumentKey**: If you're manipulating `documentKey` values, they are now numbers instead of strings
|
|
40
|
+
3. **CoverageSetup**: Remove any usage of the deleted properties listed above
|
|
41
|
+
|
|
42
|
+
### Compatibility
|
|
43
|
+
- Requires IndxCloudApi v1.0.2
|
|
44
|
+
- Requires `@indxsearch/indx-types` ^1.0.0
|
|
45
|
+
- React ^19.0.0
|
|
46
|
+
- React DOM ^19.0.0
|
|
47
|
+
|
|
8
48
|
## [2.0.1] - 2026-01-16
|
|
9
49
|
|
|
10
50
|
### Fixed
|
|
@@ -59,5 +99,5 @@ npm install @indxsearch/intrface@latest
|
|
|
59
99
|
Or with a specific version:
|
|
60
100
|
|
|
61
101
|
```bash
|
|
62
|
-
npm install @indxsearch/intrface@2.0
|
|
102
|
+
npm install @indxsearch/intrface@2.1.0
|
|
63
103
|
```
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @indxsearch/intrface
|
|
2
2
|
|
|
3
|
-
A powerful, flexible React search UI library for
|
|
3
|
+
A powerful, flexible React search UI library for Indx Search with [IndxCloudApi](https://github.com/indxSearch/IndxCloudApi).
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -16,12 +16,12 @@ A powerful, flexible React search UI library for INDX Search API.
|
|
|
16
16
|
|
|
17
17
|
| Package | Version |
|
|
18
18
|
|---------|---------|
|
|
19
|
-
| **IndxCloudApi** | `1.0.
|
|
19
|
+
| **IndxCloudApi** | `1.0.2` |
|
|
20
20
|
| **React** | `^19.0.0` |
|
|
21
21
|
| **React DOM** | `^19.0.0` |
|
|
22
22
|
| **Node.js** | `>=16.0.0` |
|
|
23
23
|
|
|
24
|
-
> **Note:** This library is designed specifically for IndxCloudApi version 1.0.
|
|
24
|
+
> **Note:** This library is designed specifically for IndxCloudApi version 1.0.2. Different API versions may have incompatible changes.
|
|
25
25
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
@@ -29,6 +29,8 @@ A powerful, flexible React search UI library for INDX Search API.
|
|
|
29
29
|
npm install @indxsearch/intrface @indxsearch/systm @indxsearch/pixl
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
> **Note:** TypeScript type definitions for IndxCloudApi are automatically included via the `@indxsearch/indx-types` dependency.
|
|
33
|
+
|
|
32
34
|
## Quick Start
|
|
33
35
|
|
|
34
36
|
### 1. Set Up Environment Variables
|
|
@@ -373,10 +375,12 @@ export default function AdvancedSearch() {
|
|
|
373
375
|
| `dataset` | `string` | ✅ | - | Dataset name |
|
|
374
376
|
| `allowEmptySearch` | `boolean` | ❌ | `false` | Show results without query |
|
|
375
377
|
| `enableFacets` | `boolean` | ❌ | `true` | Enable faceted search |
|
|
378
|
+
| `enableCoverage` | `boolean` | ❌ | `true` | Enable coverage-based fuzzy matching |
|
|
376
379
|
| `maxResults` | `number` | ❌ | `10` | Max results per search |
|
|
377
|
-
| `facetDebounceDelayMillis` | `number` | ❌ | `500` | Debounce delay for facet updates |
|
|
380
|
+
| `facetDebounceDelayMillis` | `number` | ❌ | `500` | Debounce delay for facet updates (ms) |
|
|
378
381
|
| `coverageDepth` | `number` | ❌ | `500` | Search depth for fuzzy matching |
|
|
379
|
-
| `removeDuplicates` | `boolean` | ❌ | `
|
|
382
|
+
| `removeDuplicates` | `boolean` | ❌ | `true` | Remove duplicate results |
|
|
383
|
+
| `initialCoverageSetup` | `Partial<CoverageSetup>` | ❌ | `{}` | Override default coverage settings |
|
|
380
384
|
| `enableDebugLogs` | `boolean` | ❌ | `false` | Enable detailed console logging |
|
|
381
385
|
|
|
382
386
|
### SearchInput Props
|