@primer/gatsby-theme-doctocat 5.1.1 → 5.2.0
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 +6 -0
- package/package.json +6 -6
- package/src/components/drawer.js +1 -8
- package/src/components/nav-drawer.js +1 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @primer/gatsby-theme-doctocat
|
|
2
2
|
|
|
3
|
+
## 5.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a2eda1ff504db78b821ad4ec7648f469525eb9dd`](https://github.com/primer/doctocat/commit/a2eda1ff504db78b821ad4ec7648f469525eb9dd) [#759](https://github.com/primer/doctocat/pull/759) Thanks [@joshblack](https://github.com/joshblack)! - Update gatsby to 3.15.0
|
|
8
|
+
|
|
3
9
|
## 5.1.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/gatsby-theme-doctocat",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"eslint-plugin-prettier": "^5.0.1",
|
|
23
23
|
"eslint-plugin-primer-react": "^4.0.3",
|
|
24
24
|
"eslint-plugin-react": "^7.26.1",
|
|
25
|
-
"gatsby": "^3.
|
|
25
|
+
"gatsby": "^3.15.0",
|
|
26
26
|
"jest-environment-jsdom": "^29.7.0",
|
|
27
27
|
"prettier": "^3.0.3",
|
|
28
28
|
"react": "^18.2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@styled-system/theme-get": "^5.0.12",
|
|
46
46
|
"@testing-library/jest-dom": "^6.1.4",
|
|
47
47
|
"@testing-library/react": "^14.0.0",
|
|
48
|
-
"axios": "^1.
|
|
48
|
+
"axios": "^1.12.0",
|
|
49
49
|
"babel-jest": "^29.7.0",
|
|
50
50
|
"babel-plugin-styled-components": "^2.0.7",
|
|
51
51
|
"copy-to-clipboard": "^3.2.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"gatsby-transformer-yaml": "^3.14.0",
|
|
67
67
|
"get-pkg-repo": "^5.0.0",
|
|
68
68
|
"github-slugger": "^1.2.1",
|
|
69
|
-
"html-react-parser": "^5.
|
|
69
|
+
"html-react-parser": "^5.2.2",
|
|
70
70
|
"jest": "^29.7.0",
|
|
71
71
|
"lodash.debounce": "4.0.8",
|
|
72
72
|
"lodash.uniqby": "^4.7.0",
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
"pluralize": "^8.0.0",
|
|
76
76
|
"preval.macro": "^3.0.0",
|
|
77
77
|
"prism-react-renderer": "^1.2.0",
|
|
78
|
-
"prismjs": "^1.
|
|
78
|
+
"prismjs": "^1.30.0",
|
|
79
79
|
"react-addons-text-content": "^0.0.4",
|
|
80
80
|
"react-element-to-jsx-string": "^15.0.0",
|
|
81
81
|
"react-focus-on": "^3.3.0",
|
|
82
82
|
"react-helmet": "^6.1.0",
|
|
83
83
|
"react-live": "^2.1.2",
|
|
84
|
-
"react-measure": "^2.
|
|
84
|
+
"react-measure": "^2.5.2",
|
|
85
85
|
"read-pkg-up": "^6.0.0",
|
|
86
86
|
"sentence-case": "^2.1.1",
|
|
87
87
|
"styled-components": "^5.3.11",
|
package/src/components/drawer.js
CHANGED
|
@@ -7,14 +7,7 @@ function Drawer({isOpen, onDismiss, children}) {
|
|
|
7
7
|
return (
|
|
8
8
|
<AnimatePresence>
|
|
9
9
|
{isOpen ? (
|
|
10
|
-
|
|
11
|
-
<div
|
|
12
|
-
// These event handlers fix a bug that caused links below the fold
|
|
13
|
-
// to be unclickable in macOS Safari.
|
|
14
|
-
// Reference: https://github.com/theKashey/react-focus-lock/issues/79
|
|
15
|
-
onMouseDown={event => event.preventDefault()}
|
|
16
|
-
onClick={event => event.target.focus()}
|
|
17
|
-
>
|
|
10
|
+
<div>
|
|
18
11
|
<FocusOn returnFocus={true} onEscapeKey={() => onDismiss()}>
|
|
19
12
|
<Box
|
|
20
13
|
key="overlay"
|
|
@@ -120,14 +120,7 @@ function PrimerNavItems({items}) {
|
|
|
120
120
|
<Details key={index}>
|
|
121
121
|
{({open, toggle}) => (
|
|
122
122
|
<>
|
|
123
|
-
{
|
|
124
|
-
<summary
|
|
125
|
-
//The following line of code has only an onClick event and no keyboard event and its a non static
|
|
126
|
-
//element. This is because we don't want it to be a tabstop thats tedious for keyboard users and sr's.
|
|
127
|
-
//This needs to be a hard exception
|
|
128
|
-
onClick={toggle}
|
|
129
|
-
style={{cursor: 'pointer'}}
|
|
130
|
-
>
|
|
123
|
+
<summary style={{cursor: 'pointer'}}>
|
|
131
124
|
<Box sx={{alignItems: 'center', justifyContent: 'space-between', display: 'flex'}}>
|
|
132
125
|
<Text>{item.title}</Text>
|
|
133
126
|
{open ? <ChevronUpIcon /> : <ChevronDownIcon />}
|