@opensumi/ide-design 3.0.2-next-1715667675.0 → 3.0.2-next-1715675099.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 +5 -2
- 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 +7 -3
- 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,EAAuB,MAAM,4BAA4B,CAAC;AAQvH,qBACa,yBAA0B,SAAQ,UAAW,YAAW,qBAAqB;IAExF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAG5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgB;;IAgC7C,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;CAMrD"}
|
|
@@ -12,9 +12,12 @@ 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;
|
|
15
16
|
this.addDispose(this.menubarStore.onDidMenuBarChange((menubarItems) => {
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
if (toDispose) {
|
|
18
|
+
toDispose.dispose();
|
|
19
|
+
}
|
|
20
|
+
toDispose = this.menuRegistry.registerMenuItems(next_1.MenuId.DesignMenuBarTopExtra, menubarItems.map((item) => ({
|
|
18
21
|
label: item.label,
|
|
19
22
|
submenu: item.id,
|
|
20
23
|
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,iEAAuH;AACvH,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,SAAkC,CAAC;QAEvC,IAAI,CAAC,UAAU,CACb,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,YAA4B,EAAE,EAAE;YACpE,IAAI,SAAS,EAAE;gBACb,SAAS,CAAC,OAAO,EAAE,CAAC;aACrB;YAED,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAC7C,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;AA1CC;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,CA2CrC;AA3CY,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-1715675099.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-1715675099.0",
|
|
23
|
+
"@opensumi/ide-core-node": "3.0.2-next-1715675099.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-1715675099.0",
|
|
27
|
+
"@opensumi/ide-dev-tool": "3.0.2-next-1715675099.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "4442d0015b915d3e23db491018db01ed2481040b"
|
|
30
30
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Autowired } from '@opensumi/di';
|
|
2
|
-
import { ComponentContribution, ComponentRegistry, Disposable, Domain } from '@opensumi/ide-core-browser';
|
|
2
|
+
import { ComponentContribution, ComponentRegistry, Disposable, Domain, IDisposable } 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,11 +20,15 @@ export class DesignMenuBarContribution extends Disposable implements ComponentCo
|
|
|
20
20
|
|
|
21
21
|
this.menubarStore.unregisterMenusBarByCompact(MenuId.DesignMenuBarTopExtra);
|
|
22
22
|
|
|
23
|
+
let toDispose: IDisposable | undefined;
|
|
24
|
+
|
|
23
25
|
this.addDispose(
|
|
24
26
|
this.menubarStore.onDidMenuBarChange((menubarItems: IMenubarItem[]) => {
|
|
25
|
-
|
|
27
|
+
if (toDispose) {
|
|
28
|
+
toDispose.dispose();
|
|
29
|
+
}
|
|
26
30
|
|
|
27
|
-
this.menuRegistry.registerMenuItems(
|
|
31
|
+
toDispose = this.menuRegistry.registerMenuItems(
|
|
28
32
|
MenuId.DesignMenuBarTopExtra,
|
|
29
33
|
menubarItems.map(
|
|
30
34
|
(item: IMenubarItem) =>
|