@griddo/cx 1.66.13 → 1.67.2

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/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.66.13",
4
+ "version": "1.67.2",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -64,7 +64,7 @@
64
64
  "react-helmet": "^6.0.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@griddo/eslint-config-back": "^1.66.13",
67
+ "@griddo/eslint-config-back": "^1.67.2",
68
68
  "eslint": "^7.5.0",
69
69
  "eslint-plugin-node": "^11.1.0",
70
70
  "eslint-plugin-react": "7.14.3",
@@ -96,5 +96,5 @@
96
96
  "publishConfig": {
97
97
  "access": "public"
98
98
  },
99
- "gitHead": "b849f570dbdd19b1a62d85bc012c10077035cdde"
99
+ "gitHead": "433ce2d1f77d7b616c46d74a1c050b30f5cd8000"
100
100
  }
@@ -44,6 +44,9 @@ export default data => {
44
44
 
45
45
  const mappedTheme = theme || 'default-theme';
46
46
 
47
+ if (!content.dimensions) content.dimensions = [];
48
+ content.dimensions.values = analyticsDimensions;
49
+
47
50
  return (
48
51
  <SiteProvider
49
52
  theme={mappedTheme}
@@ -75,33 +78,6 @@ export default data => {
75
78
  analyticsDimensions={analyticsDimensions}
76
79
  analyticsScript={analyticsScript}
77
80
  />
78
-
79
- {/*
80
-
81
- El componente Page de @griddo/core se encarga de renderizar header,
82
- footer y los módulos mediante un bucle interno.
83
-
84
- +---------------------------+ --> +---------------------------+
85
- | header | | <SiteProvider/> |
86
- +---------------------------+ --> | <PageProvider/> |
87
- | template{} | | <Header/> |
88
- | -> section 0 -> modules[] | --> | |
89
- | -> section n -> modules[] | | <HeroSection/> |
90
- +---------------------------+ --> | <Module/> |
91
- | footer | | |
92
- +---------------------------+ --> | <MainSection/> |
93
- | <Module/> |
94
- | <Module/> |
95
- | <Module/> |
96
- | <Module/> |
97
- | |
98
- | <Footer/> |
99
- | <PageProvider/> |
100
- | <SiteProvider/> |
101
- +---------------------------+
102
-
103
- */}
104
-
105
81
  <RenderGriddoPage
106
82
  content={content}
107
83
  header={header}
@@ -44,7 +44,7 @@ class DistributorService {
44
44
  try {
45
45
  const { template } = page;
46
46
 
47
- const getDistributorsContent = async (template, level = 1) => {
47
+ const checkDistributors = async (template, level = 1) => {
48
48
  if (!template || typeof (template) !== 'object') return;
49
49
  if (!JSON.stringify(template).includes('"hasDistributorData":true')) return;
50
50
  for (let key in template) {
@@ -58,12 +58,12 @@ class DistributorService {
58
58
  cached
59
59
  });
60
60
  }
61
- await getDistributorsContent(component, level + 1);
61
+ await checkDistributors(component, level + 1);
62
62
  }
63
63
  };
64
64
 
65
65
  const getDistributors = async (template) => {
66
- await getDistributorsContent([template]); // ==> En array para que también revise la propia template como objeto.
66
+ await checkDistributors([template]); // ==> En array para que también revise la propia template como objeto.
67
67
  return template;
68
68
  };
69
69