@protonradio/proton-ui 0.8.2 → 0.8.4
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/dist/index.cjs.js +10 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.es.js +1081 -1077
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -827,7 +827,7 @@ declare const WARNING: {
|
|
|
827
827
|
*
|
|
828
828
|
* @returns {JSX.Element} A waveform visualization with optional timestamps and interactive features
|
|
829
829
|
*/
|
|
830
|
-
export declare function Waveform({ data: waveformData, resolution, startDuration, endDuration, currentTime, showTimestamps, totalDuration, onClick, "data-testid": testId, }: WaveformProps): JSX_2.Element;
|
|
830
|
+
export declare function Waveform({ data: waveformData, resolution, startDuration, endDuration, currentTime, showTimestamps, totalDuration, disabled, disabledMessage, onClick, "data-testid": testId, }: WaveformProps): JSX_2.Element;
|
|
831
831
|
|
|
832
832
|
declare interface WaveformProps {
|
|
833
833
|
/**
|
|
@@ -835,6 +835,14 @@ declare interface WaveformProps {
|
|
|
835
835
|
* If not provided, uses a sample sine wave.
|
|
836
836
|
*/
|
|
837
837
|
data?: number[];
|
|
838
|
+
/**
|
|
839
|
+
* Whether the entire waveform is disabled.
|
|
840
|
+
*/
|
|
841
|
+
disabled?: boolean;
|
|
842
|
+
/**
|
|
843
|
+
* Reason for the waveform being disabled.
|
|
844
|
+
*/
|
|
845
|
+
disabledMessage?: string;
|
|
838
846
|
/**
|
|
839
847
|
* Total duration of the audio in seconds.
|
|
840
848
|
*/
|