@wix/editor-react-components 1.2711.0 → 1.2713.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.
|
@@ -3,7 +3,7 @@ import { c as clsx } from "../chunks/clsx.js";
|
|
|
3
3
|
import { useService } from "@wix/services-manager-react";
|
|
4
4
|
import { d as defineService } from "../chunks/index8.js";
|
|
5
5
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
6
|
-
import { B as BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT, A as ARIA_LABEL_NAMESPACE } from "../chunks/constants35.js";
|
|
6
|
+
import { B as BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT, a as BOX_CONTAINER_MIN_HEIGHT_FIX_VIEWER_EXPERIMENT, A as ARIA_LABEL_NAMESPACE } from "../chunks/constants35.js";
|
|
7
7
|
import { e as getTabIndexAttribute, f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
8
8
|
const root = "root__eLvEL";
|
|
9
9
|
const minHeightFix = "minHeightFix__syGSC";
|
|
@@ -56,10 +56,15 @@ function BoxContainer({
|
|
|
56
56
|
onFocus,
|
|
57
57
|
onBlur
|
|
58
58
|
}) {
|
|
59
|
-
var _a;
|
|
59
|
+
var _a, _b;
|
|
60
60
|
const experimentsService = useService(ExperimentsDefinition);
|
|
61
61
|
const { translate } = useService(TranslationsDefinition);
|
|
62
|
-
const
|
|
62
|
+
const isEditorMinHeightFixEnabled = ((_a = experimentsService == null ? void 0 : experimentsService.isOpen) == null ? void 0 : _a.call(experimentsService, BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT)) ?? false;
|
|
63
|
+
const isViewerMinHeightFixEnabled = ((_b = experimentsService == null ? void 0 : experimentsService.isOpen) == null ? void 0 : _b.call(
|
|
64
|
+
experimentsService,
|
|
65
|
+
BOX_CONTAINER_MIN_HEIGHT_FIX_VIEWER_EXPERIMENT
|
|
66
|
+
)) ?? false;
|
|
67
|
+
const isMinHeightFixEnabled = isEditorMinHeightFixEnabled || isViewerMinHeightFixEnabled;
|
|
63
68
|
translate(ARIA_LABEL_NAMESPACE);
|
|
64
69
|
const a11yAttributes = normalizeBoxContainerA11y(a11y);
|
|
65
70
|
return /* @__PURE__ */ jsx(
|
|
@@ -2,6 +2,7 @@ export declare const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
|
2
2
|
export declare const ARIA_LABEL_KEY = "interactions_AriaLabel_contentOnHover_message";
|
|
3
3
|
export declare const ARIA_LABEL_DEFAULT = "Interactive element, focus to trigger content change";
|
|
4
4
|
export declare const BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT = "boxContainerMinHeightFix";
|
|
5
|
+
export declare const BOX_CONTAINER_MIN_HEIGHT_FIX_VIEWER_EXPERIMENT = "boxContainerMinHeightFixViewer";
|
|
5
6
|
export declare const DisplayNames: {
|
|
6
7
|
readonly data: {
|
|
7
8
|
readonly onClick: "On Click";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
2
2
|
const BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT = "boxContainerMinHeightFix";
|
|
3
|
+
const BOX_CONTAINER_MIN_HEIGHT_FIX_VIEWER_EXPERIMENT = "boxContainerMinHeightFixViewer";
|
|
3
4
|
const DisplayNames = {
|
|
4
5
|
data: {
|
|
5
6
|
onClick: "On Click",
|
|
@@ -13,5 +14,6 @@ const DisplayNames = {
|
|
|
13
14
|
export {
|
|
14
15
|
ARIA_LABEL_NAMESPACE as A,
|
|
15
16
|
BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT as B,
|
|
16
|
-
DisplayNames as D
|
|
17
|
+
DisplayNames as D,
|
|
18
|
+
BOX_CONTAINER_MIN_HEIGHT_FIX_VIEWER_EXPERIMENT as a
|
|
17
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2713.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -200,5 +200,5 @@
|
|
|
200
200
|
"registry": "https://registry.npmjs.org/",
|
|
201
201
|
"access": "public"
|
|
202
202
|
},
|
|
203
|
-
"falconPackageHash": "
|
|
203
|
+
"falconPackageHash": "0243bf04c3595a0cbdddbb57fab204dfc607f4522d3d8cfba1b31522"
|
|
204
204
|
}
|