@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,8 +1,8 @@
|
|
|
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 {
|
|
5
|
-
import {
|
|
4
|
+
import { T as TranslationsDefinition } from "../chunks/index5.js";
|
|
5
|
+
import { U as UrlDefinition } from "../chunks/index10.js";
|
|
6
6
|
import { useService } from "@wix/services-manager-react";
|
|
7
7
|
import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
|
|
8
8
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
@@ -360,8 +360,8 @@ const shareButtonsStyles = {
|
|
|
360
360
|
};
|
|
361
361
|
const ShareButtons = (props) => {
|
|
362
362
|
var _a;
|
|
363
|
-
const { translate } = useService(
|
|
364
|
-
const { getCurrentUrl, getExternalBaseUrl } = useService(
|
|
363
|
+
const { translate } = useService(TranslationsDefinition);
|
|
364
|
+
const { getCurrentUrl, getExternalBaseUrl } = useService(UrlDefinition);
|
|
365
365
|
const memoizedProps = useMemo(() => {
|
|
366
366
|
const translations = translationKeys.reduce(
|
|
367
367
|
(acc, key) => {
|
|
@@ -6,7 +6,7 @@ import { B as Button } from "../chunks/Button.js";
|
|
|
6
6
|
import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
|
|
7
7
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
8
8
|
import { useService } from "@wix/services-manager-react";
|
|
9
|
-
import {
|
|
9
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
10
10
|
const validateActiveSlide = (activeSlide, slidesLength) => {
|
|
11
11
|
if (activeSlide === void 0) {
|
|
12
12
|
return void 0;
|
|
@@ -544,7 +544,7 @@ const Slideshow = (props) => {
|
|
|
544
544
|
onMouseIn,
|
|
545
545
|
onMouseOut
|
|
546
546
|
} = props;
|
|
547
|
-
const environmentService = useService(
|
|
547
|
+
const environmentService = useService(EnvironmentDefinition);
|
|
548
548
|
const siteDirection = environmentService.getLanguageDirection();
|
|
549
549
|
const isSlideLtrDirectionOpen = ((_a = environmentService == null ? void 0 : environmentService.isExperimentOpen) == null ? void 0 : _a.call(
|
|
550
550
|
environmentService,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../chunks/clsx.js";
|
|
3
|
-
import {
|
|
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" }));
|
|
@@ -13,7 +13,7 @@ const classes = {
|
|
|
13
13
|
const Wrapper = ({ children, ...props }) => /* @__PURE__ */ jsx("div", { ...props, children });
|
|
14
14
|
const SlotsPlaceholder = (props) => {
|
|
15
15
|
const { id, className, content, a11y } = props;
|
|
16
|
-
const { getPreviewMode } = useService(
|
|
16
|
+
const { getPreviewMode } = useService(EnvironmentDefinition);
|
|
17
17
|
const isEmptySlot = !content;
|
|
18
18
|
const wrapperProps = {
|
|
19
19
|
...a11y,
|
|
@@ -4,7 +4,7 @@ import { c as clsx } from "../chunks/clsx.js";
|
|
|
4
4
|
import { O as OVERFLOW_BEHAVIOR, c as classes } from "../chunks/constants16.js";
|
|
5
5
|
import { d as debounce } from "../chunks/performanceUtils.js";
|
|
6
6
|
import { useService } from "@wix/services-manager-react";
|
|
7
|
-
import {
|
|
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";
|
|
@@ -273,7 +273,7 @@ const useTabsTransition = ({
|
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
const useResolvedDirection = (direction) => {
|
|
276
|
-
const environmentService = useService(
|
|
276
|
+
const environmentService = useService(EnvironmentDefinition);
|
|
277
277
|
const siteDirection = environmentService.getLanguageDirection();
|
|
278
278
|
return direction || siteDirection;
|
|
279
279
|
};
|
|
@@ -2,14 +2,14 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { Component, createElement, createContext, Suspense, useContext, useRef, useEffect, useMemo, useState, useCallback } from "react";
|
|
4
4
|
import { c as clsx } from "../chunks/clsx.js";
|
|
5
|
-
import {
|
|
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
|
-
import
|
|
9
|
-
import {
|
|
8
|
+
import { useService } from "@wix/services-manager-react";
|
|
9
|
+
import { T as TranslationsDefinition } from "../chunks/index5.js";
|
|
10
10
|
import { $ as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f, a as $f39a9eba43920ace$export$86427a43e3e48ebb, b as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $64fa3d84918910a7$export$fabf2dc03a41866e, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, f as $64fa3d84918910a7$export$ef03459518577ad4, g as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, h as $64fa3d84918910a7$export$2881499e37b75b9a } from "../chunks/filterDOMProps.js";
|
|
11
11
|
import { $ as $c4867b2f328c2698$export$e5c5a5f917a5871c, a as $fe16bffc7a557bf0$export$7f54fc3180508a52, b as $8f5a2122b0992be3$export$8397ddfc504fdb9a, c as $23f2114a1b82827e$export$e58f029f0fbfdb29, d as $0beb20c9744a2065$export$8467354a121f1b9f, e as $390e54f620492c70$export$b4cc09c592e8fdb8, f as $bbaa08b3cd72f041$export$9d1611c77c2fe928, g as $3e6197669829fe11$export$40bfa8c7b0832715, h as $d1116acdf220c2da$export$4c014de7c8940b4c, i as $3274bf1495747a7b$export$5add1d006293d136, j as $e969f22b6713ca4a$export$ae780daf29e6d456, k as $0c4a58759813079a$export$4e328f61c538687f, l as $01b77f81d0f07f68$export$75b6ee27786ba447, m as $a049562f99e7db0e$export$f9c6924e160136d1, n as $01b77f81d0f07f68$export$b04be29aa201d4f5 } from "../chunks/Group.js";
|
|
12
|
-
import {
|
|
12
|
+
import { S as SdkStateDefinition } from "../chunks/index6.js";
|
|
13
13
|
const ABORT_SIGNAL_TIMEOUT = 5e3;
|
|
14
14
|
function createTimeoutSignal(timeout) {
|
|
15
15
|
if (typeof AbortSignal.timeout === "function") {
|
|
@@ -854,23 +854,10 @@ const $bcdf0525bf22703d$export$2c73285ae9390cec = /* @__PURE__ */ $f39a9eba43920
|
|
|
854
854
|
]
|
|
855
855
|
}, renderProps.children));
|
|
856
856
|
});
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
hasRequiredHelpers = 1;
|
|
862
|
-
Object.defineProperty(helpers, "__esModule", { value: true });
|
|
863
|
-
helpers.useSdkState = void 0;
|
|
864
|
-
const services_manager_react_1 = require$$0;
|
|
865
|
-
const definition_1 = /* @__PURE__ */ requireDefinition();
|
|
866
|
-
const useSdkState = (componentId, key, defaultValue) => {
|
|
867
|
-
const $sig = (0, services_manager_react_1.useService)(definition_1.SdkStateDefinition).for(componentId).getSignal(key, defaultValue);
|
|
868
|
-
return [$sig.get(), (value) => $sig.set(value)];
|
|
869
|
-
};
|
|
870
|
-
helpers.useSdkState = useSdkState;
|
|
871
|
-
return helpers;
|
|
872
|
-
}
|
|
873
|
-
var helpersExports = /* @__PURE__ */ requireHelpers();
|
|
857
|
+
const useSdkState = (componentId, key, defaultValue) => {
|
|
858
|
+
const $sig = useService(SdkStateDefinition).for(componentId).getSignal(key, defaultValue);
|
|
859
|
+
return [$sig.get(), (value) => $sig.set(value)];
|
|
860
|
+
};
|
|
874
861
|
const noop = () => {
|
|
875
862
|
};
|
|
876
863
|
const TextInput = (props, ref) => {
|
|
@@ -913,13 +900,13 @@ const TextInput = (props, ref) => {
|
|
|
913
900
|
contentRef
|
|
914
901
|
} = props;
|
|
915
902
|
const { isExperimentOpen, getPreviewMode, language } = useService(
|
|
916
|
-
|
|
903
|
+
EnvironmentDefinition
|
|
917
904
|
);
|
|
918
905
|
const { translate } = useService(
|
|
919
|
-
|
|
906
|
+
TranslationsDefinition
|
|
920
907
|
);
|
|
921
|
-
const [sdkValue, setSdkValue] =
|
|
922
|
-
const [sdkValidityIndication, setSdkValidityIndication] =
|
|
908
|
+
const [sdkValue, setSdkValue] = useSdkState(props.wix.wixPath, "value", "");
|
|
909
|
+
const [sdkValidityIndication, setSdkValidityIndication] = useSdkState(
|
|
923
910
|
props.wix.wixPath,
|
|
924
911
|
"shouldShowValidityIndication",
|
|
925
912
|
false
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { c as composeSDKFactories } from "../chunks/composeSDKFactories.js";
|
|
2
2
|
import { c as createA11ySdk } from "../chunks/a11ySdk.js";
|
|
3
|
-
import {
|
|
4
|
-
var definitionExports = /* @__PURE__ */ requireDefinition();
|
|
3
|
+
import { S as SdkStateDefinition } from "../chunks/index6.js";
|
|
5
4
|
const createValueSdkFactory = ({ valueProperty }) => (api) => {
|
|
6
5
|
const { props, getService } = api;
|
|
7
|
-
const sdkService = getService(
|
|
6
|
+
const sdkService = getService(SdkStateDefinition);
|
|
8
7
|
const sdkState = sdkService.for(props.wix.wixPath);
|
|
9
8
|
return {
|
|
10
9
|
get value() {
|
|
@@ -17,7 +16,7 @@ const createValueSdkFactory = ({ valueProperty }) => (api) => {
|
|
|
17
16
|
};
|
|
18
17
|
const createValiditySdkFactory = ({ validityIndicationProperty }) => (api) => {
|
|
19
18
|
const { props, getService } = api;
|
|
20
|
-
const sdkService = getService(
|
|
19
|
+
const sdkService = getService(SdkStateDefinition);
|
|
21
20
|
const sdkState = sdkService.for(props.wix.wixPath);
|
|
22
21
|
return {
|
|
23
22
|
get validityIndication() {
|
|
@@ -4,7 +4,7 @@ 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 {
|
|
7
|
+
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
8
8
|
const semanticClassNames = {
|
|
9
9
|
root: "video-upload",
|
|
10
10
|
title: "video-upload__title"
|
|
@@ -2262,7 +2262,7 @@ const VideoUpload = ({
|
|
|
2262
2262
|
};
|
|
2263
2263
|
function component(props) {
|
|
2264
2264
|
const video = props.video ?? defaultVideo;
|
|
2265
|
-
const environment = useService(
|
|
2265
|
+
const environment = useService(EnvironmentDefinition);
|
|
2266
2266
|
const reducedMotion = (environment == null ? void 0 : environment.reducedMotion) ?? false;
|
|
2267
2267
|
const autoplay = !reducedMotion && props.autoplay;
|
|
2268
2268
|
return /* @__PURE__ */ jsx(VideoUpload, { ...props, autoplay, video });
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { c as createA11ySdk } from "../chunks/a11ySdk.js";
|
|
2
2
|
import { s as sanitizeHTML } from "../chunks/sanitizeHTML.js";
|
|
3
|
-
import {
|
|
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";
|
|
7
7
|
import { c as composeSDKFactories } from "../chunks/composeSDKFactories.js";
|
|
8
|
-
var definitionExports = /* @__PURE__ */ requireDefinition();
|
|
9
8
|
function flow(...fns) {
|
|
10
9
|
return (value) => fns.reduce((output, fn) => fn(output), value);
|
|
11
10
|
}
|
|
@@ -508,7 +507,7 @@ const getText = (html) => html ? decode(
|
|
|
508
507
|
const WRICHTEXT_SDK_TYPE = wixCodeName;
|
|
509
508
|
const createWRichTextSdk = (api) => {
|
|
510
509
|
const { props, setProps, getService } = api;
|
|
511
|
-
const linkUtils = getService(
|
|
510
|
+
const linkUtils = getService(LinkUtilsDefinition);
|
|
512
511
|
const convertLinksForSetter = (str) => convertLinkProperties(str, linkUtils.getLinkProps);
|
|
513
512
|
const convertLinksForGetter = (str) => {
|
|
514
513
|
convertLinkProperties(str, linkUtils.getLinkProps, linkUtils.getLink);
|
|
@@ -1,54 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var dist = {};
|
|
4
|
-
var staticService = {};
|
|
5
|
-
var hasRequiredStaticService;
|
|
6
|
-
function requireStaticService() {
|
|
7
|
-
if (hasRequiredStaticService) return staticService;
|
|
8
|
-
hasRequiredStaticService = 1;
|
|
9
|
-
Object.defineProperty(staticService, "__esModule", { value: true });
|
|
10
|
-
staticService.implementStaticService = staticService.defineStaticService = void 0;
|
|
11
|
-
const services_definitions_1 = /* @__PURE__ */ requireBuild();
|
|
12
|
-
staticService.defineStaticService = services_definitions_1.defineService;
|
|
13
|
-
staticService.implementStaticService = services_definitions_1.implementService;
|
|
14
|
-
return staticService;
|
|
15
|
-
}
|
|
16
|
-
var hasRequiredDist;
|
|
17
|
-
function requireDist() {
|
|
18
|
-
if (hasRequiredDist) return dist;
|
|
19
|
-
hasRequiredDist = 1;
|
|
20
|
-
(function(exports$1) {
|
|
21
|
-
var __createBinding = dist && dist.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
22
|
-
if (k2 === void 0) k2 = k;
|
|
23
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
24
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
25
|
-
desc = { enumerable: true, get: function() {
|
|
26
|
-
return m[k];
|
|
27
|
-
} };
|
|
28
|
-
}
|
|
29
|
-
Object.defineProperty(o, k2, desc);
|
|
30
|
-
}) : (function(o, m, k, k2) {
|
|
31
|
-
if (k2 === void 0) k2 = k;
|
|
32
|
-
o[k2] = m[k];
|
|
33
|
-
}));
|
|
34
|
-
var __exportStar = dist && dist.__exportStar || function(m, exports$12) {
|
|
35
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$12, p)) __createBinding(exports$12, m, p);
|
|
36
|
-
};
|
|
37
|
-
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
38
|
-
__exportStar(/* @__PURE__ */ requireStaticService(), exports$1);
|
|
39
|
-
})(dist);
|
|
40
|
-
return dist;
|
|
41
|
-
}
|
|
42
|
-
var hasRequiredDefinition;
|
|
43
|
-
function requireDefinition() {
|
|
44
|
-
if (hasRequiredDefinition) return definition;
|
|
45
|
-
hasRequiredDefinition = 1;
|
|
46
|
-
Object.defineProperty(definition, "__esModule", { value: true });
|
|
47
|
-
definition.LinkUtilsDefinition = void 0;
|
|
48
|
-
const static_service_1 = /* @__PURE__ */ requireDist();
|
|
49
|
-
definition.LinkUtilsDefinition = (0, static_service_1.defineStaticService)("viewer-core/viewer-service-link-utils");
|
|
50
|
-
return definition;
|
|
51
|
-
}
|
|
1
|
+
import { d as defineStaticService } from "./staticService.js";
|
|
2
|
+
const LinkUtilsDefinition = defineStaticService("@wix/viewer-service-link-utils");
|
|
52
3
|
export {
|
|
53
|
-
|
|
4
|
+
LinkUtilsDefinition as L
|
|
54
5
|
};
|
|
@@ -1,54 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var dist = {};
|
|
4
|
-
var staticService = {};
|
|
5
|
-
var hasRequiredStaticService;
|
|
6
|
-
function requireStaticService() {
|
|
7
|
-
if (hasRequiredStaticService) return staticService;
|
|
8
|
-
hasRequiredStaticService = 1;
|
|
9
|
-
Object.defineProperty(staticService, "__esModule", { value: true });
|
|
10
|
-
staticService.implementStaticService = staticService.defineStaticService = void 0;
|
|
11
|
-
const services_definitions_1 = /* @__PURE__ */ requireBuild();
|
|
12
|
-
staticService.defineStaticService = services_definitions_1.defineService;
|
|
13
|
-
staticService.implementStaticService = services_definitions_1.implementService;
|
|
14
|
-
return staticService;
|
|
15
|
-
}
|
|
16
|
-
var hasRequiredDist;
|
|
17
|
-
function requireDist() {
|
|
18
|
-
if (hasRequiredDist) return dist;
|
|
19
|
-
hasRequiredDist = 1;
|
|
20
|
-
(function(exports$1) {
|
|
21
|
-
var __createBinding = dist && dist.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
22
|
-
if (k2 === void 0) k2 = k;
|
|
23
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
24
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
25
|
-
desc = { enumerable: true, get: function() {
|
|
26
|
-
return m[k];
|
|
27
|
-
} };
|
|
28
|
-
}
|
|
29
|
-
Object.defineProperty(o, k2, desc);
|
|
30
|
-
}) : (function(o, m, k, k2) {
|
|
31
|
-
if (k2 === void 0) k2 = k;
|
|
32
|
-
o[k2] = m[k];
|
|
33
|
-
}));
|
|
34
|
-
var __exportStar = dist && dist.__exportStar || function(m, exports$12) {
|
|
35
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$12, p)) __createBinding(exports$12, m, p);
|
|
36
|
-
};
|
|
37
|
-
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
38
|
-
__exportStar(/* @__PURE__ */ requireStaticService(), exports$1);
|
|
39
|
-
})(dist);
|
|
40
|
-
return dist;
|
|
41
|
-
}
|
|
42
|
-
var hasRequiredDefinition;
|
|
43
|
-
function requireDefinition() {
|
|
44
|
-
if (hasRequiredDefinition) return definition;
|
|
45
|
-
hasRequiredDefinition = 1;
|
|
46
|
-
Object.defineProperty(definition, "__esModule", { value: true });
|
|
47
|
-
definition.EnvironmentDefinition = void 0;
|
|
48
|
-
const static_service_1 = /* @__PURE__ */ requireDist();
|
|
49
|
-
definition.EnvironmentDefinition = (0, static_service_1.defineStaticService)("viewer-core/viewer-service-environment");
|
|
50
|
-
return definition;
|
|
51
|
-
}
|
|
1
|
+
import { d as defineService } from "./index7.js";
|
|
2
|
+
const UrlDefinition = defineService("@wix/viewer-service-url");
|
|
52
3
|
export {
|
|
53
|
-
|
|
4
|
+
UrlDefinition as U
|
|
54
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { d as defineStaticService } from "./staticService.js";
|
|
2
|
+
const EnvironmentDefinition = defineStaticService("@wix/viewer-service-environment");
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
EnvironmentDefinition as E
|
|
5
5
|
};
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var hasRequiredDefinition;
|
|
4
|
-
function requireDefinition() {
|
|
5
|
-
if (hasRequiredDefinition) return definition;
|
|
6
|
-
hasRequiredDefinition = 1;
|
|
7
|
-
Object.defineProperty(definition, "__esModule", { value: true });
|
|
8
|
-
definition.TranslationsDefinition = void 0;
|
|
9
|
-
const services_definitions_1 = /* @__PURE__ */ requireBuild();
|
|
10
|
-
definition.TranslationsDefinition = (0, services_definitions_1.defineService)("viewer-core/translations");
|
|
11
|
-
return definition;
|
|
12
|
-
}
|
|
13
|
-
var definitionExports = /* @__PURE__ */ requireDefinition();
|
|
1
|
+
import { d as defineService } from "./index7.js";
|
|
2
|
+
const TranslationsDefinition = defineService("@wix/viewer-service-translations");
|
|
14
3
|
export {
|
|
15
|
-
|
|
4
|
+
TranslationsDefinition as T
|
|
16
5
|
};
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var hasRequiredDefinition;
|
|
4
|
-
function requireDefinition() {
|
|
5
|
-
if (hasRequiredDefinition) return definition;
|
|
6
|
-
hasRequiredDefinition = 1;
|
|
7
|
-
Object.defineProperty(definition, "__esModule", { value: true });
|
|
8
|
-
definition.SdkStateDefinition = void 0;
|
|
9
|
-
const services_definitions_1 = /* @__PURE__ */ requireBuild();
|
|
10
|
-
definition.SdkStateDefinition = (0, services_definitions_1.defineService)("viewer-core/sdk-state");
|
|
11
|
-
return definition;
|
|
12
|
-
}
|
|
1
|
+
import { d as defineService } from "./index7.js";
|
|
2
|
+
const SdkStateDefinition = defineService("@wix/viewer-service-sdk-state");
|
|
13
3
|
export {
|
|
14
|
-
|
|
4
|
+
SdkStateDefinition as S
|
|
15
5
|
};
|
|
@@ -1,24 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function requireBuild() {
|
|
4
|
-
if (hasRequiredBuild) return build;
|
|
5
|
-
hasRequiredBuild = 1;
|
|
6
|
-
Object.defineProperty(build, "__esModule", { value: true });
|
|
7
|
-
build.defineService = defineService;
|
|
8
|
-
build.implementService = implementService;
|
|
9
|
-
function defineService(id) {
|
|
10
|
-
return id;
|
|
11
|
-
}
|
|
12
|
-
function implementService(_, factory) {
|
|
13
|
-
return factory;
|
|
14
|
-
}
|
|
15
|
-
implementService.withConfig = function() {
|
|
16
|
-
return function(_, factory) {
|
|
17
|
-
return factory;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
return build;
|
|
1
|
+
function defineService(id) {
|
|
2
|
+
return id;
|
|
21
3
|
}
|
|
22
4
|
export {
|
|
23
|
-
|
|
5
|
+
defineService as d
|
|
24
6
|
};
|
|
@@ -8,9 +8,9 @@ import * as ReactDOM from "react-dom";
|
|
|
8
8
|
import ReactDOM__default from "react-dom";
|
|
9
9
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
10
10
|
import { useService } from "@wix/services-manager-react";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { E as EnvironmentDefinition } from "./index2.js";
|
|
12
|
+
import { T as TranslationsDefinition } from "./index5.js";
|
|
13
|
+
import { d as defineStaticService } from "./staticService.js";
|
|
14
14
|
const CONSENT_POLICY_NAMESPACE = "CookieConsent";
|
|
15
15
|
const DataHooks = {
|
|
16
16
|
NoConsentBox: "consent-policy-no-consent-box"
|
|
@@ -2249,67 +2249,17 @@ const ConsentPolicyWrapper = (props) => {
|
|
|
2249
2249
|
}
|
|
2250
2250
|
);
|
|
2251
2251
|
};
|
|
2252
|
-
|
|
2253
|
-
var staticService = {};
|
|
2254
|
-
var hasRequiredStaticService;
|
|
2255
|
-
function requireStaticService() {
|
|
2256
|
-
if (hasRequiredStaticService) return staticService;
|
|
2257
|
-
hasRequiredStaticService = 1;
|
|
2258
|
-
Object.defineProperty(staticService, "__esModule", { value: true });
|
|
2259
|
-
staticService.implementStaticService = staticService.defineStaticService = void 0;
|
|
2260
|
-
const services_definitions_1 = /* @__PURE__ */ requireBuild();
|
|
2261
|
-
staticService.defineStaticService = services_definitions_1.defineService;
|
|
2262
|
-
staticService.implementStaticService = services_definitions_1.implementService;
|
|
2263
|
-
return staticService;
|
|
2264
|
-
}
|
|
2265
|
-
var hasRequiredDist;
|
|
2266
|
-
function requireDist() {
|
|
2267
|
-
if (hasRequiredDist) return dist;
|
|
2268
|
-
hasRequiredDist = 1;
|
|
2269
|
-
(function(exports$1) {
|
|
2270
|
-
var __createBinding = dist && dist.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
2271
|
-
if (k2 === void 0) k2 = k;
|
|
2272
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2273
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2274
|
-
desc = { enumerable: true, get: function() {
|
|
2275
|
-
return m[k];
|
|
2276
|
-
} };
|
|
2277
|
-
}
|
|
2278
|
-
Object.defineProperty(o, k2, desc);
|
|
2279
|
-
}) : (function(o, m, k, k2) {
|
|
2280
|
-
if (k2 === void 0) k2 = k;
|
|
2281
|
-
o[k2] = m[k];
|
|
2282
|
-
}));
|
|
2283
|
-
var __exportStar = dist && dist.__exportStar || function(m, exports$12) {
|
|
2284
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$12, p)) __createBinding(exports$12, m, p);
|
|
2285
|
-
};
|
|
2286
|
-
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
2287
|
-
__exportStar(/* @__PURE__ */ requireStaticService(), exports$1);
|
|
2288
|
-
})(dist);
|
|
2289
|
-
return dist;
|
|
2290
|
-
}
|
|
2291
|
-
var definition = {};
|
|
2292
|
-
var hasRequiredDefinition;
|
|
2293
|
-
function requireDefinition() {
|
|
2294
|
-
if (hasRequiredDefinition) return definition;
|
|
2295
|
-
hasRequiredDefinition = 1;
|
|
2296
|
-
Object.defineProperty(definition, "__esModule", { value: true });
|
|
2297
|
-
definition.ConsentPolicyDefinition = void 0;
|
|
2298
|
-
const static_service_1 = /* @__PURE__ */ requireDist();
|
|
2299
|
-
definition.ConsentPolicyDefinition = (0, static_service_1.defineStaticService)("viewer-core/viewer-service-consent-policy");
|
|
2300
|
-
return definition;
|
|
2301
|
-
}
|
|
2302
|
-
var definitionExports = /* @__PURE__ */ requireDefinition();
|
|
2252
|
+
const ConsentPolicyDefinition = defineStaticService("@wix/viewer-service-consent-policy");
|
|
2303
2253
|
const consentPolicyKeys = {
|
|
2304
2254
|
componentNameKey: "CookieConsent_Dataset_Component_HtmlComponent",
|
|
2305
2255
|
componentNameDefault: "Html Component"
|
|
2306
2256
|
};
|
|
2307
2257
|
const useConsentPolicyProps = () => {
|
|
2308
2258
|
var _a;
|
|
2309
|
-
const environment = useService(
|
|
2310
|
-
const translationService = useService(
|
|
2259
|
+
const environment = useService(EnvironmentDefinition);
|
|
2260
|
+
const translationService = useService(TranslationsDefinition);
|
|
2311
2261
|
const { translate } = translationService || { translate: () => () => "" };
|
|
2312
|
-
const consentPolicy = useService(
|
|
2262
|
+
const consentPolicy = useService(ConsentPolicyDefinition);
|
|
2313
2263
|
const isPreview = (_a = environment == null ? void 0 : environment.getPreviewMode) == null ? void 0 : _a.call(environment);
|
|
2314
2264
|
const [currentConsentPolicy, setCurrentConsentPolicy] = useState(
|
|
2315
2265
|
() => {
|
|
@@ -2351,6 +2301,5 @@ const useConsentPolicyProps = () => {
|
|
|
2351
2301
|
};
|
|
2352
2302
|
export {
|
|
2353
2303
|
ConsentPolicyWrapper as C,
|
|
2354
|
-
requireDist as r,
|
|
2355
2304
|
useConsentPolicyProps as u
|
|
2356
2305
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2226.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@wix/image-kit": "^1.118.0",
|
|
123
123
|
"@wix/janet-build": "^1.0.10",
|
|
124
124
|
"@wix/janet-dev-server": "^1.16.22",
|
|
125
|
-
"@wix/mappers-legacy-service": "^1.0.
|
|
125
|
+
"@wix/mappers-legacy-service": "^1.0.85",
|
|
126
126
|
"@wix/media": "^1.0.261",
|
|
127
127
|
"@wix/react-component-schema": "^1.7.0",
|
|
128
128
|
"@wix/seo-service": "^1.5.0",
|
|
@@ -130,16 +130,16 @@
|
|
|
130
130
|
"@wix/thunderbolt-components-native": "^1.0.0",
|
|
131
131
|
"@wix/thunderbolt-elements": "^1.0.0",
|
|
132
132
|
"@wix/thunderbolt-symbols": "^1.1977.3146",
|
|
133
|
-
"@wix/viewer-service-anchors": "^1.0.
|
|
134
|
-
"@wix/viewer-service-environment": "^1.0.
|
|
135
|
-
"@wix/viewer-service-link-utils": "^1.0.
|
|
136
|
-
"@wix/viewer-service-pages": "^1.0.
|
|
137
|
-
"@wix/viewer-service-renderer-configuration": "^1.0.
|
|
138
|
-
"@wix/viewer-service-sdk-state": "^1.0.
|
|
139
|
-
"@wix/viewer-service-site-scroll-blocker": "^1.0.
|
|
140
|
-
"@wix/viewer-service-topology": "^1.0.
|
|
141
|
-
"@wix/viewer-service-translations": "^1.0.
|
|
142
|
-
"@wix/viewer-service-url": "^1.0.
|
|
133
|
+
"@wix/viewer-service-anchors": "^1.0.40",
|
|
134
|
+
"@wix/viewer-service-environment": "^1.0.47",
|
|
135
|
+
"@wix/viewer-service-link-utils": "^1.0.62",
|
|
136
|
+
"@wix/viewer-service-pages": "^1.0.9",
|
|
137
|
+
"@wix/viewer-service-renderer-configuration": "^1.0.6",
|
|
138
|
+
"@wix/viewer-service-sdk-state": "^1.0.28",
|
|
139
|
+
"@wix/viewer-service-site-scroll-blocker": "^1.0.63",
|
|
140
|
+
"@wix/viewer-service-topology": "^1.0.26",
|
|
141
|
+
"@wix/viewer-service-translations": "^1.0.22",
|
|
142
|
+
"@wix/viewer-service-url": "^1.0.69",
|
|
143
143
|
"@wix/zero-config": "^1.85.0",
|
|
144
144
|
"astro": "^5.16.6",
|
|
145
145
|
"clsx": "2.0.0",
|
|
@@ -188,5 +188,5 @@
|
|
|
188
188
|
"registry": "https://registry.npmjs.org/",
|
|
189
189
|
"access": "public"
|
|
190
190
|
},
|
|
191
|
-
"falconPackageHash": "
|
|
191
|
+
"falconPackageHash": "d36630c4bfa1f8e7ac7eb046cda2b9f00a6f64c3ade0e8689e4d95f6"
|
|
192
192
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { r as requireBuild } from "./index7.js";
|
|
2
|
-
var definition = {};
|
|
3
|
-
var hasRequiredDefinition;
|
|
4
|
-
function requireDefinition() {
|
|
5
|
-
if (hasRequiredDefinition) return definition;
|
|
6
|
-
hasRequiredDefinition = 1;
|
|
7
|
-
Object.defineProperty(definition, "__esModule", { value: true });
|
|
8
|
-
definition.UrlDefinition = void 0;
|
|
9
|
-
const services_definitions_1 = /* @__PURE__ */ requireBuild();
|
|
10
|
-
definition.UrlDefinition = (0, services_definitions_1.defineService)("viewer-core/viewer-service-url");
|
|
11
|
-
return definition;
|
|
12
|
-
}
|
|
13
|
-
var definitionExports = /* @__PURE__ */ requireDefinition();
|
|
14
|
-
export {
|
|
15
|
-
definitionExports as d
|
|
16
|
-
};
|