gatsby-core-theme 44.4.55 → 44.4.57
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,17 @@
|
|
|
1
|
+
## [44.4.57](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.56...v44.4.57) (2025-09-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added option to include toplist in schema ([f335572](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f3355722385dc2c9cc27de4f5b4ddf9b3728bc36))
|
|
7
|
+
|
|
8
|
+
## [44.4.56](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.55...v44.4.56) (2025-09-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update checkbox ([6787100](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/6787100195fd2613a874d876c6f8f8af7e395ba4))
|
|
14
|
+
|
|
1
15
|
## [44.4.55](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.54...v44.4.55) (2025-09-09)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
display: block;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
input:not(:placeholder-shown):invalid, textarea:not(:placeholder-shown):invalid{
|
|
293
|
+
input:not(:placeholder-shown, [type="checkbox"]):invalid, textarea:not(:placeholder-shown):invalid{
|
|
294
294
|
border: 1.5px solid var(--comment-input-error, #DD4B39) !important;
|
|
295
295
|
}
|
|
296
296
|
|
|
@@ -323,11 +323,62 @@
|
|
|
323
323
|
grid-template-columns: 1.3rem 1fr;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
input[type="checkbox"]
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
326
|
+
input[type="checkbox"]{
|
|
327
|
+
appearance: none;
|
|
328
|
+
appearance: none;
|
|
329
|
+
appearance: none;
|
|
330
|
+
padding: 0 !important;
|
|
331
|
+
outline: none;
|
|
332
|
+
position: relative;
|
|
333
|
+
width: 1.3rem;
|
|
334
|
+
height: 1.3rem;
|
|
335
|
+
border: .15rem solid var(--comment-checkbox-border, #515156) !important;
|
|
336
|
+
background-color: var(--comment-checkbox-bg, #F2EFEC) !important;;
|
|
337
|
+
overflow: hidden;
|
|
338
|
+
border-radius: 0;
|
|
339
|
+
cursor: pointer;
|
|
340
|
+
|
|
341
|
+
&::before {
|
|
342
|
+
content: '';
|
|
343
|
+
color: #fff !important;
|
|
344
|
+
position: absolute;
|
|
345
|
+
inset: 0;
|
|
346
|
+
background-size: contain;
|
|
347
|
+
background-position: center center;
|
|
348
|
+
background-repeat: no-repeat;
|
|
349
|
+
border-radius: 2px;
|
|
350
|
+
transform: scale(0);
|
|
351
|
+
transform: scale(0);
|
|
352
|
+
transition: -webkit-transform 0.25s ease-in-out;
|
|
353
|
+
transition: -webkit-transform 0.25s ease-in-out;
|
|
354
|
+
transition: transform 0.25s ease-in-out;
|
|
355
|
+
transition: transform 0.25s ease-in-out, -webkit-transform 0.25s ease-in-out;
|
|
356
|
+
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
|
357
|
+
filter: brightness(0) invert(1);
|
|
358
|
+
background-color: #fff;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&:checked{
|
|
362
|
+
background-color: var(--comment-checkbox-border, #515156) !important;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
&:checked::before {
|
|
366
|
+
transform: scale(.7);
|
|
367
|
+
transform: scale(.7);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
+ label{
|
|
371
|
+
font-size: 1.4rem;
|
|
372
|
+
font-weight: 400;
|
|
373
|
+
line-height: 2.2rem;
|
|
374
|
+
|
|
375
|
+
@include min(tablet){
|
|
376
|
+
font-size: 1.6rem;
|
|
377
|
+
font-weight: 400;
|
|
378
|
+
line-height: 2.6rem;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
331
382
|
|
|
332
383
|
.alertDanger, .alertSuccess, .alertWarning {
|
|
333
384
|
background-color: var(--alert-error-bg, #FEE2E2);
|
package/src/constants/schema.js
CHANGED
package/src/helpers/schema.js
CHANGED
|
@@ -218,6 +218,7 @@ export function processSpeakableModules(modules) {
|
|
|
218
218
|
|
|
219
219
|
export function webPageSchema(page, pageImage) {
|
|
220
220
|
const speakAbleModules = processSpeakableModules(page?.sections?.main?.modules || []);
|
|
221
|
+
const toplistModule = page?.sections?.main?.modules && page?.sections?.main?.modules.find((module) => module.name === 'top_list');
|
|
221
222
|
|
|
222
223
|
const schema = {
|
|
223
224
|
'@context': 'https://schema.org',
|
|
@@ -235,6 +236,37 @@ export function webPageSchema(page, pageImage) {
|
|
|
235
236
|
url: `${process.env.GATSBY_SITE_URL}`,
|
|
236
237
|
inLanguage: getLanguage(page?.language),
|
|
237
238
|
},
|
|
239
|
+
hasPart: SchemaConstant.includeToplistSchema && toplistModule?.items?.[0]?.items ?
|
|
240
|
+
toplistModule?.items?.[0]?.items.slice(0, 10).map((item, index) => ({
|
|
241
|
+
'@type': 'Recommendation',
|
|
242
|
+
position: index + 1,
|
|
243
|
+
reviewRating: {
|
|
244
|
+
'@type': 'Rating',
|
|
245
|
+
worstRating: 1,
|
|
246
|
+
bestRating: 5,
|
|
247
|
+
ratingValue: item?.rating,
|
|
248
|
+
},
|
|
249
|
+
author: {
|
|
250
|
+
"@type": "Person",
|
|
251
|
+
name: item?.author_name || page?.author?.name,
|
|
252
|
+
jobTitle: item?.author_title || page?.author?.author_title,
|
|
253
|
+
email: item?.author_email || page?.author?.email_address,
|
|
254
|
+
image: (item?.author_image || page?.author?.image) ? `${process.env.IMAGE_CDN_URL}/${item?.author_image || page?.author?.image}` : '',
|
|
255
|
+
sameAs: item?.author_same_as ? item?.author_same_as
|
|
256
|
+
.map((socialLink) => socialLink) : [
|
|
257
|
+
page?.author?.linkedin_profile,
|
|
258
|
+
page?.author?.twitter_profile,
|
|
259
|
+
page?.author?.facebook_profile,
|
|
260
|
+
page?.author?.instagram_profile,
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
itemReviewed: {
|
|
264
|
+
"@type": "OnlineBusiness",
|
|
265
|
+
name: item?.name,
|
|
266
|
+
url: item?.review_link ? `${process.env.GATSBY_SITE_URL}${item?.review_link}` : '',
|
|
267
|
+
image: item?.logo?.filename ? `${process.env.IMAGE_CDN_URL}/${item?.logo?.filename}` : '',
|
|
268
|
+
}
|
|
269
|
+
})) : '',
|
|
238
270
|
reviewedBy: page?.reviewer_id
|
|
239
271
|
? {
|
|
240
272
|
'@type': 'Person',
|