@blaze-cms/plugin-search-ui 0.139.4-core-styles.1 → 0.140.0-core-variants.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 +5 -2
- package/lib/components/SearchAdmin/RecentSearches/RecentSearches.js +3 -1
- package/lib/components/SearchAdmin/RecentSearches/RecentSearches.js.map +1 -1
- package/lib-es/components/SearchAdmin/RecentSearches/RecentSearches.js +1 -1
- package/lib-es/components/SearchAdmin/RecentSearches/RecentSearches.js.map +1 -1
- package/package.json +6 -6
- package/src/components/SearchAdmin/RecentSearches/RecentSearches.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [0.140.0-core-variants.0](https://github.com/thebyte9/blaze/compare/v0.139.3...v0.140.0-core-variants.0) (2024-02-26)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* change the order from ascending to descending ([#4004](https://github.com/thebyte9/blaze/issues/4004)) ([ee08aa6](https://github.com/thebyte9/blaze/commit/ee08aa6677443743994c74829e8241446cda98a0))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
|
@@ -6,9 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
10
|
require("core-js/modules/es.regexp.exec.js");
|
|
10
11
|
require("core-js/modules/es.string.search.js");
|
|
11
12
|
require("core-js/modules/es.array.map.js");
|
|
13
|
+
require("core-js/modules/es.array.reverse.js");
|
|
12
14
|
var _react = _interopRequireDefault(require("react"));
|
|
13
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
16
|
var RecentSearches = function RecentSearches(_ref) {
|
|
@@ -19,7 +21,7 @@ var RecentSearches = function RecentSearches(_ref) {
|
|
|
19
21
|
className: "list list--search"
|
|
20
22
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
21
23
|
className: "header header--list"
|
|
22
|
-
}, /*#__PURE__*/_react["default"].createElement("h2", null, "Recent searches")), recentSearches.map(function (searchedTerm) {
|
|
24
|
+
}, /*#__PURE__*/_react["default"].createElement("h2", null, "Recent searches")), (0, _toConsumableArray2["default"])(recentSearches).reverse().map(function (searchedTerm) {
|
|
23
25
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
24
26
|
key: searchedTerm,
|
|
25
27
|
role: "button",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecentSearches.js","names":["_react","_interopRequireDefault","require","_propTypes","RecentSearches","_ref","recentSearches","handleSearchTerm","search","createElement","className","map","searchedTerm","key","role","onClick","target","value","propTypes","PropTypes","array","isRequired","func","_default","exports"],"sources":["../../../../src/components/SearchAdmin/RecentSearches/RecentSearches.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst RecentSearches = ({ recentSearches, handleSearchTerm, search }) => (\n <div className=\"list list--search\">\n <div className=\"header header--list\">\n <h2>Recent searches</h2>\n </div>\n {recentSearches.map(searchedTerm => (\n <div\n key={searchedTerm}\n role=\"button\"\n className=\"list__item list__item--search\"\n onClick={() => {\n handleSearchTerm({ target: { value: searchedTerm } });\n search({ value: searchedTerm });\n }}>\n <div className=\"list__item-row list__item-row--search\">\n <i className=\"material-icons\">search</i>\n <div className=\"list__item-text list__item-text--search\">{searchedTerm}</div>\n </div>\n </div>\n ))}\n </div>\n);\n\nRecentSearches.propTypes = {\n recentSearches: PropTypes.array.isRequired,\n handleSearchTerm: PropTypes.func.isRequired,\n search: PropTypes.func.isRequired\n};\n\nexport default RecentSearches;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"RecentSearches.js","names":["_react","_interopRequireDefault","require","_propTypes","RecentSearches","_ref","recentSearches","handleSearchTerm","search","createElement","className","_toConsumableArray2","reverse","map","searchedTerm","key","role","onClick","target","value","propTypes","PropTypes","array","isRequired","func","_default","exports"],"sources":["../../../../src/components/SearchAdmin/RecentSearches/RecentSearches.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst RecentSearches = ({ recentSearches, handleSearchTerm, search }) => (\n <div className=\"list list--search\">\n <div className=\"header header--list\">\n <h2>Recent searches</h2>\n </div>\n {[...recentSearches].reverse().map(searchedTerm => (\n <div\n key={searchedTerm}\n role=\"button\"\n className=\"list__item list__item--search\"\n onClick={() => {\n handleSearchTerm({ target: { value: searchedTerm } });\n search({ value: searchedTerm });\n }}>\n <div className=\"list__item-row list__item-row--search\">\n <i className=\"material-icons\">search</i>\n <div className=\"list__item-text list__item-text--search\">{searchedTerm}</div>\n </div>\n </div>\n ))}\n </div>\n);\n\nRecentSearches.propTypes = {\n recentSearches: PropTypes.array.isRequired,\n handleSearchTerm: PropTypes.func.isRequired,\n search: PropTypes.func.isRequired\n};\n\nexport default RecentSearches;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA;EAAA,IAAMC,cAAc,GAAAD,IAAA,CAAdC,cAAc;IAAEC,gBAAgB,GAAAF,IAAA,CAAhBE,gBAAgB;IAAEC,MAAM,GAAAH,IAAA,CAANG,MAAM;EAAA,oBAChER,MAAA,YAAAS,aAAA;IAAKC,SAAS,EAAC;EAAmB,gBAChCV,MAAA,YAAAS,aAAA;IAAKC,SAAS,EAAC;EAAqB,gBAClCV,MAAA,YAAAS,aAAA,aAAI,iBAAmB,CACpB,CAAC,EACL,IAAAE,mBAAA,aAAIL,cAAc,EAAEM,OAAO,CAAC,CAAC,CAACC,GAAG,CAAC,UAAAC,YAAY;IAAA,oBAC7Cd,MAAA,YAAAS,aAAA;MACEM,GAAG,EAAED,YAAa;MAClBE,IAAI,EAAC,QAAQ;MACbN,SAAS,EAAC,+BAA+B;MACzCO,OAAO,EAAE,SAAAA,QAAA,EAAM;QACbV,gBAAgB,CAAC;UAAEW,MAAM,EAAE;YAAEC,KAAK,EAAEL;UAAa;QAAE,CAAC,CAAC;QACrDN,MAAM,CAAC;UAAEW,KAAK,EAAEL;QAAa,CAAC,CAAC;MACjC;IAAE,gBACFd,MAAA,YAAAS,aAAA;MAAKC,SAAS,EAAC;IAAuC,gBACpDV,MAAA,YAAAS,aAAA;MAAGC,SAAS,EAAC;IAAgB,GAAC,QAAS,CAAC,eACxCV,MAAA,YAAAS,aAAA;MAAKC,SAAS,EAAC;IAAyC,GAAEI,YAAkB,CACzE,CACF,CAAC;EAAA,CACP,CACE,CAAC;AAAA,CACP;AAEDV,cAAc,CAACgB,SAAS,GAAG;EACzBd,cAAc,EAAEe,qBAAS,CAACC,KAAK,CAACC,UAAU;EAC1ChB,gBAAgB,EAAEc,qBAAS,CAACG,IAAI,CAACD,UAAU;EAC3Cf,MAAM,EAAEa,qBAAS,CAACG,IAAI,CAACD;AACzB,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,cAEatB,cAAc"}
|
|
@@ -8,7 +8,7 @@ const RecentSearches = ({
|
|
|
8
8
|
className: "list list--search"
|
|
9
9
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10
10
|
className: "header header--list"
|
|
11
|
-
}, /*#__PURE__*/React.createElement("h2", null, "Recent searches")), recentSearches.map(searchedTerm => /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
}, /*#__PURE__*/React.createElement("h2", null, "Recent searches")), [...recentSearches].reverse().map(searchedTerm => /*#__PURE__*/React.createElement("div", {
|
|
12
12
|
key: searchedTerm,
|
|
13
13
|
role: "button",
|
|
14
14
|
className: "list__item list__item--search",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecentSearches.js","names":["React","PropTypes","RecentSearches","recentSearches","handleSearchTerm","search","createElement","className","map","searchedTerm","key","role","onClick","target","value","propTypes","array","isRequired","func"],"sources":["../../../../src/components/SearchAdmin/RecentSearches/RecentSearches.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst RecentSearches = ({ recentSearches, handleSearchTerm, search }) => (\n <div className=\"list list--search\">\n <div className=\"header header--list\">\n <h2>Recent searches</h2>\n </div>\n {recentSearches.map(searchedTerm => (\n <div\n key={searchedTerm}\n role=\"button\"\n className=\"list__item list__item--search\"\n onClick={() => {\n handleSearchTerm({ target: { value: searchedTerm } });\n search({ value: searchedTerm });\n }}>\n <div className=\"list__item-row list__item-row--search\">\n <i className=\"material-icons\">search</i>\n <div className=\"list__item-text list__item-text--search\">{searchedTerm}</div>\n </div>\n </div>\n ))}\n </div>\n);\n\nRecentSearches.propTypes = {\n recentSearches: PropTypes.array.isRequired,\n handleSearchTerm: PropTypes.func.isRequired,\n search: PropTypes.func.isRequired\n};\n\nexport default RecentSearches;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,MAAMC,cAAc,GAAGA,CAAC;EAAEC,cAAc;EAAEC,gBAAgB;EAAEC;AAAO,CAAC,kBAClEL,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAmB,gBAChCP,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAqB,gBAClCP,KAAA,CAAAM,aAAA,aAAI,iBAAmB,CACpB,CAAC,
|
|
1
|
+
{"version":3,"file":"RecentSearches.js","names":["React","PropTypes","RecentSearches","recentSearches","handleSearchTerm","search","createElement","className","reverse","map","searchedTerm","key","role","onClick","target","value","propTypes","array","isRequired","func"],"sources":["../../../../src/components/SearchAdmin/RecentSearches/RecentSearches.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst RecentSearches = ({ recentSearches, handleSearchTerm, search }) => (\n <div className=\"list list--search\">\n <div className=\"header header--list\">\n <h2>Recent searches</h2>\n </div>\n {[...recentSearches].reverse().map(searchedTerm => (\n <div\n key={searchedTerm}\n role=\"button\"\n className=\"list__item list__item--search\"\n onClick={() => {\n handleSearchTerm({ target: { value: searchedTerm } });\n search({ value: searchedTerm });\n }}>\n <div className=\"list__item-row list__item-row--search\">\n <i className=\"material-icons\">search</i>\n <div className=\"list__item-text list__item-text--search\">{searchedTerm}</div>\n </div>\n </div>\n ))}\n </div>\n);\n\nRecentSearches.propTypes = {\n recentSearches: PropTypes.array.isRequired,\n handleSearchTerm: PropTypes.func.isRequired,\n search: PropTypes.func.isRequired\n};\n\nexport default RecentSearches;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,MAAMC,cAAc,GAAGA,CAAC;EAAEC,cAAc;EAAEC,gBAAgB;EAAEC;AAAO,CAAC,kBAClEL,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAmB,gBAChCP,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAqB,gBAClCP,KAAA,CAAAM,aAAA,aAAI,iBAAmB,CACpB,CAAC,EACL,CAAC,GAAGH,cAAc,CAAC,CAACK,OAAO,CAAC,CAAC,CAACC,GAAG,CAACC,YAAY,iBAC7CV,KAAA,CAAAM,aAAA;EACEK,GAAG,EAAED,YAAa;EAClBE,IAAI,EAAC,QAAQ;EACbL,SAAS,EAAC,+BAA+B;EACzCM,OAAO,EAAEA,CAAA,KAAM;IACbT,gBAAgB,CAAC;MAAEU,MAAM,EAAE;QAAEC,KAAK,EAAEL;MAAa;IAAE,CAAC,CAAC;IACrDL,MAAM,CAAC;MAAEU,KAAK,EAAEL;IAAa,CAAC,CAAC;EACjC;AAAE,gBACFV,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAuC,gBACpDP,KAAA,CAAAM,aAAA;EAAGC,SAAS,EAAC;AAAgB,GAAC,QAAS,CAAC,eACxCP,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAyC,GAAEG,YAAkB,CACzE,CACF,CACN,CACE,CACN;AAEDR,cAAc,CAACc,SAAS,GAAG;EACzBb,cAAc,EAAEF,SAAS,CAACgB,KAAK,CAACC,UAAU;EAC1Cd,gBAAgB,EAAEH,SAAS,CAACkB,IAAI,CAACD,UAAU;EAC3Cb,MAAM,EAAEJ,SAAS,CAACkB,IAAI,CAACD;AACzB,CAAC;AAED,eAAehB,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/plugin-search-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.140.0-core-variants.0",
|
|
4
4
|
"description": "Blaze plugin search ui",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "GPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@blaze-cms/admin-ui-utils": "0.139.
|
|
31
|
-
"@blaze-cms/core-errors": "0.139.
|
|
32
|
-
"@blaze-cms/setup-ui": "0.139.
|
|
30
|
+
"@blaze-cms/admin-ui-utils": "^0.139.0",
|
|
31
|
+
"@blaze-cms/core-errors": "^0.139.0",
|
|
32
|
+
"@blaze-cms/setup-ui": "^0.139.0",
|
|
33
33
|
"@blaze-react/button": "0.5.19",
|
|
34
34
|
"@blaze-react/input": "0.5.30",
|
|
35
35
|
"@blaze-react/utils": "0.5.15",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react-tiny-virtual-list": "2.2.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@blaze-cms/core-ui": "0.139.
|
|
43
|
+
"@blaze-cms/core-ui": "^0.139.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@apollo/client": "3.x",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"lib/*",
|
|
53
53
|
"lib-es/*"
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "bb6dcd8358fc41a71c55313ad3f957e992fc1d81"
|
|
56
56
|
}
|
|
@@ -6,7 +6,7 @@ const RecentSearches = ({ recentSearches, handleSearchTerm, search }) => (
|
|
|
6
6
|
<div className="header header--list">
|
|
7
7
|
<h2>Recent searches</h2>
|
|
8
8
|
</div>
|
|
9
|
-
{recentSearches.map(searchedTerm => (
|
|
9
|
+
{[...recentSearches].reverse().map(searchedTerm => (
|
|
10
10
|
<div
|
|
11
11
|
key={searchedTerm}
|
|
12
12
|
role="button"
|