@wix/form-public 0.496.0 → 0.497.0

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
@@ -56117,12 +56117,13 @@ var OptionImage = ({ className, ...internal }) => {
56117
56117
  const { option: option2 } = internal;
56118
56118
  const { choiceImageResize, choiceImageAlignment } = useFieldPropsV2();
56119
56119
  const image = option2.media?.image;
56120
- if (!image) {
56121
- return null;
56122
- }
56123
- const imageURL = getImageURL(image, image.width, image.height);
56124
- if (!imageURL) {
56125
- return null;
56120
+ const imageURL = image && getImageURL(image, image.width, image.height);
56121
+ if (!image || !imageURL) {
56122
+ return /* @__PURE__ */ React172.createElement("div", {
56123
+ className,
56124
+ "data-placeholder": true,
56125
+ "data-hook": "image-choice-option-image"
56126
+ });
56126
56127
  }
56127
56128
  const imageAlt = option2.media?.altText || option2.altText || image.altText || "";
56128
56129
  return /* @__PURE__ */ React172.createElement("img", {