gatsby-matrix-theme 53.22.4 → 53.23.0

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,13 @@
1
+ # [53.23.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.22.4...v53.23.0) (2026-06-29)
2
+
3
+
4
+ * Merge branch 'EN-574/update-lotto-api' into 'master' ([dc775a9](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/dc775a924320771ae0aa448f0bc15159d775da90))
5
+
6
+
7
+ ### Features
8
+
9
+ * update lotto api ([dbdfe00](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/dbdfe000db38cd92bd560036d3d28017d92f96ac))
10
+
1
11
  ## [53.22.4](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.22.3...v53.22.4) (2026-06-29)
2
12
 
3
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "53.22.4",
3
+ "version": "53.23.0",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -288,11 +288,11 @@ export async function getAPIData(page, url, header, preview) {
288
288
  const previousMonth = month === 1 ? 12 : month - 1;
289
289
  const year = date.getFullYear();
290
290
 
291
- const availableDates = await getAvailableDrawDays(apiBaseNames[0], 'WEEKEND', month, year);
291
+ const availableDates = await getAvailableDrawDays(apiBaseNames[0], month, year);
292
292
 
293
293
  const prevMonthData =
294
294
  availableDates.length <= 2
295
- ? await getAvailableDrawDays(apiBaseNames[0], 'WEEKEND', previousMonth, year)
295
+ ? await getAvailableDrawDays(apiBaseNames[0], previousMonth, year)
296
296
  : [];
297
297
 
298
298
  const orderedPrevMonth =
@@ -42,13 +42,11 @@ export const getFixtures = async (lotteryPath) => {
42
42
  /* -------------------------------------------------------------------------- */
43
43
  export const getAvailableDrawDays = async (
44
44
  lotteryName,
45
- listType,
46
45
  month,
47
46
  year,
48
- listTypeParam = 'list_type'
49
47
  ) => {
50
48
  const res = await fetch(
51
- `${process.env.LOTTERY_API_URL}calendar/${lotteryName}?${listTypeParam}=${listType}&month=${month}&year=${year}`
49
+ `${process.env.LOTTERY_API_URL}calendar/${lotteryName}?month=${month}&year=${year}`
52
50
  ).catch(() => null);
53
51
 
54
52
  const data = res ? await res.json() : { success: false };
@@ -1 +1 @@
1
- {"generatedAt":1782734334198,"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"}}}
1
+ {"generatedAt":1782741537087,"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"}}}