@orangelogic/design-system 2.147.0 → 2.148.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.
@@ -114,7 +114,7 @@ let r = class extends w {
114
114
  return o`<div data-id=${t[this.idKey]} class=${h({
115
115
  "masonry-list__item": !0,
116
116
  "masonry-list__item--error": t.hasError ?? !1
117
- })} part="item" @click=${i}><cx-image part="image" class="masonry-list__item__image" alt=${t.alt || ""} src=${t.src} object-fit=${t.objectFit || u.Cover} ?loading=${t.loading}></cx-image>${y(this.actions.length > 0, () => this.renderActions(t))}</div>`;
117
+ })} part="item" @click=${i}><cx-image part="image" class="masonry-list__item__image" alt=${t.alt || ""} src=${t.src} object-fit=${t.objectFit || u.Cover} ?loading=${t.loading} retry-on-error></cx-image>${y(this.actions.length > 0, () => this.renderActions(t))}</div>`;
118
118
  }
119
119
  )}</div>`;
120
120
  }
@@ -5589,7 +5589,7 @@ let ro = class extends ui {
5589
5589
  }
5590
5590
  renderAssetPreview() {
5591
5591
  if ((this.previewSrc || this.value) && this.acceptsType(gl.Image))
5592
- return P`<cx-image part="image" class="asset-picker__image" src=${this.previewSrc || this.value} alt=${this.assetTitle} width="200px" object-fit=${Ao.Cover}></cx-image>`;
5592
+ return P`<cx-image part="image" class="asset-picker__image" src=${this.previewSrc || this.value} alt=${this.assetTitle} width="200px" object-fit=${Ao.Cover} retry-on-error></cx-image>`;
5593
5593
  if (this.assetTitle && (this.acceptsType(gl.Audio) || this.acceptsType(gl.Video)))
5594
5594
  return P`<cx-typography variant="body-2">${Z1(this.assetTitle, 30, 11, 11)}</cx-typography>`;
5595
5595
  if (this.assetTitle && (this.acceptsType(gl.Other) || this.acceptsType(gl.All))) {
@@ -138565,7 +138565,7 @@ let Ss = class extends ui {
138565
138565
  </cx-checkbox></cx-space><cx-space wrap="nowrap" direction="vertical" class="image-dialog__col" spacing="x-small"><cx-typography variant="body2">${this.localize.term("preview")}</cx-typography><div class="image-container"><cx-image part="image" class=${Lt({
138566
138566
  image: !0,
138567
138567
  "undefined-src": this.isValidSrc === void 0
138568
- })} src=${this.data.src || ""} width="100%" height="100%" height-mode=${this.data.keepRatio ? Xn.Auto : Xn.Fixed} @cx-load=${this.handleImageLoad}></cx-image></div><cx-typography variant="body3">
138568
+ })} src=${this.data.src || ""} width="100%" height="100%" height-mode=${this.data.keepRatio ? Xn.Auto : Xn.Fixed} retry-on-error @cx-load=${this.handleImageLoad}></cx-image></div><cx-typography variant="body3">
138569
138569
  In editor, drag image to reposition
138570
138570
  </cx-typography><cx-typography variant="body3">
138571
138571
  Click on image to enable image resizer
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.147.0",
4
+ "version": "2.148.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -61,7 +61,7 @@ export default class CxImage extends ResizableElement {
61
61
  /** True while a load has failed and a retry is scheduled or in-flight (retry-on-error only). */
62
62
  isRetrying: boolean;
63
63
  /** Incremented on each retry attempt to force the img element to remount via keyed(). */
64
- private retryIndex;
64
+ protected retryIndex: number;
65
65
  /**
66
66
  * The path to the image to load.
67
67
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.147.0",
4
+ "version": "2.148.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {