pxengine 0.1.106 → 0.1.107

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.d.cts CHANGED
@@ -3440,8 +3440,7 @@ interface PresentationJobCardProps {
3440
3440
  authToken?: string;
3441
3441
  /**
3442
3442
  * Shareable link copied when the user clicks Share.
3443
- * Falls back to formats.html_url if not provided.
3444
- * Pass a /p/{id} permanent URL once that route exists.
3443
+ * Falls back to `${origin}/p/{job_id}`, then formats.html_url.
3445
3444
  */
3446
3445
  shareUrl?: string;
3447
3446
  className?: string;
package/dist/index.d.ts CHANGED
@@ -3440,8 +3440,7 @@ interface PresentationJobCardProps {
3440
3440
  authToken?: string;
3441
3441
  /**
3442
3442
  * Shareable link copied when the user clicks Share.
3443
- * Falls back to formats.html_url if not provided.
3444
- * Pass a /p/{id} permanent URL once that route exists.
3443
+ * Falls back to `${origin}/p/{job_id}`, then formats.html_url.
3445
3444
  */
3446
3445
  shareUrl?: string;
3447
3446
  className?: string;
package/dist/index.mjs CHANGED
@@ -39231,7 +39231,7 @@ var PresentationJobCard = ({
39231
39231
  }
39232
39232
  }, [isTerminal]);
39233
39233
  const handleShare = async () => {
39234
- const link = shareUrl ?? formats.html_url;
39234
+ const link = shareUrl ?? (typeof window !== "undefined" && _job_id ? `${window.location.origin}/p/${_job_id}` : formats.html_url);
39235
39235
  if (!link) return;
39236
39236
  try {
39237
39237
  await navigator.clipboard.writeText(link);