@lvce-editor/source-control-worker 2.16.0 → 2.17.0

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.
@@ -2459,6 +2459,7 @@ const HandleMouseOutAt = 6;
2459
2459
  const HandleMouseOver = 7;
2460
2460
  const HandleMouseOverAt = 8;
2461
2461
  const HandleWheel = 9;
2462
+ const HandleClickAction = 10;
2462
2463
 
2463
2464
  const getSourceControlInputDom = inputPlaceholder => {
2464
2465
  return [{
@@ -2845,7 +2846,8 @@ const getActionsVirtualDom = actions => {
2845
2846
  type: Div,
2846
2847
  className: Actions,
2847
2848
  role: ToolBar,
2848
- childCount: actions.length
2849
+ childCount: actions.length,
2850
+ onClick: HandleClickAction
2849
2851
  }, ...actions.flatMap(getActionVirtualDom)];
2850
2852
  };
2851
2853
 
@@ -2886,6 +2888,9 @@ const renderEventListeners = () => {
2886
2888
  name: HandleWheel,
2887
2889
  params: ['handleWheel', DeltaMode, DeltaY],
2888
2890
  passive: true
2891
+ }, {
2892
+ name: HandleClickAction,
2893
+ params: ['handleActionClick', TargetName]
2889
2894
  }];
2890
2895
  };
2891
2896
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/source-control-worker",
3
- "version": "2.16.0",
3
+ "version": "2.17.0",
4
4
  "description": "Source Control Worker",
5
5
  "keywords": [
6
6
  "Lvce Editor"