calmlens 0.27.3 → 0.27.5

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.
Files changed (80) hide show
  1. package/bin/calmlens.js +1 -1
  2. package/cjs/{BrowserUpload-Dt1zocK4.d.ts → BrowserUpload-DJZY1LSU.d.ts} +2 -2
  3. package/cjs/{BrowserUpload-ldUKNpff.js → BrowserUpload-DhruIgFN.js} +1 -1
  4. package/cjs/{CalmLensAppClient--O7TSwy3.js → CalmLensAppClient-BA_xaNHY.js} +2 -2
  5. package/{esm/CalmLensAppClient-CTMmq7Dx.d.ts → cjs/CalmLensAppClient-DzoSqUgG.d.ts} +1 -1
  6. package/cjs/{CalmLensOptionKeys-BHl-sxlg.js → CalmLensOptionKeys-BvLQghl-.js} +1 -1
  7. package/cjs/{CalmLensServerClient--9ScUitp.d.ts → CalmLensServerClient-D3K5HS9v.d.ts} +2 -2
  8. package/cjs/{CalmLensServerClient-BTN0LFs6.js → CalmLensServerClient-D55xDZm4.js} +2 -2
  9. package/cjs/{CalmLensTypes-CRAOkOV4.d.ts → CalmLensTypes-OWZsGvBX.d.ts} +7 -2
  10. package/{esm/Core-BIs7IQ84.d.ts → cjs/Core-CTO_Eh0l.d.ts} +13 -14
  11. package/cjs/{Core-BdyadK2Y.js → Core-kKGmyk5V.js} +63 -21
  12. package/cjs/{ModerationContextLimits-Cyg__fp3.js → ModerationContextLimits-Cxaob3tc.js} +1 -1
  13. package/{esm/ReactUpload-DsF4ahE6.d.ts → cjs/ReactUpload-BDXV4aHT.d.ts} +1 -1
  14. package/cjs/{ReactUpload-C7-EzsLW.js → ReactUpload-Cx3Hi7xt.js} +1 -1
  15. package/cjs/{UploadController-wKETVSZ8.js → UploadController-CC1afxmL.js} +2 -2
  16. package/{esm/WebhookPayload-Cth0Xvpz.d.ts → cjs/WebhookPayload-CrMU6lg0.d.ts} +1 -1
  17. package/cjs/app.d.ts +4 -4
  18. package/cjs/app.js +2 -2
  19. package/cjs/elements.d.ts +8 -19
  20. package/cjs/elements.js +45 -53
  21. package/cjs/{index-BsUWhlwp.d.ts → index-BDxmVi-G.d.ts} +2 -2
  22. package/cjs/index.d.ts +3 -3
  23. package/cjs/index.js +1 -1
  24. package/cjs/react-native.d.ts +3 -3
  25. package/cjs/react-native.js +6 -4
  26. package/cjs/react.d.ts +5 -11
  27. package/cjs/react.js +29 -36
  28. package/cjs/server.d.ts +4 -4
  29. package/cjs/server.js +2 -2
  30. package/cjs/testing.d.ts +4 -4
  31. package/cjs/testing.js +5 -5
  32. package/cjs/{ui-CmRjBpMv.d.ts → ui-DAbpyM2Z.d.ts} +3 -9
  33. package/cjs/{ui-DZHhU1_I.js → ui-I75EvP9r.js} +2 -201
  34. package/cjs/ui.d.ts +3 -3
  35. package/cjs/ui.js +5 -5
  36. package/cjs/vue.d.ts +6 -319
  37. package/cjs/vue.js +27 -17
  38. package/esm/{BrowserUpload-DI_N79Hf.js → BrowserUpload-CejeWw5r.js} +1 -1
  39. package/esm/{BrowserUpload-Dt1zocK4.d.ts → BrowserUpload-DJZY1LSU.d.ts} +2 -2
  40. package/esm/{CalmLensAppClient-hBV8phqu.js → CalmLensAppClient-BxkCVPCl.js} +2 -2
  41. package/{cjs/CalmLensAppClient-CTMmq7Dx.d.ts → esm/CalmLensAppClient-DzoSqUgG.d.ts} +1 -1
  42. package/esm/{CalmLensOptionKeys-Cx6zlZBW.js → CalmLensOptionKeys-DC9FUO43.js} +1 -1
  43. package/esm/{CalmLensServerClient-C-Y82hbC.js → CalmLensServerClient-D-TIIQp2.js} +2 -2
  44. package/esm/{CalmLensServerClient--9ScUitp.d.ts → CalmLensServerClient-D3K5HS9v.d.ts} +2 -2
  45. package/esm/{CalmLensTypes-CRAOkOV4.d.ts → CalmLensTypes-OWZsGvBX.d.ts} +7 -2
  46. package/esm/{Core-KP_nIj1_.js → Core-B85V5dxv.js} +52 -22
  47. package/{cjs/Core-BIs7IQ84.d.ts → esm/Core-CTO_Eh0l.d.ts} +13 -14
  48. package/esm/{ModerationContextLimits-BTzR81IP.js → ModerationContextLimits-Tev2lxE0.js} +1 -1
  49. package/esm/{ReactUpload-DHMtN7ap.js → ReactUpload-B7QXMSWJ.js} +1 -1
  50. package/{cjs/ReactUpload-DsF4ahE6.d.ts → esm/ReactUpload-BDXV4aHT.d.ts} +1 -1
  51. package/esm/{UploadController-BlQqCkhK.js → UploadController-D7XmzO-p.js} +2 -2
  52. package/{cjs/WebhookPayload-Cth0Xvpz.d.ts → esm/WebhookPayload-CrMU6lg0.d.ts} +1 -1
  53. package/esm/app.d.ts +4 -4
  54. package/esm/app.js +2 -2
  55. package/esm/elements.d.ts +8 -19
  56. package/esm/elements.js +44 -50
  57. package/esm/{index-BsUWhlwp.d.ts → index-BDxmVi-G.d.ts} +2 -2
  58. package/esm/index.d.ts +3 -3
  59. package/esm/index.js +1 -1
  60. package/esm/react-native.d.ts +3 -3
  61. package/esm/react-native.js +5 -5
  62. package/esm/react.d.ts +5 -11
  63. package/esm/react.js +29 -34
  64. package/esm/server.d.ts +4 -4
  65. package/esm/server.js +2 -2
  66. package/esm/styles.css +12 -16
  67. package/esm/svelte/CalmLensAsset.svelte +22 -4
  68. package/esm/svelte/index.d.ts +0 -6
  69. package/esm/svelte/index.js +0 -2
  70. package/esm/testing.d.ts +4 -4
  71. package/esm/testing.js +5 -5
  72. package/esm/{ui-CmRjBpMv.d.ts → ui-DAbpyM2Z.d.ts} +3 -9
  73. package/esm/{ui-SnbQ4vk1.js → ui-cE1lyljs.js} +3 -190
  74. package/esm/ui.d.ts +3 -3
  75. package/esm/ui.js +4 -4
  76. package/esm/vue.d.ts +6 -319
  77. package/esm/vue.js +26 -14
  78. package/package.json +1 -1
  79. package/esm/svelte/CalmLensImageViewer.svelte +0 -7
  80. package/esm/svelte/CalmLensWebsiteViewer.svelte +0 -7
