gatsby-core-theme 2.0.16 → 2.0.17

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,19 @@
1
+ ## [2.0.17](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.16...v2.0.17) (2022-01-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removing cards extra divs ([7096d88](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7096d88b480a43d4d8bd5245cf403b07f194fae0))
7
+ * updated html parser package ([332b237](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/332b237bc728bfe57766fab1bced598ad18ceeb6))
8
+
9
+
10
+ ### Config
11
+
12
+ * updated gatsby packages ([cdfc9c3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/cdfc9c3681db2603061b0fcc1f4ef634ce12e7a1))
13
+
14
+
15
+ * Merge branch 'upgrade' into 'master' ([e38a936](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e38a936bc76221072c5d0e89c66fccd3df3cbad7))
16
+
1
17
  ## [2.0.16](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.15...v2.0.16) (2022-01-05)
2
18
 
3
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -17,7 +17,7 @@
17
17
  "build-storybook": "cross-env STORYBOOK_IMAGE_CDN_URL=https://cdn.irishluck.ie STORYBOOK_GATSBY_SITE_NAME=norskespilleautomater.com STORYBOOK_TRACKER_LINK_FORMAT_NON_MAIN=[no],[visit],short_name STORYBOOK_TRACKER_LINK_FORMAT_MAIN=[no],[visit],short_name build-storybook"
18
18
  },
19
19
  "peerDependencies": {
20
- "gatsby": "^3.3.1"
20
+ "gatsby": "^3.3.2"
21
21
  },
22
22
  "dependencies": {
23
23
  "@loadable/babel-plugin": "^5.13.2",
@@ -31,7 +31,7 @@
31
31
  "dotenv": "^8.2.0",
32
32
  "eslint": "^7.20.0",
33
33
  "esm": "^3.2.25",
34
- "gatsby": "^3.3.1",
34
+ "gatsby": "^3.3.2",
35
35
  "gatsby-image": "^3.3.0",
36
36
  "gatsby-plugin-image": "^1.3.1",
37
37
  "gatsby-plugin-loadable-components-ssr": "^3.3.0",
@@ -45,7 +45,7 @@
45
45
  "gatsby-plugin-webfonts": "^2.1.0",
46
46
  "gatsby-source-filesystem": "^3.3.0",
47
47
  "gatsby-transformer-sharp": "^3.3.0",
48
- "html-react-parser": "^1.2.5",
48
+ "html-react-parser": "^1.3.0",
49
49
  "js-search": "^2.0.0",
50
50
  "lodash": "^4.17.15",
51
51
  "node-sass": "5.0.0",
@@ -12,6 +12,7 @@ const CardsGridStyles = ({
12
12
  mobileColumns = 2,
13
13
  tabletColumns = 3,
14
14
  desktopColumns = 4,
15
+ className = '',
15
16
  }) => {
16
17
  const divStyle = {
17
18
  '--cards-mob-column': `${
@@ -24,10 +25,15 @@ const CardsGridStyles = ({
24
25
  module.desktop_num_of_columns ? module.desktop_num_of_columns : desktopColumns
25
26
  }`,
26
27
  };
27
- return <div style={divStyle}>{children}</div>;
28
+ return (
29
+ <div className={className} style={divStyle}>
30
+ {children}
31
+ </div>
32
+ );
28
33
  };
29
34
 
30
35
  CardsGridStyles.propTypes = {
36
+ className: PropTypes.string,
31
37
  module: PropTypes.shape({
32
38
  mobile_num_of_columns: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
33
39
  tablet_num_of_columns: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -53,25 +59,23 @@ const Cards = ({
53
59
  desktopColumns={desktopColumns}
54
60
  tabletColumns={tabletColumns}
55
61
  mobileColumns={mobileColumns}
62
+ className={styles.cardsContainer}
56
63
  >
57
- <div className={styles.cardsContainer}>
58
- {module.items &&
59
- module.items.map((item, index) => (
60
- <div key={keygen()}>
61
- {CustomCardComponent ? (
62
- <CustomCardComponent
63
- featured={module.style === 'featured'}
64
- item={item}
65
- type={item.type}
66
- number={index + 1}
67
- page={page}
68
- />
69
- ) : (
70
- <Card item={item} />
71
- )}
72
- </div>
73
- ))}
74
- </div>
64
+ {module.items &&
65
+ module.items.map((item, index) =>
66
+ CustomCardComponent ? (
67
+ <CustomCardComponent
68
+ key={keygen()}
69
+ featured={module.style === 'featured'}
70
+ item={item}
71
+ type={item.type}
72
+ number={index + 1}
73
+ page={page}
74
+ />
75
+ ) : (
76
+ <Card key={keygen()} item={item} />
77
+ )
78
+ )}
75
79
  </CardsGridStyles>
76
80
  );
77
81