gatsby-core-theme 20.0.2 → 20.0.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,3 +1,11 @@
|
|
|
1
|
+
## [20.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v20.0.2...v20.0.3) (2023-04-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* preview operator review pages ([98d853f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/98d853f0bbead6363014459ebbbc254c7f1a2be4))
|
|
7
|
+
* preview operator review pages ([094954d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/094954df51989e44b52513523d050e100d7523a7))
|
|
8
|
+
|
|
1
9
|
## [20.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v20.0.1...v20.0.2) (2023-04-13)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
|
@@ -110,7 +110,7 @@ export default function AuthorBox({
|
|
|
110
110
|
<div
|
|
111
111
|
ref={biographyRef}
|
|
112
112
|
className={`${styles.biography} ${
|
|
113
|
-
author?.biography
|
|
113
|
+
author?.biography?.split(' ').length > 30 && styles.showReadMore
|
|
114
114
|
}`}
|
|
115
115
|
role="button"
|
|
116
116
|
onClick={toggleReadMore}
|
|
@@ -119,7 +119,7 @@ export default function AuthorBox({
|
|
|
119
119
|
tabIndex={0}
|
|
120
120
|
dangerouslySetInnerHTML={{
|
|
121
121
|
__html:
|
|
122
|
-
author?.biography
|
|
122
|
+
author?.biography?.split(' ').length > 30 && isReadMore
|
|
123
123
|
? `${textWordsLimit(author?.biography, 30)} <span class='${
|
|
124
124
|
styles.contReadText
|
|
125
125
|
}'>...${translate(translations, 'cont_read', 'continue reading')}</span>`
|
|
@@ -259,13 +259,13 @@ export default {
|
|
|
259
259
|
prefilledMarketModules = data.prefilled_market_modules || {};
|
|
260
260
|
prefilledMarketModulesRaw = cloneDeep(data.prefilled_market_modules);
|
|
261
261
|
Object.keys(transformedPages[market]).forEach((pageType) => {
|
|
262
|
-
transformedPages[market][pageType].forEach((page, index) => {
|
|
262
|
+
transformedPages[market][pageType].forEach(async (page, index) => {
|
|
263
263
|
// process page extra fields
|
|
264
264
|
page.extra_fields && processExtraFields(page.extra_fields);
|
|
265
265
|
updatePlaceholders(page, data);
|
|
266
266
|
|
|
267
267
|
// set page relation
|
|
268
|
-
processRelations(page, pageType, transformedPages, market, data, index);
|
|
268
|
+
await processRelations(page, pageType, transformedPages, market, data, index);
|
|
269
269
|
|
|
270
270
|
// add author object to page
|
|
271
271
|
if (page.author_id !== null && data.authors[page.author_id]) {
|
|
@@ -354,7 +354,12 @@ export default {
|
|
|
354
354
|
cloneDeep(prefilledMarketModules[item.value_id])
|
|
355
355
|
);
|
|
356
356
|
} else {
|
|
357
|
-
if (
|
|
357
|
+
if (
|
|
358
|
+
transformedPages[market][pageType][index].relation &&
|
|
359
|
+
checkForInactiveOperatorToplist(item, page.relation.status)
|
|
360
|
+
)
|
|
361
|
+
return;
|
|
362
|
+
|
|
358
363
|
res === 'pre_main_operators'
|
|
359
364
|
? page.sections.main.modules.unshift(cloneDeep(item))
|
|
360
365
|
: page.sections.main.modules.push(cloneDeep(item));
|