@industry-theme/repository-composition-panels 0.6.34 → 0.6.35

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 (28) hide show
  1. package/dist/{BufferResource-mzBIhgw1.js → BufferResource-BpzvrAqo.js} +2 -2
  2. package/dist/{BufferResource-mzBIhgw1.js.map → BufferResource-BpzvrAqo.js.map} +1 -1
  3. package/dist/{CanvasRenderer-D4giVlw_.js → CanvasRenderer-Bv-_MbWh.js} +3 -3
  4. package/dist/{CanvasRenderer-D4giVlw_.js.map → CanvasRenderer-Bv-_MbWh.js.map} +1 -1
  5. package/dist/{Filter-CS3DdPah.js → Filter-Cmwd6knz.js} +2 -2
  6. package/dist/{Filter-CS3DdPah.js.map → Filter-Cmwd6knz.js.map} +1 -1
  7. package/dist/{RenderTargetSystem-g5tJchpY.js → RenderTargetSystem-OLnj_wg3.js} +3 -3
  8. package/dist/{RenderTargetSystem-g5tJchpY.js.map → RenderTargetSystem-OLnj_wg3.js.map} +1 -1
  9. package/dist/{WebGLRenderer-CQCm4mBz.js → WebGLRenderer-jxFy0ZLj.js} +4 -4
  10. package/dist/{WebGLRenderer-CQCm4mBz.js.map → WebGLRenderer-jxFy0ZLj.js.map} +1 -1
  11. package/dist/{WebGPURenderer-HXlJ-pks.js → WebGPURenderer-Da8LFxby.js} +4 -4
  12. package/dist/{WebGPURenderer-HXlJ-pks.js.map → WebGPURenderer-Da8LFxby.js.map} +1 -1
  13. package/dist/{browserAll-C4GwI3ax.js → browserAll-BXC5KBKl.js} +3 -3
  14. package/dist/{browserAll-C4GwI3ax.js.map → browserAll-BXC5KBKl.js.map} +1 -1
  15. package/dist/{index-IWPV2XCJ.js → index-DsAEvZa5.js} +93 -91
  16. package/dist/{index-IWPV2XCJ.js.map → index-DsAEvZa5.js.map} +1 -1
  17. package/dist/{init-2QlpqDhj.js → init-Cz8WhVwW.js} +3 -3
  18. package/dist/{init-2QlpqDhj.js.map → init-Cz8WhVwW.js.map} +1 -1
  19. package/dist/panels/components/PackageDetailCard.d.ts.map +1 -1
  20. package/dist/panels/components/PackageSummaryCard.d.ts.map +1 -1
  21. package/dist/panels.bundle.js +1 -1
  22. package/dist/utils/licenseColors.d.ts +13 -0
  23. package/dist/utils/licenseColors.d.ts.map +1 -0
  24. package/dist/webworkerAll-DqntRjKn.js +3 -0
  25. package/dist/webworkerAll-DqntRjKn.js.map +1 -0
  26. package/package.json +1 -1
  27. package/dist/webworkerAll-vHNhL1AY.js +0 -3
  28. package/dist/webworkerAll-vHNhL1AY.js.map +0 -1
@@ -2724,6 +2724,64 @@ function parseEnvFile(content2, fileType) {
2724
2724
  format: "dotenv"
2725
2725
  };
2726
2726
  }
