@griddo/cx 1.65.6 → 1.65.9

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.65.6",
4
+ "version": "1.65.9",
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.65.6",
67
+ "@griddo/eslint-config-back": "^1.65.9",
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": "35baa12c2aab095804b0cae77be0da855c1ded86"
99
+ "gitHead": "8e4e7f4297dda0d11fc6798d66089c65e039b8d8"
100
100
  }
@@ -1,17 +1,10 @@
1
+ /* eslint-disable node/no-extraneous-import */
1
2
  import * as React from 'react';
2
3
  import { Link, navigate } from 'gatsby';
3
4
  import Seo from './seo';
4
- import {
5
- core,
6
- components,
7
- templates,
8
- providers,
9
- cloudinaryDefaults,
10
- griddoDamDefaults,
11
- translations,
12
- } from 'components';
5
+ import { components, templates, providers } from 'components';
13
6
 
14
- const { Page: RenderGriddoPage } = core;
7
+ import { Page as RenderGriddoPage } from '@griddo/core';
15
8
  const { SiteProvider } = providers;
16
9
 
17
10
  export default data => {
@@ -50,8 +43,6 @@ export default data => {
50
43
  location={data.location}
51
44
  socials={socials}
52
45
  siteLangs={siteLangs}
53
- translations={translations}
54
- cloudinaryDefaults={cloudinaryDefaults}
55
46
  siteMetadata={siteMetadata}
56
47
  renderer="gatsby"
57
48
  buildMode={BUILD_MODE}
@@ -59,7 +50,6 @@ export default data => {
59
50
  apiUrl={apiUrl}
60
51
  publicApiUrl={publicApiUrl}
61
52
  sitePages={sitePages}
62
- griddoDamDefaults={griddoDamDefaults}
63
53
  >
64
54
  <Seo
65
55
  siteMetadata={siteMetadata}
@@ -48,6 +48,7 @@ class DistributorService {
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) {
51
+ if (key === 'queriedItems') continue;
51
52
  const component = template[key];
52
53
  if (!component || typeof (component) !== 'object') continue;
53
54
  if (component.hasDistributorData) {
@@ -75,6 +75,7 @@ const getMultiPageElements = (distributorTemplate) => new Promise((resolve) => {
75
75
  for (let key in template) {
76
76
  const currentComponent = template[key];
77
77
  if (!currentComponent || typeof (currentComponent) !== 'object') continue;
78
+ if (!JSON.stringify(currentComponent).includes('"hasGriddoMultiPage":true')) continue;
78
79
  const {
79
80
  component,
80
81
  hasGriddoMultiPage,
File without changes