@wix/editor-react-components 1.2728.0 → 1.2730.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.
@@ -226,7 +226,6 @@ const manifest = {
226
226
  dataType: DATA.DATA_TYPE.a11y,
227
227
  [DATA.DATA_TYPE.a11y]: {
228
228
  attributes: [
229
- DATA.A11Y_ATTRIBUTES.tabIndex,
230
229
  DATA.A11Y_ATTRIBUTES.ariaLabel,
231
230
  DATA.A11Y_ATTRIBUTES.ariaLabelledby,
232
231
  DATA.A11Y_ATTRIBUTES.ariaLive,
@@ -4,7 +4,7 @@ import React__default, { forwardRef, useState, useCallback, useContext, useEffec
4
4
  import { c as clsx } from "../chunks/clsx.js";
5
5
  import { f as formatClassNames } from "../chunks/classNames.js";
6
6
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
7
- import { e as getTabIndexAttribute, f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
7
+ import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
8
8
  import { createPortal } from "react-dom";
9
9
  import { G as GOOGLE_MAPS_DIRECTIONS_BASE_URL, M as MIN_ZOOM, a as MAX_ZOOM, T as TestIds, I as INFO_WINDOW_PIXEL_OFFSET, D as DEFAULT_ZOOM, b as MAP_IDS, c as MAP_TYPES, d as MAP_MOBILE_CONTROL_SIZE, A as API_KEY, e as DEFAULT_LOCATION, f as DefaultTranslations, g as TranslationKeys, h as TRANSLATIONS_NAMESPACES, C as COMPANY_NAME_DEFAULT, i as COMPANY_NAME_KEY, j as COMPONENT_NAME_DEFAULT, k as COMPONENT_NAME_KEY } from "../chunks/consts.js";
10
10
  import { p as parse } from "../chunks/index4.js";
@@ -33,10 +33,9 @@ const GoogleMapReact = forwardRef((props, forwardedRef) => {
33
33
  } = props;
34
34
  const [isMapReady, setIsMapReady] = useState(false);
35
35
  const handleMapTilesLoaded = useCallback(() => setIsMapReady(true), []);
36
- const { tabIndex, ariaLabel, ...restA11y } = a11y || {};
36
+ const { ariaLabel, ...restA11y } = a11y || {};
37
37
  const a11yAttributes = {
38
38
  ...convertA11yKeysToHtmlFormat(restA11y),
39
- ...getTabIndexAttribute(a11y),
40
39
  "aria-label": ariaLabel || translations.title
41
40
  };
42
41
  const domSafeProps = {
@@ -179,10 +179,7 @@ const manifest = {
179
179
  a11y: {
180
180
  dataType: DATA.DATA_TYPE.a11y,
181
181
  [DATA.DATA_TYPE.a11y]: {
182
- attributes: [
183
- DATA.A11Y_ATTRIBUTES.tabIndex,
184
- DATA.A11Y_ATTRIBUTES.ariaLabel
185
- ]
182
+ attributes: [DATA.A11Y_ATTRIBUTES.ariaLabel]
186
183
  }
187
184
  },
188
185
  ...manifestMouseHover()
@@ -24,7 +24,6 @@ export type IElementPropsSDKActions = {
24
24
  };
25
25
  export type A11yInteractions = {
26
26
  a11y?: {
27
- tabIndex?: number;
28
27
  ariaLabel?: string;
29
28
  };
30
29
  };
@@ -4,7 +4,6 @@ import * as React from "react";
4
4
  import React__default, { useRef, useCallback, useEffect, useMemo } from "react";
5
5
  import { u as useConsentPolicyProps, C as ConsentPolicyWrapper } from "../chunks/useConsentPolicyProps.js";
6
6
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
7
- import { e as getTabIndexAttribute } from "../chunks/a11y.js";
8
7
  import { useService } from "@wix/services-manager-react";
9
8
  import { d as defineStaticService } from "../chunks/staticService.js";
10
9
  import { E as EnvironmentDefinition } from "../chunks/index2.js";
@@ -136,8 +135,7 @@ const HTMLComponent$1 = React.forwardRef((props, forwardRef) => {
136
135
  const baseComponentProps = isConsentPolicyActive ? {} : {
137
136
  id,
138
137
  className: clsx(styles.root, className),
139
- ...getDataAttributes(props),
140
- ...getTabIndexAttribute(props.a11y)
138
+ ...getDataAttributes(props)
141
139
  };
142
140
  return /* @__PURE__ */ jsx("div", { ...baseComponentProps, children: render && /* @__PURE__ */ jsx("wix-iframe", { "data-src": url, children: /* @__PURE__ */ jsx(
143
141
  "div",
@@ -4,7 +4,6 @@ export type HtmlComponentProps = IHtmlComponentProps & HtmlComponentData & SdkFu
4
4
  componentConsentPolicy?: Record<string, boolean>;
5
5
  a11y?: {
6
6
  ariaLabel?: string;
7
- tabIndex?: number;
8
7
  };
9
8
  allowFullScreen?: boolean;
10
9
  };
@@ -159,10 +159,7 @@ const manifest = {
159
159
  a11y: {
160
160
  dataType: DATA.DATA_TYPE.a11y,
161
161
  [DATA.DATA_TYPE.a11y]: {
162
- attributes: [
163
- DATA.A11Y_ATTRIBUTES.ariaLabel,
164
- DATA.A11Y_ATTRIBUTES.tabIndex
165
- ]
162
+ attributes: [DATA.A11Y_ATTRIBUTES.ariaLabel]
166
163
  }
167
164
  },
168
165
  ...manifestMouseHover()
@@ -61,7 +61,6 @@ const manifest = {
61
61
  dataType: DATA.DATA_TYPE.a11y,
62
62
  [DATA.DATA_TYPE.a11y]: {
63
63
  attributes: [
64
- DATA.A11Y_ATTRIBUTES.tabIndex,
65
64
  DATA.A11Y_ATTRIBUTES.role,
66
65
  DATA.A11Y_ATTRIBUTES.ariaLabel,
67
66
  DATA.A11Y_ATTRIBUTES.ariaLabelledby,
@@ -668,7 +668,6 @@ const navbarConfig = {
668
668
  dataType: DATA.DATA_TYPE.a11y,
669
669
  [DATA.DATA_TYPE.a11y]: {
670
670
  attributes: [
671
- DATA.A11Y_ATTRIBUTES.tabIndex,
672
671
  DATA.A11Y_ATTRIBUTES.ariaPressed,
673
672
  DATA.A11Y_ATTRIBUTES.ariaExpanded,
674
673
  DATA.A11Y_ATTRIBUTES.ariaDisabled,
@@ -53,7 +53,6 @@ const manifest = {
53
53
  dataType: DATA.DATA_TYPE.a11y,
54
54
  [DATA.DATA_TYPE.a11y]: {
55
55
  attributes: [
56
- DATA.A11Y_ATTRIBUTES.tabIndex,
57
56
  DATA.A11Y_ATTRIBUTES.ariaLabel,
58
57
  DATA.A11Y_ATTRIBUTES.ariaLabelledby,
59
58
  DATA.A11Y_ATTRIBUTES.ariaLive,