@module-federation/devtools 0.0.0-perf-devtools-20260107043700 → 0.0.0-perf-website-code-usage-20260914033703

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 (203) hide show
  1. package/README.md +3 -0
  2. package/dist/es/App.css +6 -5
  3. package/dist/es/App.js +211 -63
  4. package/dist/es/App.module.js +1 -1
  5. package/dist/es/App_module.css +41 -39
  6. package/dist/es/component/DependencyGraph/index.js +11 -12
  7. package/dist/es/component/DependencyGraph/index_module.css +20 -17
  8. package/dist/es/component/DependencyGraphItem/index.js +23 -10
  9. package/dist/es/component/DependencyGraphItem/index_module.css +7 -7
  10. package/dist/es/component/Form/index.js +24 -31
  11. package/dist/es/component/Form/index.module.js +1 -1
  12. package/dist/es/component/Form/index_module.css +22 -25
  13. package/dist/es/component/LanguageSwitch.js +50 -0
  14. package/dist/es/component/Layout/index.js +27 -10
  15. package/dist/es/component/Layout/index_module.css +7 -7
  16. package/dist/es/component/LoadingTrace/index.js +944 -0
  17. package/dist/es/component/LoadingTrace/index.module.js +5 -0
  18. package/dist/es/component/LoadingTrace/index_module.css +876 -0
  19. package/dist/es/component/ModuleInfo/index.js +65 -41
  20. package/dist/es/component/ModuleInfo/index_module.css +12 -11
  21. package/dist/es/component/SharedDepsExplorer/FocusResultDisplay.js +5 -3
  22. package/dist/es/component/SharedDepsExplorer/FocusResultDisplay_module.css +5 -5
  23. package/dist/es/component/SharedDepsExplorer/index.js +223 -96
  24. package/dist/es/component/SharedDepsExplorer/index_module.css +12 -2
  25. package/dist/es/component/SharedDepsExplorer/share-utils.js +21 -5
  26. package/dist/es/component/ThemeToggle.js +19 -0
  27. package/dist/es/component/ThemeToggle.module.js +5 -0
  28. package/dist/es/component/ThemeToggle_module.css +12 -0
  29. package/dist/es/hooks/useDevtoolsTheme.js +77 -0
  30. package/dist/es/i18n/index.js +688 -0
  31. package/dist/es/utils/chrome/fast-refresh.js +297 -173
  32. package/dist/es/utils/chrome/index.js +42 -22
  33. package/dist/es/utils/chrome/messages.js +7 -1
  34. package/dist/es/utils/chrome/observability-plugin.js +93 -0
  35. package/dist/es/utils/chrome/observability-shared.js +99 -0
  36. package/dist/es/utils/chrome/observability.js +208 -0
  37. package/dist/es/utils/chrome/override-remote.js +7 -0
  38. package/dist/es/utils/chrome/post-message-listener.js +22 -4
  39. package/dist/es/utils/chrome/post-message-start.js +4 -10
  40. package/dist/es/utils/chrome/post-message.js +12 -3
  41. package/dist/es/utils/chrome/resolve-basic-proxy-core.js +4 -0
  42. package/dist/es/utils/chrome/safe-post-message.js +124 -0
  43. package/dist/es/utils/chrome/snapshot-plugin.js +2 -36
  44. package/dist/es/utils/data/index.js +5 -25
  45. package/dist/es/utils/sdk/graph.js +25 -11
  46. package/dist/es/vendor/basic-proxy-core.js +155 -0
  47. package/dist/es/worker/index.js +27 -8
  48. package/dist/lib/App.css +6 -5
  49. package/dist/lib/App.js +208 -64
  50. package/dist/lib/App.module.js +1 -2
  51. package/dist/lib/App_module.css +41 -39
  52. package/dist/lib/component/DependencyGraph/index.js +11 -13
  53. package/dist/lib/component/DependencyGraph/index.module.js +0 -1
  54. package/dist/lib/component/DependencyGraph/index_module.css +20 -17
  55. package/dist/lib/component/DependencyGraphItem/index.js +23 -11
  56. package/dist/lib/component/DependencyGraphItem/index.module.js +0 -1
  57. package/dist/lib/component/DependencyGraphItem/index_module.css +7 -7
  58. package/dist/lib/component/Form/index.js +24 -32
  59. package/dist/lib/component/Form/index.module.js +1 -2
  60. package/dist/lib/component/Form/index_module.css +22 -25
  61. package/dist/lib/component/LanguageSwitch.js +79 -0
  62. package/dist/lib/component/Layout/index.js +27 -11
  63. package/dist/lib/component/Layout/index.module.js +0 -1
  64. package/dist/lib/component/Layout/index_module.css +7 -7
  65. package/dist/lib/component/LoadingTrace/index.js +953 -0
  66. package/dist/lib/component/LoadingTrace/index.module.js +24 -0
  67. package/dist/lib/component/LoadingTrace/index_module.css +876 -0
  68. package/dist/lib/component/ModuleInfo/index.js +65 -42
  69. package/dist/lib/component/ModuleInfo/index.module.js +0 -1
  70. package/dist/lib/component/ModuleInfo/index_module.css +12 -11
  71. package/dist/lib/component/SharedDepsExplorer/FocusResultDisplay.js +5 -4
  72. package/dist/lib/component/SharedDepsExplorer/FocusResultDisplay.module.js +0 -1
  73. package/dist/lib/component/SharedDepsExplorer/FocusResultDisplay_module.css +5 -5
  74. package/dist/lib/component/SharedDepsExplorer/index.js +217 -95
  75. package/dist/lib/component/SharedDepsExplorer/index.module.js +0 -1
  76. package/dist/lib/component/SharedDepsExplorer/index_module.css +12 -2
  77. package/dist/lib/component/SharedDepsExplorer/share-utils.js +21 -6
  78. package/dist/lib/component/ThemeToggle.js +48 -0
  79. package/dist/lib/component/ThemeToggle.module.js +24 -0
  80. package/dist/lib/component/ThemeToggle_module.css +12 -0
  81. package/dist/lib/hooks/useDevtoolsTheme.js +100 -0
  82. package/dist/lib/i18n/index.js +721 -0
  83. package/dist/lib/init.js +0 -1
  84. package/dist/lib/template/constant.js +0 -1
  85. package/dist/lib/template/index.js +0 -1
  86. package/dist/lib/utils/chrome/fast-refresh.js +250 -136
  87. package/dist/lib/utils/chrome/index.js +43 -23
  88. package/dist/lib/utils/chrome/messages.js +11 -3
  89. package/dist/lib/utils/chrome/observability-plugin.js +85 -0
  90. package/dist/lib/utils/chrome/observability-shared.js +125 -0
  91. package/dist/lib/utils/chrome/observability.js +233 -0
  92. package/dist/lib/utils/chrome/override-remote.js +20 -0
  93. package/dist/lib/utils/chrome/post-message-init.js +0 -1
  94. package/dist/lib/utils/chrome/post-message-listener.js +19 -5
  95. package/dist/lib/utils/chrome/post-message-start.js +4 -11
  96. package/dist/lib/utils/chrome/post-message.js +12 -4
  97. package/dist/lib/utils/chrome/resolve-basic-proxy-core.js +27 -0
  98. package/dist/lib/utils/chrome/safe-post-message.js +147 -0
  99. package/dist/lib/utils/chrome/snapshot-plugin.js +5 -47
  100. package/dist/lib/utils/chrome/storage.js +0 -1
  101. package/dist/lib/utils/data/index.js +6 -29
  102. package/dist/lib/utils/index.js +0 -1
  103. package/dist/lib/utils/sdk/graph.js +25 -12
  104. package/dist/lib/utils/sdk/index.js +0 -1
  105. package/dist/lib/utils/types/common.js +0 -1
  106. package/dist/lib/utils/types/index.js +0 -1
  107. package/dist/lib/vendor/basic-proxy-core.js +147 -0
  108. package/dist/lib/worker/index.js +27 -9
  109. package/dist/types/App.css +13 -0
  110. package/dist/types/App.js +519 -0
  111. package/dist/types/App.module.js +24 -0
  112. package/dist/types/App_module.css +307 -0
  113. package/dist/types/component/DependencyGraph/index.js +225 -0
  114. package/dist/types/component/DependencyGraph/index.module.js +24 -0
  115. package/dist/types/component/DependencyGraph/index_module.css +100 -0
  116. package/dist/types/component/DependencyGraphItem/index.js +124 -0
  117. package/dist/types/component/DependencyGraphItem/index.module.js +24 -0
  118. package/dist/types/component/DependencyGraphItem/index_module.css +95 -0
  119. package/dist/types/component/Form/index.js +372 -0
  120. package/dist/types/component/Form/index.module.js +24 -0
  121. package/dist/types/component/Form/index_module.css +198 -0
  122. package/dist/types/component/LanguageSwitch.js +79 -0
  123. package/dist/types/component/Layout/index.js +471 -0
  124. package/dist/types/component/Layout/index.module.js +24 -0
  125. package/dist/types/component/Layout/index_module.css +68 -0
  126. package/dist/types/component/LoadingTrace/index.js +953 -0
  127. package/dist/types/component/LoadingTrace/index.module.js +24 -0
  128. package/dist/types/component/LoadingTrace/index_module.css +876 -0
  129. package/dist/types/component/ModuleInfo/index.js +342 -0
  130. package/dist/types/component/ModuleInfo/index.module.js +24 -0
  131. package/dist/types/component/ModuleInfo/index_module.css +184 -0
  132. package/dist/types/component/SharedDepsExplorer/FocusResultDisplay.js +64 -0
  133. package/dist/types/component/SharedDepsExplorer/FocusResultDisplay.module.js +24 -0
  134. package/dist/types/component/SharedDepsExplorer/FocusResultDisplay_module.css +45 -0
  135. package/dist/types/component/SharedDepsExplorer/index.js +635 -0
  136. package/dist/types/component/SharedDepsExplorer/index.module.js +24 -0
  137. package/dist/types/component/SharedDepsExplorer/index_module.css +467 -0
  138. package/dist/types/component/SharedDepsExplorer/share-utils.js +252 -0
  139. package/dist/types/component/ThemeToggle.js +48 -0
  140. package/dist/types/component/ThemeToggle.module.js +24 -0
  141. package/dist/types/component/ThemeToggle_module.css +12 -0
  142. package/dist/types/hooks/useDevtoolsTheme.js +100 -0
  143. package/dist/types/i18n/index.js +721 -0
  144. package/dist/types/init.js +8 -0
  145. package/dist/types/src/App.d.ts +1 -1
  146. package/dist/types/src/component/DependencyGraph/index.d.ts +1 -1
  147. package/dist/types/src/component/DependencyGraphItem/index.d.ts +1 -1
  148. package/dist/types/src/component/Form/index.d.ts +1 -1
  149. package/dist/types/src/component/LanguageSwitch.d.ts +2 -0
  150. package/dist/types/src/component/Layout/index.d.ts +1 -1
  151. package/dist/types/src/component/LoadingTrace/index.d.ts +6 -0
  152. package/dist/types/src/component/ModuleInfo/index.d.ts +1 -1
  153. package/dist/types/src/component/SharedDepsExplorer/index.d.ts +1 -1
  154. package/dist/types/src/component/SharedDepsExplorer/share-utils.d.ts +3 -2
  155. package/dist/types/src/component/ThemeToggle.d.ts +8 -0
  156. package/dist/types/src/hooks/useDevtoolsTheme.d.ts +2 -0
  157. package/dist/types/src/i18n/index.d.ts +5 -0
  158. package/dist/types/src/template/constant.d.ts +1 -1
  159. package/dist/types/src/utils/chrome/index.d.ts +2 -1
  160. package/dist/types/src/utils/chrome/messages.d.ts +3 -0
  161. package/dist/types/src/utils/chrome/observability-plugin.d.ts +1 -0
  162. package/dist/types/src/utils/chrome/observability-shared.d.ts +41 -0
  163. package/dist/types/src/utils/chrome/observability.d.ts +110 -0
  164. package/dist/types/src/utils/chrome/override-remote.d.ts +1 -0
  165. package/dist/types/src/utils/chrome/post-message-listener.d.ts +1 -0
  166. package/dist/types/src/utils/chrome/post-message-start.d.ts +1 -1
  167. package/dist/types/src/utils/chrome/resolve-basic-proxy-core.d.ts +6 -0
  168. package/dist/types/src/utils/chrome/safe-post-message.d.ts +1 -0
  169. package/dist/types/src/utils/chrome/snapshot-plugin.d.ts +0 -3
  170. package/dist/types/src/utils/data/index.d.ts +1 -2
  171. package/dist/types/src/utils/sdk/graph.d.ts +1 -1
  172. package/dist/types/src/utils/sdk/index.d.ts +2 -2
  173. package/dist/types/stories/index.stories.d.ts +2 -1
  174. package/dist/types/template/constant.js +84 -0
  175. package/dist/types/template/index.js +21 -0
  176. package/dist/types/utils/chrome/fast-refresh.js +329 -0
  177. package/dist/types/utils/chrome/index.js +321 -0
  178. package/dist/types/utils/chrome/messages.js +39 -0
  179. package/dist/types/utils/chrome/observability-plugin.js +85 -0
  180. package/dist/types/utils/chrome/observability-shared.js +125 -0
  181. package/dist/types/utils/chrome/observability.js +233 -0
  182. package/dist/types/utils/chrome/override-remote.js +20 -0
  183. package/dist/types/utils/chrome/post-message-init.js +5 -0
  184. package/dist/types/utils/chrome/post-message-listener.js +36 -0
  185. package/dist/types/utils/chrome/post-message-start.js +10 -0
  186. package/dist/types/utils/chrome/post-message.js +91 -0
  187. package/dist/types/utils/chrome/resolve-basic-proxy-core.js +27 -0
  188. package/dist/types/utils/chrome/safe-post-message.js +147 -0
  189. package/dist/types/utils/chrome/snapshot-plugin.js +17 -0
  190. package/dist/types/utils/chrome/storage.js +71 -0
  191. package/dist/types/utils/data/index.js +83 -0
  192. package/dist/types/utils/index.js +27 -0
  193. package/dist/types/utils/sdk/graph.js +213 -0
  194. package/dist/types/utils/sdk/index.js +104 -0
  195. package/dist/types/utils/types/common.js +15 -0
  196. package/dist/types/utils/types/index.js +21 -0
  197. package/dist/types/vendor/basic-proxy-core.js +147 -0
  198. package/dist/types/worker/index.js +175 -0
  199. package/install-deps.bash +7 -3
  200. package/package.json +47 -28
  201. package/dist/es/utils/data/snapshot.js +0 -82
  202. package/dist/lib/utils/data/snapshot.js +0 -107
  203. package/dist/types/src/utils/data/snapshot.d.ts +0 -3
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -34,6 +33,7 @@ module.exports = __toCommonJS(ModuleInfo_exports);
34
33
  var import_jsx_runtime = require("react/jsx-runtime");
