@wix/editor-react-components 1.2647.0 → 1.2649.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.
- package/dist/site/components/AnimatedIcon/component.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +1 -1
- package/dist/site/components/Checkbox/component.js +1 -1
- package/dist/site/components/CheckboxGroup/component.js +1 -1
- package/dist/site/components/CollapsibleText/component.js +1 -1
- package/dist/site/components/DatePicker/component.js +1 -1
- package/dist/site/components/Dropdown/component.js +1 -1
- package/dist/site/components/GoogleMap/component.js +2 -2
- package/dist/site/components/HTMLComponent/component.js +1 -1
- package/dist/site/components/Image3/component.js +1 -1
- package/dist/site/components/Image3/manifest.js +4 -1
- package/dist/site/components/Line/component.js +1 -1
- package/dist/site/components/Line/manifest.js +2 -2
- package/dist/site/components/Lottie/component.js +1 -1
- package/dist/site/components/Menu/component.js +1 -1
- package/dist/site/components/Menu/sdk.js +1 -1
- package/dist/site/components/RadioButtons/component.js +1 -1
- package/dist/site/components/Slideshow/component.js +1 -1
- package/dist/site/components/SlotsPlaceholder/component.js +1 -1
- package/dist/site/components/Tabs/component.js +1 -1
- package/dist/site/components/TextBox/component.js +1 -1
- package/dist/site/components/TextInput/component.js +1 -1
- package/dist/site/components/TextMarquee/component.js +1 -1
- package/dist/site/components/TimePicker/component.js +1 -1
- package/dist/site/components/TransparentVideo/component.js +1 -1
- package/dist/site/components/VideoUpload/component.js +2 -2
- package/dist/site/components/VideoUpload/manifest.js +7 -1
- package/dist/site/components/WRichText/WRichText.types.d.ts +0 -2
- package/dist/site/components/WRichText/component.js +4 -44
- package/dist/site/components/WRichText/constants.d.ts +0 -1
- package/dist/site/components/WRichText/css.css +0 -17
- package/dist/site/components/WRichText/manifest.js +0 -18
- package/dist/site/components/WRichText/sdk.js +1 -1
- package/dist/site/components/chunks/Button.js +1 -1
- package/dist/site/components/chunks/constants.js +1 -2
- package/dist/site/components/chunks/index.js +3 -2133
- package/dist/site/components/chunks/index2.js +2 -2
- package/dist/site/components/chunks/index3.js +3 -3
- package/dist/site/components/chunks/index4.js +2133 -3
- package/dist/site/components/chunks/parseHtml.js +1 -1
- package/dist/site/components/chunks/parseSvg.js +1 -1
- package/dist/site/components/chunks/useConsentPolicyProps.js +1 -1
- package/package.json +2 -2
- package/dist/site/components/WRichText/components/demoteInlineAnchors.d.ts +0 -2
|
@@ -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 { E as EnvironmentDefinition } from "../chunks/
|
|
4
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
5
5
|
import { A as AnimatedIcon } from "../chunks/AnimatedIcon.js";
|
|
6
6
|
const AnimatedIconWithReducedMotion = forwardRef((props, ref) => {
|
|
7
7
|
const environment = useService(EnvironmentDefinition);
|
|
@@ -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 { E as EnvironmentDefinition } from "../chunks/
|
|
6
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.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/constants42.js";
|
|
@@ -10,7 +10,7 @@ import { s as semanticClassNames, D as DesignStates } from "../chunks/constants4
|
|
|
10
10
|
import { A as AnimatedIcon } from "../chunks/AnimatedIcon.js";
|
|
11
11
|
import { useService } from "@wix/services-manager-react";
|
|
12
12
|
import { d as defineService } from "../chunks/index8.js";
|
|
13
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
13
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
14
14
|
import { U as UrlDefinition } from "../chunks/index13.js";
|
|
15
15
|
const $b5e257d569688ac6$var$defaultContext = {
|
|
16
16
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
|
3
3
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
4
|
import { F as Field, e as Checkbox, T as Tooltip } from "../chunks/index12.js";
|
|
5
5
|
import { useService } from "@wix/services-manager-react";
|
|
6
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
6
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
7
7
|
import { f as formatClassNames } from "../chunks/classNames.js";
|
|
8
8
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
9
9
|
import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
|
|
@@ -3,7 +3,7 @@ import { useState, useRef } from "react";
|
|
|
3
3
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
4
|
import { a as Fieldset, T as Tooltip, d as CheckboxGroup_CheckboxGroup_CheckboxGroup, c as InfoCircle_default, e as Checkbox } from "../chunks/index12.js";
|
|
5
5
|
import { useService } from "@wix/services-manager-react";
|
|
6
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
6
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
7
7
|
import { f as formatClassNames } from "../chunks/classNames.js";
|
|
8
8
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
9
9
|
import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default, { useRef, useState, useMemo, useEffect } from "react";
|
|
3
3
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
4
|
import { useService } from "@wix/services-manager-react";
|
|
5
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
5
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
6
6
|
import { f as formatClassNames } from "../chunks/classNames.js";
|
|
7
7
|
import { p as parseHtml } from "../chunks/parseHtml.js";
|
|
8
8
|
import { e as getTabIndexAttribute } from "../chunks/a11y.js";
|
|
@@ -10,7 +10,7 @@ import { $ as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "../chunks/useLoc
|
|
|
10
10
|
import { $ as $ea3928288112382f$export$439d29a4e110a164, a as $ea3928288112382f$export$a966af930f325cab } from "../chunks/VisuallyHidden.js";
|
|
11
11
|
import __rspack_external_react_dom_7136dc57__default from "react-dom";
|
|
12
12
|
import { useService } from "@wix/services-manager-react";
|
|
13
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
13
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
14
14
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
15
15
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
16
16
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
@@ -4,7 +4,7 @@ import { useState, useCallback, useLayoutEffect, useEffect, useRef } from "react
|
|
|
4
4
|
import { c as clsx } from "../chunks/clsx.js";
|
|
5
5
|
import { C as Combobox, F as Field, B as Button_Button_Button } from "../chunks/index12.js";
|
|
6
6
|
import { useService } from "@wix/services-manager-react";
|
|
7
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
7
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
8
8
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
9
9
|
import { f as formatClassNames } from "../chunks/classNames.js";
|
|
10
10
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
@@ -8,9 +8,9 @@ import { e as getTabIndexAttribute, f as convertA11yKeysToHtmlFormat } from "../
|
|
|
8
8
|
import { createPortal } from "react-dom";
|
|
9
9
|
import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
|
|
10
10
|
import { G as GOOGLE_MAPS_DIRECTIONS_BASE_URL, M as MIN_ZOOM, a as MAX_ZOOM, T as TestIds, D as DEFAULT_ZOOM, b as MAP_IDS, c as MAP_TYPES, d as MAP_MOBILE_CONTROL_SIZE, A as API_KEY, e as DEFAULT_LOCATION, f as DefaultTranslations, g as TranslationKeys, h as TRANSLATIONS_NAMESPACES, C as COMPANY_NAME_DEFAULT, i as COMPANY_NAME_KEY, j as COMPONENT_NAME_DEFAULT, k as COMPONENT_NAME_KEY } from "../chunks/consts.js";
|
|
11
|
-
import { p as parse } from "../chunks/
|
|
11
|
+
import { p as parse } from "../chunks/index4.js";
|
|
12
12
|
import { useService } from "@wix/services-manager-react";
|
|
13
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
13
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
14
14
|
import { u as useConsentPolicyProps, C as ConsentPolicyWrapper } from "../chunks/useConsentPolicyProps.js";
|
|
15
15
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
16
16
|
import { g as getTranslation } from "../chunks/getTranslation.js";
|
|
@@ -7,7 +7,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
|
7
7
|
import { e as getTabIndexAttribute } from "../chunks/a11y.js";
|
|
8
8
|
import { useService } from "@wix/services-manager-react";
|
|
9
9
|
import { d as defineStaticService } from "../chunks/staticService.js";
|
|
10
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
10
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
11
11
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
12
12
|
import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants35.js";
|
|
13
13
|
const isBrowser = () => typeof window !== "undefined";
|
|
@@ -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/index5.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/
|
|
10
|
+
import { R as RenderingContextDefinition } from "../chunks/index3.js";
|
|
11
11
|
const image = "image__iWj48";
|
|
12
12
|
const styles = {
|
|
13
13
|
image
|
|
@@ -19,7 +19,10 @@ const manifest = {
|
|
|
19
19
|
resources: {
|
|
20
20
|
client: {
|
|
21
21
|
componentUrl: "./site/components/Image3/component.tsx",
|
|
22
|
-
moduleSpecifier: "@wix/editor-react-components/Image3"
|
|
22
|
+
moduleSpecifier: "@wix/editor-react-components/Image3",
|
|
23
|
+
dependencies: {
|
|
24
|
+
serviceDependencies: ["@wix/site-service-rendering-context"]
|
|
25
|
+
}
|
|
23
26
|
},
|
|
24
27
|
editor: {
|
|
25
28
|
componentUrl: "./site/components/Image3/component.preview.tsx"
|
|
@@ -5,7 +5,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
|
5
5
|
import { e as getTabIndexAttribute, f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
6
6
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
7
7
|
import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
|
|
8
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
8
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
9
9
|
import { useService } from "@wix/services-manager-react";
|
|
10
10
|
const semanticClassNames = {
|
|
11
11
|
root: "line"
|
|
@@ -727,7 +727,7 @@ const manifest = {
|
|
|
727
727
|
presetDefaults: {
|
|
728
728
|
layout: {
|
|
729
729
|
resizeDirection: LAYOUT.RESIZE_DIRECTION.horizontal,
|
|
730
|
-
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.
|
|
730
|
+
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.none,
|
|
731
731
|
disableStretching: false,
|
|
732
732
|
disablePositioning: false
|
|
733
733
|
},
|
|
@@ -747,7 +747,7 @@ const manifest = {
|
|
|
747
747
|
presetDefaults: {
|
|
748
748
|
layout: {
|
|
749
749
|
resizeDirection: LAYOUT.RESIZE_DIRECTION.vertical,
|
|
750
|
-
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.
|
|
750
|
+
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.none,
|
|
751
751
|
disableStretching: false,
|
|
752
752
|
disablePositioning: false
|
|
753
753
|
},
|
|
@@ -9,7 +9,7 @@ import { r as rootDataDefaults, s as semanticSelectors, A as ARIA_LABEL_NAMESPAC
|
|
|
9
9
|
import React__default, { useEffect, useState, useRef, useMemo } from "react";
|
|
10
10
|
import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
|
|
11
11
|
import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
12
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
12
|
+
import { E as EnvironmentDefinition } 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;
|
|
@@ -13,7 +13,7 @@ import { L as Link } from "../chunks/Link.js";
|
|
|
13
13
|
import { i as isEmptyObject, a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
14
14
|
import { u as useResizeObserver } from "../chunks/useResizeObserver.js";
|
|
15
15
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
16
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
16
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
17
17
|
import AnimatedIconWithReducedMotion from "../AnimatedIcon/component.js";
|
|
18
18
|
import { B as Button } from "../chunks/Button.js";
|
|
19
19
|
import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
@@ -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/
|
|
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;
|
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
|
3
3
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
4
|
import { a as Fieldset, T as Tooltip, R as RadioGroup_RadioGroup_RadioGroup, b as Radio, c as InfoCircle_default } from "../chunks/index12.js";
|
|
5
5
|
import { useService } from "@wix/services-manager-react";
|
|
6
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
6
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
7
7
|
import { f as formatClassNames } from "../chunks/classNames.js";
|
|
8
8
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
9
9
|
import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
|
|
@@ -7,7 +7,7 @@ import { B as Button } from "../chunks/Button.js";
|
|
|
7
7
|
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
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
10
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
11
11
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
12
12
|
import { g as getTranslation } from "../chunks/getTranslation.js";
|
|
13
13
|
const validateActiveSlide = (activeSlide, slidesLength) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../chunks/clsx.js";
|
|
3
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
3
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
4
4
|
import { useService } from "@wix/services-manager-react";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
const Plugin = ({ size, ...props }) => /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: size || "24", height: size || "24", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M19.35 9.16a.48.48 0 00-.7 0l-3.16 3.16-3.82-3.82 3.13-3.13a.502.502 0 10-.71-.71L11 7.79 9 5.85l-1 1-1.61 1.64a6.442 6.442 0 009.11 9.11l2.63-2.6-1.94-2 3.16-3.16a.5.5 0 000-.68zM7.09 16.89a5.45 5.45 0 010-7.68l7.7 7.69a5.45 5.45 0 01-7.7-.01zm9.34-1.63l-.94.94-7.7-7.7L9 7.27l7.7 7.7-.27.29z" }));
|
|
@@ -4,7 +4,7 @@ import { c as clsx } from "../chunks/clsx.js";
|
|
|
4
4
|
import { O as OVERFLOW_BEHAVIOR, c as classes } from "../chunks/constants20.js";
|
|
5
5
|
import { d as debounce } from "../chunks/performanceUtils.js";
|
|
6
6
|
import { useService } from "@wix/services-manager-react";
|
|
7
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
7
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
8
8
|
import { H as HAS_CUSTOM_FOCUS_CLASSNAME } from "../chunks/a11y.js";
|
|
9
9
|
const tabs = "tabs__xLDfA";
|
|
10
10
|
const tabMenu = "tab-menu__LMnG9";
|
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
|
3
3
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
4
|
import { F as Field, T as Tooltip, I as Input_Input_Input } from "../chunks/index12.js";
|
|
5
5
|
import { useService } from "@wix/services-manager-react";
|
|
6
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
6
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
7
7
|
import { f as formatClassNames } from "../chunks/classNames.js";
|
|
8
8
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
9
9
|
import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { createContext, useState, useRef, useCallback, Component, createElement, Suspense, useContext } from "react";
|
|
4
4
|
import { c as clsx } from "../chunks/clsx.js";
|
|
5
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
5
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
6
6
|
import { b as getAccessibilityAttributes, H as HAS_CUSTOM_FOCUS_CLASSNAME } from "../chunks/a11y.js";
|
|
7
7
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
8
8
|
import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
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
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
5
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
6
6
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
7
7
|
import { c as clsx } from "../chunks/clsx.js";
|
|
8
8
|
import { L as Link } from "../chunks/Link.js";
|
|
@@ -6,7 +6,7 @@ import { $ as $58246871e4652552$export$c9698ec7f05a07e1, a as $40825cdb76e74f70$
|
|
|
6
6
|
import { $ as $4e3b923658d69c60$export$8c610744efcf8a1d, a as $4e3b923658d69c60$export$28c660c63b792dea, b as $514c0188e459b4c0$export$5f1af8db9871e1d6, c as $ee014567cb39d3f0$export$f551688fc98f2e09 } from "../chunks/Tooltip.js";
|
|
7
7
|
import { $ as $2eb8e6d23f3d0cb0$export$a54013f0d02a8f82 } from "../chunks/filterDOMProps.js";
|
|
8
8
|
import { useService } from "@wix/services-manager-react";
|
|
9
|
-
import { E as EnvironmentDefinition } from "../chunks/
|
|
9
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
10
10
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
11
11
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
12
12
|
import { g as getTranslation } from "../chunks/getTranslation.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/
|
|
3
|
+
import { p as parse } from "../chunks/index4.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/index5.js";
|
|
6
6
|
import { c as clsx } from "../chunks/clsx.js";
|
|
@@ -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 { E as EnvironmentDefinition } from "../chunks/
|
|
8
|
-
import { R as RenderingContextDefinition } from "../chunks/
|
|
7
|
+
import { E as EnvironmentDefinition } 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"
|
|
@@ -19,7 +19,13 @@ const manifest = {
|
|
|
19
19
|
resources: {
|
|
20
20
|
client: {
|
|
21
21
|
componentUrl: "./site/components/VideoUpload/component.tsx",
|
|
22
|
-
moduleSpecifier: "@wix/editor-react-components/VideoUpload"
|
|
22
|
+
moduleSpecifier: "@wix/editor-react-components/VideoUpload",
|
|
23
|
+
dependencies: {
|
|
24
|
+
serviceDependencies: [
|
|
25
|
+
"@wix/site-service-rendering-context",
|
|
26
|
+
"@wix/viewer-service-environment"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
23
29
|
},
|
|
24
30
|
editor: {
|
|
25
31
|
componentUrl: "./site/components/VideoUpload/component.preview.tsx"
|
|
@@ -3,7 +3,6 @@ import { ScreenReaderSDKProps, AriaAttributesSDKProps, LangSDKProps } from '../.
|
|
|
3
3
|
import { IElementPropsSDKActions } from '../../../common/sdk/props-factories/elementPropsSDKFactory';
|
|
4
4
|
import { IClickPropsSDKActions } from '../../../common/sdk/props-factories/clickPropsSDKFactory';
|
|
5
5
|
import { default as React } from 'react';
|
|
6
|
-
import { Link } from '@wix/editor-react-types';
|
|
7
6
|
type BooleanString = 'true' | 'false';
|
|
8
7
|
type A11yRole = 'region' | 'group' | 'none' | 'status' | 'alert' | 'nav';
|
|
9
8
|
type AriaLive = 'polite' | 'assertive';
|
|
@@ -22,7 +21,6 @@ type WRichTextProps = {
|
|
|
22
21
|
html: string;
|
|
23
22
|
skin: WRichTextSkin;
|
|
24
23
|
a11y?: StyledTextA11yProps;
|
|
25
|
-
link?: Link;
|
|
26
24
|
};
|
|
27
25
|
type ListMarkersInRtlExperiment = {
|
|
28
26
|
isListInRtlEnabled: boolean;
|
|
@@ -6,9 +6,7 @@ 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, g as getAccessibilityAttributesSpread } from "../chunks/a11y.js";
|
|
8
8
|
import { p as parseHtml } from "../chunks/parseHtml.js";
|
|
9
|
-
import { i as isValidLink, L as Link } from "../chunks/Link.js";
|
|
10
9
|
import { T as TestIds } from "../chunks/constants.js";
|
|
11
|
-
import { l as libExports } from "../chunks/index.js";
|
|
12
10
|
const semanticClassNames = {
|
|
13
11
|
root: "rich-text"
|
|
14
12
|
};
|
|
@@ -26,7 +24,6 @@ const wRichTextClickableSkin = "WRichTextClickableSkin__uOAlS";
|
|
|
26
24
|
const WRichTextThemeSkin = "WRichTextThemeSkin__MmVol";
|
|
27
25
|
const wRichTextThemeSkin = "WRichTextThemeSkin__MmVol";
|
|
28
26
|
const listDirectionSpec = "list-direction-spec__FK8Gl";
|
|
29
|
-
const componentLink = "componentLink__TMksE";
|
|
30
27
|
const skinsStyle = {
|
|
31
28
|
clickable,
|
|
32
29
|
srOnly,
|
|
@@ -42,8 +39,7 @@ const skinsStyle = {
|
|
|
42
39
|
WRichTextThemeSkin,
|
|
43
40
|
wRichTextThemeSkin,
|
|
44
41
|
"list-direction-spec": "list-direction-spec__FK8Gl",
|
|
45
|
-
listDirectionSpec
|
|
46
|
-
componentLink
|
|
42
|
+
listDirectionSpec
|
|
47
43
|
};
|
|
48
44
|
function usePopupLinkEvents(htmlWrapperRef, deps = []) {
|
|
49
45
|
const trackedLinkElementsRef = useRef([]);
|
|
@@ -68,28 +64,6 @@ function usePopupLinkEvents(htmlWrapperRef, deps = []) {
|
|
|
68
64
|
return clearPopupLinkListeners;
|
|
69
65
|
}, deps);
|
|
70
66
|
}
|
|
71
|
-
const LINK_BEHAVIOUR_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
72
|
-
"href",
|
|
73
|
-
"target",
|
|
74
|
-
"rel",
|
|
75
|
-
"data-popupid",
|
|
76
|
-
"data-anchor",
|
|
77
|
-
"data-anchor-comp-id"
|
|
78
|
-
]);
|
|
79
|
-
const demoteInlineAnchors = {
|
|
80
|
-
replace: (domNode) => {
|
|
81
|
-
if (domNode.type !== "tag" || domNode.name !== "a") {
|
|
82
|
-
return void 0;
|
|
83
|
-
}
|
|
84
|
-
const anchor = domNode;
|
|
85
|
-
const keptAttributes = Object.fromEntries(
|
|
86
|
-
Object.entries(anchor.attribs).filter(
|
|
87
|
-
([name]) => !LINK_BEHAVIOUR_ATTRIBUTES.has(name)
|
|
88
|
-
)
|
|
89
|
-
);
|
|
90
|
-
return /* @__PURE__ */ jsx("span", { ...libExports.attributesToProps(keptAttributes, "span"), children: libExports.domToReact(anchor.children, demoteInlineAnchors) });
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
67
|
const ScreenReaderAffix = ({
|
|
94
68
|
text,
|
|
95
69
|
testId
|
|
@@ -112,14 +86,12 @@ const WRichText$1 = React.forwardRef((props, ref) => {
|
|
|
112
86
|
isListInRtlEnabled,
|
|
113
87
|
// Should be removed after the specs.thunderbolt.wrichtextListInRtl experiment is open to 100%
|
|
114
88
|
isClassNameToRootEnabled,
|
|
115
|
-
corvid
|
|
116
|
-
link
|
|
89
|
+
corvid
|
|
117
90
|
} = props;
|
|
118
91
|
const [isInteractive, setIsInteractive] = React.useState(false);
|
|
119
92
|
const { prefix, suffix } = screenReader || {};
|
|
120
93
|
const htmlWrapperRef = React.useRef(null);
|
|
121
|
-
|
|
122
|
-
usePopupLinkEvents(htmlWrapperRef, [html, Boolean(componentLink2)]);
|
|
94
|
+
usePopupLinkEvents(htmlWrapperRef, [html]);
|
|
123
95
|
const skinsWithContainer = [
|
|
124
96
|
"WRichTextSkin",
|
|
125
97
|
"WRichTextClickableSkin"
|
|
@@ -212,19 +184,7 @@ const WRichText$1 = React.forwardRef((props, ref) => {
|
|
|
212
184
|
testId: TestIds.screenReaderSuffixElement
|
|
213
185
|
}
|
|
214
186
|
);
|
|
215
|
-
const
|
|
216
|
-
html,
|
|
217
|
-
componentLink2 ? demoteInlineAnchors : void 0
|
|
218
|
-
);
|
|
219
|
-
const richTextElement = /* @__PURE__ */ jsx("div", { ...richTextAttributes, children: componentLink2 ? /* @__PURE__ */ jsx(
|
|
220
|
-
Link,
|
|
221
|
-
{
|
|
222
|
-
...componentLink2,
|
|
223
|
-
className: skinsStyle.componentLink,
|
|
224
|
-
dataTestId: TestIds.componentLink,
|
|
225
|
-
children: parsedHtml
|
|
226
|
-
}
|
|
227
|
-
) : parsedHtml });
|
|
187
|
+
const richTextElement = /* @__PURE__ */ jsx("div", { ...richTextAttributes, children: parseHtml(html) });
|
|
228
188
|
if (isInContainer) {
|
|
229
189
|
return /* @__PURE__ */ jsxs("div", { ...wrapperAttributes, children: [
|
|
230
190
|
prefixElement,
|
|
@@ -357,23 +357,6 @@ div) span[style*=color] {
|
|
|
357
357
|
.list-direction-spec__FK8Gl li {
|
|
358
358
|
margin-inline-start: 1.3em;
|
|
359
359
|
margin-inline-end: 0;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.componentLink__TMksE {
|
|
363
|
-
display: block;
|
|
364
|
-
color: inherit;
|
|
365
|
-
text-decoration: inherit;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
|
|
369
|
-
.supportTableDesign__Lc0ts .componentLink__TMksE > * > :first-child {
|
|
370
|
-
vertical-align: top;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
@supports (-webkit-touch-callout: none) {
|
|
374
|
-
.supportTableDesign__Lc0ts .componentLink__TMksE > * > :first-child {
|
|
375
|
-
vertical-align: top;
|
|
376
|
-
}
|
|
377
360
|
}.wrichtext__a-BNA {
|
|
378
361
|
word-wrap: break-word;
|
|
379
362
|
overflow-wrap: break-word;
|
|
@@ -61,24 +61,6 @@ const manifest = {
|
|
|
61
61
|
dataType: DATA.DATA_TYPE.richText,
|
|
62
62
|
displayName: "Text"
|
|
63
63
|
},
|
|
64
|
-
// Whole-component link, rendered around the text. No popup links: the
|
|
65
|
-
// viewer renders it from the resolved href alone.
|
|
66
|
-
link: {
|
|
67
|
-
displayName: "Link",
|
|
68
|
-
dataType: DATA.DATA_TYPE.link,
|
|
69
|
-
[DATA.DATA_TYPE.link]: {
|
|
70
|
-
linkTypes: [
|
|
71
|
-
DATA.LINK_TYPE.pageLink,
|
|
72
|
-
DATA.LINK_TYPE.dynamicPageLink,
|
|
73
|
-
DATA.LINK_TYPE.externalLink,
|
|
74
|
-
DATA.LINK_TYPE.anchorLink,
|
|
75
|
-
DATA.LINK_TYPE.edgeAnchorLinks,
|
|
76
|
-
DATA.LINK_TYPE.documentLink,
|
|
77
|
-
DATA.LINK_TYPE.emailLink,
|
|
78
|
-
DATA.LINK_TYPE.phoneLink
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
64
|
a11y: {
|
|
83
65
|
dataType: DATA.DATA_TYPE.a11y,
|
|
84
66
|
[DATA.DATA_TYPE.a11y]: {
|
|
@@ -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/
|
|
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";
|
|
@@ -12,7 +12,7 @@ import { d as activateByEnterButton, a as activateBySpaceOrEnterButton, r as rem
|
|
|
12
12
|
import { i as isValidLink } from "./Link.js";
|
|
13
13
|
import { d as defineStaticService } from "./staticService.js";
|
|
14
14
|
import { d as defineService } from "./index8.js";
|
|
15
|
-
import { E as EnvironmentDefinition } from "./
|
|
15
|
+
import { E as EnvironmentDefinition } from "./index2.js";
|
|
16
16
|
import { useService } from "@wix/services-manager-react";
|
|
17
17
|
const root = "root__IB9QF";
|
|
18
18
|
const active = "active__lpoVO";
|
|
@@ -7,8 +7,7 @@ const TestIds = {
|
|
|
7
7
|
richTextElement: "richTextElement",
|
|
8
8
|
containerElement: "containerElement",
|
|
9
9
|
screenReaderPrefixElement: "screenReaderPrefixElement",
|
|
10
|
-
screenReaderSuffixElement: "screenReaderSuffixElement"
|
|
11
|
-
componentLink: "componentLink"
|
|
10
|
+
screenReaderSuffixElement: "screenReaderSuffixElement"
|
|
12
11
|
};
|
|
13
12
|
export {
|
|
14
13
|
TestIds as T,
|