@digitalculture/ochre-sdk 0.11.24 → 0.11.26
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.
|
@@ -583,7 +583,7 @@ function parseStringDocumentItem(item) {
|
|
|
583
583
|
return `<InternalLink uuid="${linkResource.uuid}" properties="${itemPropertyLabelUuid}"${itemPropertyValueUuid !== null ? ` value="${itemPropertyValueUuid}"` : ""}>${itemString}</InternalLink>`;
|
|
584
584
|
} else return `<InternalLink uuid="${linkResource.uuid}">${itemString}</InternalLink>`;
|
|
585
585
|
} else return `<InternalLink uuid="${linkResource.uuid}">${itemString}</InternalLink>`;
|
|
586
|
-
case "externalDocument": if (linkResource.publicationDateTime != null) return `<ExternalLink href="https
|
|
586
|
+
case "externalDocument": if (linkResource.publicationDateTime != null) return String.raw`<ExternalLink href="https:\/\/ochre.lib.uchicago.edu/ochre?uuid=${linkResource.uuid}&load" ${linkContent !== null ? `content="${linkContent}"` : ""}>${itemString}</ExternalLink>`;
|
|
587
587
|
else return `<TooltipSpan${linkContent !== null ? ` content="${linkContent}"` : ""}>${itemString}</TooltipSpan>`;
|
|
588
588
|
case "webpage": return `<ExternalLink href="${linkResource.href}" ${linkContent !== null ? `content="${linkContent}"` : ""}>${itemString}</ExternalLink>`;
|
|
589
589
|
default: return "";
|
|
@@ -624,7 +624,7 @@ function parseStringDocumentItem(item) {
|
|
|
624
624
|
if (textAnnotationProperty != null) {
|
|
625
625
|
if ((typeof textAnnotationProperty.value === "object" && "uuid" in textAnnotationProperty.value && textAnnotationProperty.value.uuid != null ? textAnnotationProperty.value.uuid : null) === TEXT_ANNOTATION_TEXT_STYLING_UUID && textAnnotationProperty.property != null) {
|
|
626
626
|
const textStylingType = "text-styling";
|
|
627
|
-
let textStylingVariant = "
|
|
627
|
+
let textStylingVariant = "block";
|
|
628
628
|
let textStylingSize = "md";
|
|
629
629
|
let textStylingCss = [];
|
|
630
630
|
const textStylingProperties = Array.isArray(textAnnotationProperty.property) ? textAnnotationProperty.property : [textAnnotationProperty.property];
|
|
@@ -1232,6 +1232,7 @@ function parseInterpretations(interpretations) {
|
|
|
1232
1232
|
for (const interpretation of interpretations) returnInterpretations.push({
|
|
1233
1233
|
date: interpretation.date,
|
|
1234
1234
|
number: interpretation.interpretationNo,
|
|
1235
|
+
links: interpretation.links ? parseLinks(Array.isArray(interpretation.links) ? interpretation.links : [interpretation.links]) : [],
|
|
1235
1236
|
properties: interpretation.properties ? parseProperties(Array.isArray(interpretation.properties.property) ? interpretation.properties.property : [interpretation.properties.property]) : [],
|
|
1236
1237
|
bibliographies: interpretation.bibliographies ? parseBibliographies(Array.isArray(interpretation.bibliographies.bibliography) ? interpretation.bibliographies.bibliography : [interpretation.bibliographies.bibliography]) : []
|
|
1237
1238
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalculture/ochre-sdk",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.26",
|
|
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",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"zod": "^4.1.12"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@antfu/eslint-config": "^6.
|
|
47
|
-
"@types/node": "^24.
|
|
46
|
+
"@antfu/eslint-config": "^6.2.0",
|
|
47
|
+
"@types/node": "^24.10.0",
|
|
48
48
|
"bumpp": "^10.3.1",
|
|
49
|
-
"eslint": "^9.
|
|
49
|
+
"eslint": "^9.39.1",
|
|
50
50
|
"prettier": "^3.6.2",
|
|
51
|
-
"terser": "^5.44.
|
|
52
|
-
"tsdown": "^0.
|
|
51
|
+
"terser": "^5.44.1",
|
|
52
|
+
"tsdown": "^0.16.0",
|
|
53
53
|
"typescript": "^5.9.3",
|
|
54
|
-
"vitest": "^4.0.
|
|
54
|
+
"vitest": "^4.0.7"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"dev": "tsdown src/index.ts --watch",
|