gatsby-matrix-theme 25.1.3 → 25.1.5
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 +20 -0
- package/package.json +2 -2
- package/src/components/molecules/toplist/row/variant-one.js +24 -1
- package/src/components/molecules/toplist/row/variant-one.module.scss +29 -14
- package/storybook/public/{134.19897eea.iframe.bundle.js → 134.8ffd6917.iframe.bundle.js} +3 -3
- package/storybook/public/{134.19897eea.iframe.bundle.js.map → 134.8ffd6917.iframe.bundle.js.map} +1 -1
- package/storybook/public/iframe.html +1 -1
- /package/storybook/public/{134.19897eea.iframe.bundle.js.LICENSE.txt → 134.8ffd6917.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [25.1.5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v25.1.4...v25.1.5) (2023-06-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* updated to the latest core version ([cd21d03](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/cd21d03faa79c4f21187b00eecc9f2cfbcfbb933))
|
|
7
|
+
|
|
8
|
+
## [25.1.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v25.1.3...v25.1.4) (2023-06-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add author image and checkmark to toplist ([302accf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/302accf8637e0309a3000dc7a23df33b2aabb99f))
|
|
14
|
+
* add more checkers to show author image ([113afd7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/113afd7730485f1632fd7a0b50ccb2c48ac28c64))
|
|
15
|
+
* update core theme ([fc6dc80](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fc6dc802e3ec8e8494fd3acf43427f657a407bb1))
|
|
16
|
+
* update star rating ([94af34e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/94af34e4538187a3d5d9a219635d561c0dee7414))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* Merge branch 'tm-3223-toplist' into 'master' ([aa1d457](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/aa1d45740db5e3e95cb2f881ec420e9c51fe032f))
|
|
20
|
+
|
|
1
21
|
## [25.1.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v25.1.2...v25.1.3) (2023-06-05)
|
|
2
22
|
|
|
3
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "25.1.
|
|
3
|
+
"version": "25.1.5",
|
|
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": "^4.20.0",
|
|
28
|
-
"gatsby-core-theme": "22.0.
|
|
28
|
+
"gatsby-core-theme": "22.0.9",
|
|
29
29
|
"gatsby-plugin-sharp": "^4.10.2",
|
|
30
30
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
31
31
|
"gatsby-transformer-sharp": "^4.10.0",
|
|
@@ -31,6 +31,7 @@ export default function Row({
|
|
|
31
31
|
number = 1,
|
|
32
32
|
index,
|
|
33
33
|
activeAuthor = false,
|
|
34
|
+
showAuthorImage = false,
|
|
34
35
|
isPPC = false,
|
|
35
36
|
showLaunchDate = true,
|
|
36
37
|
showCtaReviewLink = false,
|
|
@@ -38,7 +39,10 @@ export default function Row({
|
|
|
38
39
|
itemRefs,
|
|
39
40
|
endLink = false,
|
|
40
41
|
template,
|
|
42
|
+
icon = null,
|
|
41
43
|
}) {
|
|
44
|
+
const { authorImage } = item;
|
|
45
|
+
const { authorImageObject } = item;
|
|
42
46
|
const result = item.authorName?.split(/\s+/);
|
|
43
47
|
const itemName = item.name;
|
|
44
48
|
const itemRating = item.rating;
|
|
@@ -124,7 +128,26 @@ export default function Row({
|
|
|
124
128
|
>
|
|
125
129
|
{itemName}
|
|
126
130
|
</a>
|
|
127
|
-
<
|
|
131
|
+
<div className={styles.ratingWithAuthor}>
|
|
132
|
+
<StarRating numOfStars={5} rating={itemRating} showLabel />
|
|
133
|
+
{showAuthorImage && (authorImage || authorImageObject) && (
|
|
134
|
+
<div className={styles.authorAndIcon}>
|
|
135
|
+
<LazyImage
|
|
136
|
+
alt={getAltText(authorImage, item.name)}
|
|
137
|
+
src={imagePrettyUrl(authorImageObject?.filename || authorImage, 80, 80)}
|
|
138
|
+
width={20.3}
|
|
139
|
+
height={20.3}
|
|
140
|
+
/>
|
|
141
|
+
<LazyImage
|
|
142
|
+
alt="check-mark"
|
|
143
|
+
src={icon || '../../../../images/verify.svg'}
|
|
144
|
+
width={10.15}
|
|
145
|
+
height={10.15}
|
|
146
|
+
/>
|
|
147
|
+
</div>
|
|
148
|
+
)}
|
|
149
|
+
</div>
|
|
150
|
+
|
|
128
151
|
{!isPPC && !showCtaReviewLink && reviewPath && (
|
|
129
152
|
<ReviewLink
|
|
130
153
|
className={`${styles?.reviewLink || ''} toplist-variant-one-gtm`}
|
|
@@ -89,18 +89,18 @@
|
|
|
89
89
|
order: 1;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
>a {
|
|
92
|
+
> a {
|
|
93
93
|
display: flex;
|
|
94
94
|
flex: 0 0 8rem;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
img {
|
|
97
|
+
> img {
|
|
98
98
|
width: 8rem;
|
|
99
99
|
height: 8rem;
|
|
100
100
|
border-radius: 0.8rem;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
>div {
|
|
103
|
+
> div {
|
|
104
104
|
@include flex-align(flex-start, space-between);
|
|
105
105
|
flex-direction: column;
|
|
106
106
|
gap: 0.8rem;
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
line-height: 22px;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
>div {
|
|
115
|
+
> div {
|
|
116
116
|
border: 0;
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -121,10 +121,26 @@
|
|
|
121
121
|
font-size: 13px;
|
|
122
122
|
line-height: 16px;
|
|
123
123
|
}
|
|
124
|
+
|
|
125
|
+
> .ratingWithAuthor {
|
|
126
|
+
display: flex;
|
|
127
|
+
gap: 8px;
|
|
128
|
+
> div {
|
|
129
|
+
border: 0;
|
|
130
|
+
}
|
|
131
|
+
.authorAndIcon {
|
|
132
|
+
position: relative;
|
|
133
|
+
> img:last-child {
|
|
134
|
+
position: absolute;
|
|
135
|
+
bottom: 2px;
|
|
136
|
+
right: -1px;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
124
140
|
}
|
|
125
141
|
}
|
|
126
142
|
|
|
127
|
-
>a.bonus {
|
|
143
|
+
> a.bonus {
|
|
128
144
|
@include flex-direction(column);
|
|
129
145
|
gap: 0.8rem;
|
|
130
146
|
padding-top: 0;
|
|
@@ -215,7 +231,7 @@
|
|
|
215
231
|
}
|
|
216
232
|
}
|
|
217
233
|
|
|
218
|
-
>ul,
|
|
234
|
+
> ul,
|
|
219
235
|
.launchDate {
|
|
220
236
|
@include flex-align(center, center);
|
|
221
237
|
}
|
|
@@ -238,7 +254,7 @@
|
|
|
238
254
|
}
|
|
239
255
|
}
|
|
240
256
|
|
|
241
|
-
>a:not(.bonus) {
|
|
257
|
+
> a:not(.bonus) {
|
|
242
258
|
@include flex-align(center, center);
|
|
243
259
|
width: 100%;
|
|
244
260
|
word-break: inherit;
|
|
@@ -254,7 +270,7 @@
|
|
|
254
270
|
}
|
|
255
271
|
}
|
|
256
272
|
|
|
257
|
-
>div:last-child {
|
|
273
|
+
> div:last-child {
|
|
258
274
|
border-radius: 0 0 var(--border-radius) 0;
|
|
259
275
|
color: var(--color-34);
|
|
260
276
|
font-size: 0.8rem;
|
|
@@ -333,7 +349,7 @@
|
|
|
333
349
|
padding-left: 0;
|
|
334
350
|
}
|
|
335
351
|
|
|
336
|
-
>div {
|
|
352
|
+
> div {
|
|
337
353
|
width: 80%;
|
|
338
354
|
margin: 0 auto;
|
|
339
355
|
}
|
|
@@ -349,12 +365,12 @@
|
|
|
349
365
|
order: unset;
|
|
350
366
|
grid-column: 1;
|
|
351
367
|
|
|
352
|
-
|
|
368
|
+
> * {
|
|
353
369
|
padding-right: 0 !important;
|
|
354
370
|
}
|
|
355
371
|
}
|
|
356
372
|
|
|
357
|
-
a>div {
|
|
373
|
+
a > div {
|
|
358
374
|
width: 100%;
|
|
359
375
|
text-align: center;
|
|
360
376
|
@include flex-align(center, flex-start);
|
|
@@ -401,13 +417,12 @@
|
|
|
401
417
|
margin-right: 2.4rem;
|
|
402
418
|
display: flex;
|
|
403
419
|
flex-direction: column;
|
|
404
|
-
|
|
405
420
|
}
|
|
406
421
|
|
|
407
422
|
.activeAuthor {
|
|
408
423
|
font-size: 10px;
|
|
409
424
|
|
|
410
|
-
>a {
|
|
425
|
+
> a {
|
|
411
426
|
font-size: 10px;
|
|
412
427
|
}
|
|
413
|
-
}
|
|
428
|
+
}
|