gatsby-matrix-theme 28.0.2 → 28.0.4
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 +15 -0
- package/package.json +1 -1
- package/src/components/atoms/cards/operator-card/template-one/index.js +3 -4
- package/src/components/atoms/cards/operator-card/template-one/template-one.test.js +3 -3
- package/src/components/atoms/link-menu/index.js +3 -2
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.49ddbe00.iframe.bundle.js +2 -0
- package/storybook/public/main.84a56ef7.iframe.bundle.js +0 -2
- /package/storybook/public/{main.84a56ef7.iframe.bundle.js.LICENSE.txt → main.49ddbe00.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [28.0.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v28.0.3...v28.0.4) (2023-07-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* link menu icon as optional ([59d3f55](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/59d3f5529f54bd2f858f6295fe059261cea4a963))
|
|
7
|
+
|
|
8
|
+
## [28.0.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v28.0.2...v28.0.3) (2023-07-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* card operator author ([b9b9dae](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b9b9dae5a200c504aac0bb3a55073876a28b4965))
|
|
14
|
+
* card operator author ([8326091](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/832609186c06722a6c39da322efaa027be38d072))
|
|
15
|
+
|
|
1
16
|
## [28.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v28.0.1...v28.0.2) (2023-07-19)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -91,10 +91,9 @@ const TemplateOne = ({
|
|
|
91
91
|
<div className={styles?.authorData || ''}>
|
|
92
92
|
<LazyImage
|
|
93
93
|
alt={item?.author?.name}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
src={imagePrettyUrl(item?.author?.image, 80, 80)}
|
|
94
|
+
width={20}
|
|
95
|
+
height={20}
|
|
96
|
+
src={imagePrettyUrl(item?.author?.image, 20, 20)}
|
|
98
97
|
/>
|
|
99
98
|
<span>
|
|
100
99
|
<LazyImage
|
|
@@ -58,10 +58,10 @@ describe('TemplateOne component', () => {
|
|
|
58
58
|
expect(img).toBeVisible();
|
|
59
59
|
expect(img).toHaveAttribute(
|
|
60
60
|
'src',
|
|
61
|
-
'https://cdn.images.com/fit-in/
|
|
61
|
+
'https://cdn.images.com/fit-in/20x20/1666946339/cameron-murphy.png'
|
|
62
62
|
);
|
|
63
|
-
expect(img).toHaveAttribute('width', '
|
|
64
|
-
expect(img).toHaveAttribute('height', '
|
|
63
|
+
expect(img).toHaveAttribute('width', '20');
|
|
64
|
+
expect(img).toHaveAttribute('height', '20');
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
test('if no author data, show nothing', async () => {
|
|
@@ -6,18 +6,19 @@ import LinkList from 'gatsby-core-theme/src/components/molecules/link-list';
|
|
|
6
6
|
import { getFirstModuleByName } from 'gatsby-core-theme/src/helpers/getters';
|
|
7
7
|
import styles from './link-menu.module.scss';
|
|
8
8
|
|
|
9
|
-
const LinkMenu = ({ section }) => {
|
|
9
|
+
const LinkMenu = ({ section, listIcon = <FaChevronRight /> }) => {
|
|
10
10
|
const menuArray = getFirstModuleByName(section, 'menu');
|
|
11
11
|
return (
|
|
12
12
|
<div className={styles?.linkMenuContainer || ''}>
|
|
13
13
|
<div className={styles?.linkMenuContent || ''}>
|
|
14
|
-
<LinkList lists={menuArray} listIcon={
|
|
14
|
+
<LinkList lists={menuArray} listIcon={listIcon} gtmClass="link-menu-gtm" />
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
LinkMenu.propTypes = {
|
|
21
|
+
listIcon: PropTypes.element,
|
|
21
22
|
section: PropTypes.shape({
|
|
22
23
|
modules: PropTypes.arrayOf(
|
|
23
24
|
PropTypes.shape({
|
|
@@ -361,4 +361,4 @@
|
|
|
361
361
|
|
|
362
362
|
|
|
363
363
|
|
|
364
|
-
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/organisms/navigation","files":"navigation.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/organisms\\/navigation\\/navigation\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/organisms/anchor","files":"anchor.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/organisms\\/anchor\\/anchor\\.stories\\.js)$"}];</script><script src="runtime~main.7de69f76.iframe.bundle.js"></script><script src="115.958218a1.iframe.bundle.js"></script><script src="main.
|
|
364
|
+
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/organisms/navigation","files":"navigation.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/organisms\\/navigation\\/navigation\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/organisms/anchor","files":"anchor.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/organisms\\/anchor\\/anchor\\.stories\\.js)$"}];</script><script src="runtime~main.7de69f76.iframe.bundle.js"></script><script src="115.958218a1.iframe.bundle.js"></script><script src="main.49ddbe00.iframe.bundle.js"></script></body></html>
|