@lvce-editor/title-bar-worker 4.6.0 → 4.7.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.
@@ -1605,6 +1605,7 @@ const SourceControl = 'Source Control';
1605
1605
  const Terminal$1 = 'Terminal';
1606
1606
  const ToggleDeveloperTools = 'Toggle Developer Tools';
1607
1607
  const View$1 = 'View';
1608
+ const ViewLicense = 'View License';
1608
1609
  const WordWrap = 'Word Wrap';
1609
1610
  const Extensions = 'Extensions';
1610
1611
  const AddCursorAbove = 'Add Cursor Above';
@@ -1937,7 +1938,7 @@ const getMenuEntries$e = () => {
1937
1938
  id: 'fullScreen',
1938
1939
  keyboardShortCut: 'F11',
1939
1940
  label: fullScreen()
1940
- }, entry('zenMode', 'Zen Mode', 'Ctrl+K Z'), entry('centeredLayout', 'Centered Layout'), menuEntrySeparator, checkedEntry('menuBar', 'Menu Bar'), commandEntry('primarySideBar', 'Primary Side Bar', 'Layout.toggleSideBar', 'Ctrl+B'), commandEntry('secondarySideBar', 'Secondary Side Bar', 'Layout.toggleSecondarySideBar', 'Ctrl+Alt+B'), commandEntry('statusBar', 'Status Bar', 'Layout.toggleStatusBar', '', Checked), commandEntry('panel', 'Panel', 'Layout.togglePanel', 'Ctrl+J', Checked), menuEntrySeparator, entry('movePrimarySideBarLeft', 'Move Primary Side Bar Left'), entry('activityBarPosition', 'Activity Bar Position'), entry('panelPosition', 'Panel Position'), entry('alignPanel', 'Align Panel'), entry('tabBar', 'Tab Bar'), entry('editorActionsPosition', 'Editor Actions Position'), menuEntrySeparator, entry('minimap', 'Minimap'), entry('breadcrumbs', 'Breadcrumbs'), entry('stickyScroll', 'Sticky Scroll'), entry('renderWhitespace', 'Render Whitespace'), checkedEntry('renderControlCharacters', 'Render Control Characters'), menuEntrySeparator, entry('zoomIn', 'Zoom In', 'Ctrl+='), entry('zoomOut', 'Zoom Out', 'Ctrl+-'), entry('resetZoom', 'Reset Zoom', 'Ctrl+NumPad0')];
1941
+ }, entry('zenMode', 'Zen Mode', 'Ctrl+K Z'), entry('centeredLayout', 'Centered Layout'), menuEntrySeparator, checkedEntry('menuBar', 'Menu Bar'), commandEntry('primarySideBar', 'Primary Side Bar', 'Layout.toggleSideBar', 'Ctrl+B'), commandEntry('secondarySideBar', 'Secondary Side Bar', 'Layout.toggleSecondarySideBar', 'Ctrl+Alt+B'), commandEntry('statusBar', 'Status Bar', 'Layout.toggleStatusBar', '', Checked), commandEntry('panel', 'Panel', 'Layout.togglePanel', 'Ctrl+J', Checked), menuEntrySeparator, entry('movePrimarySideBarLeft', 'Move Primary Side Bar Left'), entry('activityBarPosition', 'Activity Bar Position'), entry('panelPosition', 'Panel Position'), entry('alignPanel', 'Align Panel'), entry('tabBar', 'Tab Bar'), entry('editorActionsPosition', 'Editor Actions Position'), menuEntrySeparator, entry('minimap', 'Minimap'), entry('breadcrumbs', 'Breadcrumbs'), entry('stickyScroll', 'Sticky Scroll'), entry('renderWhitespace', 'Render Whitespace'), checkedEntry('renderControlCharacters', 'Render Control Characters'), menuEntrySeparator, commandEntry('zoomIn', 'Zoom In', 'Window.zoomIn', 'Ctrl+='), commandEntry('zoomOut', 'Zoom Out', 'Window.zoomOut', 'Ctrl+-'), commandEntry('resetZoom', 'Reset Zoom', 'Window.zoomReset', 'Ctrl+NumPad0')];
1941
1942
  };
