Skip to content

Commit

Permalink
Upgrade to Gatsby v5
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Jul 5, 2023
1 parent d87cd19 commit 4da783f
Show file tree
Hide file tree
Showing 6 changed files with 1,373 additions and 1,099 deletions.
2 changes: 1 addition & 1 deletion packages/dnb-design-system-portal/gatsby-browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function setIsTest(location) {
export const replaceHydrateFunction = () => {
// Added to solve the following errors, which prevented us from running screenshot tests
// https://github.com/gatsbyjs/gatsby/discussions/36232
return (element, container) => {
return (element: React.ReactElement, container: HTMLElement) => {
const root = ReactDOM.createRoot(container)
root.render(element)
}
Expand Down
28 changes: 14 additions & 14 deletions packages/dnb-design-system-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,25 +72,25 @@
"eslint-plugin-workspaces": "0.8.0",
"front-matter": "4.0.2",
"fs-extra": "10.0.0",
"gatsby": "4.25.6",
"gatsby-plugin-algolia": "0.26.0",
"gatsby": "5.11.0",
"gatsby-plugin-algolia": "1.0.3",
"gatsby-plugin-babel-react-live": "1.4.2",
"gatsby-plugin-catch-links": "4.25.0",
"gatsby-plugin-emotion": "8.9.0",
"gatsby-plugin-catch-links": "5.11.0",
"gatsby-plugin-emotion": "8.11.0",
"gatsby-plugin-eufemia-theme-handler": "workspace:*",
"gatsby-plugin-gatsby-cloud": "4.25.0",
"gatsby-plugin-manifest": "4.25.0",
"gatsby-plugin-mdx": "4.4.0",
"gatsby-plugin-gatsby-cloud": "5.11.0",
"gatsby-plugin-manifest": "5.11.0",
"gatsby-plugin-mdx": "5.11.0",
"gatsby-plugin-meta-redirect": "1.1.1",
"gatsby-plugin-offline": "5.25.0",
"gatsby-plugin-page-creator": "4.25.0",
"gatsby-plugin-offline": "6.11.0",
"gatsby-plugin-page-creator": "5.11.0",
"gatsby-plugin-remove-serviceworker": "1.0.0",
"gatsby-plugin-sass": "5.25.0",
"gatsby-plugin-sass": "6.11.0",
"gatsby-plugin-scroll-position": "1.2.1",
"gatsby-plugin-sharp": "4.25.1",
"gatsby-react-router-scroll": "5.25.0",
"gatsby-remark-images": "6.25.0",
"gatsby-source-filesystem": "4.25.0",
"gatsby-plugin-sharp": "5.11.0",
"gatsby-react-router-scroll": "6.11.0",
"gatsby-remark-images": "7.11.0",
"gatsby-source-filesystem": "5.11.0",
"github-slugger": "1.4.0",
"is-absolute-url": "4.0.1",
"jest": "29.3.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export default function ListComponents() {
}
}
}
sort: { fields: [frontmatter___order, frontmatter___title] }
sort: [
{ frontmatter: { order: ASC } }
{ frontmatter: { title: ASC } }
]
) {
edges {
node {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export default function ListElements() {
frontmatter: { title: { ne: "" }, draft: { ne: true } }
internal: { contentFilePath: { glob: "**/uilib/elements/*" } }
}
sort: { fields: [frontmatter___order, frontmatter___title] }
sort: [
{ frontmatter: { order: ASC } }
{ frontmatter: { title: ASC } }
]
) {
edges {
node {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export default function ListFragments() {
contentFilePath: { glob: "**/uilib/components/fragments/*" }
}
}
sort: { fields: [frontmatter___order, frontmatter___title] }
sort: [
{ frontmatter: { order: ASC } }
{ frontmatter: { title: ASC } }
]
) {
edges {
node {
Expand Down
Loading

0 comments on commit 4da783f

Please sign in to comment.