diff --git a/license-checker-template.json b/license-checker-template.json deleted file mode 100644 index 0f82f848..00000000 --- a/license-checker-template.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "", - "version": "", - "licenses": "", - "repository": "", - "path": "", - "licenseFile": "", - "copyright": "" -} diff --git a/src/components/shared/AudioViewer/index.tsx b/src/components/shared/AudioViewer/index.tsx index 9cffdc4f..4c73f08b 100644 --- a/src/components/shared/AudioViewer/index.tsx +++ b/src/components/shared/AudioViewer/index.tsx @@ -338,13 +338,19 @@ const AudioViewer = ({ ]); useEffect(() => { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (waveform.current?.backend as any).media.loop = repeat; if (isReady && autoplay && !waveform.current?.isPlaying()) { switchActiveWidget(); waveform.current?.play(); } - }, [isReady, autoplay, repeat]); + }, [isReady, autoplay]); + + useEffect(() => { + const backend = waveform.current?.backend; + if (backend) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (backend as any).media.loop = repeat; + } + }, [isReady, repeat]); useEffect(() => { if (!waveform.current?.isReady) return; diff --git a/src/lib.ts b/src/lib.ts index d6cb859f..3234dff2 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -64,7 +64,7 @@ export { default as api } from './api'; export type { App } from './stores/pluginStore'; export { useDataset, convertValue } from './stores/dataset'; export { useColors } from './stores/colors'; -export { isAudio, isBoolean, getNullValue, isCategorical } from './datatypes'; +export { isAudio, isBoolean, getNullValue, isCategorical, isWindow } from './datatypes'; export type { EmbeddingDataType, DataType,