@trops/dash-core 0.1.349 → 0.1.350
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.
- package/dist/electron/index.js +7 -1
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +103 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +103 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/electron/index.js
CHANGED
|
@@ -62711,6 +62711,7 @@ const { toDisplayColor: toDisplayColor$1 } = require$$8;
|
|
|
62711
62711
|
* @param {string} options.category - Registry category (default: "general")
|
|
62712
62712
|
* @param {string} options.repository - Repository URL (optional)
|
|
62713
62713
|
* @param {string} options.appOrigin - Originating app package name (optional)
|
|
62714
|
+
* @param {"public"|"private"} options.visibility - Initial visibility (default: "public")
|
|
62714
62715
|
* @returns {Object} Registry manifest object
|
|
62715
62716
|
*/
|
|
62716
62717
|
function generateRegistryManifest(dashboardConfig, options = {}) {
|
|
@@ -62721,6 +62722,7 @@ function generateRegistryManifest(dashboardConfig, options = {}) {
|
|
|
62721
62722
|
|
|
62722
62723
|
const githubUser = options.githubUser || "";
|
|
62723
62724
|
const version = "1.0.0";
|
|
62725
|
+
const visibility = options.visibility === "private" ? "private" : "public";
|
|
62724
62726
|
|
|
62725
62727
|
const manifest = {
|
|
62726
62728
|
githubUser,
|
|
@@ -62729,6 +62731,7 @@ function generateRegistryManifest(dashboardConfig, options = {}) {
|
|
|
62729
62731
|
author: dashboardConfig.author?.name || "",
|
|
62730
62732
|
description: dashboardConfig.description || "",
|
|
62731
62733
|
version,
|
|
62734
|
+
visibility,
|
|
62732
62735
|
type: "dashboard",
|
|
62733
62736
|
category: options.category || "general",
|
|
62734
62737
|
tags: dashboardConfig.tags || [],
|
|
@@ -63117,13 +63120,14 @@ function sanitizeName(name) {
|
|
|
63117
63120
|
*
|
|
63118
63121
|
* @param {Object} themeData - The raw theme object
|
|
63119
63122
|
* @param {string} themeKey - The theme key/name
|
|
63120
|
-
* @param {Object} options - Publish options { authorName, description, tags, scope }
|
|
63123
|
+
* @param {Object} options - Publish options { authorName, description, tags, scope, visibility }
|
|
63121
63124
|
* @returns {Object} Registry manifest
|
|
63122
63125
|
*/
|
|
63123
63126
|
function generateThemeRegistryManifest(themeData, themeKey, options = {}) {
|
|
63124
63127
|
const humanName = themeData.name || themeKey;
|
|
63125
63128
|
const sanitizedName = sanitizeName(humanName);
|
|
63126
63129
|
const colors = extractColors(themeData);
|
|
63130
|
+
const visibility = options.visibility === "private" ? "private" : "public";
|
|
63127
63131
|
|
|
63128
63132
|
return {
|
|
63129
63133
|
scope: options.scope || "",
|
|
@@ -63132,6 +63136,7 @@ function generateThemeRegistryManifest(themeData, themeKey, options = {}) {
|
|
|
63132
63136
|
author: options.authorName || "",
|
|
63133
63137
|
description: options.description || "",
|
|
63134
63138
|
version: "1.0.0",
|
|
63139
|
+
visibility,
|
|
63135
63140
|
type: "theme",
|
|
63136
63141
|
category: "general",
|
|
63137
63142
|
tags: options.tags || [],
|
|
@@ -64888,6 +64893,7 @@ async function prepareDashboardForPublish$1(
|
|
|
64888
64893
|
category: options.category || "general",
|
|
64889
64894
|
repository: options.repository || "",
|
|
64890
64895
|
appOrigin: appId,
|
|
64896
|
+
visibility: options.visibility || "public",
|
|
64891
64897
|
});
|
|
64892
64898
|
|
|
64893
64899
|
// 9. Show save dialog for the publish package
|