@wix/editor-react-components 1.2880.0 → 1.2882.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.
Files changed (45) hide show
  1. package/dist/site/components/AccordionComponent/component.js +1 -1
  2. package/dist/site/components/AnimatedIcon/component.js +1 -1
  3. package/dist/site/components/AudioPlayer/component.js +1 -1
  4. package/dist/site/components/BoxContainer/component.js +1 -1
  5. package/dist/site/components/Breadcrumbs/component.js +1 -1
  6. package/dist/site/components/DatePicker/component.js +1 -1
  7. package/dist/site/components/Dropdown/Dropdown.d.ts +1 -1
  8. package/dist/site/components/Dropdown/Dropdown.types.d.ts +1 -3
  9. package/dist/site/components/Dropdown/component.js +5 -17
  10. package/dist/site/components/Dropdown/constants.d.ts +1 -1
  11. package/dist/site/components/Dropdown/css.css +0 -11
  12. package/dist/site/components/Dropdown/manifest.js +1 -7
  13. package/dist/site/components/GoogleMap/component.js +3 -3
  14. package/dist/site/components/HTMLComponent/component.js +2 -2
  15. package/dist/site/components/HipaaIcon/component.js +1 -1
  16. package/dist/site/components/Image3/component.js +1 -1
  17. package/dist/site/components/LinkBar/component.js +1 -1
  18. package/dist/site/components/Lottie/component.js +3 -3
  19. package/dist/site/components/MarkdownBlock/component.js +2 -2
  20. package/dist/site/components/Menu/component.js +2 -2
  21. package/dist/site/components/Menu/sdk.js +1 -1
  22. package/dist/site/components/ShareButtons/component.js +1 -1
  23. package/dist/site/components/Slideshow/component.js +2 -2
  24. package/dist/site/components/TextMarquee/component.js +1 -1
  25. package/dist/site/components/TimePicker/component.js +1 -1
  26. package/dist/site/components/TransparentVideo/component.js +1 -1
  27. package/dist/site/components/VideoScrub/component.js +2 -2
  28. package/dist/site/components/VideoUpload/component.js +2 -2
  29. package/dist/site/components/WRichText/WRichText.types.d.ts +1 -1
  30. package/dist/site/components/WRichText/component.js +4 -40
  31. package/dist/site/components/WRichText/manifest.js +1 -2
  32. package/dist/site/components/WRichText/sdk.js +1 -1
  33. package/dist/site/components/chunks/constants36.js +1 -1
  34. package/dist/site/components/chunks/index.js +3 -2133
  35. package/dist/site/components/chunks/index10.js +230 -2012
  36. package/dist/site/components/chunks/index2.js +3 -3
  37. package/dist/site/components/chunks/index3.js +2 -2
  38. package/dist/site/components/chunks/index4.js +2 -2
  39. package/dist/site/components/chunks/index5.js +2133 -3
  40. package/dist/site/components/chunks/index9.js +2012 -230
  41. package/dist/site/components/chunks/parseHtml.js +2 -2
  42. package/dist/site/components/chunks/parseSvg.js +2 -2
  43. package/dist/site/components/chunks/useConsentPolicyProps.js +2 -2
  44. package/package.json +2 -2
  45. package/dist/site/components/WRichText/utils/renderRichText.d.ts +0 -8
@@ -8,7 +8,7 @@ import { D as DesignStates, a as DEFAULT_PROPS } from "../chunks/constants44.js"
8
8
  import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
9
9
  import { r as require_baseGetTag, d as require_root, b as require_Symbol, c as requireIsArray, a as requireIsObjectLike, e as require_freeGlobal } from "../chunks/isObjectLike.js";
10
10
  import { useService } from "@wix/services-manager-react";
11
- import { D as DeviceInfoDefinition } from "../chunks/index3.js";
11
+ import { D as DeviceInfoDefinition } from "../chunks/index2.js";
12
12
  import { g as getWixBannerHeight } from "../chunks/getWixBannerHeight.js";
13
13
  import { d as directionStyles } from "../chunks/direction.module.js";
14
14
  var isObject_1;
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { useService } from "@wix/services-manager-react";
4
- import { D as DeviceInfoDefinition } from "../chunks/index3.js";
4
+ import { D as DeviceInfoDefinition } from "../chunks/index2.js";
5
5
  import { A as AnimatedIcon } from "../chunks/AnimatedIcon.js";
