@applemusic-like-lyrics/react-full 0.2.0-alpha.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/amll-react-framework.css +1023 -0
- package/dist/amll-react-framework.js +13730 -6817
- package/dist/amll-react-framework.js.map +1 -1
- package/dist/components/AudioFFTVisualizer/index.d.ts +1 -0
- package/dist/components/AudioFFTVisualizer/index.d.ts.map +1 -0
- package/dist/components/AudioQualityTag/index.d.ts +7 -5
- package/dist/components/AudioQualityTag/index.d.ts.map +1 -0
- package/dist/components/BouncingSlider/index.d.ts +13 -8
- package/dist/components/BouncingSlider/index.d.ts.map +1 -0
- package/dist/components/ControlThumb/index.d.ts +2 -1
- package/dist/components/ControlThumb/index.d.ts.map +1 -0
- package/dist/components/Cover/index.d.ts +2 -1
- package/dist/components/Cover/index.d.ts.map +1 -0
- package/dist/components/MediaButton/index.d.ts +3 -2
- package/dist/components/MediaButton/index.d.ts.map +1 -0
- package/dist/components/MenuButton/index.d.ts +1 -0
- package/dist/components/MenuButton/index.d.ts.map +1 -0
- package/dist/components/MusicInfo/index.d.ts +1 -0
- package/dist/components/MusicInfo/index.d.ts.map +1 -0
- package/dist/components/PrebuiltLyricPlayer/index.d.ts +5 -2
- package/dist/components/PrebuiltLyricPlayer/index.d.ts.map +1 -0
- package/dist/components/TextMarquee/index.d.ts +1 -0
- package/dist/components/TextMarquee/index.d.ts.map +1 -0
- package/dist/components/ToggleIconButton/index.d.ts +1 -0
- package/dist/components/ToggleIconButton/index.d.ts.map +1 -0
- package/dist/components/ToggleIconButton/prebuilt-enum.d.ts +1 -0
- package/dist/components/ToggleIconButton/prebuilt-enum.d.ts.map +1 -0
- package/dist/components/VolumeControlSlider/index.d.ts +4 -2
- package/dist/components/VolumeControlSlider/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/hook/useThrottle.d.ts +11 -0
- package/dist/hook/useThrottle.d.ts.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/layout/auto.d.ts +4 -1
- package/dist/layout/auto.d.ts.map +1 -0
- package/dist/layout/horizontal.d.ts +2 -1
- package/dist/layout/horizontal.d.ts.map +1 -0
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/vertical.d.ts +3 -1
- package/dist/layout/vertical.d.ts.map +1 -0
- package/dist/states/callbacks.d.ts +93 -0
- package/dist/states/callbacks.d.ts.map +1 -0
- package/dist/states/configAtoms.d.ts +174 -0
- package/dist/states/configAtoms.d.ts.map +1 -0
- package/dist/states/controlsAtoms.d.ts +24 -0
- package/dist/states/controlsAtoms.d.ts.map +1 -0
- package/dist/states/{music.d.ts → dataAtoms.d.ts} +71 -32
- package/dist/states/dataAtoms.d.ts.map +1 -0
- package/dist/utils/duration.d.ts +1 -0
- package/dist/utils/duration.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +43 -37
- package/dist/amll-react-framework.cjs +0 -64
- package/dist/amll-react-framework.cjs.map +0 -1
- package/dist/states/callback.d.ts +0 -80
- package/dist/states/config.d.ts +0 -130
- package/dist/states/index.d.ts +0 -3
- package/dist/utils/spring.d.ts +0 -25
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AudioFFTVisualizer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,EAAE,EACP,KAAK,SAAS,EAId,MAAM,OAAO,CAAC;AAEf,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAClC;IACC,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB,GAAG,SAAS,CAAC,iBAAiB,CAAC,CA6HhC,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { HTMLProps } from 'react';
|
|
2
|
+
export declare const AudioQualityTag: import('react').NamedExoticComponent<Omit<{
|
|
3
|
+
isDolbyAtmos?: boolean;
|
|
4
|
+
tagText?: string;
|
|
5
|
+
tagIcon?: boolean;
|
|
6
|
+
} & HTMLProps<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AudioQualityTag/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,SAAS,EAAQ,MAAM,OAAO,CAAC;AAuDzD,eAAO,MAAM,eAAe;mBAIV,OAAO;cACZ,MAAM;cACN,OAAO;sFA+CnB,CAAC"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
export interface SliderProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
onChange?: (v: number) => void;
|
|
6
|
-
onSeeking?: (v: boolean) => void;
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: React.CSSProperties;
|
|
7
5
|
value: number;
|
|
8
6
|
min: number;
|
|
9
7
|
max: number;
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
isPlaying?: boolean;
|
|
9
|
+
onChange?: (v: number) => void;
|
|
10
|
+
onAfterChange?: (v: number) => void;
|
|
11
|
+
onBeforeChange?: () => void;
|
|
12
|
+
onSeeking?: (v: boolean) => void;
|
|
13
|
+
beforeIcon?: React.ReactNode;
|
|
14
|
+
afterIcon?: React.ReactNode;
|
|
15
|
+
changeOnDrag?: boolean;
|
|
12
16
|
}
|
|
13
|
-
export declare const BouncingSlider: React.FC<SliderProps
|
|
17
|
+
export declare const BouncingSlider: React.FC<SliderProps>;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BouncingSlider/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,WAAW;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAQD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsMhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ControlThumb/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3C,eAAO,MAAM,YAAY,EAAE,EAAE,CAC5B;IACC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,GAAG,SAAS,CAAC,cAAc,CAAC,CAyH7B,CAAC"}
|
|
@@ -8,4 +8,5 @@ export declare const Cover: import('react').ForwardRefExoticComponent<Omit<{
|
|
|
8
8
|
coverVideoPaused?: boolean;
|
|
9
9
|
musicPaused?: boolean;
|
|
10
10
|
pauseShrinkAspect?: number;
|
|
11
|
-
} & HTMLProps<
|
|
11
|
+
} & HTMLProps<HTMLElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Cover/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAEN,KAAK,SAAS,EAOd,MAAM,OAAO,CAAC;AAGf;;GAEG;AACH,eAAO,MAAM,KAAK;eAGL,MAAM;mBACF,OAAO;uBACH,OAAO;kBACZ,OAAO;wBACD,MAAM;mFAiG3B,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const MediaButton: FC<
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
|
+
export declare const MediaButton: FC<ComponentProps<"button">>;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MediaButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;AAGrE,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,CAqCpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MenuButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,OAAO,CAAC;AAI7C,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAY7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MusicInfo/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,OAAO,CAAC;AAK7C,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAC/B;IACC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC,GAAG,SAAS,CAAC,cAAc,CAAC,CAiC7B,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { FC, HTMLProps } from 'react';
|
|
1
|
+
import { FC, HTMLProps, default as React } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* 已经部署好所有组件的歌词播放器组件,在正确设置所有的 Jotai 状态后可以开箱即用
|
|
4
4
|
*/
|
|
5
|
-
export declare const PrebuiltLyricPlayer: FC<HTMLProps<HTMLDivElement
|
|
5
|
+
export declare const PrebuiltLyricPlayer: FC<HTMLProps<HTMLDivElement> & {
|
|
6
|
+
bottomLineSlot?: React.ReactNode;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PrebuiltLyricPlayer/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAaH,OAAO,EACN,KAAK,EAAE,EACP,KAAK,SAAS,EAMd,MAAM,OAAO,CAAC;AAyBf,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAmc1B;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CACnC,SAAS,CAAC,cAAc,CAAC,GAAG;IAC3B,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC,CA+LD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextMarquee/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI9D,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CA+DtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleIconButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAQ/D,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAChC;IACC,aAAa,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAW7C,CAAC;AAgBH,eAAO,MAAM,wBAAwB,EAAE,EAAE,CACxC;IACC,IAAI,EAAE,4BAA4B,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAY7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prebuilt-enum.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleIconButton/prebuilt-enum.ts"],"names":[],"mappings":"AAAA,oBAAY,4BAA4B;IACvC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;CACnB"}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SliderProps } from '../BouncingSlider';
|
|
3
|
+
export declare const VolumeControl: React.FC<SliderProps>;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/VolumeControlSlider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA+B/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 创建一个函数的节流版本,在指定的延迟时间内最多只执行一次。
|
|
3
|
+
* 这是一个 React hook,能够安全地处理组件重渲染和回调函数的变化。
|
|
4
|
+
*
|
|
5
|
+
* @template T - 回调函数的类型。
|
|
6
|
+
* @param {T} callback - 需要进行节流处理的函数。
|
|
7
|
+
* @param {number} delay - 节流的延迟时间(毫秒)。
|
|
8
|
+
* @returns {T} - 返回一个节流后的新函数。
|
|
9
|
+
*/
|
|
10
|
+
export declare function useThrottle<T extends (...args: any[]) => any>(callback: T, delay: number): T;
|
|
11
|
+
//# sourceMappingURL=useThrottle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThrottle.d.ts","sourceRoot":"","sources":["../../src/hook/useThrottle.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC5D,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,MAAM,GACX,CAAC,CAiDH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export * from './layout';
|
|
3
|
-
export * from './states';
|
|
3
|
+
export * from './states/callbacks';
|
|
4
|
+
export * from './states/configAtoms';
|
|
5
|
+
export * from './states/controlsAtoms';
|
|
6
|
+
export * from './states/dataAtoms';
|
|
4
7
|
export * from './utils';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC"}
|
package/dist/layout/auto.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLProps } from 'react';
|
|
1
|
+
import { default as React, HTMLProps } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* 会根据当前元素的宽高比自动选择横向或者纵向布局的组件
|
|
4
4
|
*/
|
|
@@ -12,5 +12,8 @@ export declare const AutoLyricLayout: React.FC<{
|
|
|
12
12
|
lyricSlot?: React.ReactNode;
|
|
13
13
|
backgroundSlot?: React.ReactNode;
|
|
14
14
|
hideLyric?: boolean;
|
|
15
|
+
verticalImmerseCover?: boolean;
|
|
15
16
|
onLayoutChange?: (isVertical: boolean) => void;
|
|
17
|
+
onElementMounted?: (node: HTMLDivElement | null) => void;
|
|
16
18
|
} & HTMLProps<HTMLDivElement>>;
|
|
19
|
+
//# sourceMappingURL=auto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto.d.ts","sourceRoot":"","sources":["../../src/layout/auto.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CACrC;IACC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,wBAAwB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3C,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;CACzD,GAAG,SAAS,CAAC,cAAc,CAAC,CA6E7B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLProps } from 'react';
|
|
1
|
+
import { default as React, HTMLProps } from 'react';
|
|
2
2
|
export declare const HorizontalLayout: React.FC<{
|
|
3
3
|
thumbSlot?: React.ReactNode;
|
|
4
4
|
coverSlot?: React.ReactNode;
|
|
@@ -9,3 +9,4 @@ export declare const HorizontalLayout: React.FC<{
|
|
|
9
9
|
hideLyric?: boolean;
|
|
10
10
|
asChild?: boolean;
|
|
11
11
|
} & HTMLProps<HTMLDivElement>>;
|
|
12
|
+
//# sourceMappingURL=horizontal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"horizontal.d.ts","sourceRoot":"","sources":["../../src/layout/horizontal.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CACtC;IACC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,SAAS,CAAC,cAAc,CAAC,CAsC7B,CAAC"}
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLProps } from 'react';
|
|
1
|
+
import { default as React, HTMLProps } from 'react';
|
|
2
2
|
export declare const VerticalLayout: React.FC<{
|
|
3
3
|
thumbSlot?: React.ReactNode;
|
|
4
4
|
smallControlsSlot?: React.ReactNode;
|
|
@@ -7,4 +7,6 @@ export declare const VerticalLayout: React.FC<{
|
|
|
7
7
|
lyricSlot?: React.ReactNode;
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
hideLyric?: boolean;
|
|
10
|
+
immerseCover?: boolean;
|
|
10
11
|
} & HTMLProps<HTMLDivElement>>;
|
|
12
|
+
//# sourceMappingURL=vertical.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vertical.d.ts","sourceRoot":"","sources":["../../src/layout/vertical.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CACpC;IACC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,SAAS,CAAC,cAAc,CAAC,CAwI7B,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { LyricLineMouseEvent } from '@applemusic-like-lyrics/core';
|
|
2
|
+
import { LyricPlayerRef } from '@applemusic-like-lyrics/react';
|
|
3
|
+
export interface Callback<Args extends unknown[], Result = void> {
|
|
4
|
+
onEmit?: (...args: Args) => Result;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 当点击歌曲专辑图上方的控制横条(thumb)时触发。
|
|
8
|
+
* 通常用于关闭歌词页面。
|
|
9
|
+
*/
|
|
10
|
+
export declare const onClickControlThumbAtom: import('jotai').PrimitiveAtom<Callback<[], void>> & {
|
|
11
|
+
init: Callback<[], void>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* 当点击音质标签时触发。
|
|
15
|
+
* 通常用于打开音质详情对话框。
|
|
16
|
+
*/
|
|
17
|
+
export declare const onClickAudioQualityTagAtom: import('jotai').PrimitiveAtom<Callback<[], void>> & {
|
|
18
|
+
init: Callback<[], void>;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 当用户试图打开菜单时触发。
|
|
22
|
+
*/
|
|
23
|
+
export declare const onRequestOpenMenuAtom: import('jotai').PrimitiveAtom<Callback<[], void>> & {
|
|
24
|
+
init: Callback<[], void>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 当用户请求播放或从暂停中恢复时触发。
|
|
28
|
+
*/
|
|
29
|
+
export declare const onPlayOrResumeAtom: import('jotai').PrimitiveAtom<Callback<[], void>> & {
|
|
30
|
+
init: Callback<[], void>;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* 当用户请求暂停播放时触发。
|
|
34
|
+
*/
|
|
35
|
+
export declare const onPauseAtom: import('jotai').PrimitiveAtom<Callback<[], void>> & {
|
|
36
|
+
init: Callback<[], void>;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 当用户请求播放上一首歌曲时触发。
|
|
40
|
+
*/
|
|
41
|
+
export declare const onRequestPrevSongAtom: import('jotai').PrimitiveAtom<Callback<[], void>> & {
|
|
42
|
+
init: Callback<[], void>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* 当用户请求播放下一首歌曲时触发。
|
|
46
|
+
*/
|
|
47
|
+
export declare const onRequestNextSongAtom: import('jotai').PrimitiveAtom<Callback<[], void>> & {
|
|
48
|
+
init: Callback<[], void>;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* 当用户通过拖动进度条等方式请求跳转到指定播放位置时触发。
|
|
52
|
+
* @param position - 目标播放位置,单位为毫秒。
|
|
53
|
+
*/
|
|
54
|
+
export declare const onSeekPositionAtom: import('jotai').PrimitiveAtom<Callback<[_position: number], void>> & {
|
|
55
|
+
init: Callback<[_position: number], void>;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* 当用户点击某一行歌词时触发。
|
|
59
|
+
* 通常用于跳转到该行歌词的起始时间。
|
|
60
|
+
* @param _evt - 歌词行事件对象。
|
|
61
|
+
* @param _playerRef - 播放器引用。
|
|
62
|
+
*/
|
|
63
|
+
export declare const onLyricLineClickAtom: import('jotai').PrimitiveAtom<Callback<[_evt: LyricLineMouseEvent, _playerRef: LyricPlayerRef | null], void>> & {
|
|
64
|
+
init: Callback<[_evt: LyricLineMouseEvent, _playerRef: LyricPlayerRef | null], void>;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* 当用户试图对歌词行打开上下文菜单(例如右键点击)时触发。
|
|
68
|
+
* @param _evt - 歌词行事件对象。
|
|
69
|
+
* @param _playerRef - 播放器引用。
|
|
70
|
+
*/
|
|
71
|
+
export declare const onLyricLineContextMenuAtom: import('jotai').PrimitiveAtom<Callback<[_evt: LyricLineMouseEvent, _playerRef: LyricPlayerRef | null], void>> & {
|
|
72
|
+
init: Callback<[_evt: LyricLineMouseEvent, _playerRef: LyricPlayerRef | null], void>;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* 当用户通过音量滑块请求改变音量时触发。
|
|
76
|
+
* @param volume - 目标音量,取值范围为 [0-100]。
|
|
77
|
+
*/
|
|
78
|
+
export declare const onChangeVolumeAtom: import('jotai').PrimitiveAtom<Callback<[_volume: number], void>> & {
|
|
79
|
+
init: Callback<[_volume: number], void>;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* 当用户请求切换随机播放模式时触发。
|
|
83
|
+
*/
|
|
84
|
+
export declare const onToggleShuffleAtom: import('jotai').PrimitiveAtom<Callback<[], void>> & {
|
|
85
|
+
init: Callback<[], void>;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* 当用户请求切换重复播放模式时触发。
|
|
89
|
+
*/
|
|
90
|
+
export declare const onCycleRepeatModeAtom: import('jotai').PrimitiveAtom<Callback<[], void>> & {
|
|
91
|
+
init: Callback<[], void>;
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=callbacks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callbacks.d.ts","sourceRoot":"","sources":["../../src/states/callbacks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGpE,MAAM,WAAW,QAAQ,CAAC,IAAI,SAAS,OAAO,EAAE,EAAE,MAAM,GAAG,IAAI;IAC9D,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;CACnC;AAUD;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;CAAoB,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;CAAoB,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,qBAAqB;;CAAoB,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,kBAAkB;;CAAoB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,WAAW;;CAAoB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,qBAAqB;;CAAoB,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,qBAAqB;;CAAoB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;CAAqC,CAAC;AAErE;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;CAEtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;CAAmC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;CAAoB,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,qBAAqB;;CAAoB,CAAC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { LyricPlayerBase } from '@applemusic-like-lyrics/core';
|
|
2
|
+
import { BackgroundRenderProps } from '@applemusic-like-lyrics/react';
|
|
3
|
+
/**
|
|
4
|
+
* 定义了播放器底部控制区域的显示模式。
|
|
5
|
+
* - `Controls`: 显示播放控制按钮。
|
|
6
|
+
* - `FFT`: 显示音频频谱图。
|
|
7
|
+
* - `None`: 不显示任何内容。
|
|
8
|
+
*/
|
|
9
|
+
export declare enum PlayerControlsType {
|
|
10
|
+
Controls = "controls",
|
|
11
|
+
FFT = "fft",
|
|
12
|
+
None = "none"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 定义了垂直布局下,隐藏歌词时专辑封面的布局模式。
|
|
16
|
+
* - `Auto`: 根据封面是否为视频自动切换为沉浸式布局。
|
|
17
|
+
* - `ForceNormal`: 强制使用标准布局。
|
|
18
|
+
* - `ForceImmersive`: 强制使用沉浸式布局。
|
|
19
|
+
*/
|
|
20
|
+
export declare enum VerticalCoverLayout {
|
|
21
|
+
Auto = "auto",
|
|
22
|
+
ForceNormal = "force-normal",
|
|
23
|
+
ForceImmersive = "force-immersive"
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 定义了可用的歌词渲染器实现枚举。
|
|
27
|
+
*/
|
|
28
|
+
export declare enum LyricPlayerImplementation {
|
|
29
|
+
Dom = "dom",
|
|
30
|
+
DomSlim = "dom-slim",
|
|
31
|
+
Canvas = "canvas"
|
|
32
|
+
}
|
|
33
|
+
export declare enum LyricSizePreset {
|
|
34
|
+
Tiny = "tiny",
|
|
35
|
+
ExtraSmall = "extra-small",
|
|
36
|
+
Small = "small",
|
|
37
|
+
Medium = "medium",
|
|
38
|
+
Large = "large",
|
|
39
|
+
ExtraLarge = "extra-large",
|
|
40
|
+
Huge = "huge"
|
|
41
|
+
}
|
|
42
|
+
export type LyricPlayerImplementationObject = {
|
|
43
|
+
lyricPlayer?: {
|
|
44
|
+
new (...args: ConstructorParameters<typeof LyricPlayerBase>): LyricPlayerBase;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* 歌词播放组件的实现类型
|
|
49
|
+
*/
|
|
50
|
+
export declare const lyricPlayerImplementationAtom: import('jotai').PrimitiveAtom<LyricPlayerImplementationObject> & {
|
|
51
|
+
init: LyricPlayerImplementationObject;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* 是否启用歌词行模糊效果。性能影响:高。
|
|
55
|
+
*/
|
|
56
|
+
export declare const enableLyricLineBlurEffectAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
57
|
+
/**
|
|
58
|
+
* 是否启用歌词行缩放效果。性能影响:无。
|
|
59
|
+
*/
|
|
60
|
+
export declare const enableLyricLineScaleEffectAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
61
|
+
/**
|
|
62
|
+
* 是否启用歌词行弹簧动画效果。如果禁用,则回退到基础的 CSS 动画。性能影响:中。
|
|
63
|
+
*/
|
|
64
|
+
export declare const enableLyricLineSpringAnimationAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
65
|
+
/**
|
|
66
|
+
* 是否显示翻译歌词行。性能影响:低。
|
|
67
|
+
*/
|
|
68
|
+
export declare const enableLyricTranslationLineAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
69
|
+
/**
|
|
70
|
+
* 是否显示音译歌词行。性能影响:低。
|
|
71
|
+
*/
|
|
72
|
+
export declare const enableLyricRomanLineAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
73
|
+
/**
|
|
74
|
+
* 是否交换音译和翻译歌词行的显示位置。性能影响:无。
|
|
75
|
+
*/
|
|
76
|
+
export declare const enableLyricSwapTransRomanLineAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
77
|
+
/**
|
|
78
|
+
* 调节逐词歌词的渐变过渡宽度(单位为一个全角字宽)。
|
|
79
|
+
* 0.5 模拟 Apple Music for iPad;1 模拟 Android;0 则关闭效果。
|
|
80
|
+
*/
|
|
81
|
+
export declare const lyricWordFadeWidthAtom: import('jotai').WritableAtom<number, [number | typeof import('jotai/utils').RESET | ((prev: number) => number | typeof import('jotai/utils').RESET)], void>;
|
|
82
|
+
/**
|
|
83
|
+
* 设置歌词组件的字体家族(CSS Font Family)。
|
|
84
|
+
*/
|
|
85
|
+
export declare const lyricFontFamilyAtom: import('jotai').WritableAtom<string, [string | typeof import('jotai/utils').RESET | ((prev: string) => string | typeof import('jotai/utils').RESET)], void>;
|
|
86
|
+
/**
|
|
87
|
+
* 设置歌词组件的字体字重(CSS Font Weight)。
|
|
88
|
+
*/
|
|
89
|
+
export declare const lyricFontWeightAtom: import('jotai').WritableAtom<string | number, [string | number | typeof import('jotai/utils').RESET | ((prev: string | number) => string | number | typeof import('jotai/utils').RESET)], void>;
|
|
90
|
+
/**
|
|
91
|
+
* 设置歌词组件的字符间距(CSS Letter Spacing)。
|
|
92
|
+
*/
|
|
93
|
+
export declare const lyricLetterSpacingAtom: import('jotai').WritableAtom<string, [string | typeof import('jotai/utils').RESET | ((prev: string) => string | typeof import('jotai/utils').RESET)], void>;
|
|
94
|
+
/**
|
|
95
|
+
* 调节全局歌词时间戳位移,单位毫秒。正值为提前,负值为推迟。
|
|
96
|
+
*/
|
|
97
|
+
export declare const globalLyricTimelineOffsetAtom: import('jotai').WritableAtom<number, [number | typeof import('jotai/utils').RESET | ((prev: number) => number | typeof import('jotai/utils').RESET)], void>;
|
|
98
|
+
/**
|
|
99
|
+
* 歌词字体大小的预设选项。
|
|
100
|
+
*/
|
|
101
|
+
export declare const lyricSizePresetAtom: import('jotai').WritableAtom<LyricSizePreset, [typeof import('jotai/utils').RESET | LyricSizePreset | ((prev: LyricSizePreset) => typeof import('jotai/utils').RESET | LyricSizePreset)], void>;
|
|
102
|
+
/**
|
|
103
|
+
* 播放器底部控制区域的显示模式。
|
|
104
|
+
*/
|
|
105
|
+
export declare const playerControlsTypeAtom: import('jotai').WritableAtom<PlayerControlsType, [typeof import('jotai/utils').RESET | PlayerControlsType | ((prev: PlayerControlsType) => typeof import('jotai/utils').RESET | PlayerControlsType)], void>;
|
|
106
|
+
/**
|
|
107
|
+
* 是否显示歌曲名称。
|
|
108
|
+
*/
|
|
109
|
+
export declare const showMusicNameAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
110
|
+
/**
|
|
111
|
+
* 垂直布局下隐藏歌词时的专辑图布局模式。
|
|
112
|
+
*/
|
|
113
|
+
export declare const verticalCoverLayoutAtom: import('jotai').WritableAtom<VerticalCoverLayout, [typeof import('jotai/utils').RESET | VerticalCoverLayout | ((prev: VerticalCoverLayout) => typeof import('jotai/utils').RESET | VerticalCoverLayout)], void>;
|
|
114
|
+
/**
|
|
115
|
+
* 是否显示歌曲创作者。
|
|
116
|
+
*/
|
|
117
|
+
export declare const showMusicArtistsAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
118
|
+
/**
|
|
119
|
+
* 是否显示歌曲专辑名称。
|
|
120
|
+
*/
|
|
121
|
+
export declare const showMusicAlbumAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
122
|
+
/**
|
|
123
|
+
* 是否显示音量控制滑块。
|
|
124
|
+
*/
|
|
125
|
+
export declare const showVolumeControlAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
126
|
+
/**
|
|
127
|
+
* 是否显示底部控制按钮组。
|
|
128
|
+
*/
|
|
129
|
+
export declare const showBottomControlAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
130
|
+
export type LyricBackgroundRenderer = {
|
|
131
|
+
renderer?: BackgroundRenderProps["renderer"] | string;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* 配置所使用的歌词背景渲染器。
|
|
135
|
+
*/
|
|
136
|
+
export declare const lyricBackgroundRendererAtom: import('jotai').PrimitiveAtom<LyricBackgroundRenderer> & {
|
|
137
|
+
init: LyricBackgroundRenderer;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* 当背景渲染器设置为纯色或CSS背景时,使用此值。
|
|
141
|
+
*/
|
|
142
|
+
export declare const cssBackgroundPropertyAtom: import('jotai').WritableAtom<string, [string | typeof import('jotai/utils').RESET | ((prev: string) => string | typeof import('jotai/utils').RESET)], void>;
|
|
143
|
+
/**
|
|
144
|
+
* 调节背景的最大渲染帧率。性能影响:高。
|
|
145
|
+
*/
|
|
146
|
+
export declare const lyricBackgroundFPSAtom: import('jotai').WritableAtom<number, [number | typeof import('jotai/utils').RESET | ((prev: number) => number | typeof import('jotai/utils').RESET)], void>;
|
|
147
|
+
/**
|
|
148
|
+
* 调节背景的渲染倍率。较低的值可以提升性能。性能影响:高。
|
|
149
|
+
*/
|
|
150
|
+
export declare const lyricBackgroundRenderScaleAtom: import('jotai').WritableAtom<number, [number | typeof import('jotai/utils').RESET | ((prev: number) => number | typeof import('jotai/utils').RESET)], void>;
|
|
151
|
+
/**
|
|
152
|
+
* 是否启用背景静态模式。启用后,背景只在必要时重绘,以优化性能。性能影响:中。
|
|
153
|
+
*/
|
|
154
|
+
export declare const lyricBackgroundStaticModeAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
155
|
+
/**
|
|
156
|
+
* 控制歌词播放页面是否可见。
|
|
157
|
+
* 推荐在页面被隐藏时设置为 false,以暂停动画和渲染,优化性能。
|
|
158
|
+
*/
|
|
159
|
+
export declare const isLyricPageOpenedAtom: import('jotai').PrimitiveAtom<boolean> & {
|
|
160
|
+
init: boolean;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* 是否强制隐藏歌词视图(即使有歌词数据)。
|
|
164
|
+
*/
|
|
165
|
+
export declare const hideLyricViewAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
166
|
+
/**
|
|
167
|
+
* 是否在进度条上显示剩余时间而非当前时间。
|
|
168
|
+
*/
|
|
169
|
+
export declare const showRemainingTimeAtom: import('jotai').WritableAtom<boolean, [boolean | typeof import('jotai/utils').RESET | ((prev: boolean) => boolean | typeof import('jotai/utils').RESET)], void>;
|
|
170
|
+
/**
|
|
171
|
+
* 用于音频可视化频谱图的数据采样频率范围。
|
|
172
|
+
*/
|
|
173
|
+
export declare const fftDataRangeAtom: import('jotai').WritableAtom<[number, number], [typeof import('jotai/utils').RESET | [number, number] | ((prev: [number, number]) => typeof import('jotai/utils').RESET | [number, number])], void>;
|
|
174
|
+
//# sourceMappingURL=configAtoms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configAtoms.d.ts","sourceRoot":"","sources":["../../src/states/configAtoms.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum RepeatMode {
|
|
2
|
+
Off = "off",
|
|
3
|
+
One = "one",
|
|
4
|
+
All = "all"
|
|
5
|
+
}
|
|
6
|
+
export declare const isShuffleActiveAtom: import('jotai').PrimitiveAtom<boolean> & {
|
|
7
|
+
init: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const repeatModeAtom: import('jotai').PrimitiveAtom<RepeatMode> & {
|
|
10
|
+
init: RepeatMode;
|
|
11
|
+
};
|
|
12
|
+
export declare const isShuffleEnabledAtom: import('jotai').PrimitiveAtom<boolean> & {
|
|
13
|
+
init: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const isRepeatEnabledAtom: import('jotai').PrimitiveAtom<boolean> & {
|
|
16
|
+
init: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare const toggleShuffleActionAtom: import('jotai').WritableAtom<null, [], void> & {
|
|
19
|
+
init: null;
|
|
20
|
+
};
|
|
21
|
+
export declare const cycleRepeatModeActionAtom: import('jotai').WritableAtom<null, [], void> & {
|
|
22
|
+
init: null;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=controlsAtoms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controlsAtoms.d.ts","sourceRoot":"","sources":["../../src/states/controlsAtoms.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACrB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACX;AAED,eAAO,MAAM,mBAAmB;;CAAuB,CAAC;AACxD,eAAO,MAAM,cAAc;;CAAmC,CAAC;AAC/D,eAAO,MAAM,oBAAoB;;CAAuB,CAAC;AACzD,eAAO,MAAM,mBAAmB;;CAAuB,CAAC;AACxD,eAAO,MAAM,uBAAuB;;CAGlC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;CAGpC,CAAC"}
|