35
34
  var import_react = require("react");
36
35
  var import_web_react = require("@arco-design/web-react");
36
+ var import_react_i18next = require("react-i18next");
37
37
  var import_index = __toESM(require("./index.module"));
38
38
  const renderValue = (value) => {
39
39
  if (value === void 0 || value === null) {
@@ -76,6 +76,7 @@ const renderValue = (value) => {
76
76
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: import_index.default.valueText, children: String(value) });
77
77
  };
78
78
  const RemotesTable = ({ data }) => {
79
+ const { t } = (0, import_react_i18next.useTranslation)();
79
80
  if (!data || Object.keys(data).length === 0) {
80
81
  return null;
81
82
  }
@@ -87,10 +88,13 @@ const RemotesTable = ({ data }) => {
87
88
  scmVersion: val.scmVersion || val.buildVersion || "-"
88
89
  }));
89
90
  const columns = [
90
- { title: "Name", dataIndex: "name" },
91
- { title: "Type", dataIndex: "type" },
92
- { title: "Version", dataIndex: "version" },
93
- { title: "SCM Version", dataIndex: "scmVersion" }
91
+ { title: t("moduleInfo.tables.remotes.name"), dataIndex: "name" },
92
+ { title: t("moduleInfo.tables.remotes.type"), dataIndex: "type" },
93
+ { title: t("moduleInfo.tables.remotes.version"), dataIndex: "version" },
94
+ {
95
+ title: t("moduleInfo.tables.remotes.scmVersion"),
96
+ dataIndex: "scmVersion"
97
+ }
94
98
  ];
