gatsby-matrix-theme 34.0.2 → 34.0.3
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 +11 -0
- package/gatsby-config.js +2 -1
- package/package.json +1 -1
- package/src/components/atoms/footer/license/index.js +1 -3
- package/src/components/organisms/footer-navigation/index.js +0 -1
- package/src/gatsby-core-theme/components/organisms/toplist/list/index.js +0 -2
- package/src/gatsby-core-theme/hooks/tabs/index.js +0 -2
- package/src/helpers/common.js +9 -2
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.ba77a114.iframe.bundle.js +2 -0
- package/storybook/public/main.f9a5f827.iframe.bundle.js +0 -2
- /package/storybook/public/{main.f9a5f827.iframe.bundle.js.LICENSE.txt → main.ba77a114.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [34.0.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v34.0.2...v34.0.3) (2023-09-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* preconnect link for cdn ([41eacc3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/41eacc3274a255f194a851fe771bcb42a0f87c2f))
|
|
7
|
+
* removed lazyload package ([3079270](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/30792707a9ed764094bf0108c85b8e87d7208bca))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'perf_testing' into 'master' ([1bcdd27](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1bcdd276167067fe83b48caca78fcd2032d21e51))
|
|
11
|
+
|
|
1
12
|
## [34.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v34.0.1...v34.0.2) (2023-09-28)
|
|
2
13
|
|
|
3
14
|
|
package/gatsby-config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const activeEnv = process.env.GATSBY_ACTIVE_ENV || 'development';
|
|
2
2
|
const siteMapExcludes = process.env.SITEMAP_EXCLUDE.split(',') || [];
|
|
3
3
|
const { getSitemap } = require('./src/helpers/sitemap');
|
|
4
|
+
const { getDomain } = require('./src/helpers/common');
|
|
4
5
|
|
|
5
6
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
7
|
require('dotenv').config({
|
|
@@ -16,7 +17,7 @@ module.exports = {
|
|
|
16
17
|
resolve: `gatsby-core-theme`,
|
|
17
18
|
options: {
|
|
18
19
|
siteName: process.env.GATSBY_SITE_NAME,
|
|
19
|
-
preconnectLinks: [process.env.IMAGE_CDN_URL],
|
|
20
|
+
preconnectLinks: [getDomain(process.env.IMAGE_CDN_URL)],
|
|
20
21
|
},
|
|
21
22
|
},
|
|
22
23
|
{
|
package/package.json
CHANGED
|
@@ -26,11 +26,10 @@ const FooterLicense = ({
|
|
|
26
26
|
width={imgWidth || 182}
|
|
27
27
|
height={imgHeight || 48}
|
|
28
28
|
src={logo}
|
|
29
|
-
disableLazyLoad
|
|
30
29
|
/>
|
|
31
30
|
</div>
|
|
32
31
|
<div className={styles?.security || ''}>
|
|
33
|
-
<LazyImage alt="Security icon" width="26" height="20" src={securityIcon}
|
|
32
|
+
<LazyImage alt="Security icon" width="26" height="20" src={securityIcon} />
|
|
34
33
|
<span className={styles?.securityText || ''}>
|
|
35
34
|
{translate(translations, 'licensed_casinos', 'We only list licensed casinos')}
|
|
36
35
|
</span>
|
|
@@ -44,7 +43,6 @@ const FooterLicense = ({
|
|
|
44
43
|
imageOnly
|
|
45
44
|
lists={socialIcons}
|
|
46
45
|
gtmClass="mobile-menu-gtm logo-cta"
|
|
47
|
-
disableLazyLoad
|
|
48
46
|
/>
|
|
49
47
|
</div>
|
|
50
48
|
)}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import React, { useRef, useContext } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import loadable from '@loadable/component';
|
|
7
|
-
import { forceCheck } from 'react-lazyload';
|
|
8
7
|
import { translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
9
8
|
import { Context } from 'gatsby-core-theme/src/context/MainProvider';
|
|
10
9
|
import keygen from '~helpers/keygen';
|
|
@@ -50,7 +49,6 @@ export default function List({
|
|
|
50
49
|
nextItem > elRefs.current.length ? elRefs.current.length + 1 : displayed + loadingItems;
|
|
51
50
|
|
|
52
51
|
elRefs.current.slice(displayed, lastItem).forEach((item) => item.classList.toggle(styles.show));
|
|
53
|
-
forceCheck();
|
|
54
52
|
|
|
55
53
|
if (loadingItems + displayed >= elRefs.current.length) {
|
|
56
54
|
loadMoreBtn.current.classList.toggle(styles.hide);
|
|
@@ -28,7 +28,6 @@ const Tabs = ({
|
|
|
28
28
|
(module?.title || module?.module_title) &&
|
|
29
29
|
loadable(() => import('./title'));
|
|
30
30
|
const TabList = children.length > 1 && loadable(() => import('./tab/tab-list'));
|
|
31
|
-
const { forceCheck } = TabList && loadable(() => import('react-lazyload'));
|
|
32
31
|
const ModuleIntro = module.module_introduction && loadable(() => import('~molecules/content'));
|
|
33
32
|
const tabHeaderClass = `${styles?.tabsHeader} ${!HeaderComp ? styles?.tabsOnly || '' : ''} ${
|
|
34
33
|
styles[headerClass] || ''
|
|
@@ -55,7 +54,6 @@ const Tabs = ({
|
|
|
55
54
|
title={module.title}
|
|
56
55
|
onClick={(tabId) => {
|
|
57
56
|
setActiveTab(tabId);
|
|
58
|
-
setTimeout(forceCheck);
|
|
59
57
|
}}
|
|
60
58
|
items={children}
|
|
61
59
|
activeTab={activeTab}
|
package/src/helpers/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line import/prefer-default-export
|
|
2
|
-
|
|
2
|
+
const getRecommendedToplist = (marketSections) => {
|
|
3
3
|
if (marketSections.recommended_casinos && marketSections.recommended_casinos.modules) {
|
|
4
4
|
if (
|
|
5
5
|
marketSections.recommended_casinos.modules.length > 0 &&
|
|
@@ -10,4 +10,11 @@ export function getRecommendedToplist(marketSections) {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
return null;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const getDomain = (url) => {
|
|
16
|
+
const matches = url.split('/');
|
|
17
|
+
return matches.length >= 2 ? `${matches[0]}//${matches[2]}` : url;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
module.exports = { getDomain, getRecommendedToplist };
|
|
@@ -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.e0c50ca0.iframe.bundle.js"></script><script src="695.36fcb157.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.e0c50ca0.iframe.bundle.js"></script><script src="695.36fcb157.iframe.bundle.js"></script><script src="main.ba77a114.iframe.bundle.js"></script></body></html>
|