calmlens 0.27.4 → 0.27.6

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 (87) hide show
  1. package/README.md +2 -2
  2. package/bin/calmlens.js +26 -15
  3. package/cjs/{BrowserUpload-CFtjSpBI.d.ts → BrowserUpload-CdOfuIcV.d.ts} +2 -2
  4. package/cjs/{BrowserUpload-Ch9y2ZDx.js → BrowserUpload-GQtZti-D.js} +1 -1
  5. package/{esm/CalmLensAppClient-DzoSqUgG.d.ts → cjs/CalmLensAppClient-Btp8f-34.d.ts} +2 -2
  6. package/cjs/{CalmLensAppClient-DGtj1vUV.js → CalmLensAppClient-Bwt3gP0C.js} +3 -3
  7. package/cjs/{CalmLensOptionKeys-DbL03fZj.js → CalmLensOptionKeys--gTpTkwt.js} +1 -1
  8. package/cjs/{CalmLensServerClient-D62AeRAi.js → CalmLensServerClient-BYMzGkQK.js} +7 -7
  9. package/cjs/{CalmLensServerClient-D3K5HS9v.d.ts → CalmLensServerClient-C3kaPLUZ.d.ts} +2 -2
  10. package/cjs/{CalmLensTypes-OWZsGvBX.d.ts → CalmLensTypes-DxxyZt2L.d.ts} +73 -5
  11. package/cjs/{Core-Cv2zLAJ-.js → Core-52DVaX7d.js} +63 -21
  12. package/{esm/Core-BXeXyiNv.d.ts → cjs/Core-Dhijt6JU.d.ts} +13 -14
  13. package/cjs/{CryptoUtils-B_x8lMIx-YBW1-bvL.js → CryptoUtils-BLCa-oZe-leCkr1ko.js} +1 -2
  14. package/cjs/{ModerationContextLimits-DjacyIkw.js → ModerationContextLimits-DJyIjzIn.js} +21 -3
  15. package/cjs/{ReactUpload-C47UrgH2.d.ts → ReactUpload-BuqLPgNr.d.ts} +1 -1
  16. package/cjs/{ReactUpload-CytoQTh_.js → ReactUpload-DHuhGYsr.js} +1 -1
  17. package/cjs/{TestTriggers-Cvi7e2KA-DcT1pc_W.js → TestTriggers-DP4m92jg-C0HD-A4r.js} +14 -14
  18. package/cjs/{UploadController-fpTC5TUO.js → UploadController-ChzDPMmm.js} +2 -2
  19. package/{esm/WebhookPayload-CrMU6lg0.d.ts → cjs/WebhookPayload-D_yWJA9M.d.ts} +5 -1
  20. package/cjs/app.d.ts +4 -4
  21. package/cjs/app.js +2 -2
  22. package/cjs/elements.d.ts +8 -19
  23. package/cjs/elements.js +45 -53
  24. package/cjs/{index-BDxmVi-G.d.ts → index-CUA-HDNu.d.ts} +2 -2
  25. package/cjs/index.d.ts +3 -3
  26. package/cjs/index.js +1 -1
  27. package/cjs/react-native.d.ts +3 -3
  28. package/cjs/react-native.js +6 -4
  29. package/cjs/react.d.ts +5 -11
  30. package/cjs/react.js +29 -36
  31. package/cjs/server.d.ts +4 -4
  32. package/cjs/server.js +2 -2
  33. package/cjs/test-inputs.js +13 -13
  34. package/cjs/testing.d.ts +4 -4
  35. package/cjs/testing.js +54 -32
  36. package/cjs/{ui-5IdEYYpC.d.ts → ui-BSm_qphN.d.ts} +3 -9
  37. package/cjs/{ui-BvyDbJBb.js → ui-C1_SDSiq.js} +2 -201
  38. package/cjs/ui.d.ts +3 -3
  39. package/cjs/ui.js +5 -5
  40. package/cjs/vue.d.ts +6 -319
  41. package/cjs/vue.js +27 -17
  42. package/esm/{BrowserUpload-BE8OVeBC.js → BrowserUpload-BaKFKEBz.js} +1 -1
  43. package/esm/{BrowserUpload-CFtjSpBI.d.ts → BrowserUpload-CdOfuIcV.d.ts} +2 -2
  44. package/{cjs/CalmLensAppClient-DzoSqUgG.d.ts → esm/CalmLensAppClient-Btp8f-34.d.ts} +2 -2
  45. package/esm/{CalmLensAppClient-C1cpQEYR.js → CalmLensAppClient-DM6c3pGC.js} +3 -3
  46. package/esm/{CalmLensOptionKeys-DoCKKuLT.js → CalmLensOptionKeys-CKZs8i3_.js} +1 -1
  47. package/esm/{CalmLensServerClient-D3K5HS9v.d.ts → CalmLensServerClient-C3kaPLUZ.d.ts} +2 -2
  48. package/esm/{CalmLensServerClient-CSCrJ7wX.js → CalmLensServerClient-Da2UfUo4.js} +3 -3
  49. package/esm/{CalmLensTypes-OWZsGvBX.d.ts → CalmLensTypes-DxxyZt2L.d.ts} +73 -5
  50. package/{cjs/Core-BXeXyiNv.d.ts → esm/Core-Dhijt6JU.d.ts} +13 -14
  51. package/esm/{Core-Df2PSa1n.js → Core-kYMRW5C1.js} +52 -22
  52. package/esm/{CryptoUtils-B_x8lMIx-DhuWGzqn.js → CryptoUtils-BLCa-oZe-DKr3LmN6.js} +1 -2
  53. package/esm/{ModerationContextLimits-tu_PY4fn.js → ModerationContextLimits-ZIlK9n2X.js} +21 -3
  54. package/esm/{ReactUpload-C47UrgH2.d.ts → ReactUpload-BuqLPgNr.d.ts} +1 -1
  55. package/esm/{ReactUpload-BsbisXS6.js → ReactUpload-CipY3cmO.js} +1 -1
  56. package/esm/{TestTriggers-Cvi7e2KA-BA83CRJb.js → TestTriggers-DP4m92jg-DhOI4S1V.js} +11 -11
  57. package/esm/{UploadController-Dqjf23bS.js → UploadController-D-14HWII.js} +2 -2
  58. package/{cjs/WebhookPayload-CrMU6lg0.d.ts → esm/WebhookPayload-D_yWJA9M.d.ts} +5 -1
  59. package/esm/app.d.ts +4 -4
  60. package/esm/app.js +2 -2
  61. package/esm/elements.d.ts +8 -19
  62. package/esm/elements.js +44 -50
  63. package/esm/{index-BDxmVi-G.d.ts → index-CUA-HDNu.d.ts} +2 -2
  64. package/esm/index.d.ts +3 -3
  65. package/esm/index.js +1 -1
  66. package/esm/react-native.d.ts +3 -3
  67. package/esm/react-native.js +5 -5
  68. package/esm/react.d.ts +5 -11
  69. package/esm/react.js +29 -34
  70. package/esm/server.d.ts +4 -4
  71. package/esm/server.js +2 -2
  72. package/esm/styles.css +12 -16
  73. package/esm/svelte/CalmLensAsset.svelte +22 -4
  74. package/esm/svelte/index.d.ts +0 -6
  75. package/esm/svelte/index.js +0 -2
  76. package/esm/test-inputs.js +1 -1
  77. package/esm/testing.d.ts +4 -4
  78. package/esm/testing.js +45 -23
  79. package/esm/{ui-5IdEYYpC.d.ts → ui-BSm_qphN.d.ts} +3 -9
  80. package/esm/{ui-DF7-9mB3.js → ui-CgIG3knW.js} +3 -190
  81. package/esm/ui.d.ts +3 -3
  82. package/esm/ui.js +4 -4
  83. package/esm/vue.d.ts +6 -319
  84. package/esm/vue.js +26 -14
  85. package/package.json +1 -1
  86. package/esm/svelte/CalmLensImageViewer.svelte +0 -7
  87. package/esm/svelte/CalmLensWebsiteViewer.svelte +0 -7
