@rsdoctor/components 0.3.11 → 0.4.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/dist/components/Alert/package-relation.d.ts +2 -2
- package/dist/components/Alert/package-relation.js +52 -56
- package/dist/components/Alerts/overlay.d.ts +1 -1
- package/dist/components/BundleDiff/DiffContainer/packages.d.ts +2 -2
- package/dist/components/BundleDiff/DiffContainer/row.d.ts +2 -2
- package/dist/components/BundleDiff/DiffContainer/types.d.ts +0 -1
- package/dist/components/BundleDiff/DiffServerAPIProvider/index.d.ts +0 -1
- package/dist/components/Charts/TimelineCharts/index.js +16 -2
- package/dist/components/CodeViewer/hightlight.js +24 -8
- package/dist/components/CodeViewer/viewer.d.ts +1 -0
- package/dist/components/CodeViewer/viewer.js +11 -3
- package/dist/components/Layout/menus.d.ts +1 -1
- package/dist/components/Loader/Analysis/files.js +76 -19
- package/dist/components/Loader/Analysis/index.js +16 -2
- package/dist/components/Loader/executions.d.ts +1 -1
- package/dist/components/Loader/executions.js +261 -116
- package/dist/components/Manifest/api.js +25 -11
- package/dist/config.d.ts +0 -1
- package/dist/pages/BundleSize/components/asset.js +11 -3
- package/dist/pages/BundleSize/components/index.js +2 -1
- package/dist/pages/BundleSize/config.d.ts +0 -1
- package/dist/pages/TreeShaking/editor.js +8 -5
- package/dist/pages/TreeShaking/index.js +1 -0
- package/dist/pages/TreeShaking/range.d.ts +282 -0
- package/dist/pages/TreeShaking/range.js +542 -0
- package/dist/pages/TreeShaking/utils.d.ts +1 -1
- package/dist/pages/TreeShaking/utils.js +1 -1
- package/dist/pages/WebpackLoaders/Analysis/index.js +1 -1
- package/dist/utils/data/brief.d.ts +11 -0
- package/dist/utils/data/brief.js +42 -0
- package/dist/utils/data/index.js +11 -0
- package/dist/utils/file.d.ts +0 -1
- package/dist/utils/hooks.d.ts +0 -1
- package/dist/utils/manifest.d.ts +2 -5
- package/dist/utils/monaco.js +6 -1
- package/dist/utils/request.d.ts +6 -6
- package/package.json +5 -5
package/dist/utils/monaco.js
CHANGED
|
@@ -39,7 +39,12 @@ function getRevealPositionForViewer(startLineNumber, startColumn) {
|
|
|
39
39
|
function getSelectionRange(source, Range) {
|
|
40
40
|
const { start, end } = source;
|
|
41
41
|
const { line = 1, column = 0 } = start;
|
|
42
|
-
return new Range(
|
|
42
|
+
return new Range(
|
|
43
|
+
line,
|
|
44
|
+
column + 1,
|
|
45
|
+
end?.line ?? line,
|
|
46
|
+
(end?.column ?? 9999) + 1
|
|
47
|
+
);
|
|
43
48
|
}
|
|
44
49
|
const initMonaco = (monacoRef) => {
|
|
45
50
|
return new Promise((resolve, reject) => {
|
package/dist/utils/request.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { Manifest, SDK } from '@rsdoctor/types';
|
|
|
2
2
|
export declare function fetchShardingFile(url: string): Promise<string>;
|
|
3
3
|
export declare function loadManifestByUrl(url: string): Promise<{
|
|
4
4
|
data: Manifest.RsdoctorManifestData;
|
|
5
|
-
cloudData?: Record<keyof Manifest.RsdoctorManifestData, string
|
|
6
|
-
__LOCAL__SERVER__?: boolean
|
|
7
|
-
__SOCKET__URL__?: string
|
|
5
|
+
cloudData?: Record<keyof Manifest.RsdoctorManifestData, string[] | string>;
|
|
6
|
+
__LOCAL__SERVER__?: boolean;
|
|
7
|
+
__SOCKET__URL__?: string;
|
|
8
8
|
client: Manifest.RsdoctorManifestClient;
|
|
9
9
|
cloudManifestUrl?: string | undefined;
|
|
10
10
|
name?: string | undefined;
|
|
@@ -14,9 +14,9 @@ export declare function fetchJSONByUrl(url: string): Promise<Manifest.RsdoctorMa
|
|
|
14
14
|
export declare function fetchJSONByUrls(urls: string[]): Promise<Manifest.RsdoctorManifestWithShardingFiles[]>;
|
|
15
15
|
export declare function parseManifest(json: Manifest.RsdoctorManifestWithShardingFiles): Promise<{
|
|
16
16
|
data: Manifest.RsdoctorManifestData;
|
|
17
|
-
cloudData?: Record<keyof Manifest.RsdoctorManifestData, string
|
|
18
|
-
__LOCAL__SERVER__?: boolean
|
|
19
|
-
__SOCKET__URL__?: string
|
|
17
|
+
cloudData?: Record<keyof Manifest.RsdoctorManifestData, string[] | string>;
|
|
18
|
+
__LOCAL__SERVER__?: boolean;
|
|
19
|
+
__SOCKET__URL__?: string;
|
|
20
20
|
client: Manifest.RsdoctorManifestClient;
|
|
21
21
|
cloudManifestUrl?: string | undefined;
|
|
22
22
|
name?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dist/"
|
|
45
45
|
],
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@ant-design/icons": "
|
|
47
|
+
"@ant-design/icons": "5.3.5",
|
|
48
48
|
"@monaco-editor/react": "4.6.0",
|
|
49
49
|
"@types/lodash-es": "4.17.12",
|
|
50
50
|
"@types/node": "^16",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"terser": "^5.31.3",
|
|
76
76
|
"typescript": "^5.2.2",
|
|
77
77
|
"url-parse": "1.5.10",
|
|
78
|
-
"@rsdoctor/graph": "0.
|
|
79
|
-
"@rsdoctor/types": "0.
|
|
80
|
-
"@rsdoctor/utils": "0.
|
|
78
|
+
"@rsdoctor/graph": "0.4.0",
|
|
79
|
+
"@rsdoctor/types": "0.4.0",
|
|
80
|
+
"@rsdoctor/utils": "0.4.0"
|
|
81
81
|
},
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public",
|