@trops/dash-core 0.1.444 → 0.1.445

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.
@@ -66642,6 +66642,7 @@ async function installDashboardFromRegistry$1(
66642
66642
  appId,
66643
66643
  packageName,
66644
66644
  widgetRegistry = null,
66645
+ installOptions = {},
66645
66646
  ) {
66646
66647
  try {
66647
66648
  // 1. Look up the dashboard package in the registry
@@ -66808,7 +66809,9 @@ async function installDashboardFromRegistry$1(
66808
66809
  };
66809
66810
  }
66810
66811
 
66811
- // 6. Delegate to shared import pipeline
66812
+ // 6. Delegate to shared import pipeline. User overrides (name /
66813
+ // menuId from the install-time options modal) are forwarded so
66814
+ // the workspace is named + filed where the user wants it.
66812
66815
  return await processDashboardConfig(
66813
66816
  win,
66814
66817
  appId,
@@ -66818,6 +66821,9 @@ async function installDashboardFromRegistry$1(
66818
66821
  source: "registry",
66819
66822
  registryPackage: packageName,
66820
66823
  installedVersion: registryPkg.version || null,
66824
+ name: installOptions.name,
66825
+ menuId: installOptions.menuId,
66826
+ themeKey: installOptions.themeKey,
66821
66827
  },
66822
66828
  );
66823
66829
  } catch (error) {
@@ -76431,12 +76437,19 @@ const dashboardConfigApi$2 = {
76431
76437
  *
76432
76438
  * @param {string} appId - Application identifier
76433
76439
  * @param {string} packageName - Registry package name
76440
+ * @param {Object} [options]
76441
+ * @param {string} [options.name] - Override the workspace name
76442
+ * (defaults to the publisher's name). Does NOT change the
76443
+ * published scope.
76444
+ * @param {string|number} [options.menuId] - Override the destination
76445
+ * folder. Defaults to the publisher's menuId.
76434
76446
  * @returns {Promise<Object>} Result with success, workspace, and summary
76435
76447
  */
76436
- installDashboardFromRegistry: (appId, packageName) =>
76448
+ installDashboardFromRegistry: (appId, packageName, options = {}) =>
76437
76449
  ipcRenderer$9.invoke(DASHBOARD_CONFIG_INSTALL, {
76438
76450
  appId,
76439
76451
  packageName,
76452
+ options,
76440
76453
  }),
76441
76454
 
76442
76455
  /**