@versa_ai/vmml-editor 1.0.53 → 1.0.54

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.53",
3
+ "version": "1.0.54",
4
4
  "module": "dist/index.mjs",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
@@ -17,8 +17,8 @@
17
17
  "remotion": "4.0.166",
18
18
  "uuid": "^10.0.0",
19
19
  "zod": "^3.23.8",
20
- "@versa_ai/vmml-player": "1.1.24",
21
- "@versa_ai/vmml-utils": "1.0.15"
20
+ "@versa_ai/vmml-utils": "1.0.15",
21
+ "@versa_ai/vmml-player": "1.1.24"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@biomejs/biome": "^1.7.1",
@@ -88,6 +88,7 @@ const EditorCanvas = forwardRef(
88
88
  }
89
89
  const { clipData } = e.target.toJSON(['clipData']);
90
90
  vmmlConverterRef.current.deleteClip(clipData);
91
+ updateVmml(vmmlConverterRef.current.vmml)
91
92
  });
92
93
 
93
94
  canvas.on('object:muteChange', (e: any) => {
@@ -602,6 +603,7 @@ const EditorCanvas = forwardRef(
602
603
  })
603
604
  onVideoChange(group?.clipData??null);
604
605
  vmmlConverterRef.current.addTextClip(convertToJSON(group));
606
+ updateVmml(vmmlConverterRef.current?.vmml)
605
607
  resolve(true);
606
608
  })
607
609
 
package/src/index.tsx CHANGED
@@ -220,6 +220,7 @@ const EditorFn = <Schema extends AnyZodObject, Props>(
220
220
  if (current && !checkVideoNum()) {
221
221
  const fObj = await current.createImage(file, emojiId);
222
222
  vmmlConverterRef.current.addVideoClip(fObj);
223
+ updateVmml(vmmlConverterRef.current.vmml)
223
224
  setMenuState("");
224
225
  setPreviewState(true);
225
226
  }
@@ -251,6 +251,7 @@ class VmmlConverter {
251
251
  }
252
252
  }
253
253
  }
254
+ console.log('deleteclip>>>>>>>>>>>>>>>')
254
255
  }
255
256
 
256
257
  changeVmml (newVmml: any) {