diff --git a/front/packages/primitives/package.json b/front/packages/primitives/package.json index 38593da8..78e643d1 100644 --- a/front/packages/primitives/package.json +++ b/front/packages/primitives/package.json @@ -12,6 +12,7 @@ "@gorhom/portal": "*", "@material-symbols/svg-400": "*", "@radix-ui/react-dropdown-menu": "*", + "blurhash": "*", "expo-linear-gradient": "*", "moti": "*", "react": "*", @@ -28,6 +29,9 @@ "@radix-ui/react-dropdown-menu": { "optional": true }, + "blurhash": { + "optional": true + }, "react-native-blurhash": { "optional": true }, @@ -39,5 +43,8 @@ "@expo/html-elements": "^0.5.1", "@tanstack/react-query": "^4.32.6", "solito": "^4.0.1" + }, + "optionalDependencies": { + "blurhash": "^2.0.5" } } diff --git a/front/packages/primitives/src/image.tsx b/front/packages/primitives/src/image.tsx deleted file mode 100644 index be01f595..00000000 --- a/front/packages/primitives/src/image.tsx +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Kyoo - A portable and vast media library solution. - * Copyright (c) Kyoo. - * - * See AUTHORS.md and LICENSE file in the project root for full license information. - * - * Kyoo is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * any later version. - * - * Kyoo is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Kyoo. If not, see . - */ - -import { KyooImage } from "@kyoo/models"; -import { ComponentType, ReactNode, useState } from "react"; -import { - View, - ImageSourcePropType, - ImageStyle, - Platform, - ImageProps, - ViewProps, - ViewStyle, -} from "react-native"; -import {Image as Img} from "expo-image" -import { percent, useYoshiki } from "yoshiki/native"; -import { YoshikiStyle } from "yoshiki/dist/type"; -import { Skeleton } from "./skeleton"; -import { LinearGradient, LinearGradientProps } from "expo-linear-gradient"; -import { alpha, ContrastArea } from "./themes"; - -type YoshikiEnhanced