@lvce-editor/problems-view 1.1.0 → 1.2.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.
@@ -1077,6 +1077,13 @@ const diff2 = uid => {
1077
1077
  return diffResult;
1078
1078
  };
1079
1079
 
1080
+ const focusIndex = (state, index) => {
1081
+ return {
1082
+ ...state,
1083
+ focusedIndex: index
1084
+ };
1085
+ };
1086
+
1080
1087
  const None = 'none';
1081
1088
  const Tree$1 = 'tree';
1082
1089
  const TreeItem$1 = 'treeitem';
@@ -1831,6 +1838,13 @@ const render2 = (uid, diffResult) => {
1831
1838
  return commands;
1832
1839
  };
1833
1840
 
1841
+ const resize = (state, dimensions) => {
1842
+ return {
1843
+ ...state,
1844
+ ...dimensions
1845
+ };
1846
+ };
1847
+
1834
1848
  const saveState = state => {
1835
1849
  const {
1836
1850
  viewMode,
@@ -1845,16 +1859,18 @@ const saveState = state => {
1845
1859
  };
1846
1860
 
1847
1861
  const commandMap = {
1862
+ 'Problems.copyMessage': copyMessage,
1848
1863
  'Problems.create': create,
1849
1864
  'Problems.diff2': diff2,
1865
+ 'Problems.focusIndex': focusIndex,
1850
1866
  'Problems.getKeyBindings': getKeyBindings,
1851
1867
  'Problems.handleArrowLeft': wrapCommand(handleArrowLeft),
1852
1868
  'Problems.handleArrowRight': wrapCommand(handleArrowRight),
1853
1869
  'Problems.initialize': initialize,
1854
1870
  'Problems.render2': render2,
1871
+ 'Problems.resize': resize,
1855
1872
  'Problems.saveState': saveState,
1856
- 'Problems.terminate': terminate,
1857
- 'Problems.copyMessage': copyMessage
1873
+ 'Problems.terminate': terminate
1858
1874
  };
1859
1875
 
1860
1876
  const listen = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/problems-view",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Problems View Worker",
5
5
  "repository": {
6
6
  "type": "git",