@griddo/cx 10.1.57 → 10.1.58

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)});z[Z]||(ws=global[Z]||[],xs(z,ws),z.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)}}},Ar=new Kn;var el=K(Yn()),tl=K(gt()),rl=K(Gt());var yp=K(gt()),Vu=K(Gt()),gp=K(gn()),Yu=K(Wu());var Ju="10.1.57";Vu.default.config();var vp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS);function Ku(e){let t=e.length,r=e.length+2,n=" ".repeat(Math.floor((r-t)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
28
+ `)),process.exit(1)}}},Ar=new Kn;var el=K(Yn()),tl=K(gt()),rl=K(Gt());var yp=K(gt()),Vu=K(Gt()),gp=K(gn()),Yu=K(Wu());var Ju="10.1.58";Vu.default.config();var vp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS);function Ku(e){let t=e.length,r=e.length+2,n=" ".repeat(Math.floor((r-t)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
29
29
  `,s=`
30
30
  \u2570${"\u2500".repeat(r)}\u256F`,o=`\u2502${n}${e}${n}\u2502`;console.log(`${i}${o}${s}`)}function fi(e){vp&&console.info(e.replace(/(\s)\s+/g,"$1"))}function Xu(e){return new Promise(t=>setTimeout(t,e))}function Dr(e,t=3){return(e/1e3).toFixed(t)}function hi(e){return"site"in e&&e.site?e?.site:void 0}function di(...e){let t=performance.now();return e.forEach(r=>r()),Dr(performance.now()-t)}function Qu(){let e=`
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": "10.1.57",
4
+ "version": "10.1.58",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -68,7 +68,7 @@
68
68
  "react-helmet": "^6.0.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@griddo/eslint-config-back": "^10.1.57",
71
+ "@griddo/eslint-config-back": "^10.1.58",
72
72
  "@types/babel__core": "^7.20.0",
73
73
  "@types/babel__preset-env": "^7.9.2",
74
74
  "@types/csvtojson": "^2.0.0",
@@ -116,5 +116,5 @@
116
116
  "publishConfig": {
117
117
  "access": "public"
118
118
  },
119
- "gitHead": "0a2ad4b3e511ffcf458f1b51f5e6c60cb6442345"
119
+ "gitHead": "ca18dc33ec8aaf2eb7718c01abfa622514ab6a7c"
120
120
  }
@@ -114,10 +114,12 @@ function getPageMetaData(params: Core.Page): Core.Page["pageMetaData"] {
114
114
  *
115
115
  * @param page A page object ready to pass as content of the `pageContext` to use in the React template.
116
116
  * @param additionalInfo Additional page info to pass as content of `pageContext` to use in the React template.
117
+ * @param excludeFromSearch Boolean to avoid this page to be indexed in internal search tool.
117
118
  */
118
119
  async function createGatsbyPageObject(
119
120
  page: GriddoSinglePage | GriddoListPage | GriddoMultiPage,
120
- additionalInfo: PageAdditionalInfo
121
+ additionalInfo: PageAdditionalInfo,
122
+ excludeFromSearch = false
121
123
  ): Promise<GatsbyPageObject> {
122
124
  // Extract some props from page
123
125
  const {
@@ -214,7 +216,7 @@ async function createGatsbyPageObject(
214
216
  },
215
217
  };
216
218
 
217
- if (GRIDDO_SEARCH_FEATURE) {
219
+ if (GRIDDO_SEARCH_FEATURE && !excludeFromSearch) {
218
220
  const exportFile = path.resolve(
219
221
  __dirname,
220
222
  "../../dist/",
@@ -303,7 +305,11 @@ async function createGriddoListPagesForGatsby(
303
305
  defaultLang,
304
306
  };
305
307
 
306
- return await createGatsbyPageObject(paginatedPage, additionalInfo);
308
+ return await createGatsbyPageObject(
309
+ paginatedPage,
310
+ additionalInfo,
311
+ !isFirstPage
312
+ );
307
313
  });
308
314
 
309
315
  return Promise.all(allPages);