@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 +0 -1
- package/dist/index.mjs +2 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
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 =
|
|
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