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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "28.0.2",
3
+ "version": "28.0.4",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -91,10 +91,9 @@ const TemplateOne = ({
91
91
  <div className={styles?.authorData || ''}>
92
92
  <LazyImage
93
93
  alt={item?.author?.name}
94
- loading="eager"
95
- width={80}
96
- height={80}
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/80x80/1666946339/cameron-murphy.png'
61
+ 'https://cdn.images.com/fit-in/20x20/1666946339/cameron-murphy.png'
62
62
  );
63
- expect(img).toHaveAttribute('width', '80');
64
- expect(img).toHaveAttribute('height', '80');
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={<FaChevronRight />} gtmClass="link-menu-gtm" />
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.84a56ef7.iframe.bundle.js"></script></body></html>
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>