95
99
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
96
100
  import_web_react.Table,
@@ -105,6 +109,7 @@ const RemotesTable = ({ data }) => {
105
109
  );
106
110
  };
107
111
  const ExposesTable = ({ data }) => {
112
+ const { t } = (0, import_react_i18next.useTranslation)();
108
113
  if (!Array.isArray(data) || data.length === 0) {
109
114
  return null;
110
115
  }
@@ -112,12 +117,15 @@ const ExposesTable = ({ data }) => {
112
117
  key: index,
113
118
  name: item.name || item.moduleName || item.expose || "-",
114
119
  path: item.path || item.file || "-",
115
- shared: Array.isArray(item.requires) ? item.requires.join(", ") : item.requires || "None"
120
+ shared: Array.isArray(item.requires) ? item.requires.join(", ") : item.requires || t("moduleInfo.tables.exposes.noShared")
116
121
  }));
117
122
  const columns = [
118
- { title: "Module Name", dataIndex: "name" },
119
- { title: "File Path", dataIndex: "path" },
120
- { title: "Shared Dependencies", dataIndex: "shared" }
123
+ { title: t("moduleInfo.tables.exposes.moduleName"), dataIndex: "name" },
124
+ { title: t("moduleInfo.tables.exposes.filePath"), dataIndex: "path" },
125
+ {
126
+ title: t("moduleInfo.tables.exposes.sharedDependencies"),
127
+ dataIndex: "shared"
128
+ }
121
129
  ];
