@digitalculture/ochre-sdk 0.3.1 → 0.3.2
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.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1809,7 +1809,7 @@ async function parseWebElement(elementResource, elementProperties) {
|
|
|
1809
1809
|
cssStyles.push({ label: property.label, value: cssStyle });
|
|
1810
1810
|
}
|
|
1811
1811
|
const titleProperties = elementResourceProperties.find(
|
|
1812
|
-
(property) => property.label === "title"
|
|
1812
|
+
(property) => property.label === "presentation" && property.values[0].content === "title"
|
|
1813
1813
|
)?.properties;
|
|
1814
1814
|
let variant = "default";
|
|
1815
1815
|
let isNameDisplayed = false;
|
|
@@ -2099,7 +2099,7 @@ async function parseWebsite(websiteTree, projectName, website) {
|
|
|
2099
2099
|
sidebarCssStyles.push({ label: property.label, value: cssStyle });
|
|
2100
2100
|
}
|
|
2101
2101
|
const titleProperties = sidebarProperties.find(
|
|
2102
|
-
(property) => property.label === "title"
|
|
2102
|
+
(property) => property.label === "presentation" && property.values[0].content === "title"
|
|
2103
2103
|
)?.properties;
|
|
2104
2104
|
if (titleProperties) {
|
|
2105
2105
|
const titleVariant = getPropertyValueByLabel(titleProperties, "variant");
|
package/dist/index.js
CHANGED
|
@@ -1731,7 +1731,7 @@ async function parseWebElement(elementResource, elementProperties) {
|
|
|
1731
1731
|
cssStyles.push({ label: property.label, value: cssStyle });
|
|
1732
1732
|
}
|
|
1733
1733
|
const titleProperties = elementResourceProperties.find(
|
|
1734
|
-
(property) => property.label === "title"
|
|
1734
|
+
(property) => property.label === "presentation" && property.values[0].content === "title"
|
|
1735
1735
|
)?.properties;
|
|
1736
1736
|
let variant = "default";
|
|
1737
1737
|
let isNameDisplayed = false;
|
|
@@ -2021,7 +2021,7 @@ async function parseWebsite(websiteTree, projectName, website) {
|
|
|
2021
2021
|
sidebarCssStyles.push({ label: property.label, value: cssStyle });
|
|
2022
2022
|
}
|
|
2023
2023
|
const titleProperties = sidebarProperties.find(
|
|
2024
|
-
(property) => property.label === "title"
|
|
2024
|
+
(property) => property.label === "presentation" && property.values[0].content === "title"
|
|
2025
2025
|
)?.properties;
|
|
2026
2026
|
if (titleProperties) {
|
|
2027
2027
|
const titleVariant = getPropertyValueByLabel(titleProperties, "variant");
|
package/package.json
CHANGED