@pipelex/mthds-ui 0.54.0 → 0.55.1

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.
@@ -62,7 +62,7 @@ import {
62
62
  sortParentsFirst,
63
63
  textWidthPx,
64
64
  validateGraphSpec
65
- } from "../chunk-PKCT3ZNX.js";
65
+ } from "../chunk-7QUQJW6Q.js";
66
66
  import {
67
67
  GRAPH_STYLES,
68
68
  GRAPH_STYLE_IDS,
@@ -245,6 +245,14 @@ interface GraphViewerProps {
245
245
  * images, and the URL answers `403` in a way that reads as a permissions
246
246
  * problem rather than an expiry. A resolver is what makes a stored result
247
247
  * durable, so supply one if your storage has an authenticated read path.
248
+ *
249
+ * It is also what decides whether a document is previewed. The panel frames
250
+ * a PDF or picture document only when this answers it on the page's own
251
+ * origin, as a root-relative path (`/api/assets/…`) or an absolute URL
252
+ * there; a URL the payload names, an answer on another origin (a CDN, a
253
+ * presigned storage URL) and an answer that hands the payload's URL back
254
+ * unchanged are shown as the document's link, with no preview. Serve your
255
+ * documents on your own origin to have them previewed.
248
256
  */
249
257
  resolveUrl?: ResolveUrl;
250
258
  /**
@@ -290,6 +298,11 @@ interface GraphViewerProps {
290
298
  * provider beside `resolveUrl`, which replaces an outer provider rather than
291
299
  * merging with it, so a `resolveDocumentPdf` set around the graph does not
292
300
  * reach the panel.
301
+ *
302
+ * The PDF's URL in a `ready` answer is framed only on the page's own origin,
303
+ * as a root-relative path or an absolute URL there, as `resolveUrl`'s answer
304
+ * is; an answer on another origin, such as a CDN or a presigned storage URL,
305
+ * reads as `unavailable`.
293
306
  */
294
307
  resolveDocumentPdf?: ResolveDocumentPdf;
295
308
  /**
@@ -598,6 +611,10 @@ interface StuffResultPanelProps extends StuffResultRendererOptions {
598
611
  * into the stored result — so a run opened the next morning shows broken
599
612
  * images, and the URL answers `403` in a way that reads as a permissions
600
613
  * problem rather than an expiry. A resolver is what makes a result durable.
614
+ *
615
+ * A document is framed only when this answers it on the page's own origin,
616
+ * as a root-relative path or an absolute URL there; anything else, a URL
617
+ * the payload names included, is shown as the document's link.
601
618
  */
602
619
  resolveUrl?: ResolveUrl;
603
620
  /**
@@ -614,7 +631,8 @@ interface StuffResultPanelProps extends StuffResultRendererOptions {
614
631
  * convert, or an ask the kernel calls when the reader opens the preview. The
615
632
  * document's preview then shows the PDF's pages, while its name, its copy
616
633
  * control and every download keep the original. Unset, such a document
617
- * offers no preview.
634
+ * offers no preview. The PDF's URL in a `ready` answer is framed only on the
635
+ * page's own origin; an answer on another origin reads as `unavailable`.
618
636
  */
619
637
  resolveDocumentPdf?: ResolveDocumentPdf;
620
638
  /**
@@ -28,7 +28,7 @@ import {
28
28
  roundedPolylinePath,
29
29
  routeLabelCenter,
30
30
  validateGraphSpec
31
- } from "../../chunk-PKCT3ZNX.js";
31
+ } from "../../chunk-7QUQJW6Q.js";
32
32
  import {
33
33
  GRAPH_STYLES,
34
34
  resolveGraphStyle,