122
130
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
123
131
  import_web_react.Table,
@@ -132,6 +140,7 @@ const ExposesTable = ({ data }) => {
132
140
  );
133
141
  };
134
142
  const ConsumersTable = ({ data }) => {
143
+ const { t } = (0, import_react_i18next.useTranslation)();
135
144
  if (!Array.isArray(data) || data.length === 0) {
136
145
  return null;
137
146
  }
@@ -145,12 +154,15 @@ const ConsumersTable = ({ data }) => {
145
154
  time: item.time || "-"
146
155
  }));
147
156
  const columns = [
148
- { title: "Consumer Name", dataIndex: "name" },
149
- { title: "Consumer Type", dataIndex: "type" },
150
- { title: "Consumer Version", dataIndex: "version" },
151
- { title: "Consumed Module Name", dataIndex: "moduleName" },
152
- { title: "Used In", dataIndex: "usedIn" },
153
- { title: "Time", dataIndex: "time" }
157
+ { title: t("moduleInfo.tables.consumers.name"), dataIndex: "name" },
158
+ { title: t("moduleInfo.tables.consumers.type"), dataIndex: "type" },
159
+ { title: t("moduleInfo.tables.consumers.version"), dataIndex: "version" },
160
+ {
161
+ title: t("moduleInfo.tables.consumers.moduleName"),
162
+ dataIndex: "moduleName"
163
+ },
164
+ { title: t("moduleInfo.tables.consumers.usedIn"), dataIndex: "usedIn" },
165
+ { title: t("moduleInfo.tables.consumers.time"), dataIndex: "time" }
154
166
  ];
