gatsby-matrix-theme 7.1.56 → 7.1.59
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 +30 -0
- package/package.json +2 -2
- package/src/components/atoms/cards/article-card/index.js +11 -3
- package/src/components/molecules/newsletter/index.js +1 -1
- package/storybook/public/252.a9c1a24e.iframe.bundle.js +7 -0
- package/storybook/public/{139.61d42329.iframe.bundle.js.LICENSE.txt → 252.a9c1a24e.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/{139.61d42329.iframe.bundle.js.map → 252.a9c1a24e.iframe.bundle.js.map} +1 -1
- package/storybook/public/94.4342cbcf.iframe.bundle.js +1 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.d8589f9c.iframe.bundle.js +1 -0
- package/storybook/public/runtime~main.eee2bd5c.iframe.bundle.js +1 -0
- package/storybook/public/139.61d42329.iframe.bundle.js +0 -7
- package/storybook/public/main.dba5a8ff.iframe.bundle.js +0 -1
- package/storybook/public/runtime~main.eb5f3045.iframe.bundle.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
## [7.1.59](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.58...v7.1.59) (2022-09-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* author cards ([5c50ffc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5c50ffc41dd719220cd867c18fb67325e750b39b))
|
|
7
|
+
* newsletter form ([3133f28](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3133f28e896303b71974ddfd282022544b718d56))
|
|
8
|
+
* update-core-version ([40fa9d5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/40fa9d5b399ff057eb3646fc0be0a04277059d8b))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
* Merge branch 'core-version-update' into 'master' ([edca65f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/edca65ffacfb50474bc8b6cf27a7e013e31433de))
|
|
12
|
+
* Merge branch 'tm-3014-sign-up-form' into 'master' ([44aa2f7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/44aa2f7e7c56fcd50bff5d5ca1fa2f030b9d818e))
|
|
13
|
+
|
|
14
|
+
## [7.1.58](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.57...v7.1.58) (2022-09-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* add option to add image in articles card ([4574ba4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4574ba4ffadc5f87c754e1fd7be2cd71b25f1e86))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* Merge branch 'tm-3004-cards-v2' into 'master' ([7524357](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7524357b9f6947a23ce51ebdcb2d9b09b395945d))
|
|
23
|
+
|
|
24
|
+
## [7.1.57](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.56...v7.1.57) (2022-09-02)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* updated to latest core version ([c20a28e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c20a28e3b3d72cf7ae1ffeb761a5c61cd96f3898))
|
|
30
|
+
|
|
1
31
|
## [7.1.56](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.55...v7.1.56) (2022-08-31)
|
|
2
32
|
|
|
3
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.59",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Matrix Theme NPM Package",
|
|
6
6
|
"author": "",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"gatsby": "^4.20.0",
|
|
27
|
-
"gatsby-core-theme": "11.0.
|
|
27
|
+
"gatsby-core-theme": "11.0.7",
|
|
28
28
|
"gatsby-plugin-sharp": "^4.10.2",
|
|
29
29
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
30
30
|
"gatsby-transformer-sharp": "^4.10.0",
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
} from 'gatsby-core-theme/src/helpers/getters';
|
|
11
11
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
12
12
|
import LazyPicture from 'gatsby-core-theme/src/hooks/lazy-picture';
|
|
13
|
-
import Author from 'gatsby-core-theme/src/components/atoms/author';
|
|
14
13
|
import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
|
|
14
|
+
import Author from '../../../../gatsby-core-theme/components/atoms/author';
|
|
15
15
|
|
|
16
16
|
import BaseCard from '../base-card';
|
|
17
17
|
import styles from './article-card.module.scss';
|
|
18
18
|
|
|
19
|
-
const ArticleCard = ({ item, width, height }) => {
|
|
19
|
+
const ArticleCard = ({ item, width, height, authorImage = false }) => {
|
|
20
20
|
const { author, created_at, title, path, banner } = item;
|
|
21
21
|
const pictureSource = {
|
|
22
22
|
webp: '../../../../../../../images/default-article.webp',
|
|
@@ -57,7 +57,13 @@ const ArticleCard = ({ item, width, height }) => {
|
|
|
57
57
|
gtmClass="article-card-gtm btn-cta"
|
|
58
58
|
/>
|
|
59
59
|
<div className={styles.cardMeta}>
|
|
60
|
-
<Author
|
|
60
|
+
<Author
|
|
61
|
+
prefix="by"
|
|
62
|
+
name={AuthorName}
|
|
63
|
+
date={created_at}
|
|
64
|
+
isCardsAuthor
|
|
65
|
+
authorImg={authorImage ? item?.author?.image : false}
|
|
66
|
+
/>
|
|
61
67
|
</div>
|
|
62
68
|
</div>
|
|
63
69
|
</BaseCard>
|
|
@@ -70,6 +76,7 @@ ArticleCard.propTypes = {
|
|
|
70
76
|
name: PropTypes.string,
|
|
71
77
|
profile_page_path: PropTypes.string,
|
|
72
78
|
twitter_profile: PropTypes.string,
|
|
79
|
+
image: PropTypes.string,
|
|
73
80
|
}),
|
|
74
81
|
title: PropTypes.string,
|
|
75
82
|
created_at: PropTypes.string,
|
|
@@ -78,6 +85,7 @@ ArticleCard.propTypes = {
|
|
|
78
85
|
}).isRequired,
|
|
79
86
|
width: PropTypes.number,
|
|
80
87
|
height: PropTypes.number,
|
|
88
|
+
authorImage: PropTypes.bool,
|
|
81
89
|
};
|
|
82
90
|
|
|
83
91
|
export default ArticleCard;
|
|
@@ -51,7 +51,7 @@ const Newsletter = ({ page, openBtnText = 'Unlock Bonuses', footer = false }) =>
|
|
|
51
51
|
: styles.newsletter
|
|
52
52
|
}
|
|
53
53
|
>
|
|
54
|
-
<Form redirectUrl={redirectUrl} ppcPage={ppcPage} />
|
|
54
|
+
<Form redirectUrl={redirectUrl} ppcPage={ppcPage} footer={footer} />
|
|
55
55
|
{!footer ? (
|
|
56
56
|
<MdClose className={styles.closeBtn} onClick={() => setToggleNewsletter(false)} />
|
|
57
57
|
) : null}
|