@griddo/cx 1.62.3 → 1.62.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.
Files changed (2) hide show
  1. package/gatsby-browser.js +0 -24
  2. package/package.json +3 -3
package/gatsby-browser.js CHANGED
@@ -105,31 +105,7 @@ exports.wrapRootElement = props => {
105
105
  };
106
106
 
107
107
  exports.onRouteUpdate = props => {
108
- // Instance onRouteUpdate
109
108
  if (browser.onRouteUpdate) {
110
109
  browser.onRouteUpdate(props);
111
110
  }
112
-
113
- // Griddo onRouteUpdate
114
- if (!window || !document || !location || !location.hash) return;
115
-
116
- const headerHeight =
117
- document.querySelector('.griddo-header')?.offsetHeight || 0;
118
- if (location.hash !== '') {
119
- window.scrollTo({
120
- left: 0,
121
- top: getOffset(location.hash).top - headerHeight,
122
- behavior: 'smooth',
123
- });
124
- }
125
111
  };
126
-
127
- // Functions
128
-
129
- function getOffset(el) {
130
- const rect = document?.querySelector(el)?.getBoundingClientRect();
131
- return {
132
- left: rect?.left + window?.scrollX,
133
- top: rect?.top + window?.scrollY,
134
- };
135
- }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "1.62.3",
4
+ "version": "1.62.4",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -66,7 +66,7 @@
66
66
  "react-helmet": "^6.0.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@griddo/eslint-config-back": "^1.62.3",
69
+ "@griddo/eslint-config-back": "^1.62.4",
70
70
  "eslint": "^7.5.0",
71
71
  "eslint-plugin-node": "^11.1.0",
72
72
  "eslint-plugin-react": "7.14.3",
@@ -98,5 +98,5 @@
98
98
  "publishConfig": {
99
99
  "access": "public"
100
100
  },
101
- "gitHead": "a06d325550a9963c24c2072634bfa751a063f2ac"
101
+ "gitHead": "880c563378704e4a44a22a794b0fafee9fad88e6"
102
102
  }