@trops/dash-core 0.1.243 → 0.1.245

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.
@@ -29222,6 +29222,16 @@ function buildWidgetDependencies$1(
29222
29222
  }
29223
29223
  }
29224
29224
 
29225
+ // Final fallback: if widget name looks like a scoped id, parse it
29226
+ if (!packageName || packageName === name) {
29227
+ const idParts = name.split(".");
29228
+ if (idParts.length === 3) {
29229
+ scope = scope || idParts[0];
29230
+ packageName = idParts[1];
29231
+ widgetName = idParts[2];
29232
+ }
29233
+ }
29234
+
29225
29235
  const id =
29226
29236
  scope && packageName && widgetName
29227
29237
  ? `${scope}.${packageName}.${widgetName}`
@@ -33110,12 +33120,12 @@ async function processDashboardConfig(
33110
33120
  try {
33111
33121
  const registryPkg = await getPackage(packageName);
33112
33122
  if (registryPkg && registryPkg.downloadUrl) {
33113
- await widgetRegistry.downloadWidget(
33123
+ const config = await widgetRegistry.downloadWidget(
33114
33124
  packageName,
33115
33125
  registryPkg.downloadUrl,
33116
33126
  registryPkg.dashConfigUrl || null,
33117
33127
  );
33118
- installSummary.installed.push(packageName);
33128
+ installSummary.installed.push({ packageName, config });
33119
33129
  installedPackages.add(packageName);
33120
33130
  } else {
33121
33131
  installSummary.failed.push({
@@ -33130,6 +33140,24 @@ async function processDashboardConfig(
33130
33140
  });
33131
33141
  }
33132
33142
  }
33143
+
33144
+ // Notify renderer about auto-installed widgets
33145
+ if (installSummary.installed.length > 0) {
33146
+ const { BrowserWindow } = require$$0$2;
33147
+ for (const { packageName, config } of installSummary.installed) {
33148
+ BrowserWindow.getAllWindows().forEach((w) => {
33149
+ w.webContents.send("widget:installed", {
33150
+ widgetName: packageName,
33151
+ config: config || {},
33152
+ });
33153
+ });
33154
+ }
33155
+ }
33156
+
33157
+ // Flatten installed list to just package names for the summary
33158
+ installSummary.installed = installSummary.installed.map((entry) =>
33159
+ typeof entry === "string" ? entry : entry.packageName,
33160
+ );
33133
33161
  }
33134
33162
 
33135
33163
  // 2. Install bundled theme if present