@digitalculture/ochre-sdk 0.12.13 → 0.12.15

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 CHANGED
@@ -559,7 +559,7 @@ type Website = {
559
559
  isHeaderProjectDisplayed: boolean;
560
560
  isFooterDisplayed: boolean;
561
561
  isSidebarDisplayed: boolean;
562
- headerSearchBarPageSlug: string | null;
562
+ headerSearchBarBoundElementUuid: string | null;
563
563
  supportsThemeToggle: boolean;
564
564
  defaultTheme: "light" | "dark" | null;
565
565
  logoUrl: string | null;
package/dist/index.mjs CHANGED
@@ -2270,7 +2270,7 @@ function parseWebpage(webpageResource) {
2270
2270
  if (isSidebarDisplayedProperty) isSidebarDisplayed = isSidebarDisplayedProperty.content === true;
2271
2271
  const isBreadcrumbsDisplayedProperty = webpageSubProperties.find((property) => property.label === "breadcrumbs-displayed")?.values[0];
2272
2272
  if (isBreadcrumbsDisplayedProperty) isBreadcrumbsDisplayed = isBreadcrumbsDisplayedProperty.content === true;
2273
- const isHeaderSearchBarDisplayedProperty = webpageSubProperties.find((property) => property.label === "header-search-bar-displayed")?.values[0];
2273
+ const isHeaderSearchBarDisplayedProperty = webpageSubProperties.find((property) => property.label === "navbar-search-bar-displayed")?.values[0];
2274
2274
  if (isHeaderSearchBarDisplayedProperty) isHeaderSearchBarDisplayed = isHeaderSearchBarDisplayedProperty.content === true;
2275
2275
  }
2276
2276
  const cssStyleSubProperties = webpageProperties.find((property) => property.label === "presentation" && property.values[0]?.content === "css")?.properties;
@@ -2651,7 +2651,7 @@ function parseWebsiteProperties(properties, websiteTree) {
2651
2651
  if (footerProperty) isFooterDisplayed = footerProperty.content === true;
2652
2652
  const sidebarProperty = websiteProperties.find((property) => property.label === "sidebar-displayed")?.values[0];
2653
2653
  if (sidebarProperty) isSidebarDisplayed = sidebarProperty.content === true;
2654
- const headerSearchBarPageSlug = websiteProperties.find((property) => property.label === "navbar-search-bar-page")?.values[0]?.content?.toString() ?? null;
2654
+ const headerSearchBarBoundElementUuid = websiteProperties.find((property) => property.label === "bound-element-navbar-search-bar")?.values[0]?.uuid ?? null;
2655
2655
  const iiifViewerProperty = websiteProperties.find((property) => property.label === "iiif-viewer")?.values[0];
2656
2656
  if (iiifViewerProperty) iiifViewer = iiifViewerProperty.content;
2657
2657
  const supportsThemeToggleProperty = websiteProperties.find((property) => property.label === "supports-theme-toggle")?.values[0];
@@ -2700,7 +2700,7 @@ function parseWebsiteProperties(properties, websiteTree) {
2700
2700
  isHeaderProjectDisplayed,
2701
2701
  isFooterDisplayed,
2702
2702
  isSidebarDisplayed,
2703
- headerSearchBarPageSlug,
2703
+ headerSearchBarBoundElementUuid,
2704
2704
  supportsThemeToggle,
2705
2705
  defaultTheme,
2706
2706
  logoUrl: logoUuid !== null ? `https://ochre.lib.uchicago.edu/ochre?uuid=${logoUuid}&load` : null,
@@ -3166,7 +3166,7 @@ const KNOWN_ABBREVIATIONS = {
3166
3166
  ssmc: "8ff977dd-d440-40f5-ad93-8ad7e2d39e74",
3167
3167
  "sosc-core-at-smart": "db26c953-9b2a-4691-a909-5e8726b531d7"
3168
3168
  };
3169
- const V2_ABBREVIATIONS = new Set(["bengali-song"]);
3169
+ const V2_ABBREVIATIONS = /* @__PURE__ */ new Set();
3170
3170
  /**
3171
3171
  * Fetches and parses a website configuration from the OCHRE API
3172
3172
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.12.13",
3
+ "version": "0.12.15",
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",