gatsby-matrix-theme 52.0.42 → 52.0.43

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,12 @@
1
+ ## [52.0.43](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.42...v52.0.43) (2024-12-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * exlusive operator ([2c86568](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/2c865683d1cafe07dc4e5723bbe4256c61e424a0))
7
+ * operator exlusive handling ([fd5dc54](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/fd5dc54c3db5d61082dc26a1dd74619fa651ecce))
8
+ * update version ([89fe3ef](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/89fe3ef4058e35828a40027df58904c00c7dd2ed))
9
+
1
10
  ## [52.0.42](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.41...v52.0.42) (2024-12-04)
2
11
 
3
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "52.0.42",
3
+ "version": "52.0.43",
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": "41.1.4",
28
+ "gatsby-core-theme": "41.1.5",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-transformer-sharp": "^5.11.0",
31
31
  "gatsby-plugin-sitemap": "^6.13.1",
@@ -13,13 +13,14 @@ import { imagePrettyUrl, getAltText } from '~helpers/getters';
13
13
  import { TrackingKeys } from '~constants/tracking-api'
14
14
  import styles from './oeprator-exlusive.module.scss';
15
15
 
16
- const Banner = ({ bonus, template, closeButtonIcon = true, width = '48', height = '48' }) => {
16
+ const Banner = ({ bonus = {}, template, closeButtonIcon = true, width = '48', height = '48' }) => {
17
17
  const { value, module_title } = bonus;
18
- const [, reviewPath] = value.review_link.split('.co.za/');
18
+ const [reviewPath] = value?.review_link?.split('.co.za/') || {};
19
19
  const splitBy = module_title?.includes('OR') ? 'OR' : module_title?.includes('+') ? '+' : '&';
20
+
20
21
  const [firstLine, secondLine] = module_title
21
22
  ? module_title.split(splitBy)
22
- : bonus?.value?.bonuses?.main?.one_liner.split('+');
23
+ : bonus?.value?.bonuses?.main?.one_liner?.split('+') || [];
23
24
 
24
25
  const imageObject = value?.logo;
25
26
  const tracker = isMobileDevice() ? 'mobbanner' : 'banner';
@@ -43,7 +44,7 @@ const Banner = ({ bonus, template, closeButtonIcon = true, width = '48', height
43
44
  {useTranslate('exclusive_offer', 'EXCLUSIVE OFFER')}
44
45
  </div>
45
46
  <div className={styles?.logo || ''}>
46
- <Link to={reviewPath} title={bonus.name} className="banner-gtm bonus-cta logo-cta">
47
+ <Link to={reviewPath || ''} title={bonus.name} className="banner-gtm bonus-cta logo-cta">
47
48
  <LazyImage
48
49
  alt={getAltText(imageObject, value.name)}
49
50
  src={imagePrettyUrl(
@@ -1 +1 @@
1
- {"generatedAt":1733324922701,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"metaFramework":{"name":"Gatsby","packageName":"gatsby","version":"5.13.6"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"1.22.19"},"storybookVersion":"6.5.16","language":"javascript","storybookPackages":{"@storybook/addon-actions":{"version":"6.5.16"},"@storybook/builder-webpack5":{"version":"6.5.16"},"@storybook/manager-webpack5":{"version":"6.5.16"},"@storybook/react":{"version":"6.5.16"}},"framework":{"name":"react"},"addons":{"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-essentials":{"version":"6.5.16"}}}
1
+ {"generatedAt":1733489545680,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"metaFramework":{"name":"Gatsby","packageName":"gatsby","version":"5.13.6"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"1.22.19"},"storybookVersion":"6.5.16","language":"javascript","storybookPackages":{"@storybook/addon-actions":{"version":"6.5.16"},"@storybook/builder-webpack5":{"version":"6.5.16"},"@storybook/manager-webpack5":{"version":"6.5.16"},"@storybook/react":{"version":"6.5.16"}},"framework":{"name":"react"},"addons":{"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-essentials":{"version":"6.5.16"}}}