@digitalculture/ochre-sdk 0.4.8 → 0.4.9
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 +18 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +18 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1607,6 +1607,22 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1607
1607
|
if (altTextSource === null) {
|
|
1608
1608
|
altTextSource = "name";
|
|
1609
1609
|
}
|
|
1610
|
+
let isTransparentBackground = false;
|
|
1611
|
+
const isTransparentBackgroundProperty = getPropertyValueByLabel(
|
|
1612
|
+
componentProperty.properties,
|
|
1613
|
+
"is-transparent"
|
|
1614
|
+
);
|
|
1615
|
+
if (isTransparentBackgroundProperty !== null) {
|
|
1616
|
+
isTransparentBackground = isTransparentBackgroundProperty === "Yes";
|
|
1617
|
+
}
|
|
1618
|
+
let isCover = false;
|
|
1619
|
+
const isCoverProperty = getPropertyValueByLabel(
|
|
1620
|
+
componentProperty.properties,
|
|
1621
|
+
"is-cover"
|
|
1622
|
+
);
|
|
1623
|
+
if (isCoverProperty !== null) {
|
|
1624
|
+
isCover = isCoverProperty === "Yes";
|
|
1625
|
+
}
|
|
1610
1626
|
let carouselOptions = null;
|
|
1611
1627
|
if (images.length > 1) {
|
|
1612
1628
|
const variantProperty = getPropertyByLabel(
|
|
@@ -1637,6 +1653,8 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1637
1653
|
properties.captionLayout = captionLayout;
|
|
1638
1654
|
properties.captionSource = captionSource;
|
|
1639
1655
|
properties.altTextSource = altTextSource;
|
|
1656
|
+
properties.isTransparentBackground = isTransparentBackground;
|
|
1657
|
+
properties.isCover = isCover;
|
|
1640
1658
|
properties.carouselOptions = carouselOptions;
|
|
1641
1659
|
break;
|
|
1642
1660
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -518,6 +518,8 @@ type WebElementComponent = {
|
|
|
518
518
|
captionSource: "name" | "abbreviation" | "description";
|
|
519
519
|
captionLayout: "top" | "bottom" | "suppress";
|
|
520
520
|
altTextSource: "name" | "abbreviation" | "description";
|
|
521
|
+
isTransparentBackground: boolean;
|
|
522
|
+
isCover: boolean;
|
|
521
523
|
carouselOptions: {
|
|
522
524
|
secondsPerImage: number;
|
|
523
525
|
} | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -518,6 +518,8 @@ type WebElementComponent = {
|
|
|
518
518
|
captionSource: "name" | "abbreviation" | "description";
|
|
519
519
|
captionLayout: "top" | "bottom" | "suppress";
|
|
520
520
|
altTextSource: "name" | "abbreviation" | "description";
|
|
521
|
+
isTransparentBackground: boolean;
|
|
522
|
+
isCover: boolean;
|
|
521
523
|
carouselOptions: {
|
|
522
524
|
secondsPerImage: number;
|
|
523
525
|
} | null;
|
package/dist/index.js
CHANGED
|
@@ -1530,6 +1530,22 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1530
1530
|
if (altTextSource === null) {
|
|
1531
1531
|
altTextSource = "name";
|
|
1532
1532
|
}
|
|
1533
|
+
let isTransparentBackground = false;
|
|
1534
|
+
const isTransparentBackgroundProperty = getPropertyValueByLabel(
|
|
1535
|
+
componentProperty.properties,
|
|
1536
|
+
"is-transparent"
|
|
1537
|
+
);
|
|
1538
|
+
if (isTransparentBackgroundProperty !== null) {
|
|
1539
|
+
isTransparentBackground = isTransparentBackgroundProperty === "Yes";
|
|
1540
|
+
}
|
|
1541
|
+
let isCover = false;
|
|
1542
|
+
const isCoverProperty = getPropertyValueByLabel(
|
|
1543
|
+
componentProperty.properties,
|
|
1544
|
+
"is-cover"
|
|
1545
|
+
);
|
|
1546
|
+
if (isCoverProperty !== null) {
|
|
1547
|
+
isCover = isCoverProperty === "Yes";
|
|
1548
|
+
}
|
|
1533
1549
|
let carouselOptions = null;
|
|
1534
1550
|
if (images.length > 1) {
|
|
1535
1551
|
const variantProperty = getPropertyByLabel(
|
|
@@ -1560,6 +1576,8 @@ async function parseWebElementProperties(componentProperty, elementResource) {
|
|
|
1560
1576
|
properties.captionLayout = captionLayout;
|
|
1561
1577
|
properties.captionSource = captionSource;
|
|
1562
1578
|
properties.altTextSource = altTextSource;
|
|
1579
|
+
properties.isTransparentBackground = isTransparentBackground;
|
|
1580
|
+
properties.isCover = isCover;
|
|
1563
1581
|
properties.carouselOptions = carouselOptions;
|
|
1564
1582
|
break;
|
|
1565
1583
|
}
|
package/package.json
CHANGED