@@ -1,6 +1,5 @@
1
- import { a as appendAssetLocation } from "./ModerationContextLimits-BTzR81IP.js";
2
- import { o as placeholderHashToDataURL } from "./UploadController-BlQqCkhK.js";
3
- import "./Core-KP_nIj1_.js";
1
+ import { a as appendAssetLocation } from "./ModerationContextLimits-Tev2lxE0.js";
2
+ import "./Core-B85V5dxv.js";
4
3
  // src/ui/viewers/PdfLoader.ts
5
4
  let loading;
6
5
  /**
@@ -38,9 +37,6 @@ const openPdfDocument = async (url, options = {}) => {
38
37
  // src/ui/viewers/ViewerMessages.ts
39
38
  const DEFAULT_VIEWER_MESSAGES = {
40
39
  loading: "Loading…",
41
- imageFailed: "This image can't be shown.",
42
- openWebsite: "Open {host}",
43
- websiteLabel: "Website screenshot",
44
40
  textLabel: "Text",
45
41
  textFailed: "This text can't be shown.",
46
42
  documentLabel: "Document",
@@ -576,187 +572,6 @@ const createDocumentViewer = (root, options) => {
576
572
  viewer.update(options);
577
573
  return viewer;
578
574
  };
579
- // src/ui/viewers/ImageViewers.ts
580
- /** Widths offered for a public image, so the browser fetches the smallest that fills the frame. */
581
- const IMAGE_WIDTHS = [
582
- 320,
583
- 640,
584
- 960,
585
- 1280,
586
- 1920,
587
- 2560
588
- ];
589
- /** The blurred placeholder shown while the image loads: the stored ThumbHash, or the CDN's. */
590
- const placeholderFor = (asset, urls) => {
591
- const hash = asset.content?.preview?.thumbhash;
592
- if (hash) try {
593
- return placeholderHashToDataURL(hash);
594
- } catch {}
595
- return asset.content?.rendered || asset.content?.preview ? urls.url("placeholder") : void 0;
596
- };
597
- /**
598
- * Loads the rendered image into `image` at responsive widths, asking once for a fresh asset URL
599
- * when it fails to load (as an expired signed one does).
600
- */
601
- const loadRenderedImage = async (urls, image, { sizes, width }, signal, done) => {
602
- const widths = IMAGE_WIDTHS.filter((candidate) => !width || candidate < width);
603
- const setSources = (src) => {
604
- if (widths.length) {
605
- image.srcset = [...widths, ...width ? [width] : []].map((candidate) => `${urls.url("rendered", { width: candidate })} ${candidate}w`).join(", ");
606
- image.sizes = sizes;
607
- }
608
- image.src = src;
609
- };
610
- image.addEventListener("load", () => {
611
- urls.loaded("rendered");
612
- done("loaded");
613
- });
614
- image.addEventListener("error", () => {
615
- const fresh = urls.refresh("rendered");
616
- if (!fresh) return done("error");
617
- fresh.then((url) => {
618
- if (!signal.aborted) setSources(url);
619
- }, () => done("error"));
620
- });
621
- const url = await urls.get("rendered");
622
- if (!signal.aborted) setSources(url);
623
- };
624
- /**
625
- * Shows an image asset's rendered file, fitted inside the element (the whole frame, for an embed
626
- * page), over its blurred placeholder until it loads.
627
- */
628
- var ImageViewer = class extends ViewerBase {
629
- constructor(root) {
630
- super(root, "image");
631
- }
632
- describe({ asset, sizes }) {
633
- return [
634
- asset.content?.rendered,
635
- asset.content?.preview?.thumbhash,
636
- sizes
637
- ];
638
- }
639
- async load(signal) {
640
- const { asset, label = "", sizes = "100vw" } = this.options;
641
- const rendered = asset.content?.rendered;
642
- if (rendered?.width && rendered.height) this.root.style.setProperty("--calmlens-viewer-ratio", `${rendered.width} / ${rendered.height}`);
643
- const placeholderUrl = placeholderFor(asset, this.urls);
644
- const placeholder = placeholderUrl && el("img", {
645
- class: "calmlens-viewer__placeholder",
646
- src: placeholderUrl,
647
- alt: "",
648
- "aria-hidden": "true"
649
- });
650
- const image = el("img", {
651
- class: "calmlens-viewer__image",
652
- alt: label,
653
- width: rendered?.width ?? void 0,
654
- height: rendered?.height ?? void 0,
655
- decoding: "async"
656
- });
657
- this.frame.replaceChildren(...[placeholder, image].filter((node) => !!node));
658
- await loadRenderedImage(this.urls, image, {
659
- sizes,
660
- width: rendered?.width
661
- }, signal, (outcome) => {
662
- if (signal.aborted) return;
663
- if (outcome === "error") return this.fail();
664
- this.state = "loaded";
665
- if (placeholder) placeholder.remove();
666
- });
667
- }
668
- fail() {
669
- this.state = "error";
670
- this.frame.replaceChildren(this.notice(this.messages.imageFailed));
671
- }
672
- };
673
- /** The page's address, if it is a web address the viewer may link to. */
674
- const websiteUrl = (asset) => {
675
- if (!asset.externalUrl) return void 0;
676
- try {
677
- const url = new URL(asset.externalUrl);
678
- return url.protocol === "https:" || url.protocol === "http:" ? url : void 0;
679
- } catch {
680
- return;
681
- }
682
- };
683
- /**
684
- * Shows a website asset: a link to the original page, then its screenshot at the element's width,
685
- * scrolling down the page.
686
- */
687
- var WebsiteViewer = class extends ViewerBase {
688
- constructor(root) {
689
- super(root, "website");
690
- }
691
- describe({ asset }) {
692
- return [
693
- asset.content?.rendered,
694
- asset.content?.preview?.thumbhash,
695
- asset.externalUrl
696
- ];
697
- }
698
- #link() {
699
- const url = websiteUrl(this.options.asset);
700
- return url ? el("div", { class: "calmlens-viewer__bar" }, [el("a", {
701
- class: "calmlens-button calmlens-viewer__link",
702
- href: url.href,
703
- target: "_blank",
704
- rel: "noopener noreferrer nofollow"
705
- }, [formatViewerMessage(this.messages.openWebsite, { host: url.host })])]) : void 0;
706
- }
707
- async load(signal) {
708
- const { asset, label } = this.options;
709
- const rendered = asset.content?.rendered;
710
- if (!rendered) return this.fail();
711
- const name = label || this.messages.websiteLabel;
712
- const placeholderUrl = placeholderFor(asset, this.urls);
713
- const placeholder = placeholderUrl && el("img", {
714
- class: "calmlens-viewer__placeholder",
715
- src: placeholderUrl,
716
- alt: "",
717
- "aria-hidden": "true"
718
- });
719
- const image = el("img", {
720
- class: "calmlens-viewer__image",
721
- alt: name,
722
- width: rendered.width ?? void 0,
723
- height: rendered.height ?? void 0,
724
- decoding: "async"
725
- });
726
- const page = el("div", {
727
- class: "calmlens-viewer__scroll",
728
- role: "region",
729
- "aria-label": name,
730
- tabindex: 0
731
- }, [placeholder, image]);
732
- this.frame.replaceChildren(...[this.#link(), page].filter((node) => !!node));
733
- await loadRenderedImage(this.urls, image, {
734
- sizes: "100vw",
735
- width: rendered.width
736
- }, signal, (outcome) => {
737
- if (signal.aborted) return;
738
- if (outcome === "error") return this.fail();
739
- this.state = "loaded";
740
- if (placeholder) placeholder.remove();
741
- });
742
- }
743
- fail() {
744
- this.state = "error";
745
- this.frame.replaceChildren(...[this.#link(), this.notice(this.messages.imageFailed)].filter((node) => !!node));
746
- }
747
- };
748
- /** Shows an image asset's rendered file in `root`. */
749
- const createImageViewer = (root, options) => {
750
- const viewer = new ImageViewer(root);
751
- viewer.update(options);
752
- return viewer;
753
- };
754
- /** Shows a website asset's screenshot and a link to the page in `root`. */
755
- const createWebsiteViewer = (root, options) => {
756
- const viewer = new WebsiteViewer(root);
757
- viewer.update(options);
758
- return viewer;
759
- };
760
575
  // src/ui/viewers/Spreadsheet.ts
761
576
  const SHEET_LINE = /^# Sheet "((?:[^"\\]|\\.)*)"( \(hidden\))?$/;
762
577
  const ROW_LINE = /^Row (\d+)( \(hidden\))?: (.*)$/;
@@ -1074,8 +889,6 @@ const createSpreadsheetViewer = (root, options) => {
1074
889
  // src/ui/viewers/index.ts
1075
890
  /** Mounts each viewer, by kind, for the bindings. */
1076
891
  const ASSET_VIEWERS = {
1077
- image: createImageViewer,
1078
- website: createWebsiteViewer,
1079
892
  text: createTextViewer,
1080
893
  document: createDocumentViewer,
1081
894
  spreadsheet: createSpreadsheetViewer
@@ -1257,4 +1070,4 @@ var MediaStreamPlayer = class {
1257
1070
  this.#key = void 0;
1258
1071
  }
1259
1072
  };
1260
- export { loadPdfJs as _, ASSET_VIEWERS as a, getSpreadsheetPage as c, createImageViewer as d, createWebsiteViewer as f, resolveViewerMessages as g, formatViewerMessage as h, isMountedViewerKind as i, parseSpreadsheetText as l, DEFAULT_VIEWER_MESSAGES as m, AssetViewerMount as n, createSpreadsheetViewer as o, createDocumentViewer as p, getMountedViewerOptions as r, createTextViewer as s, MediaStreamPlayer as t, spreadsheetColumnIndex as u };
1073
+ export { ASSET_VIEWERS as a, getSpreadsheetPage as c, createDocumentViewer as d, DEFAULT_VIEWER_MESSAGES as f, loadPdfJs as h, isMountedViewerKind as i, parseSpreadsheetText as l, resolveViewerMessages as m, AssetViewerMount as n, createSpreadsheetViewer as o, formatViewerMessage as p, getMountedViewerOptions as r, createTextViewer as s, MediaStreamPlayer as t, spreadsheetColumnIndex as u };
package/esm/ui.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as getAssetAspectRatio, A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, F as UploadFile, G as AssetImageSource, H as AssetDisplay, I as UploadItem, J as AssetSessionState, K as AssetOptions, L as UploadSnapshot, M as UploadClient, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions, Q as MediaPlayback, R as UploadStage, S as formatBytes, T as getUploadItemMessage, U as AssetDocumentOptions, V as withProvidedOptions, W as AssetImageOptions, X as AssetVideoOptions, Y as AssetSpreadsheetOptions, Z as AssetView, _ as DEFAULT_MESSAGES, _t as DEFAULT_VIEWER_MESSAGES, a as ProgressFetchOptions, at as AssetViewerKind, b as describeUploadItem, bt as resolveViewerMessages, c as ICON_ATTRIBUTES, ct as PdfAssetOptions, d as AssetDisplayOptions, dt as ViewerAsset, et as getAssetView, f as AssetEventHandlers, ft as ViewerOptions, g as CalmLensMessages, gt as isSpreadsheetFormat, h as UploaderProps, ht as getAssetViewerKind, i as CALMLENS_STYLES, it as pickAssetSource, j as CustomUploadResult, k as CalmLensUpload, l as IconName, lt as SpreadsheetViewerOptions, m as UploaderDisplayOptions, mt as WebsiteViewerOptions, n as CalmLensTheme, nt as getPeakHeights, o as createProgressFetch, ot as DocumentViewerOptions, p as AssetProps, pt as ViewerTextOptions, q as AssetSession, r as resolveTheme, rt as getPlayedPercent, s as ICONS, st as ImageViewerOptions, t as CALMLENS_THEME, tt as getAssetViewKey, u as ASSET_FILE_ICON_SIZE, ut as TextViewerOptions, v as UploadItemView, vt as ViewerMessages, w as getDropzoneHint, x as describeUploader, y as UploaderView, yt as formatViewerMessage, z as createUploadController } from "./Core-BIs7IQ84.js";
2
- import { C as ViewerState, S as AssetViewer, _ as spreadsheetColumnIndex, a as isMountedViewerKind, b as createWebsiteViewer, c as AssetViewerOptionsByKind, d as createTextViewer, f as SpreadsheetCell, g as parseSpreadsheetText, h as getSpreadsheetPage, i as getMountedViewerOptions, l as VIEWER_STYLES, m as SpreadsheetSheet, n as AssetViewerMount, o as ASSET_VIEWERS, p as SpreadsheetRow, r as MountedViewerKind, s as AssetViewerName, t as MediaStreamPlayer, u as createSpreadsheetViewer, v as loadPdfJs, x as createDocumentViewer, y as createImageViewer } from "./ui-CmRjBpMv.js";
3
- export { ASSET_FILE_ICON_SIZE, ASSET_VIEWERS, type AssetDisplay, type AssetDisplayOptions, type AssetDocumentOptions, type AssetEventHandlers, type AssetImageOptions, type AssetImageSource, type AssetOptions, type AssetProps, AssetSession, type AssetSessionState, type AssetSpreadsheetOptions, type AssetVideoOptions, type AssetView, type AssetViewer, type AssetViewerKind, AssetViewerMount, AssetViewerName, AssetViewerOptionsByKind, CALMLENS_STYLES, CALMLENS_THEME, type CalmLensMessages, type CalmLensProvidedOptions, type CalmLensTheme, type CalmLensUpload, type CustomUploadContext, type CustomUploadResult, DEFAULT_MESSAGES, DEFAULT_VIEWER_MESSAGES, type DocumentViewerOptions, ICONS, ICON_ATTRIBUTES, type IconName, type ImageViewerOptions, type MediaPlayback, MediaStreamPlayer, type MountedViewerKind, type PdfAssetOptions, type ProgressFetchOptions, type SpreadsheetCell, type SpreadsheetRow, type SpreadsheetSheet, type SpreadsheetViewerOptions, type TextViewerOptions, type UploadClient, UploadController, type UploadControllerOptions, type UploadFile, type UploadItem, type UploadItemView, type UploadSnapshot, type UploadStage, type UploaderDisplayOptions, type UploaderProps, type UploaderView, VIEWER_STYLES, type ViewerAsset, type ViewerMessages, type ViewerOptions, type ViewerState, type ViewerTextOptions, type WebsiteViewerOptions, createDocumentViewer, createImageViewer, createProgressFetch, createSpreadsheetViewer, createTextViewer, createUploadController, createWebsiteViewer, describeUploadItem, describeUploader, formatBytes, formatMessage, formatViewerMessage, getAssetAspectRatio, getAssetView, getAssetViewKey, getAssetViewerKind, getDropzoneHint, getMountedViewerOptions, getPeakHeights, getPlayedPercent, getSpreadsheetPage, getUploadItemMessage, getUploadItemOutcome, isFileAccepted, isMountedViewerKind, isSpreadsheetFormat, loadPdfJs, parseSpreadsheetText, pickAssetSource, resolveMessages, resolveTheme, resolveViewerMessages, spreadsheetColumnIndex, withProvidedOptions };
1
+ import { $ as MediaPlayback, A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, F as UploadFile, G as AssetImageSource, H as AssetDisplay, I as UploadItem, J as AssetSessionState, K as AssetOptions, L as UploadSnapshot, M as UploadClient, N as UploadController, O as CalmLensProvidedOptions, P as UploadControllerOptions, Q as INSTANT_LOAD_MS, R as UploadStage, S as formatBytes, T as getUploadItemMessage, U as AssetDocumentOptions, V as withProvidedOptions, W as AssetImageOptions, X as AssetVideoOptions, Y as AssetSpreadsheetOptions, Z as AssetView, _ as DEFAULT_MESSAGES, _t as DEFAULT_VIEWER_MESSAGES, a as ProgressFetchOptions, at as isImageReady, b as describeUploadItem, bt as resolveViewerMessages, c as ICON_ATTRIBUTES, ct as DocumentViewerOptions, d as AssetDisplayOptions, dt as TextViewerOptions, et as getAssetAspectRatio, f as AssetEventHandlers, ft as ViewerAsset, g as CalmLensMessages, gt as isSpreadsheetFormat, h as UploaderProps, ht as getAssetViewerKind, i as CALMLENS_STYLES, it as getPlayedPercent, j as CustomUploadResult, k as CalmLensUpload, l as IconName, lt as PdfAssetOptions, m as UploaderDisplayOptions, mt as ViewerTextOptions, n as CalmLensTheme, nt as getAssetViewKey, o as createProgressFetch, ot as pickAssetSource, p as AssetProps, pt as ViewerOptions, q as AssetSession, r as resolveTheme, rt as getPeakHeights, s as ICONS, st as AssetViewerKind, t as CALMLENS_THEME, tt as getAssetView, u as ASSET_FILE_ICON_SIZE, ut as SpreadsheetViewerOptions, v as UploadItemView, vt as ViewerMessages, w as getDropzoneHint, x as describeUploader, y as UploaderView, yt as formatViewerMessage, z as createUploadController } from "./Core-CTO_Eh0l.js";
2
+ import { _ as spreadsheetColumnIndex, a as isMountedViewerKind, b as AssetViewer, c as AssetViewerOptionsByKind, d as createTextViewer, f as SpreadsheetCell, g as parseSpreadsheetText, h as getSpreadsheetPage, i as getMountedViewerOptions, l as VIEWER_STYLES, m as SpreadsheetSheet, n as AssetViewerMount, o as ASSET_VIEWERS, p as SpreadsheetRow, r as MountedViewerKind, s as AssetViewerName, t as MediaStreamPlayer, u as createSpreadsheetViewer, v as loadPdfJs, x as ViewerState, y as createDocumentViewer } from "./ui-DAbpyM2Z.js";
3
+ export { ASSET_FILE_ICON_SIZE, ASSET_VIEWERS, type AssetDisplay, type AssetDisplayOptions, type AssetDocumentOptions, type AssetEventHandlers, type AssetImageOptions, type AssetImageSource, type AssetOptions, type AssetProps, AssetSession, type AssetSessionState, type AssetSpreadsheetOptions, type AssetVideoOptions, type AssetView, type AssetViewer, type AssetViewerKind, AssetViewerMount, AssetViewerName, AssetViewerOptionsByKind, CALMLENS_STYLES, CALMLENS_THEME, type CalmLensMessages, type CalmLensProvidedOptions, type CalmLensTheme, type CalmLensUpload, type CustomUploadContext, type CustomUploadResult, DEFAULT_MESSAGES, DEFAULT_VIEWER_MESSAGES, type DocumentViewerOptions, ICONS, ICON_ATTRIBUTES, INSTANT_LOAD_MS, type IconName, type MediaPlayback, MediaStreamPlayer, type MountedViewerKind, type PdfAssetOptions, type ProgressFetchOptions, type SpreadsheetCell, type SpreadsheetRow, type SpreadsheetSheet, type SpreadsheetViewerOptions, type TextViewerOptions, type UploadClient, UploadController, type UploadControllerOptions, type UploadFile, type UploadItem, type UploadItemView, type UploadSnapshot, type UploadStage, type UploaderDisplayOptions, type UploaderProps, type UploaderView, VIEWER_STYLES, type ViewerAsset, type ViewerMessages, type ViewerOptions, type ViewerState, type ViewerTextOptions, createDocumentViewer, createProgressFetch, createSpreadsheetViewer, createTextViewer, createUploadController, describeUploadItem, describeUploader, formatBytes, formatMessage, formatViewerMessage, getAssetAspectRatio, getAssetView, getAssetViewKey, getAssetViewerKind, getDropzoneHint, getMountedViewerOptions, getPeakHeights, getPlayedPercent, getSpreadsheetPage, getUploadItemMessage, getUploadItemOutcome, isFileAccepted, isImageReady, isMountedViewerKind, isSpreadsheetFormat, loadPdfJs, parseSpreadsheetText, pickAssetSource, resolveMessages, resolveTheme, resolveViewerMessages, spreadsheetColumnIndex, withProvidedOptions };
package/esm/ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as loadPdfJs, a as ASSET_VIEWERS, c as getSpreadsheetPage, d as createImageViewer, f as createWebsiteViewer, g as resolveViewerMessages, h as formatViewerMessage, i as isMountedViewerKind, l as parseSpreadsheetText, m as DEFAULT_VIEWER_MESSAGES, n as AssetViewerMount, o as createSpreadsheetViewer, p as createDocumentViewer, r as getMountedViewerOptions, s as createTextViewer, t as MediaStreamPlayer, u as spreadsheetColumnIndex } from "./ui-SnbQ4vk1.js";
2
- import { a as createProgressFetch, i as withProvidedOptions, n as createUploadController, r as isFileAccepted, t as UploadController } from "./UploadController-BlQqCkhK.js";
3
- import { C as CALMLENS_THEME, E as isSpreadsheetFormat, S as VIEWER_STYLES, T as getAssetViewerKind, _ as getAssetView, a as describeUploadItem, b as getPlayedPercent, c as formatMessage, d as getUploadItemOutcome, f as resolveMessages, g as getAssetAspectRatio, h as AssetSession, i as DEFAULT_MESSAGES, l as getDropzoneHint, m as ICON_ATTRIBUTES, o as describeUploader, p as ICONS, r as ASSET_FILE_ICON_SIZE, s as formatBytes, t as CALMLENS_STYLES, u as getUploadItemMessage, v as getAssetViewKey, w as resolveTheme, x as pickAssetSource, y as getPeakHeights } from "./Core-KP_nIj1_.js";
4
- export { ASSET_FILE_ICON_SIZE, ASSET_VIEWERS, AssetSession, AssetViewerMount, CALMLENS_STYLES, CALMLENS_THEME, DEFAULT_MESSAGES, DEFAULT_VIEWER_MESSAGES, ICONS, ICON_ATTRIBUTES, MediaStreamPlayer, UploadController, VIEWER_STYLES, createDocumentViewer, createImageViewer, createProgressFetch, createSpreadsheetViewer, createTextViewer, createUploadController, createWebsiteViewer, describeUploadItem, describeUploader, formatBytes, formatMessage, formatViewerMessage, getAssetAspectRatio, getAssetView, getAssetViewKey, getAssetViewerKind, getDropzoneHint, getMountedViewerOptions, getPeakHeights, getPlayedPercent, getSpreadsheetPage, getUploadItemMessage, getUploadItemOutcome, isFileAccepted, isMountedViewerKind, isSpreadsheetFormat, loadPdfJs, parseSpreadsheetText, pickAssetSource, resolveMessages, resolveTheme, resolveViewerMessages, spreadsheetColumnIndex, withProvidedOptions };
1
+ import { a as ASSET_VIEWERS, c as getSpreadsheetPage, d as createDocumentViewer, f as DEFAULT_VIEWER_MESSAGES, h as loadPdfJs, i as isMountedViewerKind, l as parseSpreadsheetText, m as resolveViewerMessages, n as AssetViewerMount, o as createSpreadsheetViewer, p as formatViewerMessage, r as getMountedViewerOptions, s as createTextViewer, t as MediaStreamPlayer, u as spreadsheetColumnIndex } from "./ui-cE1lyljs.js";
2
+ import { C as pickAssetSource, D as getAssetViewerKind, E as resolveTheme, O as isSpreadsheetFormat, S as isImageReady, T as CALMLENS_THEME, _ as getAssetAspectRatio, a as describeUploadItem, b as getPeakHeights, c as formatMessage, d as getUploadItemOutcome, f as resolveMessages, g as INSTANT_LOAD_MS, h as AssetSession, i as DEFAULT_MESSAGES, l as getDropzoneHint, m as ICON_ATTRIBUTES, o as describeUploader, p as ICONS, r as ASSET_FILE_ICON_SIZE, s as formatBytes, t as CALMLENS_STYLES, u as getUploadItemMessage, v as getAssetView, w as VIEWER_STYLES, x as getPlayedPercent, y as getAssetViewKey } from "./Core-B85V5dxv.js";
3
+ import { a as createProgressFetch, i as withProvidedOptions, n as createUploadController, r as isFileAccepted, t as UploadController } from "./UploadController-D7XmzO-p.js";
4
+ export { ASSET_FILE_ICON_SIZE, ASSET_VIEWERS, AssetSession, AssetViewerMount, CALMLENS_STYLES, CALMLENS_THEME, DEFAULT_MESSAGES, DEFAULT_VIEWER_MESSAGES, ICONS, ICON_ATTRIBUTES, INSTANT_LOAD_MS, MediaStreamPlayer, UploadController, VIEWER_STYLES, createDocumentViewer, createProgressFetch, createSpreadsheetViewer, createTextViewer, createUploadController, describeUploadItem, describeUploader, formatBytes, formatMessage, formatViewerMessage, getAssetAspectRatio, getAssetView, getAssetViewKey, getAssetViewerKind, getDropzoneHint, getMountedViewerOptions, getPeakHeights, getPlayedPercent, getSpreadsheetPage, getUploadItemMessage, getUploadItemOutcome, isFileAccepted, isImageReady, isMountedViewerKind, isSpreadsheetFormat, loadPdfJs, parseSpreadsheetText, pickAssetSource, resolveMessages, resolveTheme, resolveViewerMessages, spreadsheetColumnIndex, withProvidedOptions };
package/esm/vue.d.ts CHANGED
@@ -1,289 +1,9 @@
1
- import { O as CalmLensAppClientOptions, en as ViewerClaims, g as AssetModerationStatus, i as AssetAvailability } from "./CalmLensTypes-CRAOkOV4.js";
2
- import "./index-BsUWhlwp.js";
3
- import { $ as getAssetAspectRatio, A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, F as UploadFile, G as AssetImageSource, H as AssetDisplay, J as AssetSessionState, K as AssetOptions, M as UploadClient, N as UploadController, O as CalmLensProvidedOptions, Q as MediaPlayback, R as UploadStage, S as formatBytes, T as getUploadItemMessage, U as AssetDocumentOptions, V as withProvidedOptions, W as AssetImageOptions, X as AssetVideoOptions, Y as AssetSpreadsheetOptions, Z as AssetView, _ as DEFAULT_MESSAGES, _t as DEFAULT_VIEWER_MESSAGES, a as ProgressFetchOptions, at as AssetViewerKind, b as describeUploadItem, bt as resolveViewerMessages, c as ICON_ATTRIBUTES, ct as PdfAssetOptions, d as AssetDisplayOptions, dt as ViewerAsset, et as getAssetView, f as AssetEventHandlers, ft as ViewerOptions, g as CalmLensMessages, gt as isSpreadsheetFormat, ht as getAssetViewerKind, i as CALMLENS_STYLES, it as pickAssetSource, j as CustomUploadResult, l as IconName, lt as SpreadsheetViewerOptions, m as UploaderDisplayOptions, mt as WebsiteViewerOptions, n as CalmLensTheme, nt as getPeakHeights, o as createProgressFetch, ot as DocumentViewerOptions, p as AssetProps, pt as ViewerTextOptions, q as AssetSession, r as resolveTheme, rt as getPlayedPercent, s as ICONS, st as ImageViewerOptions, t as CALMLENS_THEME, tt as getAssetViewKey, u as ASSET_FILE_ICON_SIZE, ut as TextViewerOptions, v as UploadItemView, vt as ViewerMessages, w as getDropzoneHint, x as describeUploader, y as UploaderView, yt as formatViewerMessage } from "./Core-BIs7IQ84.js";
4
- import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-Dt1zocK4.js";
5
- import { C as ViewerState, S as AssetViewer, _ as spreadsheetColumnIndex, a as isMountedViewerKind, b as createWebsiteViewer, c as AssetViewerOptionsByKind, d as createTextViewer, f as SpreadsheetCell, g as parseSpreadsheetText, h as getSpreadsheetPage, i as getMountedViewerOptions, l as VIEWER_STYLES, m as SpreadsheetSheet, n as AssetViewerMount, o as ASSET_VIEWERS, p as SpreadsheetRow, r as MountedViewerKind, s as AssetViewerName, t as MediaStreamPlayer, u as createSpreadsheetViewer, v as loadPdfJs, x as createDocumentViewer, y as createImageViewer } from "./ui-CmRjBpMv.js";
1
+ import { O as CalmLensAppClientOptions, en as ViewerClaims, g as AssetModerationStatus, i as AssetAvailability } from "./CalmLensTypes-OWZsGvBX.js";
2
+ import "./index-BDxmVi-G.js";
3
+ import { $ as MediaPlayback, A as CustomUploadContext, B as isFileAccepted, C as formatMessage, D as resolveMessages, E as getUploadItemOutcome, F as UploadFile, G as AssetImageSource, H as AssetDisplay, J as AssetSessionState, K as AssetOptions, M as UploadClient, N as UploadController, O as CalmLensProvidedOptions, Q as INSTANT_LOAD_MS, R as UploadStage, S as formatBytes, T as getUploadItemMessage, U as AssetDocumentOptions, V as withProvidedOptions, W as AssetImageOptions, X as AssetVideoOptions, Y as AssetSpreadsheetOptions, Z as AssetView, _ as DEFAULT_MESSAGES, _t as DEFAULT_VIEWER_MESSAGES, a as ProgressFetchOptions, at as isImageReady, b as describeUploadItem, bt as resolveViewerMessages, c as ICON_ATTRIBUTES, ct as DocumentViewerOptions, d as AssetDisplayOptions, dt as TextViewerOptions, et as getAssetAspectRatio, f as AssetEventHandlers, ft as ViewerAsset, g as CalmLensMessages, gt as isSpreadsheetFormat, ht as getAssetViewerKind, i as CALMLENS_STYLES, it as getPlayedPercent, j as CustomUploadResult, l as IconName, lt as PdfAssetOptions, m as UploaderDisplayOptions, mt as ViewerTextOptions, n as CalmLensTheme, nt as getAssetViewKey, o as createProgressFetch, ot as pickAssetSource, p as AssetProps, pt as ViewerOptions, q as AssetSession, r as resolveTheme, rt as getPeakHeights, s as ICONS, st as AssetViewerKind, t as CALMLENS_THEME, tt as getAssetView, u as ASSET_FILE_ICON_SIZE, ut as SpreadsheetViewerOptions, v as UploadItemView, vt as ViewerMessages, w as getDropzoneHint, x as describeUploader, y as UploaderView, yt as formatViewerMessage } from "./Core-CTO_Eh0l.js";
4
+ import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-DJZY1LSU.js";
5
+ import { _ as spreadsheetColumnIndex, a as isMountedViewerKind, b as AssetViewer, c as AssetViewerOptionsByKind, d as createTextViewer, f as SpreadsheetCell, g as parseSpreadsheetText, h as getSpreadsheetPage, i as getMountedViewerOptions, l as VIEWER_STYLES, m as SpreadsheetSheet, n as AssetViewerMount, o as ASSET_VIEWERS, p as SpreadsheetRow, r as MountedViewerKind, s as AssetViewerName, t as MediaStreamPlayer, u as createSpreadsheetViewer, v as loadPdfJs, x as ViewerState, y as createDocumentViewer } from "./ui-DAbpyM2Z.js";
6
6
  import { App, MaybeRefOrGetter, PropType, ShallowRef } from "vue";
7
- /** Shows an image asset's rendered file, fitted to the element, over its placeholder. */
8
- export declare const CalmLensImageViewer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
- /** The asset URL, public or signed. */
10
- src: {
11
- type: StringConstructor;
12
- required: true;
13
- };
14
- /** The asset's display info (`getAssetInfo`), or the asset from the API. */
15
- asset: {
16
- type: PropType<ViewerAsset>;
17
- required: true;
18
- };
19
- /** Returns a fresh asset URL once a signed one expires. */
20
- onExpired: {
21
- type: PropType<() => string | Promise<string>>;
22
- default: undefined;
23
- };
24
- onUnavailable: {
25
- type: PropType<() => void>;
26
- default: undefined;
27
- };
28
- viewerClaims: {
29
- type: PropType<ViewerClaims>;
30
- default: undefined;
31
- };
32
- label: {
33
- type: PropType<string>;
34
- default: undefined;
35
- };
36
- messages: {
37
- type: PropType<Partial<ViewerMessages>>;
38
- default: undefined;
39
- };
40
- /** Images: the `sizes` of a public image's responsive widths. */
41
- sizes: {
42
- type: PropType<string>;
43
- default: undefined;
44
- };
45
- /** Text and spreadsheets: text your app already has. */
46
- text: {
47
- type: PropType<string>;
48
- default: undefined;
49
- };
50
- /** Text and spreadsheets: reads the text yourself. */
51
- getText: {
52
- type: PropType<() => Promise<string>>;
53
- default: undefined;
54
- };
55
- /** Spreadsheets: rows shown at a time. */
56
- pageSize: {
57
- type: PropType<number>;
58
- default: undefined;
59
- };
60
- /** Documents: where pdf.js loads its worker, fonts and decoders from. */
61
- pdf: {
62
- type: PropType<PdfAssetOptions>;
63
- default: undefined;
64
- };
65
- /** Documents: the page shown first. */
66
- initialPage: {
67
- type: PropType<number>;
68
- default: undefined;
69
- };
70
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
71
- [key: string]: any;
72
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
73
- /** The asset URL, public or signed. */
74
- src: {
75
- type: StringConstructor;
76
- required: true;
77
- };
78
- /** The asset's display info (`getAssetInfo`), or the asset from the API. */
79
- asset: {
80
- type: PropType<ViewerAsset>;
81
- required: true;
82
- };
83
- /** Returns a fresh asset URL once a signed one expires. */
84
- onExpired: {
85
- type: PropType<() => string | Promise<string>>;
86
- default: undefined;
87
- };
88
- onUnavailable: {
89
- type: PropType<() => void>;
90
- default: undefined;
91
- };
92
- viewerClaims: {
93
- type: PropType<ViewerClaims>;
94
- default: undefined;
95
- };
96
- label: {
97
- type: PropType<string>;
98
- default: undefined;
99
- };
100
- messages: {
101
- type: PropType<Partial<ViewerMessages>>;
102
- default: undefined;
103
- };
104
- /** Images: the `sizes` of a public image's responsive widths. */
105
- sizes: {
106
- type: PropType<string>;
107
- default: undefined;
108
- };
109
- /** Text and spreadsheets: text your app already has. */
110
- text: {
111
- type: PropType<string>;
112
- default: undefined;
113
- };
114
- /** Text and spreadsheets: reads the text yourself. */
115
- getText: {
116
- type: PropType<() => Promise<string>>;
117
- default: undefined;
118
- };
119
- /** Spreadsheets: rows shown at a time. */
120
- pageSize: {
121
- type: PropType<number>;
122
- default: undefined;
123
- };
124
- /** Documents: where pdf.js loads its worker, fonts and decoders from. */
125
- pdf: {
126
- type: PropType<PdfAssetOptions>;
127
- default: undefined;
128
- };
129
- /** Documents: the page shown first. */
130
- initialPage: {
131
- type: PropType<number>;
132
- default: undefined;
133
- };
134
- }>> & Readonly<{}>, {
135
- onExpired: () => string | Promise<string>;
136
- onUnavailable: () => void;
137
- viewerClaims: ViewerClaims;
138
- label: string;
139
- messages: Partial<ViewerMessages>;
140
- sizes: string;
141
- text: string;
142
- getText: () => Promise<string>;
143
- pageSize: number;
144
- pdf: PdfAssetOptions;
145
- initialPage: number;
146
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
147
- /** Shows a website asset's screenshot with a link to the original page. */
148
- export declare const CalmLensWebsiteViewer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
149
- /** The asset URL, public or signed. */
150
- src: {
151
- type: StringConstructor;
152
- required: true;
153
- };
154
- /** The asset's display info (`getAssetInfo`), or the asset from the API. */
155
- asset: {
156
- type: PropType<ViewerAsset>;
157
- required: true;
158
- };
159
- /** Returns a fresh asset URL once a signed one expires. */
160
- onExpired: {
161
- type: PropType<() => string | Promise<string>>;
162
- default: undefined;
163
- };
164
- onUnavailable: {
165
- type: PropType<() => void>;
166
- default: undefined;
167
- };
168
- viewerClaims: {
169
- type: PropType<ViewerClaims>;
170
- default: undefined;
171
- };
172
- label: {
173
- type: PropType<string>;
174
- default: undefined;
175
- };
176
- messages: {
177
- type: PropType<Partial<ViewerMessages>>;
178
- default: undefined;
179
- };
180
- /** Images: the `sizes` of a public image's responsive widths. */
181
- sizes: {
182
- type: PropType<string>;
183
- default: undefined;
184
- };
185
- /** Text and spreadsheets: text your app already has. */
186
- text: {
187
- type: PropType<string>;
188
- default: undefined;
189
- };
190
- /** Text and spreadsheets: reads the text yourself. */
191
- getText: {
192
- type: PropType<() => Promise<string>>;
193
- default: undefined;
194
- };
195
- /** Spreadsheets: rows shown at a time. */
196
- pageSize: {
197
- type: PropType<number>;
198
- default: undefined;
199
- };
200
- /** Documents: where pdf.js loads its worker, fonts and decoders from. */
201
- pdf: {
202
- type: PropType<PdfAssetOptions>;
203
- default: undefined;
204
- };
205
- /** Documents: the page shown first. */
206
- initialPage: {
207
- type: PropType<number>;
208
- default: undefined;
209
- };
210
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
211
- [key: string]: any;
212
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
213
- /** The asset URL, public or signed. */
214
- src: {
215
- type: StringConstructor;
216
- required: true;
217
- };
218
- /** The asset's display info (`getAssetInfo`), or the asset from the API. */
219
- asset: {
220
- type: PropType<ViewerAsset>;
221
- required: true;
222
- };
223
- /** Returns a fresh asset URL once a signed one expires. */
224
- onExpired: {
225
- type: PropType<() => string | Promise<string>>;
226
- default: undefined;
227
- };
228
- onUnavailable: {
229
- type: PropType<() => void>;
230
- default: undefined;
231
- };
232
- viewerClaims: {
233
- type: PropType<ViewerClaims>;
234
- default: undefined;
235
- };
236
- label: {
237
- type: PropType<string>;
238
- default: undefined;
239
- };
240
- messages: {
241
- type: PropType<Partial<ViewerMessages>>;
242
- default: undefined;
243
- };
244
- /** Images: the `sizes` of a public image's responsive widths. */
245
- sizes: {
246
- type: PropType<string>;
247
- default: undefined;
248
- };
249
- /** Text and spreadsheets: text your app already has. */
250
- text: {
251
- type: PropType<string>;
252
- default: undefined;
253
- };
254
- /** Text and spreadsheets: reads the text yourself. */
255
- getText: {
256
- type: PropType<() => Promise<string>>;
257
- default: undefined;
258
- };
259
- /** Spreadsheets: rows shown at a time. */
260
- pageSize: {
261
- type: PropType<number>;
262
- default: undefined;
263
- };
264
- /** Documents: where pdf.js loads its worker, fonts and decoders from. */
265
- pdf: {
266
- type: PropType<PdfAssetOptions>;
267
- default: undefined;
268
- };
269
- /** Documents: the page shown first. */
270
- initialPage: {
271
- type: PropType<number>;
272
- default: undefined;
273
- };
274
- }>> & Readonly<{}>, {
275
- onExpired: () => string | Promise<string>;
276
- onUnavailable: () => void;
277
- viewerClaims: ViewerClaims;
278
- label: string;
279
- messages: Partial<ViewerMessages>;
280
- sizes: string;
281
- text: string;
282
- getText: () => Promise<string>;
283
- pageSize: number;
284
- pdf: PdfAssetOptions;
285
- initialPage: number;
286
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
287
7
  /** Shows a text asset's text, escaped, in a scrolling region. */
288
8
  export declare const CalmLensTextViewer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
289
9
  /** The asset URL, public or signed. */
@@ -317,11 +37,6 @@ export declare const CalmLensTextViewer: import("vue").DefineComponent<import("v
317
37
  type: PropType<Partial<ViewerMessages>>;
318
38
  default: undefined;
319
39
  };
320
- /** Images: the `sizes` of a public image's responsive widths. */
321
- sizes: {
322
- type: PropType<string>;
323
- default: undefined;
324
- };
325
40
  /** Text and spreadsheets: text your app already has. */
326
41
  text: {
327
42
  type: PropType<string>;
@@ -381,11 +96,6 @@ export declare const CalmLensTextViewer: import("vue").DefineComponent<import("v
381
96
  type: PropType<Partial<ViewerMessages>>;
382
97
  default: undefined;
383
98
  };
384
- /** Images: the `sizes` of a public image's responsive widths. */
385
- sizes: {
386
- type: PropType<string>;
387
- default: undefined;
388
- };
389
99
  /** Text and spreadsheets: text your app already has. */
390
100
  text: {
391
101
  type: PropType<string>;
@@ -417,7 +127,6 @@ export declare const CalmLensTextViewer: import("vue").DefineComponent<import("v
417
127
  viewerClaims: ViewerClaims;
418
128
  label: string;
419
129
  messages: Partial<ViewerMessages>;
420
- sizes: string;
421
130
  text: string;
422
131
  getText: () => Promise<string>;
423
132
  pageSize: number;
@@ -457,11 +166,6 @@ export declare const CalmLensDocumentViewer: import("vue").DefineComponent<impor
457
166
  type: PropType<Partial<ViewerMessages>>;
458
167
  default: undefined;
459
168
  };
460
- /** Images: the `sizes` of a public image's responsive widths. */
461
- sizes: {
462
- type: PropType<string>;
463
- default: undefined;
464
- };
465
169
  /** Text and spreadsheets: text your app already has. */
466
170
  text: {
467
171
  type: PropType<string>;
@@ -521,11 +225,6 @@ export declare const CalmLensDocumentViewer: import("vue").DefineComponent<impor
521
225
  type: PropType<Partial<ViewerMessages>>;
522
226
  default: undefined;
523
227
  };
524
- /** Images: the `sizes` of a public image's responsive widths. */
525
- sizes: {
526
- type: PropType<string>;
527
- default: undefined;
528
- };
529
228
  /** Text and spreadsheets: text your app already has. */
530
229
  text: {
531
230
  type: PropType<string>;
@@ -557,7 +256,6 @@ export declare const CalmLensDocumentViewer: import("vue").DefineComponent<impor
557
256
  viewerClaims: ViewerClaims;
558
257
  label: string;
559
258
  messages: Partial<ViewerMessages>;
560
- sizes: string;
561
259
  text: string;
562
260
  getText: () => Promise<string>;
563
261
  pageSize: number;
@@ -597,11 +295,6 @@ export declare const CalmLensSpreadsheetViewer: import("vue").DefineComponent<im
597
295
  type: PropType<Partial<ViewerMessages>>;
598
296
  default: undefined;
599
297
  };
600
- /** Images: the `sizes` of a public image's responsive widths. */
601
- sizes: {
602
- type: PropType<string>;
603
- default: undefined;
604
- };
605
298
  /** Text and spreadsheets: text your app already has. */
606
299
  text: {
607
300
  type: PropType<string>;
@@ -661,11 +354,6 @@ export declare const CalmLensSpreadsheetViewer: import("vue").DefineComponent<im
661
354
  type: PropType<Partial<ViewerMessages>>;
662
355
  default: undefined;
663
356
  };
664
- /** Images: the `sizes` of a public image's responsive widths. */
665
- sizes: {
666
- type: PropType<string>;
667
- default: undefined;
668
- };
669
357
  /** Text and spreadsheets: text your app already has. */
670
358
  text: {
671
359
  type: PropType<string>;
@@ -697,7 +385,6 @@ export declare const CalmLensSpreadsheetViewer: import("vue").DefineComponent<im
697
385
  viewerClaims: ViewerClaims;
698
386
  label: string;
699
387
  messages: Partial<ViewerMessages>;
700
- sizes: string;
701
388
  text: string;
702
389
  getText: () => Promise<string>;
703
390
  pageSize: number;
@@ -1097,4 +784,4 @@ export declare const CalmLensAsset: import("vue").DefineComponent<import("vue").
1097
784
  messages: Partial<CalmLensMessages>;
1098
785
  onAgeConfirmRequest: () => void;
1099
786
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1100
- export { ASSET_FILE_ICON_SIZE, ASSET_VIEWERS, type AssetDisplay, type AssetDisplayOptions, type AssetDocumentOptions, type AssetEventHandlers, type AssetImageOptions, type AssetImageSource, type AssetOptions, type AssetProps, AssetSession, type AssetSessionState, type AssetSpreadsheetOptions, type AssetVideoOptions, type AssetView, type AssetViewer, type AssetViewerKind, AssetViewerMount, AssetViewerName, AssetViewerOptionsByKind, CALMLENS_STYLES, CALMLENS_THEME, type CalmLensMessages, type CalmLensProvidedOptions, type CalmLensTheme, type CalmLensUpload, type CustomUploadContext, type CustomUploadResult, DEFAULT_MESSAGES, DEFAULT_VIEWER_MESSAGES, type DocumentViewerOptions, ICONS, ICON_ATTRIBUTES, type IconName, type ImageViewerOptions, type MediaPlayback, MediaStreamPlayer, type MountedViewerKind, type PdfAssetOptions, type ProgressFetchOptions, type SpreadsheetCell, type SpreadsheetRow, type SpreadsheetSheet, type SpreadsheetViewerOptions, type TextViewerOptions, type UploadClient, UploadController, type UploadControllerOptions, type UploadFile, type UploadItem, type UploadItemView, type UploadSnapshot, type UploadStage, type UploaderDisplayOptions, type UploaderProps, type UploaderView, VIEWER_STYLES, type ViewerAsset, type ViewerMessages, type ViewerOptions, type ViewerState, type ViewerTextOptions, type WebsiteViewerOptions, createDocumentViewer, createImageViewer, createProgressFetch, createSpreadsheetViewer, createTextViewer, createUploadController, createWebsiteViewer, describeUploadItem, describeUploader, formatBytes, formatMessage, formatViewerMessage, getAssetAspectRatio, getAssetView, getAssetViewKey, getAssetViewerKind, getDropzoneHint, getMountedViewerOptions, getPeakHeights, getPlayedPercent, getSpreadsheetPage, getUploadItemMessage, getUploadItemOutcome, isFileAccepted, isMountedViewerKind, isSpreadsheetFormat, loadPdfJs, parseSpreadsheetText, pickAssetSource, resolveMessages, resolveTheme, resolveViewerMessages, spreadsheetColumnIndex, withProvidedOptions };
787
+ export { ASSET_FILE_ICON_SIZE, ASSET_VIEWERS, type AssetDisplay, type AssetDisplayOptions, type AssetDocumentOptions, type AssetEventHandlers, type AssetImageOptions, type AssetImageSource, type AssetOptions, type AssetProps, AssetSession, type AssetSessionState, type AssetSpreadsheetOptions, type AssetVideoOptions, type AssetView, type AssetViewer, type AssetViewerKind, AssetViewerMount, AssetViewerName, AssetViewerOptionsByKind, CALMLENS_STYLES, CALMLENS_THEME, type CalmLensMessages, type CalmLensProvidedOptions, type CalmLensTheme, type CalmLensUpload, type CustomUploadContext, type CustomUploadResult, DEFAULT_MESSAGES, DEFAULT_VIEWER_MESSAGES, type DocumentViewerOptions, ICONS, ICON_ATTRIBUTES, INSTANT_LOAD_MS, type IconName, type MediaPlayback, MediaStreamPlayer, type MountedViewerKind, type PdfAssetOptions, type ProgressFetchOptions, type SpreadsheetCell, type SpreadsheetRow, type SpreadsheetSheet, type SpreadsheetViewerOptions, type TextViewerOptions, type UploadClient, UploadController, type UploadControllerOptions, type UploadFile, type UploadItem, type UploadItemView, type UploadSnapshot, type UploadStage, type UploaderDisplayOptions, type UploaderProps, type UploaderView, VIEWER_STYLES, type ViewerAsset, type ViewerMessages, type ViewerOptions, type ViewerState, type ViewerTextOptions, createDocumentViewer, createProgressFetch, createSpreadsheetViewer, createTextViewer, createUploadController, describeUploadItem, describeUploader, formatBytes, formatMessage, formatViewerMessage, getAssetAspectRatio, getAssetView, getAssetViewKey, getAssetViewerKind, getDropzoneHint, getMountedViewerOptions, getPeakHeights, getPlayedPercent, getSpreadsheetPage, getUploadItemMessage, getUploadItemOutcome, isFileAccepted, isImageReady, isMountedViewerKind, isSpreadsheetFormat, loadPdfJs, parseSpreadsheetText, pickAssetSource, resolveMessages, resolveTheme, resolveViewerMessages, spreadsheetColumnIndex, withProvidedOptions };