@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260328113051 → 0.8.1-dev.20260328114717
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 +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5132,6 +5132,7 @@ var shouldRenderForDevice = (imageDevice, currentDevice) => {
|
|
|
5132
5132
|
var ImageGalleryNode = (props) => {
|
|
5133
5133
|
const resolveImageUrl = (imageUrl) => {
|
|
5134
5134
|
if (!imageUrl) return "";
|
|
5135
|
+
if (imageUrl.startsWith("http")) return imageUrl;
|
|
5135
5136
|
const base = props.assetBaseUrl.replace(/\/$/, "");
|
|
5136
5137
|
const path = imageUrl.replace(/^\//, "");
|
|
5137
5138
|
return `${base}/${path}`;
|
|
@@ -5160,6 +5161,11 @@ var ImageGalleryNode = (props) => {
|
|
|
5160
5161
|
const intrinsicHeight = parseMaybeNumber(img.intrinsicHeight);
|
|
5161
5162
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
5162
5163
|
const alt = img.title || "Gallery image";
|
|
5164
|
+
const styles = {};
|
|
5165
|
+
if (img.height) styles.height = img.height;
|
|
5166
|
+
if (img.borderRadius)
|
|
5167
|
+
styles.borderRadius = img.borderRadius;
|
|
5168
|
+
if (img.width) styles.width = img.width;
|
|
5163
5169
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "max-w-full", children: isHls ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5164
5170
|
HlsPlayer1,
|
|
5165
5171
|
{
|
|
@@ -5179,8 +5185,9 @@ var ImageGalleryNode = (props) => {
|
|
|
5179
5185
|
"img",
|
|
5180
5186
|
{
|
|
5181
5187
|
loading: "lazy",
|
|
5188
|
+
style: styles,
|
|
5182
5189
|
className: "object-cover max-w-full",
|
|
5183
|
-
src:
|
|
5190
|
+
src: imageUrl,
|
|
5184
5191
|
width: intrinsicWidth,
|
|
5185
5192
|
height: intrinsicHeight,
|
|
5186
5193
|
alt
|
package/dist/index.mjs
CHANGED
|
@@ -4164,6 +4164,7 @@ var shouldRenderForDevice = (imageDevice, currentDevice) => {
|
|
|
4164
4164
|
var ImageGalleryNode = (props) => {
|
|
4165
4165
|
const resolveImageUrl = (imageUrl) => {
|
|
4166
4166
|
if (!imageUrl) return "";
|
|
4167
|
+
if (imageUrl.startsWith("http")) return imageUrl;
|
|
4167
4168
|
const base = props.assetBaseUrl.replace(/\/$/, "");
|
|
4168
4169
|
const path = imageUrl.replace(/^\//, "");
|
|
4169
4170
|
return `${base}/${path}`;
|
|
@@ -4192,6 +4193,11 @@ var ImageGalleryNode = (props) => {
|
|
|
4192
4193
|
const intrinsicHeight = parseMaybeNumber(img.intrinsicHeight);
|
|
4193
4194
|
const isHls = imageUrl.endsWith(".m3u8");
|
|
4194
4195
|
const alt = img.title || "Gallery image";
|
|
4196
|
+
const styles = {};
|
|
4197
|
+
if (img.height) styles.height = img.height;
|
|
4198
|
+
if (img.borderRadius)
|
|
4199
|
+
styles.borderRadius = img.borderRadius;
|
|
4200
|
+
if (img.width) styles.width = img.width;
|
|
4195
4201
|
return /* @__PURE__ */ jsx58("div", { className: "max-w-full", children: isHls ? /* @__PURE__ */ jsx58(
|
|
4196
4202
|
HlsPlayer1,
|
|
4197
4203
|
{
|
|
@@ -4211,8 +4217,9 @@ var ImageGalleryNode = (props) => {
|
|
|
4211
4217
|
"img",
|
|
4212
4218
|
{
|
|
4213
4219
|
loading: "lazy",
|
|
4220
|
+
style: styles,
|
|
4214
4221
|
className: "object-cover max-w-full",
|
|
4215
|
-
src:
|
|
4222
|
+
src: imageUrl,
|
|
4216
4223
|
width: intrinsicWidth,
|
|
4217
4224
|
height: intrinsicHeight,
|
|
4218
4225
|
alt
|
package/package.json
CHANGED