pxengine 0.1.125 → 0.1.126
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 +28 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +28 -4
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18589,7 +18589,7 @@ var ResearchReportJobCard = (props) => {
|
|
|
18589
18589
|
icon: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(ExpandIcon, {}),
|
|
18590
18590
|
label: "Preview report",
|
|
18591
18591
|
onClick: () => setShowPreview(true),
|
|
18592
|
-
disabled: !hasHTML
|
|
18592
|
+
disabled: !hasHTML && !pdfUrl
|
|
18593
18593
|
}
|
|
18594
18594
|
),
|
|
18595
18595
|
canRegenerate && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
|
|
@@ -18678,13 +18678,37 @@ var ResearchReportJobCard = (props) => {
|
|
|
18678
18678
|
]
|
|
18679
18679
|
}
|
|
18680
18680
|
) }),
|
|
18681
|
-
!hasHTML &&
|
|
18681
|
+
!hasHTML && pdfUrl && !compact && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: "mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(
|
|
18682
|
+
"div",
|
|
18683
|
+
{
|
|
18684
|
+
onClick: () => setShowPreview(true),
|
|
18685
|
+
className: "group relative overflow-hidden rounded-xl bg-white border border-zinc-800/50 cursor-pointer",
|
|
18686
|
+
style: { height: 420 },
|
|
18687
|
+
title: "Click to open fullscreen",
|
|
18688
|
+
children: [
|
|
18689
|
+
/* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
|
|
18690
|
+
"iframe",
|
|
18691
|
+
{
|
|
18692
|
+
src: pdfUrl,
|
|
18693
|
+
title,
|
|
18694
|
+
className: "h-full w-full border-0",
|
|
18695
|
+
style: { pointerEvents: "none" }
|
|
18696
|
+
}
|
|
18697
|
+
),
|
|
18698
|
+
/* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/0 group-hover:bg-black/30 transition-colors", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("span", { className: "opacity-0 group-hover:opacity-100 transition-opacity flex items-center gap-2 bg-zinc-900/80 backdrop-blur-sm border border-zinc-700 rounded-lg px-3 py-1.5 text-xs text-zinc-200 font-medium", children: [
|
|
18699
|
+
/* @__PURE__ */ (0, import_jsx_runtime152.jsx)(ExpandIcon, {}),
|
|
18700
|
+
"Open fullscreen"
|
|
18701
|
+
] }) })
|
|
18702
|
+
]
|
|
18703
|
+
}
|
|
18704
|
+
) }),
|
|
18705
|
+
!hasHTML && !pdfUrl && !compact && summary && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: "mt-4 pt-4 border-t border-zinc-800/60", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("p", { className: "text-sm text-zinc-400 leading-relaxed line-clamp-3", children: summary }) })
|
|
18682
18706
|
] })
|
|
18683
18707
|
] }) }),
|
|
18684
|
-
showPreview && hasHTML && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
|
|
18708
|
+
showPreview && (hasHTML || pdfUrl) && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
|
|
18685
18709
|
FullscreenPreviewModal,
|
|
18686
18710
|
{
|
|
18687
|
-
url: htmlUrl,
|
|
18711
|
+
url: hasHTML ? htmlUrl : pdfUrl,
|
|
18688
18712
|
title,
|
|
18689
18713
|
onClose: () => setShowPreview(false)
|
|
18690
18714
|
}
|