@moises.ai/design-system 4.15.8 → 4.15.9

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.15.8",
3
+ "version": "4.15.9",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -208,8 +208,8 @@ export const PreviewCard = forwardRef(function PreviewCard(
208
208
 
209
209
  const seekTime =
210
210
  typeof newTime === 'number' ? newTime : (ws.getCurrentTime?.() ?? 0)
211
- const wasPlaying =
212
- Boolean(previousActive?.isPlaying?.()) || wavegroup.state.isPlaying
211
+ const previousWasPlaying = Boolean(previousActive?.isPlaying?.())
212
+ const wasPlaying = previousWasPlaying || wavegroup.state.isPlaying
213
213
 
214
214
  pendingSeekTimeRef.current = seekTime
215
215
  skipTimeSyncRef.current = true
@@ -221,6 +221,10 @@ export const PreviewCard = forwardRef(function PreviewCard(
221
221
  ws.setTime(seekTime)
222
222
  previousActive.pause()
223
223
 
224
+ if (!previousWasPlaying) {
225
+ previousActive.emit?.('pause')
226
+ }
227
+
224
228
  if (!isSafari) {
225
229
  ws.setOptions({ progressColor })
226
230
  }