@abi-software/map-side-bar 1.4.1-beta.6 → 1.4.3-context-card-disabled

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.4.1-beta.6",
3
+ "version": "1.4.3-context-card-disabled",
4
4
  "main": "./dist/map-side-bar.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -97,7 +97,6 @@ export class AlgoliaClient {
97
97
  let foundLabels = []
98
98
  let uniqueLabels = []
99
99
  let uniqueKeywords = []
100
- window.hits = hits
101
100
  hits.forEach(hit => {
102
101
  if (hit.item && hit.item.keywords) {
103
102
  hit.item.keywords.forEach(keywordObj => {
@@ -167,7 +167,6 @@ export default {
167
167
  },
168
168
  propogateCardAction: function(action){
169
169
  EventBus.$emit("PopoverActionClick", action)
170
- this.$emit('contextUpdate', action)
171
170
  EventBus.$emit("contextUpdate", action) // Pass to mapintegratedvuer
172
171
  },
173
172
  splitDOI: function(doi){
@@ -123,15 +123,9 @@ export default {
123
123
  EventBus.$on("PopoverActionClick", (payLoad) => {
124
124
  this.$emit("actionClick", payLoad);
125
125
  })
126
- EventBus.$on('anatomyFound', (payLoad)=> {
126
+ EventBus.$on('available-facets', (payLoad)=> {
127
127
  this.$emit('search-changed', {
128
- type: 'keyword-update',
129
- value: payLoad
130
- })
131
- })
132
- EventBus.$on('labelsFound', (payLoad)=> {
133
- this.$emit('search-changed', {
134
- type: 'filter-label-update',
128
+ type: 'available-facects',
135
129
  value: payLoad
136
130
  })
137
131
  })
@@ -110,7 +110,7 @@ var initial_state = {
110
110
  start: 0,
111
111
  hasSearched: false,
112
112
  contextCardEntry: undefined,
113
- contextCardEnabled: true,
113
+ contextCardEnabled: false,
114
114
  };
115
115
 
116
116
  export default {
@@ -240,8 +240,10 @@ export default {
240
240
  this.algoliaClient
241
241
  .anatomyInSearch(getFilters(filters), query)
242
242
  .then((anatomy) => {
243
- EventBus.$emit("anatomyFound", anatomy);
244
- EventBus.$emit("labelsFound", this.algoliaClient.anatomyFacetLabels);
243
+ EventBus.$emit("available-facets", {
244
+ 'uberons': anatomy,
245
+ 'labels': this.algoliaClient.anatomyFacetLabels
246
+ });
245
247
  });
246
248
  this.algoliaClient
247
249
  .search(getFilters(filters), query, this.numberPerPage, this.page)