@digitalculture/ochre-sdk 0.12.16 → 0.12.18

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
@@ -676,19 +676,22 @@ type WebElementComponent = {
676
676
  } | {
677
677
  component: "collection";
678
678
  collectionIds: Array<string>;
679
- displayedPropertyUuids: Array<string> | null;
679
+ displayedProperties: Array<{
680
+ uuid: string;
681
+ label: string;
682
+ }> | null;
680
683
  variant: "full" | "highlights";
681
684
  itemVariant: "detailed" | "card" | "tile";
682
685
  paginationVariant: "default" | "numeric";
683
686
  layout: "image-top" | "image-bottom" | "image-start" | "image-end";
684
687
  isSortDisplayed: boolean;
685
- isFilterDisplayed: boolean;
686
- filterSort: "default" | "alphabetical";
687
688
  isUsingQueryParams: boolean;
688
- search: {
689
+ filter: {
690
+ isSidebarDisplayed: boolean;
689
691
  isResultsBarDisplayed: boolean;
690
692
  isMapDisplayed: boolean;
691
693
  isInputDisplayed: boolean;
694
+ sidebarSort: "default" | "alphabetical";
692
695
  };
693
696
  options: {
694
697
  attributeFilters: {
package/dist/index.mjs CHANGED
@@ -1866,7 +1866,10 @@ function parseWebElementProperties(componentProperty, elementResource) {
1866
1866
  };
1867
1867
  }
1868
1868
  properties.collectionIds = collectionLinks.map((link) => link.uuid);
1869
- properties.displayedPropertyUuids = displayedProperties?.values.map((value) => value.uuid).filter(Boolean) ?? null;
1869
+ properties.displayedProperties = displayedProperties?.values.map((value) => ({
1870
+ uuid: value.uuid,
1871
+ label: value.content
1872
+ })).filter(Boolean) ?? null;
1870
1873
  properties.variant = variant;
1871
1874
  properties.itemVariant = itemVariant;
1872
1875
  properties.paginationVariant = paginationVariant;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.12.16",
3
+ "version": "0.12.18",
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",
@@ -45,13 +45,13 @@
45
45
  "devDependencies": {
46
46
  "@antfu/eslint-config": "^6.2.0",
47
47
  "@types/node": "^24.10.1",
48
- "bumpp": "^10.3.1",
48
+ "bumpp": "^10.3.2",
49
49
  "eslint": "^9.39.1",
50
- "prettier": "^3.6.2",
50
+ "prettier": "^3.7.3",
51
51
  "terser": "^5.44.1",
52
- "tsdown": "^0.16.7",
52
+ "tsdown": "^0.16.8",
53
53
  "typescript": "^5.9.3",
54
- "vitest": "^4.0.14"
54
+ "vitest": "^4.0.15"
55
55
  },
56
56
  "scripts": {
57
57
  "dev": "tsdown src/index.ts --watch",