@industry-theme/repository-composition-panels 0.7.40 → 0.7.42
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-DpnGruKP.js → browserAll-S7GCUhgN.js} +3 -3
- package/dist/{browserAll-DpnGruKP.js.map → browserAll-S7GCUhgN.js.map} +1 -1
- package/dist/{index-jcN279py.js → index-C_3jkero.js} +34 -8
- package/dist/{index-jcN279py.js.map → index-C_3jkero.js.map} +1 -1
- package/dist/{init-BGSnppxz.js → init-D4-ZsR5o.js} +2 -2
- package/dist/{init-BGSnppxz.js.map → init-D4-ZsR5o.js.map} +1 -1
- package/dist/panels/overworld-map/components/CardLayout.d.ts.map +1 -1
- package/dist/panels/overworld-map/components/RepoCardStatic.d.ts +2 -0
- package/dist/panels/overworld-map/components/RepoCardStatic.d.ts.map +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-ZfYKVGLS.js +3 -0
- package/dist/webworkerAll-ZfYKVGLS.js.map +1 -0
- package/package.json +1 -1
- package/dist/webworkerAll-CdPNP56B.js +0 -3
- package/dist/webworkerAll-CdPNP56B.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-C_3jkero.js";
|
|
2
|
+
import "./init-D4-ZsR5o.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-S7GCUhgN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserAll-
|
|
1
|
+
{"version":3,"file":"browserAll-S7GCUhgN.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]}
|
|
@@ -106214,7 +106214,7 @@ const browserExt = {
|
|
|
106214
106214
|
},
|
|
106215
106215
|
test: () => true,
|
|
106216
106216
|
load: async () => {
|
|
106217
|
-
await import("./browserAll-
|
|
106217
|
+
await import("./browserAll-S7GCUhgN.js");
|
|
106218
106218
|
}
|
|
106219
106219
|
};
|
|
106220
106220
|
const webworkerExt = {
|
|
@@ -106225,7 +106225,7 @@ const webworkerExt = {
|
|
|
106225
106225
|
},
|
|
106226
106226
|
test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
|
|
106227
106227
|
load: async () => {
|
|
106228
|
-
await import("./webworkerAll-
|
|
106228
|
+
await import("./webworkerAll-ZfYKVGLS.js");
|
|
106229
106229
|
}
|
|
106230
106230
|
};
|
|
106231
106231
|
class ObservablePoint {
|
|
@@ -154074,7 +154074,20 @@ const formatCreatedDate = (isoDate) => {
|
|
|
154074
154074
|
return `Est. ${months2}mo ago`;
|
|
154075
154075
|
}
|
|
154076
154076
|
}
|
|
154077
|
-
const months = [
|
|
154077
|
+
const months = [
|
|
154078
|
+
"Jan",
|
|
154079
|
+
"Feb",
|
|
154080
|
+
"Mar",
|
|
154081
|
+
"Apr",
|
|
154082
|
+
"May",
|
|
154083
|
+
"Jun",
|
|
154084
|
+
"Jul",
|
|
154085
|
+
"Aug",
|
|
154086
|
+
"Sep",
|
|
154087
|
+
"Oct",
|
|
154088
|
+
"Nov",
|
|
154089
|
+
"Dec"
|
|
154090
|
+
];
|
|
154078
154091
|
return `Est. ${months[date.getMonth()]} ${date.getFullYear()}`;
|
|
154079
154092
|
};
|
|
154080
154093
|
const STARFIELD_BACKGROUND = `
|
|
@@ -155897,15 +155910,17 @@ const RepoCardStatic = ({
|
|
|
155897
155910
|
cardTheme = "blue",
|
|
155898
155911
|
width = 200,
|
|
155899
155912
|
height = 280,
|
|
155900
|
-
spriteSize = 160
|
|
155913
|
+
spriteSize = 160,
|
|
155914
|
+
customImage
|
|
155901
155915
|
}) => {
|
|
155902
155916
|
var _a, _b, _c, _d, _e2, _f, _g;
|
|
155903
155917
|
const [spriteDataUrl, setSpriteDataUrl] = useState(null);
|
|
155904
|
-
const [isLoading, setIsLoading] = useState(
|
|
155918
|
+
const [isLoading, setIsLoading] = useState(!customImage);
|
|
155905
155919
|
const size = calculateRepositorySize(repository.metrics);
|
|
155906
155920
|
const color2 = getRepositoryColor(repository);
|
|
155907
155921
|
const colors = generateCardColors(color2);
|
|
155908
155922
|
useEffect(() => {
|
|
155923
|
+
if (customImage) return;
|
|
155909
155924
|
let mounted = true;
|
|
155910
155925
|
async function renderSprite() {
|
|
155911
155926
|
var _a2, _b2, _c2;
|
|
@@ -155936,8 +155951,19 @@ const RepoCardStatic = ({
|
|
|
155936
155951
|
return () => {
|
|
155937
155952
|
mounted = false;
|
|
155938
155953
|
};
|
|
155939
|
-
}, [size, color2, packages, repository, spriteSize]);
|
|
155940
|
-
const spriteContent =
|
|
155954
|
+
}, [size, color2, packages, repository, spriteSize, customImage]);
|
|
155955
|
+
const spriteContent = customImage ? /* @__PURE__ */ jsx(
|
|
155956
|
+
"img",
|
|
155957
|
+
{
|
|
155958
|
+
src: customImage,
|
|
155959
|
+
alt: repository.name,
|
|
155960
|
+
style: {
|
|
155961
|
+
width: "100%",
|
|
155962
|
+
height: "100%",
|
|
155963
|
+
objectFit: "contain"
|
|
155964
|
+
}
|
|
155965
|
+
}
|
|
155966
|
+
) : isLoading ? /* @__PURE__ */ jsx(
|
|
155941
155967
|
"div",
|
|
155942
155968
|
{
|
|
155943
155969
|
style: {
|
|
@@ -156181,4 +156207,4 @@ export {
|
|
|
156181
156207
|
RepoCardStatic as y,
|
|
156182
156208
|
CardBack as z
|
|
156183
156209
|
};
|
|
156184
|
-
//# sourceMappingURL=index-
|
|
156210
|
+
//# sourceMappingURL=index-C_3jkero.js.map
|