@amplifyup/sdk 0.1.66 → 0.1.67
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/AmplifyRenderer.js.map +1 -1
- package/dist/AmplifyRenderer.mjs.map +1 -1
- package/dist/react.js +21 -25
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +21 -25
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -5253,25 +5253,8 @@ function Image(props) {
|
|
|
5253
5253
|
'[AmplifyUp SDK] Image value={\u2026} requires name="\u2026" for computed values'
|
|
5254
5254
|
);
|
|
5255
5255
|
}
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
{
|
|
5259
|
-
...imgProps,
|
|
5260
|
-
src,
|
|
5261
|
-
alt,
|
|
5262
|
-
className: fieldAttrs ? void 0 : className,
|
|
5263
|
-
width,
|
|
5264
|
-
height,
|
|
5265
|
-
style: fieldAttrs ? {
|
|
5266
|
-
display: "block",
|
|
5267
|
-
width: "100%",
|
|
5268
|
-
height: "100%",
|
|
5269
|
-
objectFit: "cover",
|
|
5270
|
-
pointerEvents: "none"
|
|
5271
|
-
} : typeof imgProps.style === "object" && imgProps.style ? imgProps.style : void 0
|
|
5272
|
-
}
|
|
5273
|
-
) : null;
|
|
5274
|
-
if (fieldAttrs) {
|
|
5256
|
+
if (!src) {
|
|
5257
|
+
if (!composerEdit || !fieldAttrs) return null;
|
|
5275
5258
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5276
5259
|
"span",
|
|
5277
5260
|
{
|
|
@@ -5286,15 +5269,28 @@ function Image(props) {
|
|
|
5286
5269
|
minHeight: height ? void 0 : 80,
|
|
5287
5270
|
width: width || "100%",
|
|
5288
5271
|
height: height || void 0,
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
}
|
|
5292
|
-
children: img
|
|
5272
|
+
background: "color-mix(in srgb, currentColor 8%, transparent)",
|
|
5273
|
+
cursor: "pointer"
|
|
5274
|
+
}
|
|
5293
5275
|
}
|
|
5294
5276
|
);
|
|
5295
5277
|
}
|
|
5296
|
-
|
|
5297
|
-
|
|
5278
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5279
|
+
"img",
|
|
5280
|
+
{
|
|
5281
|
+
...imgProps,
|
|
5282
|
+
...fieldAttrs,
|
|
5283
|
+
src,
|
|
5284
|
+
alt,
|
|
5285
|
+
className,
|
|
5286
|
+
width,
|
|
5287
|
+
height,
|
|
5288
|
+
style: {
|
|
5289
|
+
...typeof imgProps.style === "object" && imgProps.style ? imgProps.style : {},
|
|
5290
|
+
...composerEdit && fieldAttrs ? { cursor: "pointer" } : null
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
5293
|
+
);
|
|
5298
5294
|
}
|
|
5299
5295
|
var usePathname = null;
|
|
5300
5296
|
if (typeof window !== "undefined") {
|