ochre-sdk 1.0.54 → 1.0.55
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.
|
@@ -520,14 +520,14 @@ function parseWebElementProperties(componentProperty, elementResource, options,
|
|
|
520
520
|
let width = null;
|
|
521
521
|
const widthProperty = componentReader.value("width");
|
|
522
522
|
if (widthProperty !== null) {
|
|
523
|
-
if (typeof widthProperty === "
|
|
524
|
-
else if (typeof widthProperty === "
|
|
523
|
+
if (typeof widthProperty === "string") width = widthProperty;
|
|
524
|
+
else if (typeof widthProperty === "number") width = widthProperty.toString();
|
|
525
525
|
}
|
|
526
526
|
let height = null;
|
|
527
527
|
const heightProperty = componentReader.value("height");
|
|
528
528
|
if (heightProperty !== null) {
|
|
529
|
-
if (typeof heightProperty === "
|
|
530
|
-
else if (typeof heightProperty === "
|
|
529
|
+
if (typeof heightProperty === "string") height = heightProperty;
|
|
530
|
+
else if (typeof heightProperty === "number") height = heightProperty.toString();
|
|
531
531
|
}
|
|
532
532
|
const isFullWidth = componentReader.valueOr("is-full-width", true);
|
|
533
533
|
const isFullHeight = componentReader.valueOr("is-full-height", true);
|
package/dist/types/website.d.mts
CHANGED
|
@@ -345,8 +345,8 @@ type WebElementComponent<T extends LanguageCodes = LanguageCodes> = {
|
|
|
345
345
|
component: "image";
|
|
346
346
|
images: Array<WebImage<T>>;
|
|
347
347
|
variant: "default" | "carousel" | "grid" | "hero";
|
|
348
|
-
width:
|
|
349
|
-
height:
|
|
348
|
+
width: string | null;
|
|
349
|
+
height: string | null;
|
|
350
350
|
isFullWidth: boolean;
|
|
351
351
|
isFullHeight: boolean;
|
|
352
352
|
imageQuality: "high" | "low";
|