@orangelogic/design-system 3.2.0 → 3.3.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": "3.2.0",
4
+ "version": "3.3.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -257,6 +257,19 @@ export default class CxCarousel extends CortexElement {
257
257
  get selectedCarouselItem(): string;
258
258
  get canMoveCarouselItem(): boolean;
259
259
  get canDeleteCarouselItem(): boolean;
260
+ /**
261
+ * The `sizes` hint for slide images, derived from the slide layout rather than a
262
+ * measured width: the carousel sizes slides purely in CSS, so no pixel width is
263
+ * available at render time.
264
+ *
265
+ * Vertical carousels stack slides, so each one spans the full width regardless of
266
+ * `slidesPerPage` — only the horizontal layout divides the row.
267
+ *
268
+ * This uses the viewport rather than the carousel's own box, so a carousel rendered
269
+ * in a narrow column over-estimates and requests one ladder rung too large. That is
270
+ * still far better than the full-resolution original served without `sizes`.
271
+ */
272
+ private get slideSizes();
260
273
  constructor();
261
274
  connectedUpdatedCallback(): void;
262
275
  runFirstUpdated(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.2.0",
4
+ "version": "3.3.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {