gatsby-core-theme 32.0.1 → 32.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 CHANGED
@@ -1,3 +1,25 @@
1
+ ## [32.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.2...v32.0.3) (2024-05-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * updated other bonus templates ([573d206](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/573d206cb46a660d60da068e05feed31f3b88180))
7
+
8
+
9
+ * Merge branch 'tm-4323-pretty-link-props' into 'master' ([9ce3012](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9ce3012a335f865dd2b771480678de408a9ca207))
10
+
11
+ ## [32.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.1...v32.0.2) (2024-05-30)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * added props for aria-label and title ([747243c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/747243c71c7a3801644ebb98fb72174d39e1c467))
17
+ * ammended implementation ([19e26c1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/19e26c1fed853487a322da46c2625ed7ed246c03))
18
+ * implemented on cta ([5650f82](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/5650f82b871cc5d0447373d89f938a5373a8528d))
19
+
20
+
21
+ * Merge branch 'tm-4323-pretty-link-props' into 'master' ([a8f0ca5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a8f0ca5c7b0edad285b74c6aaf0d4c17d6a965ae))
22
+
1
23
  ## [32.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.0...v32.0.1) (2024-05-30)
2
24
 
3
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "32.0.1",
3
+ "version": "32.0.3",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -18,6 +18,7 @@ const OperatorCtaButton = ({
18
18
  buttonSize = '',
19
19
  module = null,
20
20
  tracker = 'main',
21
+ titleSuffix,
21
22
  icon = null,
22
23
  translationsObj = {
23
24
  active: { translationKey: 'play_now', defaultValue: 'Visit' },
@@ -74,8 +75,12 @@ const OperatorCtaButton = ({
74
75
  return status === 'active' ? (
75
76
  <a
76
77
  href={prettyLink || '#'}
77
- title={typeof translateBtn === 'string' ? translateBtn : ''}
78
- aria-label={typeof translateBtn === 'string' ? translateBtn : ''}
78
+ title={`${typeof translateBtn === 'string' ? translateBtn : ''} ${
79
+ titleSuffix || ''
80
+ }`.trimEnd()}
81
+ aria-label={`${typeof translateBtn === 'string' ? translateBtn : ''} ${
82
+ titleSuffix || ''
83
+ }`.trimEnd()}
79
84
  className={`${classes} ${gtmClass}`}
80
85
  target="_blank"
81
86
  rel={rel}
@@ -86,8 +91,12 @@ const OperatorCtaButton = ({
86
91
  </a>
87
92
  ) : (
88
93
  <div
89
- title={typeof translateBtn === 'string' ? translateBtn : ''}
90
- aria-label={typeof translateBtn === 'string' ? translateBtn : ''}
94
+ title={`${typeof translateBtn === 'string' ? translateBtn : ''} ${
95
+ titleSuffix || ''
96
+ }`.trimEnd()}
97
+ aria-label={`${typeof translateBtn === 'string' ? translateBtn : ''} ${
98
+ titleSuffix || ''
99
+ }`.trimEnd()}
91
100
  className={`${classes || ''} ${gtmClass || ''}`}
92
101
  >
93
102
  {translateBtn}
@@ -101,6 +110,7 @@ OperatorCtaButton.propTypes = {
101
110
  name: PropTypes.string,
102
111
  status: PropTypes.string,
103
112
  }),
113
+ titleSuffix: PropTypes.string,
104
114
  gtmClass: PropTypes.string,
105
115
  pageTemplate: PropTypes.string,
106
116
  buttonSize: PropTypes.string,
@@ -12,7 +12,7 @@ const PrettyLink = ({
12
12
  pageTemplate,
13
13
  module,
14
14
  tracker,
15
- clickedElement,
15
+ titleSuffix,
16
16
  className,
17
17
  children,
18
18
  rel = 'nofollow noreferrer sponsored',
@@ -48,11 +48,11 @@ const PrettyLink = ({
48
48
  return (
49
49
  <a
50
50
  href={prettyLink || '#'}
51
- title={operator?.name}
51
+ title={`${operator?.name} ${titleSuffix || ''}`.trimEnd()}
52
52
  className={className}
53
53
  target="_blank"
54
54
  rel={rel}
55
- aria-label={`${operator?.name} Link`}
55
+ aria-label={`${operator?.name} ${titleSuffix || 'Link'}`}
56
56
  onClick={onCTAClick}
57
57
  >
58
58
  {children}
@@ -66,8 +66,8 @@ PrettyLink.propTypes = {
66
66
  }),
67
67
  pageTemplate: PropTypes.string,
68
68
  module: PropTypes.string,
69
+ titleSuffix: PropTypes.string,
69
70
  tracker: PropTypes.string,
70
- clickedElement: PropTypes.string,
71
71
  className: PropTypes.string,
72
72
  children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node, PropTypes.any]),
73
73
  rel: PropTypes.string,
@@ -11,6 +11,7 @@ export default function BonusBox({
11
11
  splitBy = '+',
12
12
  feSeparator = '+',
13
13
  module = 'bonus_box',
14
+ titleSuffix,
14
15
  }) {
15
16
  const data = getBonusData(item, tracker, splitBy);
16
17
 
@@ -20,6 +21,7 @@ export default function BonusBox({
20
21
  pageTemplate={pageTemplate}
21
22
  module={module}
22
23
  tracker={tracker}
24
+ titleSuffix={titleSuffix}
23
25
  clickedElement="oneliner"
24
26
  className={`${styles.detailsBox} ${'bonus-box-gtm'}`}
25
27
  >
@@ -38,4 +40,5 @@ BonusBox.propTypes = {
38
40
  splitBy: PropTypes.string,
39
41
  feSeparator: PropTypes.string,
40
42
  module: PropTypes.string,
43
+ titleSuffix: PropTypes.string,
41
44
  };
@@ -19,6 +19,7 @@ export default function BonusBox({
19
19
  feSeparator = '+',
20
20
  buttonType = 'primary',
21
21
  module = 'bonus_box',
22
+ titleSuffix,
22
23
  }) {
23
24
  const { translations } = useContext(Context) || {};
24
25
  const welcomeBonusTranslation = translate(translations, 'welcome_bonus', 'Welcome Bonus');
@@ -30,6 +31,7 @@ export default function BonusBox({
30
31
  pageTemplate={pageTemplate}
31
32
  module={module}
32
33
  tracker={tracker}
34
+ titleSuffix={titleSuffix}
33
35
  clickedElement="oneliner"
34
36
  className={`${styles.detailsBox} ${'bonus-box-gtm'}`}
35
37
  >
@@ -77,4 +79,5 @@ BonusBox.propTypes = {
77
79
  buttonType: PropTypes.string,
78
80
  variableInsideContainer: PropTypes.bool,
79
81
  module: PropTypes.string,
82
+ titleSuffix: PropTypes.string,
80
83
  };
@@ -14,6 +14,7 @@ export default function BonusBox({
14
14
  feSeparator = '+',
15
15
  buttonType = 'primary',
16
16
  module = 'bonus_box',
17
+ titleSuffix,
17
18
  }) {
18
19
  const data = getBonusData(item, tracker, splitBy);
19
20
 
@@ -24,6 +25,7 @@ export default function BonusBox({
24
25
  pageTemplate={pageTemplate}
25
26
  module={module}
26
27
  tracker={tracker}
28
+ titleSuffix={titleSuffix}
27
29
  clickedElement="oneliner"
28
30
  className={`${styles.detailsBox} ${'bonus-box-gtm'}`}
29
31
  >
@@ -51,4 +53,5 @@ BonusBox.propTypes = {
51
53
  feSeparator: PropTypes.string,
52
54
  buttonType: PropTypes.string,
53
55
  module: PropTypes.string,
56
+ titleSuffix: PropTypes.string,
54
57
  };