@wix/editor-react-components 1.2377.0 → 1.2378.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.
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { c as clsx } from "../chunks/clsx.js";
3
3
  import { f as formatClassNames } from "../chunks/classNames.js";
4
4
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
5
- import { f as convertA11yKeysToHtmlFormat, e as getTabIndexAttribute } from "../chunks/a11y.js";
5
+ import { e as getTabIndexAttribute, f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
6
6
  import { d as directionStyles } from "../chunks/direction.module.js";
7
7
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
8
8
  import { E as EnvironmentDefinition } from "../chunks/index2.js";
@@ -32,8 +32,16 @@ const Line = (props) => {
32
32
  );
33
33
  const environmentDirection = getLanguageDirection();
34
34
  const presetsWrapperProps = (wix == null ? void 0 : wix.presetsWrapperProps) || {};
35
- const { tabIndex, ...a11yWithoutTabIndex } = a11y || {};
36
- const a11yAttributes = convertA11yKeysToHtmlFormat(a11yWithoutTabIndex);
35
+ const { tabIndex, ariaLabel, ...restA11y } = a11y || {};
36
+ const accessibleName = ariaLabel == null ? void 0 : ariaLabel.trim();
37
+ const a11yAttributes = {
38
+ ...convertA11yKeysToHtmlFormat(restA11y),
39
+ ...getTabIndexAttribute(a11y),
40
+ ...accessibleName && {
41
+ role: "img",
42
+ "aria-label": accessibleName
43
+ }
44
+ };
37
45
  return /* @__PURE__ */ jsx("div", { className: presetWrapperStyles.presetWrapper, ...presetsWrapperProps, children: /* @__PURE__ */ jsx(
38
46
  "div",
39
47
  {
@@ -47,7 +55,6 @@ const Line = (props) => {
47
55
  "line-wrapper"
48
56
  ),
49
57
  ...getDataAttributes(props),
50
- ...getTabIndexAttribute(a11y),
51
58
  ...a11yAttributes,
52
59
  onMouseEnter,
53
60
  onMouseLeave,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2377.0",
3
+ "version": "1.2378.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -68,7 +68,7 @@
68
68
  "test:a11y": "a11y-audit-tool-plugin audit"
69
69
  },
70
70
  "peerDependencies": {
71
- "@wix/editor-react-types": "^1.0.70",
71
+ "@wix/editor-react-types": "^1.0.73",
72
72
  "react": "^18.2.0",
73
73
  "react-dom": "^18.2.0"
74
74
  },
@@ -81,7 +81,7 @@
81
81
  "@wix/design-system-illustrations": "^2.19.0",
82
82
  "@wix/sdk": "^1.21.13",
83
83
  "@wix/services-manager-react": "^0.1.27",
84
- "@wix/site-ui": "1.166.0",
84
+ "@wix/site-ui": "1.167.0",
85
85
  "@wix/video": "^1.85.0",
86
86
  "@wix/viewer-service-consent-policy": "^1.0.100",
87
87
  "@wix/web-bi-logger": "^2.1.26",
@@ -122,7 +122,7 @@
122
122
  "@wix/editor": "^1.586.0",
123
123
  "@wix/editor-elements-scripts": "^1.0.0",
124
124
  "@wix/editor-elements-test-utils": "^1.0.0",
125
- "@wix/editor-react-types": "^1.0.70",
125
+ "@wix/editor-react-types": "^1.0.73",
126
126
  "@wix/essentials": "^0.1.28",
127
127
  "@wix/fed-cli-sled": "^1.0.28",
128
128
  "@wix/image": "^1.437.0",
@@ -195,5 +195,5 @@
195
195
  "registry": "https://registry.npmjs.org/",
196
196
  "access": "public"
197
197
  },
198
- "falconPackageHash": "c11ea87c3f38532848e0861fec3c3406ad36d9499df4463c484e16f0"
198
+ "falconPackageHash": "0d9aa474405074f6f6ef960eecdd29892f34d35b6a44703cc3707505"
199
199
  }