gatsby-matrix-theme 37.0.9 → 37.0.11
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 +22 -0
- package/package.json +1 -1
- package/src/components/atoms/footer/license/index.js +1 -1
- package/src/components/molecules/footer/variants/template-one/index.js +1 -3
- package/src/components/molecules/footer/variants/template-one/template-one.test.js +1 -3
- package/src/components/molecules/footer/variants/template-three/index.js +1 -3
- package/src/components/molecules/footer/variants/template-three/template-three.test.js +1 -3
- package/src/components/molecules/footer/variants/template-two/index.js +1 -3
- package/src/components/molecules/footer/variants/template-two/template-two.test.js +1 -3
- package/src/gatsby-core-theme/components/atoms/archive/items/index.js +16 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.8d00fdd4.iframe.bundle.js +2 -0
- package/storybook/public/main.3d0e1fc9.iframe.bundle.js +0 -2
- /package/storybook/public/{main.3d0e1fc9.iframe.bundle.js.LICENSE.txt → main.8d00fdd4.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## [37.0.11](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.10...v37.0.11) (2023-11-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Code Refactoring
|
|
5
|
+
|
|
6
|
+
* remove unnecessary line breaks ([10f58f5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/10f58f5bcbb10825de11bf04752b527fd93b6b5b))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'tm-3778-footer' into 'master' ([4c23a14](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4c23a14344f90343729ee309f57a920b3864781e))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Tests
|
|
13
|
+
|
|
14
|
+
* fix testing ([3df51bc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3df51bce4a4b1d510df4bb45da714699d109d658))
|
|
15
|
+
|
|
16
|
+
## [37.0.10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.9...v37.0.10) (2023-11-23)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* fix cards in archive ([efb9866](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/efb9866a1fc106a8ed5afabd98efd6ec0fd27c65))
|
|
22
|
+
|
|
1
23
|
## [37.0.9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.8...v37.0.9) (2023-11-23)
|
|
2
24
|
|
|
3
25
|
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@ const FooterLicense = ({
|
|
|
49
49
|
{template !== 'templateOne' && gamblingText && (
|
|
50
50
|
<div
|
|
51
51
|
className={styles?.gamblingText || ''}
|
|
52
|
-
dangerouslySetInnerHTML={{ __html: gamblingText
|
|
52
|
+
dangerouslySetInnerHTML={{ __html: gamblingText }}
|
|
53
53
|
/>
|
|
54
54
|
)}
|
|
55
55
|
</div>
|
|
@@ -68,9 +68,7 @@ const TemplateOne = ({
|
|
|
68
68
|
<div
|
|
69
69
|
className={styles?.copyrightDisclaimer || ''}
|
|
70
70
|
// eslint-disable-next-line react/no-danger
|
|
71
|
-
dangerouslySetInnerHTML={{
|
|
72
|
-
__html: copyrightDisclaimer.replace(/\. /g, '.<br />'),
|
|
73
|
-
}}
|
|
71
|
+
dangerouslySetInnerHTML={{ __html: copyrightDisclaimer }}
|
|
74
72
|
/>
|
|
75
73
|
)}
|
|
76
74
|
{showCopyright && <p className={styles?.copyrightText || ''}>{copyrightText()}</p>}
|
|
@@ -197,9 +197,7 @@ describe('Show template one', () => {
|
|
|
197
197
|
await waitFor(() => {
|
|
198
198
|
expect(container.querySelectorAll('.copyrightDisclaimer')).toBeTruthy();
|
|
199
199
|
|
|
200
|
-
expect(container.querySelector('.copyrightDisclaimer').innerHTML).toBe(
|
|
201
|
-
copyrightDisclaimer.replace(/\. /g, '.<br>')
|
|
202
|
-
);
|
|
200
|
+
expect(container.querySelector('.copyrightDisclaimer').innerHTML).toBe(copyrightDisclaimer);
|
|
203
201
|
});
|
|
204
202
|
});
|
|
205
203
|
test('show copyright', async () => {
|
|
@@ -73,9 +73,7 @@ const TemplateThree = ({
|
|
|
73
73
|
<div
|
|
74
74
|
className={styles?.copyrightDisclaimer || ''}
|
|
75
75
|
// eslint-disable-next-line react/no-danger
|
|
76
|
-
dangerouslySetInnerHTML={{
|
|
77
|
-
__html: copyrightDisclaimer.replace(/\. /g, '.<br />'),
|
|
78
|
-
}}
|
|
76
|
+
dangerouslySetInnerHTML={{ __html: copyrightDisclaimer }}
|
|
79
77
|
/>
|
|
80
78
|
)}
|
|
81
79
|
{showCopyright && <p className={styles.copyrightText}>{copyrightText()}</p>}
|
|
@@ -197,9 +197,7 @@ describe('Show template one', () => {
|
|
|
197
197
|
await waitFor(() => {
|
|
198
198
|
expect(container.querySelectorAll('.copyrightDisclaimer')).toBeTruthy();
|
|
199
199
|
|
|
200
|
-
expect(container.querySelector('.copyrightDisclaimer').innerHTML).toBe(
|
|
201
|
-
copyrightDisclaimer.replace(/\. /g, '.<br>')
|
|
202
|
-
);
|
|
200
|
+
expect(container.querySelector('.copyrightDisclaimer').innerHTML).toBe(copyrightDisclaimer);
|
|
203
201
|
});
|
|
204
202
|
});
|
|
205
203
|
test('show copyright', async () => {
|
|
@@ -70,9 +70,7 @@ const TemplateTwo = ({
|
|
|
70
70
|
<div
|
|
71
71
|
className={styles?.copyrightDisclaimer || ''}
|
|
72
72
|
// eslint-disable-next-line react/no-danger
|
|
73
|
-
dangerouslySetInnerHTML={{
|
|
74
|
-
__html: copyrightDisclaimer.replace(/\. /g, '.<br />'),
|
|
75
|
-
}}
|
|
73
|
+
dangerouslySetInnerHTML={{ __html: copyrightDisclaimer }}
|
|
76
74
|
/>
|
|
77
75
|
)}
|
|
78
76
|
{showCopyright && <p className={styles?.copyrightText || ''}>{copyrightText()}</p>}
|
|
@@ -196,9 +196,7 @@ describe('Show template one', () => {
|
|
|
196
196
|
await waitFor(() => {
|
|
197
197
|
expect(container.querySelectorAll('.copyrightDisclaimer')).toBeTruthy();
|
|
198
198
|
|
|
199
|
-
expect(container.querySelector('.copyrightDisclaimer').innerHTML).toBe(
|
|
200
|
-
copyrightDisclaimer.replace(/\. /g, '.<br>')
|
|
201
|
-
);
|
|
199
|
+
expect(container.querySelector('.copyrightDisclaimer').innerHTML).toBe(copyrightDisclaimer);
|
|
202
200
|
});
|
|
203
201
|
});
|
|
204
202
|
test('show copyright', async () => {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
|
|
4
|
+
import Cards from '../../../../../components/organisms/cards/template-one';
|
|
5
|
+
|
|
6
|
+
// Test included with archive & cards test
|
|
7
|
+
const Items = ({ module, page }) => <Cards module={module} page={page} />;
|
|
8
|
+
|
|
9
|
+
Items.propTypes = {
|
|
10
|
+
module: PropTypes.shape({
|
|
11
|
+
module_title: PropTypes.string,
|
|
12
|
+
}).isRequired,
|
|
13
|
+
page: PropTypes.shape({}),
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default Items;
|
|
@@ -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":"text.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/text\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content","files":"show-more.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/show-more\\.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/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/content/frame","files":"frame.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/frame\\/frame\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/table","files":"table-one.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/table\\/table-one\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/table","files":"table-two.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/table\\/table-two\\.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.b0842e70.iframe.bundle.js"></script><script src="652.16161342.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":"text.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/text\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content","files":"show-more.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/show-more\\.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/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/content/frame","files":"frame.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/frame\\/frame\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/table","files":"table-one.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/table\\/table-one\\.stories\\.js)$"},{"titlePrefix":"","directory":"../node_modules/gatsby-core-theme/src/components/molecules/content/table","files":"table-two.stories.js","importPathMatcher":"^(?:\\.\\.\\/node_modules\\/gatsby-core-theme\\/src\\/components\\/molecules\\/content\\/table\\/table-two\\.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.b0842e70.iframe.bundle.js"></script><script src="652.16161342.iframe.bundle.js"></script><script src="main.8d00fdd4.iframe.bundle.js"></script></body></html>
|