ochre-sdk 1.0.68 → 1.0.69
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.
|
@@ -1197,10 +1197,7 @@ function parseWebsiteProperties(properties, websiteTree, sidebar, options, paren
|
|
|
1197
1197
|
},
|
|
1198
1198
|
sidebar: sidebar ?? parent?.sidebar ?? null,
|
|
1199
1199
|
itemPage: {
|
|
1200
|
-
|
|
1201
|
-
isDisplayed: parent?.itemPage.mainContent.isDisplayed ?? true,
|
|
1202
|
-
isHeaderDisplayed: parent?.itemPage.mainContent.isHeaderDisplayed ?? true
|
|
1203
|
-
},
|
|
1200
|
+
isMainContentDisplayed: parent?.itemPage.isMainContentDisplayed ?? true,
|
|
1204
1201
|
description: {
|
|
1205
1202
|
isDisplayed: parent?.itemPage.description.isDisplayed ?? true,
|
|
1206
1203
|
isHeaderDisplayed: parent?.itemPage.description.isHeaderDisplayed ?? true
|
|
@@ -1223,10 +1220,7 @@ function parseWebsiteProperties(properties, websiteTree, sidebar, options, paren
|
|
|
1223
1220
|
isDisplayed: parent?.itemPage.periods.isDisplayed ?? true,
|
|
1224
1221
|
isHeaderDisplayed: parent?.itemPage.periods.isHeaderDisplayed ?? true
|
|
1225
1222
|
},
|
|
1226
|
-
|
|
1227
|
-
isDisplayed: parent?.itemPage.properties.isDisplayed ?? true,
|
|
1228
|
-
isHeaderDisplayed: parent?.itemPage.properties.isHeaderDisplayed ?? true
|
|
1229
|
-
},
|
|
1223
|
+
isPropertiesDisplayed: parent?.itemPage.isPropertiesDisplayed ?? true,
|
|
1230
1224
|
bibliography: {
|
|
1231
1225
|
isDisplayed: parent?.itemPage.bibliography.isDisplayed ?? true,
|
|
1232
1226
|
isHeaderDisplayed: parent?.itemPage.bibliography.isHeaderDisplayed ?? true
|
|
@@ -1268,13 +1262,11 @@ function parseWebsiteProperties(properties, websiteTree, sidebar, options, paren
|
|
|
1268
1262
|
const itemPageReader = websiteReader.nestedByValue("page-type", "item-page");
|
|
1269
1263
|
if (itemPageReader.size > 0) {
|
|
1270
1264
|
for (const [key, slug] of [
|
|
1271
|
-
["mainContent", "main-content"],
|
|
1272
1265
|
["description", "description"],
|
|
1273
1266
|
["document", "document"],
|
|
1274
1267
|
["notes", "notes"],
|
|
1275
1268
|
["events", "events"],
|
|
1276
1269
|
["periods", "periods"],
|
|
1277
|
-
["properties", "properties"],
|
|
1278
1270
|
["bibliography", "bibliography"]
|
|
1279
1271
|
]) {
|
|
1280
1272
|
const section = returnProperties.itemPage[key];
|
package/dist/types/website.d.mts
CHANGED
|
@@ -155,10 +155,7 @@ type Website<T extends LanguageCodes = LanguageCodes> = {
|
|
|
155
155
|
};
|
|
156
156
|
sidebar: WebSidebar<T> | null;
|
|
157
157
|
itemPage: {
|
|
158
|
-
|
|
159
|
-
isDisplayed: boolean;
|
|
160
|
-
isHeaderDisplayed: boolean;
|
|
161
|
-
};
|
|
158
|
+
isMainContentDisplayed: boolean;
|
|
162
159
|
description: {
|
|
163
160
|
isDisplayed: boolean;
|
|
164
161
|
isHeaderDisplayed: boolean;
|
|
@@ -181,10 +178,7 @@ type Website<T extends LanguageCodes = LanguageCodes> = {
|
|
|
181
178
|
isDisplayed: boolean;
|
|
182
179
|
isHeaderDisplayed: boolean;
|
|
183
180
|
};
|
|
184
|
-
|
|
185
|
-
isDisplayed: boolean;
|
|
186
|
-
isHeaderDisplayed: boolean;
|
|
187
|
-
};
|
|
181
|
+
isPropertiesDisplayed: boolean;
|
|
188
182
|
bibliography: {
|
|
189
183
|
isDisplayed: boolean;
|
|
190
184
|
isHeaderDisplayed: boolean;
|