@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261024093423 → 0.8.1-dev.20261026095918
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.js +9 -8
- package/dist/index.mjs +9 -8
- package/dist/server.js +9 -8
- package/dist/server.mjs +9 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9394,7 +9394,7 @@ var ImageGalleryNode = (props) => {
|
|
|
9394
9394
|
}
|
|
9395
9395
|
if (typeof fieldValue === "object" && fieldValue !== null) {
|
|
9396
9396
|
const asset = fieldValue;
|
|
9397
|
-
if (!asset.assetUrl) {
|
|
9397
|
+
if (!asset.assetUrl && !asset.posterUrl) {
|
|
9398
9398
|
return void 0;
|
|
9399
9399
|
}
|
|
9400
9400
|
return {
|
|
@@ -9408,6 +9408,10 @@ var ImageGalleryNode = (props) => {
|
|
|
9408
9408
|
}
|
|
9409
9409
|
return void 0;
|
|
9410
9410
|
}
|
|
9411
|
+
const resolvePosterUrl = (posterUrl) => {
|
|
9412
|
+
if (!posterUrl) return void 0;
|
|
9413
|
+
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
9414
|
+
};
|
|
9411
9415
|
const resolveImage = (image) => {
|
|
9412
9416
|
let imageUrl = image.imageUrl;
|
|
9413
9417
|
let posterUrl = image.posterUrl;
|
|
@@ -9423,20 +9427,17 @@ var ImageGalleryNode = (props) => {
|
|
|
9423
9427
|
intrinsicHeight = resolvedAsset.intrinsicHeight ?? intrinsicHeight;
|
|
9424
9428
|
}
|
|
9425
9429
|
}
|
|
9426
|
-
|
|
9430
|
+
const effectiveMediaUrl = imageUrl || posterUrl;
|
|
9431
|
+
if (!effectiveMediaUrl) {
|
|
9427
9432
|
return void 0;
|
|
9428
9433
|
}
|
|
9429
9434
|
return {
|
|
9430
|
-
imageUrl:
|
|
9431
|
-
posterUrl:
|
|
9435
|
+
imageUrl: effectiveMediaUrl.startsWith("http") ? effectiveMediaUrl : AssetUtility_default.resolveUrl(props.assetBaseUrl, effectiveMediaUrl),
|
|
9436
|
+
posterUrl: resolvePosterUrl(posterUrl),
|
|
9432
9437
|
intrinsicWidth,
|
|
9433
9438
|
intrinsicHeight
|
|
9434
9439
|
};
|
|
9435
9440
|
};
|
|
9436
|
-
const resolvePosterUrl = (posterUrl) => {
|
|
9437
|
-
if (!posterUrl) return void 0;
|
|
9438
|
-
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
9439
|
-
};
|
|
9440
9441
|
const rawImages = Array.isArray(props.node.images) ? props.node.images : [];
|
|
9441
9442
|
const hlsImages = rawImages.filter((img) => {
|
|
9442
9443
|
const resolved = resolveImage(img);
|
package/dist/index.mjs
CHANGED
|
@@ -1662,7 +1662,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
if (typeof fieldValue === "object" && fieldValue !== null) {
|
|
1664
1664
|
const asset = fieldValue;
|
|
1665
|
-
if (!asset.assetUrl) {
|
|
1665
|
+
if (!asset.assetUrl && !asset.posterUrl) {
|
|
1666
1666
|
return void 0;
|
|
1667
1667
|
}
|
|
1668
1668
|
return {
|
|
@@ -1676,6 +1676,10 @@ var ImageGalleryNode = (props) => {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
return void 0;
|
|
1678
1678
|
}
|
|
1679
|
+
const resolvePosterUrl = (posterUrl) => {
|
|
1680
|
+
if (!posterUrl) return void 0;
|
|
1681
|
+
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
1682
|
+
};
|
|
1679
1683
|
const resolveImage = (image) => {
|
|
1680
1684
|
let imageUrl = image.imageUrl;
|
|
1681
1685
|
let posterUrl = image.posterUrl;
|
|
@@ -1691,20 +1695,17 @@ var ImageGalleryNode = (props) => {
|
|
|
1691
1695
|
intrinsicHeight = resolvedAsset.intrinsicHeight ?? intrinsicHeight;
|
|
1692
1696
|
}
|
|
1693
1697
|
}
|
|
1694
|
-
|
|
1698
|
+
const effectiveMediaUrl = imageUrl || posterUrl;
|
|
1699
|
+
if (!effectiveMediaUrl) {
|
|
1695
1700
|
return void 0;
|
|
1696
1701
|
}
|
|
1697
1702
|
return {
|
|
1698
|
-
imageUrl:
|
|
1699
|
-
posterUrl:
|
|
1703
|
+
imageUrl: effectiveMediaUrl.startsWith("http") ? effectiveMediaUrl : AssetUtility_default.resolveUrl(props.assetBaseUrl, effectiveMediaUrl),
|
|
1704
|
+
posterUrl: resolvePosterUrl(posterUrl),
|
|
1700
1705
|
intrinsicWidth,
|
|
1701
1706
|
intrinsicHeight
|
|
1702
1707
|
};
|
|
1703
1708
|
};
|
|
1704
|
-
const resolvePosterUrl = (posterUrl) => {
|
|
1705
|
-
if (!posterUrl) return void 0;
|
|
1706
|
-
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
1707
|
-
};
|
|
1708
1709
|
const rawImages = Array.isArray(props.node.images) ? props.node.images : [];
|
|
1709
1710
|
const hlsImages = rawImages.filter((img) => {
|
|
1710
1711
|
const resolved = resolveImage(img);
|
package/dist/server.js
CHANGED
|
@@ -6986,7 +6986,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6986
6986
|
}
|
|
6987
6987
|
if (typeof fieldValue === "object" && fieldValue !== null) {
|
|
6988
6988
|
const asset = fieldValue;
|
|
6989
|
-
if (!asset.assetUrl) {
|
|
6989
|
+
if (!asset.assetUrl && !asset.posterUrl) {
|
|
6990
6990
|
return void 0;
|
|
6991
6991
|
}
|
|
6992
6992
|
return {
|
|
@@ -7000,6 +7000,10 @@ var ImageGalleryNode = (props) => {
|
|
|
7000
7000
|
}
|
|
7001
7001
|
return void 0;
|
|
7002
7002
|
}
|
|
7003
|
+
const resolvePosterUrl = (posterUrl) => {
|
|
7004
|
+
if (!posterUrl) return void 0;
|
|
7005
|
+
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
7006
|
+
};
|
|
7003
7007
|
const resolveImage = (image) => {
|
|
7004
7008
|
let imageUrl = image.imageUrl;
|
|
7005
7009
|
let posterUrl = image.posterUrl;
|
|
@@ -7015,20 +7019,17 @@ var ImageGalleryNode = (props) => {
|
|
|
7015
7019
|
intrinsicHeight = resolvedAsset.intrinsicHeight ?? intrinsicHeight;
|
|
7016
7020
|
}
|
|
7017
7021
|
}
|
|
7018
|
-
|
|
7022
|
+
const effectiveMediaUrl = imageUrl || posterUrl;
|
|
7023
|
+
if (!effectiveMediaUrl) {
|
|
7019
7024
|
return void 0;
|
|
7020
7025
|
}
|
|
7021
7026
|
return {
|
|
7022
|
-
imageUrl:
|
|
7023
|
-
posterUrl:
|
|
7027
|
+
imageUrl: effectiveMediaUrl.startsWith("http") ? effectiveMediaUrl : AssetUtility_default.resolveUrl(props.assetBaseUrl, effectiveMediaUrl),
|
|
7028
|
+
posterUrl: resolvePosterUrl(posterUrl),
|
|
7024
7029
|
intrinsicWidth,
|
|
7025
7030
|
intrinsicHeight
|
|
7026
7031
|
};
|
|
7027
7032
|
};
|
|
7028
|
-
const resolvePosterUrl = (posterUrl) => {
|
|
7029
|
-
if (!posterUrl) return void 0;
|
|
7030
|
-
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
7031
|
-
};
|
|
7032
7033
|
const rawImages = Array.isArray(props.node.images) ? props.node.images : [];
|
|
7033
7034
|
const hlsImages = rawImages.filter((img) => {
|
|
7034
7035
|
const resolved = resolveImage(img);
|
package/dist/server.mjs
CHANGED
|
@@ -1618,7 +1618,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
if (typeof fieldValue === "object" && fieldValue !== null) {
|
|
1620
1620
|
const asset = fieldValue;
|
|
1621
|
-
if (!asset.assetUrl) {
|
|
1621
|
+
if (!asset.assetUrl && !asset.posterUrl) {
|
|
1622
1622
|
return void 0;
|
|
1623
1623
|
}
|
|
1624
1624
|
return {
|
|
@@ -1632,6 +1632,10 @@ var ImageGalleryNode = (props) => {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
return void 0;
|
|
1634
1634
|
}
|
|
1635
|
+
const resolvePosterUrl = (posterUrl) => {
|
|
1636
|
+
if (!posterUrl) return void 0;
|
|
1637
|
+
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
1638
|
+
};
|
|
1635
1639
|
const resolveImage = (image) => {
|
|
1636
1640
|
let imageUrl = image.imageUrl;
|
|
1637
1641
|
let posterUrl = image.posterUrl;
|
|
@@ -1647,20 +1651,17 @@ var ImageGalleryNode = (props) => {
|
|
|
1647
1651
|
intrinsicHeight = resolvedAsset.intrinsicHeight ?? intrinsicHeight;
|
|
1648
1652
|
}
|
|
1649
1653
|
}
|
|
1650
|
-
|
|
1654
|
+
const effectiveMediaUrl = imageUrl || posterUrl;
|
|
1655
|
+
if (!effectiveMediaUrl) {
|
|
1651
1656
|
return void 0;
|
|
1652
1657
|
}
|
|
1653
1658
|
return {
|
|
1654
|
-
imageUrl:
|
|
1655
|
-
posterUrl:
|
|
1659
|
+
imageUrl: effectiveMediaUrl.startsWith("http") ? effectiveMediaUrl : AssetUtility_default.resolveUrl(props.assetBaseUrl, effectiveMediaUrl),
|
|
1660
|
+
posterUrl: resolvePosterUrl(posterUrl),
|
|
1656
1661
|
intrinsicWidth,
|
|
1657
1662
|
intrinsicHeight
|
|
1658
1663
|
};
|
|
1659
1664
|
};
|
|
1660
|
-
const resolvePosterUrl = (posterUrl) => {
|
|
1661
|
-
if (!posterUrl) return void 0;
|
|
1662
|
-
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
1663
|
-
};
|
|
1664
1665
|
const rawImages = Array.isArray(props.node.images) ? props.node.images : [];
|
|
1665
1666
|
const hlsImages = rawImages.filter((img) => {
|
|
1666
1667
|
const resolved = resolveImage(img);
|