6
6
  const AnimatedIconWithReducedMotion = forwardRef((props, ref) => {
7
7
  const { reducedMotion } = useService(DeviceInfoDefinition);
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import React__default, { useRef, useCallback, useMemo, useEffect, useState, forwardRef, useContext, createContext, useSyncExternalStore } from "react";
4
4
  import { c as clsx } from "../chunks/clsx.js";
5
5
  import { useService } from "@wix/services-manager-react";
6
- import { R as RenderingContextDefinition } from "../chunks/index4.js";
6
+ import { R as RenderingContextDefinition } from "../chunks/index3.js";
7
7
  import { d as directionStyles } from "../chunks/direction.module.js";
8
8
  import Image3 from "../Image3/component.js";
9
9
  import { A as ARIA_LABELS, s as selectors, d as dataDefaults } from "../chunks/constants43.js";
@@ -2,7 +2,7 @@ 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
4
  import { E as ExperimentsDefinition } from "../chunks/index7.js";
5
- import { T as TranslationsDefinition } from "../chunks/index5.js";
5
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
6
6
  import { B as BOX_CONTAINER_MIN_HEIGHT_FIX_EXPERIMENT, a as BOX_CONTAINER_MIN_HEIGHT_FIX_VIEWER_EXPERIMENT } from "../chunks/constants42.js";
7
7
  import { e as getTabIndexAttribute, c as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
8
8
  const root = "root__eLvEL";
@@ -5,7 +5,7 @@ import { p as $f39a9eba43920ace$export$8dc98ba7eadeaa56, l as $f0a04ccd8dbdd83b$
5
5
  import { $ as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "../chunks/useLocalizedStringFormatter.js";
6
6
  import { createPortal } from "react-dom";
7
7
  import { useService } from "@wix/services-manager-react";
8
- import { T as TranslationsDefinition } from "../chunks/index5.js";
8
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
9
9
  import { c as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
10
10
  import { d as directionStyles } from "../chunks/direction.module.js";
11
11
  import { s as semanticClassNames, D as DesignStates, c as componentMetadata, t as translationKeys, A as ARIA_LABEL_NAMESPACE, l as legacyTranslationKeys, d as defaultTranslations } from "../chunks/constants41.js";
@@ -13,7 +13,7 @@ import { a as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7, $ as $2eb8e6d23f3d0cb0$
13
13
  import __rspack_external_react_dom_7136dc57__default, { flushSync } from "react-dom";
14
14
  import { useService } from "@wix/services-manager-react";
15
15
  import { u as useCurrentLanguage } from "../chunks/useCurrentLanguage.js";
16
- import { T as TranslationsDefinition } from "../chunks/index5.js";
16
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
17
17
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
18
18
  import { d as directionStyles } from "../chunks/direction.module.js";
19
19
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
@@ -1,3 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { DropdownProps } from './Dropdown.types';
3
- export default function Dropdown({ a11y, className, direction, disabled, elementProps, errorMessage, helperText, id, label, onValueChange, options, placeholder, previewError, previewList, readOnly, value, wix, ...rest }: DropdownProps): React.JSX.Element;
3
+ export default function Dropdown({ className, direction, disabled, elementProps, errorMessage, helperText, id, label, onValueChange, options, placeholder, previewError, previewList, readOnly, value, wix, ...rest }: DropdownProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { A11y, Direction } from '@wix/editor-react-types';
1
+ import { Direction } from '@wix/editor-react-types';
2
2
  export type DropdownOption = {
3
3
  /** Text shown to the visitor in the list. */
4
4
  label: string;
@@ -57,8 +57,6 @@ export type DropdownProps = {
57
57
  previewError?: boolean;
58
58
  /** Writing direction applied to the root. */
59
59
  direction?: Direction;
60
- /** Accessibility attributes. `ariaLabel` labels the dropdown for assistive tech. */
61
- a11y?: A11y;
62
60
  /** Per-element className overrides. Keys match the manifest element keys. */
63
61
  elementProps?: DropdownElementProps;
64
62
  /** Platform-provided props. */
@@ -4,11 +4,10 @@ import { c as clsx } from "../chunks/clsx.js";
4
4
  import { F as Field, C as Combobox } from "../chunks/index13.js";
5
5
  import { useService } from "@wix/services-manager-react";
6
6
  import { u as useCurrentLanguage } from "../chunks/useCurrentLanguage.js";
7
- import { T as TranslationsDefinition } from "../chunks/index5.js";
7
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
8
8
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
9
9
  import { d as directionStyles } from "../chunks/direction.module.js";
10
10
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
11
- import { a as accessibilityStyles } from "../chunks/accessibility.module.js";
12
11
  import { A as AriaLabels, T as TestIds, e as editorElementClassNames, D as DesignStates } from "../chunks/constants36.js";
13
12
  const root = "root__WnTks";
14
13
  const input = "input__pbp9w";
@@ -43,7 +42,6 @@ const styles = {
43
42
  const itemToStringLabel = (item) => (item == null ? void 0 : item.label) ?? "";
44
43
  const itemToStringValue = (item) => (item == null ? void 0 : item.value) ?? "";
45
44
  function Dropdown({
46
- a11y,
47
45
  className,
48
46
  direction,
49
47
  disabled,
@@ -76,15 +74,14 @@ function Dropdown({
76
74
  const inErrorState = hasError || Boolean(previewError);
77
75
  const { language } = useCurrentLanguage();
78
76
  const { translate } = useService(TranslationsDefinition);
79
- const ariaLabel = (a11y == null ? void 0 : a11y.ariaLabel) || (label2 ? void 0 : translate("ariaLabels")(
77
+ const ariaLabel = label2 ? void 0 : translate("ariaLabels")(
80
78
  AriaLabels.root.legacyKey,
81
79
  AriaLabels.root.default
82
- ));
80
+ );
83
81
  const comboboxId = `${id}-combobox`;
84
82
  const helperTextId = helperText2 ? `${id}-helper-text` : void 0;
85
83
  const errorMessageId = inErrorState ? `${id}-error-message` : void 0;
86
84
  const describedBy = [helperTextId, errorMessageId].filter(Boolean).join(" ") || void 0;
87
- const accessibleNameId = label2 && ariaLabel ? `${id}-accessible-name` : void 0;
88
85
  return /* @__PURE__ */ jsx(
89
86
  "div",
90
87
  {
@@ -120,14 +117,6 @@ function Dropdown({
120
117
  readOnly,
121
118
  value: selectedOption ?? null,
122
119
  children: [
123
- accessibleNameId && /* @__PURE__ */ jsx(
124
- "span",
125
- {
126
- id: accessibleNameId,
127
- className: accessibilityStyles.visuallyHidden,
128
- children: ariaLabel
129
- }
130
- ),
131
120
  label2 && /* @__PURE__ */ jsx(
132
121
  Combobox.Label,
133
122
  {
@@ -143,7 +132,6 @@ function Dropdown({
143
132
  /* @__PURE__ */ jsxs(
144
133
  Combobox.Trigger,
145
134
  {
146
- ...accessibleNameId ? { "aria-labelledby": accessibleNameId } : {},
147
135
  "aria-describedby": describedBy,
148
136
  "aria-haspopup": "listbox",
149
137
  "aria-invalid": inErrorState || void 0,
@@ -190,8 +178,8 @@ function Dropdown({
190
178
  children: /* @__PURE__ */ jsx(
191
179
  Combobox.List,
192
180
  {
193
- "aria-label": label2 ? void 0 : ariaLabel,
194
- "aria-labelledby": accessibleNameId ?? (label2 ? `${comboboxId}-label` : void 0),
181
+ "aria-label": ariaLabel,
182
+ "aria-labelledby": label2 ? `${comboboxId}-label` : void 0,
195
183
  className: styles.list,
196
184
  children: options == null ? void 0 : options.map((option2, index) => {
197
185
  var _a2;
@@ -1,4 +1,4 @@
1
- export declare const COMPONENT_TYPE = "wixEditorElements.Dropdown__DEV__v5";
1
+ export declare const COMPONENT_TYPE = "wixEditorElements.Dropdown__DEV__v6";
2
2
  export declare const DesignStates: {
3
3
  readonly input: {
4
4
  readonly hover: {
@@ -127,15 +127,4 @@
127
127
  }
128
128
  .presetWrapper__J1yzj {
129
129
  display: contents;
130
- }
131
- .visuallyHidden__Md84p {
132
- position: absolute;
133
- width: 1px;
134
- height: 1px;
135
- padding: 0;
136
- margin: -1px;
137
- overflow: hidden;
138
- clip-path: inset(50%);
139
- white-space: nowrap;
140
- border: 0;
141
130
  }
@@ -3,7 +3,7 @@ import { a as DisplayNames, F as FunctionalStateKeys, e as editorElementClassNam
3
3
  import { T as TEXT_PROP_STATIC_VALUE_MAX_LENGTH } from "../chunks/manifest.js";
4
4
  const basePresetName = "baseDropdown";
5
5
  const manifest = {
6
- id: "d46302be-0629-45c8-bdf3-cdb14c6457c8",
6
+ id: "550ebc8b-39bc-4b95-a76e-57d3b0350a0e",
7
7
  type: COMPONENT_TYPE,
8
8
  description: "A single-select dropdown input. Visitors pick a value from a list of options. Options can be set statically or fed dynamically by a connected data source.",
9
9
  installation: {
@@ -493,12 +493,6 @@ const manifest = {
493
493
  maxLength: TEXT_PROP_STATIC_VALUE_MAX_LENGTH
494
494
  }
495
495
  },
496
- a11y: {
497
- dataType: DATA.DATA_TYPE.a11y,
498
- [DATA.DATA_TYPE.a11y]: {
499
- attributes: [DATA.A11Y_ATTRIBUTES.ariaLabel]
500
- }
501
- },
502
496
  direction: {
503
497
  dataType: DATA.DATA_TYPE.direction
504
498
  },
@@ -7,11 +7,11 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
7
7
  import { c 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, C as COMPONENT_TYPE, e as ConsentTranslations, f as DEFAULT_LOCATION, g as TranslationKeys, L as LegacyTranslationNamespaces, h as LegacyTranslationKeys, i as DefaultTranslations, j as COMPANY_NAME_DEFAULT, k as COMPANY_NAME_KEY, l as COMPONENT_NAME_DEFAULT, m as COMPONENT_NAME_KEY } from "../chunks/consts2.js";
10
- import { p as parse } from "../chunks/index.js";
10
+ import { p as parse } from "../chunks/index5.js";
11
11
  import { useService } from "@wix/services-manager-react";
12
- import { R as RenderingContextDefinition } from "../chunks/index4.js";
12
+ import { R as RenderingContextDefinition } from "../chunks/index3.js";
13
13
  import { u as useConsentPolicyProps, C as ConsentPolicyWrapper } from "../chunks/useConsentPolicyProps.js";
14
- import { T as TranslationsDefinition } from "../chunks/index5.js";
14
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
15
15
  import { u as useCurrentLanguage } from "../chunks/useCurrentLanguage.js";
16
16
  const mapContainer = "mapContainer__E0LTn";
17
17
  const style = {
@@ -5,11 +5,11 @@ 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
7
  import { useService } from "@wix/services-manager-react";
8
- import { R as RenderingContextDefinition } from "../chunks/index4.js";
8
+ import { R as RenderingContextDefinition } from "../chunks/index3.js";
9
9
  import { E as ExperimentsDefinition } from "../chunks/index7.js";
10
10
  import { C as ConfigurationDefinition } from "../chunks/index15.js";
11
11
  import { d as defineService } from "../chunks/index11.js";
12
- import { T as TranslationsDefinition } from "../chunks/index5.js";
12
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
13
13
  import { A as ALLOWED_PROTOCOLS, C as COMPONENT_TYPE, H as HTML_COMPONENT_TITLE_KEY, a as ARIA_LABEL_NAMESPACE, L as LEGACY_HTML_COMPONENT_TITLE_KEY, b as HTML_COMPONENT_TITLE_DEFAULT, D as DEFAULT_CONSENT_POLICY, S as SANDBOX, c as ConsentTranslations } from "../chunks/constants35.js";
14
14
  import { C as CLASS_NAME_ON_COMPONENT_ROOT_EXPERIMENT, M as MOVE_PREVIEW_IDENTITY_CLASSES_TO_ROOT_EXPERIMENT } from "../chunks/specs.js";
15
15
  const isBrowser = () => typeof window !== "undefined";
@@ -1,7 +1,7 @@
1
1
  import { jsxs, 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 { T as TranslationsDefinition } from "../chunks/index5.js";
4
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
5
5
  import { d as defineService } from "../chunks/index11.js";
6
6
  import { C as COMPONENT_TYPE, T as TRANSLATIONS_NAMESPACE, a as TranslationKeys, L as LegacyTranslationKeys, D as DefaultTranslations } from "../chunks/constants33.js";
7
7
  const RendererConfigurationDefinition = defineService("@wix/site-service-renderer-configuration");
@@ -7,7 +7,7 @@ import * as React from "react";
7
7
  import { a as getData, g as getPlaceholder, S as STATIC_MEDIA_URL$1 } from "../chunks/index6.js";
8
8
  import { g as getMediaSizeQueryString, c as camelToKebab, a as getMediaUrlByContext, i as initCustomElement } from "../chunks/customElementInit.js";
9
9
  import { useService } from "@wix/services-manager-react";
10
- import { R as RenderingContextDefinition } from "../chunks/index4.js";
10
+ import { R as RenderingContextDefinition } from "../chunks/index3.js";
11
11
  const image = "image__iWj48";
12
12
  const styles = {
13
13
  image
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { useService } from "@wix/services-manager-react";
4
- import { T as TranslationsDefinition } from "../chunks/index5.js";
4
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
5
5
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
6
6
  import { p as parseSvg } from "../chunks/parseSvg.js";
7
7
  import { c as clsx } from "../chunks/clsx.js";
@@ -1,15 +1,15 @@
1
1
  import { jsx, jsxs } 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 { T as TranslationsDefinition } from "../chunks/index5.js";
4
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
5
5
  import { d as directionStyles } from "../chunks/direction.module.js";
6
6
  import { B as Button } from "../chunks/Button.js";
7
7
  import { r as rootDataDefaults, s as semanticSelectors, C as COMPONENT_TYPE, A as ARIA_LABEL_NAMESPACE, t as testIds, p as pauseIconSvg, a as playIconSvg, b as showButtonOnHoverDefaults, T as TranslationKeys, L as LegacyTranslationKeys, D as DefaultTranslations } from "../chunks/constants29.js";
8
8
  import React__default, { useEffect, useState, useRef, useMemo } from "react";
9
9
  import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
10
10
  import { c as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
11
- import { R as RenderingContextDefinition } from "../chunks/index4.js";
12
- import { D as DeviceInfoDefinition } from "../chunks/index3.js";
11
+ import { R as RenderingContextDefinition } from "../chunks/index3.js";
12
+ import { D as DeviceInfoDefinition } from "../chunks/index2.js";
13
13
  import { u as useHasDisplayedElement } from "../chunks/useHasDisplayedElement.js";
14
14
  var lottie$2 = { exports: {} };
15
15
  var lottie$1 = lottie$2.exports;
@@ -1,12 +1,12 @@
1
1
  import { jsxs, jsx, Fragment } 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 { T as TranslationsDefinition } from "../chunks/index5.js";
4
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
5
5
  import { d as directionStyles } from "../chunks/direction.module.js";
6
6
  import { T as TRANSLATIONS_NAMESPACE, L as LegacyTranslationKeys, D as DefaultTranslations, m as manifestClasses, d as defaultValues } from "../chunks/constants28.js";
7
7
  import "react";
8
8
  import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
9
- import { r as requireCjs } from "../chunks/index9.js";
9
+ import { r as requireCjs } from "../chunks/index10.js";
10
10
  function ok$1() {
11
11
  }
12
12
  function unreachable() {
@@ -4,7 +4,7 @@ import { useService, useGetService } from "@wix/services-manager-react";
4
4
  import { t as toUrlWithoutQuery, s as safeDecode } from "../chunks/urlUtils.js";
5
5
  import { U as UrlDefinition } from "../chunks/index16.js";
6
6
  import { d as defineService } from "../chunks/index11.js";
7
- import { T as TranslationsDefinition } from "../chunks/index5.js";
7
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
8
8
  import { M as MenuAnimationName, d as defaultTranslations, a as MenuOrientation, A as AnimationPhase, V as VerticalDropdownDisplay, D as DropdownAnimationName, H as HamburgerMenuAnimationName, b as MenuParts, s as selectors, c as DesignStates, u as useAnimationState, C as COMPONENT_TYPE, e as ARIA_LABEL_NAMESPACE, t as translationsKeys, l as legacyTranslationsKeys } from "../chunks/constants27.js";
9
9
  import React__default, { createContext, useContext, useRef, useCallback, useMemo, useState, useEffect, useLayoutEffect, forwardRef } from "react";
10
10
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
@@ -17,7 +17,7 @@ import { u as useResizeObserver } from "../chunks/useResizeObserver.js";
17
17
  import { d as directionStyles } from "../chunks/direction.module.js";
18
18
  import { L as LocaleDefinition } from "../chunks/index12.js";
19
19
  import AnimatedIconWithReducedMotion from "../AnimatedIcon/component.js";
20
- import { D as DeviceInfoDefinition } from "../chunks/index3.js";
20
+ import { D as DeviceInfoDefinition } from "../chunks/index2.js";
21
21
  import { B as Button } from "../chunks/Button.js";
22
22
  import { c as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
23
23
  const AnchorsDefinition = defineService("@wix/viewer-service-anchors");
@@ -3,7 +3,7 @@ import { i as isNil, h as isDate, l as isObject, k as isArray } from "../chunks/
3
3
  import { b as registerCorvidMouseEvent } from "../chunks/corvidEvents.js";
4
4
  import { c as composeSDKFactories } from "../chunks/composeSDKFactories.js";
5
5
  import { v as validateMenuItems, c as createMenuDataItem } from "../chunks/utils3.js";
6
- import { L as LinkUtilsDefinition } from "../chunks/index2.js";
6
+ import { L as LinkUtilsDefinition } from "../chunks/index.js";
7
7
  const sanitizeItem = (item) => Object.entries(item).reduce((acc, [key, value]) => {
8
8
  if (isNil(value)) {
9
9
  return acc;
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import React__default, { useState, useEffect, useRef, useMemo, createElement } from "react";
3
3
  import { c as clsx } from "../chunks/clsx.js";
4
- import { T as TranslationsDefinition } from "../chunks/index5.js";
4
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
5
5
  import { t as toUrlWithoutQuery } from "../chunks/urlUtils.js";
6
6
  import { U as UrlDefinition } from "../chunks/index16.js";
7
7
  import { useService } from "@wix/services-manager-react";
@@ -8,8 +8,8 @@ import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
8
8
  import { d as directionStyles } from "../chunks/direction.module.js";
9
9
  import { useService } from "@wix/services-manager-react";
10
10
  import { L as LocaleDefinition } from "../chunks/index12.js";
11
- import { D as DeviceInfoDefinition } from "../chunks/index3.js";
12
- import { T as TranslationsDefinition } from "../chunks/index5.js";
11
+ import { D as DeviceInfoDefinition } from "../chunks/index2.js";
12
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
13
13
  const validateActiveSlide = (activeSlide, slidesLength) => {
14
14
  if (activeSlide === void 0) {
15
15
  return void 0;
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import React__default, { useState, useRef, useCallback, useEffect, useMemo } from "react";
4
4
  import { useService } from "@wix/services-manager-react";
5
5
  import { E as ExperimentsDefinition } from "../chunks/index7.js";
6
- import { T as TranslationsDefinition } from "../chunks/index5.js";
6
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
7
7
  import { c as clsx } from "../chunks/clsx.js";
8
8
  import { L as Link } from "../chunks/Link.js";
9
9
  import { f as formatClassNames } from "../chunks/classNames.js";
@@ -6,7 +6,7 @@ import { $ as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, a as $01b77f81d0f07f68$
6
6
  import { $ as $2eb8e6d23f3d0cb0$export$a54013f0d02a8f82 } from "../chunks/I18nProvider.js";
7
7
  import { useService } from "@wix/services-manager-react";
8
8
  import { u as useCurrentLanguage } from "../chunks/useCurrentLanguage.js";
9
- import { T as TranslationsDefinition } from "../chunks/index5.js";
9
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
10
10
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
11
11
  import { d as directionStyles } from "../chunks/direction.module.js";
12
12
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import React__default, { useRef, useState, useEffect, useMemo, useCallback } from "react";
3
- import { p as parse } from "../chunks/index.js";
3
+ import { p as parse } from "../chunks/index5.js";
4
4
  import { F as FilterEffectType, V as VideoStartType, a as VideoEndType, b as VideoPlayingState } from "../chunks/TransparentVideo.types.js";
5
5
  import "../chunks/index6.js";
6
6
  import { c as clsx } from "../chunks/clsx.js";
@@ -2,11 +2,11 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useRef, useState, useEffect, useCallback, useLayoutEffect, useMemo } from "react";
3
3
  import { c as clsx } from "../chunks/clsx.js";
4
4
  import { useService } from "@wix/services-manager-react";
5
- import { T as TranslationsDefinition } from "../chunks/index5.js";
5
+ import { T as TranslationsDefinition } from "../chunks/index4.js";
6
6
  import { V as Video } from "../chunks/Video.js";
7
7
  import { S as STICKY_TOP, a as ScrollSpeed, b as SCROLL_VH_PER_SECOND, c as START_LINE, M as MAX_SCROLL_VH, d as MIN_SCROLL_VH, e as assertDuration, i as isDuration, T as TIMEFRAME_CONTENT_CLASS, A as ARIA_LABEL_NAMESPACE, L as LEGACY_TIMEFRAMES_ARIA_LABEL_KEY, f as TIMEFRAMES_ARIA_LABEL_DEFAULT, D as DEFAULT_VIDEO_RATIO, g as TIMEFRAMES_LAYER_CLASS, R as ROOT_CLASS, h as ScrubStart } from "../chunks/types.js";
8
8
  import { c as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
9
- import { D as DeviceInfoDefinition } from "../chunks/index3.js";
9
+ import { D as DeviceInfoDefinition } from "../chunks/index2.js";
10
10
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
11
11
  const clamp = (value, min, max) => Math.min(max, Math.max(min, value));
12
12
  const getScrollLengthVh = (duration, speed = ScrollSpeed.normal) => clamp(
@@ -4,8 +4,8 @@ import { c as clsx } from "../chunks/clsx.js";
4
4
  import { f as formatClassNames } from "../chunks/classNames.js";
5
5
  import { V as Video } from "../chunks/Video.js";
6
6
  import { useService } from "@wix/services-manager-react";
7
- import { D as DeviceInfoDefinition } from "../chunks/index3.js";
8
- import { R as RenderingContextDefinition } from "../chunks/index4.js";
7
+ import { D as DeviceInfoDefinition } from "../chunks/index2.js";
8
+ import { R as RenderingContextDefinition } from "../chunks/index3.js";
9
9
  const semanticClassNames = {
10
10
  root: "video-upload",
11
11
  title: "video-upload__title"
@@ -4,7 +4,7 @@ import { ScreenReaderSDKProps, AriaAttributesSDKProps, LangSDKProps } from '../.
4
4
  import { IElementPropsSDKActions } from '../../../common/sdk/props-factories/elementPropsSDKFactory';
5
5
  import { IClickPropsSDKActions } from '../../../common/sdk/props-factories/clickPropsSDKFactory';
6
6
  import { default as React } from 'react';
7
- type StyledTextA11yProps = Pick<A11y, 'lang' | 'ariaLabel' | 'ariaLevel' | 'ariaHidden' | 'role' | 'tag'>;
7
+ type StyledTextA11yProps = Pick<A11y, 'lang' | 'ariaLabel' | 'ariaLevel' | 'ariaHidden' | 'role'>;
8
8
  type WRichTextSkin = 'WRichTextSkin' | 'WRichTextNewSkin' | 'WRichTextClickableSkin' | 'WRichTextThemeSkin';
9
9
  type WRichTextProps = {
10
10
  html: string;
@@ -1,47 +1,12 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { createElement, useRef, useEffect, useMemo } from "react";
3
+ import { useRef, useEffect, useMemo } from "react";
4
4
  import { c as clsx } from "../chunks/clsx.js";
5
5
  import { f as formatClassNames } from "../chunks/classNames.js";
6
6
  import { g as getQaDataAttributes, a as getDataAttributes } from "../chunks/dataUtils.js";
7
7
  import { a as activateBySpaceOrEnterButton, c as convertA11yKeysToHtmlFormat, g as getAccessibilityAttributesSpread } from "../chunks/a11y.js";
8
- import { l as libExports } from "../chunks/index.js";
9
8
  import { p as parseHtml } from "../chunks/parseHtml.js";
10
9
  import { T as TestIds } from "../chunks/constants.js";
11
- const HTML_TAGS = /* @__PURE__ */ new Set([
12
- "h1",
13
- "h2",
14
- "h3",
15
- "h4",
16
- "h5",
17
- "h6",
18
- "p",
19
- "blockquote"
20
- ]);
21
- const renderRichText = (html, tag) => {
22
- if (!tag || !HTML_TAGS.has(tag)) {
23
- return parseHtml(html);
24
- }
25
- let replaced = false;
26
- const options = {
27
- replace: (node) => {
28
- var _a;
29
- const isTopLevelElement = node.type === "tag" && ((_a = node.parent) == null ? void 0 : _a.type) === "root";
30
- if (!isTopLevelElement) {
31
- return void 0;
32
- }
33
- replaced = true;
34
- const element = node;
35
- return createElement(
36
- tag,
37
- libExports.attributesToProps(element.attribs),
38
- libExports.domToReact(element.children, options)
39
- );
40
- }
41
- };
42
- const content = parseHtml(html, options);
43
- return replaced || !html.trim() ? content : createElement(tag, null, content);
44
- };
45
10
  const semanticClassNames = {
46
11
  root: "rich-text"
47
12
  };
@@ -125,7 +90,6 @@ const WRichText$1 = React.forwardRef((props, ref) => {
125
90
  } = props;
126
91
  const [isInteractive, setIsInteractive] = React.useState(false);
127
92
  const { prefix, suffix } = screenReader || {};
128
- const { tag, ...a11yAttributes } = a11y ?? {};
129
93
  const htmlWrapperRef = React.useRef(null);
130
94
  usePopupLinkEvents(htmlWrapperRef, [html]);
131
95
  const skinsWithContainer = [
@@ -168,7 +132,7 @@ const WRichText$1 = React.forwardRef((props, ref) => {
168
132
  "data-testid": TestIds.richTextElement,
169
133
  ...sdkEventHandlers,
170
134
  ...getAccessibilityAttributesSpread({ ariaAttributes, lang }),
171
- ...convertA11yKeysToHtmlFormat(a11yAttributes),
135
+ ...convertA11yKeysToHtmlFormat(a11y ?? {}),
172
136
  ...getQaDataAttributes(isQaMode, fullNameCompType)
173
137
  } : {
174
138
  className: isClassNameToRootEnabled ? className : ""
@@ -203,7 +167,7 @@ const WRichText$1 = React.forwardRef((props, ref) => {
203
167
  "data-testid": TestIds.richTextElement,
204
168
  ...sdkEventHandlers,
205
169
  ...getAccessibilityAttributesSpread({ ariaAttributes, lang }),
206
- ...convertA11yKeysToHtmlFormat(a11yAttributes)
170
+ ...convertA11yKeysToHtmlFormat(a11y ?? {})
207
171
  }
208
172
  };
209
173
  const prefixElement = prefix && /* @__PURE__ */ jsx(
@@ -220,7 +184,7 @@ const WRichText$1 = React.forwardRef((props, ref) => {
220
184
  testId: TestIds.screenReaderSuffixElement
221
185
  }
222
186
  );
223
- const richTextElement = /* @__PURE__ */ jsx("div", { ...richTextAttributes, children: renderRichText(html, tag) });
187
+ const richTextElement = /* @__PURE__ */ jsx("div", { ...richTextAttributes, children: parseHtml(html) });
224
188
  if (isInContainer) {
225
189
  return /* @__PURE__ */ jsxs("div", { ...wrapperAttributes, children: [
226
190
  prefixElement,
@@ -69,8 +69,7 @@ const manifest = {
69
69
  DATA.A11Y_ATTRIBUTES.ariaLevel,
70
70
  DATA.A11Y_ATTRIBUTES.role,
71
71
  DATA.A11Y_ATTRIBUTES.ariaHidden,
72
- DATA.A11Y_ATTRIBUTES.lang,
73
- DATA.A11Y_ATTRIBUTES.tag
72
+ DATA.A11Y_ATTRIBUTES.lang
74
73
  ]
75
74
  }
76
75
  }
@@ -1,6 +1,6 @@
1
1
  import { c as createA11ySdk } from "../chunks/a11ySdk.js";
2
2
  import { s as sanitizeHTML } from "../chunks/sanitizeHTML.js";
3
- import { L as LinkUtilsDefinition } from "../chunks/index2.js";
3
+ import { L as LinkUtilsDefinition } from "../chunks/index.js";
4
4
  import { w as wixCodeName, a as wixGuard, e as endBlockTagRegex, b as endTagRegex, s as startTagRegex } from "../chunks/constants.js";
5
5
  import { i as isNil } from "../chunks/assert.js";
6
6
  import { c as createElementPropsSDKFactory } from "../chunks/elementPropsSDKFactory.js";
@@ -1,4 +1,4 @@
1
- const COMPONENT_TYPE = "wixEditorElements.Dropdown__DEV__v5";
1
+ const COMPONENT_TYPE = "wixEditorElements.Dropdown__DEV__v6";
2
2
  const DesignStates = {
3
3
  input: {
4
4
  hover: { displayName: "Hover", className: "dropdown__input--hover" },