@pipelex/mthds-ui 0.58.2 → 0.58.3

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.
@@ -301,8 +301,10 @@ interface GraphViewerProps {
301
301
  *
302
302
  * The PDF's URL in a `ready` answer is framed only on the page's own origin,
303
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`.
304
+ * is. An answer on another origin, such as a CDN or a presigned storage URL,
305
+ * is drawn page by page from `loadBytes`, asked with that URL, when the host
306
+ * also passes `loadBytes` and `pdfWorker`, and reads as `unavailable`
307
+ * otherwise. A `failed` answer with `final: true` shows no Try again.
306
308
  */
307
309
  resolveDocumentPdf?: ResolveDocumentPdf;
308
310
  /**
@@ -311,7 +313,8 @@ interface GraphViewerProps {
311
313
  * storage URL) page by page with pdf.js. It takes effect only with
312
314
  * `pdfWorker`.
313
315
  *
314
- * Called with the document's own `url` member, as `resolveUrl` is, and a
316
+ * Called with the document's own `url` member, as `resolveUrl` is, or with
317
+ * the `url` of the host's own `ready` answer to `resolveDocumentPdf`, and a
315
318
  * `{ maxBytes, signal }` request; resolve to the file's bytes as a
316
319
  * `Uint8Array` or an `ArrayBuffer`, pass `signal` to your `fetch`, and reject
317
320
  * for anything that is not a reference you store yourself: the method chose
@@ -672,13 +675,16 @@ interface StuffResultPanelProps extends StuffResultRendererOptions {
672
675
  * document's preview then shows the PDF's pages, while its name, its copy
673
676
  * control and every download keep the original. Unset, such a document
674
677
  * offers no preview. The PDF's URL in a `ready` answer is framed only on the
675
- * page's own origin; an answer on another origin reads as `unavailable`.
678
+ * page's own origin; an answer on another origin is drawn from `loadBytes`
679
+ * when `pdfWorker` is also given, and reads as `unavailable` otherwise. A
680
+ * `failed` answer with `final: true` shows no Try again.
676
681
  */
677
682
  resolveDocumentPdf?: ResolveDocumentPdf;
678
683
  /**
679
684
  * Reads a document's bytes, for a PDF the panel cannot frame because the
680
685
  * frame rule refused it (another origin, such as a presigned storage URL):
681
- * called with the document's own `url` member and `{ maxBytes, signal }`, it
686
+ * called with the document's own `url` member, or the `url` of the host's
687
+ * own `ready` answer to `resolveDocumentPdf`, and `{ maxBytes, signal }`, it
682
688
  * resolves to the file as a `Uint8Array` or an `ArrayBuffer`, and the kernel
683
689
  * draws its pages with pdf.js. It takes effect only with `pdfWorker`. The
684
690
  * method chose the URL, so it reads only references the host stores itself