gatsby-core-theme 13.0.2 → 13.0.4
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,23 @@
|
|
|
1
|
+
## [13.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.3...v13.0.4) (2022-10-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* anchor styling ([c3bb135](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c3bb135407fef23329cc701f09c3f2b03d1a2cdd))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([862c43f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/862c43f6bccc40ffe29d5592f339fdf4887f91c2))
|
|
10
|
+
|
|
11
|
+
## [13.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.2...v13.0.3) (2022-10-25)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* anchor styling ([7f738db](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7f738dbfda124666bd75fd6085503e93038127a2))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([7b3f4c6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7b3f4c648c2800dd4b7168b0da51a90f530a8856))
|
|
20
|
+
|
|
1
21
|
## [13.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.1...v13.0.2) (2022-10-25)
|
|
2
22
|
|
|
3
23
|
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
124
|
-
|
|
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({
|