@moises.ai/design-system 4.18.7 → 4.18.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moises.ai/design-system",
3
- "version": "4.18.7",
3
+ "version": "4.18.8",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -24,6 +24,14 @@ const ProjectTrackVoice = ({
24
24
  const [loading, setLoading] = useState(_loading)
25
25
  const debounceRef = useRef(null)
26
26
 
27
+ useEffect(() => {
28
+ if (hasTransfers && !transfers.some((transfer) => parseInt(transfer.pitchShift) === pitchShiftSelected)) {
29
+ setLoading(true)
30
+ } else {
31
+ setLoading(false)
32
+ }
33
+ }, [pitchShiftSelected, transfers, hasTransfers])
34
+
27
35
  useEffect(() => {
28
36
  setLoading(_loading)
29
37
 
@@ -262,7 +262,7 @@ export const WithTrackVoiceStates = {
262
262
  "type": "voice",
263
263
  "tracks": [
264
264
  {
265
- "id": "q8pzli0h38ptcx21q09h2al-0",
265
+ "id": "q8pzli0h38ptcx211133q09h2al-0",
266
266
  "title": "Joyce",
267
267
  "type": "voice",
268
268
  "loading": true,
@@ -273,6 +273,21 @@ export const WithTrackVoiceStates = {
273
273
  "type": "voice",
274
274
  "cover": "https://picsum.photos/101/101",
275
275
  "transfers": [],
276
+ },
277
+ {
278
+ "id": "q8pzli0h38ptcxq09h2al3-0",
279
+ "title": "Derek",
280
+ "type": "voice",
281
+ "cover": "https://picsum.photos/103/103",
282
+ "transfers": [{
283
+ "id": "q8pzli0h38ptcxq09h1122al",
284
+ "pitchShift": "12",
285
+ "audioUrl": "https://d3-stage.moises.ai/v3/download/moises-stage--tasks-us-east1/operations/VOICETRANSFER_A/0b926e1f-52ce-4581-9f76-09545eed1c61/vocals.m4"
286
+ }, {
287
+ "id": "q8pzli0h38ptcxq03339h2al2",
288
+ "pitchShift": "13",
289
+ "audioUrl": "https://d3-stage.moises.ai/v3/download/moises-stage--tasks-us-east1/operations/VOICETRANSFER_A/0a6c2a03-320e-49f2-9ea6-a5ad7bbb6141/vocals.m4a"
290
+ }],
276
291
  }
277
292
  ]
278
293
  }],