gatsby-matrix-theme 48.0.6 → 48.0.7

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,3 +1,10 @@
1
+ ## [48.0.7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v48.0.6...v48.0.7) (2024-07-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * updated operator details + theme version ([2d9e752](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2d9e7521fd6d6b504fce6f69ddb3488998342c03))
7
+
1
8
  ## [48.0.6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v48.0.5...v48.0.6) (2024-07-22)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "48.0.6",
3
+ "version": "48.0.7",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@react-icons/all-files": "^4.1.0",
27
27
  "gatsby": "^5.11.0",
28
- "gatsby-core-theme": "35.0.3",
28
+ "gatsby-core-theme": "35.0.5",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-transformer-sharp": "^5.11.0",
31
31
  "prop-types": "15.7.2",
@@ -5,6 +5,7 @@ import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
5
5
  import Link from 'gatsby-core-theme/src/hooks/link';
6
6
  import { imagePrettyUrl, getAltText } from 'gatsby-core-theme/src/helpers/getters';
7
7
  import StarRating from 'gatsby-core-theme/src/components/molecules/star-rating/one-star';
8
+ import MultiStarRating from 'gatsby-core-theme/src/components/molecules/star-rating/';
8
9
  import ReviewLink from 'gatsby-core-theme/src/components/atoms/review-link';
9
10
  import useTranslate from '~hooks/useTranslate/useTranslate';
10
11
  import Author from '../../atoms/author/template-one';
@@ -24,7 +25,7 @@ const OperatorDetails = ({
24
25
  showAuthorAsLink = true,
25
26
  showRibbon = false,
26
27
  contentRibbon = false,
27
- useOneStarRating = true,
28
+ useOneStarRating = false,
28
29
  showRatingLabel = false,
29
30
  showRatingDecimal = false,
30
31
  authorTemplateTwo = false,
@@ -128,15 +129,24 @@ const OperatorDetails = ({
128
129
  ${(!useOneStarRating && styles.starRatings) || ''}
129
130
  ${(showRatingLabel && useOneStarRating && styles.ratinglabel) || ''}`}
130
131
  >
131
- {showRating && (
132
- <StarRating
133
- numOfStars={5}
134
- rating={rating}
135
- showLabel={showRatingLabel}
136
- showDecimal={showRatingDecimal}
137
- showRoundedRating={showRoundedRating}
138
- />
139
- )}
132
+ {showRating &&
133
+ (useOneStarRating ? (
134
+ <StarRating
135
+ numOfStars={5}
136
+ rating={rating}
137
+ showLabel={showRatingLabel}
138
+ showDecimal={showRatingDecimal}
139
+ showRoundedRating={showRoundedRating}
140
+ />
141
+ ) : (
142
+ <MultiStarRating
143
+ numOfStars={5}
144
+ rating={rating}
145
+ showLabel={showRatingLabel}
146
+ showDecimal={showRatingDecimal}
147
+ showRoundedRating={showRoundedRating}
148
+ />
149
+ ))}
140
150
  {showAuthor && (
141
151
  <Author
142
152
  label={useTranslate('byAuthor', 'By')}