@versa_ai/vmml-editor 1.0.23 → 1.0.24

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.23",
3
+ "version": "1.0.24",
4
4
  "module": "dist/index.mjs",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
@@ -16,8 +16,8 @@
16
16
  "remotion": "4.0.166",
17
17
  "uuid": "^10.0.0",
18
18
  "zod": "^3.23.8",
19
- "@versa_ai/vmml-player": "1.1.20",
20
- "@versa_ai/vmml-utils": "1.0.15"
19
+ "@versa_ai/vmml-utils": "1.0.15",
20
+ "@versa_ai/vmml-player": "1.1.20"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@biomejs/biome": "^1.7.1",
@@ -237,6 +237,8 @@ const EditorCanvas = forwardRef(
237
237
  });
238
238
  if (editRenderTime.current === time) {
239
239
  canvas.add(...objects).renderAll();
240
+ // 没有渲染好的时候检查inpoint时间
241
+ checkObjectInPoint();
240
242
  }
241
243
  };
242
244
 
package/src/index.tsx CHANGED
@@ -287,7 +287,7 @@ const EditorFn = <Schema extends AnyZodObject, Props>(
287
287
  const initCanEditClips = (tracks: any = []) => {
288
288
  if (editableArray.length && tracks.length) {
289
289
  const list = findEditClips(tracks);
290
- setEditClips(list); // 直接更新 state,让 Canvas 组件自动处理
290
+ setEditClips(list);
291
291
  }
292
292
  };
293
293
 
@@ -364,7 +364,7 @@ const EditorFn = <Schema extends AnyZodObject, Props>(
364
364
  if (editableArray.length && vmmlState?.template) {
365
365
  initCanEditClips(vmmlState.template.tracks);
366
366
  }
367
- }, [editableArray, refreshEdit]);
367
+ }, [editableArray, refreshEdit, vmmlState]);
368
368
 
369
369
  useEffect(() => {
370
370
  if (propVmml) {