pxengine 0.1.91 → 0.1.92
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 +33 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +33 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -39252,9 +39252,12 @@ var PresentationJobCard = ({
|
|
|
39252
39252
|
authToken,
|
|
39253
39253
|
shareUrl,
|
|
39254
39254
|
className,
|
|
39255
|
+
theme,
|
|
39255
39256
|
onComplete,
|
|
39256
39257
|
onFailed
|
|
39257
39258
|
}) => {
|
|
39259
|
+
const t = th(theme);
|
|
39260
|
+
const accentGradient = theme?.gradient;
|
|
39258
39261
|
const [status, setStatus] = (0, import_react76.useState)(initialStatus);
|
|
39259
39262
|
const [title, setTitle] = (0, import_react76.useState)(initialTitle);
|
|
39260
39263
|
const [slideCount, setSlideCount] = (0, import_react76.useState)(initialSlideCount ?? 0);
|
|
@@ -39418,22 +39421,30 @@ var PresentationJobCard = ({
|
|
|
39418
39421
|
}
|
|
39419
39422
|
};
|
|
39420
39423
|
return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: cn("w-full", className), children: [
|
|
39421
|
-
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", children: [
|
|
39424
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", style: t.root, children: [
|
|
39422
39425
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
39423
39426
|
"div",
|
|
39424
39427
|
{
|
|
39425
39428
|
className: "h-[3px] bg-gradient-to-r from-indigo-500 via-purple-500 to-indigo-500 bg-[length:200%_100%] animate-[gradient-shift_2s_ease-in-out_infinite]",
|
|
39426
39429
|
style: {
|
|
39427
39430
|
backgroundSize: "200% 100%",
|
|
39428
|
-
animation: "gradient-shift 2s ease-in-out infinite"
|
|
39431
|
+
animation: "gradient-shift 2s ease-in-out infinite",
|
|
39432
|
+
...accentGradient ? { backgroundImage: accentGradient } : {}
|
|
39429
39433
|
}
|
|
39430
39434
|
}
|
|
39431
39435
|
),
|
|
39432
39436
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "p-5", children: [
|
|
39433
39437
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
39434
|
-
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
39438
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
39439
|
+
"div",
|
|
39440
|
+
{
|
|
39441
|
+
className: "w-10 h-10 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center flex-shrink-0",
|
|
39442
|
+
style: { ...t.accentSubtle(0.1), ...t.accentBorder },
|
|
39443
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-lg", children: getPhaseIcon() })
|
|
39444
|
+
}
|
|
39445
|
+
),
|
|
39435
39446
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
39436
|
-
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", children: title || "Creating Presentation" }),
|
|
39447
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", style: t.text, children: title || "Creating Presentation" }),
|
|
39437
39448
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("p", { className: "text-xs text-zinc-500 mt-0.5", children: [
|
|
39438
39449
|
slidesTotal > 0 ? `${slidesTotal} slides` : "Presentation",
|
|
39439
39450
|
" \xB7 In progress"
|
|
@@ -39446,7 +39457,10 @@ var PresentationJobCard = ({
|
|
|
39446
39457
|
"div",
|
|
39447
39458
|
{
|
|
39448
39459
|
className: "h-full bg-gradient-to-r from-indigo-500 to-purple-500 rounded-full transition-all duration-500 ease-out",
|
|
39449
|
-
style: {
|
|
39460
|
+
style: {
|
|
39461
|
+
width: `${Math.max(pct, 2)}%`,
|
|
39462
|
+
...accentGradient ? { backgroundImage: accentGradient } : t.accentBg
|
|
39463
|
+
}
|
|
39450
39464
|
}
|
|
39451
39465
|
) }),
|
|
39452
39466
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("span", { className: "absolute right-0 -top-5 text-xs text-zinc-500 font-medium tabular-nums", children: [
|
|
@@ -39455,7 +39469,7 @@ var PresentationJobCard = ({
|
|
|
39455
39469
|
] })
|
|
39456
39470
|
] }),
|
|
39457
39471
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
39458
|
-
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "w-2 h-2 rounded-full bg-indigo-500 animate-pulse" }),
|
|
39472
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "w-2 h-2 rounded-full bg-indigo-500 animate-pulse", style: t.accentBg }),
|
|
39459
39473
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { className: "text-xs text-zinc-400", children: step })
|
|
39460
39474
|
] }),
|
|
39461
39475
|
phase === "ai_generation" && slidesTotal > 0 && /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex items-center gap-2 pt-1", children: [
|
|
@@ -39499,14 +39513,21 @@ var PresentationJobCard = ({
|
|
|
39499
39513
|
const total = slideCount || 1;
|
|
39500
39514
|
const hasHtml = Boolean(formats.html_url);
|
|
39501
39515
|
return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, { children: [
|
|
39502
|
-
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", children: [
|
|
39503
|
-
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "h-[3px]", style: { background: "linear-gradient(90deg, #8B7D5E, #C0AE82, #DCC99B)" } }),
|
|
39516
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", style: t.root, children: [
|
|
39517
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", { className: "h-[3px]", style: { background: accentGradient || "linear-gradient(90deg, #8B7D5E, #C0AE82, #DCC99B)" } }),
|
|
39504
39518
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "p-5", children: [
|
|
39505
39519
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex items-start gap-3", children: [
|
|
39506
|
-
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
39520
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
39521
|
+
"div",
|
|
39522
|
+
{
|
|
39523
|
+
className: "w-10 h-10 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center flex-shrink-0 text-indigo-400",
|
|
39524
|
+
style: { ...t.accentSubtle(0.1), ...t.accentBorder, ...t.accent },
|
|
39525
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(SlidesIcon, {})
|
|
39526
|
+
}
|
|
39527
|
+
),
|
|
39507
39528
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
39508
|
-
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", children: title }),
|
|
39509
|
-
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("p", { className: "text-xs text-zinc-500 mt-0.5", children: [
|
|
39529
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", style: t.text, children: title }),
|
|
39530
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("p", { className: "text-xs text-zinc-500 mt-0.5", style: t.muted, children: [
|
|
39510
39531
|
slideCount ? `${slideCount} slides` : "Presentation",
|
|
39511
39532
|
" \xB7 Ready to export"
|
|
39512
39533
|
] })
|
|
@@ -39544,6 +39565,7 @@ var PresentationJobCard = ({
|
|
|
39544
39565
|
{
|
|
39545
39566
|
onClick: () => setShowExport(true),
|
|
39546
39567
|
className: "flex items-center gap-1.5 px-2.5 h-7 bg-indigo-600 hover:bg-indigo-500 active:bg-indigo-700 text-white text-xs font-medium rounded-lg transition-colors",
|
|
39568
|
+
style: { ...t.accentBg, ...t.accentText },
|
|
39547
39569
|
children: [
|
|
39548
39570
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(DownloadIcon, {}),
|
|
39549
39571
|
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", { children: "Export" })
|