package/cjs/vue.d.ts CHANGED
@@ -1,289 +1,9 @@
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 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-BXeXyiNv.js";
4
- import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-CFtjSpBI.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-5IdEYYpC.js";
1
+ import { O as CalmLensAppClientOptions, en as ViewerClaims, g as AssetModerationStatus, i as AssetAvailability } from "./CalmLensTypes-DxxyZt2L.js";
2
+ import "./index-CUA-HDNu.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-Dhijt6JU.js";
4
+ import { a as UploaderProps, i as UploadSnapshot, n as UploadControllerOptions, r as UploadItem, s as createUploadController, t as CalmLensUpload } from "./BrowserUpload-CdOfuIcV.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-BSm_qphN.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 };
package/cjs/vue.js CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_ui = require("./ui-BvyDbJBb.js");
3
- const require_UploadController = require("./UploadController-fpTC5TUO.js");
4
- const require_Core = require("./Core-Cv2zLAJ-.js");
2
+ const require_ui = require("./ui-C1_SDSiq.js");
3
+ const require_Core = require("./Core-52DVaX7d.js");
4
+ const require_UploadController = require("./UploadController-ChzDPMmm.js");
5
5
  const require_FileIcons = require("./FileIcons-Ob003MdS.js");
6
- const require_BrowserUpload = require("./BrowserUpload-Ch9y2ZDx.js");
6
+ const require_BrowserUpload = require("./BrowserUpload-GQtZti-D.js");
7
7
  let vue = require("vue");
