@wix/editor-react-components 1.2725.0 → 1.2726.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,5 +1,4 @@
1
- import { DATA } from '@wix/component-protocol/schema';
2
- import { VectorArt, Link } from '@wix/editor-react-types';
1
+ import { A11y, VectorArt, Link } from '@wix/editor-react-types';
3
2
  import { ForwardedRef } from 'react';
4
3
  type Direction = 'ltr' | 'rtl';
5
4
  type TagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote' | 'div' | 'p';
@@ -17,10 +16,12 @@ export type TextMarqueeBuilderProps = {
17
16
  id: string;
18
17
  isInEditor: boolean;
19
18
  multiplicationFactor?: number;
20
- a11y: Partial<typeof DATA.A11Y_ATTRIBUTES>;
19
+ a11y: Pick<A11y, 'ariaHidden' | 'tag' | 'lang'>;
21
20
  };
22
21
  export type MovementDirection = 'ltr' | 'rtl';
23
22
  export type TextMarqueeProps = {
23
+ type?: string;
24
+ lang?: string;
24
25
  id: string;
25
26
  className?: string;
26
27
  customClassNames?: Array<string>;
@@ -30,6 +31,7 @@ export type TextMarqueeProps = {
30
31
  speed: number;
31
32
  pauseOnHover: boolean;
32
33
  movementDirection?: MovementDirection;
34
+ textDirection?: Direction;
33
35
  singleTextItem: {
34
36
  text: string;
35
37
  resolvedLink?: Link;
@@ -244,6 +244,7 @@ const TextMarquee$1 = (props) => {
244
244
  const { rootRef, ...marqueeProps } = props;
245
245
  const {
246
246
  id,
247
+ lang,
247
248
  singleTextItem,
248
249
  isInEditor = false,
249
250
  headingLevel,
@@ -343,6 +344,7 @@ const TextMarquee$1 = (props) => {
343
344
  "div",
344
345
  {
345
346
  id,
347
+ lang: (lang == null ? void 0 : lang.trim()) || void 0,
346
348
  onClick: pauseOnClick,
347
349
  className: clsx(
348
350
  styles.marqueeRoot,
@@ -410,7 +412,7 @@ const TextMarquee = React__default.forwardRef(
410
412
  };
411
413
  }, [useNewA11y, translate]);
412
414
  const memoizedProps = useMemo(() => {
413
- var _a2, _b, _c, _d;
415
+ var _a2, _b, _c, _d, _e;
414
416
  const shouldAllowColorOverride = (svg) => {
415
417
  if ((svg == null ? void 0 : svg.contentType) !== "color") {
416
418
  return true;
@@ -441,7 +443,8 @@ const TextMarquee = React__default.forwardRef(
441
443
  id: props.id,
442
444
  isBuilder: true,
443
445
  isInEditor: props.isInEditor || false,
444
- ariaHidden: (_d = props.a11y) == null ? void 0 : _d.ariaHidden
446
+ ariaHidden: (_d = props.a11y) == null ? void 0 : _d.ariaHidden,
447
+ lang: (_e = props.a11y) == null ? void 0 : _e.lang
445
448
  };
446
449
  }, [props, useNewA11y, translations]);
447
450
  return /* @__PURE__ */ jsx(TextMarquee$1, { ...memoizedProps, rootRef: ref });
@@ -117,7 +117,8 @@ const manifest = {
117
117
  [DATA.DATA_TYPE.a11y]: {
118
118
  attributes: [
119
119
  DATA.A11Y_ATTRIBUTES.ariaHidden,
120
- DATA.A11Y_ATTRIBUTES.tag
120
+ DATA.A11Y_ATTRIBUTES.tag,
121
+ DATA.A11Y_ATTRIBUTES.lang
121
122
  ]
122
123
  }
123
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2725.0",
3
+ "version": "1.2726.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": "5e1fb8c789001ca7f77c84319ba0eae40207f0e91e1d630843ef686e"
204
+ "falconPackageHash": "6f995aad18704ac4dc8e1a8735c341c289006236eaebeba520ddb444"
205
205
  }