@lvce-editor/main-area-worker 9.71.3 → 9.72.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.
@@ -8507,11 +8507,15 @@ const moveIntoNewWindow = async state => {
8507
8507
  return state;
8508
8508
  }
8509
8509
  const tab = group.tabs.find(tab => tab.id === activeTabId);
8510
- if (!tab?.uri) {
8510
+ if (!tab || tab.terminal) {
8511
8511
  return state;
8512
8512
  }
8513
- await invoke$3('ElectronWindow.openNewWithUri', tab.uri);
8514
- return closeTabAndSave(state, group.id, activeTabId);
8513
+ const editorInput = tab.editorInput ?? normalizeTabEditorInput(tab).editorInput;
8514
+ if (!editorInput) {
8515
+ return state;
8516
+ }
8517
+ await invoke$3('ElectronWindow.openNewWithEditorInput', editorInput, tab.editorUid, tab.isDirty);
8518
+ return closeTabWithViewlet(state, group.id, activeTabId);
8515
8519
  };
8516
8520
 
8517
8521
  const newWindow = async state => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "9.71.3",
3
+ "version": "9.72.0",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",