8
8
  // src/viewers/Vue.ts
9
9
  const optional$1 = (type) => ({
@@ -29,8 +29,6 @@ const viewer = (name, kind) => (0, vue.defineComponent)({
29
29
  viewerClaims: optional$1(Object),
30
30
  label: optional$1(String),
31
31
  messages: optional$1(Object),
32
- /** Images: the `sizes` of a public image's responsive widths. */
33
- sizes: optional$1(String),
34
32
  /** Text and spreadsheets: text your app already has. */
35
33
  text: optional$1(String),
36
34
  /** Text and spreadsheets: reads the text yourself. */
@@ -61,10 +59,6 @@ const viewer = (name, kind) => (0, vue.defineComponent)({
61
59
  });
62
60
  }
63
61
  });
64
- /** Shows an image asset's rendered file, fitted to the element, over its placeholder. */
65
- const CalmLensImageViewer = viewer("CalmLensImageViewer", "image");
66
- /** Shows a website asset's screenshot with a link to the original page. */
67
- const CalmLensWebsiteViewer = viewer("CalmLensWebsiteViewer", "website");
68
62
  /** Shows a text asset's text, escaped, in a scrolling region. */
69
63
  const CalmLensTextViewer = viewer("CalmLensTextViewer", "text");
70
64
  /** Shows a PDF, or a document rendered as one, a page at a time with pdf.js (loaded lazily). */
@@ -410,6 +404,8 @@ const CalmLensAsset = (0, vue.defineComponent)({
410
404
  const view = (0, vue.computed)(() => require_Core.getAssetView(options.value, state.value));
411
405
  const loadKey = (0, vue.computed)(() => require_Core.getAssetViewKey(view.value));
412
406
  const load = (0, vue.ref)("loading");
407
+ const instant = (0, vue.ref)(false);
408
+ let loadStartedAt = 0;
413
409
  const played = (0, vue.ref)(0);
414
410
  const mounted = (0, vue.ref)(false);
415
411
  const image = (0, vue.ref)();
@@ -446,7 +442,16 @@ const CalmLensAsset = (0, vue.defineComponent)({
446
442
  });
447
443
  (0, vue.watch)(loadKey, () => {
448
444
  load.value = "loading";
445
+ instant.value = false;
449
446
  });
447
+ (0, vue.watch)([loadKey, image], () => {
448
+ if (!image.value) return;
449
+ loadStartedAt = performance.now();
450
+ if (require_Core.isImageReady(image.value)) {
451
+ instant.value = true;
452
+ load.value = "loaded";
453
+ }
454
+ }, { flush: "post" });
450
455
  (0, vue.watch)(load, (value) => {
451
456
  if (value === "loaded") emit("load");
452
457
  if (value === "error") emit("error");
@@ -457,7 +462,11 @@ const CalmLensAsset = (0, vue.defineComponent)({
457
462
  }, { immediate: true });
458
463
  (0, vue.onMounted)(() => {
459
464
  mounted.value = true;
460
- if (image.value?.complete && image.value.naturalWidth > 0) load.value = "loaded";
465
+ loadStartedAt = performance.now();
466
+ if (require_Core.isImageReady(image.value)) {
467
+ instant.value = true;
468
+ load.value = "loaded";
469
+ }
461
470
  });
462
471
  const onMediaError = (event) => {
463
472
  const element = event.target;
@@ -481,7 +490,7 @@ const CalmLensAsset = (0, vue.defineComponent)({
481
490
  const current = view.value;
482
491
  const text = messages.value;
483
492
  const ratio = require_Core.getAssetAspectRatio(current, state.value.info, props.aspectRatio);
484
- const placeholderUrl = "placeholderUrl" in current && (current.kind === "age-restricted" || current.kind === "pending" || load.value !== "loaded") ? current.placeholderUrl : void 0;
493
+ const placeholderUrl = "placeholderUrl" in current && (current.kind === "age-restricted" || current.kind === "pending" || load.value !== "error" && !(load.value === "loaded" && instant.value)) ? current.placeholderUrl : void 0;
485
494
  const notice = (children) => (0, vue.h)("figcaption", { class: "calmlens-asset__notice" }, children);
486
495
  const video = props.video ?? {};
487
496
  const imageElement = (shown) => (0, vue.h)("img", {
@@ -490,7 +499,7 @@ const CalmLensAsset = (0, vue.defineComponent)({
490
499
  class: "calmlens-asset__content",
491
500
  src: shown.src,
492
501
  srcset: shown.srcSet,
493
- sizes: shown.srcSet ? props.image?.sizes : void 0,
502
+ sizes: shown.srcSet ? props.image?.sizes ?? (props.lazy ? "auto, 100vw" : "100vw") : void 0,
494
503
  alt: props.alt,
495
504
  width: shown.width,
496
505
  height: shown.height,
@@ -499,6 +508,8 @@ const CalmLensAsset = (0, vue.defineComponent)({
499
508
  fetchpriority: props.fetchPriority,
500
509
  onLoad: () => {
501
510
  session.loaded();
511
+ if (load.value === "loaded") return;
512
+ instant.value = performance.now() - loadStartedAt < 50;
502
513
  load.value = "loaded";
503
514
  },
504
515
  onError: () => session.failed()
@@ -509,6 +520,7 @@ const CalmLensAsset = (0, vue.defineComponent)({
509
520
  class: "calmlens-asset",
510
521
  "data-kind": current.kind,
511
522
  "data-state": load.value,
523
+ "data-instant": instant.value ? "" : void 0,
512
524
  "data-sized": ratio ? "" : void 0,
513
525
  "aria-busy": current.kind === "pending" ? "true" : void 0,
514
526
  style: {
@@ -614,25 +626,22 @@ exports.CALMLENS_STYLES = require_Core.CALMLENS_STYLES;
614
626
  exports.CALMLENS_THEME = require_Core.CALMLENS_THEME;
615
627
  exports.CalmLensAsset = CalmLensAsset;
616
628
  exports.CalmLensDocumentViewer = CalmLensDocumentViewer;
617
- exports.CalmLensImageViewer = CalmLensImageViewer;
618
629
  exports.CalmLensSpreadsheetViewer = CalmLensSpreadsheetViewer;
619
630
  exports.CalmLensTextViewer = CalmLensTextViewer;
620
631
  exports.CalmLensUploader = CalmLensUploader;
621
- exports.CalmLensWebsiteViewer = CalmLensWebsiteViewer;
622
632
  exports.DEFAULT_MESSAGES = require_Core.DEFAULT_MESSAGES;
623
633
  exports.DEFAULT_VIEWER_MESSAGES = require_ui.DEFAULT_VIEWER_MESSAGES;
624
634
  exports.ICONS = require_Core.ICONS;
625
635
  exports.ICON_ATTRIBUTES = require_Core.ICON_ATTRIBUTES;
636
+ exports.INSTANT_LOAD_MS = require_Core.INSTANT_LOAD_MS;
626
637
  exports.MediaStreamPlayer = require_ui.MediaStreamPlayer;
627
638
  exports.UploadController = require_UploadController.UploadController;
628
639
  exports.VIEWER_STYLES = require_Core.VIEWER_STYLES;
629
640
  exports.createDocumentViewer = require_ui.createDocumentViewer;
630
- exports.createImageViewer = require_ui.createImageViewer;
631
641
  exports.createProgressFetch = require_UploadController.createProgressFetch;
632
642
  exports.createSpreadsheetViewer = require_ui.createSpreadsheetViewer;
633
643
  exports.createTextViewer = require_ui.createTextViewer;
634
644
  exports.createUploadController = require_BrowserUpload.createUploadController;
635
- exports.createWebsiteViewer = require_ui.createWebsiteViewer;
636
645
  exports.describeUploadItem = require_Core.describeUploadItem;
637
646
  exports.describeUploader = require_Core.describeUploader;
638
647
  exports.formatBytes = require_Core.formatBytes;
@@ -650,6 +659,7 @@ exports.getSpreadsheetPage = require_ui.getSpreadsheetPage;
650
659
  exports.getUploadItemMessage = require_Core.getUploadItemMessage;
651
660
  exports.getUploadItemOutcome = require_Core.getUploadItemOutcome;
652
661
  exports.isFileAccepted = require_UploadController.isFileAccepted;
662
+ exports.isImageReady = require_Core.isImageReady;
653
663
  exports.isMountedViewerKind = require_ui.isMountedViewerKind;
654
664
  exports.isSpreadsheetFormat = require_Core.isSpreadsheetFormat;
655
665
  exports.loadPdfJs = require_ui.loadPdfJs;
@@ -1,4 +1,4 @@
1
- import { n as createUploadController$1 } from "./UploadController-Dqjf23bS.js";
1
+ import { n as createUploadController$1 } from "./UploadController-D-14HWII.js";
2
2
  // src/ui/BrowserUpload.ts
3
3
  /** Creates an upload queue for the browser components, such as one a form starts on submit. */
4
4
  const createUploadController = (options) => createUploadController$1(options);
@@ -1,5 +1,5 @@
1
- import { F as UploadFile, I as UploadItem$1, L as UploadSnapshot$1, N as UploadController, P as UploadControllerOptions$1, h as UploaderProps$1, k as CalmLensUpload$1 } from "./Core-BXeXyiNv.js";
2
- import { r as UseCalmLensUploadResult$1 } from "./ReactUpload-C47UrgH2.js";
1
+ import { F as UploadFile, I as UploadItem$1, L as UploadSnapshot$1, N as UploadController, P as UploadControllerOptions$1, h as UploaderProps$1, k as CalmLensUpload$1 } from "./Core-Dhijt6JU.js";
2
+ import { r as UseCalmLensUploadResult$1 } from "./ReactUpload-BuqLPgNr.js";
3
3
  type UploadItem<F extends UploadFile = File> = UploadItem$1<F>;
4
4
  type CalmLensUpload<F extends UploadFile = File> = CalmLensUpload$1<F>;
5
5
  type UploadSnapshot<F extends UploadFile = File> = UploadSnapshot$1<F>;
@@ -1,4 +1,4 @@
1
- import { At as RetrieveAssetOptions, M as CdnAssetUrlOptions, O as CalmLensAppClientOptions, Ot as RequestOptions, Qt as UploadedAsset, Zt as UploadPresetSubmitAssetOptions, qt as UploadAssetPartOptions } from "./CalmLensTypes-OWZsGvBX.js";
1
+ import { At as RetrieveAssetOptions, M as CdnAssetUrlOptions, O as CalmLensAppClientOptions, Ot as RequestOptions, Qt as UploadedAsset, Zt as UploadPresetSubmitAssetOptions, qt as UploadAssetPartOptions } from "./CalmLensTypes-DxxyZt2L.js";
2
2
  declare const inspectSymbol: unique symbol;
3
3
  declare class CalmLensAppClient {
4
4
  #private;
@@ -37,7 +37,7 @@ declare class CalmLensAppClient {
37
37
  * mode, chosen when it started, applies when the final part arrives.
38
38
  */
39
39
  uploadPart: (partOptions: UploadAssetPartOptions, requestOptions?: RequestOptions) => Promise<UploadedAsset>;
40
- /** Checks an upload this client made. `status` is present when the preset shows decisions. */
40
+ /** Checks an upload this client made. `classification.moderation.decision` is present when the preset shows decisions. */
41
41
  retrieve: (options: RetrieveAssetOptions, requestOptions?: RequestOptions) => Promise<UploadedAsset>;
42
42
  };
43
43
  }
@@ -1,5 +1,5 @@
1
- import { S as validateAppClientOptions, ct as invalidConfig, d as checkOptionKeys, o as buildAssetUrl, p as encodePathSegment, st as invalidArgument, u as DEFAULT_CDN_BASE_URL } from "./ModerationContextLimits-tu_PY4fn.js";
2
- import { d as prepareSubmitAssetOptions, f as resolveConnectionOptions, i as CalmLensConnection, p as splitsIntoParts, s as expectUploadedAsset, t as APP_OPTION_KEYS } from "./CalmLensOptionKeys-DoCKKuLT.js";
1
+ import { S as validateAppClientOptions, ct as invalidConfig, d as checkOptionKeys, o as buildAssetUrl, p as encodePathSegment, st as invalidArgument, u as DEFAULT_CDN_BASE_URL } from "./ModerationContextLimits-ZIlK9n2X.js";
2
+ import { d as prepareSubmitAssetOptions, f as resolveConnectionOptions, i as CalmLensConnection, p as splitsIntoParts, s as expectUploadedAsset, t as APP_OPTION_KEYS } from "./CalmLensOptionKeys-CKZs8i3_.js";
3
3
  // src/client/CalmLensAppClient.ts
4
4
  const inspectSymbol = Symbol.for("nodejs.util.inspect.custom");
5
5
  /** `options`, once `checkOptionKeys` finds only keys `operation` takes. */
@@ -119,7 +119,7 @@ getAssetUrl: (urlOptions) => {
119
119
  const data = await this.#connection.forCall("assets.uploadPart", requestOptions).uploadPart(`${this.uploadsPath}/${encodedAssetId}/part`, options, this.authHeaders(assetId));
120
120
  return expectUploadedAsset(data);
121
121
  },
122
- /** Checks an upload this client made. `status` is present when the preset shows decisions. */
122
+ /** Checks an upload this client made. `classification.moderation.decision` is present when the preset shows decisions. */
123
123
  retrieve: async (options, requestOptions) => {
124
124
  const { assetId } = checked("assets.retrieve", options);
125
125
  const encodedAssetId = encodePathSegment(assetId, "Asset ID");
@@ -1,4 +1,4 @@
1
- import { B as resolveLogLevel, D as MAX_IMAGE_UPLOAD_BYTES, E as MAX_DIRECT_IMAGE_UPLOAD_BYTES, M as sleep, O as MAX_NON_IMAGE_UPLOAD_BYTES, Y as CalmLensError, _ as randomUuid, j as CalmLensTransport, k as getRejectedUploadMimeTypeError, lt as API_ERROR_CODES, m as isAcceptedUploadMimeType, ot as SDK_ERROR_CODES, r as selectModerationContextItems, st as invalidArgument, y as stringifyQuery } from "./ModerationContextLimits-tu_PY4fn.js";
1
+ import { B as resolveLogLevel, D as MAX_IMAGE_UPLOAD_BYTES, E as MAX_DIRECT_IMAGE_UPLOAD_BYTES, M as sleep, O as MAX_NON_IMAGE_UPLOAD_BYTES, Y as CalmLensError, _ as randomUuid, j as CalmLensTransport, k as getRejectedUploadMimeTypeError, lt as API_ERROR_CODES, m as isAcceptedUploadMimeType, ot as SDK_ERROR_CODES, r as selectModerationContextItems, st as invalidArgument, y as stringifyQuery } from "./ModerationContextLimits-ZIlK9n2X.js";
2
2
  // src/contract/AssetPayload.js
3
3
  const bufferInputToBytes = (value) => {
4
4
  if (value instanceof ArrayBuffer) return new Uint8Array(value);
@@ -1,6 +1,6 @@
1
1
  import { d as HashListEntry, u as HashList } from "./Classification-CMM2tZpJ-IdIh63n0.js";
2
- import { $ as FolderPage, $t as VerifyWebhookSignatureOptions, An as Policy, At as RetrieveAssetOptions, B as CreateHashListOptions, Bt as UpdateAssetOptions, D as BatchAssetsResponse, E as BatchAssetsOptions, Et as RemoveAssetContentOptions, Ft as SignUploadTokenOptions, G as DeleteAssetOptions, Gt as UpdateProjectSettingsOptions, Ht as UpdateHashListOptions, I as ClassifyTextOptions, In as AssetInfo, It as SignedAssetUrl, J as EnsureLensesOptions, K as DeleteMetadataFieldOptions, Kt as UpgradePolicyOptions, Lt as SignedUploadToken, M as CdnAssetUrlOptions, Nt as SetPolicyAutomaticUpdatesOptions, Ot as RequestOptions, P as CdnServeOptions, Pn as AssetSearchQuery, Pt as SignAssetUrlOptions, Q as FolderIdOptions, T as AssignPolicyOptions, Tt as PolicyPage, U as CreatePolicyOptions, Ut as UpdateLensOptions, V as CreateLensOptions, Vt as UpdateFolderOptions, W as DecideAssetOptions, Wt as UpdatePolicyOptions, X as EnsureUploadPresetsOptions, Xt as UploadPresetPage, Y as EnsureMetadataFieldsOptions, Yt as UploadPresetIdOptions, Z as EnsureUploadPresetsResponse, _ as AssetPage, _n as Folder, _t as ListLensesOptions, b as AssetTimelinePage, bt as MoveAssetOptions, ct as LensIdOptions, dt as ListAssetTimelineOptions, et as GetAssetInfoOptions, ft as ListAssetsOptions, gt as ListHashListsOptions, ht as ListHashListEntriesOptions, it as HashListPage, jt as RetryAssetOptions, k as CalmLensServerClientOptions, kt as ResetPolicyOptions, lt as LensPage, mt as ListFoldersOptions, nt as HashListEntryPage, o as AssetChildrenPage, on as GetEventsResponse, pt as ListEventsOptions, q as EnsureLensOptions, qt as UploadAssetPartOptions, r as Asset, rt as HashListIdOptions, st as Lens, t as AddHashListEntryOptions, tn as WaitForAssetDecisionOptions, tt as HashListEntryIdOptions, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vn as MetadataFieldsResource, vt as ListPoliciesOptions, wt as PolicyIdOptions, xt as MoveFolderOptions, yn as ProjectSettingsResource, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zt as SubmitAssetOptions } from "./CalmLensTypes-OWZsGvBX.js";
3
- import { d as ListPromise, l as CalmLensResponse, r as CdnResponse } from "./WebhookPayload-CrMU6lg0.js";
2
+ import { $ as FolderPage, $t as VerifyWebhookSignatureOptions, An as Policy, At as RetrieveAssetOptions, B as CreateHashListOptions, Bt as UpdateAssetOptions, D as BatchAssetsResponse, E as BatchAssetsOptions, Et as RemoveAssetContentOptions, Ft as SignUploadTokenOptions, G as DeleteAssetOptions, Gt as UpdateProjectSettingsOptions, Ht as UpdateHashListOptions, I as ClassifyTextOptions, In as AssetInfo, It as SignedAssetUrl, J as EnsureLensesOptions, K as DeleteMetadataFieldOptions, Kt as UpgradePolicyOptions, Lt as SignedUploadToken, M as CdnAssetUrlOptions, Nt as SetPolicyAutomaticUpdatesOptions, Ot as RequestOptions, P as CdnServeOptions, Pn as AssetSearchQuery, Pt as SignAssetUrlOptions, Q as FolderIdOptions, T as AssignPolicyOptions, Tt as PolicyPage, U as CreatePolicyOptions, Ut as UpdateLensOptions, V as CreateLensOptions, Vt as UpdateFolderOptions, W as DecideAssetOptions, Wt as UpdatePolicyOptions, X as EnsureUploadPresetsOptions, Xt as UploadPresetPage, Y as EnsureMetadataFieldsOptions, Yt as UploadPresetIdOptions, Z as EnsureUploadPresetsResponse, _ as AssetPage, _n as Folder, _t as ListLensesOptions, b as AssetTimelinePage, bt as MoveAssetOptions, ct as LensIdOptions, dt as ListAssetTimelineOptions, et as GetAssetInfoOptions, ft as ListAssetsOptions, gt as ListHashListsOptions, ht as ListHashListEntriesOptions, it as HashListPage, jt as RetryAssetOptions, k as CalmLensServerClientOptions, kt as ResetPolicyOptions, lt as LensPage, mt as ListFoldersOptions, nt as HashListEntryPage, o as AssetChildrenPage, on as GetEventsResponse, pt as ListEventsOptions, q as EnsureLensOptions, qt as UploadAssetPartOptions, r as Asset, rt as HashListIdOptions, st as Lens, t as AddHashListEntryOptions, tn as WaitForAssetDecisionOptions, tt as HashListEntryIdOptions, ut as ListAssetChildrenOptions, v as AssetSearchResponse, vn as MetadataFieldsResource, vt as ListPoliciesOptions, wt as PolicyIdOptions, xt as MoveFolderOptions, yn as ProjectSettingsResource, yt as ListUploadPresetsOptions, z as CreateFolderOptions, zt as SubmitAssetOptions } from "./CalmLensTypes-DxxyZt2L.js";
3
+ import { d as ListPromise, l as CalmLensResponse, r as CdnResponse } from "./WebhookPayload-D_yWJA9M.js";
4
4
  interface TransportRequest {
5
5
  /** The client method sending the request, such as `assets.retrieve`, for hooks and logs. */
6
6
  operation?: string;
@@ -1,6 +1,6 @@
1
- import { C as validateBatchAssetsOptions, F as isReactNativeRuntime, L as copyLastResponse, P as isBrowserRuntime, R as listPages, Y as CalmLensError, a as appendAssetLocation, b as toTextAssetOptions, ct as invalidConfig, d as checkOptionKeys, g as pollForDecision, l as validateSignAssetUrlOptions, o as buildAssetUrl, ot as SDK_ERROR_CODES, p as encodePathSegment, s as getAssetInfo, st as invalidArgument, u as DEFAULT_CDN_BASE_URL, w as validateServerClientOptions, y as stringifyQuery, z as readEnv } from "./ModerationContextLimits-tu_PY4fn.js";
2
- import { c as getMockHooks, d as prepareSubmitAssetOptions, f as resolveConnectionOptions, i as CalmLensConnection, l as invalidPayload, m as validateCallOptions, n as NULLABLE_OPTION_KEYS, o as expectAsset, p as splitsIntoParts, r as SERVER_OPTION_KEYS, u as newIdempotencyKey } from "./CalmLensOptionKeys-DoCKKuLT.js";
3
- import { n as sha256Hex, r as timingSafeEqual, t as hmacSha256Hex } from "./CryptoUtils-B_x8lMIx-DhuWGzqn.js";
1
+ import { C as validateBatchAssetsOptions, F as isReactNativeRuntime, L as copyLastResponse, P as isBrowserRuntime, R as listPages, Y as CalmLensError, a as appendAssetLocation, b as toTextAssetOptions, ct as invalidConfig, d as checkOptionKeys, g as pollForDecision, l as validateSignAssetUrlOptions, o as buildAssetUrl, ot as SDK_ERROR_CODES, p as encodePathSegment, s as getAssetInfo, st as invalidArgument, u as DEFAULT_CDN_BASE_URL, w as validateServerClientOptions, y as stringifyQuery, z as readEnv } from "./ModerationContextLimits-ZIlK9n2X.js";
2
+ import { c as getMockHooks, d as prepareSubmitAssetOptions, f as resolveConnectionOptions, i as CalmLensConnection, l as invalidPayload, m as validateCallOptions, n as NULLABLE_OPTION_KEYS, o as expectAsset, p as splitsIntoParts, r as SERVER_OPTION_KEYS, u as newIdempotencyKey } from "./CalmLensOptionKeys-CKZs8i3_.js";
3
+ import { n as sha256Hex, r as timingSafeEqual, t as hmacSha256Hex } from "./CryptoUtils-BLCa-oZe-DKr3LmN6.js";
4
4
  // src/contract/JsonUtils.js
5
5
  const stringifyJsonCanonical = (value) => JSON.stringify(value, (_key, nestedValue) => {
6
6
  if (!nestedValue || typeof nestedValue !== "object" || Array.isArray(nestedValue)) return nestedValue;