@usereactify/search 4.3.1 → 4.4.2
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 +18 -0
- package/dist/package.json +3 -3
- package/dist/src/search/SearchInput.d.ts +21 -2
- package/dist/src/types/firestore.d.ts +3 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [4.4.2](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.4.1...v4.4.2) (2022-08-01)
|
|
6
|
+
|
|
7
|
+
### [4.4.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.4.0...v4.4.1) (2022-07-21)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* correct tsconfig ([e82defa](https://bitbucket.org/usereactify/reactify-search-ui/commit/e82defac47d754df543fc276319ba759de607507))
|
|
13
|
+
|
|
14
|
+
## [4.4.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.4.0-beta.0...v4.4.0) (2022-07-21)
|
|
15
|
+
|
|
16
|
+
## [4.4.0-beta.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.3.1...v4.4.0-beta.0) (2022-07-21)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* correct tsconfig ([01a796b](https://bitbucket.org/usereactify/reactify-search-ui/commit/01a796bfc03f4153d8fbbea86a0597ee3c665a94))
|
|
22
|
+
|
|
5
23
|
### [4.3.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.3.0...v4.3.1) (2022-07-21)
|
|
6
24
|
|
|
7
25
|
## [4.3.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.3.0-beta.0...v4.3.0) (2022-07-21)
|
package/dist/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usereactify/search",
|
|
3
3
|
"description": "React UI library for Reactify Search",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.1",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
6
|
+
"main": "dist/src/index.js",
|
|
7
|
+
"types": "dist/src/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
10
|
"README.md",
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare type Props = {
|
|
3
|
-
|
|
4
|
-
debounce?: number;
|
|
3
|
+
/** Placeholder text that is shown when the input is empty (default: "Search for a product...") */
|
|
5
4
|
placeholder?: string;
|
|
5
|
+
/** Set the milliseconds to wait before sending a query, used to reduce queries on each key press (default: 300) */
|
|
6
|
+
debounce?: number;
|
|
7
|
+
/** Set the fuzziness setting for to allow for misspellings, specifies the allowed number of incorrect letters (default: 1) */
|
|
8
|
+
fuzziness?: 0 | 1 | 2 | "AUTO";
|
|
9
|
+
/** Set if search terms should be AND or OR (default: "and") */
|
|
10
|
+
queryFormat?: "and" | "or";
|
|
11
|
+
/** Enable a custom icon within the search input */
|
|
12
|
+
showIcon?: boolean;
|
|
13
|
+
/** Set the icon position when shoeIcon is enabled */
|
|
14
|
+
iconPosition?: "left" | "right";
|
|
15
|
+
/** Component that renders a custom icon to display */
|
|
16
|
+
icon?: JSX.Element;
|
|
17
|
+
/** Enable a clear icon to the right of the search input */
|
|
18
|
+
showClear?: boolean;
|
|
19
|
+
/** Component that renders a custom icon to clear the search input */
|
|
20
|
+
clearIcon?: JSX.Element;
|
|
21
|
+
/** Class name set on the div around the input field, used for custom styling */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** Class name set on the html input field, used for custom styling */
|
|
6
24
|
inputClassName?: string;
|
|
25
|
+
[key: string]: any;
|
|
7
26
|
};
|
|
8
27
|
export declare const SearchInput: React.FC<Props>;
|
|
9
28
|
export {};
|
|
@@ -129,8 +129,10 @@ export interface Filter {
|
|
|
129
129
|
}
|
|
130
130
|
export interface FilterOption {
|
|
131
131
|
displaySize: string;
|
|
132
|
-
displaySliderInterval: string;
|
|
133
132
|
displaySliderStep: string;
|
|
133
|
+
displaySliderPrefix: string;
|
|
134
|
+
displaySliderSuffix: string;
|
|
135
|
+
displayRangeOptions: string[];
|
|
134
136
|
displayType: "multi" | "single" | "range" | "slider";
|
|
135
137
|
displayView: "list" | "check" | "swatch" | "box";
|
|
136
138
|
enabled: boolean;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usereactify/search",
|
|
3
3
|
"description": "React UI library for Reactify Search",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.2",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
6
|
+
"main": "dist/src/index.js",
|
|
7
|
+
"types": "dist/src/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
10
|
"README.md",
|