@wix/editor-react-components 1.2273.0 → 1.2275.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../chunks/clsx.js";
|
|
3
3
|
import { a as getDataAttributes, n as normalizeWixUri } from "../chunks/dataUtils.js";
|
|
4
4
|
import { e as getTabIndexAttribute } from "../chunks/a11y.js";
|
|
@@ -177,18 +177,17 @@ const Image3 = (props) => {
|
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
179
|
const originalAspectRatio = (((_a = image2.crop) == null ? void 0 : _a.width) || image2.width || 0) / (((_b = image2.crop) == null ? void 0 : _b.height) || image2.height || 1);
|
|
180
|
-
|
|
181
|
-
return /* @__PURE__ */ jsxs(
|
|
180
|
+
return /* @__PURE__ */ jsx(
|
|
182
181
|
"div",
|
|
183
182
|
{
|
|
184
183
|
id,
|
|
185
184
|
...dataAttributes,
|
|
186
185
|
...getTabIndexAttribute(a11y),
|
|
187
186
|
className: clsx(style.root, className, "image"),
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
187
|
+
style: {
|
|
188
|
+
"--original-aspect-ratio": originalAspectRatio
|
|
189
|
+
},
|
|
190
|
+
children: link ? /* @__PURE__ */ jsx(Link, { className: style.linkLayer, ...link, children: InnerLayout }) : InnerLayout
|
|
192
191
|
}
|
|
193
192
|
);
|
|
194
193
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2275.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -199,5 +199,5 @@
|
|
|
199
199
|
"registry": "https://registry.npmjs.org/",
|
|
200
200
|
"access": "public"
|
|
201
201
|
},
|
|
202
|
-
"falconPackageHash": "
|
|
202
|
+
"falconPackageHash": "8deacf7c501cf63a5177cec4b698ac378f72daa59ce4aa5e934ea4f0"
|
|
203
203
|
}
|