gatsby-matrix-theme 52.0.38 → 52.0.39
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,10 @@
|
|
|
1
|
+
## [52.0.39](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.38...v52.0.39) (2024-11-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* preview feature not working ([76bd340](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/76bd340eeeced562ce1a5b1f5efbc60bda8943c6))
|
|
7
|
+
|
|
1
8
|
## [52.0.38](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.37...v52.0.38) (2024-11-21)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -16,32 +16,30 @@ export async function getAPIData(page, url, header, preview) {
|
|
|
16
16
|
|
|
17
17
|
if (preview) {
|
|
18
18
|
try {
|
|
19
|
-
const siteName = process.env.GATSBY_SITE_NAME;
|
|
19
|
+
const siteName = process.env.GATSBY_SITE_NAME;
|
|
20
20
|
const params = deparam(url.split('?')[1]);
|
|
21
21
|
// eslint-disable-next-line camelcase
|
|
22
22
|
const response = await getData(siteName, params?.path, params?.market_id, true);
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const { siteSettingsData, siteGeneralData, responsableGamingData, toplistData, contentData, ribbonsData } = await fetchSiteSettings(siteName, true);
|
|
24
|
+
|
|
25
25
|
const pagePreview = response.pages.preview;
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
const processed = processor.run({
|
|
28
28
|
...response,
|
|
29
29
|
siteSettingsData,
|
|
30
30
|
general: siteGeneralData,
|
|
31
|
-
prefilled_market_modules:siteSettingsData.prefilled_modules,
|
|
31
|
+
prefilled_market_modules: siteSettingsData.prefilled_modules,
|
|
32
32
|
responsible_gamings: responsableGamingData,
|
|
33
33
|
toplists: toplistData,
|
|
34
34
|
content: contentData,
|
|
35
35
|
ribbons: ribbonsData
|
|
36
|
-
},{}, null, null, true);
|
|
37
|
-
|
|
38
|
-
const { path } = processed.pages[pagePreview.market].preview[0];
|
|
36
|
+
}, {}, null, null, true);
|
|
39
37
|
|
|
40
38
|
const pagePreviewProcessed = processed.pages[pagePreview.market][
|
|
41
39
|
pagePreview.relation_type
|
|
42
40
|
// eslint-disable-next-line no-shadow
|
|
43
|
-
]
|
|
44
|
-
|
|
41
|
+
][0]
|
|
42
|
+
|
|
45
43
|
return {
|
|
46
44
|
props: {
|
|
47
45
|
marketSections: processed.market_sections[pagePreview.market],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1732616990487,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"metaFramework":{"name":"Gatsby","packageName":"gatsby","version":"5.13.6"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"1.22.19"},"storybookVersion":"6.5.16","language":"javascript","storybookPackages":{"@storybook/addon-actions":{"version":"6.5.16"},"@storybook/builder-webpack5":{"version":"6.5.16"},"@storybook/manager-webpack5":{"version":"6.5.16"},"@storybook/react":{"version":"6.5.16"}},"framework":{"name":"react"},"addons":{"@storybook/addon-links":{"version":"6.5.16"},"@storybook/addon-essentials":{"version":"6.5.16"}}}
|