@digitalculture/ochre-sdk 0.5.6 → 0.5.7
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.cjs +6 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1472,6 +1472,11 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1472
1472
|
"variant"
|
|
1473
1473
|
);
|
|
1474
1474
|
variant ??= "full";
|
|
1475
|
+
let itemVariant = getPropertyValueByLabel(
|
|
1476
|
+
componentProperty.properties,
|
|
1477
|
+
"item-variant"
|
|
1478
|
+
);
|
|
1479
|
+
itemVariant ??= "default";
|
|
1475
1480
|
let layout = getPropertyValueByLabel(
|
|
1476
1481
|
componentProperty.properties,
|
|
1477
1482
|
"layout"
|
|
@@ -1484,6 +1489,7 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1484
1489
|
);
|
|
1485
1490
|
}
|
|
1486
1491
|
properties.variant = variant;
|
|
1492
|
+
properties.itemVariant = itemVariant;
|
|
1487
1493
|
properties.layout = layout;
|
|
1488
1494
|
properties.collectionId = collectionLink.uuid;
|
|
1489
1495
|
break;
|
package/dist/index.d.cts
CHANGED
|
@@ -504,6 +504,7 @@ type WebElementComponent = {
|
|
|
504
504
|
component: "collection";
|
|
505
505
|
collectionId: string;
|
|
506
506
|
variant: "full" | "highlights";
|
|
507
|
+
itemVariant: "default" | "card";
|
|
507
508
|
layout: "image-top" | "image-bottom" | "image-start" | "image-end";
|
|
508
509
|
isSearchable: boolean;
|
|
509
510
|
} | {
|
package/dist/index.d.ts
CHANGED
|
@@ -504,6 +504,7 @@ type WebElementComponent = {
|
|
|
504
504
|
component: "collection";
|
|
505
505
|
collectionId: string;
|
|
506
506
|
variant: "full" | "highlights";
|
|
507
|
+
itemVariant: "default" | "card";
|
|
507
508
|
layout: "image-top" | "image-bottom" | "image-start" | "image-end";
|
|
508
509
|
isSearchable: boolean;
|
|
509
510
|
} | {
|
package/dist/index.js
CHANGED
|
@@ -1395,6 +1395,11 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1395
1395
|
"variant"
|
|
1396
1396
|
);
|
|
1397
1397
|
variant ??= "full";
|
|
1398
|
+
let itemVariant = getPropertyValueByLabel(
|
|
1399
|
+
componentProperty.properties,
|
|
1400
|
+
"item-variant"
|
|
1401
|
+
);
|
|
1402
|
+
itemVariant ??= "default";
|
|
1398
1403
|
let layout = getPropertyValueByLabel(
|
|
1399
1404
|
componentProperty.properties,
|
|
1400
1405
|
"layout"
|
|
@@ -1407,6 +1412,7 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1407
1412
|
);
|
|
1408
1413
|
}
|
|
1409
1414
|
properties.variant = variant;
|
|
1415
|
+
properties.itemVariant = itemVariant;
|
|
1410
1416
|
properties.layout = layout;
|
|
1411
1417
|
properties.collectionId = collectionLink.uuid;
|
|
1412
1418
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalculture/ochre-sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
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,11 +49,11 @@
|
|
|
49
49
|
"@changesets/cli": "^2.28.1",
|
|
50
50
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
51
51
|
"@types/node": "^22.14.0",
|
|
52
|
-
"eslint": "^9.
|
|
52
|
+
"eslint": "^9.24.0",
|
|
53
53
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
54
54
|
"prettier": "^3.5.3",
|
|
55
55
|
"tsup": "^8.4.0",
|
|
56
|
-
"typescript": "^5.8.
|
|
56
|
+
"typescript": "^5.8.3",
|
|
57
57
|
"vitest": "^3.1.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|