@griddo/cx 11.1.2 → 11.1.3

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.
@@ -29,6 +29,7 @@ type Report = {
29
29
  publishHashes: Array<string>;
30
30
  siteHash: string | null;
31
31
  unpublishHashes: Array<string>;
32
+ publishPagesIds: Array<number>;
32
33
  }>;
33
34
  };
34
35
 
@@ -121,6 +121,7 @@ async function createStore(domain: string) {
121
121
  siteHash,
122
122
  unpublishHashes,
123
123
  publishHashes: [],
124
+ publishPagesIds: [],
124
125
  };
125
126
 
126
127
  const NavService = new NavigationService();
@@ -278,9 +279,11 @@ async function createStore(domain: string) {
278
279
  ];
279
280
  }
280
281
 
281
- // Upload only the valid pages hashes of pages that has been changed or created
282
+ // Upload only the valid pages hashes or ids of pages that has
283
+ // been changed or created.
282
284
  if (page.hash !== null) {
283
285
  buildProcessData[siteId].publishHashes.push(page.hash);
286
+ buildProcessData[siteId].publishPagesIds.push(page.id);
284
287
  }
285
288
 
286
289
  // Save build data to store
@@ -11,6 +11,8 @@ export type EndSiteRenderBody = {
11
11
  siteHash: string | null;
12
12
  /** Site hashes to unpublish. */
13
13
  unpublishHashes: Array<string>;
14
+ /** Page ids that publish */
15
+ publishPagesIds: Array<number>;
14
16
  };
15
17
 
16
18
  /** ReferenceField Body */
@@ -103,6 +103,7 @@ async function unpublishSites(sites: Array<Site>) {
103
103
  siteHash,
104
104
  publishHashes: [],
105
105
  unpublishHashes: [],
106
+ publishPagesIds: [],
106
107
  };
107
108
 
108
109
  await endSiteRender(site.id, body);
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": "11.1.2",
4
+ "version": "11.1.3",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -60,7 +60,7 @@
60
60
  "@babel/preset-env": "7.26.0",
61
61
  "@babel/preset-react": "7.26.3",
62
62
  "@babel/preset-typescript": "7.26.0",
63
- "@griddo/core": "11.1.2",
63
+ "@griddo/core": "11.1.3",
64
64
  "@svgr/webpack": "5.5.0",
65
65
  "axios": "1.7.9",
66
66
  "babel-loader": "9.2.1",
@@ -126,5 +126,5 @@
126
126
  "publishConfig": {
127
127
  "access": "public"
128
128
  },
129
- "gitHead": "fab43246d39270d022cb74468ce3d1bb84ccf24c"
129
+ "gitHead": "5b505e1cd245ac9c2d566bd6efa533f9f910c423"
130
130
  }