@usereactify/search 5.46.0 → 5.47.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
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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
|
+
## [5.47.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/release-v5.46.1...release-v5.47.0) (2024-01-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* filter products by published market when market active ([333b931](https://bitbucket.org/usereactify/reactify-search-ui/commit/333b931ee3affbbe988b44237b8f1b1e7b858e14))
|
|
11
|
+
|
|
12
|
+
### [5.46.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/release-v5.46.0...release-v5.46.1) (2024-01-12)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* bump @appbaseio/reactivesearch ([f7328a9](https://bitbucket.org/usereactify/reactify-search-ui/commit/f7328a9570886bda40a57f72b55de522939e2e1b))
|
|
18
|
+
|
|
5
19
|
## [5.46.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/release-v5.45.0...release-v5.46.0) (2024-01-12)
|
|
6
20
|
|
|
7
21
|
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usereactify/search",
|
|
3
3
|
"description": "React UI library for Reactify Search",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.47.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"types": "dist/src/index.d.ts",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"react-slider": "2.0.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@appbaseio/reactivesearch": "3.
|
|
42
|
+
"@appbaseio/reactivesearch": "3.45.0",
|
|
43
43
|
"react": "17 - 18"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@appbaseio/reactivesearch": "3.
|
|
46
|
+
"@appbaseio/reactivesearch": "3.45.0",
|
|
47
47
|
"@appbaseio/reactivecore": "9.8.0",
|
|
48
48
|
"@babel/plugin-transform-typescript": "7.18.12",
|
|
49
49
|
"@commitlint/cli": "13.2.0",
|
|
@@ -9,16 +9,36 @@ const ReactiveComponent_1 = __importDefault(require("@appbaseio/reactivesearch/l
|
|
|
9
9
|
const hooks_1 = require("../../hooks");
|
|
10
10
|
const SensorPublished = () => {
|
|
11
11
|
const flagsHook = (0, hooks_1.useFlags)();
|
|
12
|
+
const { options } = (0, hooks_1.useReactifySearchContext)();
|
|
12
13
|
if (!flagsHook.flags["reactify-search:flag_sensor_published"]) {
|
|
13
14
|
return null;
|
|
14
15
|
}
|
|
15
|
-
return (react_1.default.createElement(ReactiveComponent_1.default, { componentId: "SensorPublished", customQuery: () =>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
return (react_1.default.createElement(ReactiveComponent_1.default, { componentId: "SensorPublished", customQuery: () => {
|
|
17
|
+
if (options.market) {
|
|
18
|
+
return {
|
|
19
|
+
query: {
|
|
20
|
+
bool: {
|
|
21
|
+
must: [{
|
|
22
|
+
match: {
|
|
23
|
+
markets: options.market,
|
|
24
|
+
},
|
|
25
|
+
}, {
|
|
26
|
+
match: {
|
|
27
|
+
published: true,
|
|
28
|
+
},
|
|
29
|
+
}]
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
query: {
|
|
36
|
+
match: {
|
|
37
|
+
published: true,
|
|
38
|
+
},
|
|
19
39
|
},
|
|
20
|
-
}
|
|
21
|
-
}
|
|
40
|
+
};
|
|
41
|
+
} }));
|
|
22
42
|
};
|
|
23
43
|
exports.SensorPublished = SensorPublished;
|
|
24
44
|
//# sourceMappingURL=SensorPublished.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SensorPublished.js","sourceRoot":"","sources":["../../../../src/components/Sensor/SensorPublished.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,yHAAiG;AAEjG,
|
|
1
|
+
{"version":3,"file":"SensorPublished.js","sourceRoot":"","sources":["../../../../src/components/Sensor/SensorPublished.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,yHAAiG;AAEjG,uCAAiE;AAE1D,MAAM,eAAe,GAAa,GAAG,EAAE;IAC5C,MAAM,SAAS,GAAG,IAAA,gBAAQ,GAAE,CAAC;IAC7B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,gCAAwB,GAAE,CAAC;IAE/C,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,uCAAuC,CAAC,EAAE;QAC7D,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,8BAAC,2BAAiB,IAChB,WAAW,EAAC,iBAAiB,EAC7B,WAAW,EAAE,GAAG,EAAE;YAChB,IAAI,OAAO,CAAC,MAAM,EAAE;gBAClB,OAAO;oBACL,KAAK,EAAE;wBACL,IAAI,EAAE;4BACJ,IAAI,EAAC,CAAC;oCACJ,KAAK,EAAE;wCACL,OAAO,EAAE,OAAO,CAAC,MAAM;qCACxB;iCACF,EAAC;oCACA,KAAK,EAAE;wCACL,SAAS,EAAE,IAAI;qCAChB;iCACF,CAAC;yBACH;qBACF;iBACF,CAAC;aACH;YAED,OAAO;gBACL,KAAK,EAAE;oBACL,KAAK,EAAE;wBACL,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF,CAAA;QACH,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAxCW,QAAA,eAAe,mBAwC1B","sourcesContent":["import React from \"react\";\nimport ReactiveComponent from \"@appbaseio/reactivesearch/lib/components/basic/ReactiveComponent\";\n\nimport { useFlags, useReactifySearchContext } from \"../../hooks\";\n\nexport const SensorPublished: React.FC = () => {\n const flagsHook = useFlags();\n const { options } = useReactifySearchContext();\n\n if (!flagsHook.flags[\"reactify-search:flag_sensor_published\"]) {\n return null;\n }\n\n return (\n <ReactiveComponent\n componentId=\"SensorPublished\"\n customQuery={() => {\n if (options.market) {\n return {\n query: {\n bool: {\n must:[{\n match: {\n markets: options.market,\n },\n },{\n match: {\n published: true,\n },\n }]\n },\n },\n };\n }\n\n return {\n query: {\n match: {\n published: true,\n },\n },\n }\n }}\n />\n );\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usereactify/search",
|
|
3
3
|
"description": "React UI library for Reactify Search",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.47.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"types": "dist/src/index.d.ts",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"react-slider": "2.0.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@appbaseio/reactivesearch": "3.
|
|
42
|
+
"@appbaseio/reactivesearch": "3.45.0",
|
|
43
43
|
"react": "17 - 18"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@appbaseio/reactivesearch": "3.
|
|
46
|
+
"@appbaseio/reactivesearch": "3.45.0",
|
|
47
47
|
"@appbaseio/reactivecore": "9.8.0",
|
|
48
48
|
"@babel/plugin-transform-typescript": "7.18.12",
|
|
49
49
|
"@commitlint/cli": "13.2.0",
|