@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260402061511 → 0.8.1-dev.20260402071330

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 CHANGED
@@ -5128,11 +5128,12 @@ var parseMaybeNumber = (value) => {
5128
5128
  };
5129
5129
  var shouldRenderForDevice = (imageDevice, currentDevice) => {
5130
5130
  if (!imageDevice) return true;
5131
- const normalizedImageDevice = imageDevice.toString().toLowerCase();
5132
- const normalizedCurrentDevice = currentDevice.toString().toLowerCase();
5133
- return normalizedImageDevice === normalizedCurrentDevice;
5131
+ return imageDevice === currentDevice;
5134
5132
  };
5135
5133
  var ImageGalleryNode = (props) => {
5134
+ console.log("Gallery Component Loaded");
5135
+ console.log("Current Device:", props.device);
5136
+ console.log("Gallery Images:", props.node.images);
5136
5137
  const resolveImageUrl = (imageUrl) => {
5137
5138
  if (!imageUrl) return "";
5138
5139
  if (imageUrl.startsWith("http")) return imageUrl;
@@ -5144,19 +5145,22 @@ var ImageGalleryNode = (props) => {
5144
5145
  if (!posterUrl) return void 0;
5145
5146
  return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
5146
5147
  };
5147
- const currentDevice = props.device;
5148
5148
  const images = Array.isArray(props.node.images) ? props.node.images : [];
5149
- const visibleImages = images.filter(
5150
- (img) => shouldRenderForDevice(img.device, currentDevice)
5151
- );
5152
- if (visibleImages.length === 0) return null;
5153
5149
  const FormatClass = {
5154
5150
  center: "justify-center",
5155
5151
  left: "justify-start",
5156
5152
  right: "justify-end"
5157
5153
  };
5158
5154
  const formatClasses = FormatClass[props.node.format || ""] || "";
5159
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: `flex flex-wrap gap-4 ${formatClasses}`, children: visibleImages.map((img, idx) => {
5155
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: `flex flex-wrap gap-4 ${formatClasses}`, children: images.map((img, idx) => {
5156
+ console.log("Checking Image:", img.imageUrl);
5157
+ console.log("Image Device:", img.device);
5158
+ console.log("Page Device:", props.device);
5159
+ if (!shouldRenderForDevice(img.device, props.device)) {
5160
+ console.log("\u274C Skipping Image (device mismatch)");
5161
+ return null;
5162
+ }
5163
+ console.log("\u2705 Rendering Image");
5160
5164
  const imageUrl = resolveImageUrl(img.imageUrl);
5161
5165
  if (!imageUrl) return null;
5162
5166
  const posterUrl = resolvePosterUrl(img.posterUrl);
package/dist/index.mjs CHANGED
@@ -4160,11 +4160,12 @@ var parseMaybeNumber = (value) => {
4160
4160
  };
4161
4161
  var shouldRenderForDevice = (imageDevice, currentDevice) => {
4162
4162
  if (!imageDevice) return true;
4163
- const normalizedImageDevice = imageDevice.toString().toLowerCase();
4164
- const normalizedCurrentDevice = currentDevice.toString().toLowerCase();
4165
- return normalizedImageDevice === normalizedCurrentDevice;
4163
+ return imageDevice === currentDevice;
4166
4164
  };
4167
4165
  var ImageGalleryNode = (props) => {
4166
+ console.log("Gallery Component Loaded");
4167
+ console.log("Current Device:", props.device);
4168
+ console.log("Gallery Images:", props.node.images);
4168
4169
  const resolveImageUrl = (imageUrl) => {
4169
4170
  if (!imageUrl) return "";
4170
4171
  if (imageUrl.startsWith("http")) return imageUrl;
@@ -4176,19 +4177,22 @@ var ImageGalleryNode = (props) => {
4176
4177
  if (!posterUrl) return void 0;
4177
4178
  return AssetUtility_default.resolveUrl(props.assetBaseUrl, posterUrl);
4178
4179
  };
4179
- const currentDevice = props.device;
4180
4180
  const images = Array.isArray(props.node.images) ? props.node.images : [];
4181
- const visibleImages = images.filter(
4182
- (img) => shouldRenderForDevice(img.device, currentDevice)
4183
- );
4184
- if (visibleImages.length === 0) return null;
4185
4181
  const FormatClass = {
4186
4182
  center: "justify-center",
4187
4183
  left: "justify-start",
4188
4184
  right: "justify-end"
4189
4185
  };
4190
4186
  const formatClasses = FormatClass[props.node.format || ""] || "";
4191
- return /* @__PURE__ */ jsx58("div", { className: `flex flex-wrap gap-4 ${formatClasses}`, children: visibleImages.map((img, idx) => {
4187
+ return /* @__PURE__ */ jsx58("div", { className: `flex flex-wrap gap-4 ${formatClasses}`, children: images.map((img, idx) => {
4188
+ console.log("Checking Image:", img.imageUrl);
4189
+ console.log("Image Device:", img.device);
4190
+ console.log("Page Device:", props.device);
4191
+ if (!shouldRenderForDevice(img.device, props.device)) {
4192
+ console.log("\u274C Skipping Image (device mismatch)");
4193
+ return null;
4194
+ }
4195
+ console.log("\u2705 Rendering Image");
4192
4196
  const imageUrl = resolveImageUrl(img.imageUrl);
4193
4197
  if (!imageUrl) return null;
4194
4198
  const posterUrl = resolvePosterUrl(img.posterUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260402061511",
3
+ "version": "0.8.1-dev.20260402071330",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",