@riosst100/pwa-marketplace 2.5.9 → 2.6.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riosst100/pwa-marketplace",
3
3
  "author": "riosst100@gmail.com",
4
- "version": "2.5.9",
4
+ "version": "2.6.0",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
@@ -60,9 +60,9 @@ const FilterTop = props => {
60
60
  typeof filterElement.getBoundingClientRect === 'function'
61
61
  ) {
62
62
  const filterTop = filterElement.getBoundingClientRect().top;
63
- const windowScrollY =
64
- window.scrollY + filterTop - SCROLL_OFFSET;
65
- window.scrollTo(0, windowScrollY);
63
+ // const windowScrollY =
64
+ // window.scrollY + filterTop - SCROLL_OFFSET;
65
+ // window.scrollTo(0, windowScrollY);
66
66
  }
67
67
 
68
68
  handleApply(...args);
@@ -153,8 +153,10 @@ export const useFilterSidebar = props => {
153
153
  // Add frontend input type
154
154
  frontendInput.set(group, null);
155
155
  // add items
156
- for (const { label, value, path } of options) {
157
- items.push({ title: stripHtml(label), value, path });
156
+ for (const { label, value, path, count } of options) {
157
+ if (count > 0) {
158
+ items.push({ title: stripHtml(label), value, path, count });
159
+ }
158
160
  }
159
161
  }
160
162
  itemsByGroup.set(group, items);
@@ -20,9 +20,9 @@ const CurrentFilters = props => {
20
20
  const { title, value } = item || {};
21
21
  const key = `${group}::${title}_${value}`;
22
22
 
23
- const customAttributeLandingPage = ['bricks_categories','sc_sports_categories','card_game','card_set', 'sc_baseball_release','auction','special_price','lof_preorder','sc_baseball_inserts','sc_baseball_parallel','sc_set_type'];
23
+ const customAttributeLandingPage = ['bricks_categories','sc_sports_categories','card_game', 'sc_baseball_release','auction','special_price','lof_preorder','sc_baseball_inserts','sc_baseball_parallel','sc_set_type'];
24
24
 
25
- // if (!customAttributeLandingPage.includes(group)) {
25
+ if (!customAttributeLandingPage.includes(group)) {
26
26
  elements.push(
27
27
  <li key={key} className={classes.item}>
28
28
  <CurrentFilter
@@ -34,7 +34,7 @@ const CurrentFilters = props => {
34
34
  />
35
35
  </li>
36
36
  );
37
- // }
37
+ }
38
38
  }
39
39
  }
40
40
 
@@ -49,9 +49,9 @@ const FilterSidebar = props => {
49
49
  typeof filterElement.getBoundingClientRect === 'function'
50
50
  ) {
51
51
  const filterTop = filterElement.getBoundingClientRect().top;
52
- const windowScrollY =
53
- window.scrollY + filterTop - SCROLL_OFFSET;
54
- window.scrollTo(0, windowScrollY);
52
+ // const windowScrollY =
53
+ // window.scrollY + filterTop - SCROLL_OFFSET;
54
+ // window.scrollTo(0, windowScrollY);
55
55
  }
56
56
 
57
57
  handleApply(...args);
@@ -8,7 +8,7 @@
8
8
  composes: z-foreground from global;
9
9
  grid-template-rows: 1fr 7rem;
10
10
 
11
- composes: lg_grid from global;
11
+ composes: lg_block from global;
12
12
  composes: border from global;
13
13
  composes: border-gray-100 from global;
14
14
  composes: shadow-type-1 from global;