@industry-theme/repository-composition-panels 0.7.25 → 0.7.26
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-BM_t45Ek.js → browserAll-CIuBn_fB.js} +3 -3
- package/dist/{browserAll-BM_t45Ek.js.map → browserAll-CIuBn_fB.js.map} +1 -1
- package/dist/{index-BxddM8lM.js → index-BinFidNv.js} +98 -69
- package/dist/{index-BxddM8lM.js.map → index-BinFidNv.js.map} +1 -1
- package/dist/{init-B7PWGH3z.js → init-DKPYQNFU.js} +2 -2
- package/dist/{init-B7PWGH3z.js.map → init-DKPYQNFU.js.map} +1 -1
- package/dist/panels/overworld-map/components/RepoCard.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/RepoCardStatic.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/RepoSprite.d.ts +2 -0
- package/dist/panels/overworld-map/components/RepoSprite.d.ts.map +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-CLYFrCAq.js +3 -0
- package/dist/webworkerAll-CLYFrCAq.js.map +1 -0
- package/package.json +1 -1
- package/dist/webworkerAll-DpyaP0Cp.js +0 -3
- package/dist/webworkerAll-DpyaP0Cp.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as extensions, A as AccessibilitySystem, C as Container, b as accessibilityTarget, E as EventSystem, c as FederatedContainer } from "./index-
|
|
2
|
-
import "./init-
|
|
1
|
+
import { e as extensions, A as AccessibilitySystem, C as Container, b as accessibilityTarget, E as EventSystem, c as FederatedContainer } from "./index-BinFidNv.js";
|
|
2
|
+
import "./init-DKPYQNFU.js";
|
|
3
3
|
extensions.add(AccessibilitySystem);
|
|
4
4
|
extensions.mixin(Container, accessibilityTarget);
|
|
5
5
|
extensions.add(EventSystem);
|
|
6
6
|
extensions.mixin(Container, FederatedContainer);
|
|
7
|
-
//# sourceMappingURL=browserAll-
|
|
7
|
+
//# sourceMappingURL=browserAll-CIuBn_fB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserAll-
|
|
1
|
+
{"version":3,"file":"browserAll-CIuBn_fB.js","sources":["../node_modules/pixi.js/lib/accessibility/init.mjs","../node_modules/pixi.js/lib/events/init.mjs"],"sourcesContent":["import { extensions } from '../extensions/Extensions.mjs';\nimport { Container } from '../scene/container/Container.mjs';\nimport { AccessibilitySystem } from './AccessibilitySystem.mjs';\nimport { accessibilityTarget } from './accessibilityTarget.mjs';\n\n\"use strict\";\nextensions.add(AccessibilitySystem);\nextensions.mixin(Container, accessibilityTarget);\n//# sourceMappingURL=init.mjs.map\n","import { extensions } from '../extensions/Extensions.mjs';\nimport { Container } from '../scene/container/Container.mjs';\nimport { EventSystem } from './EventSystem.mjs';\nimport { FederatedContainer } from './FederatedEventTarget.mjs';\n\n\"use strict\";\nextensions.add(EventSystem);\nextensions.mixin(Container, FederatedContainer);\n//# sourceMappingURL=init.mjs.map\n"],"names":[],"mappings":";;AAMA,WAAW,IAAI,mBAAmB;AAClC,WAAW,MAAM,WAAW,mBAAmB;ACD/C,WAAW,IAAI,WAAW;AAC1B,WAAW,MAAM,WAAW,kBAAkB;","x_google_ignoreList":[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-CIuBn_fB.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-CLYFrCAq.js");
|
|
106222
106222
|
}
|
|
106223
106223
|
};
|
|
106224
106224
|
class ObservablePoint {
|
|
@@ -153929,56 +153929,6 @@ const TelemetryCoveragePanel = ({ context: context2, events }) => {
|
|
|
153929
153929
|
}
|
|
153930
153930
|
);
|
|
153931
153931
|
};
|
|
153932
|
-
const cardThemes = {
|
|
153933
|
-
blue: {
|
|
153934
|
-
cardBg: "#3b4a6b",
|
|
153935
|
-
cardBorder: "#2a3654",
|
|
153936
|
-
cardHighlight: "#4a5d8a",
|
|
153937
|
-
windowGradient: ["#1a1a2e", "#16213e"],
|
|
153938
|
-
panelGradient: ["#4a5d8a", "#3b4a6b"],
|
|
153939
|
-
panelBorder: "#5a6d9a"
|
|
153940
|
-
},
|
|
153941
|
-
red: {
|
|
153942
|
-
cardBg: "#6b3b3b",
|
|
153943
|
-
cardBorder: "#542a2a",
|
|
153944
|
-
cardHighlight: "#8a4a4a",
|
|
153945
|
-
windowGradient: ["#2e1a1a", "#3e1616"],
|
|
153946
|
-
panelGradient: ["#8a4a4a", "#6b3b3b"],
|
|
153947
|
-
panelBorder: "#9a5a5a"
|
|
153948
|
-
},
|
|
153949
|
-
green: {
|
|
153950
|
-
cardBg: "#3b6b4a",
|
|
153951
|
-
cardBorder: "#2a5436",
|
|
153952
|
-
cardHighlight: "#4a8a5d",
|
|
153953
|
-
windowGradient: ["#1a2e1f", "#163e21"],
|
|
153954
|
-
panelGradient: ["#4a8a5d", "#3b6b4a"],
|
|
153955
|
-
panelBorder: "#5a9a6d"
|
|
153956
|
-
},
|
|
153957
|
-
purple: {
|
|
153958
|
-
cardBg: "#5b3b6b",
|
|
153959
|
-
cardBorder: "#442a54",
|
|
153960
|
-
cardHighlight: "#7a4a8a",
|
|
153961
|
-
windowGradient: ["#261a2e", "#30163e"],
|
|
153962
|
-
panelGradient: ["#7a4a8a", "#5b3b6b"],
|
|
153963
|
-
panelBorder: "#8a5a9a"
|
|
153964
|
-
},
|
|
153965
|
-
gold: {
|
|
153966
|
-
cardBg: "#6b5a3b",
|
|
153967
|
-
cardBorder: "#54462a",
|
|
153968
|
-
cardHighlight: "#8a754a",
|
|
153969
|
-
windowGradient: ["#2e271a", "#3e3216"],
|
|
153970
|
-
panelGradient: ["#8a754a", "#6b5a3b"],
|
|
153971
|
-
panelBorder: "#9a855a"
|
|
153972
|
-
},
|
|
153973
|
-
dark: {
|
|
153974
|
-
cardBg: "#2a2a2a",
|
|
153975
|
-
cardBorder: "#1a1a1a",
|
|
153976
|
-
cardHighlight: "#3a3a3a",
|
|
153977
|
-
windowGradient: ["#0a0a0a", "#151515"],
|
|
153978
|
-
panelGradient: ["#3a3a3a", "#2a2a2a"],
|
|
153979
|
-
panelBorder: "#4a4a4a"
|
|
153980
|
-
}
|
|
153981
|
-
};
|
|
153982
153932
|
const licenseBorderColors = {
|
|
153983
153933
|
MIT: "#228b22",
|
|
153984
153934
|
// Forest green - open/welcoming
|
|
@@ -154005,6 +153955,28 @@ function formatCount(count2) {
|
|
|
154005
153955
|
}
|
|
154006
153956
|
const ISO_TILE_WIDTH$1 = 64;
|
|
154007
153957
|
const ISO_TILE_HEIGHT$1 = 32;
|
|
153958
|
+
function darkenColor$1(color2, percent) {
|
|
153959
|
+
const r2 = Math.max(0, (color2 >> 16 & 255) * (1 - percent));
|
|
153960
|
+
const g2 = Math.max(0, (color2 >> 8 & 255) * (1 - percent));
|
|
153961
|
+
const b2 = Math.max(0, (color2 & 255) * (1 - percent));
|
|
153962
|
+
return `#${Math.round(r2).toString(16).padStart(2, "0")}${Math.round(g2).toString(16).padStart(2, "0")}${Math.round(b2).toString(16).padStart(2, "0")}`;
|
|
153963
|
+
}
|
|
153964
|
+
function generateCardColors$1(baseColor) {
|
|
153965
|
+
return {
|
|
153966
|
+
cardBg: darkenColor$1(baseColor, 0.6),
|
|
153967
|
+
cardBorder: darkenColor$1(baseColor, 0.7),
|
|
153968
|
+
cardHighlight: darkenColor$1(baseColor, 0.4),
|
|
153969
|
+
windowGradient: [
|
|
153970
|
+
darkenColor$1(baseColor, 0.85),
|
|
153971
|
+
darkenColor$1(baseColor, 0.8)
|
|
153972
|
+
],
|
|
153973
|
+
panelGradient: [
|
|
153974
|
+
darkenColor$1(baseColor, 0.4),
|
|
153975
|
+
darkenColor$1(baseColor, 0.6)
|
|
153976
|
+
],
|
|
153977
|
+
panelBorder: darkenColor$1(baseColor, 0.3)
|
|
153978
|
+
};
|
|
153979
|
+
}
|
|
154008
153980
|
function parseColor$1(color2) {
|
|
154009
153981
|
if (typeof color2 === "number") return color2;
|
|
154010
153982
|
return parseInt(color2.replace("#", ""), 16);
|
|
@@ -154062,6 +154034,7 @@ const RepoSprite = ({
|
|
|
154062
154034
|
license,
|
|
154063
154035
|
label,
|
|
154064
154036
|
owner,
|
|
154037
|
+
language: language2,
|
|
154065
154038
|
variant = "default",
|
|
154066
154039
|
cardTheme = "blue",
|
|
154067
154040
|
width = 200,
|
|
@@ -154251,7 +154224,8 @@ const RepoSprite = ({
|
|
|
154251
154224
|
onPackageHoverEnd
|
|
154252
154225
|
]);
|
|
154253
154226
|
if (variant === "card") {
|
|
154254
|
-
const
|
|
154227
|
+
const baseColor = parseColor$1(color2);
|
|
154228
|
+
const colors = generateCardColors$1(baseColor);
|
|
154255
154229
|
const licenseBorder = license ? licenseBorderColors[license] : null;
|
|
154256
154230
|
return /* @__PURE__ */ jsxs(
|
|
154257
154231
|
"div",
|
|
@@ -154261,7 +154235,7 @@ const RepoSprite = ({
|
|
|
154261
154235
|
display: "flex",
|
|
154262
154236
|
flexDirection: "column",
|
|
154263
154237
|
backgroundColor: colors.cardBg,
|
|
154264
|
-
padding: "
|
|
154238
|
+
padding: "36px 12px 20px 12px",
|
|
154265
154239
|
border: `${licenseBorder ? "5px" : "3px"} solid ${licenseBorder || colors.cardBorder}`,
|
|
154266
154240
|
width: "100%",
|
|
154267
154241
|
height: "100%",
|
|
@@ -154275,8 +154249,8 @@ const RepoSprite = ({
|
|
|
154275
154249
|
{
|
|
154276
154250
|
style: {
|
|
154277
154251
|
position: "absolute",
|
|
154278
|
-
top: "
|
|
154279
|
-
left: "
|
|
154252
|
+
top: "10px",
|
|
154253
|
+
left: "10px",
|
|
154280
154254
|
display: "flex",
|
|
154281
154255
|
alignItems: "center",
|
|
154282
154256
|
gap: "6px",
|
|
@@ -154321,8 +154295,8 @@ const RepoSprite = ({
|
|
|
154321
154295
|
{
|
|
154322
154296
|
style: {
|
|
154323
154297
|
position: "absolute",
|
|
154324
|
-
top: "
|
|
154325
|
-
right: "
|
|
154298
|
+
top: "10px",
|
|
154299
|
+
right: "10px",
|
|
154326
154300
|
display: "flex",
|
|
154327
154301
|
alignItems: "center",
|
|
154328
154302
|
gap: "4px",
|
|
@@ -154425,7 +154399,7 @@ const RepoSprite = ({
|
|
|
154425
154399
|
"div",
|
|
154426
154400
|
{
|
|
154427
154401
|
style: {
|
|
154428
|
-
marginTop: "
|
|
154402
|
+
marginTop: "12px",
|
|
154429
154403
|
padding: "8px",
|
|
154430
154404
|
background: `linear-gradient(180deg, ${colors.panelGradient[0]} 0%, ${colors.panelGradient[1]} 100%)`,
|
|
154431
154405
|
border: `1px solid ${colors.panelBorder}`,
|
|
@@ -154530,6 +154504,22 @@ const RepoSprite = ({
|
|
|
154530
154504
|
]
|
|
154531
154505
|
}
|
|
154532
154506
|
),
|
|
154507
|
+
language2 && /* @__PURE__ */ jsx(
|
|
154508
|
+
"div",
|
|
154509
|
+
{
|
|
154510
|
+
style: {
|
|
154511
|
+
position: "absolute",
|
|
154512
|
+
bottom: "4px",
|
|
154513
|
+
left: "8px",
|
|
154514
|
+
fontSize: theme2.fontSizes[0],
|
|
154515
|
+
fontWeight: theme2.fontWeights.medium,
|
|
154516
|
+
color: "#e0e0e0",
|
|
154517
|
+
textShadow: "0 1px 1px rgba(0,0,0,0.3)",
|
|
154518
|
+
fontFamily: theme2.fonts.body
|
|
154519
|
+
},
|
|
154520
|
+
children: language2
|
|
154521
|
+
}
|
|
154522
|
+
),
|
|
154533
154523
|
license && /* @__PURE__ */ jsx(
|
|
154534
154524
|
"div",
|
|
154535
154525
|
{
|
|
@@ -154651,7 +154641,7 @@ const RepoCard = ({
|
|
|
154651
154641
|
onPackageHover,
|
|
154652
154642
|
onPackageHoverEnd
|
|
154653
154643
|
}) => {
|
|
154654
|
-
var _a, _b, _c, _d, _e2;
|
|
154644
|
+
var _a, _b, _c, _d, _e2, _f;
|
|
154655
154645
|
const size = sizeOverride ?? calculateRepositorySize(repository.metrics);
|
|
154656
154646
|
const color2 = colorOverride ?? getRepositoryColor$1(repository);
|
|
154657
154647
|
const packages = transformPackages(repository.packages);
|
|
@@ -154665,6 +154655,7 @@ const RepoCard = ({
|
|
|
154665
154655
|
license: (_d = repository.github) == null ? void 0 : _d.license,
|
|
154666
154656
|
label: repository.name,
|
|
154667
154657
|
owner: (_e2 = repository.github) == null ? void 0 : _e2.owner,
|
|
154658
|
+
language: (_f = repository.github) == null ? void 0 : _f.primaryLanguage,
|
|
154668
154659
|
variant,
|
|
154669
154660
|
cardTheme,
|
|
154670
154661
|
width,
|
|
@@ -154996,6 +154987,28 @@ function hashStringToColor(str2) {
|
|
|
154996
154987
|
};
|
|
154997
154988
|
return (f2(0) << 16) + (f2(8) << 8) + f2(4);
|
|
154998
154989
|
}
|
|
154990
|
+
function darkenColor(color2, percent) {
|
|
154991
|
+
const r2 = Math.max(0, (color2 >> 16 & 255) * (1 - percent));
|
|
154992
|
+
const g2 = Math.max(0, (color2 >> 8 & 255) * (1 - percent));
|
|
154993
|
+
const b2 = Math.max(0, (color2 & 255) * (1 - percent));
|
|
154994
|
+
return `#${Math.round(r2).toString(16).padStart(2, "0")}${Math.round(g2).toString(16).padStart(2, "0")}${Math.round(b2).toString(16).padStart(2, "0")}`;
|
|
154995
|
+
}
|
|
154996
|
+
function generateCardColors(baseColor) {
|
|
154997
|
+
return {
|
|
154998
|
+
cardBg: darkenColor(baseColor, 0.6),
|
|
154999
|
+
cardBorder: darkenColor(baseColor, 0.7),
|
|
155000
|
+
cardHighlight: darkenColor(baseColor, 0.4),
|
|
155001
|
+
windowGradient: [
|
|
155002
|
+
darkenColor(baseColor, 0.85),
|
|
155003
|
+
darkenColor(baseColor, 0.8)
|
|
155004
|
+
],
|
|
155005
|
+
panelGradient: [
|
|
155006
|
+
darkenColor(baseColor, 0.4),
|
|
155007
|
+
darkenColor(baseColor, 0.6)
|
|
155008
|
+
],
|
|
155009
|
+
panelBorder: darkenColor(baseColor, 0.3)
|
|
155010
|
+
};
|
|
155011
|
+
}
|
|
154999
155012
|
function getRepositoryColor(repository) {
|
|
155000
155013
|
var _a;
|
|
155001
155014
|
if (repository.bookColor) {
|
|
@@ -155018,17 +155031,17 @@ const RepoCardStatic = ({
|
|
|
155018
155031
|
height = 280,
|
|
155019
155032
|
spriteSize = 160
|
|
155020
155033
|
}) => {
|
|
155021
|
-
var _a, _b, _c, _d;
|
|
155034
|
+
var _a, _b, _c, _d, _e2;
|
|
155022
155035
|
const { theme: theme2 } = useTheme();
|
|
155023
155036
|
const [spriteDataUrl, setSpriteDataUrl] = useState(null);
|
|
155024
155037
|
const [isLoading, setIsLoading] = useState(true);
|
|
155025
|
-
const colors = cardThemes[cardTheme];
|
|
155026
155038
|
const license = (_a = repository.github) == null ? void 0 : _a.license;
|
|
155027
155039
|
const licenseBorder = license ? licenseBorderColors[license] : null;
|
|
155028
155040
|
const stars = (_b = repository.github) == null ? void 0 : _b.stars;
|
|
155029
155041
|
const files = (_c = repository.metrics) == null ? void 0 : _c.fileCount;
|
|
155030
155042
|
const size = calculateRepositorySize(repository.metrics);
|
|
155031
155043
|
const color2 = getRepositoryColor(repository);
|
|
155044
|
+
const colors = generateCardColors(color2);
|
|
155032
155045
|
useEffect(() => {
|
|
155033
155046
|
let mounted = true;
|
|
155034
155047
|
async function renderSprite() {
|
|
@@ -155069,7 +155082,7 @@ const RepoCardStatic = ({
|
|
|
155069
155082
|
display: "flex",
|
|
155070
155083
|
flexDirection: "column",
|
|
155071
155084
|
backgroundColor: colors.cardBg,
|
|
155072
|
-
padding: "
|
|
155085
|
+
padding: "36px 12px 20px 12px",
|
|
155073
155086
|
border: `${licenseBorder ? "5px" : "3px"} solid ${licenseBorder || colors.cardBorder}`,
|
|
155074
155087
|
width,
|
|
155075
155088
|
height,
|
|
@@ -155083,8 +155096,8 @@ const RepoCardStatic = ({
|
|
|
155083
155096
|
{
|
|
155084
155097
|
style: {
|
|
155085
155098
|
position: "absolute",
|
|
155086
|
-
top: "
|
|
155087
|
-
left: "
|
|
155099
|
+
top: "10px",
|
|
155100
|
+
left: "10px",
|
|
155088
155101
|
display: "flex",
|
|
155089
155102
|
alignItems: "center",
|
|
155090
155103
|
gap: "6px",
|
|
@@ -155129,8 +155142,8 @@ const RepoCardStatic = ({
|
|
|
155129
155142
|
{
|
|
155130
155143
|
style: {
|
|
155131
155144
|
position: "absolute",
|
|
155132
|
-
top: "
|
|
155133
|
-
right: "
|
|
155145
|
+
top: "10px",
|
|
155146
|
+
right: "10px",
|
|
155134
155147
|
display: "flex",
|
|
155135
155148
|
alignItems: "center",
|
|
155136
155149
|
gap: "4px",
|
|
@@ -155254,7 +155267,7 @@ const RepoCardStatic = ({
|
|
|
155254
155267
|
"div",
|
|
155255
155268
|
{
|
|
155256
155269
|
style: {
|
|
155257
|
-
marginTop: "
|
|
155270
|
+
marginTop: "12px",
|
|
155258
155271
|
padding: "8px",
|
|
155259
155272
|
background: `linear-gradient(180deg, ${colors.panelGradient[0]} 0%, ${colors.panelGradient[1]} 100%)`,
|
|
155260
155273
|
border: `1px solid ${colors.panelBorder}`,
|
|
@@ -155354,6 +155367,22 @@ const RepoCardStatic = ({
|
|
|
155354
155367
|
]
|
|
155355
155368
|
}
|
|
155356
155369
|
),
|
|
155370
|
+
((_e2 = repository.github) == null ? void 0 : _e2.primaryLanguage) && /* @__PURE__ */ jsx(
|
|
155371
|
+
"div",
|
|
155372
|
+
{
|
|
155373
|
+
style: {
|
|
155374
|
+
position: "absolute",
|
|
155375
|
+
bottom: "4px",
|
|
155376
|
+
left: "8px",
|
|
155377
|
+
fontSize: theme2.fontSizes[0],
|
|
155378
|
+
fontWeight: theme2.fontWeights.medium,
|
|
155379
|
+
color: "#e0e0e0",
|
|
155380
|
+
textShadow: "0 1px 1px rgba(0,0,0,0.3)",
|
|
155381
|
+
fontFamily: theme2.fonts.body
|
|
155382
|
+
},
|
|
155383
|
+
children: repository.github.primaryLanguage
|
|
155384
|
+
}
|
|
155385
|
+
),
|
|
155357
155386
|
license && /* @__PURE__ */ jsx(
|
|
155358
155387
|
"div",
|
|
155359
155388
|
{
|
|
@@ -155546,4 +155575,4 @@ export {
|
|
|
155546
155575
|
RepoCardStatic as y,
|
|
155547
155576
|
renderSpriteToDataUrl as z
|
|
155548
155577
|
};
|
|
155549
|
-
//# sourceMappingURL=index-
|
|
155578
|
+
//# sourceMappingURL=index-BinFidNv.js.map
|