@wix/editor-react-components 1.2661.0 → 1.2663.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.
@@ -1,13 +1,17 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { c as clsx } from "../chunks/clsx.js";
3
3
  import { useService } from "@wix/services-manager-react";
4
+ import { d as defineService } from "../chunks/index8.js";
4
5
  import { T as TranslationsDefinition } from "../chunks/index6.js";
5
- import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants35.js";
6
+ import { B as BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT, A as ARIA_LABEL_NAMESPACE } from "../chunks/constants35.js";
6
7
  import { e as getTabIndexAttribute, f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
7
8
  const root = "root__eLvEL";
9
+ const minHeightFix = "minHeightFix__syGSC";
8
10
  const styles = {
9
- root
11
+ root,
12
+ minHeightFix
10
13
  };
14
+ const ExperimentsDefinition = defineService("@wix/site-service-experiments");
11
15
  const SPECIAL_KEYS = /* @__PURE__ */ new Set([
12
16
  "role",
13
17
  "tabIndex",
@@ -52,7 +56,10 @@ function BoxContainer({
52
56
  onFocus,
53
57
  onBlur
54
58
  }) {
59
+ var _a;
60
+ const experimentsService = useService(ExperimentsDefinition);
55
61
  const { translate } = useService(TranslationsDefinition);
62
+ const isMinHeightFixEnabled = ((_a = experimentsService == null ? void 0 : experimentsService.isOpen) == null ? void 0 : _a.call(experimentsService, BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT)) ?? false;
56
63
  translate(ARIA_LABEL_NAMESPACE);
57
64
  const a11yAttributes = normalizeBoxContainerA11y(a11y);
58
65
  return /* @__PURE__ */ jsx(
@@ -60,7 +67,12 @@ function BoxContainer({
60
67
  {
61
68
  id,
62
69
  ...a11yAttributes,
63
- className: clsx(styles.root, "container", className),
70
+ className: clsx(
71
+ styles.root,
72
+ isMinHeightFixEnabled && styles.minHeightFix,
73
+ "container",
74
+ className
75
+ ),
64
76
  onClick,
65
77
  onDoubleClick: onDblClick,
66
78
  onMouseEnter: onMouseIn,
@@ -1,6 +1,7 @@
1
1
  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
+ export declare const BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT = "boxContainerMinHeightFix";
4
5
  export declare const DisplayNames: {
5
6
  readonly data: {
6
7
  readonly onClick: "On Click";
@@ -1,3 +1,8 @@
1
1
  .root__eLvEL {
2
2
  box-sizing: border-box;
3
+ }
4
+
5
+ .minHeightFix__syGSC {
6
+ display: grid;
7
+ grid-template-rows: minmax(0, 1fr);
3
8
  }
@@ -114,7 +114,10 @@ const manifest = {
114
114
  moduleSpecifier: "@wix/editor-react-components/BoxContainer",
115
115
  serviceDependencies: ["@wix/viewer-service-translations"],
116
116
  dependencies: {
117
- serviceDependencies: ["@wix/viewer-service-translations"]
117
+ serviceDependencies: [
118
+ "@wix/site-service-experiments",
119
+ "@wix/viewer-service-translations"
120
+ ]
118
121
  }
119
122
  }
120
123
  },
@@ -94,8 +94,7 @@ const manifest = {
94
94
  "blend-mode": {
95
95
  cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.blendMode,
96
96
  displayName: "Blend Mode",
97
- defaultValue: "normal",
98
- spec: "sp.erc.imageBlendMode"
97
+ defaultValue: "normal"
99
98
  },
100
99
  opacity: {
101
100
  cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.opacity,
@@ -1,4 +1,5 @@
1
1
  const ARIA_LABEL_NAMESPACE = "ariaLabels";
2
+ const BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT = "boxContainerMinHeightFix";
2
3
  const DisplayNames = {
3
4
  data: {
4
5
  onClick: "On Click",
@@ -11,5 +12,6 @@ const DisplayNames = {
11
12
  };
12
13
  export {
13
14
  ARIA_LABEL_NAMESPACE as A,
15
+ BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT as B,
14
16
  DisplayNames as D
15
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2661.0",
3
+ "version": "1.2663.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -83,6 +83,7 @@
83
83
  "@wix/services-manager-react": "^0.1.27",
84
84
  "@wix/site-service-business-logger": "^1.0.2",
85
85
  "@wix/site-service-configuration": "^1.0.1",
86
+ "@wix/site-service-experiments": "^1.0.4",
86
87
  "@wix/site-service-rendering-context": "^1.0.1",
87
88
  "@wix/site-ui": "1.273.0",
88
89
  "@wix/video": "^1.106.0",
@@ -199,5 +200,5 @@
199
200
  "registry": "https://registry.npmjs.org/",
200
201
  "access": "public"
201
202
  },
202
- "falconPackageHash": "964231dc10030a3fc76168e59d496d03e79fe1c2659f0d491ee25860"
203
+ "falconPackageHash": "28a33fe2b47b40f27c92a5f6b41b773cb47dddf144cba36a05223b9a"
203
204
  }