@wix/editor-react-components 1.2728.0 → 1.2729.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.
- package/dist/site/components/AudioPlayer/manifest.js +0 -1
- package/dist/site/components/GoogleMap/component.js +2 -3
- package/dist/site/components/GoogleMap/manifest.js +1 -4
- package/dist/site/components/HTMLComponent/HTMLComponent.types.d.ts +0 -1
- package/dist/site/components/HTMLComponent/component.js +1 -3
- package/dist/site/components/HTMLComponent/hooks/useHTMLComponentProps.d.ts +0 -1
- package/dist/site/components/HTMLComponent/manifest.js +1 -4
- package/dist/site/components/ImageReveal/manifest.js +0 -1
- package/dist/site/components/Menu/manifest.js +0 -1
- package/dist/site/components/ProgressBar/manifest.js +0 -1
- package/dist/site/components/SlotsPlaceholder/manifest.js +0 -1
- package/package.json +2 -2
|
@@ -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 {
|
|
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 {
|
|
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()
|
|
@@ -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",
|
|
@@ -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()
|
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2729.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -201,5 +201,5 @@
|
|
|
201
201
|
"registry": "https://registry.npmjs.org/",
|
|
202
202
|
"access": "public"
|
|
203
203
|
},
|
|
204
|
-
"falconPackageHash": "
|
|
204
|
+
"falconPackageHash": "fdcaa5e38c2590bcf591a92d57b8101f3a3c801ca31a4691cac3e820"
|
|
205
205
|
}
|