@griddo/cx 10.1.20 → 10.1.22

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.20";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.22";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
@@ -39,4 +39,4 @@ ${p}
39
39
  ${y}
40
40
 
41
41
  =============
42
- `))}var Yn=class{baseURL;settings;ENDPOINTS;constructor(){this.baseURL=process.env.API_URL,this.settings={cloudinaryName:"",useMetaTitle:!1,showBasicMetaRobots:!1,avoidHrefLangsOnCanonicals:!1,avoidSelfReferenceCanonicals:!1,avoidHrefLangXDefault:!1,avoidDebugMetas:!1},this.ENDPOINTS={settings:`${this.baseURL}/settings`,resetRender:`${this.baseURL}/debug/reset-render`}}async getAll(){let{settings:t}=this.ENDPOINTS,r=await hc({endpoint:t});this.settings=r}async resetRender(){let{resetRender:t}=this.ENDPOINTS;await dc({endpoint:t})}},pc=new Yn;var dd=async()=>{await Zt.login(),await pc.resetRender()};dd();
42
+ `))}var Yn=class{baseURL;settings;ENDPOINTS;constructor(){this.baseURL=process.env.API_URL,this.settings={cloudinaryName:"",useMetaTitle:!1,useMetaKeywords:!1,showBasicMetaRobots:!1,avoidHrefLangsOnCanonicals:!1,avoidSelfReferenceCanonicals:!1,avoidHrefLangXDefault:!1,avoidDebugMetas:!1},this.ENDPOINTS={settings:`${this.baseURL}/settings`,resetRender:`${this.baseURL}/debug/reset-render`}}async getAll(){let{settings:t}=this.ENDPOINTS,r=await hc({endpoint:t});this.settings=r}async resetRender(){let{resetRender:t}=this.ENDPOINTS;await dc({endpoint:t})}},pc=new Yn;var dd=async()=>{await Zt.login(),await pc.resetRender()};dd();
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.20",
4
+ "version": "10.1.22",
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.20",
71
+ "@griddo/eslint-config-back": "^10.1.22",
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": "7116ef518e1b4c1297776e1f9cb6d85e8f4b7e80"
119
+ "gitHead": "f4c83713875a78532a56ccae4e29731252f4ea6a"
120
120
  }
@@ -181,7 +181,7 @@ const Head = (props: CustomHeadProps) => {
181
181
  )}
182
182
 
183
183
  {/* Keywords */}
184
- {!!pageMetadata?.metaKeywords && (
184
+ {siteOptions?.useMetaKeywords && !!pageMetadata?.metaKeywords && (
185
185
  <meta name="keywords" content={pageMetadata.metaKeywords} />
186
186
  )}
187
187
 
@@ -15,6 +15,7 @@ class SettingsService {
15
15
  this.settings = {
16
16
  cloudinaryName: "",
17
17
  useMetaTitle: false,
18
+ useMetaKeywords: false,
18
19
  showBasicMetaRobots: false,
19
20
  avoidHrefLangsOnCanonicals: false,
20
21
  avoidSelfReferenceCanonicals: false,
@@ -148,6 +148,7 @@ class StoreService {
148
148
  const {
149
149
  cloudinaryName,
150
150
  useMetaTitle,
151
+ useMetaKeywords,
151
152
  showBasicMetaRobots,
152
153
  avoidHrefLangsOnCanonicals,
153
154
  avoidSelfReferenceCanonicals,
@@ -191,6 +192,7 @@ class StoreService {
191
192
  griddoVersion,
192
193
  siteOptions: {
193
194
  useMetaTitle,
195
+ useMetaKeywords,
194
196
  showBasicMetaRobots,
195
197
  avoidHrefLangsOnCanonicals,
196
198
  avoidSelfReferenceCanonicals,
@@ -21,6 +21,7 @@ export interface Settings {
21
21
  siteLogoMini?: string;
22
22
  skipReviewOnPublish?: boolean;
23
23
  useMetaTitle?: boolean;
24
+ useMetaKeywords?: boolean;
24
25
  welcomeText1?: string;
25
26
  welcomeText2?: string;
26
27
  }
@@ -76,6 +76,7 @@ export interface AdditionalInfo {
76
76
  siteOptions: Pick<
77
77
  Settings,
78
78
  | "useMetaTitle"
79
+ | "useMetaKeywords"
79
80
  | "showBasicMetaRobots"
80
81
  | "avoidHrefLangsOnCanonicals"
81
82
  | "avoidSelfReferenceCanonicals"