@trops/dash-core 0.1.136 → 0.1.137

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.
@@ -8719,6 +8719,31 @@ function generateRegistryManifest(dashboardConfig, options = {}) {
8719
8719
  manifest.appOrigin = options.appOrigin || dashboardConfig.appOrigin;
8720
8720
  }
8721
8721
 
8722
+ // Include theme metadata if dashboard bundles a theme
8723
+ if (dashboardConfig.theme) {
8724
+ manifest.theme = {
8725
+ key: dashboardConfig.theme.key || "",
8726
+ name: dashboardConfig.theme.data?.name || dashboardConfig.theme.key || "",
8727
+ };
8728
+ if (dashboardConfig.theme.registryPackage) {
8729
+ manifest.theme.registryPackage = dashboardConfig.theme.registryPackage;
8730
+ }
8731
+ // Extract color values for display
8732
+ const td = dashboardConfig.theme.data;
8733
+ if (td) {
8734
+ const colors = {};
8735
+ if (td.primary || td.colors?.primary)
8736
+ colors.primary = td.primary || td.colors.primary;
8737
+ if (td.secondary || td.colors?.secondary)
8738
+ colors.secondary = td.secondary || td.colors.secondary;
8739
+ if (td.tertiary || td.colors?.tertiary)
8740
+ colors.tertiary = td.tertiary || td.colors.tertiary;
8741
+ if (Object.keys(colors).length > 0) {
8742
+ manifest.theme.colors = colors;
8743
+ }
8744
+ }
8745
+ }
8746
+
8722
8747
  return manifest;
8723
8748
  }
8724
8749