@opensumi/ide-design 3.0.2-next-1715773842.0 → 3.0.2-next-1715852509.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/lib/browser/menu-bar/menu-bar.contribution.d.ts.map +1 -1
- package/lib/browser/menu-bar/menu-bar.contribution.js +2 -5
- package/lib/browser/menu-bar/menu-bar.contribution.js.map +1 -1
- package/lib/browser/style/global.less +1 -1
- package/package.json +6 -6
- package/src/browser/menu-bar/menu-bar.contribution.tsx +3 -7
- package/src/browser/style/global.less +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar.contribution.d.ts","sourceRoot":"","sources":["../../../src/browser/menu-bar/menu-bar.contribution.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"menu-bar.contribution.d.ts","sourceRoot":"","sources":["../../../src/browser/menu-bar/menu-bar.contribution.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,UAAU,EAAU,MAAM,4BAA4B,CAAC;AAQ1G,qBACa,yBAA0B,SAAQ,UAAW,YAAW,qBAAqB;IAExF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAG5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgB;;IA4B7C,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;CAMrD"}
|
|
@@ -12,12 +12,9 @@ let DesignMenuBarContribution = class DesignMenuBarContribution extends ide_core
|
|
|
12
12
|
constructor() {
|
|
13
13
|
super();
|
|
14
14
|
this.menubarStore.unregisterMenusBarByCompact(next_1.MenuId.DesignMenuBarTopExtra);
|
|
15
|
-
let toDispose;
|
|
16
15
|
this.addDispose(this.menubarStore.onDidMenuBarChange((menubarItems) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
toDispose = this.menuRegistry.registerMenuItems(next_1.MenuId.DesignMenuBarTopExtra, menubarItems.map((item) => ({
|
|
16
|
+
this.menuRegistry.deleteAllItemsForMenuId(next_1.MenuId.DesignMenuBarTopExtra);
|
|
17
|
+
this.menuRegistry.registerMenuItems(next_1.MenuId.DesignMenuBarTopExtra, menubarItems.map((item) => ({
|
|
21
18
|
label: item.label,
|
|
22
19
|
submenu: item.id,
|
|
23
20
|
iconClass: item.iconClass,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar.contribution.js","sourceRoot":"","sources":["../../../src/browser/menu-bar/menu-bar.contribution.tsx"],"names":[],"mappings":";;;;AAAA,qCAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"menu-bar.contribution.js","sourceRoot":"","sources":["../../../src/browser/menu-bar/menu-bar.contribution.tsx"],"names":[],"mappings":";;;;AAAA,qCAAyC;AACzC,iEAA0G;AAC1G,mEAA6G;AAC7G,sFAAiF;AAEjF,yCAAgE;AAEhE,mDAAoD;AAG7C,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,6BAAU;IAOvD;QACE,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,YAAY,CAAC,2BAA2B,CAAC,aAAM,CAAC,qBAAqB,CAAC,CAAC;QAE5E,IAAI,CAAC,UAAU,CACb,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,YAA4B,EAAE,EAAE;YACpE,IAAI,CAAC,YAAY,CAAC,uBAAuB,CAAC,aAAM,CAAC,qBAAqB,CAAC,CAAC;YAExE,IAAI,CAAC,YAAY,CAAC,iBAAiB,CACjC,aAAM,CAAC,qBAAqB,EAC5B,YAAY,CAAC,GAAG,CACd,CAAC,IAAkB,EAAE,EAAE,CACrB,CAAC;gBACC,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,OAAO,EAAE,IAAI,CAAC,EAAE;gBAChB,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,cAAc;gBACnC,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,GAAG;aACR,CAAA,CACrB,CACF,CAAC;QACJ,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IAED,iBAAiB,CAAC,QAA2B;QAC3C,QAAQ,CAAC,QAAQ,CAAC,yCAAgC,EAAE;YAClD,SAAS,EAAE,iCAAiB;YAC5B,EAAE,EAAE,yCAAgC;SACrC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAtCC;IAAC,IAAA,cAAS,EAAC,6BAAY,CAAC;sCACO,6BAAY;+DAAC;AAE5C;IAAC,IAAA,cAAS,EAAC,oBAAa,CAAC;sCACM,oBAAa;+DAAC;AALlC,yBAAyB;IADrC,IAAA,yBAAM,EAAC,wCAAqB,CAAC;;GACjB,yBAAyB,CAuCrC;AAvCY,8DAAyB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-design",
|
|
3
|
-
"version": "3.0.2-next-
|
|
3
|
+
"version": "3.0.2-next-1715852509.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib",
|
|
6
6
|
"src"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "git@github.com:opensumi/core.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@opensumi/ide-core-common": "3.0.2-next-
|
|
23
|
-
"@opensumi/ide-core-node": "3.0.2-next-
|
|
22
|
+
"@opensumi/ide-core-common": "3.0.2-next-1715852509.0",
|
|
23
|
+
"@opensumi/ide-core-node": "3.0.2-next-1715852509.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@opensumi/ide-core-browser": "3.0.2-next-
|
|
27
|
-
"@opensumi/ide-dev-tool": "3.0.2-next-
|
|
26
|
+
"@opensumi/ide-core-browser": "3.0.2-next-1715852509.0",
|
|
27
|
+
"@opensumi/ide-dev-tool": "3.0.2-next-1715852509.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "b9909c18c2f917ee73f6e19fdc2f5f33dbc616c7"
|
|
30
30
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Autowired } from '@opensumi/di';
|
|
2
|
-
import { ComponentContribution, ComponentRegistry, Disposable, Domain
|
|
2
|
+
import { ComponentContribution, ComponentRegistry, Disposable, Domain } from '@opensumi/ide-core-browser';
|
|
3
3
|
import { IMenuRegistry, IMenubarItem, ISubmenuItem, MenuId } from '@opensumi/ide-core-browser/lib/menu/next';
|
|
4
4
|
import { MenubarStore } from '@opensumi/ide-menu-bar/lib/browser/menu-bar.store';
|
|
5
5
|
|
|
@@ -20,15 +20,11 @@ export class DesignMenuBarContribution extends Disposable implements ComponentCo
|
|
|
20
20
|
|
|
21
21
|
this.menubarStore.unregisterMenusBarByCompact(MenuId.DesignMenuBarTopExtra);
|
|
22
22
|
|
|
23
|
-
let toDispose: IDisposable | undefined;
|
|
24
|
-
|
|
25
23
|
this.addDispose(
|
|
26
24
|
this.menubarStore.onDidMenuBarChange((menubarItems: IMenubarItem[]) => {
|
|
27
|
-
|
|
28
|
-
toDispose.dispose();
|
|
29
|
-
}
|
|
25
|
+
this.menuRegistry.deleteAllItemsForMenuId(MenuId.DesignMenuBarTopExtra);
|
|
30
26
|
|
|
31
|
-
|
|
27
|
+
this.menuRegistry.registerMenuItems(
|
|
32
28
|
MenuId.DesignMenuBarTopExtra,
|
|
33
29
|
menubarItems.map(
|
|
34
30
|
(item: IMenubarItem) =>
|