gatsby-core-theme 22.0.1 → 22.0.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [22.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v22.0.2...v22.0.3) (2023-05-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix for link list issue ([9f3dc28](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9f3dc289d8b018515ea0a0d12a35702ed6dedbe0))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'fix-link-list' into 'master' ([47a572c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/47a572cd74f29337455f34472ac3f7d574fc1acf))
|
|
10
|
+
|
|
11
|
+
## [22.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v22.0.1...v22.0.2) (2023-05-15)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* build bugs ([1100628](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/11006285cda8fa39b913449275fc6540b5be85ba))
|
|
17
|
+
|
|
1
18
|
## [22.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v22.0.0...v22.0.1) (2023-05-12)
|
|
2
19
|
|
|
3
20
|
|
package/package.json
CHANGED
package/src/helpers/api.js
CHANGED
|
@@ -26,6 +26,7 @@ export async function getPreview(siteName, page = null, themeOptions) {
|
|
|
26
26
|
marketSections: processed.market_sections[siteMarket],
|
|
27
27
|
prefilledModules: processed.prefilled_market_modules[siteMarket],
|
|
28
28
|
page: pagePreviewProcessed,
|
|
29
|
+
allMarkets: processed.site_markets,
|
|
29
30
|
siteInfo: processed.general,
|
|
30
31
|
});
|
|
31
32
|
})
|
|
@@ -72,21 +72,23 @@ export function transform(response) {
|
|
|
72
72
|
Object.keys(response.site_markets).forEach((siteMarket) => {
|
|
73
73
|
const language = siteMarket.split('_')[1];
|
|
74
74
|
transformed[siteMarket] = {};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
page.path
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
75
|
+
if (response.pages[language]) {
|
|
76
|
+
Object.keys(response.pages[language]).forEach((pageType) => {
|
|
77
|
+
transformed[siteMarket][pageType] = [];
|
|
78
|
+
Object.keys(response.pages[language][pageType]).forEach((pagePath) => {
|
|
79
|
+
const page = response.pages[language][pageType][pagePath][siteMarket];
|
|
80
|
+
if (response.site_markets[siteMarket].path_prefix && page) {
|
|
81
|
+
// set page prefix for multiple markets
|
|
82
|
+
page.path = `${response.site_markets[siteMarket].path_prefix}${
|
|
83
|
+
page.path !== '/' ? `/${page.path}` : page.path
|
|
84
|
+
}`;
|
|
85
|
+
transformed[siteMarket][pageType].push(page);
|
|
86
|
+
} else if (page) {
|
|
87
|
+
transformed[siteMarket][pageType].push(page);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
88
90
|
});
|
|
89
|
-
}
|
|
91
|
+
}
|
|
90
92
|
});
|
|
91
93
|
console.log('transform done');
|
|
92
94
|
|