@devtron-labs/devtron-fe-common-lib 0.0.74-beta-2 → 0.0.74-beta-5

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.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ScanVulnerabilitiesTableProps } from '../Types';
3
- export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy }: ScanVulnerabilitiesTableProps): JSX.Element;
3
+ export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick }: ScanVulnerabilitiesTableProps): JSX.Element;
@@ -446,6 +446,7 @@ export interface VulnerabilityType {
446
446
  export interface ScanVulnerabilitiesTableProps {
447
447
  vulnerabilities: VulnerabilityType[];
448
448
  hidePolicy?: boolean;
449
+ shouldStick?: boolean;
449
450
  }
450
451
  export interface MaterialInfo {
451
452
  revision: string;
package/dist/index.js CHANGED
@@ -15415,42 +15415,42 @@ const F4 = ({
15415
15415
  }
15416
15416
  );
15417
15417
  }, Y4 = F4;
15418
- function G4({ vulnerabilities: e, hidePolicy: t }) {
15419
- const n = (r) => /* @__PURE__ */ l.jsxs(
15418
+ function G4({ vulnerabilities: e, hidePolicy: t, shouldStick: n }) {
15419
+ const r = (a) => /* @__PURE__ */ l.jsxs(
15420
15420
  "tr",
15421
15421
  {
15422
15422
  className: "dc__security-tab__table-row cursor",
15423
- onClick: (a) => {
15424
- window.open(`https://cve.mitre.org/cgi-bin/cvename.cgi?name=${r.name}`, "_blank");
15423
+ onClick: (s) => {
15424
+ window.open(`https://cve.mitre.org/cgi-bin/cvename.cgi?name=${a.name}`, "_blank");
15425
15425
  },
15426
15426
  children: [
15427
15427
  /* @__PURE__ */ l.jsx("td", { className: "security-tab__cell-cve dc__cve-cell", children: /* @__PURE__ */ l.jsx(
15428
15428
  "a",
15429
15429
  {
15430
- href: `https://cve.mitre.org/cgi-bin/cvename.cgi?name=${r.name}`,
15430
+ href: `https://cve.mitre.org/cgi-bin/cvename.cgi?name=${a.name}`,
15431
15431
  rel: "noopener noreferrer",
15432
15432
  target: "_blank",
15433
- children: r.name
15433
+ children: a.name
15434
15434
  }
15435
15435
  ) }),
15436
- /* @__PURE__ */ l.jsx("td", { className: "security-tab__cell-severity", children: /* @__PURE__ */ l.jsx("span", { className: `dc__fill-${r.severity?.toLowerCase()}`, children: r.severity }) }),
15437
- /* @__PURE__ */ l.jsx("td", { className: "security-tab__cell-package", children: r.package }),
15436
+ /* @__PURE__ */ l.jsx("td", { className: "security-tab__cell-severity", children: /* @__PURE__ */ l.jsx("span", { className: `dc__fill-${a.severity?.toLowerCase()}`, children: a.severity }) }),
15437
+ /* @__PURE__ */ l.jsx("td", { className: "security-tab__cell-package", children: a.package }),
15438
15438
  /* @__PURE__ */ l.jsx("td", { className: "security-tab__cell-current-ver", children: /* @__PURE__ */ l.jsx("p", { className: "m-0 cn-9 fs-13 fw-4", dangerouslySetInnerHTML: {
15439
- __html: Lp.sanitize(r.version)
15439
+ __html: Lp.sanitize(a.version)
15440
15440
  } }) }),
15441
- /* @__PURE__ */ l.jsx("td", { className: "security-tab__cell-fixed-ver", children: r.fixedVersion }),
15441
+ /* @__PURE__ */ l.jsx("td", { className: "security-tab__cell-fixed-ver", children: a.fixedVersion }),
15442
15442
  !t && /* @__PURE__ */ l.jsx(
15443
15443
  "td",
15444
15444
  {
15445
- className: `security-tab__cell-policy security-tab__cell-policy--${r.policy?.toLowerCase()}`,
15446
- children: r.policy?.toLowerCase()
15445
+ className: `security-tab__cell-policy security-tab__cell-policy--${a.policy?.toLowerCase()}`,
15446
+ children: a.policy?.toLowerCase()
15447
15447
  }
15448
15448
  )
15449
15449
  ]
15450
15450
  }
15451
15451
  );
15452
15452
  return /* @__PURE__ */ l.jsx("table", { className: "security-tab__table", children: /* @__PURE__ */ l.jsxs("tbody", { children: [
15453
- /* @__PURE__ */ l.jsxs("tr", { className: "security-tab__table-header", children: [
15453
+ /* @__PURE__ */ l.jsxs("tr", { className: `security-tab__table-header ${n ? "dc__position-sticky bcn-0 dc__zi-4 dc__top-0" : ""}`, children: [
15454
15454
  /* @__PURE__ */ l.jsx("th", { className: "security-cell-header security-tab__cell-cve", children: "CVE" }),
15455
15455
  /* @__PURE__ */ l.jsx("th", { className: "security-cell-header security-tab__cell-severity", children: "Severity" }),
15456
15456
  /* @__PURE__ */ l.jsx("th", { className: "security-cell-header security-tab__cell-package", children: "Package" }),
@@ -15458,7 +15458,7 @@ function G4({ vulnerabilities: e, hidePolicy: t }) {
15458
15458
  /* @__PURE__ */ l.jsx("th", { className: "security-cell-header security-tab__cell-fixed-ver", children: "Fixed In Version" }),
15459
15459
  !t && /* @__PURE__ */ l.jsx("th", { className: "security-cell-header security-tab__cell-policy", children: "Policy" })
15460
15460
  ] }),
15461
- e.map((r) => n(r))
15461
+ e.map((a) => r(a))
15462
15462
  ] }) });
15463
15463
  }
15464
15464
  const np = oe.createContext(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.74-beta-2",
3
+ "version": "0.0.74-beta-5",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",