gatsby-core-theme 18.0.22 → 18.0.24

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
@@ -4,7 +4,7 @@ Theme Tests:
4
4
  image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
5
5
  stage: test
6
6
  tags:
7
- - floyd-runner-test
7
+ - gatsby-runner-dev-1
8
8
  script:
9
9
  - yarn config set cache-folder .yarn
10
10
  - yarn
@@ -22,7 +22,7 @@ Theme Publish:
22
22
  image: node:18.0.0
23
23
  stage: publish
24
24
  tags:
25
- - floyd-runner-test
25
+ - gatsby-runner-dev-1
26
26
  before_script:
27
27
  - git config --global http.sslverify false
28
28
  - git config --global user.email "floyd@gig.com"
@@ -44,7 +44,7 @@ Theme Beta Publish:
44
44
  image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
45
45
  stage: publish-beta
46
46
  tags:
47
- - floyd-runner-test
47
+ - gatsby-runner-dev-1
48
48
  before_script:
49
49
  - git config --global http.sslverify false
50
50
  - git config --global user.email "floyd@gig.com"
package/CHANGELOG.md CHANGED
@@ -1,3 +1,46 @@
1
+ ## [18.0.24](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v18.0.23...v18.0.24) (2023-03-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * added mixin ([2410eed](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/2410eed34e77c532b507b719b46327fd7d175391))
7
+ * removed filter from cdn and use default ([cf74eb5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/cf74eb5f976b50d9002dbf7a87894fe0bdcb5fc0))
8
+
9
+ ## [18.0.23](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v18.0.22...v18.0.23) (2023-03-21)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * add module as prop on cards and update pick keys ([132aeb4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/132aeb4485e33efe6f231f18f9f591c0bfd29d5f))
15
+ * added mixin ([fdb9341](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/fdb934116189acc230c499809d0714c9b2f21335))
16
+ * added mixin ([290c3aa](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/290c3aa73998f42f05be9ca1ffda9255d89e0024))
17
+ * added mixin ([fb67dd6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/fb67dd662ca05beb2589177d3ec9773c948129be))
18
+ * added settings for cards ([8c6c93a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8c6c93adfd25e1ed8da406fee6cf5ab11f0f9591))
19
+ * added settings for cards ([da88330](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/da88330b7f87bc903d5fd83a3b5c23016c26c766))
20
+ * lighthouse pipeline ([8631d06](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8631d0617b7c50cb71d1e8a909c8d02af8c8dd34))
21
+ * remove the change for desktop columns ([f297d16](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f297d16cf1776220b3a3039ad52ced728bcaa96e))
22
+ * remove the unecessary props ([3ba8011](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3ba8011ee60326541006f3bcb3c1c59394ced6d9))
23
+ * remove type ([3a9bcaa](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3a9bcaa40f9d1f2c44e63eee4a5c4d680f7d9782))
24
+ * test ([e532e0a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e532e0ab40b0b910fb6c5d6399bcaf80090ab075))
25
+ * test ([2095554](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/209555461c5d8ac32db733332f031bf6c0dc5873))
26
+ * update desktop columns grid for cards ([62d6bae](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/62d6baee68aa2979e78c0b82fdb40d3cd7e71ad4))
27
+ * update desktopColumn at 3 ([0980247](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/098024743d0b3cd4dac1199dcd3956d391d9ba2c))
28
+ * update props for organisms cards ([17b23ba](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/17b23baff4ea05f9941a6ac00081061f7a9fe59c))
29
+ * update tests ([b9a7e0e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b9a7e0e3fe2372d7c609b9b961f6968ffeea4c5e))
30
+ * updated git runners ([30ce707](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/30ce707efbf325f2e9d96c34696bc629f7efbd34))
31
+ * updated git runners ([ebb42d2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ebb42d2910123402825b8aac5981fe9cf8c0eb56))
32
+ * updated git runners ([d2d0df5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d2d0df5c7f10eac80cefe62180a95a2c5d43bb8f))
33
+ * updated git runners ([9707276](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9707276d1b9d3f562b30d8895a861c5c51bf50e5))
34
+ * updated git runners ([8f762ea](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8f762ea45f0f885a1244527db3093a31f59e1ddd))
35
+ * updated git runners ([087fd83](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/087fd83f71ea35cf22d5478fb26437bcae9f5a74))
36
+ * updated git runners ([da06858](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/da068588de237fab352e5a42a7de5750c674323c))
37
+ * updated git runners ([d912358](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d912358c0fdc5ea342a30fad5247c0b06a74137c))
38
+ * updated git runners ([558368a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/558368a8e8e629c4cc9ce38ff3c39399a1560b9b))
39
+
40
+
41
+ * Merge branch 'tm-3313-payment-method' into 'master' ([76f7bdc](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/76f7bdcd491a3f98e96877c7ce76e1f7999dc874))
42
+ * Merge branch 'tm-3379-remove-type' into 'master' ([3a41709](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3a41709e35b0c2538e0f61ecbdea4ada506cd8f8))
43
+
1
44
  ## [18.0.22](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v18.0.21...v18.0.22) (2023-03-13)
