@wix/editor-react-components 1.2225.0 → 1.2226.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 +2 -2
- package/dist/site/components/AudioPlayer/component.js +2 -2
- package/dist/site/components/BoxContainer/component.js +2 -2
- package/dist/site/components/Breadcrumbs/component.js +7 -19
- package/dist/site/components/CollapsibleText/component.js +2 -2
- package/dist/site/components/GoogleMap/component.js +2 -2
- package/dist/site/components/HTMLComponent/component.js +8 -18
- package/dist/site/components/HipaaIcon/component.js +4 -5
- package/dist/site/components/Line/component.js +2 -2
- package/dist/site/components/LinkBar/component.js +2 -2
- package/dist/site/components/Lottie/component.js +2 -2
- package/dist/site/components/Menu/component.js +11 -33
- package/dist/site/components/Menu/sdk.js +2 -756
- package/dist/site/components/ShareButtons/component.js +4 -4
- package/dist/site/components/Slideshow/component.js +2 -2
- package/dist/site/components/SlotsPlaceholder/component.js +2 -2
- package/dist/site/components/Tabs/component.js +2 -2
- package/dist/site/components/TextInput/component.js +12 -25
- package/dist/site/components/TextInput/sdk.js +3 -4
- package/dist/site/components/VideoUpload/component.js +2 -2
- package/dist/site/components/WRichText/sdk.js +2 -3
- package/dist/site/components/chunks/index.js +3 -52
- package/dist/site/components/chunks/index10.js +3 -52
- package/dist/site/components/chunks/index2.js +3 -3
- package/dist/site/components/chunks/index5.js +3 -14
- package/dist/site/components/chunks/index6.js +3 -13
- package/dist/site/components/chunks/index7.js +3 -21
- package/dist/site/components/chunks/staticService.js +5 -0
- package/dist/site/components/chunks/useConsentPolicyProps.js +7 -58
- package/package.json +13 -13
- package/dist/site/components/chunks/index11.js +0 -16
- package/dist/site/components/chunks/index12.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
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 {
|
|
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
|
-
const environment = useService(
|
|
7
|
+
const environment = useService(EnvironmentDefinition);
|
|
8
8
|
const reducedMotion = environment.reducedMotion;
|
|
9
9
|
return /* @__PURE__ */ jsx(AnimatedIcon, { ...props, ref, reducedMotion });
|
|
10
10
|
});
|
|
@@ -11,7 +11,7 @@ import * as React from "react";
|
|
|
11
11
|
import React__default, { useState, useRef, useCallback, useMemo, useEffect, useContext, createContext, forwardRef, useSyncExternalStore } from "react";
|
|
12
12
|
import { c as clsx } from "../chunks/clsx.js";
|
|
13
13
|
import { useService } from "@wix/services-manager-react";
|
|
14
|
-
import {
|
|
14
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
15
15
|
import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
16
16
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
17
17
|
import Image3 from "../Image3/component.js";
|
|
@@ -4655,7 +4655,7 @@ const AudioPlayer = (props) => {
|
|
|
4655
4655
|
const audioUrl = audio == null ? void 0 : audio.url;
|
|
4656
4656
|
const title = audio == null ? void 0 : audio.title;
|
|
4657
4657
|
const artist = audio == null ? void 0 : audio.artist;
|
|
4658
|
-
const environment = useService(
|
|
4658
|
+
const environment = useService(EnvironmentDefinition);
|
|
4659
4659
|
const isSSR = ((_a = environment == null ? void 0 : environment.isSSR) == null ? void 0 : _a.call(environment)) ?? false;
|
|
4660
4660
|
const fallbackInstanceId = useRef(
|
|
4661
4661
|
`audio-player-${Math.random().toString(36).slice(2)}`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../chunks/clsx.js";
|
|
3
3
|
import { useService } from "@wix/services-manager-react";
|
|
4
|
-
import {
|
|
4
|
+
import { T as TranslationsDefinition } from "../chunks/index5.js";
|
|
5
5
|
import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants28.js";
|
|
6
6
|
const root = "root__eLvEL";
|
|
7
7
|
const styles = {
|
|
@@ -19,7 +19,7 @@ function BoxContainer({
|
|
|
19
19
|
onFocus,
|
|
20
20
|
onBlur
|
|
21
21
|
}) {
|
|
22
|
-
const { translate } = useService(
|
|
22
|
+
const { translate } = useService(TranslationsDefinition);
|
|
23
23
|
translate(ARIA_LABEL_NAMESPACE);
|
|
24
24
|
const ariaLabel = a11y == null ? void 0 : a11y["aria-label"];
|
|
25
25
|
return /* @__PURE__ */ jsx(
|
|
@@ -9,10 +9,9 @@ import { d as directionStyles } from "../chunks/direction.module.js";
|
|
|
9
9
|
import { s as semanticClassNames } from "../chunks/constants30.js";
|
|
10
10
|
import { A as AnimatedIcon } from "../chunks/AnimatedIcon.js";
|
|
11
11
|
import { useService } from "@wix/services-manager-react";
|
|
12
|
-
import { d as defineService } from "../chunks/
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { d as definitionExports$2 } from "../chunks/index11.js";
|
|
12
|
+
import { d as defineService } from "../chunks/index7.js";
|
|
13
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
14
|
+
import { U as UrlDefinition } from "../chunks/index10.js";
|
|
16
15
|
const $b5e257d569688ac6$var$defaultContext = {
|
|
17
16
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
18
17
|
current: 0
|
|
@@ -1531,7 +1530,7 @@ const BREADCRUMBS_SEO_ITEM_TYPE = "BREADCRUMBS_COMPONENT";
|
|
|
1531
1530
|
function useSeoService(items = []) {
|
|
1532
1531
|
var _a;
|
|
1533
1532
|
const seoService = useService(SeoServiceDefinition);
|
|
1534
|
-
const environment = useService(
|
|
1533
|
+
const environment = useService(EnvironmentDefinition);
|
|
1535
1534
|
const prevPayloadRef = useRef(null);
|
|
1536
1535
|
const shouldSkip = ((_a = environment == null ? void 0 : environment.getPreviewMode) == null ? void 0 : _a.call(environment)) || !(items == null ? void 0 : items.length);
|
|
1537
1536
|
const mappedItems = useMemo(
|
|
@@ -1560,18 +1559,7 @@ function useSeoService(items = []) {
|
|
|
1560
1559
|
};
|
|
1561
1560
|
}, [seoService]);
|
|
1562
1561
|
}
|
|
1563
|
-
|
|
1564
|
-
var hasRequiredDefinition;
|
|
1565
|
-
function requireDefinition() {
|
|
1566
|
-
if (hasRequiredDefinition) return definition;
|
|
1567
|
-
hasRequiredDefinition = 1;
|
|
1568
|
-
Object.defineProperty(definition, "__esModule", { value: true });
|
|
1569
|
-
definition.PagesDefinition = void 0;
|
|
1570
|
-
const services_definitions_1 = /* @__PURE__ */ requireBuild();
|
|
1571
|
-
definition.PagesDefinition = (0, services_definitions_1.defineService)("@wix/viewer-service-pages");
|
|
1572
|
-
return definition;
|
|
1573
|
-
}
|
|
1574
|
-
var definitionExports = /* @__PURE__ */ requireDefinition();
|
|
1562
|
+
const PagesDefinition = defineService("@wix/viewer-service-pages");
|
|
1575
1563
|
function buildPageUrl(path, externalBaseUrl) {
|
|
1576
1564
|
const base = externalBaseUrl.replace(/\/$/, "");
|
|
1577
1565
|
return path ? `${base}/${path}` : base;
|
|
@@ -1599,8 +1587,8 @@ function buildBreadcrumbTrail(pages, currentPageId, mainPageId, externalBaseUrl)
|
|
|
1599
1587
|
return trail.reverse();
|
|
1600
1588
|
}
|
|
1601
1589
|
function useBreadcrumbItems() {
|
|
1602
|
-
const pagesService = useService(
|
|
1603
|
-
const urlService = useService(
|
|
1590
|
+
const pagesService = useService(PagesDefinition);
|
|
1591
|
+
const urlService = useService(UrlDefinition);
|
|
1604
1592
|
if (!pagesService) {
|
|
1605
1593
|
return [];
|
|
1606
1594
|
}
|
|
@@ -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 {
|
|
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";
|
|
@@ -112,7 +112,7 @@ const noop = () => {
|
|
|
112
112
|
};
|
|
113
113
|
function CollapsibleText(props) {
|
|
114
114
|
var _a, _b, _c;
|
|
115
|
-
const environmentService = useService(
|
|
115
|
+
const environmentService = useService(EnvironmentDefinition);
|
|
116
116
|
const {
|
|
117
117
|
id,
|
|
118
118
|
className,
|
|
@@ -9,7 +9,7 @@ import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
|
|
|
9
9
|
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, A as API_KEY, d as DEFAULT_LOCATION, C as COMPANY_NAME_DEFAULT, e as COMPANY_NAME_KEY, f as COMPONENT_NAME_DEFAULT, g as COMPONENT_NAME_KEY } from "../chunks/consts.js";
|
|
10
10
|
import { p as parse } from "../chunks/index4.js";
|
|
11
11
|
import { useService } from "@wix/services-manager-react";
|
|
12
|
-
import {
|
|
12
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
13
13
|
import { u as useConsentPolicyProps, C as ConsentPolicyWrapper } from "../chunks/useConsentPolicyProps.js";
|
|
14
14
|
const mapContainer = "mapContainer__E0LTn";
|
|
15
15
|
const style = {
|
|
@@ -1891,7 +1891,7 @@ const useGoogleMapProps = (props) => {
|
|
|
1891
1891
|
};
|
|
1892
1892
|
const MapContent = forwardRef((props, forwardedRef) => {
|
|
1893
1893
|
var _a;
|
|
1894
|
-
const environment = useService(
|
|
1894
|
+
const environment = useService(EnvironmentDefinition);
|
|
1895
1895
|
const isSSR = ((_a = environment == null ? void 0 : environment.isSSR) == null ? void 0 : _a.call(environment)) ?? false;
|
|
1896
1896
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Fragment, {}), children: !isSSR && /* @__PURE__ */ jsx(GoogleMapReactInteractiveMap$1, { ...props, ref: forwardedRef }) });
|
|
1897
1897
|
});
|
|
@@ -2,12 +2,13 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as clsx } from "../chunks/clsx.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import React__default, { useRef, useCallback, useEffect, useMemo } from "react";
|
|
5
|
-
import {
|
|
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 { e as getTabIndexAttribute } from "../chunks/a11y.js";
|
|
8
8
|
import { useService } from "@wix/services-manager-react";
|
|
9
|
-
import { d as
|
|
10
|
-
import {
|
|
9
|
+
import { d as defineStaticService } from "../chunks/staticService.js";
|
|
10
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
11
|
+
import { T as TranslationsDefinition } from "../chunks/index5.js";
|
|
11
12
|
import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants28.js";
|
|
12
13
|
const isBrowser = () => typeof window !== "undefined";
|
|
13
14
|
function useIFrame({
|
|
@@ -162,18 +163,7 @@ const HTMLComponent$1 = React.forwardRef((props, forwardRef) => {
|
|
|
162
163
|
}
|
|
163
164
|
) }) });
|
|
164
165
|
});
|
|
165
|
-
|
|
166
|
-
var hasRequiredDefinition;
|
|
167
|
-
function requireDefinition() {
|
|
168
|
-
if (hasRequiredDefinition) return definition;
|
|
169
|
-
hasRequiredDefinition = 1;
|
|
170
|
-
Object.defineProperty(definition, "__esModule", { value: true });
|
|
171
|
-
definition.TopologyDefinition = void 0;
|
|
172
|
-
const static_service_1 = /* @__PURE__ */ requireDist();
|
|
173
|
-
definition.TopologyDefinition = (0, static_service_1.defineStaticService)("viewer-core/viewer-service-topology");
|
|
174
|
-
return definition;
|
|
175
|
-
}
|
|
176
|
-
var definitionExports = /* @__PURE__ */ requireDefinition();
|
|
166
|
+
const TopologyDefinition = defineStaticService("@wix/viewer-service-topology");
|
|
177
167
|
const HTML_COMPONENT_TITLE_KEY = "HTML_Settings_Aria_Tag";
|
|
178
168
|
const HTML_COMPONENT_TITLE_DEFAULT = "Embedded Content";
|
|
179
169
|
const DEFAULT_CONSENT_POLICY = "essential";
|
|
@@ -192,9 +182,9 @@ const useHTMLComponentProps = ({
|
|
|
192
182
|
shouldUseConsentPolicy
|
|
193
183
|
}) => {
|
|
194
184
|
var _a;
|
|
195
|
-
const { topology } = useService(
|
|
196
|
-
const environment = useService(
|
|
197
|
-
const { translate } = useService(
|
|
185
|
+
const { topology } = useService(TopologyDefinition);
|
|
186
|
+
const environment = useService(EnvironmentDefinition);
|
|
187
|
+
const { translate } = useService(TranslationsDefinition);
|
|
198
188
|
const consentPolicyProps = useConsentPolicyProps();
|
|
199
189
|
const memoizedProps = useMemo(() => {
|
|
200
190
|
var _a2;
|
|
@@ -1,11 +1,10 @@
|
|
|
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 {
|
|
5
|
-
import { d as defineService } from "../chunks/
|
|
4
|
+
import { T as TranslationsDefinition } from "../chunks/index5.js";
|
|
5
|
+
import { d as defineService } from "../chunks/index7.js";
|
|
6
6
|
import { T as TranslationKeys, D as DefaultTranslations, a as TRANSLATIONS_NAMESPACE } from "../chunks/constants27.js";
|
|
7
|
-
const
|
|
8
|
-
const RendererConfigurationDefinition = defineStaticService("@wix/viewer-service-renderer-configuration");
|
|
7
|
+
const RendererConfigurationDefinition = defineService("@wix/viewer-service-renderer-configuration");
|
|
9
8
|
const hipaaIcon = "hipaaIcon__VA3L3";
|
|
10
9
|
const compliant = "compliant__1NZWT";
|
|
11
10
|
const badge = "badge__zEAc-";
|
|
@@ -126,7 +125,7 @@ const HipaaIcon = ({
|
|
|
126
125
|
a11y,
|
|
127
126
|
isEditor = false
|
|
128
127
|
}) => {
|
|
129
|
-
const { translate } = useService(
|
|
128
|
+
const { translate } = useService(TranslationsDefinition);
|
|
130
129
|
const { isHipaaCompliant } = useService(RendererConfigurationDefinition);
|
|
131
130
|
const translateByKey = translate(TRANSLATIONS_NAMESPACE);
|
|
132
131
|
const t = (key) => getTranslation(translateByKey, key);
|
|
@@ -5,7 +5,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
|
5
5
|
import { f as convertA11yKeysToHtmlFormat, e as getTabIndexAttribute } 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 {
|
|
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"
|
|
@@ -28,7 +28,7 @@ const Line = (props) => {
|
|
|
28
28
|
wix
|
|
29
29
|
} = props;
|
|
30
30
|
const { getLanguageDirection } = useService(
|
|
31
|
-
|
|
31
|
+
EnvironmentDefinition
|
|
32
32
|
);
|
|
33
33
|
const environmentDirection = getLanguageDirection();
|
|
34
34
|
const presetsWrapperProps = (wix == null ? void 0 : wix.presetsWrapperProps) || {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useService } from "@wix/services-manager-react";
|
|
3
|
-
import {
|
|
3
|
+
import { T as TranslationsDefinition } from "../chunks/index5.js";
|
|
4
4
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
5
5
|
import { c as clsx } from "../chunks/clsx.js";
|
|
6
6
|
import { L as Link } from "../chunks/Link.js";
|
|
@@ -41,7 +41,7 @@ const LinkButtonIcon = ({ svg }) => {
|
|
|
41
41
|
};
|
|
42
42
|
const LinkBar = (props) => {
|
|
43
43
|
const { translate } = useService(
|
|
44
|
-
|
|
44
|
+
TranslationsDefinition
|
|
45
45
|
);
|
|
46
46
|
const translations = {
|
|
47
47
|
ariaLabel: translate(ARIA_LABEL_NAMESPACE)(ARIA_LABEL_KEY) || ARIA_LABEL_DEFAULT
|
|
@@ -10,7 +10,7 @@ import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
|
|
|
10
10
|
import React__default, { useEffect, useState, useRef, useMemo } from "react";
|
|
11
11
|
import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
12
12
|
import { useService } from "@wix/services-manager-react";
|
|
13
|
-
import {
|
|
13
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
14
14
|
var lottie$2 = { exports: {} };
|
|
15
15
|
var lottie$1 = lottie$2.exports;
|
|
16
16
|
var hasRequiredLottie;
|
|
@@ -16956,7 +16956,7 @@ function useLottie({
|
|
|
16956
16956
|
speed = rootDataDefaults.speed
|
|
16957
16957
|
}) {
|
|
16958
16958
|
var _a;
|
|
16959
|
-
const environment = useService(
|
|
16959
|
+
const environment = useService(EnvironmentDefinition);
|
|
16960
16960
|
const reducedMotion = (environment == null ? void 0 : environment.reducedMotion) ?? false;
|
|
16961
16961
|
const isSSR = ((_a = environment == null ? void 0 : environment.isSSR) == null ? void 0 : _a.call(environment)) ?? false;
|
|
16962
16962
|
const shouldUseCanvasRenderer = useMemo(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, 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 {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { U as UrlDefinition } from "../chunks/index10.js";
|
|
5
|
+
import { d as defineService } from "../chunks/index7.js";
|
|
6
|
+
import { T as TranslationsDefinition } from "../chunks/index5.js";
|
|
7
7
|
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, u as useAnimationState, c as ARIA_LABEL_NAMESPACE, t as translationsKeys } from "../chunks/constants23.js";
|
|
8
8
|
import React__default, { createContext, useContext, useMemo, useState, useCallback, useRef, useEffect, useLayoutEffect } from "react";
|
|
9
9
|
import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
|
|
@@ -14,21 +14,10 @@ import { L as Link } from "../chunks/Link.js";
|
|
|
14
14
|
import { i as isEmptyObject, a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
15
15
|
import { u as useResizeObserver } from "../chunks/useResizeObserver.js";
|
|
16
16
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
17
|
-
import {
|
|
17
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
18
18
|
import { B as Button } from "../chunks/Button.js";
|
|
19
19
|
import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
20
|
-
|
|
21
|
-
var hasRequiredDefinition$1;
|
|
22
|
-
function requireDefinition$1() {
|
|
23
|
-
if (hasRequiredDefinition$1) return definition$1;
|
|
24
|
-
hasRequiredDefinition$1 = 1;
|
|
25
|
-
Object.defineProperty(definition$1, "__esModule", { value: true });
|
|
26
|
-
definition$1.AnchorsDefinition = void 0;
|
|
27
|
-
const services_definitions_1 = /* @__PURE__ */ requireBuild();
|
|
28
|
-
definition$1.AnchorsDefinition = (0, services_definitions_1.defineService)("viewer-core/viewer-service-anchors");
|
|
29
|
-
return definition$1;
|
|
30
|
-
}
|
|
31
|
-
var definitionExports$1 = /* @__PURE__ */ requireDefinition$1();
|
|
20
|
+
const AnchorsDefinition = defineService("@wix/viewer-service-anchors");
|
|
32
21
|
const EMPTY_ANCHOR_URL = "#";
|
|
33
22
|
const MenuContext = createContext({
|
|
34
23
|
items: [],
|
|
@@ -1914,7 +1903,7 @@ const classes$1 = {
|
|
|
1914
1903
|
};
|
|
1915
1904
|
const NavbarMenu = (props) => {
|
|
1916
1905
|
const { getLanguageDirection } = useService(
|
|
1917
|
-
|
|
1906
|
+
EnvironmentDefinition
|
|
1918
1907
|
);
|
|
1919
1908
|
const siteDirection = getLanguageDirection();
|
|
1920
1909
|
const {
|
|
@@ -1947,18 +1936,7 @@ const NavbarMenu = (props) => {
|
|
|
1947
1936
|
}
|
|
1948
1937
|
);
|
|
1949
1938
|
};
|
|
1950
|
-
|
|
1951
|
-
var hasRequiredDefinition;
|
|
1952
|
-
function requireDefinition() {
|
|
1953
|
-
if (hasRequiredDefinition) return definition;
|
|
1954
|
-
hasRequiredDefinition = 1;
|
|
1955
|
-
Object.defineProperty(definition, "__esModule", { value: true });
|
|
1956
|
-
definition.SiteScrollBlockerDefinition = void 0;
|
|
1957
|
-
const services_definitions_1 = /* @__PURE__ */ requireBuild();
|
|
1958
|
-
definition.SiteScrollBlockerDefinition = (0, services_definitions_1.defineService)("viewer-core/site-scroll-blocker");
|
|
1959
|
-
return definition;
|
|
1960
|
-
}
|
|
1961
|
-
var definitionExports = /* @__PURE__ */ requireDefinition();
|
|
1939
|
+
const SiteScrollBlockerDefinition = defineService("@wix/viewer-service-site-scroll-blocker");
|
|
1962
1940
|
const dialog$1 = "dialog__8nYtn";
|
|
1963
1941
|
const backdrop = "backdrop__GPb-W";
|
|
1964
1942
|
const dialogContent = "dialogContent__Xp-X2";
|
|
@@ -2070,7 +2048,7 @@ const HamburgerMenu = ({
|
|
|
2070
2048
|
}
|
|
2071
2049
|
}
|
|
2072
2050
|
}) => {
|
|
2073
|
-
const siteScrollBlocker = useService(
|
|
2051
|
+
const siteScrollBlocker = useService(SiteScrollBlockerDefinition);
|
|
2074
2052
|
const [isOpen, setIsOpen] = useState(false);
|
|
2075
2053
|
useEffect(() => {
|
|
2076
2054
|
setIsOpen(!!isOpenProp);
|
|
@@ -2219,12 +2197,12 @@ const Menu = (props) => {
|
|
|
2219
2197
|
onItemMouseIn,
|
|
2220
2198
|
onItemMouseOut
|
|
2221
2199
|
} = props;
|
|
2222
|
-
const { getCurrentUrl } = useService(
|
|
2200
|
+
const { getCurrentUrl } = useService(UrlDefinition);
|
|
2223
2201
|
const currentUrl = getCurrentUrl();
|
|
2224
|
-
const { getActiveAnchor } = useService(
|
|
2202
|
+
const { getActiveAnchor } = useService(AnchorsDefinition);
|
|
2225
2203
|
const activeAnchor = getActiveAnchor();
|
|
2226
2204
|
const { translate } = useService(
|
|
2227
|
-
|
|
2205
|
+
TranslationsDefinition
|
|
2228
2206
|
);
|
|
2229
2207
|
const translations = {
|
|
2230
2208
|
menuNavAriaLabel: translate(ARIA_LABEL_NAMESPACE)(translationsKeys.menuNavAriaLabel) || defaultTranslations.menuNavAriaLabel,
|