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 === "number") width = widthProperty;
524
- else if (typeof widthProperty === "string") width = Number(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 === "number") height = heightProperty;
530
- else if (typeof heightProperty === "string") height = Number(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);
@@ -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: number | null;
349
- height: number | null;
348
+ width: string | null;
349
+ height: string | null;
350
350
  isFullWidth: boolean;
351
351
  isFullHeight: boolean;
352
352
  imageQuality: "high" | "low";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",