gatsby-core-theme 39.0.13 → 39.0.15

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/.ci.yml CHANGED
@@ -3,7 +3,7 @@
3
3
  Theme Tests:
4
4
  stage: test
5
5
  tags:
6
- - gatsby-runner
6
+ - gatsby-runner-dev-1
7
7
  script:
8
8
  - pwd
9
9
  - ls
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [39.0.15](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v39.0.14...v39.0.15) (2024-09-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 404 bug ([7c4541c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7c4541cf9a514b890f7c01b7895fb6d39e35ec13))
7
+ * runners reverted ([99ab3f1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/99ab3f1c82cce3529486e5a7ed56163f52df107e))
8
+
9
+ ## [39.0.14](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v39.0.13...v39.0.14) (2024-09-17)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * tracking-link ([6542f18](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6542f18b1736666b6bd317ab3fe258c7b1830f1d))
15
+
16
+
17
+ * Merge branch 'tm-4730-tracking-link' into 'master' ([3bf87cf](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3bf87cf9e24e6540bd439b8d38575d0f78128601))
18
+
1
19
  ## [39.0.13](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v39.0.12...v39.0.13) (2024-09-16)
2
20
 
3
21
 
package/gatsby-node.mjs CHANGED
@@ -427,11 +427,14 @@ export const onCreatePage = async ({ page, actions }) => {
427
427
 
428
428
  if (is404Page(allMarketPrefixes, page.path)) {
429
429
  const oldPage = { ...page };
430
- const langCode = page.path.split(`/`)[1];
431
- page.matchPath = `/${langCode}/*`;
430
+ const pathPrefix = page.path.split(`/`)[1];
431
+ page.matchPath = `/${pathPrefix}/*`;
432
432
  const marketCode = await Object.keys(allMarketsData).find(
433
- (key) => allMarketsData[key].path_prefix === langCode
433
+ (key) => allMarketsData[key].path_prefix === pathPrefix
434
434
  );
435
+
436
+ const marketSplit = marketCode.split('_');
437
+ const marketLang = marketSplit && marketSplit.length > 0 && marketSplit[1];
435
438
 
436
439
  if (marketCode) {
437
440
  // Recreate the modified page
@@ -439,8 +442,8 @@ export const onCreatePage = async ({ page, actions }) => {
439
442
  createPage({
440
443
  ...page,
441
444
  context: {
442
- page: { ...context404.page, market: marketCode, language: langCode },
443
- lang: langCode,
445
+ page: { ...context404.page, market: marketCode, language: marketLang },
446
+ lang: marketLang,
444
447
  allMarkets: allMarketsData,
445
448
  marketSections: allMarketSectionsData[marketCode],
446
449
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "39.0.13",
3
+ "version": "39.0.15",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -58,8 +58,9 @@ export default function Bonus({
58
58
  <div className={styles.bonus || ""}>
59
59
  <BonusBox
60
60
  item={operator}
61
- module="bonus"
61
+ module={module.name}
62
62
  tracker={module?.type || "main"}
63
+ modulePosition={modulePosition}
63
64
  />
64
65
  {!tncFixed && <Tnc isFixed={tncFixed} operator={operator} />}
65
66
  </div>
@@ -84,6 +84,7 @@ export default function BonusBox({
84
84
  {showVariablesComponent && variableInsideContainer && (
85
85
  <VariableComponent
86
86
  item={item}
87
+ module={module}
87
88
  modulePosition={modulePosition}
88
89
  itemPosition={itemPosition}
89
90
  />
package/storybook/.ci.yml CHANGED
@@ -6,7 +6,7 @@ Storybook Build:
6
6
  image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node18
7
7
  stage: build
8
8
  tags:
9
- - gatsby-runner
9
+ - gatsby-runner-dev-1
10
10
  script:
11
11
  - yarn config set cache-folder .yarn
12
12
  - npm config set //registry.npmjs.org/:_authToken $NPM_AUTH_TOKEN
@@ -28,7 +28,7 @@ Storybook Deploy:
28
28
  name: storybook
29
29
  url: http://storybook-gatsby.gigmedia.com/
30
30
  tags:
31
- - gatsby-runner
31
+ - gatsby-runner-dev-1
32
32
  script:
33
33
  - mkdir -p ~/.ssh
34
34
  - echo "$FLOYD_ROOT_KEY" > ~/.ssh/id_rsa