gatsby-core-theme 30.0.93 → 30.0.95

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,17 @@
1
+ ## [30.0.95](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.94...v30.0.95) (2024-03-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * email ([01c70bc](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/01c70bca58bdd701520199b10186c813f612a08d))
7
+
8
+ ## [30.0.94](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.93...v30.0.94) (2024-03-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * added new script ([010a45e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/010a45e2413d7237e10bdfbe74567a278176a09e))
14
+
1
15
  ## [30.0.93](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.92...v30.0.93) (2024-03-04)
2
16
 
3
17
 
package/gatsby-browser.js CHANGED
@@ -88,8 +88,35 @@ const loadFacebookPixel = () => {
88
88
  })(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
89
89
  };
90
90
 
91
+ const microsoftAdvertising = () => {
92
+ (function (w, d, t, r, u) {
93
+ var f, n, i;
94
+ (w[u] = w[u] || []),
95
+ (f = function () {
96
+ var o = { ti: '187106455', enableAutoSpaTracking: true };
97
+ (o.q = w[u]), (w[u] = new UET(o)), w[u].push('pageLoad');
98
+ }),
99
+ (n = d.createElement(t)),
100
+ (n.src = r),
101
+ (n.async = 1),
102
+ (n.id = 'microsoft-code'),
103
+ (n.onload = n.onreadystatechange =
104
+ function () {
105
+ var s = this.readyState;
106
+ (s && s !== 'loaded' && s !== 'complete') ||
107
+ (f(), (n.onload = n.onreadystatechange = null));
108
+ }),
109
+ (i = d.getElementsByTagName(t)[0]),
110
+ i.parentNode.insertBefore(n, i);
111
+ })(window, document, 'script', '//bat.bing.com/bat.js', 'uetq');
112
+ };
113
+
91
114
  function scrollEvent(event) {
92
115
  initGTM();
116
+
117
+ if (process.env.ENABLE_MICROSOFT === 'true' && !document.getElementById('microsoft-code'))
118
+ microsoftAdvertising();
119
+
93
120
  if (process.env.ENABLE_OPTINMONSTR === 'true' && !document.getElementById('optin-monstr'))
94
121
  optinMonster();
95
122
  if (process.env.ENABLE_PIXEL === 'true' && !document.getElementById('pixel-code')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "30.0.93",
3
+ "version": "30.0.95",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -46,7 +46,9 @@ export default function AuthorDetails({
46
46
  .map((filteredLinks) => (
47
47
  // eslint-disable-next-line jsx-a11y/control-has-associated-label
48
48
  <a
49
- href={filteredLinks.link}
49
+ href={
50
+ filteredLinks.id === 'em' ? `mailto:${filteredLinks.link}` : filteredLinks.link
51
+ }
50
52
  className="author-gtm"
51
53
  target="_blank"
52
54
  rel="nofollow noreferrer"