Update node packages

This commit is contained in:
Zoe Roux 2024-05-19 13:59:08 +02:00
parent a711f74063
commit ec60dccb7b
No known key found for this signature in database
13 changed files with 1987 additions and 867 deletions

View File

@ -15,59 +15,59 @@
}, },
"dependencies": { "dependencies": {
"@expo-google-fonts/poppins": "^0.2.3", "@expo-google-fonts/poppins": "^0.2.3",
"@formatjs/intl-displaynames": "^6.6.6", "@formatjs/intl-displaynames": "^6.6.8",
"@formatjs/intl-locale": "^3.4.5", "@formatjs/intl-locale": "^4.0.0",
"@gorhom/portal": "^1.0.14", "@gorhom/portal": "^1.0.14",
"@kesha-antonov/react-native-background-downloader": "git+https://github.com/zoriya/react-native-background-downloader.git", "@kesha-antonov/react-native-background-downloader": "^3.1.3",
"@kyoo/ui": "workspace:^", "@kyoo/ui": "workspace:^",
"@material-symbols/svg-400": "^0.14.6", "@material-symbols/svg-400": "^0.18.0",
"@react-native-community/netinfo": "11.1.0", "@react-native-community/netinfo": "11.3.1",
"@shopify/flash-list": "1.6.3", "@shopify/flash-list": "1.6.4",
"@tanstack/query-sync-storage-persister": "^5.17.19", "@tanstack/query-sync-storage-persister": "^5.37.1",
"@tanstack/react-query": "^5.17.19", "@tanstack/react-query": "^5.37.1",
"@tanstack/react-query-persist-client": "^5.17.19", "@tanstack/react-query-persist-client": "^5.37.1",
"array-shuffle": "^3.0.0", "array-shuffle": "^3.0.0",
"babel-plugin-transform-inline-environment-variables": "^0.4.4", "babel-plugin-transform-inline-environment-variables": "^0.4.4",
"expo": "^50.0.4", "expo": "^51.0.8",
"expo-build-properties": "~0.11.0", "expo-build-properties": "~0.12.1",
"expo-constants": "~15.4.5", "expo-constants": "~16.0.1",
"expo-dev-client": "~3.3.7", "expo-dev-client": "~4.0.14",
"expo-file-system": "~16.0.5", "expo-file-system": "~17.0.1",
"expo-font": "~11.10.2", "expo-font": "~12.0.5",
"expo-image-picker": "~14.7.1", "expo-image-picker": "~15.0.5",
"expo-linear-gradient": "~12.7.1", "expo-linear-gradient": "~13.0.2",
"expo-linking": "~6.2.2", "expo-linking": "~6.3.1",
"expo-localization": "~14.8.3", "expo-localization": "~15.0.3",
"expo-navigation-bar": "~2.8.1", "expo-navigation-bar": "~3.0.4",
"expo-router": "3.4.6", "expo-router": "3.5.14",
"expo-screen-orientation": "~6.4.1", "expo-screen-orientation": "~7.0.5",
"expo-secure-store": "~12.8.1", "expo-secure-store": "~13.0.1",
"expo-status-bar": "~1.11.1", "expo-status-bar": "~1.12.1",
"expo-updates": "~0.24.9", "expo-updates": "~0.25.14",
"i18next": "^23.7.20", "i18next": "^23.11.4",
"i18next-resources-to-backend": "^1.2.1", "i18next-resources-to-backend": "^1.2.1",
"intl-pluralrules": "^2.0.1", "intl-pluralrules": "^2.0.1",
"moti": "^0.27.2", "moti": "^0.29.0",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-i18next": "^14.0.1", "react-i18next": "^14.1.1",
"react-native": "0.73.2", "react-native": "0.74.1",
"react-native-blurhash": "^1.1.11", "react-native-blurhash": "^2.0.2",
"react-native-fast-image": "^8.6.3", "react-native-fast-image": "^8.6.3",
"react-native-mmkv": "^2.11.0", "react-native-mmkv": "^2.12.2",
"react-native-reanimated": "~3.6.2", "react-native-reanimated": "~3.10.1",
"react-native-safe-area-context": "4.8.2", "react-native-safe-area-context": "4.10.1",
"react-native-screens": "~3.29.0", "react-native-screens": "~3.31.1",
"react-native-svg": "14.1.0", "react-native-svg": "15.2.0",
"react-native-uuid": "^2.0.1", "react-native-uuid": "^2.0.2",
"react-native-video": "^6.0.0-beta.4", "react-native-video": "^6.0.0",
"yoshiki": "1.2.14" "yoshiki": "1.2.14"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.23.9", "@babel/core": "^7.24.5",
"@types/react": "18.2.48", "@types/react": "~18.2.79",
"react-native-svg-transformer": "^1.3.0", "react-native-svg-transformer": "^1.4.0",
"typescript": "^5.3.3" "typescript": "~5.3.3"
}, },
"installConfig": { "installConfig": {
"hoistingLimits": "workspaces" "hoistingLimits": "workspaces"

View File

@ -18,46 +18,46 @@
"@kyoo/models": "workspace:^", "@kyoo/models": "workspace:^",
"@kyoo/primitives": "workspace:^", "@kyoo/primitives": "workspace:^",
"@kyoo/ui": "workspace:^", "@kyoo/ui": "workspace:^",
"@material-symbols/svg-400": "^0.14.6", "@material-symbols/svg-400": "^0.18.0",
"@radix-ui/react-dropdown-menu": "^2.0.6", "@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-select": "^2.0.0", "@radix-ui/react-select": "^2.0.0",
"@tanstack/react-query": "^5.17.19", "@tanstack/react-query": "^5.37.1",
"@tanstack/react-query-devtools": "^5.17.21", "@tanstack/react-query-devtools": "^5.37.1",
"array-shuffle": "^3.0.0", "array-shuffle": "^3.0.0",
"expo-image-picker": "~14.7.1", "expo-image-picker": "~15.0.5",
"expo-linear-gradient": "^12.7.1", "expo-linear-gradient": "^13.0.2",
"expo-modules-core": "^1.11.8", "expo-modules-core": "^1.12.11",
"hls.js": "^1.5.6", "hls.js": "^1.5.8",
"i18next": "^23.7.20", "i18next": "^23.11.4",
"jassub": "^1.7.15", "jassub": "^1.7.15",
"jotai": "^2.6.3", "jotai": "^2.8.0",
"moti": "^0.27.2", "moti": "^0.29.0",
"next": "14.1.0", "next": "14.2.3",
"next-translate": "^2.6.2", "next-translate": "^2.6.2",
"raf": "^3.4.1", "raf": "^3.4.1",
"react": "18.2.0", "react": "18.3.1",
"react-dom": "18.2.0", "react-dom": "18.3.1",
"react-i18next": "^14.0.1", "react-i18next": "^14.1.1",
"react-native-reanimated": "3.6.2", "react-native-reanimated": "3.11.0",
"react-native-svg": "14.1.0", "react-native-svg": "15.3.0",
"react-native-video": "^6.0.0-beta.4", "react-native-video": "^6.0.0",
"react-native-web": "0.19.10", "react-native-web": "0.19.11",
"react-tooltip": "^5.26.0", "react-tooltip": "^5.26.4",
"solito": "^4.2.0", "solito": "^4.2.2",
"srt-webvtt": "zoriya/srt-webvtt#build", "srt-webvtt": "zoriya/srt-webvtt#build",
"superjson": "^2.2.1", "superjson": "^2.2.1",
"sweetalert2": "^11.10.4", "sweetalert2": "^11.11.0",
"yoshiki": "1.2.14", "yoshiki": "1.2.14",
"zod": "^3.22.4" "zod": "^3.23.8"
}, },
"devDependencies": { "devDependencies": {
"@svgr/webpack": "^8.1.0", "@svgr/webpack": "^8.1.0",
"@types/node": "20.11.7", "@types/node": "20.12.12",
"@types/react": "18.2.48", "@types/react": "18.3.2",
"@types/react-dom": "18.2.18", "@types/react-dom": "18.3.0",
"copy-webpack-plugin": "^12.0.2", "copy-webpack-plugin": "^12.0.2",
"react-native": "0.73.2", "react-native": "0.74.1",
"typescript": "^5.3.3", "typescript": "^5.4.5",
"webpack": "^5.90.0" "webpack": "^5.91.0"
} }
} }

