@griddo/cx 1.75.220 → 1.75.222

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/build/index.js CHANGED
@@ -25,7 +25,7 @@ GFS4: `),console.error(e)});G[Q]||(ta=global[Q]||[],na(G,ta),G.close=function(e)
25
25
  \u2502 Access credentials failure \u2502
26
26
  \u2502 Check that the login details are correct in your .env file \u2502
27
27
  \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F
28
- `)),process.exit(1)}}},hr=new An;var Xu=Y(On()),Ku=Y(yt()),Qu=Y(Gt());var lp=Y(yt()),Gu=Y(Gt()),fp=Y(tu()),zu=Y(Hu());var Uu="1.75.220";Gu.default.config();var hp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS);function Wu(...e){hp&&console.info(...e)}function Ju(e){return new Promise(t=>setTimeout(t,e))}function ci(e,t=3){return(e/1e3).toFixed(t)}function Vu(e){return"site"in e&&e.site?e?.site:void 0}function ui(...e){let t=performance.now();return e.forEach(r=>r()),ci(performance.now()-t)}function Yu(){let e=`
28
+ `)),process.exit(1)}}},hr=new An;var Xu=Y(On()),Ku=Y(yt()),Qu=Y(Gt());var lp=Y(yt()),Gu=Y(Gt()),fp=Y(tu()),zu=Y(Hu());var Uu="1.75.222";Gu.default.config();var hp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS);function Wu(...e){hp&&console.info(...e)}function Ju(e){return new Promise(t=>setTimeout(t,e))}function ci(e,t=3){return(e/1e3).toFixed(t)}function Vu(e){return"site"in e&&e.site?e?.site:void 0}function ui(...e){let t=performance.now();return e.forEach(r=>r()),ci(performance.now()-t)}function Yu(){let e=`
29
29
  \xB7\xB7
30
30
  \xB7\xB7
31
31
  \xB7\xB7
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.75.220",
4
+ "version": "1.75.222",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -35,7 +35,6 @@
35
35
  "@babel/preset-env": "^7.14.5",
36
36
  "@babel/preset-react": "^7.14.5",
37
37
  "@babel/preset-typescript": "^7.16.5",
38
- "@griddo/core": "^1.75.220",
39
38
  "@svgr/webpack": "^5.5.0",
40
39
  "babel-loader": "^8.0.6",
41
40
  "babel-plugin-styled-components": "^1.10.7",
@@ -65,7 +64,7 @@
65
64
  "react-helmet": "^6.0.0"
66
65
  },
67
66
  "devDependencies": {
68
- "@griddo/eslint-config-back": "^1.75.220",
67
+ "@griddo/eslint-config-back": "^1.75.222",
69
68
  "@types/babel__core": "^7.20.0",
70
69
  "@types/babel__preset-env": "^7.9.2",
71
70
  "@types/csvtojson": "^2.0.0",
@@ -113,5 +112,5 @@
113
112
  "publishConfig": {
114
113
  "access": "public"
115
114
  },
116
- "gitHead": "c7f47e288e18f625b280a0f42532feadb4f34954"
115
+ "gitHead": "f417b394d6830b80fc15f2fd691b620a34d74b2e"
117
116
  }
@@ -15,6 +15,7 @@ const Head = (props: CustomHeadProps) => {
15
15
  const {
16
16
  pageContext: {
17
17
  griddoVersion,
18
+ renderDate,
18
19
  locale,
19
20
  openGraph,
20
21
  page: { disableHrefLangs, fullUrl, defaultLang },
@@ -104,8 +105,6 @@ const Head = (props: CustomHeadProps) => {
104
105
  ?.url) ||
105
106
  null;
106
107
 
107
- const currentTime = new Date().toString();
108
-
109
108
  return (
110
109
  <>
111
110
  {/* Uncomment with Gatsby 5.5.0 */}
@@ -174,7 +173,7 @@ const Head = (props: CustomHeadProps) => {
174
173
  {!siteOptions?.avoidDebugMetas && (
175
174
  <meta
176
175
  property="debug"
177
- content={`Griddo v${griddoVersion} @ ${currentTime}}`}
176
+ content={`Griddo v${griddoVersion} @ ${renderDate}}`}
178
177
  />
179
178
  )}
180
179
 
@@ -108,6 +108,7 @@ export type GatsbyPageObject = {
108
108
  footer: Record<string, unknown> | null;
109
109
  fullPath: Core.Page["fullPath"];
110
110
  griddoVersion: string;
111
+ renderDate: string;
111
112
  header: Record<string, unknown> | null;
112
113
  id?: number;
113
114
  languageId: number;
@@ -164,10 +164,11 @@ async function createGatsbyPageObject(
164
164
  socialTitle,
165
165
  });
166
166
 
167
- const pagePath =
168
- NEEDS_ASSET_PREFIX || STRIP_DOMAIN_FROM_PATH
169
- ? fullPath.compose
170
- : `${fullPath?.domain}${fullPath?.compose}`;
167
+ const pagePath = STRIP_DOMAIN_FROM_PATH
168
+ ? fullPath.compose
169
+ : `${fullPath.domain}${fullPath.compose}`;
170
+
171
+ const renderDate = new Date().toString();
171
172
 
172
173
  const pageObjectForGatsby: GatsbyPageObject = {
173
174
  path: pagePath,
@@ -193,6 +194,7 @@ async function createGatsbyPageObject(
193
194
  siteOptions,
194
195
  BUILD_MODE,
195
196
  griddoVersion,
197
+ renderDate,
196
198
  siteScript,
197
199
 
198
200
  // Navigation sections
@@ -31,6 +31,9 @@ const GRIDDO_RENDER_PAGES = (
31
31
  .map((item) => parseInt(item))
32
32
  .filter(Boolean);
33
33
 
34
+ const STRIP_DOMAIN_FROM_PATH =
35
+ !!process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH;
36
+
34
37
  /**
35
38
  * Check the instance sites and returns site prepared to be published and unpublished.
36
39
  */
@@ -232,7 +235,9 @@ async function generateSitemaps(sites: Array<Site>) {
232
235
 
233
236
  const sitemapBasePath = path.resolve(
234
237
  __dirname,
235
- `../../public/${slug.replace(domain, "")}`
238
+ `../../public/${
239
+ STRIP_DOMAIN_FROM_PATH ? slug.replace(domain, "") : slug
240
+ }`
236
241
  );
237
242
 
238
243
  for (const templateId of sitemapPageGroupKeys) {