@industry-theme/repository-composition-panels 0.2.17 → 0.2.18
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageCompositionPanel.d.ts","sourceRoot":"","sources":["../../src/panels/PackageCompositionPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAmBjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"PackageCompositionPanel.d.ts","sourceRoot":"","sources":["../../src/panels/PackageCompositionPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAmBjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAsVrF,MAAM,WAAW,4BAA4B;IAC3C,0CAA0C;IAC1C,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,6CAA6C;IAC7C,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IACjD,gDAAgD;IAChD,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,mEAAmE;IACnE,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,GAAG,IAAI,KAAK,IAAI,CAAC;IACpD,iEAAiE;IACjE,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,GAAG,IAAI,KAAK,IAAI,CAAC;CACtD;AA8jBD;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAoNjF,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAgClD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyCjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrchestratorBadge.d.ts","sourceRoot":"","sources":["../../../src/panels/components/OrchestratorBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGtF,UAAU,sBAAsB;IAC9B,YAAY,EAAE,oBAAoB,CAAC;IACnC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;
|
|
1
|
+
{"version":3,"file":"OrchestratorBadge.d.ts","sourceRoot":"","sources":["../../../src/panels/components/OrchestratorBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGtF,UAAU,sBAAsB;IAC9B,YAAY,EAAE,oBAAoB,CAAC;IACnC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAiBD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA4C9D,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -10049,8 +10049,14 @@ const orchestratorLabels = {
|
|
|
10049
10049
|
rush: "Rush",
|
|
10050
10050
|
none: "Unknown"
|
|
10051
10051
|
};
|
|
10052
|
+
const rootRoleDescriptions = {
|
|
10053
|
+
orchestrator: "Config/scripts only",
|
|
10054
|
+
application: "Has source code",
|
|
10055
|
+
hybrid: "Has infrastructure code"
|
|
10056
|
+
};
|
|
10052
10057
|
const OrchestratorBadge = ({
|
|
10053
10058
|
orchestrator,
|
|
10059
|
+
rootRole,
|
|
10054
10060
|
size: size2 = "sm",
|
|
10055
10061
|
showLabel = true
|
|
10056
10062
|
}) => {
|
|
@@ -10061,6 +10067,7 @@ const OrchestratorBadge = ({
|
|
|
10061
10067
|
const LogoComponent = orchestratorLogos[orchestrator];
|
|
10062
10068
|
const color = orchestratorColors[orchestrator];
|
|
10063
10069
|
const label = orchestratorLabels[orchestrator];
|
|
10070
|
+
const roleDesc = rootRole ? rootRoleDescriptions[rootRole] : null;
|
|
10064
10071
|
const isSmall = size2 === "sm";
|
|
10065
10072
|
const iconSize = isSmall ? 14 : 18;
|
|
10066
10073
|
const fontSize = isSmall ? theme.fontSizes[0] : theme.fontSizes[1];
|
|
@@ -10082,7 +10089,7 @@ const OrchestratorBadge = ({
|
|
|
10082
10089
|
whiteSpace: "nowrap",
|
|
10083
10090
|
border: `1px solid ${color}30`
|
|
10084
10091
|
},
|
|
10085
|
-
title: `Monorepo managed by ${label}`,
|
|
10092
|
+
title: `Monorepo managed by ${label}${roleDesc ? ` (${roleDesc})` : ""}`,
|
|
10086
10093
|
children: [
|
|
10087
10094
|
/* @__PURE__ */ jsx(LogoComponent, { size: iconSize }),
|
|
10088
10095
|
showLabel && /* @__PURE__ */ jsx("span", { children: label })
|
|
@@ -10355,6 +10362,7 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick, onHover }) => {
|
|
|
10355
10362
|
OrchestratorBadge,
|
|
10356
10363
|
{
|
|
10357
10364
|
orchestrator: pkg.packageData.monorepoMetadata.orchestrator,
|
|
10365
|
+
rootRole: pkg.packageData.monorepoMetadata.rootRole,
|
|
10358
10366
|
size: "sm"
|
|
10359
10367
|
}
|
|
10360
10368
|
),
|