gatsby-core-theme 39.0.2 → 39.0.4
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 +23 -0
- package/gatsby-browser.js +17 -0
- package/gatsby-node.mjs +1 -0
- package/package.json +1 -1
- package/src/hooks/modal/index.js +1 -0
- package/src/hooks/modal/modal-content.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## [39.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v39.0.3...v39.0.4) (2024-09-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* small bug in 404 ([254557d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/254557d70ed4a9cb1a24675deec16a4eeb1fd474))
|
|
7
|
+
|
|
8
|
+
## [39.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v39.0.2...v39.0.3) (2024-09-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add piguard on core theme ([59d895e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/59d895e78a4e4dc30ea9e302540e2ce1dbb23f7a))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Code Refactoring
|
|
17
|
+
|
|
18
|
+
* stop overflow ([22ed4da](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/22ed4da695c66f2351ffe22b7d1c7517dab06a26))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
* Merge branch 'tm-4567-feedback-modal' into 'master' ([9405f06](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9405f069f57bd336fbff84caaffb01d719503539))
|
|
22
|
+
* Merge branch 'tm4552-third-party-scripts' into 'master' ([57f617b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/57f617bc3bccdbe434dec3138de15da5d1da0b5e))
|
|
23
|
+
|
|
1
24
|
## [39.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v39.0.1...v39.0.2) (2024-09-05)
|
|
2
25
|
|
|
3
26
|
|
package/gatsby-browser.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/* eslint-disable no-sequences */
|
|
2
|
+
/* eslint-disable one-var */
|
|
3
|
+
/* eslint-disable no-var */
|
|
4
|
+
/* eslint-disable no-multi-assign */
|
|
5
|
+
/* eslint-disable prefer-rest-params */
|
|
1
6
|
/* eslint-disable no-undef */
|
|
2
7
|
/* eslint-disable no-unused-expressions */
|
|
3
8
|
/* eslint-disable no-underscore-dangle */
|
|
@@ -111,9 +116,21 @@ const microsoftAdvertising = () => {
|
|
|
111
116
|
})(window, document, 'script', '//bat.bing.com/bat.js', 'uetq');
|
|
112
117
|
};
|
|
113
118
|
|
|
119
|
+
const piguard = () =>{
|
|
120
|
+
const script = document.createElement('script');
|
|
121
|
+
script.id = 'piguard';
|
|
122
|
+
script.src = `https://pg.${process.env.GATSBY_SITE_NAME}/analytics.js?tid=PP-${process.env.PIGUARD_ID}`;
|
|
123
|
+
script.async = true;
|
|
124
|
+
document.head.appendChild(script);
|
|
125
|
+
}
|
|
126
|
+
|
|
114
127
|
function scrollEvent(event) {
|
|
115
128
|
initGTM();
|
|
116
129
|
|
|
130
|
+
if (!document.getElementById('piguard') && process.env.ENABLE_PIGUARD === 'true') {
|
|
131
|
+
piguard();
|
|
132
|
+
}
|
|
133
|
+
|
|
117
134
|
if (process.env.ENABLE_MICROSOFT === 'true' && !document.getElementById('microsoft-code'))
|
|
118
135
|
microsoftAdvertising();
|
|
119
136
|
|
package/gatsby-node.mjs
CHANGED
|
@@ -417,6 +417,7 @@ export const onCreatePage = async ({ page, actions }) => {
|
|
|
417
417
|
context: {
|
|
418
418
|
page: { ...context404.page, market: marketCode, language: langCode },
|
|
419
419
|
lang: langCode,
|
|
420
|
+
allMarkets: allMarketsData,
|
|
420
421
|
marketSections: allMarketSectionsData[marketCode],
|
|
421
422
|
},
|
|
422
423
|
});
|
package/package.json
CHANGED
package/src/hooks/modal/index.js
CHANGED