@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.
Files changed (37) hide show
  1. package/dist/components/Alert/package-relation.d.ts +2 -2
  2. package/dist/components/Alert/package-relation.js +52 -56
  3. package/dist/components/Alerts/overlay.d.ts +1 -1
  4. package/dist/components/BundleDiff/DiffContainer/packages.d.ts +2 -2
  5. package/dist/components/BundleDiff/DiffContainer/row.d.ts +2 -2
  6. package/dist/components/BundleDiff/DiffContainer/types.d.ts +0 -1
  7. package/dist/components/BundleDiff/DiffServerAPIProvider/index.d.ts +0 -1
  8. package/dist/components/Charts/TimelineCharts/index.js +16 -2
  9. package/dist/components/CodeViewer/hightlight.js +24 -8
  10. package/dist/components/CodeViewer/viewer.d.ts +1 -0
  11. package/dist/components/CodeViewer/viewer.js +11 -3
  12. package/dist/components/Layout/menus.d.ts +1 -1
  13. package/dist/components/Loader/Analysis/files.js +76 -19
  14. package/dist/components/Loader/Analysis/index.js +16 -2
  15. package/dist/components/Loader/executions.d.ts +1 -1
  16. package/dist/components/Loader/executions.js +261 -116
  17. package/dist/components/Manifest/api.js +25 -11
  18. package/dist/config.d.ts +0 -1
  19. package/dist/pages/BundleSize/components/asset.js +11 -3
  20. package/dist/pages/BundleSize/components/index.js +2 -1
  21. package/dist/pages/BundleSize/config.d.ts +0 -1
  22. package/dist/pages/TreeShaking/editor.js +8 -5
  23. package/dist/pages/TreeShaking/index.js +1 -0
  24. package/dist/pages/TreeShaking/range.d.ts +282 -0
  25. package/dist/pages/TreeShaking/range.js +542 -0
  26. package/dist/pages/TreeShaking/utils.d.ts +1 -1
  27. package/dist/pages/TreeShaking/utils.js +1 -1
  28. package/dist/pages/WebpackLoaders/Analysis/index.js +1 -1
  29. package/dist/utils/data/brief.d.ts +11 -0
  30. package/dist/utils/data/brief.js +42 -0
  31. package/dist/utils/data/index.js +11 -0
  32. package/dist/utils/file.d.ts +0 -1
  33. package/dist/utils/hooks.d.ts +0 -1
  34. package/dist/utils/manifest.d.ts +2 -5
  35. package/dist/utils/monaco.js +6 -1
  36. package/dist/utils/request.d.ts +6 -6
  37. package/package.json +5 -5
@@ -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(line, column + 1, end?.line ?? line, (end?.column ?? 9999) + 1);
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) => {
@@ -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 | string[]> | undefined;
6
- __LOCAL__SERVER__?: boolean | undefined;
7
- __SOCKET__URL__?: string | undefined;
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 | string[]> | undefined;
18
- __LOCAL__SERVER__?: boolean | undefined;
19
- __SOCKET__URL__?: string | undefined;
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.11",
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": "4.8.3",
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.3.11",
79
- "@rsdoctor/types": "0.3.11",
80
- "@rsdoctor/utils": "0.3.11"
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",