@trops/dash-core 0.1.104 → 0.1.105

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.
@@ -11074,15 +11074,20 @@ async function prepareDashboardForPublish$1(
11074
11074
  let missingFromRegistry = [];
11075
11075
  if (!registryCheckFailed) {
11076
11076
  const registryNames = new Set(registryPackages.map((p) => p.name));
11077
- missingFromRegistry = [
11078
- ...new Set(
11079
- widgets
11080
- .filter(
11081
- (w) => w.required !== false && !registryNames.has(w.package),
11082
- )
11083
- .map((w) => w.package),
11084
- ),
11085
- ];
11077
+ const missingWidgets = widgets.filter(
11078
+ (w) => w.required !== false && !registryNames.has(w.package),
11079
+ );
11080
+ const grouped = {};
11081
+ for (const w of missingWidgets) {
11082
+ if (!grouped[w.package]) grouped[w.package] = [];
11083
+ const widgetName = w.id.includes(".") ? w.id.split(".")[1] : w.id;
11084
+ if (!grouped[w.package].includes(widgetName)) {
11085
+ grouped[w.package].push(widgetName);
11086
+ }
11087
+ }
11088
+ missingFromRegistry = Object.entries(grouped).map(
11089
+ ([pkg, widgetNames]) => ({ package: pkg, widgets: widgetNames }),
11090
+ );
11086
11091
  }
11087
11092
 
11088
11093
  // 6. Generate registry manifest