@industry-theme/repository-composition-panels 0.7.57 → 0.7.58

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.
Files changed (2) hide show
  1. package/dist/og.bundle.js +46 -46
  2. package/package.json +2 -2
package/dist/og.bundle.js CHANGED
@@ -71,7 +71,7 @@ function formatCount(count) {
71
71
  }
72
72
 
73
73
  // src/panels/overworld-map/components/CardLayoutOG.tsx
74
- import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
74
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
75
75
  var DEFAULT_OG_THEME = {
76
76
  fonts: {
77
77
  body: "Inter, system-ui, sans-serif",
@@ -164,7 +164,7 @@ var CardLayoutOG = ({
164
164
  const colors = generateCardColors(baseColor);
165
165
  const licenseBorder = license ? licenseBorderColors[license] : null;
166
166
  const showHeader = owner || stars !== undefined && stars > 0;
167
- return /* @__PURE__ */ jsxDEV("div", {
167
+ return /* @__PURE__ */ jsxs("div", {
168
168
  style: {
169
169
  position: "relative",
170
170
  display: "flex",
@@ -179,7 +179,7 @@ var CardLayoutOG = ({
179
179
  overflow: "hidden"
180
180
  },
181
181
  children: [
182
- /* @__PURE__ */ jsxDEV("div", {
182
+ /* @__PURE__ */ jsxs("div", {
183
183
  style: {
184
184
  width: "100%",
185
185
  height: "50%",
@@ -195,7 +195,7 @@ var CardLayoutOG = ({
195
195
  },
196
196
  children: [
197
197
  children,
198
- files !== undefined && files > 0 && /* @__PURE__ */ jsxDEV("div", {
198
+ files !== undefined && files > 0 && /* @__PURE__ */ jsx("div", {
199
199
  style: {
200
200
  position: "absolute",
201
201
  bottom: 0,
@@ -206,7 +206,7 @@ var CardLayoutOG = ({
206
206
  backgroundColor: "rgba(0, 0, 0, 0.7)",
207
207
  padding: "2px 6px"
208
208
  },
209
- children: /* @__PURE__ */ jsxDEV("span", {
209
+ children: /* @__PURE__ */ jsxs("span", {
210
210
  style: {
211
211
  fontSize: theme.fontSizes[2],
212
212
  fontWeight: theme.fontWeights.medium,
@@ -217,11 +217,11 @@ var CardLayoutOG = ({
217
217
  formatCount(files),
218
218
  " files"
219
219
  ]
220
- }, undefined, true, undefined, this)
221
- }, undefined, false, undefined, this)
220
+ })
221
+ })
222
222
  ]
223
- }, undefined, true, undefined, this),
224
- showHeader && /* @__PURE__ */ jsxDEV("div", {
223
+ }),
224
+ showHeader && /* @__PURE__ */ jsxs("div", {
225
225
  style: {
226
226
  position: "absolute",
227
227
  top: 0,
@@ -233,7 +233,7 @@ var CardLayoutOG = ({
233
233
  minHeight: 24
234
234
  },
235
235
  children: [
236
- /* @__PURE__ */ jsxDEV("div", {
236
+ /* @__PURE__ */ jsx("div", {
237
237
  style: {
238
238
  display: "flex",
239
239
  alignItems: "center",
@@ -242,9 +242,9 @@ var CardLayoutOG = ({
242
242
  minWidth: 0,
243
243
  overflow: "hidden"
244
244
  },
245
- children: owner && /* @__PURE__ */ jsxDEV(Fragment, {
245
+ children: owner && /* @__PURE__ */ jsxs(Fragment, {
246
246
  children: [
247
- /* @__PURE__ */ jsxDEV("img", {
247
+ /* @__PURE__ */ jsx("img", {
248
248
  src: avatarUrl || `https://github.com/${owner}.png?size=80`,
249
249
  alt: owner,
250
250
  width: 40,
@@ -256,8 +256,8 @@ var CardLayoutOG = ({
256
256
  backgroundColor: colors.cardBorder,
257
257
  flexShrink: 0
258
258
  }
259
- }, undefined, false, undefined, this),
260
- /* @__PURE__ */ jsxDEV("span", {
259
+ }),
260
+ /* @__PURE__ */ jsx("span", {
261
261
  style: {
262
262
  display: "flex",
263
263
  fontSize: theme.fontSizes[4],
@@ -272,11 +272,11 @@ var CardLayoutOG = ({
272
272
  whiteSpace: "nowrap"
273
273
  },
274
274
  children: ownerDisplayName ?? owner
275
- }, undefined, false, undefined, this)
275
+ })
276
276
  ]
277
- }, undefined, true, undefined, this)
278
- }, undefined, false, undefined, this),
279
- stars !== undefined && stars > 0 && /* @__PURE__ */ jsxDEV("div", {
277
+ })
278
+ }),
279
+ stars !== undefined && stars > 0 && /* @__PURE__ */ jsxs("div", {
280
280
  style: {
281
281
  display: "flex",
282
282
  alignItems: "center",
@@ -286,7 +286,7 @@ var CardLayoutOG = ({
286
286
  flexShrink: 0
287
287
  },
288
288
  children: [
289
- /* @__PURE__ */ jsxDEV("span", {
289
+ /* @__PURE__ */ jsx("span", {
290
290
  style: {
291
291
  fontSize: theme.fontSizes[4],
292
292
  fontWeight: theme.fontWeights.medium,
@@ -294,21 +294,21 @@ var CardLayoutOG = ({
294
294
  fontFamily: theme.fonts.body
295
295
  },
296
296
  children: formatCount(stars)
297
- }, undefined, false, undefined, this),
298
- /* @__PURE__ */ jsxDEV("svg", {
297
+ }),
298
+ /* @__PURE__ */ jsx("svg", {
299
299
  width: theme.fontSizes[4],
300
300
  height: theme.fontSizes[4],
301
301
  viewBox: "0 0 24 24",
302
302
  fill: getStarColor(stars),
303
303
  style: { marginTop: 2, marginLeft: -2 },
304
- children: /* @__PURE__ */ jsxDEV("path", {
304
+ children: /* @__PURE__ */ jsx("path", {
305
305
  d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"
306
- }, undefined, false, undefined, this)
307
- }, undefined, false, undefined, this)
306
+ })
307
+ })
308
308
  ]
309
- }, undefined, true, undefined, this)
309
+ })
310
310
  ]
311
- }, undefined, true, undefined, this),
311
+ }),
312
312
  label && (() => {
313
313
  const baseFontSize = 24;
314
314
  const minFontSize = 12;
@@ -322,7 +322,7 @@ var CardLayoutOG = ({
322
322
  borderTop: `2px solid ${namePlateColor}`,
323
323
  borderBottom: `2px solid ${namePlateColor}`
324
324
  } : { border: `2px solid ${namePlateColor}` };
325
- return /* @__PURE__ */ jsxDEV("div", {
325
+ return /* @__PURE__ */ jsx("div", {
326
326
  style: {
327
327
  marginTop: 4,
328
328
  display: "flex",
@@ -333,7 +333,7 @@ var CardLayoutOG = ({
333
333
  overflow: "hidden",
334
334
  ...borderStyle
335
335
  },
336
- children: /* @__PURE__ */ jsxDEV("span", {
336
+ children: /* @__PURE__ */ jsx("span", {
337
337
  style: {
338
338
  fontSize: `${fontSize}px`,
339
339
  fontWeight: theme.fontWeights.bold,
@@ -345,10 +345,10 @@ var CardLayoutOG = ({
345
345
  maxWidth: "100%"
346
346
  },
347
347
  children: label
348
- }, undefined, false, undefined, this)
349
- }, undefined, false, undefined, this);
348
+ })
349
+ });
350
350
  })(),
351
- /* @__PURE__ */ jsxDEV("div", {
351
+ /* @__PURE__ */ jsxs("div", {
352
352
  style: {
353
353
  marginTop: 0,
354
354
  padding: 8,
@@ -375,7 +375,7 @@ var CardLayoutOG = ({
375
375
  const shrinkRatio = Math.min(1, excess / range);
376
376
  descFontSize = baseFontSize - shrinkRatio * (baseFontSize - minFontSize);
377
377
  }
378
- return /* @__PURE__ */ jsxDEV("div", {
378
+ return /* @__PURE__ */ jsx("div", {
379
379
  style: {
380
380
  fontSize: `${descFontSize}px`,
381
381
  color: "#e0e0e0",
@@ -388,9 +388,9 @@ var CardLayoutOG = ({
388
388
  WebkitBoxOrient: "vertical"
389
389
  },
390
390
  children: description
391
- }, undefined, false, undefined, this);
391
+ });
392
392
  })(),
393
- packages && packages.length > 1 && /* @__PURE__ */ jsxDEV("div", {
393
+ packages && packages.length > 1 && /* @__PURE__ */ jsxs("div", {
394
394
  style: {
395
395
  marginTop: 6,
396
396
  display: "flex",
@@ -399,7 +399,7 @@ var CardLayoutOG = ({
399
399
  gap: 4
400
400
  },
401
401
  children: [
402
- packages.slice(0, 6).map((pkg, i) => /* @__PURE__ */ jsxDEV("span", {
402
+ packages.slice(0, 6).map((pkg, i) => /* @__PURE__ */ jsx("span", {
403
403
  style: {
404
404
  fontSize: theme.fontSizes[0],
405
405
  color: "#e0e0e0",
@@ -410,8 +410,8 @@ var CardLayoutOG = ({
410
410
  borderLeft: `2px solid ${typeof pkg.color === "string" ? pkg.color : `#${(pkg.color || 8947848).toString(16).padStart(6, "0")}`}`
411
411
  },
412
412
  children: pkg.name
413
- }, i, false, undefined, this)),
414
- packages.length > 6 && /* @__PURE__ */ jsxDEV("span", {
413
+ }, i)),
414
+ packages.length > 6 && /* @__PURE__ */ jsxs("span", {
415
415
  style: {
416
416
  fontSize: theme.fontSizes[0],
417
417
  color: "#a0a0a0",
@@ -422,12 +422,12 @@ var CardLayoutOG = ({
422
422
  packages.length - 6,
423
423
  " more"
424
424
  ]
425
- }, undefined, true, undefined, this)
425
+ })
426
426
  ]
427
- }, undefined, true, undefined, this)
427
+ })
428
428
  ]
429
- }, undefined, true, undefined, this),
430
- createdAt ? /* @__PURE__ */ jsxDEV("div", {
429
+ }),
430
+ createdAt ? /* @__PURE__ */ jsx("div", {
431
431
  style: {
432
432
  position: "absolute",
433
433
  bottom: 0,
@@ -441,7 +441,7 @@ var CardLayoutOG = ({
441
441
  color: getAgeBadgeColors(createdAt).text
442
442
  },
443
443
  children: formatCreatedDate(createdAt)
444
- }, undefined, false, undefined, this) : language ? /* @__PURE__ */ jsxDEV("div", {
444
+ }) : language ? /* @__PURE__ */ jsx("div", {
445
445
  style: {
446
446
  position: "absolute",
447
447
  bottom: 4,
@@ -453,8 +453,8 @@ var CardLayoutOG = ({
453
453
  fontFamily: theme.fonts.body
454
454
  },
455
455
  children: language
456
- }, undefined, false, undefined, this) : null,
457
- license && /* @__PURE__ */ jsxDEV("div", {
456
+ }) : null,
457
+ license && /* @__PURE__ */ jsx("div", {
458
458
  style: {
459
459
  position: "absolute",
460
460
  bottom: 0,
@@ -468,9 +468,9 @@ var CardLayoutOG = ({
468
468
  color: "#ffffff"
469
469
  },
470
470
  children: license
471
- }, undefined, false, undefined, this)
471
+ })
472
472
  ]
473
- }, undefined, true, undefined, this);
473
+ });
474
474
  };
475
475
  export {
476
476
  parseColor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@industry-theme/repository-composition-panels",
3
- "version": "0.7.57",
3
+ "version": "0.7.58",
4
4
  "description": "Repository composition panels including Git Changes panel for the panel framework",
5
5
  "type": "module",
6
6
  "main": "dist/panels.bundle.js",
@@ -35,7 +35,7 @@
35
35
  "build": "bun run clean && bun run build:panel && bun run build:tools && bun run build:og && bun run build:types",
36
36
  "build:panel": "NODE_ENV=production vite build",
37
37
  "build:tools": "bun build ./src/tools/index.ts --outfile ./dist/tools.bundle.js --format esm --target browser",
38
- "build:og": "bun build ./src/og.ts --outfile ./dist/og.bundle.js --format esm --target node --external react --external react/jsx-runtime --external react/jsx-dev-runtime --external react-dom",
38
+ "build:og": "NODE_ENV=production bun build ./src/og.ts --outfile ./dist/og.bundle.js --format esm --target node --external react --external react/jsx-runtime --external react/jsx-dev-runtime --external react-dom",
39
39
  "build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly --declaration --declarationMap",
40
40
  "dev": "vite build --watch",
41
41
  "clean": "rm -rf dist",