@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/.turbo/turbo-build.log +9 -9
- package/dist/index.js +23249 -155
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23127 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/EditorCanvas.tsx +2 -0
- package/src/index.tsx +1 -0
- package/src/utils/VmmlConverter.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versa_ai/vmml-editor",
|
|
3
|
-
"version": "1.0.
|
|
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-
|
|
21
|
-
"@versa_ai/vmml-
|
|
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
|
}
|