Skip to content

Commit

Permalink
chore: bump deps (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
pluvrt authored Dec 9, 2024
1 parent 35f27c9 commit e313bb5
Show file tree
Hide file tree
Showing 126 changed files with 2,380 additions and 2,091 deletions.
6 changes: 3 additions & 3 deletions apps/server-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20241112.0",
"@cloudflare/workers-types": "^4.20241205.0",
"@pluv/tsconfig": "workspace:^",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-dynamic-import-vars": "^2.1.5",
Expand All @@ -29,10 +29,10 @@
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"eslint-config-pluv": "workspace:^",
"rollup": "^4.27.4",
"rollup": "^4.28.1",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"typescript": "^5.7.2",
"wrangler": "^3.90.0"
"wrangler": "^3.93.0"
}
}
36 changes: 18 additions & 18 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@faker-js/faker": "^9.2.0",
"@faker-js/faker": "^9.3.0",
"@hookform/resolvers": "^3.9.1",
"@pluv-apps/web": "workspace:^",
"@pluv-internal/react-components": "workspace:^",
Expand All @@ -25,39 +25,39 @@
"@tanstack/react-table": "^8.20.5",
"@types/common-tags": "^1.8.4",
"@types/ms": "^0.7.34",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"common-tags": "^1.8.2",
"ms": "^2.1.3",
"next": "^15.0.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.0.4",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.25.9",
"@next/bundle-analyzer": "^15.0.3",
"@next/mdx": "^15.0.3",
"@babel/preset-react": "^7.26.3",
"@next/bundle-analyzer": "^15.0.4",
"@next/mdx": "^15.0.4",
"@pluv-internal/remark-plugins": "workspace:^",
"@pluv-internal/tailwind-config": "workspace:^",
"@pluv-internal/typings": "workspace:^",
"@pluv/tsconfig": "workspace:^",
"@storybook/addon-essentials": "^8.4.5",
"@storybook/addon-interactions": "^8.4.5",
"@storybook/addon-themes": "^8.4.5",
"@storybook/nextjs": "^8.4.5",
"@storybook/react": "^8.4.5",
"@storybook/addon-essentials": "^8.4.7",
"@storybook/addon-interactions": "^8.4.7",
"@storybook/addon-themes": "^8.4.7",
"@storybook/nextjs": "^8.4.7",
"@storybook/react": "^8.4.7",
"autoprefixer": "^10.4.20",
"babel-loader": "^9.2.1",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-config-pluv": "workspace:^",
"next-compose-plugins": "^2.2.1",
"postcss": "^8.4.49",
"remark-gfm": "^4.0.0",
"storybook": "^8.4.5",
"tailwindcss": "^3.4.15",
"storybook": "^8.4.7",
"tailwindcss": "^3.4.16",
"typescript": "^5.7.2",
"webpack": "^5.96.1"
"webpack": "^5.97.1"
}
}
28 changes: 14 additions & 14 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"pluv-io.ts"
],
"dependencies": {
"@dnd-kit/core": "^6.2.0",
"@dnd-kit/core": "^6.3.1",
"@mdx-js/react": "^3.1.0",
"@pluv-apps/server-cloudflare": "workspace:^",
"@pluv-internal/mdx-components": "workspace:^",
Expand All @@ -34,31 +34,31 @@
"@pluv/react": "workspace:^",
"@radix-ui/react-tooltip": "^1.1.4",
"@seznam/compose-react-refs": "^1.0.6",
"@shikijs/twoslash": "^1.23.1",
"@shikijs/twoslash": "^1.24.0",
"@tanstack/react-table": "^8.20.5",
"@types/common-tags": "^1.8.4",
"@types/mdx": "^2.0.13",
"@types/ms": "^0.7.34",
"@types/node": "^22.9.3",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/node": "^22.10.1",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"@types/ws": "^8.5.13",
"clsx": "^2.1.1",
"common-tags": "^1.8.2",
"gray-matter": "^4.0.3",
"ms": "^2.1.3",
"next": "^15.0.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"shiki": "^1.23.1",
"next": "^15.0.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"shiki": "^1.24.0",
"yjs": "^13.6.20",
"zod": "^3.23.8"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@faker-js/faker": "^9.3.0",
"@mdx-js/loader": "^3.1.0",
"@next/bundle-analyzer": "^15.0.3",
"@next/mdx": "^15.0.3",
"@next/bundle-analyzer": "^15.0.4",
"@next/mdx": "^15.0.4",
"@pluv-internal/tailwind-config": "workspace:^",
"@pluv-internal/typings": "workspace:^",
"@pluv-internal/utils": "workspace:^",
Expand All @@ -71,7 +71,7 @@
"autoprefixer": "^10.4.20",
"concurrently": "^9.1.0",
"dotenv-cli": "^7.4.4",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-config-pluv": "workspace:^",
"fs-extra": "^11.2.0",
"glob": "^11.0.0",
Expand All @@ -80,7 +80,7 @@
"postcss": "^8.4.49",
"remark-gfm": "^4.0.0",
"serve": "^14.2.4",
"tailwindcss": "^3.4.15",
"tailwindcss": "^3.4.16",
"ts-node": "^10.9.2",
"typescript": "^5.7.2"
}
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/CodeBlock/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use client";

