@module-federation/devtools 0.0.0-perf-devtools-20260106124142 → 0.0.0-perf-devtools-20260108034446
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/es/{index.css → App.css} +0 -3
- package/dist/es/App.js +2 -0
- package/dist/es/component/Layout/index.js +16 -0
- package/dist/es/component/SharedDepsExplorer/FocusResultDisplay.js +9 -15
- package/dist/es/component/SharedDepsExplorer/FocusResultDisplay.module.js +5 -0
- package/dist/es/component/SharedDepsExplorer/FocusResultDisplay_module.css +45 -0
- package/dist/es/component/SharedDepsExplorer/index.js +99 -98
- package/dist/es/component/SharedDepsExplorer/index.module.js +5 -0
- package/dist/es/component/SharedDepsExplorer/index_module.css +457 -0
- package/dist/es/utils/chrome/override-remote.js +42 -0
- package/dist/lib/{index.css → App.css} +0 -3
- package/dist/lib/App.js +30 -28
- package/dist/lib/component/Layout/index.js +16 -0
- package/dist/lib/component/SharedDepsExplorer/FocusResultDisplay.js +19 -15
- package/dist/lib/component/SharedDepsExplorer/FocusResultDisplay.module.js +25 -0
- package/dist/lib/component/SharedDepsExplorer/FocusResultDisplay_module.css +45 -0
- package/dist/lib/component/SharedDepsExplorer/index.js +99 -98
- package/dist/lib/component/SharedDepsExplorer/index.module.js +25 -0
- package/dist/lib/component/SharedDepsExplorer/index_module.css +457 -0
- package/dist/lib/utils/chrome/override-remote.js +65 -0
- package/dist/types/src/App.d.ts +2 -0
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/utils/chrome/override-remote.d.ts +1 -0
- package/package.json +3 -5
package/dist/es/App.js
CHANGED
|
@@ -20,6 +20,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20
20
|
};
|
|
21
21
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
22
|
import { useState, useEffect, useMemo, useCallback, useRef } from "react";
|
|
23
|
+
import "@arco-design/web-react/es/_util/react-19-adapter";
|
|
24
|
+
import "./App.css";
|
|
23
25
|
import { Empty, Tag, Button, Tooltip } from "@arco-design/web-react";
|
|
24
26
|
import "./init";
|
|
25
27
|
import ProxyLayout from "./component/Layout";
|
|
@@ -212,12 +212,23 @@ const Layout = (props) => {
|
|
|
212
212
|
} else {
|
|
213
213
|
setCondition(statusInfo.noProxy);
|
|
214
214
|
}
|
|
215
|
+
setCondition(statusInfo.noProxy);
|
|
215
216
|
return;
|
|
216
217
|
}
|
|
217
218
|
if (!clipChanged && effectiveSignature === lastEffectiveRulesRef.current) {
|
|
219
|
+
if (hadPreviousEffective) {
|
|
220
|
+
setCondition(statusInfo.success);
|
|
221
|
+
} else {
|
|
222
|
+
setCondition(statusInfo.noProxy);
|
|
223
|
+
}
|
|
218
224
|
return;
|
|
219
225
|
}
|
|
220
226
|
if (rawRules.every((rule) => !rule.value)) {
|
|
227
|
+
if (hadPreviousEffective) {
|
|
228
|
+
setCondition(statusInfo.success);
|
|
229
|
+
} else {
|
|
230
|
+
setCondition(statusInfo.noProxy);
|
|
231
|
+
}
|
|
221
232
|
return;
|
|
222
233
|
}
|
|
223
234
|
const { moduleInfo: moduleInfo2, status, overrides } = handleSnapshot ? yield handleSnapshot(effectiveRules) : yield getModuleInfo(effectiveRules);
|
|
@@ -318,6 +329,11 @@ const Layout = (props) => {
|
|
|
318
329
|
if (overridesApplied) {
|
|
319
330
|
setChromeStorage(storeData);
|
|
320
331
|
}
|
|
332
|
+
if (effectiveRules.length) {
|
|
333
|
+
setCondition(statusInfo.success);
|
|
334
|
+
} else {
|
|
335
|
+
setCondition(statusInfo.noProxy);
|
|
336
|
+
}
|
|
321
337
|
}
|
|
322
338
|
});
|
|
323
339
|
hydrateForm();
|
|
@@ -1,37 +1,31 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Tag } from "@arco-design/web-react";
|
|
3
|
+
import styles from "./FocusResultDisplay.module";
|
|
3
4
|
const FocusResultDisplay = ({
|
|
4
5
|
focusResult,
|
|
5
6
|
hasData,
|
|
6
7
|
loadedStatusLabel
|
|
7
8
|
}) => {
|
|
8
9
|
if (focusResult) {
|
|
9
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
10
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
11
|
-
/* @__PURE__ */ jsxs("span", { className:
|
|
10
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.container, children: [
|
|
11
|
+
/* @__PURE__ */ jsxs("div", { className: styles.header, children: [
|
|
12
|
+
/* @__PURE__ */ jsxs("span", { className: styles.packageInfo, children: [
|
|
12
13
|
focusResult.packageName,
|
|
13
14
|
"@",
|
|
14
15
|
focusResult.version
|
|
15
16
|
] }),
|
|
16
17
|
/* @__PURE__ */ jsx(Tag, { size: "small", className: "loaded-status-tag", children: loadedStatusLabel(focusResult.status) })
|
|
17
18
|
] }),
|
|
18
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
19
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
20
|
-
focusResult.providers.map((p) => /* @__PURE__ */ jsx(
|
|
21
|
-
"span",
|
|
22
|
-
{
|
|
23
|
-
className: "rounded bg-white px-1.5 py-0.5 font-medium text-zinc-800 shadow-sm",
|
|
24
|
-
children: p
|
|
25
|
-
},
|
|
26
|
-
p
|
|
27
|
-
))
|
|
19
|
+
/* @__PURE__ */ jsxs("div", { className: styles.providers, children: [
|
|
20
|
+
/* @__PURE__ */ jsx("span", { className: styles.label, children: "Provider: " }),
|
|
21
|
+
focusResult.providers.map((p) => /* @__PURE__ */ jsx("span", { className: styles.providerTag, children: p }, p))
|
|
28
22
|
] })
|
|
29
23
|
] });
|
|
30
24
|
}
|
|
31
25
|
if (hasData) {
|
|
32
|
-
return /* @__PURE__ */ jsx("p", { className:
|
|
26
|
+
return /* @__PURE__ */ jsx("p", { className: styles.emptyText, children: "No version matching the criteria was found in the current shared data. Please check if the package name / version is correct." });
|
|
33
27
|
}
|
|
34
|
-
return /* @__PURE__ */ jsx("p", { className:
|
|
28
|
+
return /* @__PURE__ */ jsx("p", { className: styles.emptyText, children: "No shared dependency data loaded yet." });
|
|
35
29
|
};
|
|
36
30
|
var FocusResultDisplay_default = FocusResultDisplay;
|
|
37
31
|
export {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "./FocusResultDisplay_module.css";
|
|
2
|
+
var FocusResultDisplay_module_default = { "container": "container_ee3c9", "header": "header_ee3c9", "packageInfo": "packageInfo_ee3c9", "providers": "providers_ee3c9", "label": "label_ee3c9", "providerTag": "providerTag_ee3c9", "emptyText": "emptyText_ee3c9" };
|
|
3
|
+
export {
|
|
4
|
+
FocusResultDisplay_module_default as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.container_ee3c9 {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.header_ee3c9 {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-wrap: wrap;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.packageInfo_ee3c9 {
|
|
15
|
+
font-family: monospace;
|
|
16
|
+
font-size: 11px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.providers_ee3c9 {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-wrap: wrap;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 4px;
|
|
24
|
+
font-size: 11px;
|
|
25
|
+
color: #374151; /* text-zinc-700 */
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.label_ee3c9 {
|
|
29
|
+
color: #71717a; /* text-zinc-500 */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.providerTag_ee3c9 {
|
|
33
|
+
border-radius: 4px;
|
|
34
|
+
background-color: white;
|
|
35
|
+
padding: 2px 6px;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
color: #27272a; /* text-zinc-800 */
|
|
38
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.emptyText_ee3c9 {
|
|
42
|
+
font-size: 11px;
|
|
43
|
+
color: #71717a; /* text-zinc-500 */
|
|
44
|
+
margin: 0;
|
|
45
|
+
}
|
|
@@ -47,6 +47,7 @@ import {
|
|
|
47
47
|
findPackageProvider
|
|
48
48
|
} from "./share-utils";
|
|
49
49
|
import FocusResultDisplay from "./FocusResultDisplay";
|
|
50
|
+
import styles from "./index.module";
|
|
50
51
|
const ALL_VALUE = "__all__";
|
|
51
52
|
function loadedStatusLabel(status) {
|
|
52
53
|
if (status === "loaded") {
|
|
@@ -179,9 +180,9 @@ function SharedDepsExplorer({
|
|
|
179
180
|
{
|
|
180
181
|
title: "Package / Version",
|
|
181
182
|
width: "28%",
|
|
182
|
-
render: (_, item) => /* @__PURE__ */ jsxs("div", { className:
|
|
183
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
184
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
183
|
+
render: (_, item) => /* @__PURE__ */ jsxs("div", { className: styles.cellCol, children: [
|
|
184
|
+
/* @__PURE__ */ jsx("div", { className: styles.packageName, children: item.packageName }),
|
|
185
|
+
/* @__PURE__ */ jsxs("div", { className: styles.version, children: [
|
|
185
186
|
"v",
|
|
186
187
|
item.version
|
|
187
188
|
] })
|
|
@@ -190,12 +191,12 @@ function SharedDepsExplorer({
|
|
|
190
191
|
{
|
|
191
192
|
title: "Provider / Scope",
|
|
192
193
|
width: "20%",
|
|
193
|
-
render: (_, item) => /* @__PURE__ */ jsxs("div", { className:
|
|
194
|
-
/* @__PURE__ */ jsxs("span", { className:
|
|
194
|
+
render: (_, item) => /* @__PURE__ */ jsxs("div", { className: styles.cellColGap, children: [
|
|
195
|
+
/* @__PURE__ */ jsxs("span", { className: styles.truncate, title: item.from, children: [
|
|
195
196
|
"Provider: ",
|
|
196
197
|
item.from
|
|
197
198
|
] }),
|
|
198
|
-
/* @__PURE__ */ jsxs("span", { className:
|
|
199
|
+
/* @__PURE__ */ jsxs("span", { className: styles.scopeText, children: [
|
|
199
200
|
"scope: ",
|
|
200
201
|
item.scope
|
|
201
202
|
] })
|
|
@@ -204,20 +205,20 @@ function SharedDepsExplorer({
|
|
|
204
205
|
{
|
|
205
206
|
title: "Status",
|
|
206
207
|
width: "22%",
|
|
207
|
-
render: (_, item) => /* @__PURE__ */ jsxs("div", { className:
|
|
208
|
+
render: (_, item) => /* @__PURE__ */ jsxs("div", { className: styles.cellColGap, children: [
|
|
208
209
|
["loaded", "loading"].includes(item.loadedStatus) ? /* @__PURE__ */ jsx(
|
|
209
210
|
Tag,
|
|
210
211
|
{
|
|
211
212
|
size: "small",
|
|
212
|
-
className:
|
|
213
|
+
className: `${styles.tagContainer} loaded-status-tag`,
|
|
213
214
|
children: loadedStatusLabel(item.loadedStatus)
|
|
214
215
|
}
|
|
215
216
|
) : null,
|
|
216
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
217
|
-
item.shareConfig.singleton && /* @__PURE__ */ jsx(Tag, { size: "small", className:
|
|
218
|
-
item.shareConfig.eager && /* @__PURE__ */ jsx(Tag, { size: "small", className:
|
|
219
|
-
item.shareConfig.strictVersion && /* @__PURE__ */ jsx(Tag, { size: "small", className:
|
|
220
|
-
item.shareConfig.requiredVersion && /* @__PURE__ */ jsxs(Tag, { size: "small", className:
|
|
217
|
+
/* @__PURE__ */ jsxs("div", { className: styles.configTags, children: [
|
|
218
|
+
item.shareConfig.singleton && /* @__PURE__ */ jsx(Tag, { size: "small", className: styles.scale90, children: "singleton" }),
|
|
219
|
+
item.shareConfig.eager && /* @__PURE__ */ jsx(Tag, { size: "small", className: styles.scale90, children: "eager" }),
|
|
220
|
+
item.shareConfig.strictVersion && /* @__PURE__ */ jsx(Tag, { size: "small", className: styles.scale90, children: "strictVersion" }),
|
|
221
|
+
item.shareConfig.requiredVersion && /* @__PURE__ */ jsxs(Tag, { size: "small", className: styles.scale90, children: [
|
|
221
222
|
"req: ",
|
|
222
223
|
item.shareConfig.requiredVersion
|
|
223
224
|
] })
|
|
@@ -232,15 +233,15 @@ function SharedDepsExplorer({
|
|
|
232
233
|
{
|
|
233
234
|
trigger: "click",
|
|
234
235
|
position: "right",
|
|
235
|
-
content: /* @__PURE__ */ jsxs("div", { className:
|
|
236
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
237
|
-
item.useIn.length === 0 ? /* @__PURE__ */ jsx("p", { className:
|
|
238
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
239
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
236
|
+
content: /* @__PURE__ */ jsxs("div", { className: styles.popoverContent, children: [
|
|
237
|
+
/* @__PURE__ */ jsx("div", { className: styles.popoverTitle, children: "Consumer List" }),
|
|
238
|
+
item.useIn.length === 0 ? /* @__PURE__ */ jsx("p", { className: styles.scopeText, children: "No applications are consuming this shared dependency version." }) : /* @__PURE__ */ jsx("ul", { className: styles.consumerList, children: item.useIn.map((c) => /* @__PURE__ */ jsxs("li", { className: styles.consumerItem, children: [
|
|
239
|
+
/* @__PURE__ */ jsx("span", { className: styles.dot }),
|
|
240
|
+
/* @__PURE__ */ jsx("span", { className: styles.packageName, children: c })
|
|
240
241
|
] }, c)) })
|
|
241
242
|
] }),
|
|
242
|
-
children: /* @__PURE__ */ jsx(Button, { size: "mini", type: "secondary", children: /* @__PURE__ */ jsxs("div", { className:
|
|
243
|
-
/* @__PURE__ */ jsx(Network, { className:
|
|
243
|
+
children: /* @__PURE__ */ jsx(Button, { size: "mini", type: "secondary", children: /* @__PURE__ */ jsxs("div", { className: styles.btnContent, children: [
|
|
244
|
+
/* @__PURE__ */ jsx(Network, { className: styles.mr1, size: 12 }),
|
|
244
245
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
245
246
|
item.useIn.length || 0,
|
|
246
247
|
" Apps"
|
|
@@ -258,35 +259,35 @@ function SharedDepsExplorer({
|
|
|
258
259
|
}
|
|
259
260
|
}
|
|
260
261
|
];
|
|
261
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
262
|
-
/* @__PURE__ */ jsxs("section", { className:
|
|
263
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
264
|
-
/* @__PURE__ */ jsx("h1", { className:
|
|
262
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.container, children: [
|
|
263
|
+
/* @__PURE__ */ jsxs("section", { className: styles.heroSection, children: [
|
|
264
|
+
/* @__PURE__ */ jsx("p", { className: styles.heroSubtitle, children: "Module Federation · Shared Dependencies" }),
|
|
265
|
+
/* @__PURE__ */ jsx("h1", { className: styles.heroTitle, children: "Overview of Shared Dependencies Usage" })
|
|
265
266
|
] }),
|
|
266
|
-
/* @__PURE__ */ jsx("section", { children: /* @__PURE__ */ jsxs("div", { className:
|
|
267
|
-
/* @__PURE__ */ jsxs(Card, { className:
|
|
268
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
269
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
270
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
271
|
-
/* @__PURE__ */ jsx(Server, { className:
|
|
267
|
+
/* @__PURE__ */ jsx("section", { children: /* @__PURE__ */ jsxs("div", { className: styles.statsGrid, children: [
|
|
268
|
+
/* @__PURE__ */ jsxs(Card, { className: styles.cardWithPadding, children: [
|
|
269
|
+
/* @__PURE__ */ jsx("div", { className: styles.cardHeader, children: /* @__PURE__ */ jsxs("div", { className: styles.statSpace, children: [
|
|
270
|
+
/* @__PURE__ */ jsx("div", { className: styles.statLabel, children: "Number of Providers" }),
|
|
271
|
+
/* @__PURE__ */ jsxs("div", { className: styles.statValue, children: [
|
|
272
|
+
/* @__PURE__ */ jsx(Server, { className: styles.icon }),
|
|
272
273
|
/* @__PURE__ */ jsx("span", { children: stats.totalProviders })
|
|
273
274
|
] })
|
|
274
275
|
] }) }),
|
|
275
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
276
|
+
/* @__PURE__ */ jsx("p", { className: styles.statDescription, children: "Number of applications/build versions exposing shared dependencies." })
|
|
276
277
|
] }),
|
|
277
|
-
/* @__PURE__ */ jsxs(Card, { className:
|
|
278
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
279
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
280
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
281
|
-
/* @__PURE__ */ jsx(Layers, { className:
|
|
278
|
+
/* @__PURE__ */ jsxs(Card, { className: styles.cardWithPadding, children: [
|
|
279
|
+
/* @__PURE__ */ jsx("div", { className: styles.cardHeader, children: /* @__PURE__ */ jsxs("div", { className: styles.statSpace, children: [
|
|
280
|
+
/* @__PURE__ */ jsx("div", { className: styles.statLabel, children: "Share Scope / Package" }),
|
|
281
|
+
/* @__PURE__ */ jsxs("div", { className: styles.statValue, children: [
|
|
282
|
+
/* @__PURE__ */ jsx(Layers, { className: styles.icon }),
|
|
282
283
|
/* @__PURE__ */ jsx("span", { children: stats.totalScopes }),
|
|
283
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
284
|
+
/* @__PURE__ */ jsx("span", { className: styles.statSubtext, children: "scope" })
|
|
284
285
|
] })
|
|
285
286
|
] }) }),
|
|
286
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
287
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
288
|
-
/* @__PURE__ */ jsxs("span", { className:
|
|
289
|
-
/* @__PURE__ */ jsx(Box, { className:
|
|
287
|
+
/* @__PURE__ */ jsxs("div", { className: styles.cardFooter, children: [
|
|
288
|
+
/* @__PURE__ */ jsx("span", { className: `${styles.truncate} ${styles.mr2}`, children: "Shared spaces under Scope dimension." }),
|
|
289
|
+
/* @__PURE__ */ jsxs("span", { className: styles.badgeGroup, children: [
|
|
290
|
+
/* @__PURE__ */ jsx(Box, { className: styles.iconSmall }),
|
|
290
291
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
291
292
|
stats.totalPackages,
|
|
292
293
|
" packages"
|
|
@@ -294,42 +295,42 @@ function SharedDepsExplorer({
|
|
|
294
295
|
] })
|
|
295
296
|
] })
|
|
296
297
|
] }),
|
|
297
|
-
/* @__PURE__ */ jsxs(Card, { className:
|
|
298
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
299
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
300
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
301
|
-
/* @__PURE__ */ jsx(Package2, { className:
|
|
298
|
+
/* @__PURE__ */ jsxs(Card, { className: styles.cardWithPadding, children: [
|
|
299
|
+
/* @__PURE__ */ jsx("div", { className: styles.cardHeader, children: /* @__PURE__ */ jsxs("div", { className: styles.statSpace, children: [
|
|
300
|
+
/* @__PURE__ */ jsx("div", { className: styles.statLabel, children: "Version Loading & Reuse" }),
|
|
301
|
+
/* @__PURE__ */ jsxs("div", { className: styles.statValue, children: [
|
|
302
|
+
/* @__PURE__ */ jsx(Package2, { className: styles.icon }),
|
|
302
303
|
/* @__PURE__ */ jsx("span", { children: stats.totalVersions })
|
|
303
304
|
] })
|
|
304
305
|
] }) }),
|
|
305
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
306
|
-
/* @__PURE__ */ jsx(Tag, { className:
|
|
307
|
-
/* @__PURE__ */ jsx(Network, { className:
|
|
306
|
+
/* @__PURE__ */ jsx("div", { className: styles.statusTags, children: /* @__PURE__ */ jsxs("div", { className: styles.tagRow, children: [
|
|
307
|
+
/* @__PURE__ */ jsx(Tag, { className: `${styles.tagContent} loaded-status-tag`, children: /* @__PURE__ */ jsxs("div", { className: styles.tagContent, children: [
|
|
308
|
+
/* @__PURE__ */ jsx(Network, { className: `${styles.iconSmall} ${styles.mr1}` }),
|
|
308
309
|
/* @__PURE__ */ jsx("span", { children: "Loaded" }),
|
|
309
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
310
|
+
/* @__PURE__ */ jsx("span", { className: styles.tagValue, children: stats.loadedCount })
|
|
310
311
|
] }) }),
|
|
311
|
-
/* @__PURE__ */ jsx(Tag, { className:
|
|
312
|
-
/* @__PURE__ */ jsx(Repeat, { className:
|
|
312
|
+
/* @__PURE__ */ jsx(Tag, { className: `${styles.tagContent} reused-status-tag`, children: /* @__PURE__ */ jsxs("div", { className: styles.tagContent, children: [
|
|
313
|
+
/* @__PURE__ */ jsx(Repeat, { className: `${styles.iconSmall} ${styles.mr1}` }),
|
|
313
314
|
/* @__PURE__ */ jsx("span", { children: "Reused" }),
|
|
314
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
315
|
+
/* @__PURE__ */ jsx("span", { className: styles.tagValue, children: stats.reusedCount })
|
|
315
316
|
] }) })
|
|
316
317
|
] }) })
|
|
317
318
|
] })
|
|
318
319
|
] }) }),
|
|
319
|
-
/* @__PURE__ */ jsx("section", { className:
|
|
320
|
+
/* @__PURE__ */ jsx("section", { className: styles.rightPanels, children: /* @__PURE__ */ jsx("div", { className: styles.panelStack, children: /* @__PURE__ */ jsxs(
|
|
320
321
|
Card,
|
|
321
322
|
{
|
|
322
|
-
className:
|
|
323
|
-
title: /* @__PURE__ */ jsxs("div", { className:
|
|
324
|
-
/* @__PURE__ */ jsx(Box, { className:
|
|
323
|
+
className: styles.card,
|
|
324
|
+
title: /* @__PURE__ */ jsxs("div", { className: styles.cardTitle, children: [
|
|
325
|
+
/* @__PURE__ */ jsx(Box, { className: styles.iconMedium }),
|
|
325
326
|
"Who provides the current shared: '",
|
|
326
327
|
focusPackage,
|
|
327
328
|
"'?"
|
|
328
329
|
] }),
|
|
329
330
|
children: [
|
|
330
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
331
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
332
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
331
|
+
/* @__PURE__ */ jsxs("div", { className: styles.controlsGrid, children: [
|
|
332
|
+
/* @__PURE__ */ jsxs("div", { className: styles.inputGroup, children: [
|
|
333
|
+
/* @__PURE__ */ jsx("div", { className: styles.inputLabel, children: "Package Name" }),
|
|
333
334
|
/* @__PURE__ */ jsx(
|
|
334
335
|
Select,
|
|
335
336
|
{
|
|
@@ -340,13 +341,13 @@ function SharedDepsExplorer({
|
|
|
340
341
|
setFocusVersion("");
|
|
341
342
|
},
|
|
342
343
|
placeholder: "Select Shared Dependency Package Name",
|
|
343
|
-
className:
|
|
344
|
+
className: styles.fullWidth,
|
|
344
345
|
children: filterOptions.packages.map((name) => /* @__PURE__ */ jsx(Select.Option, { value: name, children: name }, name))
|
|
345
346
|
}
|
|
346
347
|
)
|
|
347
348
|
] }),
|
|
348
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
349
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
349
|
+
/* @__PURE__ */ jsxs("div", { className: styles.inputGroup, children: [
|
|
350
|
+
/* @__PURE__ */ jsx("div", { className: styles.inputLabel, children: "Version (Optional, inferred if empty)" }),
|
|
350
351
|
/* @__PURE__ */ jsxs(
|
|
351
352
|
Select,
|
|
352
353
|
{
|
|
@@ -354,7 +355,7 @@ function SharedDepsExplorer({
|
|
|
354
355
|
value: focusVersion || ALL_VALUE,
|
|
355
356
|
onChange: (value) => setFocusVersion(value === ALL_VALUE ? "" : value),
|
|
356
357
|
placeholder: "All Versions",
|
|
357
|
-
className:
|
|
358
|
+
className: styles.fullWidth,
|
|
358
359
|
children: [
|
|
359
360
|
/* @__PURE__ */ jsx(Select.Option, { value: ALL_VALUE, children: "All Versions" }),
|
|
360
361
|
focusVersionsForPackage.map((v) => /* @__PURE__ */ jsx(Select.Option, { value: v, children: v }, v))
|
|
@@ -363,7 +364,7 @@ function SharedDepsExplorer({
|
|
|
363
364
|
)
|
|
364
365
|
] })
|
|
365
366
|
] }),
|
|
366
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
367
|
+
/* @__PURE__ */ jsx("div", { className: styles.resultBox, children: /* @__PURE__ */ jsx(
|
|
367
368
|
FocusResultDisplay,
|
|
368
369
|
{
|
|
369
370
|
focusResult,
|
|
@@ -377,50 +378,50 @@ function SharedDepsExplorer({
|
|
|
377
378
|
/* @__PURE__ */ jsx("section", { children: /* @__PURE__ */ jsxs(
|
|
378
379
|
Card,
|
|
379
380
|
{
|
|
380
|
-
className:
|
|
381
|
-
title: /* @__PURE__ */ jsxs("div", { className:
|
|
382
|
-
/* @__PURE__ */ jsx(Search, { className:
|
|
381
|
+
className: styles.card,
|
|
382
|
+
title: /* @__PURE__ */ jsxs("div", { className: styles.cardTitle, children: [
|
|
383
|
+
/* @__PURE__ */ jsx(Search, { className: styles.iconMedium }),
|
|
383
384
|
"Filter / Search"
|
|
384
385
|
] }),
|
|
385
386
|
children: [
|
|
386
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
387
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
388
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
387
|
+
/* @__PURE__ */ jsxs("div", { className: styles.filterGrid, children: [
|
|
388
|
+
/* @__PURE__ */ jsxs("div", { className: `${styles.inputGroup} ${styles.padding2}`, children: [
|
|
389
|
+
/* @__PURE__ */ jsx("div", { className: styles.inputLabel, children: "Provider" }),
|
|
389
390
|
/* @__PURE__ */ jsx(
|
|
390
391
|
Select,
|
|
391
392
|
{
|
|
392
393
|
value: selectedProvider || void 0,
|
|
393
394
|
onChange: (value) => setSelectedProvider(value === ALL_VALUE ? "" : value),
|
|
394
395
|
placeholder: "All Providers",
|
|
395
|
-
className:
|
|
396
|
+
className: styles.fullWidth,
|
|
396
397
|
allowClear: true,
|
|
397
398
|
children: filterOptions.providers.map((p) => /* @__PURE__ */ jsx(Select.Option, { value: p, children: p }, p))
|
|
398
399
|
}
|
|
399
400
|
)
|
|
400
401
|
] }),
|
|
401
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
402
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
402
|
+
/* @__PURE__ */ jsxs("div", { className: `${styles.inputGroup} ${styles.padding2}`, children: [
|
|
403
|
+
/* @__PURE__ */ jsx("div", { className: styles.inputLabel, children: "Package Name" }),
|
|
403
404
|
/* @__PURE__ */ jsx(
|
|
404
405
|
Select,
|
|
405
406
|
{
|
|
406
407
|
value: selectedPackage || void 0,
|
|
407
408
|
onChange: (value) => setSelectedPackage(value === ALL_VALUE ? "" : value),
|
|
408
409
|
placeholder: "All Packages",
|
|
409
|
-
className:
|
|
410
|
+
className: styles.fullWidth,
|
|
410
411
|
allowClear: true,
|
|
411
412
|
children: filterOptions.packages.map((name) => /* @__PURE__ */ jsx(Select.Option, { value: name, children: name }, name))
|
|
412
413
|
}
|
|
413
414
|
)
|
|
414
415
|
] }),
|
|
415
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
416
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
416
|
+
/* @__PURE__ */ jsxs("div", { className: `${styles.inputGroup} ${styles.padding2}`, children: [
|
|
417
|
+
/* @__PURE__ */ jsx("div", { className: styles.inputLabel, children: "Version" }),
|
|
417
418
|
/* @__PURE__ */ jsx(
|
|
418
419
|
Select,
|
|
419
420
|
{
|
|
420
421
|
value: selectedVersion || void 0,
|
|
421
422
|
onChange: (value) => setSelectedVersion(value === ALL_VALUE ? "" : value),
|
|
422
423
|
placeholder: "All Versions",
|
|
423
|
-
className:
|
|
424
|
+
className: styles.fullWidth,
|
|
424
425
|
disabled: !selectedPackage,
|
|
425
426
|
allowClear: true,
|
|
426
427
|
children: versionsForSelectedPackage.map((v) => /* @__PURE__ */ jsx(Select.Option, { value: v, children: v }, v))
|
|
@@ -428,57 +429,57 @@ function SharedDepsExplorer({
|
|
|
428
429
|
)
|
|
429
430
|
] })
|
|
430
431
|
] }),
|
|
431
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
432
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
433
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
432
|
+
/* @__PURE__ */ jsxs("div", { className: styles.searchGrid, children: [
|
|
433
|
+
/* @__PURE__ */ jsxs("div", { className: styles.inputGroup, children: [
|
|
434
|
+
/* @__PURE__ */ jsx("div", { className: styles.inputLabel, children: "Package Name Keyword (Fuzzy Match)" }),
|
|
434
435
|
/* @__PURE__ */ jsx(
|
|
435
436
|
Input,
|
|
436
437
|
{
|
|
437
|
-
prefix: /* @__PURE__ */ jsx(Search, { className:
|
|
438
|
-
className:
|
|
438
|
+
prefix: /* @__PURE__ */ jsx(Search, { className: styles.iconMedium }),
|
|
439
|
+
className: styles.searchInput,
|
|
439
440
|
placeholder: "e.g., react / axios",
|
|
440
441
|
value: searchText,
|
|
441
442
|
onChange: (val) => setSearchText(val)
|
|
442
443
|
}
|
|
443
444
|
)
|
|
444
445
|
] }),
|
|
445
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
446
|
+
/* @__PURE__ */ jsx("div", { className: styles.matchCount, children: /* @__PURE__ */ jsxs("span", { children: [
|
|
446
447
|
"Currently Matched Versions:",
|
|
447
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
448
|
+
/* @__PURE__ */ jsx("span", { className: styles.matchValue, children: filteredVersions.length })
|
|
448
449
|
] }) })
|
|
449
450
|
] }),
|
|
450
|
-
!hasData && loadingState === "loading" && /* @__PURE__ */ jsx("div", { className:
|
|
451
|
-
loadingState === "error" && /* @__PURE__ */ jsxs("div", { className:
|
|
451
|
+
!hasData && loadingState === "loading" && /* @__PURE__ */ jsx("div", { className: styles.loadingText, children: "Parsing shared dependency data..." }),
|
|
452
|
+
loadingState === "error" && /* @__PURE__ */ jsxs("div", { className: styles.errorText, children: [
|
|
452
453
|
"Failed to load shared dependency data:",
|
|
453
454
|
" ",
|
|
454
455
|
errorMessage != null ? errorMessage : "Unknown Error"
|
|
455
456
|
] }),
|
|
456
|
-
hasData && Object.keys(tree).length === 0 && /* @__PURE__ */ jsx("div", { className:
|
|
457
|
-
hasData && Object.keys(tree).length > 0 && /* @__PURE__ */ jsx("div", { className:
|
|
457
|
+
hasData && Object.keys(tree).length === 0 && /* @__PURE__ */ jsx("div", { className: styles.noMatchText, children: "No matching shared dependency versions under current filter conditions, try relaxing the filter conditions." }),
|
|
458
|
+
hasData && Object.keys(tree).length > 0 && /* @__PURE__ */ jsx("div", { className: styles.treeContainer, children: /* @__PURE__ */ jsx("div", { className: styles.collapseWrapper, children: /* @__PURE__ */ jsx(Collapse, { children: Object.entries(tree).map(([provider, scopes]) => /* @__PURE__ */ jsx(
|
|
458
459
|
Collapse.Item,
|
|
459
460
|
{
|
|
460
461
|
name: provider,
|
|
461
|
-
header: /* @__PURE__ */ jsxs("div", { className:
|
|
462
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
463
|
-
/* @__PURE__ */ jsx(Server, { className:
|
|
462
|
+
header: /* @__PURE__ */ jsxs("div", { className: styles.providerHeader, children: [
|
|
463
|
+
/* @__PURE__ */ jsxs("div", { className: styles.providerTitle, children: [
|
|
464
|
+
/* @__PURE__ */ jsx(Server, { className: styles.iconMedium }),
|
|
464
465
|
/* @__PURE__ */ jsx("span", { children: provider })
|
|
465
466
|
] }),
|
|
466
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
467
|
+
/* @__PURE__ */ jsx("div", { className: styles.providerMeta, children: /* @__PURE__ */ jsxs("span", { children: [
|
|
467
468
|
"Scope Count: ",
|
|
468
469
|
Object.keys(scopes).length
|
|
469
470
|
] }) })
|
|
470
471
|
] }),
|
|
471
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
472
|
+
children: /* @__PURE__ */ jsx("div", { className: styles.scopeList, children: Object.entries(scopes).map(([scopeName, packages]) => {
|
|
472
473
|
const list = Object.values(packages).flat();
|
|
473
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
474
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
475
|
-
/* @__PURE__ */ jsx(Layers, { className:
|
|
474
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.scopeItem, children: [
|
|
475
|
+
/* @__PURE__ */ jsxs("div", { className: styles.scopeHeader, children: [
|
|
476
|
+
/* @__PURE__ */ jsx(Layers, { className: styles.iconSmall }),
|
|
476
477
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
477
478
|
"Scope: ",
|
|
478
479
|
scopeName
|
|
479
480
|
] })
|
|
480
481
|
] }),
|
|
481
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
482
|
+
/* @__PURE__ */ jsx("div", { className: styles.tableContainer, children: /* @__PURE__ */ jsx(
|
|
482
483
|
Table,
|
|
483
484
|
{
|
|
484
485
|
columns,
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "./index_module.css";
|
|
2
|
+
var index_module_default = { "container": "container_967de", "heroSection": "heroSection_967de", "heroSubtitle": "heroSubtitle_967de", "heroTitle": "heroTitle_967de", "statsGrid": "statsGrid_967de", "card": "card_967de", "cardWithPadding": "cardWithPadding_967de", "cardHeader": "cardHeader_967de", "statSpace": "statSpace_967de", "statLabel": "statLabel_967de", "statValue": "statValue_967de", "icon": "icon_967de", "iconSmall": "iconSmall_967de", "iconMedium": "iconMedium_967de", "statDescription": "statDescription_967de", "statSubtext": "statSubtext_967de", "cardFooter": "cardFooter_967de", "truncate": "truncate_967de", "mr2": "mr2_967de", "badgeGroup": "badgeGroup_967de", "statusTags": "statusTags_967de", "tagRow": "tagRow_967de", "tagContent": "tagContent_967de", "tagValue": "tagValue_967de", "mr1": "mr1_967de", "rightPanels": "rightPanels_967de", "panelStack": "panelStack_967de", "cardTitle": "cardTitle_967de", "controlsGrid": "controlsGrid_967de", "inputGroup": "inputGroup_967de", "inputLabel": "inputLabel_967de", "fullWidth": "fullWidth_967de", "resultBox": "resultBox_967de", "filterGrid": "filterGrid_967de", "padding2": "padding2_967de", "searchGrid": "searchGrid_967de", "searchInput": "searchInput_967de", "matchCount": "matchCount_967de", "matchValue": "matchValue_967de", "loadingText": "loadingText_967de", "errorText": "errorText_967de", "noMatchText": "noMatchText_967de", "treeContainer": "treeContainer_967de", "collapseWrapper": "collapseWrapper_967de", "providerHeader": "providerHeader_967de", "providerTitle": "providerTitle_967de", "providerMeta": "providerMeta_967de", "scopeList": "scopeList_967de", "scopeItem": "scopeItem_967de", "scopeHeader": "scopeHeader_967de", "tableContainer": "tableContainer_967de", "cellCol": "cellCol_967de", "packageName": "packageName_967de", "version": "version_967de", "cellColGap": "cellColGap_967de", "scopeText": "scopeText_967de", "tagContainer": "tagContainer_967de", "configTags": "configTags_967de", "scale90": "scale90_967de", "popoverContent": "popoverContent_967de", "popoverTitle": "popoverTitle_967de", "consumerList": "consumerList_967de", "consumerItem": "consumerItem_967de", "dot": "dot_967de", "btnContent": "btnContent_967de" };
|
|
3
|
+
export {
|
|
4
|
+
index_module_default as default
|
|
5
|
+
};
|