View File

@ -61,7 +61,7 @@ export const withTranslations = (
fallbackLng: ctx.router.defaultLocale || "en", fallbackLng: ctx.router.defaultLocale || "en",
}); });
props.pageProps.__lang = lng; props.pageProps.__lang = lng;
props.pageProps.__resources = resources; // props.pageProps.__resources = resources;
return props; return props;
}; };

View File

@ -20,7 +20,7 @@
], ],
"devDependencies": { "devDependencies": {
"@biomejs/biome": "1.7.3", "@biomejs/biome": "1.7.3",
"typescript": "5.3.3" "typescript": "5.4.5"
}, },
"packageManager": "yarn@3.2.4" "packageManager": "yarn@3.2.4"
} }

View File

@ -5,9 +5,9 @@
"sideEffects": false, "sideEffects": false,
"packageManager": "yarn@3.2.4", "packageManager": "yarn@3.2.4",
"devDependencies": { "devDependencies": {
"@types/react": "18.2.48", "@types/react": "18.3.2",
"react-native-mmkv": "^2.11.0", "react-native-mmkv": "^2.12.2",
"typescript": "^5.3.3" "typescript": "^5.4.5"
}, },
"peerDependencies": { "peerDependencies": {
"@tanstack/react-query": "*", "@tanstack/react-query": "*",
@ -20,6 +20,6 @@
} }
}, },
"dependencies": { "dependencies": {
"zod": "^3.22.4" "zod": "^3.23.8"
} }
} }

