@digitalculture/ochre-sdk 0.12.4 → 0.12.5
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 +5 -0
- package/dist/index.mjs +6 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -742,6 +742,11 @@ type WebElementComponent = {
|
|
|
742
742
|
startIcon: string | null;
|
|
743
743
|
endIcon: string | null;
|
|
744
744
|
}>;
|
|
745
|
+
scopes: Array<{
|
|
746
|
+
uuid: string;
|
|
747
|
+
type: string;
|
|
748
|
+
identification: Identification;
|
|
749
|
+
}>;
|
|
745
750
|
} | {
|
|
746
751
|
component: "search-bar";
|
|
747
752
|
variant: "default" | "full";
|
package/dist/index.mjs
CHANGED
|
@@ -2038,7 +2038,13 @@ function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
2038
2038
|
endIcon: endIcon !== null ? String(endIcon) : null
|
|
2039
2039
|
});
|
|
2040
2040
|
}
|
|
2041
|
+
const scopes = elementResource.options?.scopes != null ? (Array.isArray(elementResource.options.scopes.scope) ? elementResource.options.scopes.scope : [elementResource.options.scopes.scope]).map((scope) => ({
|
|
2042
|
+
uuid: scope.uuid.content,
|
|
2043
|
+
type: scope.uuid.type,
|
|
2044
|
+
identification: parseIdentification(scope.identification)
|
|
2045
|
+
})) : [];
|
|
2041
2046
|
properties.queries = queries;
|
|
2047
|
+
properties.scopes = scopes;
|
|
2042
2048
|
break;
|
|
2043
2049
|
}
|
|
2044
2050
|
case "table": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalculture/ochre-sdk",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.5",
|
|
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",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"eslint": "^9.39.1",
|
|
50
50
|
"prettier": "^3.6.2",
|
|
51
51
|
"terser": "^5.44.1",
|
|
52
|
-
"tsdown": "^0.16.
|
|
52
|
+
"tsdown": "^0.16.2",
|
|
53
53
|
"typescript": "^5.9.3",
|
|
54
54
|
"vitest": "^4.0.8"
|
|
55
55
|
},
|