2727
+ const permissiveLicenses = /* @__PURE__ */ new Set([
2728
+ "MIT",
2729
+ "Apache-2.0",
2730
+ "BSD-2-Clause",
2731
+ "BSD-3-Clause",
2732
+ "ISC",
2733
+ "Unlicense",
2734
+ "CC0-1.0",
2735
+ "0BSD",
2736
+ "WTFPL"
2737
+ ]);
2738
+ const weakCopyleftLicenses = /* @__PURE__ */ new Set([
2739
+ "LGPL-2.0",
2740
+ "LGPL-2.1",
2741
+ "LGPL-3.0",
2742
+ "MPL-2.0",
2743
+ "EPL-1.0",
2744
+ "EPL-2.0",
2745
+ "OSL-3.0"
2746
+ ]);
2747
+ const strongCopyleftLicenses = /* @__PURE__ */ new Set([
2748
+ "GPL-2.0",
2749
+ "GPL-3.0",
2750
+ "AGPL-3.0",
2751
+ "GPL-2.0-only",
2752
+ "GPL-3.0-only",
2753
+ "AGPL-3.0-only"
2754
+ ]);
2755
+ function getLicensePermissiveness(license) {
2756
+ if (!license) return "unknown";
2757
+ const normalized = license.trim();
2758
+ if (permissiveLicenses.has(normalized)) return "permissive";
2759
+ if (weakCopyleftLicenses.has(normalized)) return "weakCopyleft";
2760
+ if (strongCopyleftLicenses.has(normalized)) return "strongCopyleft";
2761
+ const upper = normalized.toUpperCase();
2762
+ if (upper.includes("MIT") || upper.includes("APACHE") || upper.includes("BSD"))
2763
+ return "permissive";
2764
+ if (upper.includes("LGPL") || upper.includes("MPL")) return "weakCopyleft";
2765
+ if (upper.includes("GPL") || upper.includes("AGPL")) return "strongCopyleft";
2766
+ return "unknown";
2767
+ }
2768
+ function getLicenseColor(license) {
2769
+ const permissiveness = getLicensePermissiveness(license);
2770
+ switch (permissiveness) {
2771
+ case "permissive":
2772
+ return "#10b981";
2773
+ // green
2774
+ case "weakCopyleft":
2775
+ return "#f59e0b";
2776
+ // amber/orange
2777
+ case "strongCopyleft":
2778
+ return "#ef4444";
2779
+ // red
2780
+ case "unknown":
2781
+ default:
2782
+ return "#6b7280";
2783
+ }
2784
+ }
2727
2785
  const dependencyTypeOrder = {
2728
2786
  peer: 0,
2729
2787
  production: 1,
@@ -2967,7 +3025,11 @@ const PackageDetailCard = ({
2967
3025
  },
2968
3026
  children: [
2969
3027
  pkg.packageData.path || "root",
2970
- pkg.packageData.version && ` - v${pkg.packageData.version}`
3028
+ pkg.packageData.version && ` - v${pkg.packageData.version}`,
3029
+ pkg.packageData.license && /* @__PURE__ */ jsxs(Fragment, { children: [
3030
+ " - ",
3031
+ /* @__PURE__ */ jsx("span", { style: { color: getLicenseColor(pkg.packageData.license) }, children: pkg.packageData.license })
3032
+ ] })
2971
3033
  ]
2972
3034
  }
2973
3035
  )
@@ -3001,7 +3063,7 @@ const PackageDetailCard = ({
3001
3063
  ]
3002
3064
  }
3003
3065
  ),
