gatsby-core-theme 13.0.2 → 13.0.3

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
+ ## [13.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.2...v13.0.3) (2022-10-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * anchor styling ([7f738db](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7f738dbfda124666bd75fd6085503e93038127a2))
7
+
8
+
9
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([7b3f4c6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7b3f4c648c2800dd4b7168b0da51a90f530a8856))
10
+
1
11
  ## [13.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.1...v13.0.2) (2022-10-25)
2
12
 
3
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "13.0.2",
3
+ "version": "13.0.3",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -1,3 +1,4 @@
1
+ /* eslint-disable import/no-extraneous-dependencies */
1
2
  /* eslint-disable no-unused-expressions */
2
3
  /* eslint-disable prefer-destructuring */
3
4
  /* eslint-disable react-hooks/exhaustive-deps */
@@ -19,6 +20,7 @@ function Anchor({
19
20
  showTitle = true,
20
21
  heightOfAnchor = 60,
21
22
  offset = 10,
23
+ exclOperator = false,
22
24
  }) {
23
25
  const [offsetTop, setOffsetTop] = useState(null);
24
26
  const itemsRef = useRef([]);
@@ -120,8 +122,9 @@ function Anchor({
120
122
  </div>
121
123
  ) : null}
122
124
  <div
123
- style={{ top: sticky ? `${headerOffset}px` : `0rem` }}
124
- className={`${sticky ? styles.stickyContainer : styles.defaultConatiner}`}
125
+ className={`${sticky ? styles.stickyContainer : styles.defaultConatiner} ${
126
+ exclOperator ? styles.usingExclOperator : ''
127
+ }`}
125
128
  >
126
129
  <ul ref={anchorListRef} className={`${styles.anchor}`}>
127
130
  {anchorList?.map((item, index) => (
@@ -147,6 +150,7 @@ function Anchor({
147
150
  }
148
151
 
149
152
  Anchor.propTypes = {
153
+ exclOperator: PropTypes.bool,
150
154
  module: PropTypes.shape({
151
155
  items: PropTypes.arrayOf(
152
156
  PropTypes.shape({