@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261024093423 → 0.8.1-dev.20261028113430
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 +12 -8
- package/dist/index.mjs +12 -8
- package/dist/server.js +12 -8
- package/dist/server.mjs +12 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8669,6 +8669,9 @@ var DatafieldNode = (props) => {
|
|
|
8669
8669
|
host: props.host,
|
|
8670
8670
|
path: props.path,
|
|
8671
8671
|
apiBaseUrl: props.apiBaseUrl,
|
|
8672
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
8673
|
+
serviceClient: props.serviceClient,
|
|
8674
|
+
device: props.device,
|
|
8672
8675
|
breadcrumb: props.breadcrumb,
|
|
8673
8676
|
donotApplyContainerClass: true,
|
|
8674
8677
|
widgetRenderer: props.widgetRenderer
|
|
@@ -9394,7 +9397,7 @@ var ImageGalleryNode = (props) => {
|
|
|
9394
9397
|
}
|
|
9395
9398
|
if (typeof fieldValue === "object" && fieldValue !== null) {
|
|
9396
9399
|
const asset = fieldValue;
|
|
9397
|
-
if (!asset.assetUrl) {
|
|
9400
|
+
if (!asset.assetUrl && !asset.posterUrl) {
|
|
9398
9401
|
return void 0;
|
|
9399
9402
|
}
|
|
9400
9403
|
return {
|
|
@@ -9408,6 +9411,10 @@ var ImageGalleryNode = (props) => {
|
|
|
9408
9411
|
}
|
|
9409
9412
|
return void 0;
|
|
9410
9413
|
}
|
|
9414
|
+
const resolvePosterUrl = (posterUrl) => {
|
|
9415
|
+
if (!posterUrl) return void 0;
|
|
9416
|
+
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
9417
|
+
};
|
|
9411
9418
|
const resolveImage = (image) => {
|
|
9412
9419
|
let imageUrl = image.imageUrl;
|
|
9413
9420
|
let posterUrl = image.posterUrl;
|
|
@@ -9423,20 +9430,17 @@ var ImageGalleryNode = (props) => {
|
|
|
9423
9430
|
intrinsicHeight = resolvedAsset.intrinsicHeight ?? intrinsicHeight;
|
|
9424
9431
|
}
|
|
9425
9432
|
}
|
|
9426
|
-
|
|
9433
|
+
const effectiveMediaUrl = imageUrl || posterUrl;
|
|
9434
|
+
if (!effectiveMediaUrl) {
|
|
9427
9435
|
return void 0;
|
|
9428
9436
|
}
|
|
9429
9437
|
return {
|
|
9430
|
-
imageUrl:
|
|
9431
|
-
posterUrl:
|
|
9438
|
+
imageUrl: effectiveMediaUrl.startsWith("http") ? effectiveMediaUrl : AssetUtility_default.resolveUrl(props.assetBaseUrl, effectiveMediaUrl),
|
|
9439
|
+
posterUrl: resolvePosterUrl(posterUrl),
|
|
9432
9440
|
intrinsicWidth,
|
|
9433
9441
|
intrinsicHeight
|
|
9434
9442
|
};
|
|
9435
9443
|
};
|
|
9436
|
-
const resolvePosterUrl = (posterUrl) => {
|
|
9437
|
-
if (!posterUrl) return void 0;
|
|
9438
|
-
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
9439
|
-
};
|
|
9440
9444
|
const rawImages = Array.isArray(props.node.images) ? props.node.images : [];
|
|
9441
9445
|
const hlsImages = rawImages.filter((img) => {
|
|
9442
9446
|
const resolved = resolveImage(img);
|
package/dist/index.mjs
CHANGED
|
@@ -945,6 +945,9 @@ var DatafieldNode = (props) => {
|
|
|
945
945
|
host: props.host,
|
|
946
946
|
path: props.path,
|
|
947
947
|
apiBaseUrl: props.apiBaseUrl,
|
|
948
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
949
|
+
serviceClient: props.serviceClient,
|
|
950
|
+
device: props.device,
|
|
948
951
|
breadcrumb: props.breadcrumb,
|
|
949
952
|
donotApplyContainerClass: true,
|
|
950
953
|
widgetRenderer: props.widgetRenderer
|
|
@@ -1662,7 +1665,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1662
1665
|
}
|
|
1663
1666
|
if (typeof fieldValue === "object" && fieldValue !== null) {
|
|
1664
1667
|
const asset = fieldValue;
|
|
1665
|
-
if (!asset.assetUrl) {
|
|
1668
|
+
if (!asset.assetUrl && !asset.posterUrl) {
|
|
1666
1669
|
return void 0;
|
|
1667
1670
|
}
|
|
1668
1671
|
return {
|
|
@@ -1676,6 +1679,10 @@ var ImageGalleryNode = (props) => {
|
|
|
1676
1679
|
}
|
|
1677
1680
|
return void 0;
|
|
1678
1681
|
}
|
|
1682
|
+
const resolvePosterUrl = (posterUrl) => {
|
|
1683
|
+
if (!posterUrl) return void 0;
|
|
1684
|
+
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
1685
|
+
};
|
|
1679
1686
|
const resolveImage = (image) => {
|
|
1680
1687
|
let imageUrl = image.imageUrl;
|
|
1681
1688
|
let posterUrl = image.posterUrl;
|
|
@@ -1691,20 +1698,17 @@ var ImageGalleryNode = (props) => {
|
|
|
1691
1698
|
intrinsicHeight = resolvedAsset.intrinsicHeight ?? intrinsicHeight;
|
|
1692
1699
|
}
|
|
1693
1700
|
}
|
|
1694
|
-
|
|
1701
|
+
const effectiveMediaUrl = imageUrl || posterUrl;
|
|
1702
|
+
if (!effectiveMediaUrl) {
|
|
1695
1703
|
return void 0;
|
|
1696
1704
|
}
|
|
1697
1705
|
return {
|
|
1698
|
-
imageUrl:
|
|
1699
|
-
posterUrl:
|
|
1706
|
+
imageUrl: effectiveMediaUrl.startsWith("http") ? effectiveMediaUrl : AssetUtility_default.resolveUrl(props.assetBaseUrl, effectiveMediaUrl),
|
|
1707
|
+
posterUrl: resolvePosterUrl(posterUrl),
|
|
1700
1708
|
intrinsicWidth,
|
|
1701
1709
|
intrinsicHeight
|
|
1702
1710
|
};
|
|
1703
1711
|
};
|
|
1704
|
-
const resolvePosterUrl = (posterUrl) => {
|
|
1705
|
-
if (!posterUrl) return void 0;
|
|
1706
|
-
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
1707
|
-
};
|
|
1708
1712
|
const rawImages = Array.isArray(props.node.images) ? props.node.images : [];
|
|
1709
1713
|
const hlsImages = rawImages.filter((img) => {
|
|
1710
1714
|
const resolved = resolveImage(img);
|
package/dist/server.js
CHANGED
|
@@ -6261,6 +6261,9 @@ var DatafieldNode = (props) => {
|
|
|
6261
6261
|
host: props.host,
|
|
6262
6262
|
path: props.path,
|
|
6263
6263
|
apiBaseUrl: props.apiBaseUrl,
|
|
6264
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
6265
|
+
serviceClient: props.serviceClient,
|
|
6266
|
+
device: props.device,
|
|
6264
6267
|
breadcrumb: props.breadcrumb,
|
|
6265
6268
|
donotApplyContainerClass: true,
|
|
6266
6269
|
widgetRenderer: props.widgetRenderer
|
|
@@ -6986,7 +6989,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6986
6989
|
}
|
|
6987
6990
|
if (typeof fieldValue === "object" && fieldValue !== null) {
|
|
6988
6991
|
const asset = fieldValue;
|
|
6989
|
-
if (!asset.assetUrl) {
|
|
6992
|
+
if (!asset.assetUrl && !asset.posterUrl) {
|
|
6990
6993
|
return void 0;
|
|
6991
6994
|
}
|
|
6992
6995
|
return {
|
|
@@ -7000,6 +7003,10 @@ var ImageGalleryNode = (props) => {
|
|
|
7000
7003
|
}
|
|
7001
7004
|
return void 0;
|
|
7002
7005
|
}
|
|
7006
|
+
const resolvePosterUrl = (posterUrl) => {
|
|
7007
|
+
if (!posterUrl) return void 0;
|
|
7008
|
+
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
7009
|
+
};
|
|
7003
7010
|
const resolveImage = (image) => {
|
|
7004
7011
|
let imageUrl = image.imageUrl;
|
|
7005
7012
|
let posterUrl = image.posterUrl;
|
|
@@ -7015,20 +7022,17 @@ var ImageGalleryNode = (props) => {
|
|
|
7015
7022
|
intrinsicHeight = resolvedAsset.intrinsicHeight ?? intrinsicHeight;
|
|
7016
7023
|
}
|
|
7017
7024
|
}
|
|
7018
|
-
|
|
7025
|
+
const effectiveMediaUrl = imageUrl || posterUrl;
|
|
7026
|
+
if (!effectiveMediaUrl) {
|
|
7019
7027
|
return void 0;
|
|
7020
7028
|
}
|
|
7021
7029
|
return {
|
|
7022
|
-
imageUrl:
|
|
7023
|
-
posterUrl:
|
|
7030
|
+
imageUrl: effectiveMediaUrl.startsWith("http") ? effectiveMediaUrl : AssetUtility_default.resolveUrl(props.assetBaseUrl, effectiveMediaUrl),
|
|
7031
|
+
posterUrl: resolvePosterUrl(posterUrl),
|
|
7024
7032
|
intrinsicWidth,
|
|
7025
7033
|
intrinsicHeight
|
|
7026
7034
|
};
|
|
7027
7035
|
};
|
|
7028
|
-
const resolvePosterUrl = (posterUrl) => {
|
|
7029
|
-
if (!posterUrl) return void 0;
|
|
7030
|
-
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
7031
|
-
};
|
|
7032
7036
|
const rawImages = Array.isArray(props.node.images) ? props.node.images : [];
|
|
7033
7037
|
const hlsImages = rawImages.filter((img) => {
|
|
7034
7038
|
const resolved = resolveImage(img);
|
package/dist/server.mjs
CHANGED
|
@@ -901,6 +901,9 @@ var DatafieldNode = (props) => {
|
|
|
901
901
|
host: props.host,
|
|
902
902
|
path: props.path,
|
|
903
903
|
apiBaseUrl: props.apiBaseUrl,
|
|
904
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
905
|
+
serviceClient: props.serviceClient,
|
|
906
|
+
device: props.device,
|
|
904
907
|
breadcrumb: props.breadcrumb,
|
|
905
908
|
donotApplyContainerClass: true,
|
|
906
909
|
widgetRenderer: props.widgetRenderer
|
|
@@ -1618,7 +1621,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1618
1621
|
}
|
|
1619
1622
|
if (typeof fieldValue === "object" && fieldValue !== null) {
|
|
1620
1623
|
const asset = fieldValue;
|
|
1621
|
-
if (!asset.assetUrl) {
|
|
1624
|
+
if (!asset.assetUrl && !asset.posterUrl) {
|
|
1622
1625
|
return void 0;
|
|
1623
1626
|
}
|
|
1624
1627
|
return {
|
|
@@ -1632,6 +1635,10 @@ var ImageGalleryNode = (props) => {
|
|
|
1632
1635
|
}
|
|
1633
1636
|
return void 0;
|
|
1634
1637
|
}
|
|
1638
|
+
const resolvePosterUrl = (posterUrl) => {
|
|
1639
|
+
if (!posterUrl) return void 0;
|
|
1640
|
+
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
1641
|
+
};
|
|
1635
1642
|
const resolveImage = (image) => {
|
|
1636
1643
|
let imageUrl = image.imageUrl;
|
|
1637
1644
|
let posterUrl = image.posterUrl;
|
|
@@ -1647,20 +1654,17 @@ var ImageGalleryNode = (props) => {
|
|
|
1647
1654
|
intrinsicHeight = resolvedAsset.intrinsicHeight ?? intrinsicHeight;
|
|
1648
1655
|
}
|
|
1649
1656
|
}
|
|
1650
|
-
|
|
1657
|
+
const effectiveMediaUrl = imageUrl || posterUrl;
|
|
1658
|
+
if (!effectiveMediaUrl) {
|
|
1651
1659
|
return void 0;
|
|
1652
1660
|
}
|
|
1653
1661
|
return {
|
|
1654
|
-
imageUrl:
|
|
1655
|
-
posterUrl:
|
|
1662
|
+
imageUrl: effectiveMediaUrl.startsWith("http") ? effectiveMediaUrl : AssetUtility_default.resolveUrl(props.assetBaseUrl, effectiveMediaUrl),
|
|
1663
|
+
posterUrl: resolvePosterUrl(posterUrl),
|
|
1656
1664
|
intrinsicWidth,
|
|
1657
1665
|
intrinsicHeight
|
|
1658
1666
|
};
|
|
1659
1667
|
};
|
|
1660
|
-
const resolvePosterUrl = (posterUrl) => {
|
|
1661
|
-
if (!posterUrl) return void 0;
|
|
1662
|
-
return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
|
|
1663
|
-
};
|
|
1664
1668
|
const rawImages = Array.isArray(props.node.images) ? props.node.images : [];
|
|
1665
1669
|
const hlsImages = rawImages.filter((img) => {
|
|
1666
1670
|
const resolved = resolveImage(img);
|