sense-react-timeline-editor 1.0.17 → 1.0.18

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/dist/index.esm.js CHANGED
@@ -3211,7 +3211,7 @@ var useRowSelection = function useRowSelection(options) {
3211
3211
  var handleClickOutside = useCallback(function (target) {
3212
3212
  if (disabled) return;
3213
3213
  // 如果点击的不是选中的 action 或框选框,清除选择
3214
- if (!target.closest('.timeline-editor-selection-box') && !target.closest('.timeline-editor-action') && !target.closest('[data-draggable="true"]') && !target.closest('.voice-studio-right-config-panel') && !target.closest('.voice-studio-main-content-panel')) {
3214
+ if (!target.closest('.timeline-editor-selection-box') && !target.closest('.timeline-editor-action') && !target.closest('[data-draggable="true"]') && !target.closest('.voice-studio-right-config-panel') && !target.closest('.voice-studio-main-content-panel') && !target.closest('.ant-modal')) {
3215
3215
  clearSelection();
3216
3216
  }
3217
3217
  }, [disabled, clearSelection]);
@@ -3927,9 +3927,13 @@ var EditAreaO = /*#__PURE__*/React.forwardRef(function (props, ref) {
3927
3927
  // 监听 Ctrl+ 点击事件
3928
3928
  useEffect(function () {
3929
3929
  var handleCtrlClickAction = function handleCtrlClickAction(e) {
3930
+ var _editorData$;
3930
3931
  var _e$detail = e.detail,
3931
3932
  actionId = _e$detail.actionId,
3932
3933
  row = _e$detail.row;
3934
+ if (row.type !== ((_editorData$ = editorData[0]) === null || _editorData$ === void 0 ? void 0 : _editorData$.type)) {
3935
+ return;
3936
+ }
3933
3937
  console.log('ctrl-click-action', row, ', editorData = ', editorData);
3934
3938
  setSelectedActionIds(function (ids) {
3935
3939
  var newIds = new Set();
package/dist/index.js CHANGED
@@ -3220,7 +3220,7 @@ var useRowSelection = function useRowSelection(options) {
3220
3220
  var handleClickOutside = React.useCallback(function (target) {
3221
3221
  if (disabled) return;
3222
3222
  // 如果点击的不是选中的 action 或框选框,清除选择
3223
- if (!target.closest('.timeline-editor-selection-box') && !target.closest('.timeline-editor-action') && !target.closest('[data-draggable="true"]') && !target.closest('.voice-studio-right-config-panel') && !target.closest('.voice-studio-main-content-panel')) {
3223
+ if (!target.closest('.timeline-editor-selection-box') && !target.closest('.timeline-editor-action') && !target.closest('[data-draggable="true"]') && !target.closest('.voice-studio-right-config-panel') && !target.closest('.voice-studio-main-content-panel') && !target.closest('.ant-modal')) {
3224
3224
  clearSelection();
3225
3225
  }
3226
3226
  }, [disabled, clearSelection]);
@@ -3936,9 +3936,13 @@ var EditAreaO = /*#__PURE__*/React__default['default'].forwardRef(function (prop
3936
3936
  // 监听 Ctrl+ 点击事件
3937
3937
  React.useEffect(function () {
3938
3938
  var handleCtrlClickAction = function handleCtrlClickAction(e) {
3939
+ var _editorData$;
3939
3940
  var _e$detail = e.detail,
3940
3941
  actionId = _e$detail.actionId,
3941
3942
  row = _e$detail.row;
3943
+ if (row.type !== ((_editorData$ = editorData[0]) === null || _editorData$ === void 0 ? void 0 : _editorData$.type)) {
3944
+ return;
3945
+ }
3942
3946
  console.log('ctrl-click-action', row, ', editorData = ', editorData);
3943
3947
  setSelectedActionIds(function (ids) {
3944
3948
  var newIds = new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sense-react-timeline-editor",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "author": "xzdarcy",
5
5
  "license": "MIT",
6
6
  "keywords": [