@digitalculture/ochre-sdk 0.3.2 → 0.3.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.cjs +8 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2077,6 +2077,7 @@ async function parseWebsite(websiteTree, projectName, website) {
|
|
|
2077
2077
|
isCreatorsDisplayed: false
|
|
2078
2078
|
}
|
|
2079
2079
|
};
|
|
2080
|
+
let sidebarLayout = "start";
|
|
2080
2081
|
const sidebarCssStyles = [];
|
|
2081
2082
|
const sidebarResource = resources.find((resource) => {
|
|
2082
2083
|
const resourceProperties = resource.properties ? parseProperties(
|
|
@@ -2091,6 +2092,12 @@ async function parseWebsite(websiteTree, projectName, website) {
|
|
|
2091
2092
|
const sidebarProperties = sidebarResource.properties ? parseProperties(
|
|
2092
2093
|
Array.isArray(sidebarResource.properties.property) ? sidebarResource.properties.property : [sidebarResource.properties.property]
|
|
2093
2094
|
) : [];
|
|
2095
|
+
const sidebarLayoutProperty = sidebarProperties.find(
|
|
2096
|
+
(property) => property.label === "layout"
|
|
2097
|
+
);
|
|
2098
|
+
if (sidebarLayoutProperty) {
|
|
2099
|
+
sidebarLayout = sidebarLayoutProperty.values[0].content;
|
|
2100
|
+
}
|
|
2094
2101
|
const cssProperties = sidebarProperties.find(
|
|
2095
2102
|
(property) => property.label === "presentation" && property.values[0].content === "css"
|
|
2096
2103
|
)?.properties ?? [];
|
|
@@ -2142,6 +2149,7 @@ async function parseWebsite(websiteTree, projectName, website) {
|
|
|
2142
2149
|
sidebar = {
|
|
2143
2150
|
elements: sidebarElements,
|
|
2144
2151
|
title: sidebarTitle,
|
|
2152
|
+
layout: sidebarLayout,
|
|
2145
2153
|
cssStyles: sidebarCssStyles
|
|
2146
2154
|
};
|
|
2147
2155
|
}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1999,6 +1999,7 @@ async function parseWebsite(websiteTree, projectName, website) {
|
|
|
1999
1999
|
isCreatorsDisplayed: false
|
|
2000
2000
|
}
|
|
2001
2001
|
};
|
|
2002
|
+
let sidebarLayout = "start";
|
|
2002
2003
|
const sidebarCssStyles = [];
|
|
2003
2004
|
const sidebarResource = resources.find((resource) => {
|
|
2004
2005
|
const resourceProperties = resource.properties ? parseProperties(
|
|
@@ -2013,6 +2014,12 @@ async function parseWebsite(websiteTree, projectName, website) {
|
|
|
2013
2014
|
const sidebarProperties = sidebarResource.properties ? parseProperties(
|
|
2014
2015
|
Array.isArray(sidebarResource.properties.property) ? sidebarResource.properties.property : [sidebarResource.properties.property]
|
|
2015
2016
|
) : [];
|
|
2017
|
+
const sidebarLayoutProperty = sidebarProperties.find(
|
|
2018
|
+
(property) => property.label === "layout"
|
|
2019
|
+
);
|
|
2020
|
+
if (sidebarLayoutProperty) {
|
|
2021
|
+
sidebarLayout = sidebarLayoutProperty.values[0].content;
|
|
2022
|
+
}
|
|
2016
2023
|
const cssProperties = sidebarProperties.find(
|
|
2017
2024
|
(property) => property.label === "presentation" && property.values[0].content === "css"
|
|
2018
2025
|
)?.properties ?? [];
|
|
@@ -2064,6 +2071,7 @@ async function parseWebsite(websiteTree, projectName, website) {
|
|
|
2064
2071
|
sidebar = {
|
|
2065
2072
|
elements: sidebarElements,
|
|
2066
2073
|
title: sidebarTitle,
|
|
2074
|
+
layout: sidebarLayout,
|
|
2067
2075
|
cssStyles: sidebarCssStyles
|
|
2068
2076
|
};
|
|
2069
2077
|
}
|
package/package.json
CHANGED