155
167
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
156
168
  import_web_react.Table,
@@ -167,20 +179,30 @@ const ConsumersTable = ({ data }) => {
167
179
  const SharedTable = ({
168
180
  data
169
181
  }) => {
182
+ const { t } = (0, import_react_i18next.useTranslation)();
170
183
  if (!data || Array.isArray(data) && data.length === 0) {
171
184
  return null;
172
185
  }
173
- const dataSource = Object.entries(data).map(([key, val]) => ({
174
- key,
175
- name: val.sharedName,
176
- version: val.version || "-"
177
- }));
186
+ const dataSource = Object.entries(data).map(([key, val]) => {
187
+ var _a, _b, _c;
188
+ return {
189
+ key,
190
+ name: val.sharedName,
191
+ version: val.version || "-",
192
+ requiredVersion: (_a = val.shareConfig) == null ? void 0 : _a.requiredVersion,
193
+ singleton: (_b = val.shareConfig) == null ? void 0 : _b.singleton,
194
+ eager: (_c = val.shareConfig) == null ? void 0 : _c.eager
195
+ };
196
+ });
178
197
  const columns = [
179
- { title: "Dependency Name", dataIndex: "name" },
180
- { title: "Version", dataIndex: "version" },
181
- { title: "Required Version", dataIndex: "requiredVersion" },
182
- { title: "Singleton", dataIndex: "singleton" },
183
- { title: "Eager", dataIndex: "eager" }
198
+ { title: t("moduleInfo.tables.shared.dependencyName"), dataIndex: "name" },
199
+ { title: t("moduleInfo.tables.shared.version"), dataIndex: "version" },
200
+ {
201
+ title: t("moduleInfo.tables.shared.requiredVersion"),
202
+ dataIndex: "requiredVersion"
203
+ },
204
+ { title: t("moduleInfo.tables.shared.singleton"), dataIndex: "singleton" },
205
+ { title: t("moduleInfo.tables.shared.eager"), dataIndex: "eager" }
184
206
  ];
185
207
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
186
208
  import_web_react.Table,
@@ -202,49 +224,50 @@ const extractDetailSections = (moduleSnapshot) => {
202
224
  const remoteEntry = moduleSnapshot.remoteEntry || moduleSnapshot.entry || moduleSnapshot.version;
203
225
  if (remoteEntry) {
204
226
  sections.push({
205
- label: "Remote Entry",
227
+ key: "remoteEntry",
206
228
  value: remoteEntry
207
229
  });
208
230
  }
209
231
  if (moduleSnapshot.version) {
210
232
  sections.push({
211
- label: "Version",
233
+ key: "version",
212
234
  value: moduleSnapshot.version
213
235
  });
214
236
  }
215
237
  if (moduleSnapshot.consumerList) {
216
238
  sections.push({
217
- label: "Consumers",
239
+ key: "consumers",
218
240
  value: moduleSnapshot.consumerList
219
241
  });
220
242
  }
221
243
  if (moduleSnapshot.modules) {
222
244
  sections.push({
223
- label: "Exposes",
245
+ key: "exposes",
224
246
  value: moduleSnapshot.modules
225
247
  });
226
248
  }
227
249
  if (moduleSnapshot.remotesInfo) {
228
250
  sections.push({
229
- label: "Remotes",
251
+ key: "remotes",
230
252
  value: moduleSnapshot.remotesInfo
231
253
  });
232
254
  }
233
255
  if (moduleSnapshot.shared) {
234
256
  sections.push({
235
- label: "Shared",
257
+ key: "shared",
236
258
  value: moduleSnapshot.shared
237
259
  });
238
260
  }
239
261
  if (!sections.length) {
240
262
  sections.push({
241
- label: "Snapshot",
263
+ key: "snapshot",
242
264
  value: moduleSnapshot
243
265
  });
244
266
  }
245
267
  return sections;
246
268
  };
247
269
  const Home = (props) => {
270
+ const { t } = (0, import_react_i18next.useTranslation)();
248
271
  const { moduleInfo, selectedModuleId, onSelectModule } = props;
249
272
  const moduleEntries = (0, import_react.useMemo)(
250
273
  () => Object.entries(moduleInfo || {}).filter(([key]) => key !== "extendInfos"),
@@ -262,21 +285,21 @@ const Home = (props) => {
262
285
  [currentSnapshot]
263
286
  );
264
287
  if (!moduleEntries.length || !currentModuleId) {
265
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.emptyState, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Empty, { description: "No ModuleInfo Detected" }) });
288
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.emptyState, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Empty, { description: t("moduleInfo.empty.noModuleInfo") }) });
266
289
  }
