@usereactify/search 4.2.5-beta.1 → 4.2.7
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 +16 -0
- package/dist/filter/Filter.d.ts +0 -5
- package/dist/filter/Filter.js +0 -5
- package/dist/provider.js +0 -7
- package/dist/sensor/SensorInventoryAvailable.js +32 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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.2.7](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.2.6...v4.2.7) (2022-07-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* only apply inventory sensor to products, not callouts ([7c186b8](https://bitbucket.org/usereactify/reactify-search-ui/commit/7c186b83c9f403f0987ef088714db1438f27cd84))
|
|
11
|
+
|
|
12
|
+
### [4.2.6](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.2.5...v4.2.6) (2022-07-11)
|
|
13
|
+
|
|
14
|
+
### [4.2.5](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.2.4...v4.2.5) (2022-07-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* remove problematic css color "inherit" ([aa304bd](https://bitbucket.org/usereactify/reactify-search-ui/commit/aa304bde76528d54722255b0e38ef732f58218b6))
|
|
20
|
+
|
|
5
21
|
### [4.2.4](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.2.3...v4.2.4) (2022-06-23)
|
|
6
22
|
|
|
7
23
|
|
package/dist/filter/Filter.d.ts
CHANGED
|
@@ -3,11 +3,6 @@ import type { ConfigFilterOption } from "../types/config";
|
|
|
3
3
|
import { useFilterListProps, useFilterCollapsedState } from "../hooks";
|
|
4
4
|
declare type Props = {
|
|
5
5
|
noWrapper?: boolean;
|
|
6
|
-
range?: Array<{
|
|
7
|
-
start: string | number;
|
|
8
|
-
end: string | number;
|
|
9
|
-
label: string;
|
|
10
|
-
}>;
|
|
11
6
|
filter: ConfigFilterOption;
|
|
12
7
|
renderFilterList?: (props: Omit<Props, "renderFilterList"> & {
|
|
13
8
|
filterListProps: ReturnType<typeof useFilterListProps>;
|
package/dist/filter/Filter.js
CHANGED
|
@@ -18,12 +18,10 @@ exports.Filter = void 0;
|
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
|
19
19
|
const MultiList_1 = __importDefault(require("@appbaseio/reactivesearch/lib/components/list/MultiList"));
|
|
20
20
|
const SingleList_1 = __importDefault(require("@appbaseio/reactivesearch/lib/components/list/SingleList"));
|
|
21
|
-
const SingleRange_1 = __importDefault(require("@appbaseio/reactivesearch/lib/components/range/SingleRange"));
|
|
22
21
|
const hooks_1 = require("../hooks");
|
|
23
22
|
const FilterList_1 = require("./FilterList");
|
|
24
23
|
const hooks_2 = require("../hooks");
|
|
25
24
|
const Filter = (props) => {
|
|
26
|
-
var _a;
|
|
27
25
|
const { filter } = props;
|
|
28
26
|
const reactiveFilterListProps = (0, hooks_2.useReactiveFilterListProps)(filter);
|
|
29
27
|
if ("single" === filter.displayType) {
|
|
@@ -32,9 +30,6 @@ const Filter = (props) => {
|
|
|
32
30
|
if ("multi" === filter.displayType) {
|
|
33
31
|
return (react_1.default.createElement(MultiList_1.default, Object.assign({ showCheckbox: false }, reactiveFilterListProps, { render: (reactivesearchFilterProps) => (react_1.default.createElement(FilterListInner, Object.assign({}, props, { reactivesearchFilterProps: reactivesearchFilterProps }))) })));
|
|
34
32
|
}
|
|
35
|
-
if ("range" === filter.displayType) {
|
|
36
|
-
return (react_1.default.createElement(SingleRange_1.default, Object.assign({ showRadio: false, data: (_a = props.range) !== null && _a !== void 0 ? _a : [] }, reactiveFilterListProps)));
|
|
37
|
-
}
|
|
38
33
|
console.log(`filter with display type "${filter.displayType}" not yet supported`);
|
|
39
34
|
return null;
|
|
40
35
|
};
|
package/dist/provider.js
CHANGED
|
@@ -78,13 +78,6 @@ const ConfiguredProvider = (props) => {
|
|
|
78
78
|
fontFamily: "inherit",
|
|
79
79
|
fontSize: "inherit",
|
|
80
80
|
},
|
|
81
|
-
colors: {
|
|
82
|
-
textColor: "inherit",
|
|
83
|
-
primaryTextColor: "inherit",
|
|
84
|
-
primaryColor: "inherit",
|
|
85
|
-
titleColor: "inherit",
|
|
86
|
-
alertColor: "inherit",
|
|
87
|
-
},
|
|
88
81
|
};
|
|
89
82
|
react_1.default.useEffect(() => {
|
|
90
83
|
debug("props", props);
|
|
@@ -13,11 +13,38 @@ const SensorInventoryAvailable = () => {
|
|
|
13
13
|
return null;
|
|
14
14
|
return (react_1.default.createElement(ReactiveComponent_1.default, { componentId: "SensorInventoryAvailable", customQuery: () => ({
|
|
15
15
|
query: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
bool: {
|
|
17
|
+
should: [
|
|
18
|
+
{
|
|
19
|
+
bool: {
|
|
20
|
+
must: [
|
|
21
|
+
{
|
|
22
|
+
term: {
|
|
23
|
+
type: {
|
|
24
|
+
value: "product",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
nested: {
|
|
30
|
+
path: "variants",
|
|
31
|
+
query: {
|
|
32
|
+
match: { "variants.available": true },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
term: {
|
|
41
|
+
type: {
|
|
42
|
+
value: "callout",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
minimum_should_match: "1",
|
|
21
48
|
},
|
|
22
49
|
},
|
|
23
50
|
}) }));
|