@lvce-editor/panel-worker 2.3.0 → 2.3.1

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.
@@ -1565,8 +1565,8 @@ const getSavedViewletId = savedState => {
1565
1565
  return Problems;
1566
1566
  };
1567
1567
 
1568
- const createViewlet = async (viewletModuleId, editorUid, tabId, actionsUid, bounds, uri) => {
1569
- await invoke('Layout.createPanelViewlet', viewletModuleId, editorUid, tabId, actionsUid, bounds, uri);
1568
+ const createViewlet = async (viewletModuleId, editorUid, tabId, actionsUid, bounds, uri, focus) => {
1569
+ await invoke('Layout.createPanelViewlet', viewletModuleId, editorUid, tabId, actionsUid, bounds, uri, focus);
1570
1570
  };
1571
1571
 
1572
1572
  const getContentDimensions = dimensions => {
@@ -1591,7 +1591,7 @@ const openViewlet = async (state, id, focus = false) => {
1591
1591
  const tabId = getUid();
1592
1592
  const actionsUid = getUid();
1593
1593
  const index = views.indexOf(id);
1594
- await createViewlet(id, childUid, tabId, actionsUid, childDimensions, '');
1594
+ await createViewlet(id, childUid, tabId, actionsUid, childDimensions, '', focus);
1595
1595
  return {
1596
1596
  ...state,
1597
1597
  actionsUid,
@@ -1617,7 +1617,7 @@ const selectIndex = async (state, index) => {
1617
1617
  const {
1618
1618
  views
1619
1619
  } = state;
1620
- return openViewlet(state, views[index]);
1620
+ return openViewlet(state, views[index], true);
1621
1621
  };
1622
1622
 
1623
1623
  const selectRaw = async (state, rawIndex) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/panel-worker",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Panel Worker",
5
5
  "repository": {
6
6
  "type": "git",