@versa_ai/vmml-editor 1.0.35 → 1.0.36

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": "@versa_ai/vmml-editor",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "module": "dist/index.mjs",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
package/src/index.tsx CHANGED
@@ -277,9 +277,14 @@ const EditorFn = <Schema extends AnyZodObject, Props>(
277
277
  };
278
278
 
279
279
  const onWaiting = () => {
280
- // setShowCanvas(false);
281
- // setPreviewState(true);
282
- // setBuffering(true);
280
+ console.log('onWaiting>>>>>>>>>>>>>>consol')
281
+ const { current }: any = vmmlPlayerRef;
282
+ const playing = current?.playerRef?.isPlaying?.() ?? false
283
+ if (playing) {
284
+ setShowCanvas(false);
285
+ setPreviewState(true);
286
+ setBuffering(true);
287
+ }
283
288
  }
284
289
 
285
290
  const onResume = () => {