267
290
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_index.default.home, children: [
268
291
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
269
292
  import_web_react.Select,
270
293
  {
271
294
  className: import_index.default.moduleSelect,
272
- placeholder: "Select MF module",
295
+ placeholder: t("moduleInfo.selector.placeholder"),
273
296
  style: { width: "100%" },
274
297
  allowClear: true,
275
298
  showSearch: true,
276
299
  autoWidth: true,
277
300
  onChange: onSelectModule,
278
301
  children: moduleEntries.map(([moduleId, snapshot]) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_web_react.Select.Option, { value: moduleId, children: [
279
- snapshot && "remotesInfo" in snapshot && Object.keys(snapshot.remotesInfo).length ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Tag, { color: "pinkpurple", children: "Consumer" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Tag, { color: "cyan", children: "Provider" }),
302
+ snapshot && "remotesInfo" in snapshot && Object.keys(snapshot.remotesInfo).length ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Tag, { color: "pinkpurple", children: t("moduleInfo.selector.consumerTag") }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Tag, { color: "cyan", children: t("moduleInfo.selector.providerTag") }),
280
303
  " ",
281
304
  moduleId
282
305
  ] }, moduleId))
@@ -289,17 +312,17 @@ const Home = (props) => {
289
312
  ] }) }),
290
313
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.detailBody, children: detailSections.map((section) => {
291
314
  let content;
292
- switch (section.label) {
293
- case "Remotes":
315
+ switch (section.key) {
316
+ case "remotes":
294
317
  content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RemotesTable, { data: section.value });
295
318
  break;
296
- case "Exposes":
319
+ case "exposes":
297
320
  content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExposesTable, { data: section.value });
298
321
  break;
299
- case "Consumers":
322
+ case "consumers":
300
323
  content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ConsumersTable, { data: section.value });
301
324
  break;
302
- case "Shared":
325
+ case "shared":
303
326
  content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SharedTable, { data: section.value });
