@lvce-editor/title-bar-worker 2.21.0 → 2.22.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.
@@ -3250,8 +3250,7 @@ const getItemVirtualDom = item => {
3250
3250
  isFocused
3251
3251
  } = item;
3252
3252
  // TODO avoid mutation
3253
- const dom = [];
3254
- dom.push({
3253
+ const dom = [{
3255
3254
  type: Button$1,
3256
3255
  className: TitleBarTopLevelEntry,
3257
3256
  ariaHasPopup: true,
@@ -3260,7 +3259,7 @@ const getItemVirtualDom = item => {
3260
3259
  childCount: 1,
3261
3260
  ariaKeyShortcuts: keyboardShortCut,
3262
3261
  name: label // TODO have separate name attribute
3263
- });
3262
+ }];
3264
3263
  if (isOpen) {
3265
3264
  // @ts-ignore
3266
3265
  dom[0].ariaOwns = 'Menu-0';
@@ -3359,15 +3358,14 @@ const getTitleBarVirtualDom = state => {
3359
3358
  title,
3360
3359
  titleBarButtons
3361
3360
  } = state;
3362
- const dom = [];
3363
- dom.push({
3361
+ const dom = [{
3364
3362
  type: Div,
3365
3363
  className: 'Viewlet TitleBar',
3366
3364
  id: 'TitleBar',
3367
3365
  role: 'contentinfo',
3368
3366
  ariaLabel: 'Title Bar',
3369
3367
  childCount: 4
3370
- });
3368
+ }];
3371
3369
 
3372
3370
  // Add icon if enabled
3373
3371
  if (state.titleBarIconEnabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/title-bar-worker",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "description": "Title Bar Worker",
5
5
  "repository": {
6
6
  "type": "git",