ochre-sdk 0.22.13 → 0.22.14

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
@@ -868,6 +868,7 @@ type Website = {
868
868
  name: string;
869
869
  email: string | null;
870
870
  } | null;
871
+ loadingVariant: "spinner" | "skeleton" | "animation" | "none";
871
872
  theme: {
872
873
  isThemeToggleDisplayed: boolean;
873
874
  defaultTheme: "light" | "dark" | "system";
package/dist/index.mjs CHANGED
@@ -4822,6 +4822,7 @@ function parseWebsiteProperties(properties, websiteTree, sidebar) {
4822
4822
  status,
4823
4823
  privacy,
4824
4824
  contact: null,
4825
+ loadingVariant: "spinner",
4825
4826
  theme: {
4826
4827
  isThemeToggleDisplayed: true,
4827
4828
  defaultTheme: "system"
@@ -4873,6 +4874,7 @@ function parseWebsiteProperties(properties, websiteTree, sidebar) {
4873
4874
  };
4874
4875
  else throw new Error(`Contact property must be in the format “name;email”, but got “${contactProperty.values[0]?.content}”`);
4875
4876
  }
4877
+ returnProperties.loadingVariant = getPropertyValueContentByLabel(websiteProperties, "loading-variant") ?? "spinner";
4876
4878
  returnProperties.theme.isThemeToggleDisplayed = getPropertyValueContentByLabel(websiteProperties, "supports-theme-toggle") ?? true;
4877
4879
  returnProperties.theme.defaultTheme = getPropertyValueContentByLabel(websiteProperties, "default-theme") ?? "system";
4878
4880
  returnProperties.icon.logoUuid = getPropertyByLabel(websiteProperties, "navbar-logo")?.values[0]?.uuid ?? null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "0.22.13",
3
+ "version": "0.22.14",
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",