304
327
  break;
305
328
  default:
@@ -309,9 +332,9 @@ const Home = (props) => {
309
332
  return null;
310
333
  }
311
334
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_index.default.detailRow, children: [
312
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.detailLabel, children: section.label }),
335
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.detailLabel, children: t(`moduleInfo.detail.${section.key}`) }),
313
336
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: import_index.default.detailValue, children: content })
314
- ] }, section.label);
337
+ ] }, section.key);
315
338
  }) })
316
339
  ] }) })
317
340
  ] });
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -17,8 +17,8 @@
17
17
  max-width: 40%;
18
18
  padding: 12px;
19
19
  border-radius: 16px;
20
- border: 1px solid rgba(96, 165, 250, 0.3);
21
- background: rgba(255, 255, 255, 0.9);
20
+ border: 1px solid var(--color-border-1, rgba(96, 165, 250, 0.3));
21
+ background: var(--color-bg-2, rgba(255, 255, 255, 0.9));
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  gap: 8px;
@@ -30,7 +30,7 @@
30
30
  border-radius: 12px;
31
31
  padding: 10px 12px;
32
32
  background: rgba(243, 244, 246, 0.4);
33
- color: #1f2937;
33
+ color: var(--color-text-1, #1f2937);
34
34
  font-size: 13px;
35
35
  text-align: left;
36
36
  cursor: pointer;
@@ -62,8 +62,8 @@
62
62
  min-height: 0;
63
63
  padding: 16px 20px;
64
64
  border-radius: 20px;
65
- border: 1px solid rgba(228, 228, 231, 0.5);
66
- background: rgba(255, 255, 255, 0.9);
65
+ border: 1px solid var(--color-border-2, rgba(228, 228, 231, 0.5));
66
+ background: var(--color-bg-1, rgba(255, 255, 255, 0.9));
67
67
  }
68
68
 
