@orangelogic/design-system 2.196.0 → 2.197.0

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.196.0",
4
+ "version": "2.197.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -93,6 +93,14 @@ export default class CxGalleryPicker extends CortexElement implements CortexForm
93
93
  private readonly maxColumns;
94
94
  private readonly rowHeight;
95
95
  private readonly spacing;
96
+ /**
97
+ * Proxy the picker's thumbnails are always served from.
98
+ *
99
+ * The picker shows the author which asset they are choosing, in a fixed-size grid, so it
100
+ * pins one small proxy instead of following the block's configured format — the format
101
+ * the block will render at says nothing about what this preview needs.
102
+ */
103
+ private static readonly THUMBNAIL_FORMAT;
96
104
  private autofetchController;
97
105
  /** Gets the validity state object */
98
106
  get validity(): {
@@ -14,6 +14,14 @@ type FetchImageControllerOptions = {
14
14
  * asset exactly as stored (an editor preview, say) never picks this up by accident.
15
15
  */
16
16
  autoFormat?: boolean;
17
+ /**
18
+ * Whether items carry a `srcset` resize ladder.
19
+ *
20
+ * Defaults to `false`. A fixed-size surface (an editor preview, a thumbnail strip) renders
21
+ * one known size, so a ladder there only adds `/t/re_w_*` renditions the layout can never
22
+ * use. Opt in from a surface whose images are actually laid out responsively.
23
+ */
24
+ buildSrcset?: boolean;
17
25
  isSiteBuilder?: boolean;
18
26
  maxEnd?: number;
19
27
  pageSize?: number;
@@ -34,6 +42,8 @@ export declare class FetchImageController implements ReactiveController {
34
42
  private readonly isSiteBuilder;
35
43
  /** Whether delivery URLs carry the `.auto` marker. See `FetchImageControllerOptions`. */
36
44
  private readonly autoFormat;
45
+ /** Whether items carry a `srcset` ladder. See `FetchImageControllerOptions`. */
46
+ private readonly buildSrcset;
37
47
  private requestEpoch;
38
48
  constructor(host: ReactiveElement, options?: FetchImageControllerOptions);
39
49
  get totalDataCount(): number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.196.0",
4
+ "version": "2.197.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {