mirror of
https://github.com/mengxi-ream/read-frog.git
synced 2026-09-01 15:36:33 +08:00
chore: update deps (#2098)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
|
||||
"$schema": "https://unpkg.com/@changesets/config@4.0.0/schema.json",
|
||||
"changelog": [
|
||||
"@changesets/changelog-github",
|
||||
{
|
||||
|
||||
@@ -49,20 +49,20 @@ jobs:
|
||||
- name: Create Release Pull Request or Tag
|
||||
if: github.event_name != 'workflow_dispatch'
|
||||
id: changesets
|
||||
uses: changesets/action@v1.9.0
|
||||
uses: changesets/action@v2.1.0
|
||||
with:
|
||||
commit: "chore(release): version packages"
|
||||
title: "chore(release): version packages"
|
||||
publish: pnpm run release
|
||||
createGithubReleases: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit-message: "chore(release): version packages"
|
||||
pr-title: "chore(release): version packages"
|
||||
publish-script: pnpm run release
|
||||
create-github-releases: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SKIP_FREE_API: true
|
||||
|
||||
- name: Send Discord Notification
|
||||
if: steps.changesets.outputs.published == 'true'
|
||||
run: |
|
||||
VERSION=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[0].version')
|
||||
VERSION=$(echo '${{ steps.changesets.outputs.published-packages }}' | jq -r '.[0].version')
|
||||
TAG="v$VERSION"
|
||||
RELEASE_URL="https://github.com/${{ github.repository }}/releases/tag/$TAG"
|
||||
|
||||
@@ -133,7 +133,7 @@ jobs:
|
||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||
TAG="${{ github.event.inputs.tag }}"
|
||||
else
|
||||
VERSION=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[0].version')
|
||||
VERSION=$(echo '${{ steps.changesets.outputs.published-packages }}' | jq -r '.[0].version')
|
||||
TAG="v$VERSION"
|
||||
fi
|
||||
|
||||
|
||||
+44
-44
@@ -27,40 +27,40 @@
|
||||
"zip:edge": "wxt zip -b edge",
|
||||
"zip:firefox": "wxt zip -b firefox --mv3",
|
||||
"zip:all": "pnpm zip && pnpm zip:edge && pnpm zip:firefox",
|
||||
"release": "changeset tag && git push origin --tags",
|
||||
"release": "changeset git-tag",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-sdk/alibaba": "^2.0.32",
|
||||
"@ai-sdk/amazon-bedrock": "^5.0.55",
|
||||
"@ai-sdk/anthropic": "^4.0.38",
|
||||
"@ai-sdk/azure": "^4.0.42",
|
||||
"@ai-sdk/cerebras": "^3.0.30",
|
||||
"@ai-sdk/amazon-bedrock": "^5.0.57",
|
||||
"@ai-sdk/anthropic": "^4.0.39",
|
||||
"@ai-sdk/azure": "^4.0.43",
|
||||
"@ai-sdk/cerebras": "^3.0.31",
|
||||
"@ai-sdk/cohere": "^4.0.27",
|
||||
"@ai-sdk/deepinfra": "^3.0.30",
|
||||
"@ai-sdk/deepinfra": "^3.0.31",
|
||||
"@ai-sdk/deepseek": "^3.0.28",
|
||||
"@ai-sdk/fireworks": "^3.0.32",
|
||||
"@ai-sdk/google": "^4.0.43",
|
||||
"@ai-sdk/fireworks": "^3.0.33",
|
||||
"@ai-sdk/google": "^4.0.44",
|
||||
"@ai-sdk/groq": "^4.0.28",
|
||||
"@ai-sdk/huggingface": "^2.0.30",
|
||||
"@ai-sdk/huggingface": "^2.0.31",
|
||||
"@ai-sdk/mistral": "^4.0.29",
|
||||
"@ai-sdk/moonshotai": "^3.0.34",
|
||||
"@ai-sdk/open-responses": "^2.0.27",
|
||||
"@ai-sdk/openai": "^4.0.41",
|
||||
"@ai-sdk/openai-compatible": "^3.0.30",
|
||||
"@ai-sdk/moonshotai": "^3.0.35",
|
||||
"@ai-sdk/open-responses": "^2.0.28",
|
||||
"@ai-sdk/openai": "^4.0.42",
|
||||
"@ai-sdk/openai-compatible": "^3.0.31",
|
||||
"@ai-sdk/perplexity": "^4.0.29",
|
||||
"@ai-sdk/react": "^4.0.67",
|
||||
"@ai-sdk/react": "^4.0.69",
|
||||
"@ai-sdk/replicate": "^3.0.28",
|
||||
"@ai-sdk/togetherai": "^3.0.31",
|
||||
"@ai-sdk/togetherai": "^3.0.32",
|
||||
"@ai-sdk/vercel": "^3.0.30",
|
||||
"@ai-sdk/xai": "^4.0.38",
|
||||
"@ai-sdk/xai": "^4.0.40",
|
||||
"@babel/runtime": "^8.0.0",
|
||||
"@base-ui/react": "^1.7.0",
|
||||
"@codemirror/lang-css": "^6.3.1",
|
||||
"@codemirror/lang-json": "^6.0.2",
|
||||
"@codemirror/lint": "^6.9.7",
|
||||
"@codemirror/state": "^6.7.1",
|
||||
"@codemirror/view": "^6.43.8",
|
||||
"@codemirror/view": "^6.43.9",
|
||||
"@dnd-kit/core": "^6.3.1",
|
||||
"@dnd-kit/modifiers": "^9.0.0",
|
||||
"@dnd-kit/sortable": "^10.0.0",
|
||||
@@ -68,10 +68,10 @@
|
||||
"@fontsource-variable/inter": "^5.3.0",
|
||||
"@headless-tree/core": "^1.7.0",
|
||||
"@headless-tree/react": "^1.7.0",
|
||||
"@json-render/core": "^0.19.0",
|
||||
"@json-render/react": "^0.19.0",
|
||||
"@orpc/client": "^1.14.14",
|
||||
"@orpc/tanstack-query": "^1.14.14",
|
||||
"@json-render/core": "^0.20.0",
|
||||
"@json-render/react": "^0.20.0",
|
||||
"@orpc/client": "^1.15.0",
|
||||
"@orpc/tanstack-query": "^1.15.0",
|
||||
"@radix-ui/react-slot": "^1.3.3",
|
||||
"@read-frog/api-contract": "0.14.0",
|
||||
"@read-frog/definitions": "0.4.4",
|
||||
@@ -79,7 +79,7 @@
|
||||
"@t3-oss/env-core": "^0.13.11",
|
||||
"@tabler/icons-react": "^3.46.0",
|
||||
"@tanstack/hotkeys": "^0.8.0",
|
||||
"@tanstack/react-form": "^1.33.3",
|
||||
"@tanstack/react-form": "^1.33.5",
|
||||
"@tanstack/react-hotkeys": "^0.10.0",
|
||||
"@tanstack/react-query": "^5.101.4",
|
||||
"@tanstack/react-store": "^0.11.1",
|
||||
@@ -89,19 +89,19 @@
|
||||
"@webext-core/match-patterns": "2.0.0",
|
||||
"@webext-core/messaging": "^4.0.0",
|
||||
"@wxt-dev/i18n": "^0.2.7",
|
||||
"ai": "^7.0.64",
|
||||
"ai": "^7.0.66",
|
||||
"ai-sdk-ollama": "^4.1.0",
|
||||
"better-auth": "^1.6.26",
|
||||
"better-auth": "^1.6.30",
|
||||
"case-anything": "^3.1.2",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"cmdk": "^1.1.1",
|
||||
"css-tree": "^3.2.1",
|
||||
"debounce": "^3.0.0",
|
||||
"deepmerge-ts": "^7.1.5",
|
||||
"deepmerge-ts": "^8.0.1",
|
||||
"defuddle": "^0.19.2",
|
||||
"dequal": "^2.0.3",
|
||||
"dexie": "^4.4.4",
|
||||
"dexie": "^4.4.5",
|
||||
"entities": "^8.0.0",
|
||||
"file-saver": "^2.0.5",
|
||||
"franc": "^6.2.0",
|
||||
@@ -109,37 +109,37 @@
|
||||
"jotai": "^2.20.2",
|
||||
"jotai-family": "^1.1.0",
|
||||
"js-sha256": "^1.0.0",
|
||||
"lucide-react": "^1.29.0",
|
||||
"motion": "^12.43.0",
|
||||
"posthog-js": "^1.413.3",
|
||||
"lucide-react": "^1.31.0",
|
||||
"motion": "^13.1.0",
|
||||
"posthog-js": "^1.417.4",
|
||||
"react": "^19.2.8",
|
||||
"react-dom": "^19.2.8",
|
||||
"react-error-boundary": "^6.1.2",
|
||||
"react-error-boundary": "^6.1.3",
|
||||
"react-markdown": "^10.1.0",
|
||||
"react-rnd": "^10.5.3",
|
||||
"react-router": "^8.3.0",
|
||||
"shadcn": "^4.16.2",
|
||||
"shadcn": "^4.18.0",
|
||||
"tailwind-merge": "^3.6.0",
|
||||
"ts-pattern": "^5.9.0",
|
||||
"tw-animate-css": "^1.4.0",
|
||||
"zod": "^4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@changesets/changelog-github": "^0.7.0",
|
||||
"@changesets/cli": "^2.31.1",
|
||||
"@commitlint/cli": "^21.2.1",
|
||||
"@commitlint/config-conventional": "^21.2.0",
|
||||
"@faker-js/faker": "^10.5.0",
|
||||
"@changesets/changelog-github": "^1.0.0",
|
||||
"@changesets/cli": "^3.0.0",
|
||||
"@commitlint/cli": "^21.2.2",
|
||||
"@commitlint/config-conventional": "^21.2.2",
|
||||
"@faker-js/faker": "^10.6.0",
|
||||
"@iconify/react": "^6.0.2",
|
||||
"@modyfi/vite-plugin-yaml": "^1.1.1",
|
||||
"@tailwindcss/postcss": "^4.3.3",
|
||||
"@tanstack/react-query-devtools": "^5.101.4",
|
||||
"@testing-library/jest-dom": "^7.0.0",
|
||||
"@testing-library/jest-dom": "^7.0.1",
|
||||
"@testing-library/react": "^16.3.2",
|
||||
"@total-typescript/ts-reset": "^0.6.1",
|
||||
"@types/css-tree": "^2.3.11",
|
||||
"@types/css-tree": "^3.2.0",
|
||||
"@types/file-saver": "^2.0.7",
|
||||
"@types/jsdom": "^28.0.3",
|
||||
"@types/jsdom": "^30.0.0",
|
||||
"@types/react": "^19.2.18",
|
||||
"@types/react-dom": "^19.2.4",
|
||||
"@vitejs/plugin-react": "^6.0.5",
|
||||
@@ -151,8 +151,8 @@
|
||||
"jsdom": "^30.0.1",
|
||||
"lint-staged": "^17.3.0",
|
||||
"nx": "^23.1.1",
|
||||
"oxfmt": "^0.61.0",
|
||||
"oxlint": "^1.77.0",
|
||||
"oxfmt": "^0.63.0",
|
||||
"oxlint": "^1.78.0",
|
||||
"oxlint-plugin-query": "^0.1.1",
|
||||
"oxlint-tsgolint": "^7.0.2001",
|
||||
"postcss": "^8.5.26",
|
||||
@@ -164,16 +164,16 @@
|
||||
"vite": "^8.2.1",
|
||||
"vitest": "^4.1.10",
|
||||
"web-ext": "^10.6.0",
|
||||
"wxt": "0.21.3"
|
||||
"wxt": "0.21.4"
|
||||
},
|
||||
"devEngines": {
|
||||
"runtime": {
|
||||
"name": "node",
|
||||
"version": "^26.5.1",
|
||||
"version": "^26.7.0",
|
||||
"onFail": "download"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@11.20.0+sha512.9a6f330a95b66446ea088faf1521405a8a01f07fde7124cc9958dfed52d4bb436737e65b08f85f37b46fcba375092558ac51262b816844b22f63406ed166bfee",
|
||||
"packageManager": "pnpm@11.22.0+sha512.1ff870c4c6133dfd88fb2afc46dd13d47f09c9794b438c6fdb47ca98caf3bc16381ee0be93a091b8e3824cf01f889f46d7d9e20910fb0be1ab0fb5baa80dd621",
|
||||
"nx": {
|
||||
"targets": {
|
||||
"build": {
|
||||
|
||||
Generated
+854
-1145
File diff suppressed because it is too large
Load Diff
+4
-1
@@ -53,7 +53,10 @@ export function SubtitlesTextStyleForm({ type }: SubtitlesTextStyleFormProps) {
|
||||
}, [textStyle.fontWeight])
|
||||
|
||||
const handleChange = (style: Partial<SubtitleTextStyle>) => {
|
||||
void setVideoSubtitlesConfig(deepmerge(videoSubtitlesConfig, { style: { [type]: style } }))
|
||||
// Keyed explicitly rather than via a computed `[type]` key: a computed union
|
||||
// key widens the patch to an index signature, which poisons the merged type.
|
||||
const stylePatch = type === "main" ? { main: style } : { translation: style }
|
||||
void setVideoSubtitlesConfig(deepmerge(videoSubtitlesConfig, { style: stylePatch }))
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import type { ReactNode } from "react"
|
||||
import type { PartialDeep } from "type-fest"
|
||||
import type {
|
||||
SubtitlesDisplayMode,
|
||||
SubtitlesFontFamily,
|
||||
SubtitlesStyle,
|
||||
SubtitlesTranslationPosition,
|
||||
SubtitleTextStyle,
|
||||
} from "@/types/config/subtitles"
|
||||
@@ -224,7 +226,7 @@ export function StyleView() {
|
||||
const portalContainer = use(ShadowWrapperContext)
|
||||
const { displayMode, translationPosition, container } = config.style
|
||||
|
||||
const updateStyle = (patch: Record<string, unknown>) => {
|
||||
const updateStyle = (patch: PartialDeep<SubtitlesStyle>) => {
|
||||
void setConfig(deepmerge(config, { style: patch }))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user