@wix/editor-react-components 1.2881.0 → 1.2883.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 (39) 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 +3 -3
  6. package/dist/site/components/DatePicker/component.js +1 -1
  7. package/dist/site/components/Dropdown/component.js +1 -1
  8. package/dist/site/components/GoogleMap/component.js +3 -3
  9. package/dist/site/components/HTMLComponent/component.js +2 -2
  10. package/dist/site/components/HipaaIcon/component.js +1 -1
  11. package/dist/site/components/Image3/component.js +1 -1
  12. package/dist/site/components/LinkBar/component.js +1 -1
  13. package/dist/site/components/Lottie/component.js +3 -3
  14. package/dist/site/components/MarkdownBlock/component.js +2 -2
  15. package/dist/site/components/Menu/component.js +2 -2
  16. package/dist/site/components/Menu/sdk.js +1 -1
  17. package/dist/site/components/ShareButtons/component.js +1 -1
  18. package/dist/site/components/Slideshow/component.js +2 -2
  19. package/dist/site/components/TextMarquee/component.js +1 -1
  20. package/dist/site/components/TimePicker/component.js +1 -1
  21. package/dist/site/components/TransparentVideo/component.js +1 -1
  22. package/dist/site/components/VideoScrub/component.js +2 -2
  23. package/dist/site/components/VideoUpload/component.js +2 -2
  24. package/dist/site/components/WRichText/WRichText.types.d.ts +1 -1
  25. package/dist/site/components/WRichText/component.js +4 -40
  26. package/dist/site/components/WRichText/manifest.js +1 -2
  27. package/dist/site/components/WRichText/sdk.js +1 -1
  28. package/dist/site/components/chunks/index.js +3 -2133
  29. package/dist/site/components/chunks/index10.js +230 -2012
  30. package/dist/site/components/chunks/index2.js +3 -3
  31. package/dist/site/components/chunks/index3.js +2 -2
  32. package/dist/site/components/chunks/index4.js +2 -2
  33. package/dist/site/components/chunks/index5.js +2133 -3
  34. package/dist/site/components/chunks/index9.js +2012 -230
  35. package/dist/site/components/chunks/parseHtml.js +2 -2
  36. package/dist/site/components/chunks/parseSvg.js +2 -2
  37. package/dist/site/components/chunks/useConsentPolicyProps.js +2 -2
  38. package/package.json +3 -3
  39. 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";
@@ -1424,10 +1424,10 @@ function useCollapsedRange(rootRef, totalItems) {
1424
1424
  }, [rootRef, totalItems]);
1425
1425
  return range;
1426
1426
  }
1427
- const SeoServiceDefinition = defineService("seo/seo-service");
1427
+ const t = defineService(`seo/seo-service`);
1428
1428
  const BREADCRUMBS_SEO_ITEM_TYPE = "BREADCRUMBS_COMPONENT";
1429
1429
  function useSeoService(items = []) {
1430
- const seoService = useService(SeoServiceDefinition);
1430
+ const seoService = useService(t);
1431
1431
  const { previewMode } = useService(EditorContextDefinition);
1432
1432
  const prevPayloadRef = useRef(null);
1433
1433
  const shouldSkip = previewMode || !(items == null ? void 0 : items.length);
@@ -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";
@@ -4,7 +4,7 @@ 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";
@@ -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";