gatsby-core-theme 44.26.0 → 44.26.1
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,13 @@
|
|
|
1
|
+
## [44.26.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.26.0...v44.26.1) (2026-06-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update operator cta ([8614ca6](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8614ca6112b95852b1d78b75ce34e380876bd33e))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'en-531-data-attributes' into 'master' ([3e06e32](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/3e06e32253e79ccc1cfc41bea38f5e5a22aa3596))
|
|
10
|
+
|
|
1
11
|
# [44.26.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.25.3...v44.26.0) (2026-06-10)
|
|
2
12
|
|
|
3
13
|
|
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,
|