@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 +20 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -19
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51811,10 +51811,9 @@ const MITRETacticsOverview = ({
|
|
|
51811
51811
|
"Individual Tactics for",
|
|
51812
51812
|
" ",
|
|
51813
51813
|
(_a = ATTACK_STEPS.find((s2) => s2.stepId === selectedStep)) == null ? void 0 : _a.stepName,
|
|
51814
|
-
" ",
|
|
51815
|
-
"(Click to view details)"
|
|
51814
|
+
/* @__PURE__ */ jsx("span", { className: "print:hidden", children: "(Click to view details)" })
|
|
51816
51815
|
] }),
|
|
51817
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 lg:grid-cols-4 gap-2", children: breachData.mitrePhases.filter((phase) => {
|
|
51816
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 lg:grid-cols-4 print:grid-cols-4 gap-2", children: breachData.mitrePhases.filter((phase) => {
|
|
51818
51817
|
const step = getTacticStep(phase.phase);
|
|
51819
51818
|
return (step == null ? void 0 : step.stepId) === selectedStep;
|
|
51820
51819
|
}).sort((a2, b) => {
|
|
@@ -53249,7 +53248,7 @@ const ReportBuilder = ({
|
|
|
53249
53248
|
id: "print-report",
|
|
53250
53249
|
className: "report-wrapper max-w-4xl mx-auto bg-white p-8 space-y-8 print:font-sans",
|
|
53251
53250
|
children: [
|
|
53252
|
-
/* @__PURE__ */ jsxs("section", { className: "report-page", children: [
|
|
53251
|
+
/* @__PURE__ */ jsxs("section", { className: "report-page flex flex-col justify-center h-full print:mt-24 print:gap-8", children: [
|
|
53253
53252
|
/* @__PURE__ */ 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__ */ jsx(
|
|
53254
53253
|
"img",
|
|
53255
53254
|
{
|
|
@@ -53276,21 +53275,23 @@ const ReportBuilder = ({
|
|
|
53276
53275
|
/* @__PURE__ */ jsx("span", { className: "text-slate-900", children: (/* @__PURE__ */ new Date()).toLocaleDateString() })
|
|
53277
53276
|
] })
|
|
53278
53277
|
] }),
|
|
53279
|
-
/* @__PURE__ */
|
|
53280
|
-
|
|
53281
|
-
|
|
53282
|
-
/* @__PURE__ */
|
|
53283
|
-
|
|
53284
|
-
|
|
53285
|
-
|
|
53286
|
-
|
|
53287
|
-
|
|
53288
|
-
|
|
53289
|
-
|
|
53290
|
-
|
|
53291
|
-
|
|
53292
|
-
|
|
53293
|
-
|
|
53278
|
+
/* @__PURE__ */ jsxs("div", { className: "border-t border-slate-200 mt-6 pt-6", children: [
|
|
53279
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold text-slate-900 text-left mb-2", children: "Executive Summary" }),
|
|
53280
|
+
/* @__PURE__ */ jsx("h3", { className: "text-base font-semibold text-slate-900", children: "Why This Assessment Matters" }),
|
|
53281
|
+
editExecutiveSummary ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
53282
|
+
/* @__PURE__ */ jsx(
|
|
53283
|
+
Textarea,
|
|
53284
|
+
{
|
|
53285
|
+
value: displayExecutiveSummary(clientData),
|
|
53286
|
+
onChange: (e) => onConfigChange("executiveSummary", e.target.value),
|
|
53287
|
+
placeholder: "Executive summary content...",
|
|
53288
|
+
rows: 6,
|
|
53289
|
+
className: "resize-none"
|
|
53290
|
+
}
|
|
53291
|
+
),
|
|
53292
|
+
/* @__PURE__ */ jsx(Button$1, { onClick: () => setEditExecutiveSummary(false), children: "Save" })
|
|
53293
|
+
] }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("p", { className: "text-slate-700 leading-relaxed whitespace-pre-line text-sm", children: displayExecutiveSummary(clientData) }) })
|
|
53294
|
+
] })
|
|
53294
53295
|
] }),
|
|
53295
53296
|
showFinancialImpact && /* @__PURE__ */ jsx(Fragment, { children: financialSimulationData && Object.keys(financialSimulationData).length > 0 ? /* @__PURE__ */ jsx(
|
|
53296
53297
|
FinancialImpact,
|