hds-web 1.36.5 → 1.36.6
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/dist/index.es.js +5 -5
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/HDS/helpers/AlgoliaSearch/constants.js +1 -1
- package/src/HDS/helpers/AlgoliaSearch/search.js +2 -2
- package/src/HDS/helpers/AlgoliaSearch/searchresults.js +1 -1
- package/src/HDS/helpers/AlgoliaSearch/searchwrapper.js +8 -5
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
export const INDEX_TYPES = Object.freeze({
|
2
2
|
All: "All",
|
3
|
+
events: "events",
|
3
4
|
//Website: "website",
|
4
5
|
blog: "blog",
|
5
6
|
docs: "docs",
|
6
7
|
learn: "learn",
|
7
|
-
events: "events",
|
8
8
|
// tutorials: "Tutorials",
|
9
9
|
// case_studies: "Case studies",
|
10
10
|
// events: "Events",
|
@@ -3,8 +3,8 @@ import { useEffect, useState } from "react";
|
|
3
3
|
import SearchOverlay from "./searchoverlay";
|
4
4
|
import { Icon } from "../../components/common-components";
|
5
5
|
export default function Search(props) {
|
6
|
-
|
7
|
-
const [showSearch, setShowSearch] = useState(true);
|
6
|
+
const [showSearch, setShowSearch] = useState(false);
|
7
|
+
// const [showSearch, setShowSearch] = useState(true);
|
8
8
|
|
9
9
|
const handleSearchWithKeyboard = (e) => {
|
10
10
|
if (e.key === "/" || e.key === "Escape") {
|
@@ -86,7 +86,7 @@ const HitsInIndex = ({ index, show }) => (
|
|
86
86
|
<Fragment>
|
87
87
|
<CustomHitsHeader
|
88
88
|
indexTitle={index.title}
|
89
|
-
showSeparator={index.type !== INDEX_TYPES.
|
89
|
+
showSeparator={index.type !== INDEX_TYPES.events}
|
90
90
|
allIndex={index.type}
|
91
91
|
/>
|
92
92
|
<HitsByIndexType indexType={index.type} />
|
@@ -145,12 +145,15 @@ const IndexTypeFilter = ({ activeIndexTypes, setActiveIndexTypes }) => {
|
|
145
145
|
);
|
146
146
|
};
|
147
147
|
|
148
|
+
let ALGOLIA_APP_ID = `WCBB1VVLRC`;
|
149
|
+
let ALGOLIA_SEARCH_KEY = `baf43aa3921858bc144d0fe5ce85b526`;
|
150
|
+
|
148
151
|
export default function SearchWrapper({ indices, ...props }) {
|
149
|
-
let ALGOLIA_APP_ID, ALGOLIA_SEARCH_KEY;
|
150
|
-
if (props.ALGOLIA_APP_ID && props.ALGOLIA_SEARCH_KEY) {
|
151
|
-
|
152
|
-
|
153
|
-
}
|
152
|
+
// let ALGOLIA_APP_ID, ALGOLIA_SEARCH_KEY;
|
153
|
+
// if (props.ALGOLIA_APP_ID && props.ALGOLIA_SEARCH_KEY) {
|
154
|
+
// ALGOLIA_APP_ID = props.ALGOLIA_APP_ID;
|
155
|
+
// ALGOLIA_SEARCH_KEY = props.ALGOLIA_SEARCH_KEY;
|
156
|
+
// }
|
154
157
|
|
155
158
|
const algoliaClient = algoliasearch(ALGOLIA_APP_ID, ALGOLIA_SEARCH_KEY);
|
156
159
|
|