Skip to content

Commit

Permalink
update to next 13 (#8668)
Browse files Browse the repository at this point in the history
* update to next 13

* rebase fixes

* prettify
  • Loading branch information
dimaMachina authored Dec 2, 2022
1 parent ca4dc07 commit 292d37a
Show file tree
Hide file tree
Showing 5 changed files with 297 additions and 214 deletions.
12 changes: 6 additions & 6 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"@types/jsonpath": "0.2.0",
"@types/node": "18.7.23",
"@types/react": "18.0.21",
"eslint-config-next": "12.3.1",
"eslint-config-next": "13.0.5",
"fast-xml-parser": "4.0.10",
"jsonpath": "1.1.1",
"prettier-plugin-tailwindcss": "0.1.13"
"prettier-plugin-tailwindcss": "0.2.0"
},
"dependencies": {
"@graphql-codegen/add": "3.2.1",
Expand Down Expand Up @@ -67,15 +67,15 @@
"@graphql-codegen/hasura-allow-list": "2.0.0",
"@graphql-codegen/urql-introspection": "2.2.1",
"@monaco-editor/react": "4.4.6",
"@theguild/components": "4.3.7",
"@theguild/components": "4.4.0",
"classnames": "2.3.2",
"date-fns": "2.29.3",
"dedent": "0.7.0",
"graphql": "16.6.0",
"js-yaml": "4.1.0",
"next": "12.3.1",
"next-mdx-remote": "4.1.0",
"next-sitemap": "3.1.23",
"next": "13.0.5",
"next-mdx-remote": "4.2.0",
"next-sitemap": "3.1.32",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-markdown": "8.0.3",
Expand Down
3 changes: 1 addition & 2 deletions website/src/components/plugin.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ReactElement } from 'react';
import { useSSG } from 'nextra/ssg';
import { PackageCmd } from '@theguild/components';
import { PackageCmd, useSSG } from '@theguild/components';
import { MDXRemote } from 'next-mdx-remote';
import ClientNote from './client-note.mdx';

Expand Down
4 changes: 1 addition & 3 deletions website/src/components/plugins-page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { useMemo } from 'react';
import { useSSG } from 'nextra/ssg';
import { compareDesc } from 'date-fns';
import { MarketplaceSearch } from '@theguild/components';
import { MarketplaceSearch, useSSG, fetchPackageInfo } from '@theguild/components';
import { CategoryToPackages } from '@/category-to-packages.mjs';
import { PACKAGES, ALL_TAGS, Icon, icons } from '@/lib/plugins';
import { fetchPackageInfo } from '@theguild/components';

type Plugin = {
title: string;
Expand Down
4 changes: 3 additions & 1 deletion website/src/lib/plugin-get-static-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export const pluginGetStaticProps = (fileName: string) => async () => {
const title = plugin.title ?? '';

const [mdx, mdxHeader] = await Promise.all([
compileMdx(source),
compileMdx(source, {
unstable_defaultShowCopyCode: true,
}),
compileMdx(
`
# ${title}
Expand Down
Loading

0 comments on commit 292d37a

Please sign in to comment.