2
45
 
3
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "18.0.22",
3
+ "version": "18.0.24",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -65,7 +65,7 @@ const Row = ({
65
65
  >
66
66
  <Bonus item={item} tracker={oneliner} />
67
67
  </a>
68
- <StarRating numOfStars={5} rating={itemRating} showLabel />
68
+ {/* <StarRating numOfStars={5} rating={itemRating} showLabel /> */}
69
69
  <SellingPoints sellingPoints={item.selling_points} />
70
70
  <ReviewLink
71
71
  className={`${styles.reviewLink} toplist-variant-one-gtm`}
@@ -73,14 +73,12 @@ const Row = ({
73
73
  operatorName={item.name}
74
74
  reviewPath={reviewPath}
75
75
  />
76
- <div>
77
- <OperatorCta
78
- operator={item}
79
- tracker={tracker}
80
- gtmClass="toplist-operator-cta-gtm"
81
- pageTemplate={pageTemplate}
82
- />
83
- </div>
76
+ <OperatorCta
77
+ operator={item}
78
+ tracker={tracker}
79
+ gtmClass="toplist-operator-cta-gtm"
80
+ pageTemplate={pageTemplate}
81
+ />
84
82
  </li>
85
83
  );
86
84
  };
@@ -9,6 +9,7 @@ export const pickPageKeys = [
9
9
  'created_at',
10
10
  'banner',
11
11
  'sections',
12
+ 'description',
12
13
  ];
13
14
 
14
15
  export const topListPickKeys = [
@@ -84,6 +85,7 @@ export const pickRelationKeys = {
84
85
  'name',
85
86
  'rating',
86
87
  'standardised_logo_filename_object',
88
+ 'selling_points',
87
89
  ],
88
90
  };
89
91
 
@@ -11,6 +11,7 @@ export function generateTrackerLink(operator, trackerType, provider = false) {
11
11
  if (defaultTrackerFormat && trackerFormat) {
12
12
  if (operator.type === 'casino') {
13
13
  defaultTrackerFormat = defaultTrackerFormat.replace('type,', '');
14
+ trackerFormat = trackerFormat.replace('type,', '');
14
15
  }
15
16
  const linkFormatArray =
16
17
  trackerType === 'main' ? defaultTrackerFormat.split(',') : trackerFormat.split(',');
@@ -12,7 +12,7 @@ describe('Generate Tracker Link Helper', () => {
12
12
  const trackerLink = generateTrackerLink({ type: 'casino', short_name: 'bet365' }, 'non_main');
13
13
  expect(trackerLink).toBeTruthy();
14
14
  expect(typeof trackerLink).toEqual('string');
15
- expect(trackerLink).toEqual('/no/visit/bet365/casino/non_main');
15
+ expect(trackerLink).toEqual('/no/visit/bet365/non_main');
16
16
  });
17
17
  test('generateTrackerLink no tracker format', () => {
18
18
  const trackerLink = generateTrackerLink({ type: 'casino', short_name: 'bet365' }, 'main');
@@ -133,9 +133,8 @@ export function imagePrettyUrl(filename = 'image.png', width = null, height = nu
133
133
  if (width && height && hasFilters) {
134
134
  const urlPath = '/fit-in';
135
135
  const urlSize = `/${width}x${height}`;
136
- const filters = '/filters:quality(100)';
137
136
 
138
- return `${cdnURL}${urlPath}${urlSize}${filters}/${filename}`;
137
+ return `${cdnURL}${urlPath}${urlSize}/${filename}`;
139
138
  }
140
139
 
141
140
  return `${cdnURL}/${filename}`;
@@ -84,7 +84,7 @@ describe('Getters Helper', () => {
84
84
  Getters.imagePrettyUrl('photo.jpg', 350, 600).includes('https://cdn.images.com')
85
85
  ).toBeTruthy();
86
86
  expect(Getters.imagePrettyUrl('photo.jpg', 350, 600)).toEqual(
87
- 'https://cdn.images.com/fit-in/350x600/filters:quality(100)/photo.jpg'
87
+ 'https://cdn.images.com/fit-in/350x600/photo.jpg'
88
88
  );
89
89
  });
90
90
 
@@ -125,7 +125,7 @@ describe('Getters Helper', () => {
125
125
  false,
126
126
  'page-template-test'
127
127
  )
128
- ).toEqual('/no/visit/short/casino/page-template-test');
128
+ ).toEqual('/no/visit/short/page-template-test');
129
129
  });
130
130
 
131
131
  test('getBonus()', () => {
@@ -68,7 +68,11 @@ export function clonePageForCards(item, style) {
68
68
  }
69
69
 
70
70
  const object = pick(item, pickPageKeys);
71
- object.relation = pick(item.relation, pickRelationKeys[item.type]);
71
+
72
+ object.relation = pickRelationKeys[item.type]
73
+ ? pick(item.relation, pickRelationKeys[item.type])
74
+ : item.relation;
75
+
72
76
  if (item.type === 'operator' && style !== 'comparison_table' && object.relation.bonus) {
73
77
  delete object.relation.bonus.deposit_methods;
74
78
  }
@@ -61,7 +61,9 @@ describe('Processor Relations', () => {
61
61
  const market = 'ie_en';
62
62
  const data = getData({ template: type });
63
63
  const pages = {
64
- [market]: { [type]: getPageList({ template: type, relation_id: 5, type: 'default' }) },
64
+ [market]: {
65
+ [type]: getPageList({ template: type, count: 1, relation_id: 5, type: 'default' }),
66
+ },
65
67
  };
66
68
 
67
69
  pages[market][type].forEach((page, index) => {
@@ -125,3 +125,22 @@
125
125
  left: 0;
126
126
  }
127
127
  }
128
+
129
+
130
+ @mixin border-gradient($color-1, $color-2, $bgcolor) {
131
+ background: $bgcolor;
132
+ &:before {
133
+ content: '';
134
+ position: absolute;
135
+ top: 0;
136
+ left: 0;
137
+ right: 0;
138
+ bottom: 0;
139
+ border-radius: 8px;
140
+ border: 2px solid transparent;
141
+ background: $color-1, $color-2 border-box;
142
+ -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
143
+ -webkit-mask-composite: destination-out;
144
+ mask-composite: exclude;
145
+ }
146
+ }
package/storybook/.ci.yml CHANGED
@@ -6,7 +6,7 @@ Storybook Build:
6
6
  image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
7
7
  stage: build
8
8
  tags:
9
- - floyd-runner-test
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
- - floyd-runner-test
31
+ - gatsby-runner-dev-1
32
32
  script:
33
33
  - mkdir -p ~/.ssh
34
34
  - ssh-keyscan -H storybook >> ~/.ssh/known_hosts