@industry-theme/repository-composition-panels 0.7.16 → 0.7.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.
- package/dist/{browserAll-XNN46GKF.js → browserAll-Bj2nHo1Q.js} +3 -3
- package/dist/{browserAll-XNN46GKF.js.map → browserAll-Bj2nHo1Q.js.map} +1 -1
- package/dist/{index-Bt-XsLNt.js → index-BqsaXH0f.js} +398 -179
- package/dist/{index-Bt-XsLNt.js.map → index-BqsaXH0f.js.map} +1 -1
- package/dist/{init-Ccb5WXmw.js → init-T4cOxNb3.js} +2 -2
- package/dist/{init-Ccb5WXmw.js.map → init-T4cOxNb3.js.map} +1 -1
- package/dist/panels/overworld-map/components/IsometricRenderer.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/RepoSprite.d.ts +8 -0
- package/dist/panels/overworld-map/components/RepoSprite.d.ts.map +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-DlkJrGSQ.js +3 -0
- package/dist/webworkerAll-DlkJrGSQ.js.map +1 -0
- package/package.json +1 -1
- package/dist/webworkerAll-Ez5pUZRt.js +0 -3
- package/dist/webworkerAll-Ez5pUZRt.js.map +0 -1
|
@@ -106207,7 +106207,7 @@ const browserExt = {
|
|
|
106207
106207
|
},
|
|
106208
106208
|
test: () => true,
|
|
106209
106209
|
load: async () => {
|
|
106210
|
-
await import("./browserAll-
|
|
106210
|
+
await import("./browserAll-Bj2nHo1Q.js");
|
|
106211
106211
|
}
|
|
106212
106212
|
};
|
|
106213
106213
|
const webworkerExt = {
|
|
@@ -106218,7 +106218,7 @@ const webworkerExt = {
|
|
|
106218
106218
|
},
|
|
106219
106219
|
test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
|
|
106220
106220
|
load: async () => {
|
|
106221
|
-
await import("./webworkerAll-
|
|
106221
|
+
await import("./webworkerAll-DlkJrGSQ.js");
|
|
106222
106222
|
}
|
|
106223
106223
|
};
|
|
106224
106224
|
class ObservablePoint {
|
|
@@ -148126,7 +148126,7 @@ function generateMITFlowerArch(config) {
|
|
|
148126
148126
|
fontFamily: "Arial",
|
|
148127
148127
|
fontWeight: "bold"
|
|
148128
148128
|
},
|
|
148129
|
-
resolution:
|
|
148129
|
+
resolution: 16
|
|
148130
148130
|
});
|
|
148131
148131
|
mitText.anchor.set(0.5, 0.5);
|
|
148132
148132
|
mitText.y = flagTop + flagHeight * 0.5;
|
|
@@ -148161,7 +148161,7 @@ function generateMITFlowerArch(config) {
|
|
|
148161
148161
|
fontFamily: "Arial",
|
|
148162
148162
|
fontWeight: "600"
|
|
148163
148163
|
},
|
|
148164
|
-
resolution:
|
|
148164
|
+
resolution: 16
|
|
148165
148165
|
});
|
|
148166
148166
|
nameText.anchor.set(0.5, 0.5);
|
|
148167
148167
|
nameText.y = signBoardY + signHeight / 2;
|
|
@@ -148341,7 +148341,7 @@ function generateApacheSign(config) {
|
|
|
148341
148341
|
fontFamily: "Arial",
|
|
148342
148342
|
fontWeight: "600"
|
|
148343
148343
|
},
|
|
148344
|
-
resolution:
|
|
148344
|
+
resolution: 16
|
|
148345
148345
|
});
|
|
148346
148346
|
nameText.anchor.set(0.5, 0.5);
|
|
148347
148347
|
nameText.y = signBoardY + signBoardHeight / 2;
|
|
@@ -148474,7 +148474,7 @@ function generateGPLSign(config) {
|
|
|
148474
148474
|
fontFamily: "Arial",
|
|
148475
148475
|
fontWeight: "bold"
|
|
148476
148476
|
},
|
|
148477
|
-
resolution:
|
|
148477
|
+
resolution: 16
|
|
148478
148478
|
});
|
|
148479
148479
|
gplText.anchor.set(0.5, 0.5);
|
|
148480
148480
|
gplText.y = flagTop + flagHeight * 0.5;
|
|
@@ -148518,7 +148518,7 @@ function generateGPLSign(config) {
|
|
|
148518
148518
|
fontFamily: "Arial",
|
|
148519
148519
|
fontWeight: "600"
|
|
148520
148520
|
},
|
|
148521
|
-
resolution:
|
|
148521
|
+
resolution: 16
|
|
148522
148522
|
});
|
|
148523
148523
|
nameText.anchor.set(0.5, 0.5);
|
|
148524
148524
|
nameText.y = signBoardY + signBoardHeight / 2;
|
|
@@ -149065,7 +149065,7 @@ class IsometricRenderer {
|
|
|
149065
149065
|
fontFamily: "Arial",
|
|
149066
149066
|
fontWeight: "500"
|
|
149067
149067
|
},
|
|
149068
|
-
resolution:
|
|
149068
|
+
resolution: 16
|
|
149069
149069
|
});
|
|
149070
149070
|
hoverLabel.anchor.set(0.5, 0);
|
|
149071
149071
|
hoverLabel.visible = false;
|
|
@@ -149156,11 +149156,20 @@ class IsometricRenderer {
|
|
|
149156
149156
|
fontWeight: "bold",
|
|
149157
149157
|
stroke: { color: 0, width: 2 }
|
|
149158
149158
|
},
|
|
149159
|
-
resolution:
|
|
149159
|
+
resolution: 16
|
|
149160
149160
|
});
|
|
149161
149161
|
countText.x = decorationX - dim.w * 1.5 * sizeMultiplier / 2;
|
|
149162
149162
|
countText.y = decorationY + 4;
|
|
149163
149163
|
countText.anchor.set(0.5, 0);
|
|
149164
|
+
countText.visible = false;
|
|
149165
|
+
decoration.eventMode = "static";
|
|
149166
|
+
decoration.cursor = "pointer";
|
|
149167
|
+
decoration.on("pointerover", () => {
|
|
149168
|
+
countText.visible = true;
|
|
149169
|
+
});
|
|
149170
|
+
decoration.on("pointerout", () => {
|
|
149171
|
+
countText.visible = false;
|
|
149172
|
+
});
|
|
149164
149173
|
container.addChild(countText);
|
|
149165
149174
|
}
|
|
149166
149175
|
}
|
|
@@ -149208,11 +149217,20 @@ class IsometricRenderer {
|
|
|
149208
149217
|
fontWeight: "bold",
|
|
149209
149218
|
stroke: { color: 0, width: 2 }
|
|
149210
149219
|
},
|
|
149211
|
-
resolution:
|
|
149220
|
+
resolution: 16
|
|
149212
149221
|
});
|
|
149213
149222
|
countText.x = decorationX + dim.w * 1.5 * sizeMultiplier / 2;
|
|
149214
149223
|
countText.y = decorationY + 4;
|
|
149215
149224
|
countText.anchor.set(0.5, 0);
|
|
149225
|
+
countText.visible = false;
|
|
149226
|
+
decoration.eventMode = "static";
|
|
149227
|
+
decoration.cursor = "pointer";
|
|
149228
|
+
decoration.on("pointerover", () => {
|
|
149229
|
+
countText.visible = true;
|
|
149230
|
+
});
|
|
149231
|
+
decoration.on("pointerout", () => {
|
|
149232
|
+
countText.visible = false;
|
|
149233
|
+
});
|
|
149216
149234
|
container.addChild(countText);
|
|
149217
149235
|
}
|
|
149218
149236
|
}
|
|
@@ -149268,7 +149286,7 @@ class IsometricRenderer {
|
|
|
149268
149286
|
fontWeight: "500",
|
|
149269
149287
|
fontStyle: "italic"
|
|
149270
149288
|
},
|
|
149271
|
-
resolution:
|
|
149289
|
+
resolution: 16
|
|
149272
149290
|
});
|
|
149273
149291
|
label.x = screenX;
|
|
149274
149292
|
label.y = screenY + footprintHeight * 0.6 + 12;
|
|
@@ -149433,8 +149451,8 @@ class IsometricRenderer {
|
|
|
149433
149451
|
fontFamily: "Arial",
|
|
149434
149452
|
fontWeight: "500"
|
|
149435
149453
|
},
|
|
149436
|
-
resolution:
|
|
149437
|
-
// Render at
|
|
149454
|
+
resolution: 16
|
|
149455
|
+
// Render at 16x for crisp text when zoomed out
|
|
149438
149456
|
});
|
|
149439
149457
|
label.x = screenX;
|
|
149440
149458
|
label.y = screenY + sprite.height * 0.15 + 8;
|
|
@@ -149537,11 +149555,20 @@ class IsometricRenderer {
|
|
|
149537
149555
|
fontWeight: "bold",
|
|
149538
149556
|
stroke: { color: 0, width: 2 }
|
|
149539
149557
|
},
|
|
149540
|
-
resolution:
|
|
149558
|
+
resolution: 16
|
|
149541
149559
|
});
|
|
149542
149560
|
countText.x = -(dim.w * starScale) / 2;
|
|
149543
149561
|
countText.y = 4;
|
|
149544
149562
|
countText.anchor.set(0.5, 0);
|
|
149563
|
+
countText.visible = false;
|
|
149564
|
+
decoration.eventMode = "static";
|
|
149565
|
+
decoration.cursor = "pointer";
|
|
149566
|
+
decoration.on("pointerover", () => {
|
|
149567
|
+
countText.visible = true;
|
|
149568
|
+
});
|
|
149569
|
+
decoration.on("pointerout", () => {
|
|
149570
|
+
countText.visible = false;
|
|
149571
|
+
});
|
|
149545
149572
|
starDecoration.addChild(countText);
|
|
149546
149573
|
starDecoration.x = screenX - footprint.width / 2;
|
|
149547
149574
|
starDecoration.y = screenY;
|
|
@@ -149592,11 +149619,20 @@ class IsometricRenderer {
|
|
|
149592
149619
|
fontWeight: "bold",
|
|
149593
149620
|
stroke: { color: 0, width: 2 }
|
|
149594
149621
|
},
|
|
149595
|
-
resolution:
|
|
149622
|
+
resolution: 16
|
|
149596
149623
|
});
|
|
149597
149624
|
countText.x = dim.w * collabScale / 2;
|
|
149598
149625
|
countText.y = 4;
|
|
149599
149626
|
countText.anchor.set(0.5, 0);
|
|
149627
|
+
countText.visible = false;
|
|
149628
|
+
decoration.eventMode = "static";
|
|
149629
|
+
decoration.cursor = "pointer";
|
|
149630
|
+
decoration.on("pointerover", () => {
|
|
149631
|
+
countText.visible = true;
|
|
149632
|
+
});
|
|
149633
|
+
decoration.on("pointerout", () => {
|
|
149634
|
+
countText.visible = false;
|
|
149635
|
+
});
|
|
149600
149636
|
collaboratorDecoration.addChild(countText);
|
|
149601
149637
|
collaboratorDecoration.x = screenX + footprint.width / 2;
|
|
149602
149638
|
collaboratorDecoration.y = screenY;
|
|
@@ -153854,6 +153890,75 @@ const TelemetryCoveragePanel = ({ context: context2, events }) => {
|
|
|
153854
153890
|
};
|
|
153855
153891
|
const ISO_TILE_WIDTH = 64;
|
|
153856
153892
|
const ISO_TILE_HEIGHT = 32;
|
|
153893
|
+
const licenseBorderColors = {
|
|
153894
|
+
"MIT": "#228b22",
|
|
153895
|
+
// Forest green - open/welcoming
|
|
153896
|
+
"BSD": "#228b22",
|
|
153897
|
+
// Same as MIT
|
|
153898
|
+
"BSD-3-Clause": "#228b22",
|
|
153899
|
+
"ISC": "#228b22",
|
|
153900
|
+
"Apache-2.0": "#d97706",
|
|
153901
|
+
// Amber/orange - formal but welcoming
|
|
153902
|
+
"GPL-3.0": "#2255aa",
|
|
153903
|
+
// GNU blue
|
|
153904
|
+
"LGPL-3.0": "#2255aa",
|
|
153905
|
+
"GPL-2.0": "#2255aa",
|
|
153906
|
+
"AGPL-3.0": "#2255aa",
|
|
153907
|
+
"MPL-2.0": "#8b5cf6",
|
|
153908
|
+
// Purple
|
|
153909
|
+
"UNLICENSED": "#dc2626"
|
|
153910
|
+
// Red - restrictive
|
|
153911
|
+
};
|
|
153912
|
+
const cardThemes = {
|
|
153913
|
+
blue: {
|
|
153914
|
+
cardBg: "#3b4a6b",
|
|
153915
|
+
cardBorder: "#2a3654",
|
|
153916
|
+
cardHighlight: "#4a5d8a",
|
|
153917
|
+
windowGradient: ["#1a1a2e", "#16213e"],
|
|
153918
|
+
panelGradient: ["#4a5d8a", "#3b4a6b"],
|
|
153919
|
+
panelBorder: "#5a6d9a"
|
|
153920
|
+
},
|
|
153921
|
+
red: {
|
|
153922
|
+
cardBg: "#6b3b3b",
|
|
153923
|
+
cardBorder: "#542a2a",
|
|
153924
|
+
cardHighlight: "#8a4a4a",
|
|
153925
|
+
windowGradient: ["#2e1a1a", "#3e1616"],
|
|
153926
|
+
panelGradient: ["#8a4a4a", "#6b3b3b"],
|
|
153927
|
+
panelBorder: "#9a5a5a"
|
|
153928
|
+
},
|
|
153929
|
+
green: {
|
|
153930
|
+
cardBg: "#3b6b4a",
|
|
153931
|
+
cardBorder: "#2a5436",
|
|
153932
|
+
cardHighlight: "#4a8a5d",
|
|
153933
|
+
windowGradient: ["#1a2e1f", "#163e21"],
|
|
153934
|
+
panelGradient: ["#4a8a5d", "#3b6b4a"],
|
|
153935
|
+
panelBorder: "#5a9a6d"
|
|
153936
|
+
},
|
|
153937
|
+
purple: {
|
|
153938
|
+
cardBg: "#5b3b6b",
|
|
153939
|
+
cardBorder: "#442a54",
|
|
153940
|
+
cardHighlight: "#7a4a8a",
|
|
153941
|
+
windowGradient: ["#261a2e", "#30163e"],
|
|
153942
|
+
panelGradient: ["#7a4a8a", "#5b3b6b"],
|
|
153943
|
+
panelBorder: "#8a5a9a"
|
|
153944
|
+
},
|
|
153945
|
+
gold: {
|
|
153946
|
+
cardBg: "#6b5a3b",
|
|
153947
|
+
cardBorder: "#54462a",
|
|
153948
|
+
cardHighlight: "#8a754a",
|
|
153949
|
+
windowGradient: ["#2e271a", "#3e3216"],
|
|
153950
|
+
panelGradient: ["#8a754a", "#6b5a3b"],
|
|
153951
|
+
panelBorder: "#9a855a"
|
|
153952
|
+
},
|
|
153953
|
+
dark: {
|
|
153954
|
+
cardBg: "#2a2a2a",
|
|
153955
|
+
cardBorder: "#1a1a1a",
|
|
153956
|
+
cardHighlight: "#3a3a3a",
|
|
153957
|
+
windowGradient: ["#0a0a0a", "#151515"],
|
|
153958
|
+
panelGradient: ["#3a3a3a", "#2a2a2a"],
|
|
153959
|
+
panelBorder: "#4a4a4a"
|
|
153960
|
+
}
|
|
153961
|
+
};
|
|
153857
153962
|
function parseColor(color2) {
|
|
153858
153963
|
if (typeof color2 === "number") return color2;
|
|
153859
153964
|
return parseInt(color2.replace("#", ""), 16);
|
|
@@ -153916,12 +154021,15 @@ const RepoSprite = ({
|
|
|
153916
154021
|
license,
|
|
153917
154022
|
label,
|
|
153918
154023
|
variant = "default",
|
|
154024
|
+
cardTheme = "blue",
|
|
153919
154025
|
width = 200,
|
|
153920
154026
|
height = 200,
|
|
153921
154027
|
backgroundColor,
|
|
153922
154028
|
showBoundary = true,
|
|
153923
154029
|
boundaryColor = 16776960,
|
|
153924
|
-
debug = false
|
|
154030
|
+
debug = false,
|
|
154031
|
+
onPackageHover,
|
|
154032
|
+
onPackageHoverEnd
|
|
153925
154033
|
}) => {
|
|
153926
154034
|
const { theme: theme2 } = useTheme();
|
|
153927
154035
|
const containerRef = useRef(null);
|
|
@@ -153992,6 +154100,18 @@ const RepoSprite = ({
|
|
|
153992
154100
|
});
|
|
153993
154101
|
buildingGraphics.x = pos.x;
|
|
153994
154102
|
buildingGraphics.y = pos.y;
|
|
154103
|
+
buildingGraphics.eventMode = "static";
|
|
154104
|
+
buildingGraphics.cursor = "pointer";
|
|
154105
|
+
const originalTint = buildingGraphics.tint;
|
|
154106
|
+
const packageName = pkg.name;
|
|
154107
|
+
buildingGraphics.on("pointerover", () => {
|
|
154108
|
+
buildingGraphics.tint = 8965375;
|
|
154109
|
+
onPackageHover == null ? void 0 : onPackageHover(packageName);
|
|
154110
|
+
});
|
|
154111
|
+
buildingGraphics.on("pointerout", () => {
|
|
154112
|
+
buildingGraphics.tint = originalTint;
|
|
154113
|
+
onPackageHoverEnd == null ? void 0 : onPackageHoverEnd(packageName);
|
|
154114
|
+
});
|
|
153995
154115
|
mainContainer.addChild(buildingGraphics);
|
|
153996
154116
|
}
|
|
153997
154117
|
} else {
|
|
@@ -154089,191 +154209,290 @@ const RepoSprite = ({
|
|
|
154089
154209
|
backgroundColor,
|
|
154090
154210
|
showBoundary,
|
|
154091
154211
|
boundaryColor,
|
|
154092
|
-
debug
|
|
154212
|
+
debug,
|
|
154213
|
+
onPackageHover,
|
|
154214
|
+
onPackageHoverEnd
|
|
154093
154215
|
]);
|
|
154094
154216
|
if (variant === "card") {
|
|
154217
|
+
const colors = cardThemes[cardTheme];
|
|
154218
|
+
const licenseBorder = license ? licenseBorderColors[license] : null;
|
|
154095
154219
|
return /* @__PURE__ */ jsxs(
|
|
154096
154220
|
"div",
|
|
154097
154221
|
{
|
|
154098
154222
|
style: {
|
|
154223
|
+
position: "relative",
|
|
154099
154224
|
display: "flex",
|
|
154100
154225
|
flexDirection: "column",
|
|
154101
|
-
backgroundColor:
|
|
154102
|
-
padding: "
|
|
154103
|
-
border:
|
|
154226
|
+
backgroundColor: colors.cardBg,
|
|
154227
|
+
padding: "28px 12px 12px 12px",
|
|
154228
|
+
border: `${licenseBorder ? "5px" : "3px"} solid ${licenseBorder || colors.cardBorder}`,
|
|
154104
154229
|
width: "100%",
|
|
154105
154230
|
height: "100%",
|
|
154106
|
-
boxSizing: "border-box"
|
|
154231
|
+
boxSizing: "border-box",
|
|
154232
|
+
overflow: "hidden",
|
|
154233
|
+
boxShadow: licenseBorder ? `inset 0 0 0 2px ${licenseBorder}40, 0 0 8px ${licenseBorder}60` : `inset 0 0 0 2px ${colors.cardHighlight}`
|
|
154107
154234
|
},
|
|
154108
154235
|
children: [
|
|
154236
|
+
collaborators !== void 0 && collaborators > 0 && /* @__PURE__ */ jsxs(
|
|
154237
|
+
"div",
|
|
154238
|
+
{
|
|
154239
|
+
style: {
|
|
154240
|
+
position: "absolute",
|
|
154241
|
+
top: "6px",
|
|
154242
|
+
left: "8px",
|
|
154243
|
+
display: "flex",
|
|
154244
|
+
alignItems: "center",
|
|
154245
|
+
gap: "4px",
|
|
154246
|
+
zIndex: 10
|
|
154247
|
+
},
|
|
154248
|
+
children: [
|
|
154249
|
+
/* @__PURE__ */ jsxs("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "#22c55e", children: [
|
|
154250
|
+
/* @__PURE__ */ jsx("circle", { cx: "5", cy: "5", r: "2.5" }),
|
|
154251
|
+
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "5", r: "2.5" }),
|
|
154252
|
+
/* @__PURE__ */ jsx("path", { d: "M1 14c0-2.5 2-4 4-4s4 1.5 4 4M7 14c0-2.5 2-4 4-4s4 1.5 4 4" })
|
|
154253
|
+
] }),
|
|
154254
|
+
/* @__PURE__ */ jsx(
|
|
154255
|
+
"span",
|
|
154256
|
+
{
|
|
154257
|
+
style: {
|
|
154258
|
+
fontSize: "16px",
|
|
154259
|
+
fontWeight: theme2.fontWeights.bold,
|
|
154260
|
+
color: "#ffffff",
|
|
154261
|
+
textShadow: "0 1px 2px rgba(0,0,0,0.5)",
|
|
154262
|
+
fontFamily: theme2.fonts.body
|
|
154263
|
+
},
|
|
154264
|
+
children: formatCount(collaborators)
|
|
154265
|
+
}
|
|
154266
|
+
)
|
|
154267
|
+
]
|
|
154268
|
+
}
|
|
154269
|
+
),
|
|
154270
|
+
stars !== void 0 && stars > 0 && /* @__PURE__ */ jsxs(
|
|
154271
|
+
"div",
|
|
154272
|
+
{
|
|
154273
|
+
style: {
|
|
154274
|
+
position: "absolute",
|
|
154275
|
+
top: "6px",
|
|
154276
|
+
right: "8px",
|
|
154277
|
+
display: "flex",
|
|
154278
|
+
alignItems: "center",
|
|
154279
|
+
gap: "4px",
|
|
154280
|
+
zIndex: 10
|
|
154281
|
+
},
|
|
154282
|
+
children: [
|
|
154283
|
+
/* @__PURE__ */ jsx(
|
|
154284
|
+
"span",
|
|
154285
|
+
{
|
|
154286
|
+
style: {
|
|
154287
|
+
fontSize: "10px",
|
|
154288
|
+
fontWeight: theme2.fontWeights.bold,
|
|
154289
|
+
color: "#fbbf24",
|
|
154290
|
+
textShadow: "0 1px 2px rgba(0,0,0,0.5)"
|
|
154291
|
+
},
|
|
154292
|
+
children: "★"
|
|
154293
|
+
}
|
|
154294
|
+
),
|
|
154295
|
+
/* @__PURE__ */ jsx(
|
|
154296
|
+
"span",
|
|
154297
|
+
{
|
|
154298
|
+
style: {
|
|
154299
|
+
fontSize: "16px",
|
|
154300
|
+
fontWeight: theme2.fontWeights.bold,
|
|
154301
|
+
color: "#ffffff",
|
|
154302
|
+
textShadow: "0 1px 2px rgba(0,0,0,0.5)",
|
|
154303
|
+
fontFamily: theme2.fonts.body
|
|
154304
|
+
},
|
|
154305
|
+
children: formatCount(stars)
|
|
154306
|
+
}
|
|
154307
|
+
)
|
|
154308
|
+
]
|
|
154309
|
+
}
|
|
154310
|
+
),
|
|
154109
154311
|
/* @__PURE__ */ jsx(
|
|
154110
154312
|
"div",
|
|
154111
154313
|
{
|
|
154112
|
-
ref: containerRef,
|
|
154113
154314
|
style: {
|
|
154114
154315
|
flex: 1,
|
|
154115
|
-
minHeight:
|
|
154316
|
+
minHeight: 0,
|
|
154317
|
+
background: `linear-gradient(180deg, ${colors.windowGradient[0]} 0%, ${colors.windowGradient[1]} 100%)`,
|
|
154318
|
+
border: `2px solid ${colors.cardHighlight}`,
|
|
154319
|
+
boxShadow: "inset 0 2px 4px rgba(0,0,0,0.3)",
|
|
154320
|
+
overflow: "hidden",
|
|
154116
154321
|
display: "flex",
|
|
154117
154322
|
alignItems: "center",
|
|
154118
154323
|
justifyContent: "center"
|
|
154119
|
-
}
|
|
154324
|
+
},
|
|
154325
|
+
children: /* @__PURE__ */ jsx(
|
|
154326
|
+
"div",
|
|
154327
|
+
{
|
|
154328
|
+
ref: containerRef,
|
|
154329
|
+
style: {
|
|
154330
|
+
width: "100%",
|
|
154331
|
+
height: "100%",
|
|
154332
|
+
display: "flex",
|
|
154333
|
+
alignItems: "center",
|
|
154334
|
+
justifyContent: "center"
|
|
154335
|
+
}
|
|
154336
|
+
}
|
|
154337
|
+
)
|
|
154120
154338
|
}
|
|
154121
154339
|
),
|
|
154122
|
-
/* @__PURE__ */ jsxs(
|
|
154123
|
-
|
|
154124
|
-
|
|
154125
|
-
{
|
|
154126
|
-
|
|
154127
|
-
|
|
154128
|
-
|
|
154129
|
-
|
|
154130
|
-
|
|
154131
|
-
|
|
154132
|
-
|
|
154133
|
-
|
|
154134
|
-
|
|
154135
|
-
|
|
154136
|
-
|
|
154137
|
-
|
|
154138
|
-
|
|
154139
|
-
|
|
154140
|
-
|
|
154141
|
-
|
|
154142
|
-
|
|
154143
|
-
|
|
154144
|
-
|
|
154145
|
-
|
|
154146
|
-
|
|
154147
|
-
children: [
|
|
154148
|
-
files !== void 0 && files > 0 && /* @__PURE__ */ jsxs(
|
|
154149
|
-
"span",
|
|
154150
|
-
{
|
|
154151
|
-
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
154152
|
-
children: [
|
|
154153
|
-
/* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "#64748b", children: /* @__PURE__ */ jsx(
|
|
154154
|
-
"path",
|
|
154155
|
-
{
|
|
154156
|
-
d: "M3 1h7l3 3v11H3V1zm7 0v3h3M5 8h6M5 11h6",
|
|
154157
|
-
stroke: "#64748b",
|
|
154158
|
-
strokeWidth: "1",
|
|
154159
|
-
fill: "none"
|
|
154160
|
-
}
|
|
154161
|
-
) }),
|
|
154162
|
-
formatCount(files)
|
|
154163
|
-
]
|
|
154164
|
-
}
|
|
154165
|
-
),
|
|
154166
|
-
packages && packages.length > 1 && /* @__PURE__ */ jsxs(
|
|
154167
|
-
"span",
|
|
154168
|
-
{
|
|
154169
|
-
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
154170
|
-
children: [
|
|
154171
|
-
/* @__PURE__ */ jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", children: [
|
|
154172
|
-
/* @__PURE__ */ jsx(
|
|
154173
|
-
"path",
|
|
154174
|
-
{
|
|
154175
|
-
d: "M8 1L14 4v8l-6 3-6-3V4l6-3z",
|
|
154176
|
-
stroke: "#8b5cf6",
|
|
154177
|
-
strokeWidth: "1.5"
|
|
154178
|
-
}
|
|
154179
|
-
),
|
|
154180
|
-
/* @__PURE__ */ jsx(
|
|
154181
|
-
"path",
|
|
154182
|
-
{
|
|
154183
|
-
d: "M8 8v7M8 8l6-3M8 8L2 5",
|
|
154184
|
-
stroke: "#8b5cf6",
|
|
154185
|
-
strokeWidth: "1"
|
|
154186
|
-
}
|
|
154187
|
-
)
|
|
154188
|
-
] }),
|
|
154189
|
-
packages.length
|
|
154190
|
-
]
|
|
154191
|
-
}
|
|
154192
|
-
),
|
|
154193
|
-
stars !== void 0 && stars > 0 && /* @__PURE__ */ jsxs(
|
|
154194
|
-
"span",
|
|
154195
|
-
{
|
|
154196
|
-
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
154197
|
-
children: [
|
|
154198
|
-
/* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "#fbbf24", children: /* @__PURE__ */ jsx("path", { d: "M8 1l2.2 4.4 4.8.7-3.5 3.4.8 4.8L8 12l-4.3 2.3.8-4.8L1 6.1l4.8-.7L8 1z" }) }),
|
|
154199
|
-
formatCount(stars)
|
|
154200
|
-
]
|
|
154201
|
-
}
|
|
154202
|
-
),
|
|
154203
|
-
collaborators !== void 0 && collaborators > 0 && /* @__PURE__ */ jsxs(
|
|
154204
|
-
"span",
|
|
154205
|
-
{
|
|
154206
|
-
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
154207
|
-
children: [
|
|
154208
|
-
/* @__PURE__ */ jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "#22c55e", children: [
|
|
154209
|
-
/* @__PURE__ */ jsx("circle", { cx: "5", cy: "5", r: "2.5" }),
|
|
154210
|
-
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "5", r: "2.5" }),
|
|
154211
|
-
/* @__PURE__ */ jsx("path", { d: "M1 14c0-2.5 2-4 4-4s4 1.5 4 4M7 14c0-2.5 2-4 4-4s4 1.5 4 4" })
|
|
154212
|
-
] }),
|
|
154213
|
-
formatCount(collaborators)
|
|
154214
|
-
]
|
|
154215
|
-
}
|
|
154216
|
-
),
|
|
154217
|
-
license && /* @__PURE__ */ jsx(
|
|
154218
|
-
"span",
|
|
154219
|
-
{
|
|
154220
|
-
style: {
|
|
154221
|
-
backgroundColor: theme2.colors.backgroundTertiary,
|
|
154222
|
-
padding: "2px 6px",
|
|
154223
|
-
borderRadius: "4px",
|
|
154224
|
-
fontSize: theme2.fontSizes[0]
|
|
154225
|
-
},
|
|
154226
|
-
children: license
|
|
154227
|
-
}
|
|
154228
|
-
)
|
|
154229
|
-
]
|
|
154230
|
-
}
|
|
154231
|
-
),
|
|
154232
|
-
packages && packages.length > 1 && /* @__PURE__ */ jsxs(
|
|
154233
|
-
"div",
|
|
154234
|
-
{
|
|
154235
|
-
style: {
|
|
154236
|
-
marginTop: "8px",
|
|
154237
|
-
display: "flex",
|
|
154238
|
-
flexWrap: "wrap",
|
|
154239
|
-
justifyContent: "center",
|
|
154240
|
-
gap: "4px"
|
|
154241
|
-
},
|
|
154242
|
-
children: [
|
|
154243
|
-
packages.slice(0, 6).map((pkg, i2) => /* @__PURE__ */ jsx(
|
|
154244
|
-
"span",
|
|
154245
|
-
{
|
|
154246
|
-
style: {
|
|
154247
|
-
fontSize: theme2.fontSizes[0],
|
|
154248
|
-
color: theme2.colors.textSecondary,
|
|
154249
|
-
backgroundColor: theme2.colors.backgroundTertiary,
|
|
154250
|
-
padding: "2px 6px",
|
|
154251
|
-
fontFamily: theme2.fonts.body,
|
|
154252
|
-
borderLeft: `2px solid ${typeof pkg.color === "string" ? pkg.color : `#${(pkg.color || 8947848).toString(16).padStart(6, "0")}`}`
|
|
154253
|
-
},
|
|
154254
|
-
children: pkg.name
|
|
154340
|
+
/* @__PURE__ */ jsxs(
|
|
154341
|
+
"div",
|
|
154342
|
+
{
|
|
154343
|
+
style: {
|
|
154344
|
+
marginTop: "8px",
|
|
154345
|
+
padding: "8px",
|
|
154346
|
+
background: `linear-gradient(180deg, ${colors.panelGradient[0]} 0%, ${colors.panelGradient[1]} 100%)`,
|
|
154347
|
+
border: `1px solid ${colors.panelBorder}`,
|
|
154348
|
+
flexShrink: 0
|
|
154349
|
+
},
|
|
154350
|
+
children: [
|
|
154351
|
+
label && /* @__PURE__ */ jsx(
|
|
154352
|
+
"div",
|
|
154353
|
+
{
|
|
154354
|
+
style: {
|
|
154355
|
+
fontSize: theme2.fontSizes[2],
|
|
154356
|
+
fontWeight: theme2.fontWeights.bold,
|
|
154357
|
+
color: "#ffffff",
|
|
154358
|
+
marginBottom: "6px",
|
|
154359
|
+
fontFamily: theme2.fonts.body,
|
|
154360
|
+
whiteSpace: "nowrap",
|
|
154361
|
+
overflow: "hidden",
|
|
154362
|
+
textOverflow: "ellipsis",
|
|
154363
|
+
textShadow: "0 1px 2px rgba(0,0,0,0.3)",
|
|
154364
|
+
textAlign: "center"
|
|
154255
154365
|
},
|
|
154256
|
-
|
|
154257
|
-
|
|
154258
|
-
|
|
154259
|
-
|
|
154260
|
-
|
|
154261
|
-
|
|
154262
|
-
|
|
154263
|
-
|
|
154264
|
-
|
|
154265
|
-
|
|
154266
|
-
|
|
154267
|
-
|
|
154268
|
-
|
|
154269
|
-
|
|
154270
|
-
|
|
154271
|
-
|
|
154272
|
-
|
|
154273
|
-
|
|
154274
|
-
|
|
154275
|
-
|
|
154276
|
-
|
|
154366
|
+
children: label
|
|
154367
|
+
}
|
|
154368
|
+
),
|
|
154369
|
+
/* @__PURE__ */ jsxs(
|
|
154370
|
+
"div",
|
|
154371
|
+
{
|
|
154372
|
+
style: {
|
|
154373
|
+
display: "flex",
|
|
154374
|
+
justifyContent: "center",
|
|
154375
|
+
flexWrap: "wrap",
|
|
154376
|
+
gap: "10px",
|
|
154377
|
+
fontSize: theme2.fontSizes[1],
|
|
154378
|
+
color: "#e0e0e0",
|
|
154379
|
+
fontFamily: theme2.fonts.body
|
|
154380
|
+
},
|
|
154381
|
+
children: [
|
|
154382
|
+
files !== void 0 && files > 0 && /* @__PURE__ */ jsxs(
|
|
154383
|
+
"span",
|
|
154384
|
+
{
|
|
154385
|
+
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
154386
|
+
children: [
|
|
154387
|
+
/* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "#94a3b8", children: /* @__PURE__ */ jsx(
|
|
154388
|
+
"path",
|
|
154389
|
+
{
|
|
154390
|
+
d: "M3 1h7l3 3v11H3V1zm7 0v3h3M5 8h6M5 11h6",
|
|
154391
|
+
stroke: "#94a3b8",
|
|
154392
|
+
strokeWidth: "1",
|
|
154393
|
+
fill: "none"
|
|
154394
|
+
}
|
|
154395
|
+
) }),
|
|
154396
|
+
formatCount(files)
|
|
154397
|
+
]
|
|
154398
|
+
}
|
|
154399
|
+
),
|
|
154400
|
+
packages && packages.length > 1 && /* @__PURE__ */ jsxs(
|
|
154401
|
+
"span",
|
|
154402
|
+
{
|
|
154403
|
+
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
154404
|
+
children: [
|
|
154405
|
+
/* @__PURE__ */ jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", children: [
|
|
154406
|
+
/* @__PURE__ */ jsx(
|
|
154407
|
+
"path",
|
|
154408
|
+
{
|
|
154409
|
+
d: "M8 1L14 4v8l-6 3-6-3V4l6-3z",
|
|
154410
|
+
stroke: "#8b5cf6",
|
|
154411
|
+
strokeWidth: "1.5"
|
|
154412
|
+
}
|
|
154413
|
+
),
|
|
154414
|
+
/* @__PURE__ */ jsx(
|
|
154415
|
+
"path",
|
|
154416
|
+
{
|
|
154417
|
+
d: "M8 8v7M8 8l6-3M8 8L2 5",
|
|
154418
|
+
stroke: "#8b5cf6",
|
|
154419
|
+
strokeWidth: "1"
|
|
154420
|
+
}
|
|
154421
|
+
)
|
|
154422
|
+
] }),
|
|
154423
|
+
packages.length
|
|
154424
|
+
]
|
|
154425
|
+
}
|
|
154426
|
+
)
|
|
154427
|
+
]
|
|
154428
|
+
}
|
|
154429
|
+
),
|
|
154430
|
+
packages && packages.length > 1 && /* @__PURE__ */ jsxs(
|
|
154431
|
+
"div",
|
|
154432
|
+
{
|
|
154433
|
+
style: {
|
|
154434
|
+
marginTop: "6px",
|
|
154435
|
+
display: "flex",
|
|
154436
|
+
flexWrap: "wrap",
|
|
154437
|
+
justifyContent: "center",
|
|
154438
|
+
gap: "4px"
|
|
154439
|
+
},
|
|
154440
|
+
children: [
|
|
154441
|
+
packages.slice(0, 6).map((pkg, i2) => /* @__PURE__ */ jsx(
|
|
154442
|
+
"span",
|
|
154443
|
+
{
|
|
154444
|
+
style: {
|
|
154445
|
+
fontSize: theme2.fontSizes[0],
|
|
154446
|
+
color: "#e0e0e0",
|
|
154447
|
+
backgroundColor: "rgba(0,0,0,0.2)",
|
|
154448
|
+
padding: "2px 6px",
|
|
154449
|
+
borderRadius: "3px",
|
|
154450
|
+
fontFamily: theme2.fonts.body,
|
|
154451
|
+
borderLeft: `2px solid ${typeof pkg.color === "string" ? pkg.color : `#${(pkg.color || 8947848).toString(16).padStart(6, "0")}`}`
|
|
154452
|
+
},
|
|
154453
|
+
children: pkg.name
|
|
154454
|
+
},
|
|
154455
|
+
i2
|
|
154456
|
+
)),
|
|
154457
|
+
packages.length > 6 && /* @__PURE__ */ jsxs(
|
|
154458
|
+
"span",
|
|
154459
|
+
{
|
|
154460
|
+
style: {
|
|
154461
|
+
fontSize: theme2.fontSizes[0],
|
|
154462
|
+
color: "#a0a0a0",
|
|
154463
|
+
fontFamily: theme2.fonts.body
|
|
154464
|
+
},
|
|
154465
|
+
children: [
|
|
154466
|
+
"+",
|
|
154467
|
+
packages.length - 6,
|
|
154468
|
+
" more"
|
|
154469
|
+
]
|
|
154470
|
+
}
|
|
154471
|
+
)
|
|
154472
|
+
]
|
|
154473
|
+
}
|
|
154474
|
+
)
|
|
154475
|
+
]
|
|
154476
|
+
}
|
|
154477
|
+
),
|
|
154478
|
+
license && /* @__PURE__ */ jsx(
|
|
154479
|
+
"div",
|
|
154480
|
+
{
|
|
154481
|
+
style: {
|
|
154482
|
+
position: "absolute",
|
|
154483
|
+
bottom: "-3px",
|
|
154484
|
+
right: "-3px",
|
|
154485
|
+
backgroundColor: licenseBorder || colors.cardHighlight,
|
|
154486
|
+
padding: "3px 10px",
|
|
154487
|
+
borderRadius: "3px 0 0 0",
|
|
154488
|
+
fontSize: theme2.fontSizes[0],
|
|
154489
|
+
fontWeight: theme2.fontWeights.bold,
|
|
154490
|
+
color: "#ffffff",
|
|
154491
|
+
textShadow: "0 1px 1px rgba(0,0,0,0.3)"
|
|
154492
|
+
},
|
|
154493
|
+
children: license
|
|
154494
|
+
}
|
|
154495
|
+
)
|
|
154277
154496
|
]
|
|
154278
154497
|
}
|
|
154279
154498
|
);
|
|
@@ -154453,4 +154672,4 @@ export {
|
|
|
154453
154672
|
TelemetryCoveragePanelPreview as y,
|
|
154454
154673
|
CollectionMapPanel as z
|
|
154455
154674
|
};
|
|
154456
|
-
//# sourceMappingURL=index-
|
|
154675
|
+
//# sourceMappingURL=index-BqsaXH0f.js.map
|