pxengine 0.1.124 → 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.mjs CHANGED
@@ -18061,7 +18061,7 @@ var ResearchReportJobCard = (props) => {
18061
18061
  ] })
18062
18062
  ] }) });
18063
18063
  }
18064
- if (status === "complete" && !hasHTML) {
18064
+ if (status === "complete" && !hasHTML && !pdfUrl) {
18065
18065
  return /* @__PURE__ */ jsx152("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsxs110("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", children: [
18066
18066
  /* @__PURE__ */ jsx152(
18067
18067
  "div",
@@ -18257,7 +18257,7 @@ var ResearchReportJobCard = (props) => {
18257
18257
  icon: /* @__PURE__ */ jsx152(ExpandIcon, {}),
18258
18258
  label: "Preview report",
18259
18259
  onClick: () => setShowPreview(true),
18260
- disabled: !hasHTML
18260
+ disabled: !hasHTML && !pdfUrl
18261
18261
  }
18262
18262
  ),
18263
18263
  canRegenerate && /* @__PURE__ */ jsx152(
@@ -18346,13 +18346,37 @@ var ResearchReportJobCard = (props) => {
18346
18346
  ]
18347
18347
  }
18348
18348
  ) }),
18349
- !hasHTML && !compact && summary && /* @__PURE__ */ jsx152("div", { className: "mt-4 pt-4 border-t border-zinc-800/60", children: /* @__PURE__ */ jsx152("p", { className: "text-sm text-zinc-400 leading-relaxed line-clamp-3", children: summary }) })
18349
+ !hasHTML && pdfUrl && !compact && /* @__PURE__ */ jsx152("div", { className: "mt-4", children: /* @__PURE__ */ jsxs110(
18350
+ "div",
18351
+ {
18352
+ onClick: () => setShowPreview(true),
18353
+ className: "group relative overflow-hidden rounded-xl bg-white border border-zinc-800/50 cursor-pointer",
18354
+ style: { height: 420 },
18355
+ title: "Click to open fullscreen",
18356
+ children: [
18357
+ /* @__PURE__ */ jsx152(
18358
+ "iframe",
18359
+ {
18360
+ src: pdfUrl,
18361
+ title,
18362
+ className: "h-full w-full border-0",
18363
+ style: { pointerEvents: "none" }
18364
+ }
18365
+ ),
18366
+ /* @__PURE__ */ jsx152("div", { className: "absolute inset-0 flex items-center justify-center bg-black/0 group-hover:bg-black/30 transition-colors", children: /* @__PURE__ */ jsxs110("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: [
18367
+ /* @__PURE__ */ jsx152(ExpandIcon, {}),
18368
+ "Open fullscreen"
18369
+ ] }) })
18370
+ ]
18371
+ }
18372
+ ) }),
18373
+ !hasHTML && !pdfUrl && !compact && summary && /* @__PURE__ */ jsx152("div", { className: "mt-4 pt-4 border-t border-zinc-800/60", children: /* @__PURE__ */ jsx152("p", { className: "text-sm text-zinc-400 leading-relaxed line-clamp-3", children: summary }) })
18350
18374
  ] })
18351
18375
  ] }) }),
18352
- showPreview && hasHTML && /* @__PURE__ */ jsx152(
18376
+ showPreview && (hasHTML || pdfUrl) && /* @__PURE__ */ jsx152(
18353
18377
  FullscreenPreviewModal,
18354
18378
  {
18355
- url: htmlUrl,
18379
+ url: hasHTML ? htmlUrl : pdfUrl,
18356
18380
  title,
18357
18381
  onClose: () => setShowPreview(false)
18358
18382
  }