gatsby-matrix-theme 34.0.1 → 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 +23 -0
- package/gatsby-config.js +2 -1
- package/package.json +2 -2
- 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/molecules/header/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/{695.f2b7e675.iframe.bundle.js → 695.36fcb157.iframe.bundle.js} +3 -3
- package/storybook/public/{695.f2b7e675.iframe.bundle.js.map → 695.36fcb157.iframe.bundle.js.map} +1 -1
- 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/{695.f2b7e675.iframe.bundle.js.LICENSE.txt → 695.36fcb157.iframe.bundle.js.LICENSE.txt} +0 -0
- /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,26 @@
|
|
|
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
|
+
|
|
12
|
+
## [34.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v34.0.1...v34.0.2) (2023-09-28)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* remove log ([a70457f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a70457fa30d7462260c893bc00ff9e9c68e663a0))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Config
|
|
21
|
+
|
|
22
|
+
* update theme ([ac35305](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ac35305ed3e037ef3a5b7b3baa58690ec94cb5c1))
|
|
23
|
+
|
|
1
24
|
## [34.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v34.0.0...v34.0.1) (2023-09-27)
|
|
2
25
|
|
|
3
26
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "34.0.
|
|
3
|
+
"version": "34.0.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Matrix Theme NPM Package",
|
|
6
6
|
"author": "",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@react-icons/all-files": "^4.1.0",
|
|
27
27
|
"gatsby": "^5.11.0",
|
|
28
|
-
"gatsby-core-theme": "30.0.
|
|
28
|
+
"gatsby-core-theme": "30.0.3",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
31
31
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
@@ -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
|
)}
|
|
@@ -87,7 +87,6 @@ export const relationContent = (section, numOfStarsRating) => {
|
|
|
87
87
|
extraFields: section?.page?.extra_fields || {},
|
|
88
88
|
numOfStars: numOfStarsRating,
|
|
89
89
|
};
|
|
90
|
-
console.log({ sectionOp: section });
|
|
91
90
|
switch (section?.page?.page_styles?.short_name) {
|
|
92
91
|
case 'template_three': {
|
|
93
92
|
ModuleComponent = loadable(() =>
|
|
@@ -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 };
|