From f47262d27bd88339532a4e57352c50345ee2e6fc Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Mon, 17 Feb 2025 01:44:24 +0900 Subject: [PATCH] fix(album-color-theme): fix Color deps --- package.json | 1 - pnpm-lock.yaml | 22 ---------------------- src/plugins/album-color-theme/index.ts | 6 +++--- 3 files changed, 3 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 487244a9..b0aa9e2c 100644 --- a/package.json +++ b/package.json @@ -301,7 +301,6 @@ "@playwright/test": "1.50.1", "@stylistic/eslint-plugin-js": "3.1.0", "@total-typescript/ts-reset": "0.6.1", - "@types/color": "4.2.0", "@types/electron-localshortcut": "3.1.3", "@types/eslint__js": "8.42.3", "@types/howler": "2.2.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7d31131b..1a6661f3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -214,9 +214,6 @@ importers: '@total-typescript/ts-reset': specifier: 0.6.1 version: 0.6.1 - '@types/color': - specifier: 4.2.0 - version: 4.2.0 '@types/electron-localshortcut': specifier: 3.1.3 version: 3.1.3 @@ -1472,15 +1469,6 @@ packages: '@types/cacheable-request@6.0.3': resolution: {integrity: sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==} - '@types/color-convert@2.0.4': - resolution: {integrity: sha512-Ub1MmDdyZ7mX//g25uBAoH/mWGd9swVbt8BseymnaE18SU4po/PjmCrHxqIIRjBo3hV/vh1KGr0eMxUhp+t+dQ==} - - '@types/color-name@1.1.5': - resolution: {integrity: sha512-j2K5UJqGTxeesj6oQuGpMgifpT5k9HprgQd8D1Y0lOFqKHl3PJu5GMeS4Y5EgjS55AE6OQxf8mPED9uaGbf4Cg==} - - '@types/color@4.2.0': - resolution: {integrity: sha512-6+xrIRImMtGAL2X3qYkd02Mgs+gFGs+WsK0b7VVMaO4mYRISwyTjcqNrO0mNSmYEoq++rSLDB2F5HDNmqfOe+A==} - '@types/debug@4.1.12': resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} @@ -5805,16 +5793,6 @@ snapshots: '@types/node': 20.17.19 '@types/responselike': 1.0.3 - '@types/color-convert@2.0.4': - dependencies: - '@types/color-name': 1.1.5 - - '@types/color-name@1.1.5': {} - - '@types/color@4.2.0': - dependencies: - '@types/color-convert': 2.0.4 - '@types/debug@4.1.12': dependencies: '@types/ms': 2.1.0 diff --git a/src/plugins/album-color-theme/index.ts b/src/plugins/album-color-theme/index.ts index b48117fb..339305cf 100644 --- a/src/plugins/album-color-theme/index.ts +++ b/src/plugins/album-color-theme/index.ts @@ -1,5 +1,5 @@ import { FastAverageColor } from 'fast-average-color'; -import Color from 'color'; +import Color, { ColorInstance } from 'color'; import style from './style.css?inline'; @@ -14,8 +14,8 @@ export default createPlugin< unknown, unknown, { - color?: Color; - darkColor?: Color; + color?: ColorInstance; + darkColor?: ColorInstance; playerPage: HTMLElement | null; navBarBackground: HTMLElement | null;