@digitalculture/ochre-sdk 0.15.1 → 0.15.3

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.
package/dist/index.d.mts CHANGED
@@ -813,7 +813,6 @@ type WebElementComponent = {
813
813
  altTextSource: "name" | "abbreviation" | "description";
814
814
  isTransparentBackground: boolean;
815
815
  isCover: boolean;
816
- isLinkDisplayed: boolean;
817
816
  carouselOptions: {
818
817
  secondsPerImage: number;
819
818
  } | null;
package/dist/index.mjs CHANGED
@@ -547,7 +547,8 @@ function parseWhitespace(contentString, whitespace) {
547
547
  }
548
548
  for (const option of result.data) switch (option) {
549
549
  case "newline":
550
- returnString = `<br />\n${returnString}`;
550
+ if (returnString.trim() === "---") returnString = "<hr />\n";
551
+ else returnString = `<br />\n${returnString}`;
551
552
  break;
552
553
  case "trailing":
553
554
  returnString = `${returnString} `;
@@ -2184,9 +2185,6 @@ function parseWebElementProperties(componentProperty, elementResource) {
2184
2185
  let isCover = false;
2185
2186
  const isCoverProperty = getPropertyValueByLabel(componentProperty.properties, "is-cover");
2186
2187
  if (isCoverProperty !== null) isCover = isCoverProperty === true;
2187
- let isLinkDisplayed = false;
2188
- const isLinkDisplayedProperty = getPropertyValueByLabel(componentProperty.properties, "link-displayed");
2189
- if (isLinkDisplayedProperty !== null) isLinkDisplayed = isLinkDisplayedProperty === true;
2190
2188
  const variantProperty = getPropertyByLabel(componentProperty.properties, "variant");
2191
2189
  let carouselOptions = null;
2192
2190
  if (images.length > 1) {
@@ -2221,7 +2219,6 @@ function parseWebElementProperties(componentProperty, elementResource) {
2221
2219
  properties.altTextSource = altTextSource;
2222
2220
  properties.isTransparentBackground = isTransparentBackground;
2223
2221
  properties.isCover = isCover;
2224
- properties.isLinkDisplayed = isLinkDisplayed;
2225
2222
  properties.carouselOptions = carouselOptions;
2226
2223
  properties.heroOptions = heroOptions;
2227
2224
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.15.1",
3
+ "version": "0.15.3",
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",