@opensumi/ide-components 3.1.1-next-1718286713.0 → 3.1.1
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/dist/238.index.js +7994 -0
- package/dist/index.css +1 -3880
- package/dist/index.js +62285 -4654
- package/lib/markdown/styles.less +0 -12
- package/lib/recycle-tree/tree/TreeNode.d.ts +9 -11
- package/lib/recycle-tree/tree/TreeNode.d.ts.map +1 -1
- package/lib/recycle-tree/tree/TreeNode.js +78 -63
- package/lib/recycle-tree/tree/TreeNode.js.map +1 -1
- package/lib/recycle-tree/tree/model/treeState/TreeStateManager.d.ts +2 -0
- package/lib/recycle-tree/tree/model/treeState/TreeStateManager.d.ts.map +1 -1
- package/lib/recycle-tree/tree/model/treeState/TreeStateManager.js +7 -3
- package/lib/recycle-tree/tree/model/treeState/TreeStateManager.js.map +1 -1
- package/lib/recycle-tree/types/watcher.d.ts +12 -12
- package/lib/recycle-tree/types/watcher.d.ts.map +1 -1
- package/lib/scrollbars/styles.less +0 -10
- package/package.json +4 -4
- package/dist/vendors-node_modules_jschardet_index_js.index.js +0 -441
- package/lib/recycle-tree/path.d.ts +0 -11
- package/lib/recycle-tree/path.d.ts.map +0 -1
- package/lib/recycle-tree/path.js +0 -28
- package/lib/recycle-tree/path.js.map +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare function parse(path: string): {
|
|
2
|
-
dirname: string;
|
|
3
|
-
basename: string;
|
|
4
|
-
};
|
|
5
|
-
declare function relative(parent: string, child: string): string | undefined;
|
|
6
|
-
export declare const treePath: {
|
|
7
|
-
parse: typeof parse;
|
|
8
|
-
relative: typeof relative;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=path.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/recycle-tree/path.ts"],"names":[],"mappings":"AAEA,iBAAS,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAIlE;AAED,iBAAS,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAcnE;AAED,eAAO,MAAM,QAAQ;;;CAGpB,CAAC"}
|
package/lib/recycle-tree/path.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.treePath = void 0;
|
|
4
|
-
const path_1 = require("@opensumi/ide-utils/lib/path");
|
|
5
|
-
function parse(path) {
|
|
6
|
-
const parts = path.split(path_1.Path.separator);
|
|
7
|
-
const basename = parts.pop() || '';
|
|
8
|
-
return { dirname: parts.join(path_1.Path.separator), basename };
|
|
9
|
-
}
|
|
10
|
-
function relative(parent, child) {
|
|
11
|
-
if (parent === child) {
|
|
12
|
-
return '';
|
|
13
|
-
}
|
|
14
|
-
if (!parent || !child) {
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
const raw = !parent.endsWith(path_1.Path.separator) ? parent + path_1.Path.separator : parent;
|
|
18
|
-
if (!child.startsWith(raw)) {
|
|
19
|
-
return undefined;
|
|
20
|
-
}
|
|
21
|
-
const relativePath = child.substring(raw.length);
|
|
22
|
-
return relativePath;
|
|
23
|
-
}
|
|
24
|
-
exports.treePath = {
|
|
25
|
-
parse,
|
|
26
|
-
relative,
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=path.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path.js","sourceRoot":"","sources":["../../src/recycle-tree/path.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,SAAS,KAAK,CAAC,IAAY;IACzB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,WAAI,CAAC,SAAS,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;IACnC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,WAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;AAC3D,CAAC;AAED,SAAS,QAAQ,CAAC,MAAc,EAAE,KAAa;IAC7C,IAAI,MAAM,KAAK,KAAK,EAAE;QACpB,OAAO,EAAE,CAAC;KACX;IACD,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE;QACrB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,WAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;IAChF,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;QAC1B,OAAO,SAAS,CAAC;KAClB;IACD,MAAM,YAAY,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACjD,OAAO,YAAY,CAAC;AACtB,CAAC;AAEY,QAAA,QAAQ,GAAG;IACtB,KAAK;IACL,QAAQ;CACT,CAAC"}
|