@wix/editor-react-components 1.2742.0 → 1.2743.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.
@@ -25,6 +25,6 @@ export type Image3Props = {
25
25
  x?: number;
26
26
  y?: number;
27
27
  };
28
- };
28
+ } | null;
29
29
  sources?: Array<ImageSource>;
30
30
  };
@@ -98,6 +98,14 @@ const style = {
98
98
  wowImage,
99
99
  linkLayer
100
100
  };
101
+ const EMPTY_IMAGE = {
102
+ uri: "",
103
+ name: "",
104
+ width: 1,
105
+ height: 1,
106
+ alt: "",
107
+ animated: false
108
+ };
101
109
  if (typeof window !== "undefined") {
102
110
  if (document.readyState === "loading") {
103
111
  document.addEventListener(
@@ -121,16 +129,9 @@ const Image3 = (props) => {
121
129
  link,
122
130
  priority,
123
131
  displayMode = "fill",
124
- image: image2 = {
125
- uri: "",
126
- name: "",
127
- width: 1,
128
- height: 1,
129
- alt: "",
130
- animated: false
131
- },
132
132
  sources = []
133
133
  } = props;
134
+ const image2 = props.image ?? EMPTY_IMAGE;
134
135
  const dataAttributes = getDataAttributes(props);
135
136
  const role = (a11y == null ? void 0 : a11y.role) ?? (image2.alt === void 0 ? "presentation" : void 0);
136
137
  const imageNGProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2742.0",
3
+ "version": "1.2743.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -128,7 +128,7 @@
128
128
  "@wix/services-manager": "0.2.8",
129
129
  "@wix/site-service-business-logger": "^1.0.2",
130
130
  "@wix/site-service-configuration": "^1.0.6",
131
- "@wix/site-service-editor-context": "^1.0.5",
131
+ "@wix/site-service-editor-context": "^1.0.7",
132
132
  "@wix/site-service-experiments": "^1.0.8",
133
133
  "@wix/site-service-rendering-context": "^1.0.1",
134
134
  "@wix/site-ui": "^1.0.0",
@@ -212,5 +212,5 @@
212
212
  "registry": "https://registry.npmjs.org/",
213
213
  "access": "public"
214
214
  },
215
- "falconPackageHash": "cf63ecbcac8267d5d37d5acd25ae9627dd193e6ed1dc3cfea3753c4a"
215
+ "falconPackageHash": "4f3c17b81dea886130892726292456bad773acfa57f1224107598f8e"
216
216
  }