@digitalculture/ochre-sdk 0.11.27 → 0.11.29

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
@@ -786,6 +786,7 @@ type WebElementComponent = {
786
786
  * Represents an image used in web elements
787
787
  */
788
788
  type WebImage = {
789
+ uuid: string | null;
789
790
  url: string;
790
791
  label: string | null;
791
792
  description: string | null;
package/dist/index.mjs CHANGED
@@ -1766,6 +1766,7 @@ function parseWebElementProperties(componentProperty, elementResource) {
1766
1766
  let image = null;
1767
1767
  const imageLink = links.find((link) => link.type === "image" || link.type === "IIIF");
1768
1768
  if (imageLink != null) image = {
1769
+ uuid: imageLink.uuid,
1769
1770
  url: `https://ochre.lib.uchicago.edu/ochre?uuid=${imageLink.uuid}&load`,
1770
1771
  label: imageLink.identification?.label ?? null,
1771
1772
  width: imageLink.image?.width ?? 0,
@@ -1855,6 +1856,7 @@ function parseWebElementProperties(componentProperty, elementResource) {
1855
1856
  imageQuality ??= "high";
1856
1857
  const images = [];
1857
1858
  for (const link of links) images.push({
1859
+ uuid: link.uuid,
1858
1860
  url: `https://ochre.lib.uchicago.edu/ochre?uuid=${link.uuid}${imageQuality === "high" && (link.type === "image" || link.type === "IIIF") ? "&load" : "&preview"}`,
1859
1861
  label: link.identification?.label ?? null,
1860
1862
  width: link.image?.width ?? 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.11.27",
3
+ "version": "0.11.29",
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",
@@ -27,15 +27,15 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "main": "dist/index.js",
31
- "module": "dist/index.js",
32
- "types": "./dist/index.d.ts",
33
30
  "exports": {
34
31
  ".": {
35
- "import": "./dist/index.js",
36
- "require": "./dist/index.cjs"
32
+ "types": "./dist/index.d.ts",
33
+ "default": "./dist/index.mjs"
37
34
  }
38
35
  },
36
+ "main": "dist/index.mjs",
37
+ "module": "dist/index.mjs",
38
+ "types": "dist/index.d.mts",
39
39
  "files": [
40
40
  "dist"
41
41
  ],