gatsby-matrix-theme 34.0.18 → 34.0.19
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 +12 -0
- package/package.json +1 -1
- package/src/components/atoms/feedback/index.js +1 -1
- package/src/components/atoms/feedback/template-two/feedback.module.scss +1 -1
- package/src/components/molecules/operator-summary/template-one/index.js +3 -1
- package/src/components/molecules/operator-summary/template-three/index.js +16 -3
- package/src/components/molecules/operator-summary/template-three/template-three.module.scss +9 -4
- package/src/components/molecules/operator-summary/template-three/template-three.stories.js +6 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/{main.736baf23.iframe.bundle.js → main.184f9704.iframe.bundle.js} +2 -2
- /package/storybook/public/{main.736baf23.iframe.bundle.js.LICENSE.txt → main.184f9704.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [34.0.19](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v34.0.18...v34.0.19) (2023-10-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* expert summary ([d238c4d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d238c4d6f003f94a46e24bc2c4a8e3c67c1ef85d))
|
|
7
|
+
* make a small fix ([f2538d0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f2538d0974c262885c794f82849f5fee663bbbb2))
|
|
8
|
+
* make style ([5dc1b52](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5dc1b52860df11dff679777fe0969ce31c27ab05))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
* Merge branch 'tm-3707-expert-review-summary' into 'master' ([5944b11](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5944b119ced13c0548164dc9b601447681a17e23))
|
|
12
|
+
|
|
1
13
|
## [34.0.18](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v34.0.17...v34.0.18) (2023-10-19)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import TemplateTwo from './template-two';
|
|
4
4
|
import TemplateOne from './template-one';
|
|
5
5
|
|
|
6
|
-
export default function FeedBack({ templateName = '
|
|
6
|
+
export default function FeedBack({ templateName = 'template_one', ...rest }) {
|
|
7
7
|
switch (templateName) {
|
|
8
8
|
case 'template_two':
|
|
9
9
|
return <TemplateTwo {...rest} />;
|
|
@@ -48,7 +48,9 @@ const TemplateOne = ({
|
|
|
48
48
|
<p>
|
|
49
49
|
{translate(translations, 'updated_on', 'Updated on')} {formatDate(page.updated_at)}
|
|
50
50
|
</p>
|
|
51
|
-
{showExperience &&
|
|
51
|
+
{showExperience && author?.experience && (
|
|
52
|
+
<div className={styles.experience}>{author?.experience}</div>
|
|
53
|
+
)}
|
|
52
54
|
</div>
|
|
53
55
|
{operatorSummary && (
|
|
54
56
|
<div
|
|
@@ -6,16 +6,18 @@ import { generatePlaceholderString } from 'gatsby-core-theme/src/helpers/generat
|
|
|
6
6
|
import { Context } from 'gatsby-core-theme/src/context/MainProvider';
|
|
7
7
|
import Bonus from 'gatsby-core-theme/src/components/molecules/bonus/template-one';
|
|
8
8
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
9
|
+
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
|
|
9
10
|
import AuthorName from '../../../atoms/author/template-one';
|
|
10
11
|
import styles from './template-three.module.scss';
|
|
11
12
|
|
|
12
|
-
const
|
|
13
|
+
const TemplateThree = ({
|
|
13
14
|
page,
|
|
14
15
|
tnc = false,
|
|
15
16
|
tncFixed = false,
|
|
16
17
|
imgWidth = 128,
|
|
17
18
|
imgHeight = 146,
|
|
18
19
|
verify = '../../../../images/verifiedAuthor.svg',
|
|
20
|
+
tncContainer = false,
|
|
19
21
|
}) => {
|
|
20
22
|
const { translations } = useContext(Context) || {};
|
|
21
23
|
const operatorData = page?.relation;
|
|
@@ -57,16 +59,27 @@ const TemplateTwo = ({
|
|
|
57
59
|
operator={operatorData}
|
|
58
60
|
template={page?.template}
|
|
59
61
|
/>
|
|
62
|
+
|
|
63
|
+
{tncContainer && operatorData?.extra_fields?.terms_and_conditions_text_enabled === '1' && (
|
|
64
|
+
<div className={styles?.tnc || ''}>
|
|
65
|
+
<Tnc
|
|
66
|
+
operator={operatorData}
|
|
67
|
+
hasCollapse={false}
|
|
68
|
+
contentText={operatorData?.extra_fields?.terms_and_conditions}
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
)}
|
|
60
72
|
</div>
|
|
61
73
|
);
|
|
62
74
|
};
|
|
63
75
|
|
|
64
|
-
|
|
76
|
+
TemplateThree.propTypes = {
|
|
65
77
|
imgWidth: PropTypes.string,
|
|
66
78
|
imgHeight: PropTypes.string,
|
|
67
79
|
tnc: PropTypes.bool,
|
|
68
80
|
tncFixed: PropTypes.bool,
|
|
69
81
|
verify: PropTypes.string,
|
|
82
|
+
tncContainer: PropTypes.bool,
|
|
70
83
|
page: PropTypes.shape({
|
|
71
84
|
reviewer: PropTypes.shape({}),
|
|
72
85
|
relation_type: PropTypes.string,
|
|
@@ -80,4 +93,4 @@ TemplateTwo.propTypes = {
|
|
|
80
93
|
}),
|
|
81
94
|
};
|
|
82
95
|
|
|
83
|
-
export default
|
|
96
|
+
export default TemplateThree;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
background: var(--operator-summery-backgorund, #fff);
|
|
4
4
|
box-shadow: 0px 4px 6px -2px rgba(27, 27, 28, 0.02), 0px 12px 16px -4px rgba(27, 27, 28, 0.05);
|
|
5
5
|
width: calc(100% - 32px);
|
|
6
|
-
padding:0
|
|
7
|
-
max-width:
|
|
6
|
+
padding: 0 1.6rem;
|
|
7
|
+
max-width: calc(var(--main-container-max) - 4.8rem) !important;
|
|
8
8
|
margin: 0 auto;
|
|
9
9
|
// Bonus module
|
|
10
|
-
> div:last-of-type {
|
|
10
|
+
> div:last-of-type:not(.tnc) {
|
|
11
11
|
padding-bottom: 2.4rem;
|
|
12
12
|
> div {
|
|
13
13
|
@include min(tablet) {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
font-weight: 700;
|
|
93
93
|
line-height: 3.2rem;
|
|
94
94
|
text-transform: capitalize;
|
|
95
|
-
@include min(tablet){
|
|
95
|
+
@include min(tablet) {
|
|
96
96
|
font-size: 3.2rem;
|
|
97
97
|
line-height: 4rem;
|
|
98
98
|
}
|
|
@@ -138,3 +138,8 @@
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
+
|
|
142
|
+
.tnc {
|
|
143
|
+
padding-top: 0.8rem;
|
|
144
|
+
padding-bottom: 2.4rem;
|
|
145
|
+
}
|
|
@@ -14,6 +14,12 @@ import TemplateThree from '.';
|
|
|
14
14
|
|
|
15
15
|
const pageData = getOperatorData();
|
|
16
16
|
|
|
17
|
+
pageData.relation.extra_fields = {
|
|
18
|
+
terms_and_conditions:
|
|
19
|
+
'18+ – Lorem ipsum dolor sit amet, consectetur adipiscing elit. Tellus proin nunc, nunc est nec mattis augue gravida volutpat.',
|
|
20
|
+
terms_and_conditions_text_enabled: '1',
|
|
21
|
+
};
|
|
22
|
+
|
|
17
23
|
export default {
|
|
18
24
|
title: 'Theme/Modules/Template Blocks/Operator review page/Review Summary/Template Three',
|
|
19
25
|
component: TemplateThree,
|
|
@@ -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)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-one","files":"bonus.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/bonus\\/template-one\\/bonus\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-two","files":"bonus.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/bonus\\/template-two\\/bonus\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content","files":"content.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/content\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/table","files":"table.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/table\\/table\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/text/Images","files":"text.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/text\\/Images\\/text\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/lists","files":"lists.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/lists\\/lists\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/pagination","files":"pagination.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/pagination\\/pagination\\.stories\\.js)$"}];</script><script src="runtime~main.ee7dae1a.iframe.bundle.js"></script><script src="970.c147cf4f.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)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-one","files":"bonus.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/bonus\\/template-one\\/bonus\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/bonus/template-two","files":"bonus.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/bonus\\/template-two\\/bonus\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content","files":"content.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/content\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/table","files":"table.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/table\\/table\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/text/Images","files":"text.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/text\\/Images\\/text\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/lists","files":"lists.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/lists\\/lists\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/pagination","files":"pagination.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/pagination\\/pagination\\.stories\\.js)$"}];</script><script src="runtime~main.ee7dae1a.iframe.bundle.js"></script><script src="970.c147cf4f.iframe.bundle.js"></script><script src="main.184f9704.iframe.bundle.js"></script></body></html>
|