@primer/gatsby-theme-doctocat 4.7.0 → 5.0.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 +12 -0
- package/package.json +23 -16
- package/src/components/layout.js +2 -1
- package/src/use-search.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @primer/gatsby-theme-doctocat
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`7b07123`](https://github.com/primer/doctocat/commit/7b0712311247b5f8ddf8e306eb89424d162a6e7b) [#479](https://github.com/primer/doctocat/pull/479) Thanks [@joshblack](https://github.com/joshblack)! - Update gatsby to v3
|
|
8
|
+
|
|
9
|
+
## 4.7.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ce79030`](https://github.com/primer/doctocat/commit/ce790304dce82ce99f536d474e384ed341db7103) [#628](https://github.com/primer/doctocat/pull/628) Thanks [@emilybrick](https://github.com/emilybrick)! - - Add withPrefix to breadcrumbs
|
|
14
|
+
|
|
3
15
|
## 4.7.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/gatsby-theme-doctocat",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"lint:fix": "yarn lint -- --fix"
|
|
10
10
|
},
|
|
11
11
|
"prettier": "@github/prettier-config",
|
|
12
|
+
"resolutions": {
|
|
13
|
+
"graphql": "^15.4.0",
|
|
14
|
+
"graphql-compose": "^7.25.0"
|
|
15
|
+
},
|
|
12
16
|
"devDependencies": {
|
|
13
17
|
"@github/prettier-config": "^0.0.4",
|
|
14
18
|
"eslint": "^8.0.1",
|
|
@@ -17,17 +21,18 @@
|
|
|
17
21
|
"eslint-plugin-prettier": "^4.0.0",
|
|
18
22
|
"eslint-plugin-primer-react": "0.7.4",
|
|
19
23
|
"eslint-plugin-react": "^7.26.1",
|
|
20
|
-
"gatsby": "^
|
|
24
|
+
"gatsby": "^3.14.6",
|
|
21
25
|
"prettier": "^2.4.1",
|
|
22
|
-
"react": "^
|
|
23
|
-
"react-dom": "^
|
|
26
|
+
"react": "^18.2.0",
|
|
27
|
+
"react-dom": "^18.2.0"
|
|
24
28
|
},
|
|
25
29
|
"peerDependencies": {
|
|
26
|
-
"gatsby": "
|
|
27
|
-
"react": "^
|
|
28
|
-
"react-dom": "^
|
|
30
|
+
"gatsby": "3.x",
|
|
31
|
+
"react": "^18.x",
|
|
32
|
+
"react-dom": "^18.x"
|
|
29
33
|
},
|
|
30
34
|
"dependencies": {
|
|
35
|
+
"@babel/core": "^7.19.1",
|
|
31
36
|
"@babel/preset-env": "^7.5.5",
|
|
32
37
|
"@babel/preset-react": "^7.0.0",
|
|
33
38
|
"@mdx-js/mdx": "^1.0.21",
|
|
@@ -40,6 +45,7 @@
|
|
|
40
45
|
"@testing-library/react": "^9.1.3",
|
|
41
46
|
"axios": "^0.21.2",
|
|
42
47
|
"babel-jest": "^24.9.0",
|
|
48
|
+
"babel-plugin-styled-components": "^2.0.7",
|
|
43
49
|
"copy-to-clipboard": "^3.2.0",
|
|
44
50
|
"date-fns": "^2.28.0",
|
|
45
51
|
"details-element-polyfill": "^2.4.0",
|
|
@@ -47,21 +53,22 @@
|
|
|
47
53
|
"find-up": "^6.3.0",
|
|
48
54
|
"framer-motion": "^1.4.2",
|
|
49
55
|
"fuse.js": "^3.4.5",
|
|
50
|
-
"gatsby-plugin-catch-links": "^
|
|
51
|
-
"gatsby-plugin-manifest": "^
|
|
56
|
+
"gatsby-plugin-catch-links": "^3.14.0",
|
|
57
|
+
"gatsby-plugin-manifest": "^3.14.0",
|
|
52
58
|
"gatsby-plugin-mdx": "^1.0.13",
|
|
53
|
-
"gatsby-plugin-page-creator": "^
|
|
54
|
-
"gatsby-plugin-react-helmet": "^
|
|
55
|
-
"gatsby-plugin-remove-trailing-slashes": "^
|
|
56
|
-
"gatsby-plugin-styled-components": "^
|
|
57
|
-
"gatsby-source-filesystem": "^
|
|
58
|
-
"gatsby-transformer-yaml": "^
|
|
59
|
+
"gatsby-plugin-page-creator": "^3.14.0",
|
|
60
|
+
"gatsby-plugin-react-helmet": "^4.14.0",
|
|
61
|
+
"gatsby-plugin-remove-trailing-slashes": "^3.14.0",
|
|
62
|
+
"gatsby-plugin-styled-components": "^4.14.0",
|
|
63
|
+
"gatsby-source-filesystem": "^3.14.0",
|
|
64
|
+
"gatsby-transformer-yaml": "^3.14.0",
|
|
59
65
|
"get-pkg-repo": "^4.1.0",
|
|
60
66
|
"github-slugger": "^1.2.1",
|
|
61
67
|
"html-react-parser": "^1.4.0",
|
|
62
68
|
"jest": "^24.9.0",
|
|
63
69
|
"lodash.debounce": "4.0.8",
|
|
64
70
|
"lodash.uniqby": "^4.7.0",
|
|
71
|
+
"path-browserify": "^1.0.1",
|
|
65
72
|
"pkg-up": "^3.1.0",
|
|
66
73
|
"pluralize": "^8.0.0",
|
|
67
74
|
"preval.macro": "^3.0.0",
|
|
@@ -75,7 +82,7 @@
|
|
|
75
82
|
"react-measure": "^2.3.0",
|
|
76
83
|
"read-pkg-up": "^6.0.0",
|
|
77
84
|
"sentence-case": "^2.1.1",
|
|
78
|
-
"styled-components": "^
|
|
85
|
+
"styled-components": "^5.3.5",
|
|
79
86
|
"styled-system": "^5.0.18",
|
|
80
87
|
"worker-loader": "^3.0.2"
|
|
81
88
|
}
|
package/src/components/layout.js
CHANGED
|
@@ -15,6 +15,7 @@ import StorybookLink from './storybook-link'
|
|
|
15
15
|
import FigmaLink from './figma-link'
|
|
16
16
|
import TableOfContents from './table-of-contents'
|
|
17
17
|
import navItems from '../nav.yml'
|
|
18
|
+
import {withPrefix} from 'gatsby'
|
|
18
19
|
|
|
19
20
|
const getPageAncestry = (url, object) => {
|
|
20
21
|
const result = []
|
|
@@ -112,7 +113,7 @@ function Layout({children, pageContext, path}) {
|
|
|
112
113
|
{breadcrumbData.length > 1 ? (
|
|
113
114
|
<Breadcrumbs sx={{mb: 4}}>
|
|
114
115
|
{breadcrumbData.map(item => (
|
|
115
|
-
<Breadcrumbs.Item key={item.url} href={item.url} selected={path === item.url}>
|
|
116
|
+
<Breadcrumbs.Item key={item.url} href={withPrefix(item.url)} selected={path === item.url}>
|
|
116
117
|
{item.title}
|
|
117
118
|
</Breadcrumbs.Item>
|
|
118
119
|
))}
|
package/src/use-search.js
CHANGED