@lvce-editor/main-area-worker 8.0.0 → 8.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.
- package/dist/mainAreaWorkerMain.js +20 -17
- package/package.json +2 -2
|
@@ -2216,11 +2216,9 @@ const focusNextTab = async state => {
|
|
|
2216
2216
|
return state;
|
|
2217
2217
|
}
|
|
2218
2218
|
|
|
2219
|
-
// If not at the last tab, select the next tab
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
}
|
|
2223
|
-
return state;
|
|
2219
|
+
// If not at the last tab, select the next tab, otherwise cycle to first
|
|
2220
|
+
const nextTabIndex = activeTabIndex < activeGroup.tabs.length - 1 ? activeTabIndex + 1 : 0;
|
|
2221
|
+
return selectTab(state, activeGroupIndex, nextTabIndex);
|
|
2224
2222
|
};
|
|
2225
2223
|
|
|
2226
2224
|
const focusPreviousTab = async state => {
|
|
@@ -2250,11 +2248,9 @@ const focusPreviousTab = async state => {
|
|
|
2250
2248
|
return state;
|
|
2251
2249
|
}
|
|
2252
2250
|
|
|
2253
|
-
// If not at the first tab, select the previous tab
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
}
|
|
2257
|
-
return state;
|
|
2251
|
+
// If not at the first tab, select the previous tab, otherwise cycle to last
|
|
2252
|
+
const previousTabIndex = activeTabIndex > 0 ? activeTabIndex - 1 : activeGroup.tabs.length - 1;
|
|
2253
|
+
return selectTab(state, activeGroupIndex, previousTabIndex);
|
|
2258
2254
|
};
|
|
2259
2255
|
|
|
2260
2256
|
const getMenuIds = () => {
|
|
@@ -2438,6 +2434,9 @@ const getLabel = uri => {
|
|
|
2438
2434
|
if (uri.startsWith('simple-browser://')) {
|
|
2439
2435
|
return 'Simple Browser';
|
|
2440
2436
|
}
|
|
2437
|
+
if (uri.startsWith('language-models://')) {
|
|
2438
|
+
return 'Language Models';
|
|
2439
|
+
}
|
|
2441
2440
|
return getBasename$1(uri);
|
|
2442
2441
|
};
|
|
2443
2442
|
|
|
@@ -2689,13 +2688,17 @@ const handleResize = async (state, dimensions) => {
|
|
|
2689
2688
|
for (const group of groups) {
|
|
2690
2689
|
for (const tab of group.tabs) {
|
|
2691
2690
|
if (tab.editorUid !== -1) {
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2691
|
+
try {
|
|
2692
|
+
const resizeCommands = await invoke('Viewlet.resize', tab.editorUid, {
|
|
2693
|
+
height: contentHeight,
|
|
2694
|
+
width,
|
|
2695
|
+
x,
|
|
2696
|
+
y: y + tabHeight
|
|
2697
|
+
});
|
|
2698
|
+
allResizeCommands.push(...resizeCommands);
|
|
2699
|
+
} catch {
|
|
2700
|
+
// ignore
|
|
2701
|
+
}
|
|
2699
2702
|
}
|
|
2700
2703
|
}
|
|
2701
2704
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/main-area-worker",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "Main Area Worker",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"main": "dist/mainAreaWorkerMain.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lvce-editor/virtual-dom-worker": "^
|
|
14
|
+
"@lvce-editor/virtual-dom-worker": "^7.1.0"
|
|
15
15
|
}
|
|
16
16
|
}
|