@lvce-editor/output-view 1.10.0 → 1.11.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.
@@ -1146,7 +1146,7 @@ const isEqual$2 = (oldState, newState) => {
1146
1146
  };
1147
1147
 
1148
1148
  const isEqual$1 = (oldState, newState) => {
1149
- return oldState.selectedOption === newState.selectedOption;
1149
+ return oldState.selectedOption === newState.selectedOption && oldState.listItems === newState.listItems;
1150
1150
  };
1151
1151
 
1152
1152
  const isEqual = (oldState, newState) => {
@@ -1565,7 +1565,8 @@ const handleFilterInput = async (state, value) => {
1565
1565
 
1566
1566
  const selectChannel = async (state, id) => {
1567
1567
  const {
1568
- options
1568
+ options,
1569
+ filterValue
1569
1570
  } = state;
1570
1571
  const matchingOption = options.find(option => option.id === id);
1571
1572
  if (!matchingOption) {
@@ -1577,11 +1578,13 @@ const selectChannel = async (state, id) => {
1577
1578
  error,
1578
1579
  code
1579
1580
  } = await loadLines(matchingOption.uri);
1581
+ const filteredItems = filterItems(lines, filterValue);
1580
1582
  return {
1581
1583
  ...state,
1582
1584
  error,
1583
1585
  errorCode: code,
1584
1586
  listItems: lines,
1587
+ filteredItems,
1585
1588
  selectedOption: id
1586
1589
  };
1587
1590
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/output-view",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Output View Worker",
5
5
  "repository": {
6
6
  "type": "git",