gatsby-core-theme 25.0.2 → 25.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,22 @@
|
|
|
1
|
+
## [25.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.3...v25.0.4) (2023-07-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* removed compact lodash from anchor ([358b84a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/358b84ae2f4b9f9e913113f75858ff1faa971684))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'lodash-fix' into 'master' ([a1952c5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a1952c58c04fc8d46934ddc6bc9bee69a23450f1))
|
|
10
|
+
|
|
11
|
+
## [25.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.2...v25.0.3) (2023-07-14)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* preview link ([47120b8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/47120b8daf275b26d5aa0923c78b643151c6df0e))
|
|
17
|
+
* preview links ([c57a587](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c57a587c798c75013d1034282d9954653f169dc1))
|
|
18
|
+
* test ([cc32f9f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/cc32f9ffbfa5071404012a25e165ae832ea0f3f7))
|
|
19
|
+
|
|
1
20
|
## [25.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.1...v25.0.2) (2023-07-14)
|
|
2
21
|
|
|
3
22
|
|
package/package.json
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
5
5
|
import React, { useRef, useContext } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import { compact } from 'lodash/index.js';
|
|
8
7
|
import isSticky from '~hooks/stickyOnScroll';
|
|
9
8
|
import ScollX from '../../../hooks/scroll-x';
|
|
10
9
|
import keygen from '~helpers/keygen';
|
|
@@ -36,6 +35,10 @@ function Anchor({
|
|
|
36
35
|
slug: `${anchor.label && anchorLink(anchor?.label?.toLowerCase().trim())}`,
|
|
37
36
|
}));
|
|
38
37
|
|
|
38
|
+
function compact(array) {
|
|
39
|
+
return array?.filter(Boolean);
|
|
40
|
+
}
|
|
41
|
+
|
|
39
42
|
const handleClick = (event) => {
|
|
40
43
|
event.preventDefault();
|
|
41
44
|
const scrollToElementId = event.currentTarget.getAttribute('href').replace('#', '');
|
package/src/hooks/link/index.js
CHANGED