@lvce-editor/activity-bar-worker 5.3.0 → 5.5.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.
|
@@ -1455,9 +1455,12 @@ const getKeyBindings = () => {
|
|
|
1455
1455
|
};
|
|
1456
1456
|
|
|
1457
1457
|
const getMenuEntriesAccount = state => {
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
|
|
1458
|
+
const {
|
|
1459
|
+
userLoginState
|
|
1460
|
+
} = state;
|
|
1461
|
+
const signInLabel = userLoginState === 'logging in' ? 'Signing In...' : 'Sign In';
|
|
1462
|
+
const signOutLabel = userLoginState === 'logging out' ? 'Signing Out...' : 'Sign Out';
|
|
1463
|
+
if (userLoginState === 'logged in' || userLoginState === 'logging out') {
|
|
1461
1464
|
return [{
|
|
1462
1465
|
command: 'ActivityBar.handleClickSignOut',
|
|
1463
1466
|
flags: None,
|
|
@@ -1774,7 +1777,7 @@ const getItemCount = items => {
|
|
|
1774
1777
|
}
|
|
1775
1778
|
return items.length;
|
|
1776
1779
|
};
|
|
1777
|
-
const getIndexFromPosition = (y,
|
|
1780
|
+
const getIndexFromPosition = (y, _eventX, eventY, itemHeight, items, height) => {
|
|
1778
1781
|
const itemCount = getItemCount(items);
|
|
1779
1782
|
if (itemCount === 0) {
|
|
1780
1783
|
return -1;
|
|
@@ -2504,7 +2507,6 @@ const diffChildren = (oldChildren, newChildren, patches) => {
|
|
|
2504
2507
|
patches.push({
|
|
2505
2508
|
type: NavigateParent
|
|
2506
2509
|
});
|
|
2507
|
-
currentChildIndex = -1;
|
|
2508
2510
|
}
|
|
2509
2511
|
// Add remove patches in reverse order (highest index first)
|
|
2510
2512
|
// This ensures indices remain valid as we remove
|
|
@@ -2934,6 +2936,8 @@ const commandMap = {
|
|
|
2934
2936
|
'ActivityBar.handleBadgeCountChange': wrapCommand(handleBadgeCountChange),
|
|
2935
2937
|
'ActivityBar.handleBlur': wrapCommand(handleBlur),
|
|
2936
2938
|
'ActivityBar.handleClick': wrapCommand(handleClick),
|
|
2939
|
+
'ActivityBar.handleClickAccount': wrapCommand(handleClickAccount),
|
|
2940
|
+
'ActivityBar.handleClickAdditionalViews': wrapCommand(handleClickAdditionalViews),
|
|
2937
2941
|
'ActivityBar.handleClickIndex': wrapCommand(handleClickIndex),
|
|
2938
2942
|
'ActivityBar.handleClickSettings': wrapCommand(handleClickSettings),
|
|
2939
2943
|
'ActivityBar.handleClickSignIn': wrapCommand(handleClickSignIn),
|