@lvce-editor/extension-search-view 7.12.1 → 7.13.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.
|
@@ -4655,6 +4655,13 @@ const getNoExtensionsFoundVirtualDom = message => {
|
|
|
4655
4655
|
return [noExtensionsFoundNode, text(message)];
|
|
4656
4656
|
};
|
|
4657
4657
|
|
|
4658
|
+
const scrollBarNode = {
|
|
4659
|
+
childCount: 1,
|
|
4660
|
+
className: mergeClassNames(ScrollBar, ScrollBarSmall),
|
|
4661
|
+
onPointerDown: HandleScrollBarPointerDown,
|
|
4662
|
+
// TODO support pointercapture event
|
|
4663
|
+
type: Div
|
|
4664
|
+
};
|
|
4658
4665
|
const scrollBarThumbNode = {
|
|
4659
4666
|
childCount: 0,
|
|
4660
4667
|
className: ScrollBarThumb,
|
|
@@ -4665,13 +4672,7 @@ const getScrollBarVirtualDom = (scrollBarHeight, scrollBarTop) => {
|
|
|
4665
4672
|
if (!shouldShowScrollbar) {
|
|
4666
4673
|
return [];
|
|
4667
4674
|
}
|
|
4668
|
-
return [
|
|
4669
|
-
childCount: 1,
|
|
4670
|
-
className: mergeClassNames(ScrollBar, ScrollBarSmall),
|
|
4671
|
-
onPointerDown: HandleScrollBarPointerDown,
|
|
4672
|
-
// TODO support pointercapture event
|
|
4673
|
-
type: Div
|
|
4674
|
-
}, scrollBarThumbNode];
|
|
4675
|
+
return [scrollBarNode, scrollBarThumbNode];
|
|
4675
4676
|
};
|
|
4676
4677
|
|
|
4677
4678
|
const getVisibleItem = (item, setSize, itemHeight, minLineY, relative, i, focusedIndex) => {
|
|
@@ -4726,15 +4727,24 @@ const getVisible = state => {
|
|
|
4726
4727
|
return visible;
|
|
4727
4728
|
};
|
|
4728
4729
|
|
|
4730
|
+
const contentNode = {
|
|
4731
|
+
childCount: 2,
|
|
4732
|
+
className: mergeClassNames(Viewlet, List),
|
|
4733
|
+
type: Div
|
|
4734
|
+
};
|
|
4735
|
+
const extensionsNode = {
|
|
4736
|
+
ariaBusy: false,
|
|
4737
|
+
ariaLive: 'polite',
|
|
4738
|
+
childCount: 2,
|
|
4739
|
+
className: mergeClassNames(Viewlet, Extensions),
|
|
4740
|
+
role: None$3,
|
|
4741
|
+
type: Div
|
|
4742
|
+
};
|
|
4729
4743
|
const getContentVirtualDom = (visibleExtensions, message, scrollBarHeight, scrollBarY, focusOutline) => {
|
|
4730
4744
|
if (message) {
|
|
4731
4745
|
return getNoExtensionsFoundVirtualDom(message);
|
|
4732
4746
|
}
|
|
4733
|
-
return [
|
|
4734
|
-
childCount: 2,
|
|
4735
|
-
className: mergeClassNames(Viewlet, List),
|
|
4736
|
-
type: Div
|
|
4737
|
-
}, ...getExtensionsVirtualDom(visibleExtensions, focusOutline), ...getScrollBarVirtualDom(scrollBarHeight)];
|
|
4747
|
+
return [contentNode, ...getExtensionsVirtualDom(visibleExtensions, focusOutline), ...getScrollBarVirtualDom(scrollBarHeight)];
|
|
4738
4748
|
};
|
|
4739
4749
|
const getExtensionsViewVirtualDom = state => {
|
|
4740
4750
|
const visibleExtensions = getVisible(state);
|
|
@@ -4751,14 +4761,7 @@ const getExtensionsViewVirtualDom = state => {
|
|
|
4751
4761
|
suggestOpen
|
|
4752
4762
|
} = state;
|
|
4753
4763
|
const focusOutline = focusedIndex === -1 && focus === List$2;
|
|
4754
|
-
return [
|
|
4755
|
-
ariaBusy: false,
|
|
4756
|
-
ariaLive: 'polite',
|
|
4757
|
-
childCount: 2,
|
|
4758
|
-
className: mergeClassNames(Viewlet, Extensions),
|
|
4759
|
-
role: None$3,
|
|
4760
|
-
type: Div
|
|
4761
|
-
}, ...getExtensionHeaderVirtualDom(placeholder, inputActions, completionItems, completionFocusedIndex, suggestOpen), ...getContentVirtualDom(visibleExtensions, message, scrollBarHeight, scrollBarY, focusOutline)];
|
|
4764
|
+
return [extensionsNode, ...getExtensionHeaderVirtualDom(placeholder, inputActions, completionItems, completionFocusedIndex, suggestOpen), ...getContentVirtualDom(visibleExtensions, message, scrollBarHeight, scrollBarY, focusOutline)];
|
|
4762
4765
|
};
|
|
4763
4766
|
|
|
4764
4767
|
const renderItems2 = newState => {
|