@lvce-editor/problems-view 1.6.0 → 1.7.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.
@@ -2011,9 +2011,19 @@ const getActionsVirtualDom = actions => {
2011
2011
  };
2012
2012
 
2013
2013
  const getActions = state => {
2014
- const visibleCount = getVisibleProblems(state.problems, state.collapsedUris, state.focusedIndex, state.filterValue).length;
2015
- const problemsCount = state.problems.length;
2016
- const isSmall = state.width <= state.smallWidthBreakPoint;
2014
+ const {
2015
+ problems,
2016
+ width,
2017
+ collapsedUris,
2018
+ focusedIndex,
2019
+ smallWidthBreakPoint,
2020
+ filterValue,
2021
+ inputSource,
2022
+ viewMode
2023
+ } = state;
2024
+ const visibleCount = getVisibleProblems(problems, collapsedUris, focusedIndex, filterValue).length;
2025
+ const problemsCount = problems.length;
2026
+ const isSmall = width <= smallWidthBreakPoint;
2017
2027
  const actions = [];
2018
2028
  if (!isSmall) {
2019
2029
  actions.push({
@@ -2022,10 +2032,10 @@ const getActions = state => {
2022
2032
  command: HandleFilterInput,
2023
2033
  badgeText: visibleCount === problemsCount ? '' : showingOf(visibleCount, problemsCount),
2024
2034
  placeholder: filter(),
2025
- value: state.inputSource === Script ? state.filterValue : ''
2035
+ value: inputSource === Script ? filterValue : ''
2026
2036
  });
2027
2037
  }
2028
- if (state.viewMode === Table) {
2038
+ if (viewMode === Table) {
2029
2039
  actions.push({
2030
2040
  type: Button,
2031
2041
  id: viewAsList$1(),
@@ -2071,6 +2081,9 @@ const renderEventListeners = () => {
2071
2081
  }, {
2072
2082
  name: HandleClearFilterClick,
2073
2083
  params: ['clearFilter']
2084
+ }, {
2085
+ name: HandlePointerDown,
2086
+ params: ['handleClickAt', 'event.clientX', 'event.clientY']
2074
2087
  }];
2075
2088
  };
2076
2089
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/problems-view",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Problems View Worker",
5
5
  "repository": {
6
6
  "type": "git",