@trops/dash-core 0.1.124 → 0.1.126

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.
@@ -6241,9 +6241,7 @@ async function searchRegistry$1(query = "", filters = {}) {
6241
6241
  // Apply API capability filter — only return packages whose required
6242
6242
  // "api" providers are all present in the app's capability set
6243
6243
  if (filters.appCapabilities && filters.appCapabilities.length) {
6244
- const capSet = new Set(
6245
- filters.appCapabilities.map((c) => c.toLowerCase()),
6246
- );
6244
+ const capSet = new Set(filters.appCapabilities.map((c) => c.toLowerCase()));
6247
6245
  packages = packages.filter((pkg) => {
6248
6246
  // Collect all "api" provider requirements from package-level and widget-level providers
6249
6247
  const apiProviders = [];
@@ -8663,7 +8661,7 @@ function generateRegistryManifest(dashboardConfig, options = {}) {
8663
8661
  category: options.category || "general",
8664
8662
  tags: dashboardConfig.tags || [],
8665
8663
  icon: dashboardConfig.icon || "grip",
8666
- downloadUrl: `https://github.com/${githubUser}/dash-registry/releases/download/${githubUser}--${name}--v{version}/${name}-v{version}.zip`,
8664
+ downloadUrl: `https://github.com/${githubUser}/dash-registry/releases/download/${githubUser}--${name}--v{version}/dashboard-${name}-v{version}.zip`,
8667
8665
  repository: options.repository || "",
8668
8666
  publishedAt: new Date().toISOString(),
8669
8667
  widgets: (dashboardConfig.widgets || []).map((w) => ({
@@ -10482,14 +10480,11 @@ async function getRegistryPackages$1() {
10482
10480
  if (!stored) return null;
10483
10481
 
10484
10482
  try {
10485
- const response = await fetch(
10486
- `${REGISTRY_BASE_URL$1}/api/auth/me/packages`,
10487
- {
10488
- headers: {
10489
- Authorization: `Bearer ${stored.token}`,
10490
- },
10483
+ const response = await fetch(`${REGISTRY_BASE_URL$1}/api/auth/me/packages`, {
10484
+ headers: {
10485
+ Authorization: `Bearer ${stored.token}`,
10491
10486
  },
10492
- );
10487
+ });
10493
10488
 
10494
10489
  if (response.status === 401) {
10495
10490
  clearToken();
@@ -10809,7 +10804,10 @@ async function exportDashboardConfig$1(
10809
10804
 
10810
10805
  const { canceled, filePath } = await dialog.showSaveDialog(win, {
10811
10806
  title: "Export Dashboard as ZIP",
10812
- defaultPath: path$1.join(app$1.getPath("desktop"), `${sanitizedName}.zip`),
10807
+ defaultPath: path$1.join(
10808
+ app$1.getPath("desktop"),
10809
+ `dashboard-${sanitizedName}.zip`,
10810
+ ),
10813
10811
  filters: [{ name: "ZIP Archive", extensions: ["zip"] }],
10814
10812
  });
10815
10813
 
@@ -11517,7 +11515,7 @@ async function prepareDashboardForPublish$1(
11517
11515
  title: "Save Dashboard Package for Registry",
11518
11516
  defaultPath: path$1.join(
11519
11517
  app$1.getPath("desktop"),
11520
- `${sanitizedName}-v${manifest.version}.zip`,
11518
+ `dashboard-${sanitizedName}-v${manifest.version}.zip`,
11521
11519
  ),
11522
11520
  filters: [{ name: "ZIP Archive", extensions: ["zip"] }],
11523
11521
  });
@@ -13924,8 +13922,7 @@ const dashboardConfigApi$2 = {
13924
13922
  *
13925
13923
  * @returns {Promise<Object>} Result with success, filePath, and dashboardConfig preview
13926
13924
  */
13927
- selectDashboardFile: () =>
13928
- ipcRenderer$5.invoke(DASHBOARD_CONFIG_SELECT_FILE),
13925
+ selectDashboardFile: () => ipcRenderer$5.invoke(DASHBOARD_CONFIG_SELECT_FILE),
13929
13926
 
13930
13927
  /**
13931
13928
  * Import a dashboard config from a ZIP file.