View File

@ -6,8 +6,8 @@
"packageManager": "yarn@3.2.4", "packageManager": "yarn@3.2.4",
"devDependencies": { "devDependencies": {
"@gorhom/portal": "^1.0.14", "@gorhom/portal": "^1.0.14",
"@types/react": "18.2.48", "@types/react": "18.3.2",
"typescript": "^5.3.3" "typescript": "^5.4.5"
}, },
"peerDependencies": { "peerDependencies": {
"@gorhom/portal": "*", "@gorhom/portal": "*",
@ -53,15 +53,15 @@
} }
}, },
"dependencies": { "dependencies": {
"@expo/html-elements": "^0.9.1", "@expo/html-elements": "^0.10.1",
"@tanstack/react-query": "^5.17.19", "@tanstack/react-query": "^5.37.1",
"solito": "^4.2.0" "solito": "^4.2.2"
}, },
"optionalDependencies": { "optionalDependencies": {
"@radix-ui/react-select": "^2.0.0", "@radix-ui/react-select": "^2.0.0",
"blurhash": "^2.0.5", "blurhash": "^2.0.5",
"react-native-blurhash": "^1.1.11", "react-native-blurhash": "^2.0.2",
"react-native-fast-image": "^8.6.3", "react-native-fast-image": "^8.6.3",
"react-native-safe-area-context": "4.8.2" "react-native-safe-area-context": "4.10.1"
} }
} }

View File

@ -18,7 +18,7 @@
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>. * along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
*/ */
import ExpandMore from "@material-symbols/svg-400/rounded/expand_more-fill.svg"; import ExpandMore from "@material-symbols/svg-400/rounded/keyboard_arrow_down-fill.svg";
import { Button } from "./button"; import { Button } from "./button";
import { Icon } from "./icons"; import { Icon } from "./icons";
import { Menu } from "./menu"; import { Menu } from "./menu";

View File

@ -19,8 +19,8 @@
*/ */
import Check from "@material-symbols/svg-400/rounded/check-fill.svg"; import Check from "@material-symbols/svg-400/rounded/check-fill.svg";
import ExpandLess from "@material-symbols/svg-400/rounded/expand_less-fill.svg"; import ExpandLess from "@material-symbols/svg-400/rounded/keyboard_arrow_up-fill.svg";
import ExpandMore from "@material-symbols/svg-400/rounded/expand_more-fill.svg"; import ExpandMore from "@material-symbols/svg-400/rounded/keyboard_arrow_down-fill.svg";
import * as RSelect from "@radix-ui/react-select"; import * as RSelect from "@radix-ui/react-select";
import { forwardRef } from "react"; import { forwardRef } from "react";
import { View } from "react-native"; import { View } from "react-native";

View File

