@industry-theme/repository-composition-panels 0.2.15 → 0.2.16
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/assets/orchestrators/index.d.ts +28 -0
- package/dist/assets/orchestrators/index.d.ts.map +1 -0
- package/dist/panels/PackageCompositionPanel.d.ts.map +1 -1
- package/dist/panels/components/OrchestratorBadge.d.ts +10 -0
- package/dist/panels/components/OrchestratorBadge.d.ts.map +1 -0
- package/dist/panels/components/index.d.ts +1 -0
- package/dist/panels/components/index.d.ts.map +1 -1
- package/dist/panels.bundle.js +157 -1
- package/dist/panels.bundle.js.map +1 -1
- package/dist/types/composition.d.ts +5 -115
- package/dist/types/composition.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface LogoProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
export declare const TurboLogo: React.FC<LogoProps>;
|
|
8
|
+
export declare const NxLogo: React.FC<LogoProps>;
|
|
9
|
+
export declare const LernaLogo: React.FC<LogoProps>;
|
|
10
|
+
export declare const PnpmLogo: React.FC<LogoProps>;
|
|
11
|
+
export declare const RushLogo: React.FC<LogoProps>;
|
|
12
|
+
export declare const orchestratorLogos: {
|
|
13
|
+
readonly turbo: React.FC<LogoProps>;
|
|
14
|
+
readonly nx: React.FC<LogoProps>;
|
|
15
|
+
readonly lerna: React.FC<LogoProps>;
|
|
16
|
+
readonly pnpm: React.FC<LogoProps>;
|
|
17
|
+
readonly rush: React.FC<LogoProps>;
|
|
18
|
+
};
|
|
19
|
+
export declare const orchestratorColors: {
|
|
20
|
+
readonly turbo: "#FF1E56";
|
|
21
|
+
readonly nx: "#143055";
|
|
22
|
+
readonly lerna: "#9333EA";
|
|
23
|
+
readonly pnpm: "#F69220";
|
|
24
|
+
readonly rush: "#0078D4";
|
|
25
|
+
readonly none: "#6B7280";
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/orchestrators/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAczC,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CActC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAczC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAcxC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAcxC,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAGX,eAAO,MAAM,kBAAkB;;;;;;;CAOrB,CAAC"}
|
|
@@ -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;AA8UrF,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;AAoiBD;;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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MonorepoOrchestrator } from '../../types/composition';
|
|
3
|
+
interface OrchestratorBadgeProps {
|
|
4
|
+
orchestrator: MonorepoOrchestrator;
|
|
5
|
+
size?: 'sm' | 'md';
|
|
6
|
+
showLabel?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const OrchestratorBadge: React.FC<OrchestratorBadgeProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=OrchestratorBadge.d.ts.map
|
|
@@ -0,0 +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,MAAM,yBAAyB,CAAC;AAGpE,UAAU,sBAAsB;IAC9B,YAAY,EAAE,oBAAoB,CAAC;IACnC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAWD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA0C9D,CAAC"}
|
|
@@ -2,5 +2,6 @@ export { DependencyInfoModal } from './DependencyInfoModal';
|
|
|
2
2
|
export { DependencyRow } from './DependencyRow';
|
|
3
3
|
export { FilterBar } from './FilterBar';
|
|
4
4
|
export { LensReadinessSection } from './LensReadinessSection';
|
|
5
|
+
export { OrchestratorBadge } from './OrchestratorBadge';
|
|
5
6
|
export { OtherScriptsSection } from './OtherScriptsSection';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -9532,6 +9532,155 @@ const LensReadinessSection = ({
|
|
|
9532
9532
|
/* @__PURE__ */ jsx("div", { children: sortedLenses.map((lens) => /* @__PURE__ */ jsx(LensRow, { lens }, lens.lensId)) })
|
|
9533
9533
|
] });
|
|
9534
9534
|
};
|
|
9535
|
+
const TurboLogo = ({ size: size2 = 24, className, style }) => /* @__PURE__ */ jsxs(
|
|
9536
|
+
"svg",
|
|
9537
|
+
{
|
|
9538
|
+
width: size2,
|
|
9539
|
+
height: size2,
|
|
9540
|
+
viewBox: "0 0 24 24",
|
|
9541
|
+
fill: "#FF1E56",
|
|
9542
|
+
role: "img",
|
|
9543
|
+
className,
|
|
9544
|
+
style,
|
|
9545
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9546
|
+
children: [
|
|
9547
|
+
/* @__PURE__ */ jsx("title", { children: "Turborepo" }),
|
|
9548
|
+
/* @__PURE__ */ jsx("path", { d: "M11.9906 4.1957c-4.2998 0-7.7981 3.501-7.7981 7.8043s3.4983 7.8043 7.7981 7.8043c4.2999 0 7.7982-3.501 7.7982-7.8043s-3.4983-7.8043-7.7982-7.8043m0 11.843c-2.229 0-4.0356-1.8079-4.0356-4.0387s1.8065-4.0387 4.0356-4.0387S16.0262 9.7692 16.0262 12s-1.8065 4.0388-4.0356 4.0388m.6534-13.1249V0C18.9726.3386 24 5.5822 24 12s-5.0274 11.66-11.356 12v-2.9139c4.7167-.3372 8.4516-4.2814 8.4516-9.0861s-3.735-8.749-8.4516-9.0861M5.113 17.9586c-1.2502-1.4446-2.0562-3.2845-2.2-5.3046H0c.151 2.8266 1.2808 5.3917 3.051 7.3668l2.0606-2.0622zM11.3372 24v-2.9139c-2.02-.1439-3.8584-.949-5.3019-2.2018l-2.0606 2.0623c1.975 1.773 4.538 2.9022 7.361 3.0534z" })
|
|
9549
|
+
]
|
|
9550
|
+
}
|
|
9551
|
+
);
|
|
9552
|
+
const NxLogo = ({ size: size2 = 24, className, style }) => /* @__PURE__ */ jsxs(
|
|
9553
|
+
"svg",
|
|
9554
|
+
{
|
|
9555
|
+
width: size2,
|
|
9556
|
+
height: size2,
|
|
9557
|
+
viewBox: "0 0 24 24",
|
|
9558
|
+
fill: "#143055",
|
|
9559
|
+
role: "img",
|
|
9560
|
+
className,
|
|
9561
|
+
style,
|
|
9562
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9563
|
+
children: [
|
|
9564
|
+
/* @__PURE__ */ jsx("title", { children: "Nx" }),
|
|
9565
|
+
/* @__PURE__ */ jsx("path", { d: "M11.987 14.138l-3.132 4.923-5.193-8.427-.012 8.822H0V4.544h3.691l5.247 8.833.005-3.998 3.044 4.759zm.601-5.761c.024-.048 0-3.784.008-3.833h-3.65c.002.059-.005 3.776-.003 3.833h3.645zm5.634 4.134a2.061 2.061 0 0 0-1.969 1.336 1.963 1.963 0 0 1 2.343-.739c.396.161.917.422 1.33.283a2.1 2.1 0 0 0-1.704-.88zm3.39 1.061c-.375-.13-.8-.277-1.109-.681-.06-.08-.116-.17-.176-.265a2.143 2.143 0 0 0-.533-.642c-.294-.216-.68-.322-1.18-.322a2.482 2.482 0 0 0-2.294 1.536 2.325 2.325 0 0 1 4.002.388.75.75 0 0 0 .836.334c.493-.105.46.36 1.203.518v-.133c-.003-.446-.246-.55-.75-.733zm2.024 1.266a.723.723 0 0 0 .347-.638c-.01-2.957-2.41-5.487-5.37-5.487a5.364 5.364 0 0 0-4.487 2.418c-.01-.026-1.522-2.39-1.538-2.418H8.943l3.463 5.423-3.379 5.32h3.54l1.54-2.366 1.568 2.366h3.541l-3.21-5.052a.7.7 0 0 1-.084-.32 2.69 2.69 0 0 1 2.69-2.691h.001c1.488 0 1.736.89 2.057 1.308.634.826 1.9.464 1.9 1.541a.707.707 0 0 0 1.066.596zm.35.133c-.173.372-.56.338-.755.639-.176.271.114.412.114.412s.337.156.538-.311c.104-.231.14-.488.103-.74z" })
|
|
9566
|
+
]
|
|
9567
|
+
}
|
|
9568
|
+
);
|
|
9569
|
+
const LernaLogo = ({ size: size2 = 24, className, style }) => /* @__PURE__ */ jsxs(
|
|
9570
|
+
"svg",
|
|
9571
|
+
{
|
|
9572
|
+
width: size2,
|
|
9573
|
+
height: size2,
|
|
9574
|
+
viewBox: "0 0 24 24",
|
|
9575
|
+
fill: "#9333EA",
|
|
9576
|
+
role: "img",
|
|
9577
|
+
className,
|
|
9578
|
+
style,
|
|
9579
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9580
|
+
children: [
|
|
9581
|
+
/* @__PURE__ */ jsx("title", { children: "Lerna" }),
|
|
9582
|
+
/* @__PURE__ */ jsx("path", { d: "M12.87 10.071l5.551 9.618h1.073L12.87 7.93zm0 0L6.536 0H4.389l7.394 12.81 1.087-1.882zm5.551 9.618L12 12.212l-1.087 1.882 5.435 9.412h2.147zM12 12.212l-5.435-9.43H4.418l6.495 11.313zm6.506 5.787H5.494L4.418 19.88h15.164zM5.494 18L12 6.712 10.913 4.83 3.345 18zm0 0l6.506 5.506 6.507-5.505z" })
|
|
9583
|
+
]
|
|
9584
|
+
}
|
|
9585
|
+
);
|
|
9586
|
+
const PnpmLogo = ({ size: size2 = 24, className, style }) => /* @__PURE__ */ jsxs(
|
|
9587
|
+
"svg",
|
|
9588
|
+
{
|
|
9589
|
+
width: size2,
|
|
9590
|
+
height: size2,
|
|
9591
|
+
viewBox: "0 0 24 24",
|
|
9592
|
+
fill: "#F69220",
|
|
9593
|
+
role: "img",
|
|
9594
|
+
className,
|
|
9595
|
+
style,
|
|
9596
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9597
|
+
children: [
|
|
9598
|
+
/* @__PURE__ */ jsx("title", { children: "pnpm" }),
|
|
9599
|
+
/* @__PURE__ */ jsx("path", { d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z" })
|
|
9600
|
+
]
|
|
9601
|
+
}
|
|
9602
|
+
);
|
|
9603
|
+
const RushLogo = ({ size: size2 = 24, className, style }) => /* @__PURE__ */ jsxs(
|
|
9604
|
+
"svg",
|
|
9605
|
+
{
|
|
9606
|
+
width: size2,
|
|
9607
|
+
height: size2,
|
|
9608
|
+
viewBox: "0 0 24 24",
|
|
9609
|
+
fill: "#0078D4",
|
|
9610
|
+
role: "img",
|
|
9611
|
+
className,
|
|
9612
|
+
style,
|
|
9613
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9614
|
+
children: [
|
|
9615
|
+
/* @__PURE__ */ jsx("title", { children: "Rush" }),
|
|
9616
|
+
/* @__PURE__ */ jsx("path", { d: "M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.18l7.24 3.62L12 11.42 4.76 7.8 12 4.18zM4 16.54V9.23l7 3.5v7.31l-7-3.5zm9 3.5v-7.31l7-3.5v7.31l-7 3.5z" })
|
|
9617
|
+
]
|
|
9618
|
+
}
|
|
9619
|
+
);
|
|
9620
|
+
const orchestratorLogos = {
|
|
9621
|
+
turbo: TurboLogo,
|
|
9622
|
+
nx: NxLogo,
|
|
9623
|
+
lerna: LernaLogo,
|
|
9624
|
+
pnpm: PnpmLogo,
|
|
9625
|
+
rush: RushLogo
|
|
9626
|
+
};
|
|
9627
|
+
const orchestratorColors = {
|
|
9628
|
+
turbo: "#FF1E56",
|
|
9629
|
+
nx: "#143055",
|
|
9630
|
+
lerna: "#9333EA",
|
|
9631
|
+
pnpm: "#F69220",
|
|
9632
|
+
rush: "#0078D4",
|
|
9633
|
+
none: "#6B7280"
|
|
9634
|
+
};
|
|
9635
|
+
const orchestratorLabels = {
|
|
9636
|
+
turbo: "Turbo",
|
|
9637
|
+
nx: "Nx",
|
|
9638
|
+
lerna: "Lerna",
|
|
9639
|
+
pnpm: "pnpm",
|
|
9640
|
+
rush: "Rush",
|
|
9641
|
+
none: "Unknown"
|
|
9642
|
+
};
|
|
9643
|
+
const OrchestratorBadge = ({
|
|
9644
|
+
orchestrator,
|
|
9645
|
+
size: size2 = "sm",
|
|
9646
|
+
showLabel = true
|
|
9647
|
+
}) => {
|
|
9648
|
+
const { theme } = useTheme();
|
|
9649
|
+
if (orchestrator === "none") {
|
|
9650
|
+
return null;
|
|
9651
|
+
}
|
|
9652
|
+
const LogoComponent = orchestratorLogos[orchestrator];
|
|
9653
|
+
const color = orchestratorColors[orchestrator];
|
|
9654
|
+
const label = orchestratorLabels[orchestrator];
|
|
9655
|
+
const isSmall = size2 === "sm";
|
|
9656
|
+
const iconSize = isSmall ? 14 : 18;
|
|
9657
|
+
const fontSize = isSmall ? theme.fontSizes[0] : theme.fontSizes[1];
|
|
9658
|
+
const padding = isSmall ? "3px 6px" : "4px 10px";
|
|
9659
|
+
const gap = isSmall ? "4px" : "6px";
|
|
9660
|
+
return /* @__PURE__ */ jsxs(
|
|
9661
|
+
"span",
|
|
9662
|
+
{
|
|
9663
|
+
style: {
|
|
9664
|
+
display: "inline-flex",
|
|
9665
|
+
alignItems: "center",
|
|
9666
|
+
gap,
|
|
9667
|
+
padding,
|
|
9668
|
+
backgroundColor: color + "18",
|
|
9669
|
+
borderRadius: "4px",
|
|
9670
|
+
fontSize,
|
|
9671
|
+
fontWeight: 500,
|
|
9672
|
+
color: theme.colors.text,
|
|
9673
|
+
whiteSpace: "nowrap",
|
|
9674
|
+
border: `1px solid ${color}30`
|
|
9675
|
+
},
|
|
9676
|
+
title: `Monorepo managed by ${label}`,
|
|
9677
|
+
children: [
|
|
9678
|
+
/* @__PURE__ */ jsx(LogoComponent, { size: iconSize }),
|
|
9679
|
+
showLabel && /* @__PURE__ */ jsx("span", { children: label })
|
|
9680
|
+
]
|
|
9681
|
+
}
|
|
9682
|
+
);
|
|
9683
|
+
};
|
|
9535
9684
|
const OtherScriptsSection = ({
|
|
9536
9685
|
commands,
|
|
9537
9686
|
onCommandClick
|
|
@@ -9707,7 +9856,7 @@ function findInternalDependencies(pkg, allPackages) {
|
|
|
9707
9856
|
return { dependsOn, usedBy };
|
|
9708
9857
|
}
|
|
9709
9858
|
const PackageSummaryCard = ({ pkg, allPackages, onClick, onHover }) => {
|
|
9710
|
-
var _a;
|
|
9859
|
+
var _a, _b;
|
|
9711
9860
|
const { theme } = useTheme();
|
|
9712
9861
|
const deps = pkg.packageData.dependencies || {};
|
|
9713
9862
|
const devDeps = pkg.packageData.devDependencies || {};
|
|
@@ -9791,6 +9940,13 @@ const PackageSummaryCard = ({ pkg, allPackages, onClick, onHover }) => {
|
|
|
9791
9940
|
}
|
|
9792
9941
|
)
|
|
9793
9942
|
] }),
|
|
9943
|
+
pkg.packageData.isMonorepoRoot && ((_b = pkg.packageData.monorepoMetadata) == null ? void 0 : _b.orchestrator) && /* @__PURE__ */ jsx(
|
|
9944
|
+
OrchestratorBadge,
|
|
9945
|
+
{
|
|
9946
|
+
orchestrator: pkg.packageData.monorepoMetadata.orchestrator,
|
|
9947
|
+
size: "sm"
|
|
9948
|
+
}
|
|
9949
|
+
),
|
|
9794
9950
|
packageRole && /* @__PURE__ */ jsxs(
|
|
9795
9951
|
"span",
|
|
9796
9952
|
{
|