Skip to content

Commit

Permalink
chore: updated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
morellodev committed May 3, 2023
1 parent 0aacfed commit 6697790
Show file tree
Hide file tree
Showing 9 changed files with 1,819 additions and 1,926 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@
"prepare": "husky install"
},
"devDependencies": {
"@changesets/cli": "^2.26.0",
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-typescript": "^3.5.3",
"@changesets/cli": "^2.26.1",
"@types/node": "^18.16.3",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"prettier": "^2.8.3",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"prettier-config-morellodev": "^2.0.1",
"typescript": "4.9.5"
"typescript": "5.0.4"
}
}
12 changes: 6 additions & 6 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@
"react": ">=16.14.0"
},
"devDependencies": {
"@emotion/react": "^11.10.5",
"@emotion/react": "^11.10.8",
"@emotion/serialize": "^1.1.1",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@types/react-is": "^17.0.3",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"@types/react-is": "^18.2.0",
"react": "^18.2.0",
"tsup": "^6.5.0"
"tsup": "^6.7.0"
},
"dependencies": {
"react-intersection-observer": "^9.4.1",
"react-intersection-observer": "^9.4.3",
"react-is": "^18.2.0"
}
}
10 changes: 5 additions & 5 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"lint:fix": "eslint --fix ."
},
"dependencies": {
"@emotion/react": "^11.10.5",
"@emotion/react": "^11.10.8",
"react": "^18.2.0",
"react-awesome-reveal": "workspace:*",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@vitejs/plugin-react": "^3.1.0",
"vite": "^4.1.1"
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"@vitejs/plugin-react": "^4.0.0",
"vite": "^4.3.4"
}
}
14 changes: 7 additions & 7 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"lint:fix": "eslint --fix ."
},
"devDependencies": {
"@astrojs/sitemap": "^1.0.1",
"@astrojs/tailwind": "^3.0.1",
"@astrojs/sitemap": "^1.2.2",
"@astrojs/tailwind": "^3.1.2",
"@fec/remark-a11y-emoji": "^3.1.0",
"@tailwindcss/typography": "^0.5.9",
"astro": "^2.0.6",
"eslint-plugin-tailwindcss": "^3.8.3",
"astro": "^2.3.4",
"eslint-plugin-tailwindcss": "^3.11.0",
"rehype-external-links": "^2.0.1",
"rehype-slug": "^5.1.0",
"remark-emoji": "^3.1.0",
"tailwindcss": "^3.2.4"
"remark-emoji": "^3.1.1",
"tailwindcss": "^3.3.2"
},
"dependencies": {
"astro-icon": "^0.8.0",
"fp-ts": "^2.13.1"
"fp-ts": "^2.14.0"
}
}
48 changes: 20 additions & 28 deletions packages/website/src/components/DocSidenav.astro
Original file line number Diff line number Diff line change
@@ -1,46 +1,38 @@
---
import { CollectionEntry, getCollection } from "astro:content";
import { array as A, number as N } from "fp-ts";
import { pipe } from "fp-ts/lib/function";
import { contramap } from "fp-ts/lib/Ord";
import { getCollection } from "astro:content";
import { getDocPathname } from "../utils/docs";
const allDocs = await getCollection("docs");
const byOrder = pipe(
N.Ord,
contramap((p: CollectionEntry<"docs">) => p.data.sortOrder)
);
function bySortOrder<T extends { data: { sortOrder: number } }>(a: T, b: T) {
return a.data.sortOrder - b.data.sortOrder;
}
---

<aside
class="hidden md:block fixed flex-shrink-0 w-full md:w-64 md:sticky z-10 top-16 self-start overflow-y-auto transform-none"
>
<ul class="p-4 space-y-1">
{
pipe(
allDocs,
A.sortBy([byOrder]),
A.map((doc) => {
const docPathname = getDocPathname(doc.slug);
allDocs.sort(bySortOrder).map((doc) => {
const docPathname = getDocPathname(doc.slug);

// https://github.com/withastro/astro/issues/4547
const isActive = Astro.url.pathname.startsWith(docPathname);
// https://github.com/withastro/astro/issues/4547
const isActive = Astro.url.pathname.startsWith(docPathname);

return (
<li>
<a
class="block no-underline px-2 py-[0.375rem] font-medium select-none rounded text-sm hover:bg-emerald-50 active-link:bg-emerald-100 active-link:font-semibold"
aria-current={isActive ? "page" : "false"}
href={docPathname}
>
{doc.data.title}
</a>
</li>
);
})
)
return (
<li>
<a
class="block no-underline px-2 py-[0.375rem] font-medium select-none rounded text-sm hover:bg-emerald-50 active-link:bg-emerald-100 active-link:font-semibold"
aria-current={isActive ? "page" : "false"}
href={docPathname}
>
{doc.data.title}
</a>
</li>
);
})
}
</ul>
</aside>
4 changes: 3 additions & 1 deletion packages/website/src/pages/docs/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export async function getStaticPaths() {
}));
}
const { entry } = Astro.props as InferGetStaticPropsType<typeof getStaticPaths>;
type Props = InferGetStaticPropsType<typeof getStaticPaths>;
const { entry } = Astro.props;
const { Content } = await entry.render();
---

Expand Down
19 changes: 0 additions & 19 deletions packages/website/src/types/astro.d.ts

This file was deleted.

Loading

1 comment on commit 6697790

@vercel
Copy link

@vercel vercel bot commented on 6697790 May 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.