@malloy-publisher/sdk 0.0.144 → 0.0.145
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/README.md +3 -3
- package/dist/hooks/useDimensionFilters.d.ts +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +13 -7
- package/package.json +1 -1
- package/src/components/filter/DimensionFilter.tsx +88 -80
- package/src/components/filter/utils.ts +1 -1
- package/src/hooks/useDimensionFilters.ts +2 -2
- package/src/hooks/useDimensionFiltersQuery.ts +1 -1
- package/src/hooks/useDimensionalFilterRangeData.ts +1 -1
package/README.md
CHANGED
|
@@ -590,7 +590,7 @@ The SDK supports interactive dimensional filtering for notebooks and embedded da
|
|
|
590
590
|
| `Star` | Multi-select dropdown | String fields with discrete values |
|
|
591
591
|
| `MinMax` | Range slider | Numeric fields |
|
|
592
592
|
| `DateMinMax` | Date range picker | Date/timestamp fields |
|
|
593
|
-
| `Retrieval` | Semantic search input | Free-text
|
|
593
|
+
| `Retrieval` | Semantic search input | Free-text semantic search |
|
|
594
594
|
| `Boolean` | Toggle switch | Boolean fields |
|
|
595
595
|
|
|
596
596
|
### Source Declaration Syntax
|
|
@@ -646,7 +646,7 @@ import {flights, carriers} from 'flights.malloy'
|
|
|
646
646
|
|
|
647
647
|
The filter type for each dimension is determined by the `#(filter)` annotation on that dimension in the source file. If no source annotation exists, the dimension is ignored.
|
|
648
648
|
|
|
649
|
-
**Note**:
|
|
649
|
+
**Note**: Semantic search is not supported by the Publisher.
|
|
650
650
|
When using the Notebook component, you supply an async function which implements the search for that column+query.
|
|
651
651
|
If no search function is supplied, the filter is ignored.
|
|
652
652
|
|
|
@@ -698,7 +698,7 @@ Filters support different match types depending on the filter type:
|
|
|
698
698
|
| `Greater Than` / `Less Than` | Comparison | MinMax |
|
|
699
699
|
| `Between` | Range (inclusive) | MinMax, DateMinMax |
|
|
700
700
|
| `After` / `Before` | Date comparison | DateMinMax |
|
|
701
|
-
| `
|
|
701
|
+
| `Semantic Search` | Semantic similarity | Retrieval |
|
|
702
702
|
|
|
703
703
|
---
|
|
704
704
|
|
|
@@ -2,7 +2,7 @@ import { DimensionSpec } from './useDimensionalFilterRangeData';
|
|
|
2
2
|
/**
|
|
3
3
|
* Match types for filtering dimensions
|
|
4
4
|
*/
|
|
5
|
-
export type MatchType = "Equals" | "Contains" | "After" | "Before" | "Less Than" | "Greater Than" | "Between" | "
|
|
5
|
+
export type MatchType = "Equals" | "Contains" | "After" | "Before" | "Less Than" | "Greater Than" | "Between" | "Semantic Search";
|
|
6
6
|
/**
|
|
7
7
|
* Primitive types that can be used as filter values
|
|
8
8
|
*/
|