@digitalculture/ochre-sdk 0.15.10 → 0.15.11
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 +2 -2
- package/dist/index.mjs +2 -20
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -660,7 +660,7 @@ type Website = {
|
|
|
660
660
|
iiifViewer: "universal-viewer" | "clover";
|
|
661
661
|
isPropertyValuesGrouped: boolean;
|
|
662
662
|
options: {
|
|
663
|
-
contexts: PropertyContexts;
|
|
663
|
+
contexts: PropertyContexts | null;
|
|
664
664
|
};
|
|
665
665
|
};
|
|
666
666
|
};
|
|
@@ -796,7 +796,7 @@ type WebElementComponent = {
|
|
|
796
796
|
type: string;
|
|
797
797
|
identification: Identification;
|
|
798
798
|
}>;
|
|
799
|
-
contexts: PropertyContexts;
|
|
799
|
+
contexts: PropertyContexts | null;
|
|
800
800
|
};
|
|
801
801
|
} | {
|
|
802
802
|
component: "empty-space";
|
package/dist/index.mjs
CHANGED
|
@@ -2070,16 +2070,7 @@ function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
2070
2070
|
type: scope.uuid.type,
|
|
2071
2071
|
identification: parseIdentification(scope.identification)
|
|
2072
2072
|
})) : [],
|
|
2073
|
-
contexts:
|
|
2074
|
-
flatten: [],
|
|
2075
|
-
filter: [],
|
|
2076
|
-
sort: [],
|
|
2077
|
-
detail: [],
|
|
2078
|
-
download: [],
|
|
2079
|
-
label: [],
|
|
2080
|
-
suppress: [],
|
|
2081
|
-
prominent: []
|
|
2082
|
-
}
|
|
2073
|
+
contexts: null
|
|
2083
2074
|
};
|
|
2084
2075
|
if ("options" in elementResource && elementResource.options) {
|
|
2085
2076
|
const flattenContextsRaw = elementResource.options.flattenContexts != null ? Array.isArray(elementResource.options.flattenContexts) ? elementResource.options.flattenContexts : [elementResource.options.flattenContexts] : [];
|
|
@@ -2912,16 +2903,7 @@ function parseWebsiteProperties(properties, websiteTree) {
|
|
|
2912
2903
|
const defaultThemeProperty = websiteProperties.find((property) => property.label === "default-theme")?.values[0];
|
|
2913
2904
|
if (defaultThemeProperty) defaultTheme = defaultThemeProperty.content;
|
|
2914
2905
|
const { type: validatedType, status: validatedStatus, privacy: validatedPrivacy } = result.data;
|
|
2915
|
-
let contexts =
|
|
2916
|
-
flatten: [],
|
|
2917
|
-
suppress: [],
|
|
2918
|
-
filter: [],
|
|
2919
|
-
sort: [],
|
|
2920
|
-
detail: [],
|
|
2921
|
-
download: [],
|
|
2922
|
-
label: [],
|
|
2923
|
-
prominent: []
|
|
2924
|
-
};
|
|
2906
|
+
let contexts = null;
|
|
2925
2907
|
if ("options" in websiteTree && websiteTree.options) {
|
|
2926
2908
|
const flattenContextsRaw = websiteTree.options.flattenContexts != null ? Array.isArray(websiteTree.options.flattenContexts) ? websiteTree.options.flattenContexts : [websiteTree.options.flattenContexts] : [];
|
|
2927
2909
|
const suppressContextsRaw = websiteTree.options.suppressContexts != null ? Array.isArray(websiteTree.options.suppressContexts) ? websiteTree.options.suppressContexts : [websiteTree.options.suppressContexts] : [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalculture/ochre-sdk",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.11",
|
|
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,7 +43,7 @@
|
|
|
43
43
|
"zod": "^4.3.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@antfu/eslint-config": "^7.0
|
|
46
|
+
"@antfu/eslint-config": "^7.1.0",
|
|
47
47
|
"@types/node": "^24.10.9",
|
|
48
48
|
"bumpp": "^10.4.0",
|
|
49
49
|
"eslint": "^9.39.2",
|