gatsby-matrix-theme 29.0.0 → 30.0.0
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 +25 -0
- package/package.json +2 -2
- package/src/components/atoms/cards/article-card/template-one/index.js +3 -6
- package/src/gatsby-core-theme/components/atoms/contact-form/index.js +1 -1
- package/src/gatsby-core-theme/components/molecules/module/index.js +1 -1
- package/storybook/public/{452.fd4ba785.iframe.bundle.js → 452.4baffdba.iframe.bundle.js} +3 -3
- package/storybook/public/{452.fd4ba785.iframe.bundle.js.map → 452.4baffdba.iframe.bundle.js.map} +1 -1
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.4c2273ea.iframe.bundle.js +2 -0
- package/storybook/public/main.c44bfce5.iframe.bundle.js +0 -2
- /package/storybook/public/{452.fd4ba785.iframe.bundle.js.LICENSE.txt → 452.4baffdba.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook/public/{main.c44bfce5.iframe.bundle.js.LICENSE.txt → main.4c2273ea.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
# [30.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v29.0.0...v30.0.0) (2023-08-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* validate data ([8c3e678](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8c3e6789865f66eaf39ee828a8431a29c180c186))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* revert temp fix ([b610ebf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b610ebf4931792bea57aeeafaf00c5f28fde2e9d))
|
|
12
|
+
* show correct article reading time instead of page reading time and remove unused vars ([3ab6f82](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3ab6f82b0c2c9fd4c461f698f02af1ca23e0ba18))
|
|
13
|
+
* temp fix ([c47accf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c47accf4028fa47fd3b7b6836165c73139390ce3))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Config
|
|
17
|
+
|
|
18
|
+
* update theme ([09668b5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/09668b53e4b9d55bb528a46e9ff07d6845fc7b2c))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
* Merge branch 'tm-3573-news' into 'master' ([83294bb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/83294bbb5d2ab39b9a03389ded5a67f30ce8ab3f))
|
|
22
|
+
* Merge branch 'master' into tm-3573-news ([4a693f4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4a693f4cde8bfe757b4094e163b5e8954690077d))
|
|
23
|
+
* Merge branch 'master' into tm-3573-news ([ec61926](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ec619261849abbd2f79ed18d8615f7b1822fe57e))
|
|
24
|
+
* Merge branch 'master' into tm-3573-news ([2dac3da](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2dac3da5cfc11404ed2f3ace840976c865a3f4fa))
|
|
25
|
+
|
|
1
26
|
# [29.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v28.0.18...v29.0.0) (2023-08-17)
|
|
2
27
|
|
|
3
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.0.0",
|
|
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": "
|
|
28
|
+
"gatsby-core-theme": "27.0.0",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
31
31
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
@@ -13,7 +13,6 @@ import styles from './article-card.module.scss';
|
|
|
13
13
|
|
|
14
14
|
const ArticleCard = ({
|
|
15
15
|
item,
|
|
16
|
-
page,
|
|
17
16
|
width = 360,
|
|
18
17
|
height = 240,
|
|
19
18
|
hasVariableComponent = true,
|
|
@@ -23,7 +22,7 @@ const ArticleCard = ({
|
|
|
23
22
|
readingTime = false,
|
|
24
23
|
verifyIcon = '',
|
|
25
24
|
}) => {
|
|
26
|
-
const { title, path, banner } = item;
|
|
25
|
+
const { title, path, banner, reading_time } = item;
|
|
27
26
|
const VariableComponent = hasVariableComponent ? loadable(() => import('../variables')) : null;
|
|
28
27
|
return (
|
|
29
28
|
<div className={styles.article || ''}>
|
|
@@ -45,7 +44,7 @@ const ArticleCard = ({
|
|
|
45
44
|
showDate={showDate}
|
|
46
45
|
showAuthorOnOneLine={showAuthorOnOneLine}
|
|
47
46
|
showAuthorAsLink={showAuthorAsLink}
|
|
48
|
-
readingTime={readingTime ?
|
|
47
|
+
readingTime={readingTime ? reading_time : false}
|
|
49
48
|
verifyIcon={verifyIcon}
|
|
50
49
|
/>
|
|
51
50
|
)}
|
|
@@ -67,10 +66,8 @@ ArticleCard.propTypes = {
|
|
|
67
66
|
created_at: PropTypes.string,
|
|
68
67
|
path: PropTypes.string,
|
|
69
68
|
banner: PropTypes.string,
|
|
70
|
-
}).isRequired,
|
|
71
|
-
page: PropTypes.shape({
|
|
72
69
|
reading_time: PropTypes.string,
|
|
73
|
-
}),
|
|
70
|
+
}).isRequired,
|
|
74
71
|
width: PropTypes.number,
|
|
75
72
|
height: PropTypes.number,
|
|
76
73
|
hasVariableComponent: PropTypes.bool,
|
|
@@ -31,7 +31,7 @@ const ContactForm = ({
|
|
|
31
31
|
}))(siteSchema);
|
|
32
32
|
|
|
33
33
|
const supportEmail = siteSchema?.support_email || null;
|
|
34
|
-
const socialIconsNotNull = Object.values(socialIcons)
|
|
34
|
+
const socialIconsNotNull = socialIcons && Object.values(socialIcons)?.some((value) => value);
|
|
35
35
|
|
|
36
36
|
return (
|
|
37
37
|
<div className={styles.contactForm}>
|
|
@@ -101,7 +101,7 @@ const Modules = ({ module, page, pageContext, index, exclOperator }) => {
|
|
|
101
101
|
case 'score_gauges':
|
|
102
102
|
return loadable(() => import('../../../../components/molecules/game-score-gauge'));
|
|
103
103
|
case 'site_contacts':
|
|
104
|
-
if (page
|
|
104
|
+
if (page?.siteSchema?.email === null) {
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
107
107
|
return loadable(() => import('../../../../components/atoms/site-contacts'));
|