gatsby-core-theme 44.26.0 → 44.26.2
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,24 @@
|
|
|
1
|
+
## [44.26.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.26.1...v44.26.2) (2026-06-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix the error ([a480c4d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a480c4d3ea91292ec689f5acf3c3c42b08fc9c52))
|
|
7
|
+
* remove the inactive opertors if they do not have status active ([fd5e339](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/fd5e33911ec805508eea7ffaa5fee0cafca9d4cc))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'EN-503-Inactive-opertors-autocomplete' into 'master' ([06de153](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/06de153ddfa3336fd40d759ed829cddfcbe10b80))
|
|
11
|
+
|
|
12
|
+
## [44.26.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.26.0...v44.26.1) (2026-06-10)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* update operator cta ([8614ca6](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8614ca6112b95852b1d78b75ce34e380876bd33e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
* Merge branch 'en-531-data-attributes' into 'master' ([3e06e32](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/3e06e32253e79ccc1cfc41bea38f5e5a22aa3596))
|
|
21
|
+
|
|
1
22
|
# [44.26.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.25.3...v44.26.0) (2026-06-10)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import { prettyTracker } from '~helpers/getters';
|
|
|
7
7
|
import { trackerLinkActive } from '~helpers/tracker';
|
|
8
8
|
import styles from './button.module.scss';
|
|
9
9
|
import useCtaClickHandler from '../../../hooks/useCtaClickHandler/index';
|
|
10
|
+
import operatorTypes from "../../../constants/operatorTypes";
|
|
10
11
|
|
|
11
12
|
const OperatorCtaButton = ({
|
|
12
13
|
operator,
|
|
@@ -70,6 +71,8 @@ const OperatorCtaButton = ({
|
|
|
70
71
|
const classes = `${styles[buttonType] || ''} ${status && styles[status] ? styles[status] : ''} ${buttonSize ? styles[`${buttonSize}_size`] : ''
|
|
71
72
|
} `;
|
|
72
73
|
|
|
74
|
+
const operatorName = operator?.short_name || operator?.name || undefined;
|
|
75
|
+
const dataModule = moduleName && modulePosition ? `${moduleName}-${modulePosition}` : undefined;
|
|
73
76
|
return (
|
|
74
77
|
trackerLinkActive(operator, tracker) && status === "active" ? (
|
|
75
78
|
<a
|
|
@@ -83,6 +86,13 @@ const OperatorCtaButton = ({
|
|
|
83
86
|
target="_blank"
|
|
84
87
|
rel={rel}
|
|
85
88
|
onClick={handleCtaClick}
|
|
89
|
+
data-interaction="outbound-click"
|
|
90
|
+
{...(operator?.type && { 'data-vertical': operatorTypes[operator?.type] || operator?.type })}
|
|
91
|
+
{...(operatorName && { 'data-operator': operatorName })}
|
|
92
|
+
{...(trackerType && { 'data-tracker': trackerType })}
|
|
93
|
+
{...(modulePosition && { 'data-location': modulePosition })}
|
|
94
|
+
{...(itemPosition && { 'data-position': itemPosition })}
|
|
95
|
+
{...(dataModule && { 'data-module': dataModule })}
|
|
86
96
|
>
|
|
87
97
|
{translateBtn}
|
|
88
98
|
{icon && icon}
|
|
@@ -103,6 +113,8 @@ OperatorCtaButton.propTypes = {
|
|
|
103
113
|
operator: PropTypes.shape({
|
|
104
114
|
name: PropTypes.string,
|
|
105
115
|
status: PropTypes.string,
|
|
116
|
+
short_name: PropTypes.string,
|
|
117
|
+
type: PropTypes.string,
|
|
106
118
|
}),
|
|
107
119
|
titleSuffix: PropTypes.string,
|
|
108
120
|
gtmClass: PropTypes.string,
|
package/src/resolver/index.mjs
CHANGED
|
@@ -565,7 +565,7 @@ export default {
|
|
|
565
565
|
extra_fields?.operator,
|
|
566
566
|
searchReleationPickKeys?.operator
|
|
567
567
|
);
|
|
568
|
-
|
|
568
|
+
|
|
569
569
|
const minimalPage = {
|
|
570
570
|
title,
|
|
571
571
|
pageType,
|
|
@@ -578,7 +578,7 @@ export default {
|
|
|
578
578
|
...(relation?.game_id && { game_id: relation.game_id }),
|
|
579
579
|
};
|
|
580
580
|
|
|
581
|
-
if (status === "active") {
|
|
581
|
+
if (status === "active" && (!relation || relation.status === "active")) {
|
|
582
582
|
searchSimpleData[page.market].push(
|
|
583
583
|
cloneDeep({
|
|
584
584
|
...minimalPage,
|