69
69
  .detailHeader_cde89 {
@@ -76,8 +76,9 @@
76
76
  .detailTitle_cde89 {
77
77
  font-size: 16px;
78
78
  font-weight: 600;
79
- color: #1f2937;
79
+ color: var(--color-text-1, #1f2937);
80
80
  word-break: break-word;
81
+ margin-right: 10px;
81
82
  }
82
83
 
83
84
  .detailBody_cde89 {
@@ -102,12 +103,12 @@
102
103
  font-size: 12px;
103
104
  letter-spacing: 0.08em;
104
105
  text-transform: uppercase;
105
- color: #4b5563;
106
+ color: var(--color-text-2, #4b5563);
106
107
  }
107
108
 
108
109
  .detailValue_cde89 {
109
110
  font-size: 13px;
110
- color: #1f2937;
111
+ color: var(--color-text-1, #1f2937);
111
112
  }
112
113
 
113
114
  .valueText_cde89 {
@@ -126,7 +127,7 @@
126
127
  background: rgba(243, 244, 246, 0.4);
127
128
  border: 1px solid rgba(96, 165, 250, 0.3);
128
129
  font-size: 11px;
129
- color: #1f2937;
130
+ color: var(--color-text-1, #1f2937);
130
131
  max-width: 100%;
131
132
  text-overflow: ellipsis;
132
133
  overflow: hidden;
@@ -139,7 +140,7 @@
139
140
  background: rgba(243, 244, 246, 0.4);
140
141
  border: 1px solid rgba(96, 165, 250, 0.3);
141
142
  font-size: 12px;
142
- color: #1f2937;
143
+ color: var(--color-text-1, #1f2937);
143
144
  overflow-x: auto;
144
145
  }
145
146
 
@@ -150,7 +151,7 @@
150
151
  justify-content: center;
151
152
  border-radius: 18px;
152
153
  border: 1px dashed rgba(96, 165, 250, 0.3);
153
- background: rgba(255, 255, 255, 0.9);
154
+ background: var(--color-bg-2, rgba(255, 255, 255, 0.9));
154
155
  }
155
156
 
156
157
  @media (max-width: 960px) {
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -33,12 +32,14 @@ __export(FocusResultDisplay_exports, {
33
32
  module.exports = __toCommonJS(FocusResultDisplay_exports);
34
33
  var import_jsx_runtime = require("react/jsx-runtime");
35
34
  var import_web_react = require("@arco-design/web-react");
35
+ var import_react_i18next = require("react-i18next");
36
36
  var import_FocusResultDisplay = __toESM(require("./FocusResultDisplay.module"));
37
37
  const FocusResultDisplay = ({
38
38
  focusResult,
39
39
  hasData,
40
40
  loadedStatusLabel
41
41
  }) => {
42
+ const { t } = (0, import_react_i18next.useTranslation)();
42
43
  if (focusResult) {
43
44
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_FocusResultDisplay.default.container, children: [
44
45
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_FocusResultDisplay.default.header, children: [
@@ -50,14 +51,14 @@ const FocusResultDisplay = ({
50
51
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_web_react.Tag, { size: "small", className: "loaded-status-tag", children: loadedStatusLabel(focusResult.status) })
51
52
  ] }),
52
53
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_FocusResultDisplay.default.providers, children: [
53
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: import_FocusResultDisplay.default.label, children: "Provider: " }),
54
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: import_FocusResultDisplay.default.label, children: t("sharedDeps.focusResult.providerLabel") }),
54
55
  focusResult.providers.map((p) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: import_FocusResultDisplay.default.providerTag, children: p }, p))
55
56
  ] })
56
57
  ] });
57
58
  }
58
59
  if (hasData) {
59
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: import_FocusResultDisplay.default.emptyText, children: "No version matching the criteria was found in the current shared data. Please check if the package name / version is correct." });
60
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: import_FocusResultDisplay.default.emptyText, children: t("sharedDeps.messages.noFocusMatch") });
60
61
  }
61
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: import_FocusResultDisplay.default.emptyText, children: "No shared dependency data loaded yet." });
62
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: import_FocusResultDisplay.default.emptyText, children: t("sharedDeps.messages.noData") });
62
63
  };
63
64
  var FocusResultDisplay_default = FocusResultDisplay;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -22,24 +22,24 @@
22
22
  align-items: center;
23
23
  gap: 4px;
24
24
  font-size: 11px;
25
- color: #374151; /* text-zinc-700 */
25
+ color: var(--color-text-1, #374151); /* text-zinc-700 */
26
26
  }
27
27
 
28
28
  .label_ee3c9 {
29
- color: #71717a; /* text-zinc-500 */
29
+ color: var(--color-text-2, #71717a); /* text-zinc-500 */
30
30
  }
31
31
 
32
32
  .providerTag_ee3c9 {
33
33
  border-radius: 4px;
34
- background-color: white;
34
+ background-color: var(--color-bg-1, #ffffff);
35
35
  padding: 2px 6px;
36
36
  font-weight: 500;
37
- color: #27272a; /* text-zinc-800 */
37
+ color: var(--color-text-1, #27272a); /* text-zinc-800 */
38
38
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
39
39
  }
40
40
 
41
41
  .emptyText_ee3c9 {
42
42
  font-size: 11px;
43
- color: #71717a; /* text-zinc-500 */
43
+ color: var(--color-text-2, #71717a); /* text-zinc-500 */
44
44
  margin: 0;
45
45
  }