gatsby-theme-carbon 3.1.12 → 3.1.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-theme-carbon",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.13",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "vpicone <vp@vincepic.one> (@vpicone)",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"react-dom": "^17.0.2"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@babel/core": "^7.22.
|
|
25
|
+
"@babel/core": "^7.22.11",
|
|
26
26
|
"@carbon/elements": "^11.29.0",
|
|
27
27
|
"@carbon/grid": "^11.19.0",
|
|
28
28
|
"@carbon/pictograms-react": "^11.48.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react-transition-group": "^4.4.5",
|
|
62
62
|
"react-use": "^15.3.8",
|
|
63
63
|
"remark-slug": "^6.1.0",
|
|
64
|
-
"sass": "^1.66.
|
|
64
|
+
"sass": "^1.66.1",
|
|
65
65
|
"slugify": "^1.6.6",
|
|
66
66
|
"smooth-scroll": "^16.1.3",
|
|
67
67
|
"use-media": "^1.4.0"
|
|
@@ -7,9 +7,8 @@ import useMetadata from '../../util/hooks/useMetadata';
|
|
|
7
7
|
import { overlay, visible } from './Container.module.scss';
|
|
8
8
|
|
|
9
9
|
const Container = ({ children, homepage, theme }) => {
|
|
10
|
-
const { leftNavIsOpen, switcherIsOpen, toggleNavState } =
|
|
11
|
-
NavContext
|
|
12
|
-
);
|
|
10
|
+
const { leftNavIsOpen, switcherIsOpen, toggleNavState } =
|
|
11
|
+
useContext(NavContext);
|
|
13
12
|
const windowSize = useWindowSize();
|
|
14
13
|
const lastWindowSize = useRef(windowSize);
|
|
15
14
|
const { navigationStyle } = useMetadata();
|
|
@@ -4,11 +4,7 @@ import { Location } from '@reach/router';
|
|
|
4
4
|
import cx from 'classnames';
|
|
5
5
|
import useNetwork from 'react-use/lib/useNetwork';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
SideNavLink,
|
|
9
|
-
SideNavMenu,
|
|
10
|
-
SideNavMenuItem,
|
|
11
|
-
} from '@carbon/react';
|
|
7
|
+
import { SideNavLink, SideNavMenu, SideNavMenuItem } from '@carbon/react';
|
|
12
8
|
|
|
13
9
|
import * as styles from './LeftNav.module.scss';
|
|
14
10
|
|