1942
1943
 
1943
1944
  const cut = () => {
@@ -2293,6 +2294,9 @@ const toggleDeveloperTools = () => {
2293
2294
  const openProcessExplorer = () => {
2294
2295
  return i18nString(OpenProcessExplorer);
2295
2296
  };
2297
+ const viewLicense = () => {
2298
+ return i18nString(ViewLicense);
2299
+ };
2296
2300
  const about = () => {
2297
2301
  return i18nString(About);
2298
2302
  };
@@ -2320,6 +2324,12 @@ const getMenuEntries$9 = async platform => {
2320
2324
  if (entries.length > 0) {
2321
2325
  entries.push(menuEntrySeparator);
2322
2326
  }
2327
+ entries.push({
2328
+ command: 'License.openLicense',
2329
+ flags: None,
2330
+ id: 'viewLicense',
2331
+ label: viewLicense()
2332
+ });
2323
2333
  entries.push({
2324
2334
  command: 'About.showAbout',
2325
2335
  flags: None,
@@ -3574,23 +3584,25 @@ const TitleBarTopLevelEntry = 'TitleBarTopLevelEntry';
3574
3584
  const TitleBarTopLevelEntryLabel = 'TitleBarTopLevelEntryLabel';
3575
3585
  const Viewlet = 'Viewlet';
3576
3586
 
3577
- const checkboxChecked = {
3578
- ariaChecked: true,
3579
- childCount: 2,
3580
- className: mergeClassNames(MenuItem, MenuItemCheckMark),
3581
- role: MenuItemCheckBox,
3582
- tabIndex: -1,
3583
- type: Div
3584
- };
3585
3587
  const checkMark = {
3586
3588
  className: mergeClassNames(MenuItemCheckmarkIcon, MaskIconCheck),
3587
3589
  type: Div
3588
3590
  };
3589
3591
  const getMenuItemCheckedDom = menuItem => {
3590
3592
  const {
3593
+ isFocused,
3591
3594
  label
3592
3595
  } = menuItem;
3593
- return [checkboxChecked, checkMark, text(label)];
3596
+ const baseClassName = mergeClassNames(MenuItem, MenuItemCheckMark);
3597
+ const className = isFocused ? mergeClassNames(baseClassName, MenuItemFocused) : baseClassName;
3598
+ return [{
3599
+ ariaChecked: true,
3600
+ childCount: 2,
3601
+ className,
3602
+ role: MenuItemCheckBox,
3603
+ tabIndex: -1,
3604
+ type: Div
3605
+ }, checkMark, text(label)];
3594
3606
  };
3595
3607
 
3596
3608
  const getKeyBindingString = (key, altKey, ctrlKey, shiftKey, metaKey) => {
@@ -3700,19 +3712,20 @@ const getMenuItemSubMenuDom = menuItem => {
3700
3712
  }, text(label), arrowRight];
3701
3713
  };
3702
3714
 
3703
- const checkboxUnchecked = {
3704
- ariaChecked: false,
3705
- childCount: 1,
3706
- className: MenuItem,
3707
- role: MenuItemCheckBox,
3708
- tabIndex: -1,
3709
- type: Div
3710
- };
3711
3715
  const getMenuItemUncheckedDom = menuItem => {
3712
3716
  const {
3717
+ isFocused,
3713
3718
  label
3714
3719
  } = menuItem;
3715
- return [checkboxUnchecked, text(label)];
3720
+ const className = isFocused ? mergeClassNames(MenuItem, MenuItemFocused) : MenuItem;
3721
+ return [{
3722
+ ariaChecked: false,
3723
+ childCount: 1,
3724
+ className,
3725
+ role: MenuItemCheckBox,
3726
+ tabIndex: -1,
3727
+ type: Div
3728
+ }, text(label)];
3716
3729
  };
3717
3730
 
3718
3731
  const getMenuItemRenderer = flags => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/title-bar-worker",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "description": "Title Bar Worker",
5
5
  "repository": {
6
6
  "type": "git",