@abi-software/map-side-bar 1.3.3 → 1.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "main": "./dist/map-side-bar.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -165,7 +165,6 @@ export class AlgoliaClient {
165
165
  })
166
166
  .then(response => {
167
167
  let keywords = this._processKeywords(response.hits)
168
- console.log(response.hits)
169
168
  resolve(keywords)
170
169
  })
171
170
  })
@@ -23,7 +23,6 @@ export const shownFilters = {
23
23
  * and each of those results is then joined with an AND.
24
24
  * i.e. (color:blue OR color:red) AND (shape:circle OR shape:red) */
25
25
  export function getFilters(selectedFacetArray=undefined) {
26
- console.log('calling getFilters!')
27
26
  // return all datasets if no filter
28
27
  if (selectedFacetArray === undefined) {
29
28
  return 'NOT item.published.status:embargo'
@@ -108,7 +108,6 @@ export default {
108
108
  })
109
109
  .then((data) => {
110
110
  this.contextData = data
111
- console.log(data)
112
111
  this.loading = false
113
112
  })
114
113
  .catch(() => {
@@ -139,8 +139,8 @@ export default {
139
139
  EventBus.$on("PopoverActionClick", (payLoad) => {
140
140
  this.$emit("actionClick", payLoad);
141
141
  })
142
- EventBus.$on('kewordsFound', (payLoad)=> {
143
- this.$emit('searchChanged', {
142
+ EventBus.$on('keywordsFound', (payLoad)=> {
143
+ this.$emit('search-changed', {
144
144
  type: 'keyword-update',
145
145
  value: payLoad
146
146
  })
@@ -193,9 +193,7 @@ export default {
193
193
  // Algolia search
194
194
  this.loadingCards = true
195
195
  this.algoliaClient.keywordsInSearch(getFilters(filters), query).then(keywords => {
196
- console.log('key search complete!')
197
- console.log(keywords)
198
- EventBus.$emit("kewordsFound", keywords)
196
+ EventBus.$emit("keywordsFound", keywords)
199
197
  })
200
198
  this.algoliaClient.search(getFilters(filters), query, this.numberPerPage, this.page).then(searchData => {
201
199
  this.numberOfHits = searchData.total