@opensumi/ide-core-browser 2.23.3 → 2.23.4-rc-1681355069.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/bootstrap/app.d.ts.map +1 -1
- package/lib/bootstrap/app.js +6 -8
- package/lib/bootstrap/app.js.map +1 -1
- package/lib/bootstrap/inner-providers.js +4 -4
- package/lib/bootstrap/inner-providers.js.map +1 -1
- package/lib/components/layout/default-layout.d.ts.map +1 -1
- package/lib/components/layout/default-layout.js +2 -2
- package/lib/components/layout/default-layout.js.map +1 -1
- package/lib/components/layout/layout.d.ts +4 -4
- package/lib/components/layout/split-panel.d.ts.map +1 -1
- package/lib/components/layout/split-panel.js +1 -1
- package/lib/components/layout/split-panel.js.map +1 -1
- package/lib/components/resize/resize.d.ts.map +1 -1
- package/lib/components/resize/resize.js +50 -27
- package/lib/components/resize/resize.js.map +1 -1
- package/lib/react-providers/slot.d.ts +0 -3
- package/lib/react-providers/slot.d.ts.map +1 -1
- package/lib/react-providers/slot.js +3 -3
- package/lib/react-providers/slot.js.map +1 -1
- package/lib/utils/electron.d.ts +1 -1
- package/lib/utils/electron.d.ts.map +1 -1
- package/lib/utils/electron.js +26 -1
- package/lib/utils/electron.js.map +1 -1
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js +0 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/label.d.ts +1 -1
- package/lib/utils/label.d.ts.map +1 -1
- package/lib/utils/label.js +11 -4
- package/lib/utils/label.js.map +1 -1
- package/package.json +5 -5
- package/src/bootstrap/app.ts +2 -3
- package/src/bootstrap/inner-providers.ts +4 -4
- package/src/components/layout/default-layout.tsx +4 -2
- package/src/components/layout/split-panel.tsx +4 -2
- package/src/components/resize/resize.tsx +50 -26
- package/src/react-providers/slot.tsx +9 -8
- package/src/utils/electron.ts +35 -2
- package/src/utils/index.ts +0 -1
- package/src/utils/label.tsx +17 -4
- package/lib/utils/parse.d.ts +0 -26
- package/lib/utils/parse.d.ts.map +0 -1
- package/lib/utils/parse.js +0 -81
- package/lib/utils/parse.js.map +0 -1
- package/src/utils/parse.ts +0 -82
package/lib/utils/parse.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** ******************************************************************************
|
|
2
|
-
* Copyright (C) 2018 Red Hat, Inc. and others.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
export interface LabelIcon {
|
|
17
|
-
name: string;
|
|
18
|
-
owner?: string;
|
|
19
|
-
animation?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare namespace LabelIcon {
|
|
22
|
-
function is(val: object): val is LabelIcon;
|
|
23
|
-
}
|
|
24
|
-
export type LabelPart = string | LabelIcon;
|
|
25
|
-
export declare function parseLabel(text: string): LabelPart[];
|
|
26
|
-
//# sourceMappingURL=parse.d.ts.map
|
package/lib/utils/parse.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/utils/parse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,SAAS,CAAC;IACzB,SAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,SAAS,CAEhD;CACF;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3C,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,CAkDpD"}
|
package/lib/utils/parse.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** ******************************************************************************
|
|
3
|
-
* Copyright (C) 2018 Red Hat, Inc. and others.
|
|
4
|
-
*
|
|
5
|
-
* This program and the accompanying materials are made available under the
|
|
6
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
*
|
|
9
|
-
* This Source Code may also be made available under the following Secondary
|
|
10
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
* with the GNU Classpath Exception which is available at
|
|
13
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
*
|
|
15
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
-
********************************************************************************/
|
|
17
|
-
// Some code copied and modified from https://github.com/eclipse-theia/theia/tree/v1.14.0/packages/core/src/browser/label-parser.ts
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.parseLabel = exports.LabelIcon = void 0;
|
|
20
|
-
var LabelIcon;
|
|
21
|
-
(function (LabelIcon) {
|
|
22
|
-
function is(val) {
|
|
23
|
-
return 'name' in val;
|
|
24
|
-
}
|
|
25
|
-
LabelIcon.is = is;
|
|
26
|
-
})(LabelIcon = exports.LabelIcon || (exports.LabelIcon = {}));
|
|
27
|
-
function parseLabel(text) {
|
|
28
|
-
const parserArray = [];
|
|
29
|
-
let arrPointer = 0;
|
|
30
|
-
let potentialIcon = '';
|
|
31
|
-
for (let idx = 0; idx < text.length; idx++) {
|
|
32
|
-
const char = text.charAt(idx);
|
|
33
|
-
parserArray[arrPointer] = parserArray[arrPointer] || '';
|
|
34
|
-
if (potentialIcon === '') {
|
|
35
|
-
if (char === '$') {
|
|
36
|
-
potentialIcon += char;
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
parserArray[arrPointer] += char;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
else if (potentialIcon === '$') {
|
|
43
|
-
if (char === '(') {
|
|
44
|
-
potentialIcon += char;
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
parserArray[arrPointer] += potentialIcon + char;
|
|
48
|
-
potentialIcon = '';
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
if (char === ')') {
|
|
53
|
-
const iconClassArr = potentialIcon.substring(2, potentialIcon.length).split('~');
|
|
54
|
-
let name = iconClassArr[0];
|
|
55
|
-
let owner;
|
|
56
|
-
if (name) {
|
|
57
|
-
const index = name.indexOf('/');
|
|
58
|
-
if (index !== -1) {
|
|
59
|
-
owner = name.substring(0, index);
|
|
60
|
-
name = name.substring(index + 1);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
if (parserArray[arrPointer] !== '') {
|
|
64
|
-
arrPointer++;
|
|
65
|
-
}
|
|
66
|
-
parserArray[arrPointer] = { name, owner, animation: iconClassArr[1] };
|
|
67
|
-
arrPointer++;
|
|
68
|
-
potentialIcon = '';
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
potentialIcon += char;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
if (potentialIcon !== '') {
|
|
76
|
-
parserArray[arrPointer] += potentialIcon;
|
|
77
|
-
}
|
|
78
|
-
return parserArray;
|
|
79
|
-
}
|
|
80
|
-
exports.parseLabel = parseLabel;
|
|
81
|
-
//# sourceMappingURL=parse.js.map
|
package/lib/utils/parse.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../src/utils/parse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mIAAmI;;;AAQnI,IAAiB,SAAS,CAIzB;AAJD,WAAiB,SAAS;IACxB,SAAgB,EAAE,CAAC,GAAW;QAC5B,OAAO,MAAM,IAAI,GAAG,CAAC;IACvB,CAAC;IAFe,YAAE,KAEjB,CAAA;AACH,CAAC,EAJgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIzB;AAID,SAAgB,UAAU,CAAC,IAAY;IACrC,MAAM,WAAW,GAAgB,EAAE,CAAC;IACpC,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,aAAa,GAAG,EAAE,CAAC;IAEvB,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;QAC1C,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC9B,WAAW,CAAC,UAAU,CAAC,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACxD,IAAI,aAAa,KAAK,EAAE,EAAE;YACxB,IAAI,IAAI,KAAK,GAAG,EAAE;gBAChB,aAAa,IAAI,IAAI,CAAC;aACvB;iBAAM;gBACL,WAAW,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC;aACjC;SACF;aAAM,IAAI,aAAa,KAAK,GAAG,EAAE;YAChC,IAAI,IAAI,KAAK,GAAG,EAAE;gBAChB,aAAa,IAAI,IAAI,CAAC;aACvB;iBAAM;gBACL,WAAW,CAAC,UAAU,CAAC,IAAI,aAAa,GAAG,IAAI,CAAC;gBAChD,aAAa,GAAG,EAAE,CAAC;aACpB;SACF;aAAM;YACL,IAAI,IAAI,KAAK,GAAG,EAAE;gBAChB,MAAM,YAAY,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACjF,IAAI,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;gBAC3B,IAAI,KAAyB,CAAC;gBAC9B,IAAI,IAAI,EAAE;oBACR,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;oBAChC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;wBAChB,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;wBACjC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;qBAClC;iBACF;gBACD,IAAI,WAAW,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE;oBAClC,UAAU,EAAE,CAAC;iBACd;gBACD,WAAW,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;gBACtE,UAAU,EAAE,CAAC;gBACb,aAAa,GAAG,EAAE,CAAC;aACpB;iBAAM;gBACL,aAAa,IAAI,IAAI,CAAC;aACvB;SACF;KACF;IAED,IAAI,aAAa,KAAK,EAAE,EAAE;QACxB,WAAW,CAAC,UAAU,CAAC,IAAI,aAAa,CAAC;KAC1C;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAlDD,gCAkDC"}
|
package/src/utils/parse.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/** ******************************************************************************
|
|
2
|
-
* Copyright (C) 2018 Red Hat, Inc. and others.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
// Some code copied and modified from https://github.com/eclipse-theia/theia/tree/v1.14.0/packages/core/src/browser/label-parser.ts
|
|
17
|
-
|
|
18
|
-
export interface LabelIcon {
|
|
19
|
-
name: string;
|
|
20
|
-
owner?: string;
|
|
21
|
-
animation?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export namespace LabelIcon {
|
|
25
|
-
export function is(val: object): val is LabelIcon {
|
|
26
|
-
return 'name' in val;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type LabelPart = string | LabelIcon;
|
|
31
|
-
|
|
32
|
-
export function parseLabel(text: string): LabelPart[] {
|
|
33
|
-
const parserArray: LabelPart[] = [];
|
|
34
|
-
let arrPointer = 0;
|
|
35
|
-
let potentialIcon = '';
|
|
36
|
-
|
|
37
|
-
for (let idx = 0; idx < text.length; idx++) {
|
|
38
|
-
const char = text.charAt(idx);
|
|
39
|
-
parserArray[arrPointer] = parserArray[arrPointer] || '';
|
|
40
|
-
if (potentialIcon === '') {
|
|
41
|
-
if (char === '$') {
|
|
42
|
-
potentialIcon += char;
|
|
43
|
-
} else {
|
|
44
|
-
parserArray[arrPointer] += char;
|
|
45
|
-
}
|
|
46
|
-
} else if (potentialIcon === '$') {
|
|
47
|
-
if (char === '(') {
|
|
48
|
-
potentialIcon += char;
|
|
49
|
-
} else {
|
|
50
|
-
parserArray[arrPointer] += potentialIcon + char;
|
|
51
|
-
potentialIcon = '';
|
|
52
|
-
}
|
|
53
|
-
} else {
|
|
54
|
-
if (char === ')') {
|
|
55
|
-
const iconClassArr = potentialIcon.substring(2, potentialIcon.length).split('~');
|
|
56
|
-
let name = iconClassArr[0];
|
|
57
|
-
let owner: string | undefined;
|
|
58
|
-
if (name) {
|
|
59
|
-
const index = name.indexOf('/');
|
|
60
|
-
if (index !== -1) {
|
|
61
|
-
owner = name.substring(0, index);
|
|
62
|
-
name = name.substring(index + 1);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
if (parserArray[arrPointer] !== '') {
|
|
66
|
-
arrPointer++;
|
|
67
|
-
}
|
|
68
|
-
parserArray[arrPointer] = { name, owner, animation: iconClassArr[1] };
|
|
69
|
-
arrPointer++;
|
|
70
|
-
potentialIcon = '';
|
|
71
|
-
} else {
|
|
72
|
-
potentialIcon += char;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (potentialIcon !== '') {
|
|
78
|
-
parserArray[arrPointer] += potentialIcon;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return parserArray;
|
|
82
|
-
}
|