@akinon/projectzero 1.32.0-rc.2 → 1.32.0-rc.3

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.32.0-rc.3
4
+
3
5
  ## 1.32.0-rc.2
4
6
 
5
7
  ## 1.32.0-rc.1
@@ -1,5 +1,21 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.32.0-rc.3
4
+
5
+ ### Minor Changes
6
+
7
+ - 202f84e: ZERO-2569: Fix static keys
8
+
9
+ ### Patch Changes
10
+
11
+ - @akinon/next@1.32.0-rc.3
12
+ - @akinon/pz-b2b@1.32.0-rc.3
13
+ - @akinon/pz-gpay@1.32.0-rc.3
14
+ - @akinon/pz-masterpass@1.32.0-rc.3
15
+ - @akinon/pz-one-click-checkout@1.32.0-rc.3
16
+ - @akinon/pz-otp@1.32.0-rc.3
17
+ - @akinon/pz-pay-on-delivery@1.32.0-rc.3
18
+
3
19
  ## 1.32.0-rc.2
4
20
 
5
21
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.32.0-rc.2",
3
+ "version": "1.32.0-rc.3",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,13 +22,13 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.32.0-rc.2",
26
- "@akinon/pz-b2b": "1.32.0-rc.2",
27
- "@akinon/pz-gpay": "1.32.0-rc.2",
28
- "@akinon/pz-masterpass": "1.32.0-rc.2",
29
- "@akinon/pz-one-click-checkout": "1.32.0-rc.2",
30
- "@akinon/pz-otp": "1.32.0-rc.2",
31
- "@akinon/pz-pay-on-delivery": "1.32.0-rc.2",
25
+ "@akinon/next": "1.32.0-rc.3",
26
+ "@akinon/pz-b2b": "1.32.0-rc.3",
27
+ "@akinon/pz-gpay": "1.32.0-rc.3",
28
+ "@akinon/pz-masterpass": "1.32.0-rc.3",
29
+ "@akinon/pz-one-click-checkout": "1.32.0-rc.3",
30
+ "@akinon/pz-otp": "1.32.0-rc.3",
31
+ "@akinon/pz-pay-on-delivery": "1.32.0-rc.3",
32
32
  "@hookform/resolvers": "2.9.0",
33
33
  "@next/third-parties": "14.1.0",
34
34
  "@react-google-maps/api": "2.17.1",
@@ -52,7 +52,7 @@
52
52
  "yup": "0.32.11"
53
53
  },
54
54
  "devDependencies": {
55
- "@akinon/eslint-plugin-projectzero": "1.32.0-rc.2",
55
+ "@akinon/eslint-plugin-projectzero": "1.32.0-rc.3",
56
56
  "@semantic-release/changelog": "6.0.2",
57
57
  "@semantic-release/exec": "6.0.3",
58
58
  "@semantic-release/git": "10.0.1",
@@ -15,6 +15,7 @@ import {
15
15
  } from '@theme/redux/reducers/category';
16
16
  import CategoryActiveFilters from '@theme/views/category/category-active-filters';
17
17
  import { useEffect, useMemo } from 'react';
18
+ import { commonProductAttributes } from '@theme/settings';
18
19
 
19
20
  const COMPONENT_TYPES = {
20
21
  [WIDGET_TYPE.category]: Radio,
@@ -74,6 +75,10 @@ export const Filters = (props: Props) => {
74
75
  }
75
76
  }, [router]);
76
77
 
78
+ const sizeKey = commonProductAttributes.find(
79
+ (item) => item.translationKey === 'size'
80
+ ).key;
81
+
77
82
  return (
78
83
  <div
79
84
  className={clsx(
@@ -95,7 +100,7 @@ export const Filters = (props: Props) => {
95
100
  let Component = null;
96
101
  const choices = [...facet.data.choices];
97
102
 
98
- if (facet.key === 'integration_SizeId') {
103
+ if (facet.key === sizeKey) {
99
104
  // If it's a size facet, use the custom size filter component
100
105
  Component = SizeFilter;
101
106
 
@@ -121,8 +126,8 @@ export const Filters = (props: Props) => {
121
126
  >
122
127
  <div
123
128
  className={clsx(
124
- 'flex gap-4',
125
- facet.key === 'integration_SizeId' ? 'flex-row' : 'flex-col' // TODO: This condition must be refactor to a better way
129
+ 'flex gap-4 flex-wrap',
130
+ facet.key === sizeKey ? 'flex-row' : 'flex-col' // TODO: This condition must be refactor to a better way
126
131
  )}
127
132
  >
128
133
  {choices.map((choice, index) => (
@@ -131,13 +136,13 @@ export const Filters = (props: Props) => {
131
136
  data={choice}
132
137
  name={facet.key}
133
138
  onChange={() => {
134
- if (facet.key !== 'integration_SizeId') {
139
+ if (facet.key !== sizeKey) {
135
140
  // TODO: This condition must be refactor to a better way
136
141
  handleSelectFilter({ facet, choice });
137
142
  }
138
143
  }}
139
144
  onClick={() => {
140
- if (facet.key === 'integration_SizeId') {
145
+ if (facet.key === sizeKey) {
141
146
  // TODO: This condition must be refactor to a better way
142
147
  handleSelectFilter({ facet, choice });
143
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.32.0-rc.2",
3
+ "version": "1.32.0-rc.3",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {