@digitalculture/ochre-sdk 0.16.8 → 0.16.10

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
@@ -904,6 +904,10 @@ type WebElementComponent = {
904
904
  startIcon: string | null;
905
905
  endIcon: string | null;
906
906
  }>;
907
+ displayedProperties: Array<{
908
+ uuid: string;
909
+ label: string;
910
+ }> | null;
907
911
  itemVariant: "detailed" | "card" | "tile";
908
912
  paginationVariant: "default" | "numeric";
909
913
  layout: "image-top" | "image-bottom" | "image-start" | "image-end";
@@ -927,6 +931,9 @@ type WebElementComponent = {
927
931
  } | {
928
932
  name: "label";
929
933
  size: "xs" | "sm" | "md" | "lg" | "xl";
934
+ } | {
935
+ name: "heading";
936
+ size: "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
930
937
  } | {
931
938
  name: "display";
932
939
  size: "xs" | "sm" | "md" | "lg";
package/dist/index.mjs CHANGED
@@ -2494,6 +2494,7 @@ function parseWebElementProperties(componentProperty, elementResource) {
2494
2494
  });
2495
2495
  }
2496
2496
  if (queries.length === 0) throw new Error(`No queries found for the following component: “${componentName}”`);
2497
+ const displayedProperties = getPropertyByLabel(componentProperty.properties, "use-property");
2497
2498
  let itemVariant = getPropertyValueByLabel(componentProperty.properties, "item-variant");
2498
2499
  itemVariant ??= "detailed";
2499
2500
  let paginationVariant = getPropertyValueByLabel(componentProperty.properties, "pagination-variant");
@@ -2501,6 +2502,10 @@ function parseWebElementProperties(componentProperty, elementResource) {
2501
2502
  let layout = getPropertyValueByLabel(componentProperty.properties, "layout");
2502
2503
  layout ??= "image-start";
2503
2504
  properties.queries = queries;
2505
+ properties.displayedProperties = displayedProperties?.values.map((value) => ({
2506
+ uuid: value.uuid,
2507
+ label: value.content
2508
+ })).filter(Boolean) ?? null;
2504
2509
  properties.itemVariant = itemVariant;
2505
2510
  properties.paginationVariant = paginationVariant;
2506
2511
  properties.layout = layout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.16.8",
3
+ "version": "0.16.10",
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",