gatsby-matrix-theme 13.0.8 → 13.0.9

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,13 @@
1
+ ## [13.0.9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v13.0.8...v13.0.9) (2023-02-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update headers in order to use h1 ([b3bc46a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b3bc46a65649895d3d77c04bc4d5413adb1839f5))
7
+
8
+
9
+ * Merge branch 'tm-3320-header-titles' into 'master' ([f2d46eb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f2d46eb1cfd86f10cd0d55cc73fd09d1ef5a50e0))
10
+
1
11
  ## [13.0.8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v13.0.7...v13.0.8) (2023-02-17)
2
12
 
3
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "13.0.8",
3
+ "version": "13.0.9",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -6,13 +6,13 @@ import Name from '../assets/name';
6
6
  import Socials from '../assets/socials';
7
7
  import styles from './template-four.module.scss';
8
8
 
9
- export default function TemplateFour({ author, icons }) {
9
+ export default function TemplateFour({ author, icons, authorTitle }) {
10
10
  return (
11
11
  <div className={styles.container}>
12
12
  <div>
13
13
  <Portrait className={styles.portrait} author={author} />
14
14
  <div>
15
- <Name className={styles.name} name={author.name} icon={icons?.verify} />
15
+ <Name className={styles.name} name={authorTitle || author.name} icon={icons?.verify} />
16
16
  <div className={styles.title}>{author.author_title}</div>
17
17
  <Socials author={author} />
18
18
  </div>
@@ -22,6 +22,7 @@ export default function TemplateFour({ author, icons }) {
22
22
  }
23
23
 
24
24
  TemplateFour.propTypes = {
25
+ authorTitle: PropTypes.string,
25
26
  author: PropTypes.shape({
26
27
  name: PropTypes.string,
27
28
  author_title: PropTypes.string,
@@ -7,13 +7,13 @@ import Socials from '../assets/socials';
7
7
  import Expertise from '../assets/expertise';
8
8
  import styles from './template-one.module.scss';
9
9
 
10
- export default function TemplateOne({ author, icons }) {
10
+ export default function TemplateOne({ author, icons, authorTitle }) {
11
11
  return (
12
12
  <div className={styles.container}>
13
13
  <Portrait className={styles.portrait} author={author} />
14
14
  <div>
15
15
  <div className={styles.title}>{author.author_title}</div>
16
- <Name className={styles.name} name={author.name} icon={icons?.verify} />
16
+ <Name className={styles.name} name={authorTitle || author.name} icon={icons?.verify} />
17
17
  <Socials className={styles.socials} author={author} />
18
18
  {author.biography && (
19
19
  <div
@@ -28,6 +28,7 @@ export default function TemplateOne({ author, icons }) {
28
28
  }
29
29
 
30
30
  TemplateOne.propTypes = {
31
+ authorTitle: PropTypes.string,
31
32
  author: PropTypes.shape({
32
33
  name: PropTypes.string,
33
34
  author_title: PropTypes.string,
@@ -7,14 +7,14 @@ import Socials from '../assets/socials';
7
7
  import Expertise from '../assets/expertise';
8
8
  import styles from './template-three.module.scss';
9
9
 
10
- export default function TemplateThree({ author, icons }) {
10
+ export default function TemplateThree({ author, icons, authorTitle }) {
11
11
  return (
12
12
  <div className={styles.container}>
13
13
  <div>
14
14
  <Portrait className={styles.portrait} author={author} />
15
15
  <div>
16
16
  <Socials className={styles.socials} author={author} />
17
- <Name className={styles.name} name={author.name} icon={icons?.verify} />
17
+ <Name className={styles.name} name={authorTitle || author.name} icon={icons?.verify} />
18
18
  <div className={styles.title}>{author.author_title}</div>
19
19
  <Expertise expertise={author.expertise} icon={icons?.expertise} />
20
20
  </div>
@@ -24,6 +24,7 @@ export default function TemplateThree({ author, icons }) {
24
24
  }
25
25
 
26
26
  TemplateThree.propTypes = {
27
+ authorTitle: PropTypes.string,
27
28
  author: PropTypes.shape({
28
29
  name: PropTypes.string,
29
30
  author_title: PropTypes.string,
@@ -7,14 +7,14 @@ import Socials from '../assets/socials';
7
7
  import Expertise from '../assets/expertise';
8
8
  import styles from './template-two.module.scss';
9
9
 
10
- export default function TemplateTwo({ author, icons }) {
10
+ export default function TemplateTwo({ author, icons, authorTitle }) {
11
11
  return (
12
12
  <div className={styles.container}>
13
13
  <div>
14
14
  <Portrait className={styles.portrait} author={author} />
15
15
  <div>
16
16
  <div className={styles.title}>{author.author_title}</div>
17
- <Name className={styles.name} name={author.name} icon={icons?.verify} />
17
+ <Name className={styles.name} name={authorTitle || author.name} icon={icons?.verify} />
18
18
  <Socials className={styles.socials} author={author} />
19
19
  <Expertise expertise={author.expertise} icon={icons?.expertise} />
20
20
  </div>
@@ -24,6 +24,7 @@ export default function TemplateTwo({ author, icons }) {
24
24
  }
25
25
 
26
26
  TemplateTwo.propTypes = {
27
+ authorTitle: PropTypes.string,
27
28
  author: PropTypes.shape({
28
29
  name: PropTypes.string,
29
30
  author_title: PropTypes.string,
@@ -37,7 +37,7 @@ export const relationContent = (section, numOfStarsRating) => {
37
37
  template: section?.page?.page_styles?.short_name,
38
38
  pageTemplate: section?.page?.template,
39
39
  relation: section?.page?.relation || {},
40
- name: section?.page?.relation?.name,
40
+ name: section.page.title || section?.page?.relation?.name,
41
41
  ribbons: section?.page?.relation?.ribbons || [],
42
42
  image:
43
43
  section?.page?.relation?.standardised_logo_url_object ||
@@ -92,23 +92,32 @@ export const relationContent = (section, numOfStarsRating) => {
92
92
  ModuleComponent = loadable(() =>
93
93
  import('../../../../components/molecules/header/variants/author/template-two')
94
94
  );
95
- return <ModuleComponent author={section.page.relation} />;
95
+ return (
96
+ <ModuleComponent author={section.page.relation} authorTitle={section?.page?.title} />
97
+ );
96
98
  case 'template_three':
97
99
  ModuleComponent = loadable(() =>
98
100
  import('../../../../components/molecules/header/variants/author/template-three')
99
101
  );
100
- return <ModuleComponent author={section.page.relation} />;
102
+ return (
103
+ <ModuleComponent author={section.page.relation} authorTitle={section?.page?.title} />
104
+ );
101
105
  case 'template_four':
102
106
  ModuleComponent = loadable(() =>
103
107
  import('../../../../components/molecules/header/variants/author/template-four')
104
108
  );
105
- return <ModuleComponent author={section.page.relation} />;
109
+
110
+ return (
111
+ <ModuleComponent author={section.page.relation} authorTitle={section?.page?.title} />
112
+ );
106
113
  case 'template_one':
107
114
  default:
108
115
  ModuleComponent = loadable(() =>
109
116
  import('../../../../components/molecules/header/variants/author/template-one')
110
117
  );
111
- return <ModuleComponent author={section.page.relation} />;
118
+ return (
119
+ <ModuleComponent author={section.page.relation} authorTitle={section?.page?.title} />
120
+ );
112
121
  }
113
122
  }
114
123
  case 'page': {
@@ -345,4 +345,4 @@
345
345
 
346
346
 
347
347
 
348
- 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)$"}];</script><script src="runtime~main.af15ef32.iframe.bundle.js"></script><script src="434.7f2624aa.iframe.bundle.js"></script><script src="main.cf39ecf8.iframe.bundle.js"></script></body></html>
348
+ 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)$"}];</script><script src="runtime~main.af15ef32.iframe.bundle.js"></script><script src="434.7f2624aa.iframe.bundle.js"></script><script src="main.91702b95.iframe.bundle.js"></script></body></html>