@threatcaptain/tc-reports 0.2.22 → 0.2.23

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/index.cjs CHANGED
@@ -51829,10 +51829,9 @@ const MITRETacticsOverview = ({
51829
51829
  "Individual Tactics for",
51830
51830
  " ",
51831
51831
  (_a = ATTACK_STEPS.find((s2) => s2.stepId === selectedStep)) == null ? void 0 : _a.stepName,
51832
- " ",
51833
- "(Click to view details)"
51832
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "print:hidden", children: "(Click to view details)" })
51834
51833
  ] }),
51835
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 lg:grid-cols-4 gap-2", children: breachData.mitrePhases.filter((phase) => {
51834
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 lg:grid-cols-4 print:grid-cols-4 gap-2", children: breachData.mitrePhases.filter((phase) => {
51836
51835
  const step = getTacticStep(phase.phase);
51837
51836
  return (step == null ? void 0 : step.stepId) === selectedStep;
51838
51837
  }).sort((a2, b) => {
@@ -53267,7 +53266,7 @@ const ReportBuilder = ({
53267
53266
  id: "print-report",
53268
53267
  className: "report-wrapper max-w-4xl mx-auto bg-white p-8 space-y-8 print:font-sans",
53269
53268
  children: [
53270
- /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "report-page", children: [
53269
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "report-page flex flex-col justify-center h-full print:mt-24 print:gap-8", children: [
53271
53270
  /* @__PURE__ */ jsxRuntime.jsx("figure", { className: "bg-slate-200 max-w-40 print:max-w-40 flex object-contain rounded-lg items-center justify-center mx-auto", children: mspInfo.company_logo ? /* @__PURE__ */ jsxRuntime.jsx(
53272
53271
  "img",
53273
53272
  {
@@ -53294,21 +53293,23 @@ const ReportBuilder = ({
53294
53293
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-slate-900", children: (/* @__PURE__ */ new Date()).toLocaleDateString() })
53295
53294
  ] })
53296
53295
  ] }),
53297
- /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-bold text-slate-900 text-left mb-2", children: "Executive Summary" }),
53298
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-base font-semibold text-slate-900", children: "Why This Assessment Matters" }),
53299
- editExecutiveSummary ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
53300
- /* @__PURE__ */ jsxRuntime.jsx(
53301
- Textarea,
53302
- {
53303
- value: displayExecutiveSummary(clientData),
53304
- onChange: (e) => onConfigChange("executiveSummary", e.target.value),
53305
- placeholder: "Executive summary content...",
53306
- rows: 6,
53307
- className: "resize-none"
53308
- }
53309
- ),
53310
- /* @__PURE__ */ jsxRuntime.jsx(Button$1, { onClick: () => setEditExecutiveSummary(false), children: "Save" })
53311
- ] }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-slate-700 leading-relaxed whitespace-pre-line text-sm", children: displayExecutiveSummary(clientData) }) })
53296
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-t border-slate-200 mt-6 pt-6", children: [
53297
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-bold text-slate-900 text-left mb-2", children: "Executive Summary" }),
53298
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-base font-semibold text-slate-900", children: "Why This Assessment Matters" }),
53299
+ editExecutiveSummary ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
53300
+ /* @__PURE__ */ jsxRuntime.jsx(
53301
+ Textarea,
53302
+ {
53303
+ value: displayExecutiveSummary(clientData),
53304
+ onChange: (e) => onConfigChange("executiveSummary", e.target.value),
53305
+ placeholder: "Executive summary content...",
53306
+ rows: 6,
53307
+ className: "resize-none"
53308
+ }
53309
+ ),
53310
+ /* @__PURE__ */ jsxRuntime.jsx(Button$1, { onClick: () => setEditExecutiveSummary(false), children: "Save" })
53311
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-slate-700 leading-relaxed whitespace-pre-line text-sm", children: displayExecutiveSummary(clientData) }) })
53312
+ ] })
53312
53313
  ] }),
53313
53314
  showFinancialImpact && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: financialSimulationData && Object.keys(financialSimulationData).length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
53314
53315
  FinancialImpact,