import type { InferComponentProps } from "@pluv-internal/typings";
import { cn } from "@pluv-internal/utils";
import { oneLine } from "common-tags";
import type { ComponentProps } from "react";
import { forwardRef, useContext, useMemo } from "react";
import { type ShikiLanguage } from "../../utils/getShiki";
import type { ShikiLanguage } from "../../utils/getShiki";
import { CodeBlockContext } from "./context";

export type CodeBlockProps = InferComponentProps<"div"> & {
export type CodeBlockProps = ComponentProps<"div"> & {
code: string;
lang: ShikiLanguage;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { DndContext } from "@dnd-kit/core";
import { Card } from "@pluv-internal/react-components/either";
import { cn } from "@pluv-internal/utils";
import { oneLine } from "common-tags";
import type { CSSProperties, FC, MouseEvent } from "react";
import { useCallback, useContext, useMemo, useState } from "react";
import { HomeCodeDemoBox } from "./HomeCodeDemoBox";
import type { HomeCodeDemoPosition, HomeCodeDemoSelections } from "./context";
import { HomeCodeDemoContext } from "./context";
import { Card } from "@pluv-internal/react-components/either";

const didClickIn = (element: HTMLDivElement | null, event: MouseEvent<HTMLDivElement>): boolean => {
return !element || element.contains(event.target as Node | null);
Expand Down
11 changes: 5 additions & 6 deletions apps/web/src/components/MdxPre/MdxPre.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import type { InferComponentProps } from "@pluv-internal/typings";
import { cn } from "@pluv-internal/utils";
import { oneLine } from "common-tags";
import type { FC, PropsWithChildren, ReactElement, ReactNode } from "react";
import type { ComponentProps, FC, PropsWithChildren, ReactElement, ReactNode } from "react";
import { isValidElement } from "react";
import type { ShikiLanguage } from "../../utils/getShiki";
import { ServerCodeBlock } from "../ServerCodeBlock";

export type MdxPreProps = InferComponentProps<"pre">;
export type MdxPreProps = ComponentProps<"pre">;

const hasChildren = (element: ReactNode): element is ReactElement<PropsWithChildren> => {
return isValidElement(element) && !!element.props.children;
return isValidElement(element) && !!(element.props as Record<string, any>).children;
};

const getChildrenText = (children: ReactNode): string => {
Expand All @@ -31,7 +30,7 @@ const parseLanguage = (className?: string): string | null => {
const getChildrenLanguage = (children: ReactNode): string => {
if (!isValidElement(children)) return "tsx";

const _language = parseLanguage(children.props.className);
const _language = parseLanguage((children.props as Record<string, any>).className);

if (_language) return _language;
if (!hasChildren(children)) return "tsx";
Expand All @@ -47,7 +46,7 @@ export const MdxPre: FC<MdxPreProps> = (props) => {

return (
<ServerCodeBlock
{...(restProps as InferComponentProps<"div">)}
{...(restProps as ComponentProps<"div">)}
className={cn(
oneLine`
flex
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/ServerCodeBlock/ServerCodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { cn } from "@pluv-internal/utils";
import type { TransformerTwoslashOptions } from "@shikijs/twoslash";
import { oneLine } from "common-tags";
import type { FC } from "react";
import type { ShikiLanguage } from "../../utils/getShiki";
import { getShiki } from "../../utils/getShiki";

export type ServerCodeBlockProps = InferComponentProps<"div"> & {
export type ServerCodeBlockProps = ComponentProps<"div"> & {
code: string;
lang: ShikiLanguage;
twoslashOptions?: TransformerTwoslashOptions["twoslashOptions"];
Expand Down
12 changes: 6 additions & 6 deletions internal/mdx-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"@pluv-internal/utils": "workspace:^",
"@types/common-tags": "^1.8.4",
"@types/mdx": "^2.0.13",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"common-tags": "^1.8.2",
"next": "^15.0.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.0.4",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@pluv-internal/tailwind-config": "workspace:^",
Expand All @@ -32,7 +32,7 @@
"autoprefixer": "^10.4.20",
"eslint-config-pluv": "workspace:^",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.15",
"tailwindcss": "^3.4.16",
"typescript": "^5.7.2"
}
}
4 changes: 2 additions & 2 deletions internal/mdx-components/src/MdxA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import { Anchor } from "@pluv-internal/react-components/either";
import { useNoSsr } from "@pluv-internal/react-hooks";
import type { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { cn } from "@pluv-internal/utils";
import { forwardRef } from "react";

export type MdxAProps = Omit<InferComponentProps<"a">, "ref">;
export type MdxAProps = Omit<ComponentProps<"a">, "ref">;

export const MdxA = forwardRef<HTMLAnchorElement, MdxAProps>((props, ref) => {
const { className, href, ...restProps } = props;
Expand Down
4 changes: 2 additions & 2 deletions internal/mdx-components/src/MdxBlockQuote.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { cn } from "@pluv-internal/utils";
import { oneLine } from "common-tags";
import { forwardRef } from "react";

export type MdxBlockQuoteProps = Omit<InferComponentProps<"blockquote">, "ref">;
export type MdxBlockQuoteProps = Omit<ComponentProps<"blockquote">, "ref">;

export const MdxBlockQuote = forwardRef<HTMLQuoteElement, MdxBlockQuoteProps>((props, ref) => {
const { className, ...restProps } = props;
Expand Down
4 changes: 2 additions & 2 deletions internal/mdx-components/src/MdxCode.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { cn } from "@pluv-internal/utils";
import { forwardRef } from "react";

export type MdxCodeProps = Omit<InferComponentProps<"code">, "ref">;
export type MdxCodeProps = Omit<ComponentProps<"code">, "ref">;

export const MdxCode = forwardRef<HTMLElement, MdxCodeProps>((props, ref) => {
const { className, ...restProps } = props;
Expand Down
4 changes: 2 additions & 2 deletions internal/mdx-components/src/MdxH1.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { cn } from "@pluv-internal/utils";
import { forwardRef } from "react";
import { MdxHeader } from "./MdxHeader";

export type MdxH1Props = InferComponentProps<"h1">;
export type MdxH1Props = ComponentProps<"h1">;

export const MdxH1 = forwardRef<HTMLHeadingElement, MdxH1Props>((props, ref) => {
const { className, ...restProps } = props;
Expand Down
4 changes: 2 additions & 2 deletions internal/mdx-components/src/MdxH2.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { cn } from "@pluv-internal/utils";
import { forwardRef } from "react";
import { MdxHeader } from "./MdxHeader";

export type MdxH2Props = InferComponentProps<"h2">;
export type MdxH2Props = ComponentProps<"h2">;

export const MdxH2 = forwardRef<HTMLHeadingElement, MdxH2Props>((props, ref) => {
const { className, ...restProps } = props;
Expand Down
4 changes: 2 additions & 2 deletions internal/mdx-components/src/MdxH3.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { cn } from "@pluv-internal/utils";
import { forwardRef } from "react";
import { MdxHeader } from "./MdxHeader";

export type MdxH3Props = InferComponentProps<"h3">;
export type MdxH3Props = ComponentProps<"h3">;

export const MdxH3 = forwardRef<HTMLHeadingElement, MdxH3Props>((props, ref) => {
const { className, ...restProps } = props;
Expand Down
4 changes: 2 additions & 2 deletions internal/mdx-components/src/MdxH4.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { cn } from "@pluv-internal/utils";
import { forwardRef } from "react";
import { MdxHeader } from "./MdxHeader";

export type MdxH4Props = InferComponentProps<"h4">;
export type MdxH4Props = ComponentProps<"h4">;

export const MdxH4 = forwardRef<HTMLHeadingElement, MdxH4Props>((props, ref) => {
const { className, ...restProps } = props;
Expand Down
4 changes: 2 additions & 2 deletions internal/mdx-components/src/MdxH5.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { cn } from "@pluv-internal/utils";
import { forwardRef } from "react";
import { MdxHeader } from "./MdxHeader";

export type MdxH5Props = InferComponentProps<"h5">;
export type MdxH5Props = ComponentProps<"h5">;

export const MdxH5 = forwardRef<HTMLHeadingElement, MdxH5Props>((props, ref) => {
const { className, ...restProps } = props;
Expand Down
4 changes: 2 additions & 2 deletions internal/mdx-components/src/MdxH6.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { cn } from "@pluv-internal/utils";
import { forwardRef } from "react";
import { MdxHeader } from "./MdxHeader";

export type MdxH6Props = InferComponentProps<"h6">;
export type MdxH6Props = ComponentProps<"h6">;

export const MdxH6 = forwardRef<HTMLHeadingElement, MdxH6Props>((props, ref) => {
const { className, ...restProps } = props;
Expand Down
4 changes: 2 additions & 2 deletions internal/mdx-components/src/MdxHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Anchor } from "@pluv-internal/react-components/either";
import { LinkIcon } from "@pluv-internal/react-icons";
import type { InferComponentProps } from "@pluv-internal/typings";
import type { ComponentProps } from "react";
import { oneLine } from "common-tags";
import { forwardRef } from "react";
import { cn } from "../../utils/src";

export type MdxHeaderProps = InferComponentProps<"h1"> & {
export type MdxHeaderProps = ComponentProps<"h1"> & {
type?: "header" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
};

Expand Down
Loading

0 comments on commit e313bb5

Please sign in to comment.