@digitalculture/ochre-sdk 0.2.0 → 0.2.1
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 +11 -4
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +11 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1355,13 +1355,10 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1355
1355
|
`Image link not found for the following component: \u201C${componentName}\u201D`
|
|
1356
1356
|
);
|
|
1357
1357
|
}
|
|
1358
|
-
|
|
1358
|
+
const isSearchable = getPropertyValueByLabel(
|
|
1359
1359
|
componentProperty.properties,
|
|
1360
1360
|
"is-searchable"
|
|
1361
1361
|
) === "Yes";
|
|
1362
|
-
if (!isSearchable) {
|
|
1363
|
-
isSearchable = false;
|
|
1364
|
-
}
|
|
1365
1362
|
properties.imageUuid = imageLink.uuid;
|
|
1366
1363
|
properties.isSearchable = isSearchable;
|
|
1367
1364
|
break;
|
|
@@ -1513,7 +1510,12 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1513
1510
|
`Image gallery link not found for the following component: \u201C${componentName}\u201D`
|
|
1514
1511
|
);
|
|
1515
1512
|
}
|
|
1513
|
+
const isSearchable = getPropertyValueByLabel(
|
|
1514
|
+
componentProperty.properties,
|
|
1515
|
+
"is-searchable"
|
|
1516
|
+
) === "Yes";
|
|
1516
1517
|
properties.galleryId = galleryLink.uuid;
|
|
1518
|
+
properties.isSearchable = isSearchable;
|
|
1517
1519
|
break;
|
|
1518
1520
|
}
|
|
1519
1521
|
case "item-gallery": {
|
|
@@ -1523,7 +1525,12 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1523
1525
|
`Item gallery link not found for the following component: \u201C${componentName}\u201D`
|
|
1524
1526
|
);
|
|
1525
1527
|
}
|
|
1528
|
+
const isSearchable = getPropertyValueByLabel(
|
|
1529
|
+
componentProperty.properties,
|
|
1530
|
+
"is-searchable"
|
|
1531
|
+
) === "Yes";
|
|
1526
1532
|
properties.galleryId = galleryLink.uuid;
|
|
1533
|
+
properties.isSearchable = isSearchable;
|
|
1527
1534
|
break;
|
|
1528
1535
|
}
|
|
1529
1536
|
case "n-columns": {
|
package/dist/index.d.cts
CHANGED
|
@@ -478,9 +478,10 @@ type WebElementComponent = {
|
|
|
478
478
|
label: string;
|
|
479
479
|
} | {
|
|
480
480
|
component: "collection";
|
|
481
|
+
collectionId: string;
|
|
481
482
|
variant: "full" | "highlights";
|
|
482
483
|
layout: "image-top" | "image-bottom" | "image-start" | "image-end";
|
|
483
|
-
|
|
484
|
+
isSearchable: boolean;
|
|
484
485
|
} | {
|
|
485
486
|
component: "iiif-viewer";
|
|
486
487
|
IIIFId: string;
|
|
@@ -495,9 +496,11 @@ type WebElementComponent = {
|
|
|
495
496
|
} | {
|
|
496
497
|
component: "image-gallery";
|
|
497
498
|
galleryId: string;
|
|
499
|
+
isSearchable: boolean;
|
|
498
500
|
} | {
|
|
499
501
|
component: "item-gallery";
|
|
500
502
|
galleryId: string;
|
|
503
|
+
isSearchable: boolean;
|
|
501
504
|
} | {
|
|
502
505
|
component: "n-columns";
|
|
503
506
|
columns: Array<WebElement>;
|
package/dist/index.d.ts
CHANGED
|
@@ -478,9 +478,10 @@ type WebElementComponent = {
|
|
|
478
478
|
label: string;
|
|
479
479
|
} | {
|
|
480
480
|
component: "collection";
|
|
481
|
+
collectionId: string;
|
|
481
482
|
variant: "full" | "highlights";
|
|
482
483
|
layout: "image-top" | "image-bottom" | "image-start" | "image-end";
|
|
483
|
-
|
|
484
|
+
isSearchable: boolean;
|
|
484
485
|
} | {
|
|
485
486
|
component: "iiif-viewer";
|
|
486
487
|
IIIFId: string;
|
|
@@ -495,9 +496,11 @@ type WebElementComponent = {
|
|
|
495
496
|
} | {
|
|
496
497
|
component: "image-gallery";
|
|
497
498
|
galleryId: string;
|
|
499
|
+
isSearchable: boolean;
|
|
498
500
|
} | {
|
|
499
501
|
component: "item-gallery";
|
|
500
502
|
galleryId: string;
|
|
503
|
+
isSearchable: boolean;
|
|
501
504
|
} | {
|
|
502
505
|
component: "n-columns";
|
|
503
506
|
columns: Array<WebElement>;
|
package/dist/index.js
CHANGED
|
@@ -1278,13 +1278,10 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1278
1278
|
`Image link not found for the following component: \u201C${componentName}\u201D`
|
|
1279
1279
|
);
|
|
1280
1280
|
}
|
|
1281
|
-
|
|
1281
|
+
const isSearchable = getPropertyValueByLabel(
|
|
1282
1282
|
componentProperty.properties,
|
|
1283
1283
|
"is-searchable"
|
|
1284
1284
|
) === "Yes";
|
|
1285
|
-
if (!isSearchable) {
|
|
1286
|
-
isSearchable = false;
|
|
1287
|
-
}
|
|
1288
1285
|
properties.imageUuid = imageLink.uuid;
|
|
1289
1286
|
properties.isSearchable = isSearchable;
|
|
1290
1287
|
break;
|
|
@@ -1436,7 +1433,12 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1436
1433
|
`Image gallery link not found for the following component: \u201C${componentName}\u201D`
|
|
1437
1434
|
);
|
|
1438
1435
|
}
|
|
1436
|
+
const isSearchable = getPropertyValueByLabel(
|
|
1437
|
+
componentProperty.properties,
|
|
1438
|
+
"is-searchable"
|
|
1439
|
+
) === "Yes";
|
|
1439
1440
|
properties.galleryId = galleryLink.uuid;
|
|
1441
|
+
properties.isSearchable = isSearchable;
|
|
1440
1442
|
break;
|
|
1441
1443
|
}
|
|
1442
1444
|
case "item-gallery": {
|
|
@@ -1446,7 +1448,12 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1446
1448
|
`Item gallery link not found for the following component: \u201C${componentName}\u201D`
|
|
1447
1449
|
);
|
|
1448
1450
|
}
|
|
1451
|
+
const isSearchable = getPropertyValueByLabel(
|
|
1452
|
+
componentProperty.properties,
|
|
1453
|
+
"is-searchable"
|
|
1454
|
+
) === "Yes";
|
|
1449
1455
|
properties.galleryId = galleryLink.uuid;
|
|
1456
|
+
properties.isSearchable = isSearchable;
|
|
1450
1457
|
break;
|
|
1451
1458
|
}
|
|
1452
1459
|
case "n-columns": {
|
package/package.json
CHANGED