@ -9,10 +9,10 @@
}, },
"devDependencies": { "devDependencies": {
"@gorhom/portal": "^1.0.14", "@gorhom/portal": "^1.0.14",
"@shopify/flash-list": "^1.6.3", "@shopify/flash-list": "^1.6.4",
"@types/react": "18.2.48", "@types/react": "18.3.2",
"react-native-uuid": "^2.0.1", "react-native-uuid": "^2.0.2",
"typescript": "^5.3.3" "typescript": "^5.4.5"
}, },
"peerDependencies": { "peerDependencies": {
"@gorhom/portal": "*", "@gorhom/portal": "*",
@ -34,9 +34,9 @@
"yoshiki": "*" "yoshiki": "*"
}, },
"optionalDependencies": { "optionalDependencies": {
"@kesha-antonov/react-native-background-downloader": "git+https://github.com/zoriya/react-native-background-downloader.git", "@kesha-antonov/react-native-background-downloader": "^3.1.3",
"expo-file-system": "^16.0.5", "expo-file-system": "^17.0.1",
"expo-router": "^3.4.6" "expo-router": "^3.5.14"
}, },
"peerDependenciesMeta": { "peerDependenciesMeta": {
"@kesha-antonov/react-native-background-downloader": { "@kesha-antonov/react-native-background-downloader": {

View File

@ -30,7 +30,7 @@ import {
important, important,
ts, ts,
} from "@kyoo/primitives"; } from "@kyoo/primitives";
import Done from "@material-symbols/svg-400/rounded/done-fill.svg"; import Done from "@material-symbols/svg-400/rounded/check-fill.svg";
import { useState } from "react"; import { useState } from "react";
import { type ImageStyle, Platform, View } from "react-native"; import { type ImageStyle, Platform, View } from "react-native";
import { type Stylable, type Theme, max, percent, px, rem, useYoshiki } from "yoshiki/native"; import { type Stylable, type Theme, max, percent, px, rem, useYoshiki } from "yoshiki/native";

View File

@ -33,8 +33,8 @@ import {
tooltip, tooltip,
ts, ts,
} from "@kyoo/primitives"; } from "@kyoo/primitives";
import ExpandLess from "@material-symbols/svg-400/rounded/expand_less-fill.svg"; import ExpandLess from "@material-symbols/svg-400/rounded/keyboard_arrow_up-fill.svg";
import ExpandMore from "@material-symbols/svg-400/rounded/expand_more-fill.svg"; import ExpandMore from "@material-symbols/svg-400/rounded/keyboard_arrow_down-fill.svg";
import { useState } from "react"; import { useState } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { type ImageStyle, Platform, type PressableProps, View } from "react-native"; import { type ImageStyle, Platform, type PressableProps, View } from "react-native";

View File

@ -36,15 +36,17 @@ import {
import { getCurrentAccount, storage } from "@kyoo/models/src/account-internal"; import { getCurrentAccount, storage } from "@kyoo/models/src/account-internal";
import { type QueryClient, useQueryClient } from "@tanstack/react-query"; import { type QueryClient, useQueryClient } from "@tanstack/react-query";
import { deleteAsync } from "expo-file-system"; import { deleteAsync } from "expo-file-system";
import type { Router } from "expo-router/build/types"; import type { useRouter } from "expo-router";
import { type PrimitiveAtom, atom, useSetAtom, useStore } from "jotai"; import { type PrimitiveAtom, atom, useSetAtom, useStore } from "jotai";
import { type ReactNode, useEffect } from "react"; import { type ReactNode, useEffect } from "react";
import { ToastAndroid } from "react-native"; import { ToastAndroid } from "react-native";
import { z } from "zod"; import { z } from "zod";
import { Player } from "../player"; import { Player } from "../player";
type Router = ReturnType<typeof useRouter>;
export type State = { export type State = {
status: "DOWNLOADING" | "PAUSED" | "DONE" | "FAILED" | "STOPPED"; status: "DOWNLOADING" | "PAUSED" | "DONE" | "FAILED" | "STOPPED" | "PENDING";
progress: number | null; progress: number | null;
size: number; size: number;
availableSize: number; availableSize: number;
@ -190,7 +192,7 @@ const download = (
headers: { headers: {
Authorization: account.token.access_token, Authorization: account.token.access_token,
}, },
showNotification: true, isNotificationVisible: true,
// TODO: Implement only wifi // TODO: Implement only wifi
// network: Network.ALL, // network: Network.ALL,
}); });

File diff suppressed because it is too large Load Diff