3004
- (pkg.packageData.description || pkg.packageData.license || pkg.packageData.author) && /* @__PURE__ */ jsxs(
3066
+ (pkg.packageData.description || pkg.packageData.author) && /* @__PURE__ */ jsxs(
3005
3067
  "div",
3006
3068
  {
3007
3069
  style: {
@@ -3024,45 +3086,17 @@ const PackageDetailCard = ({
3024
3086
  children: pkg.packageData.description
3025
3087
  }
3026
3088
  ),
3027
- /* @__PURE__ */ jsxs(
3028
- "div",
3089
+ (pkg.packageData.author || ((_b = pkg.packageData.authors) == null ? void 0 : _b[0])) && /* @__PURE__ */ jsxs(
3090
+ "span",
3029
3091
  {
3030
3092
  style: {
3031
- display: "flex",
3032
- gap: "8px",
3033
- flexWrap: "wrap",
3034
- alignItems: "center"
3093
+ fontSize: theme2.fontSizes[0],
3094
+ fontFamily: theme2.fonts.body,
3095
+ color: theme2.colors.textSecondary
3035
3096
  },
3036
3097
  children: [
3037
- pkg.packageData.license && /* @__PURE__ */ jsx(
3038
- "span",
3039
- {
3040
- style: {
3041
- padding: "2px 8px",
3042
- backgroundColor: theme2.colors.textSecondary + "15",
3043
- color: theme2.colors.textSecondary,
3044
- borderRadius: "4px",
3045
- fontSize: theme2.fontSizes[0],
3046
- fontWeight: theme2.fontWeights.medium,
3047
- fontFamily: theme2.fonts.body
3048
- },
3049
- children: pkg.packageData.license
3050
- }
3051
- ),
3052
- (pkg.packageData.author || ((_b = pkg.packageData.authors) == null ? void 0 : _b[0])) && /* @__PURE__ */ jsxs(
3053
- "span",
3054
- {
3055
- style: {
3056
- fontSize: theme2.fontSizes[0],
3057
- fontFamily: theme2.fonts.body,
3058
- color: theme2.colors.textSecondary
3059
- },
3060
- children: [
3061
- "by ",
3062
- pkg.packageData.author || ((_c = pkg.packageData.authors) == null ? void 0 : _c[0])
3063
- ]
3064
- }
3065
- )
3098
+ "by ",
3099
+ pkg.packageData.author || ((_c = pkg.packageData.authors) == null ? void 0 : _c[0])
3066
3100
  ]
3067
3101
  }
3068
3102
  )
@@ -3570,7 +3604,11 @@ const PackageDetailCard = ({
3570
3604
  },
3571
3605
  children: [
3572
3606
  pkg.packageData.path || "root",
3573
- pkg.packageData.version && ` - v${pkg.packageData.version}`
3607
+ pkg.packageData.version && ` - v${pkg.packageData.version}`,
3608
+ pkg.packageData.license && /* @__PURE__ */ jsxs(Fragment, { children: [
3609
+ " - ",
3610
+ /* @__PURE__ */ jsx("span", { style: { color: getLicenseColor(pkg.packageData.license) }, children: pkg.packageData.license })
3611
+ ] })
3574
3612
  ]
3575
3613
  }
3576
3614
  )
@@ -4185,57 +4223,20 @@ const PackageSummaryCard = ({
4185
4223
  ),
4186
4224
  /* @__PURE__ */ jsx(ChevronRight$1, { size: 16, color: theme2.colors.textSecondary })
4187
4225
  ] }),
4188
- (pkg.packageData.description || pkg.packageData.license) && /* @__PURE__ */ jsxs(
4226
+ pkg.packageData.description && /* @__PURE__ */ jsx(
4189
4227
  "div",
4190
4228
  {
4191
4229
  style: {
4192
- display: "flex",
4193
- flexDirection: "column",
4194
- gap: "4px"
4230
+ fontSize: theme2.fontSizes[1],
4231
+ fontFamily: theme2.fonts.body,
4232
+ color: theme2.colors.textSecondary,
4233
+ lineHeight: 1.4,
4234
+ overflow: "hidden",
4235
+ display: "-webkit-box",
4236
+ WebkitLineClamp: 2,
4237
+ WebkitBoxOrient: "vertical"
4195
4238
  },
4196
- children: [
4197
- pkg.packageData.description && /* @__PURE__ */ jsx(
4198
- "div",
4199
- {
4200
- style: {
4201
- fontSize: theme2.fontSizes[1],
4202
- fontFamily: theme2.fonts.body,
4203
- color: theme2.colors.textSecondary,
4204
- lineHeight: 1.4,
4205
- overflow: "hidden",
4206
- display: "-webkit-box",
4207
- WebkitLineClamp: 2,
4208
- WebkitBoxOrient: "vertical"
4209
- },
4210
- children: pkg.packageData.description
4211
- }
4212
- ),
4213
- pkg.packageData.license && /* @__PURE__ */ jsx(
4214
- "div",
4215
- {
4216
- style: {
4217
- display: "flex",
4218
- alignItems: "center",
4219
- gap: "4px",
4220
- fontSize: theme2.fontSizes[1]
4221
- },
4222
- children: /* @__PURE__ */ jsx(
4223
- "span",
4224
- {
4225
- style: {
4226
- padding: "1px 6px",
4227
- backgroundColor: theme2.colors.textSecondary + "15",
4228
- color: theme2.colors.textSecondary,
4229
- borderRadius: "3px",
4230
- fontWeight: theme2.fontWeights.medium,
4231
- fontFamily: theme2.fonts.body
4232
- },
4233
- children: pkg.packageData.license
4234
- }
4235
- )
4236
- }
4237
- )
4238
- ]
4239
+ children: pkg.packageData.description
4239
4240
  }
4240
4241
  ),
4241
4242
  /* @__PURE__ */ jsxs(
@@ -4253,6 +4254,7 @@ const PackageSummaryCard = ({
4253
4254
  "v",
4254
4255
  pkg.packageData.version
4255
4256
  ] }),
4257
+ pkg.packageData.license && /* @__PURE__ */ jsx("span", { style: { color: getLicenseColor(pkg.packageData.license) }, children: pkg.packageData.license }),
4256
4258
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
4257
4259
  /* @__PURE__ */ jsx(Package$1, { size: 12 }),
4258
4260
  /* @__PURE__ */ jsxs("span", { children: [
@@ -105901,7 +105903,7 @@ const browserExt = {
105901
105903
  },
105902
105904
  test: () => true,
105903
105905
  load: async () => {
105904
- await import("./browserAll-C4GwI3ax.js");
105906
+ await import("./browserAll-BXC5KBKl.js");
105905
105907
  }
105906
105908
  };
105907
105909
  const webworkerExt = {
@@ -105912,7 +105914,7 @@ const webworkerExt = {
105912
105914
  },
105913
105915
  test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
105914
105916
  load: async () => {
105915
- await import("./webworkerAll-vHNhL1AY.js");
105917
+ await import("./webworkerAll-DqntRjKn.js");
105916
105918
  }
105917
105919
  };
105918
105920
  class ObservablePoint {
@@ -118155,19 +118157,19 @@ async function autoDetectRenderer(options) {
118155
118157
  for (let i2 = 0; i2 < preferredOrder.length; i2++) {
118156
118158
  const rendererType = preferredOrder[i2];
118157
118159
  if (rendererType === "webgpu" && await isWebGPUSupported()) {
118158
- const { WebGPURenderer } = await import("./WebGPURenderer-HXlJ-pks.js");
118160
+ const { WebGPURenderer } = await import("./WebGPURenderer-Da8LFxby.js");
118159
118161
  RendererClass = WebGPURenderer;
118160
118162
  finalOptions = { ...options, ...options.webgpu };
118161
118163
  break;
118162
118164
  } else if (rendererType === "webgl" && isWebGLSupported(
118163
118165
  options.failIfMajorPerformanceCaveat ?? AbstractRenderer.defaultOptions.failIfMajorPerformanceCaveat
118164
118166
  )) {
118165
- const { WebGLRenderer } = await import("./WebGLRenderer-CQCm4mBz.js");
118167
+ const { WebGLRenderer } = await import("./WebGLRenderer-jxFy0ZLj.js");
118166
118168
  RendererClass = WebGLRenderer;
118167
118169
  finalOptions = { ...options, ...options.webgl };
118168
118170
  break;
118169
118171
  } else if (rendererType === "canvas") {
118170
- const { CanvasRenderer } = await import("./CanvasRenderer-D4giVlw_.js");
118172
+ const { CanvasRenderer } = await import("./CanvasRenderer-Bv-_MbWh.js");
118171
118173
  RendererClass = CanvasRenderer;
118172
118174
  finalOptions = { ...options, ...options.canvasOptions };
118173
118175
  break;
@@ -138222,4 +138224,4 @@ export {
138222
138224
  UPDATE_PRIORITY as y,
138223
138225
  removeItems as z
138224
138226
  };
138225
- //# sourceMappingURL=index-IWPV2XCJ.js.map
138227
+ //# sourceMappingURL=index-DsAEvZa5.js.map