ochre-sdk 1.3.23 → 1.3.24

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.
@@ -60,7 +60,8 @@ function parseWebsiteProperties(properties, websiteTree, sidebar, options, paren
60
60
  events: {
61
61
  isDisplayed: parent?.itemPage.events.isDisplayed ?? true,
62
62
  isHeaderDisplayed: parent?.itemPage.events.isHeaderDisplayed ?? true,
63
- variant: parent?.itemPage.events.variant ?? "tabular"
63
+ variant: parent?.itemPage.events.variant ?? "tabular",
64
+ isFilterInputDisplayed: parent?.itemPage.events.isFilterInputDisplayed ?? true
64
65
  },
65
66
  periods: {
66
67
  isDisplayed: parent?.itemPage.periods.isDisplayed ?? true,
@@ -136,6 +137,7 @@ function parseWebsiteProperties(properties, websiteTree, sidebar, options, paren
136
137
  }
137
138
  itemPageReader.readAll(returnProperties.itemPage.notes, { variant: "item-page-notes-display-variant" });
138
139
  itemPageReader.readAll(returnProperties.itemPage.events, { variant: "item-page-events-display-variant" });
140
+ itemPageReader.nestedByValue("item-page-events-display-variant", "tabular").readAll(returnProperties.itemPage.events, { isFilterInputDisplayed: "filter-input-displayed" });
139
141
  itemPageReader.readAll(returnProperties.itemPage, {
140
142
  isPropertyValuesGrouped: "item-page-property-values-grouped",
141
143
  isPublicationDateTimeDisplayed: "item-page-publication-date-time-displayed",
@@ -205,6 +205,7 @@ export type Website<T extends LanguageCodes = LanguageCodes> = {
205
205
  isDisplayed: boolean;
206
206
  isHeaderDisplayed: boolean;
207
207
  variant: WebSectionVariant;
208
+ isFilterInputDisplayed: boolean;
208
209
  };
209
210
  periods: WebSectionDisplay;
210
211
  isPropertiesDisplayed: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.3.23",
3
+ "version": "1.3.24",
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",