@lvce-editor/extension-search-view 5.4.0 → 5.5.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.
@@ -1057,6 +1057,8 @@ const LeftClick = 0;
1057
1057
  const ExtensionHostWorker = 44;
1058
1058
  const RendererWorker = 1;
1059
1059
 
1060
+ const FocusSelector = 'Viewlet.focusSelector';
1061
+
1060
1062
  const rpcs = Object.create(null);
1061
1063
  const set$4 = (id, rpc) => {
1062
1064
  rpcs[id] = rpc;
@@ -1352,6 +1354,7 @@ const HandleTouchMove = 13;
1352
1354
  const HandleTouchStart = 14;
1353
1355
  const HandleWheel = 15;
1354
1356
  const HandleHeaderContextMenu = 16;
1357
+ const HandleBlur = 17;
1355
1358
 
1356
1359
  const ClearAll = 'ClearAll';
1357
1360
  const Filter = 'Filter';
@@ -1772,7 +1775,7 @@ const isEqual$2 = (oldState, newState) => {
1772
1775
  };
1773
1776
 
1774
1777
  const isEqual$1 = (oldState, newState) => {
1775
- return oldState.items === newState.items && oldState.minLineY === newState.minLineY && oldState.maxLineY === newState.maxLineY && oldState.deltaY === newState.deltaY && oldState.focusedIndex === newState.focusedIndex && oldState.message === newState.message && oldState.inputActions === newState.inputActions && oldState.placeholder === newState.placeholder && oldState.scrollBarHeight === newState.scrollBarHeight;
1778
+ return oldState.items === newState.items && oldState.minLineY === newState.minLineY && oldState.maxLineY === newState.maxLineY && oldState.deltaY === newState.deltaY && oldState.focusedIndex === newState.focusedIndex && oldState.message === newState.message && oldState.focus === newState.focus && oldState.inputActions === newState.inputActions && oldState.placeholder === newState.placeholder && oldState.scrollBarHeight === newState.scrollBarHeight;
1776
1779
  };
1777
1780
 
1778
1781
  const User = 1;
@@ -2617,7 +2620,7 @@ const renderFocus = newState => {
2617
2620
  return [];
2618
2621
  }
2619
2622
  const selector = getSelector(focus);
2620
- return ['Viewlet.focusSelector', uid, selector];
2623
+ return [FocusSelector, uid, selector];
2621
2624
  };
2622
2625
 
2623
2626
  const renderFocusContext = newState => {
@@ -2829,6 +2832,7 @@ const getExtensionsListVirtualDom = (visibleExtensions, focusOutline) => {
2829
2832
  ariaLabel: extensions(),
2830
2833
  childCount: visibleExtensions.length,
2831
2834
  className,
2835
+ onBlur: HandleBlur,
2832
2836
  onContextmenu: HandleContextMenu,
2833
2837
  onContextMenu: HandleContextMenu,
2834
2838
  onFocus: HandleFocus,
@@ -2949,7 +2953,7 @@ const getExtensionsViewVirtualDom = state => {
2949
2953
  scrollBarHeight,
2950
2954
  scrollBarY
2951
2955
  } = state;
2952
- const focusOutline = focusedIndex === -1;
2956
+ const focusOutline = focusedIndex === -1 && state.focus === List$2;
2953
2957
  return [{
2954
2958
  ariaBusy: false,
2955
2959
  ariaLive: 'polite',
@@ -3125,6 +3129,9 @@ const renderEventListeners = () => {
3125
3129
  }, {
3126
3130
  name: HandleFocus,
3127
3131
  params: ['handleFocus']
3132
+ }, {
3133
+ name: HandleBlur,
3134
+ params: ['handleBlur']
3128
3135
  }];
3129
3136
  };
3130
3137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-search-view",
3
- "version": "5.4.0",
3
+ "version": "5.5.0",
4
4
  "description": "Extension Search View Worker",
5
5
  "repository": {
6
6
  "type": "git",