@wix/editor-react-components 1.2832.0 → 1.2833.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 (105) hide show
  1. package/dist/site/components/AccordionComponent/component.js +2 -2
  2. package/dist/site/components/AccordionComponent/manifest.js +2 -2
  3. package/dist/site/components/AnimatedIcon/component.js +2 -3
  4. package/dist/site/components/AnimatedIcon/manifest.js +2 -2
  5. package/dist/site/components/AudioPlayer/component.js +9 -10
  6. package/dist/site/components/AudioPlayer/manifest.js +2 -2
  7. package/dist/site/components/BoxContainer/component.js +1 -2
  8. package/dist/site/components/Breadcrumbs/component.js +14 -15
  9. package/dist/site/components/Breadcrumbs/manifest.js +6 -6
  10. package/dist/site/components/Breadcrumbs/useBreadcrumbItems.d.ts +3 -1
  11. package/dist/site/components/Button/manifest.js +8 -2
  12. package/dist/site/components/Checkbox/component.js +4 -5
  13. package/dist/site/components/Checkbox/manifest.js +8 -2
  14. package/dist/site/components/CheckboxGroup/component.js +4 -5
  15. package/dist/site/components/CheckboxGroup/manifest.js +8 -2
  16. package/dist/site/components/CollapsibleText/component.js +3 -4
  17. package/dist/site/components/CollapsibleText/manifest.js +12 -2
  18. package/dist/site/components/DatePicker/component.js +4 -4
  19. package/dist/site/components/DatePicker/manifest.js +4 -2
  20. package/dist/site/components/Dropdown/component.js +3 -3
  21. package/dist/site/components/Dropdown/manifest.js +2 -1
  22. package/dist/site/components/GoogleMap/component.js +5 -6
  23. package/dist/site/components/GoogleMap/manifest.js +5 -1
  24. package/dist/site/components/HTMLComponent/component.js +15 -18
  25. package/dist/site/components/HTMLComponent/manifest.js +12 -4
  26. package/dist/site/components/HeadingTextBlock/component.js +2 -2
  27. package/dist/site/components/HipaaIcon/component.js +2 -2
  28. package/dist/site/components/HipaaIcon/manifest.js +3 -3
  29. package/dist/site/components/ImageReveal/component.js +2 -2
  30. package/dist/site/components/LegacyAppWidget/component.js +1 -1
  31. package/dist/site/components/LegacyContainer/component.js +1 -1
  32. package/dist/site/components/LegacyMultiStateBox/component.js +1 -1
  33. package/dist/site/components/Line/component.js +2 -5
  34. package/dist/site/components/Line/manifest.js +2 -2
  35. package/dist/site/components/Lottie/component.js +4 -5
  36. package/dist/site/components/Lottie/manifest.js +10 -2
  37. package/dist/site/components/MarkdownBlock/component.js +1 -1
  38. package/dist/site/components/Menu/component.js +9 -11
  39. package/dist/site/components/Menu/manifest.js +10 -4
  40. package/dist/site/components/MultiStateBox/manifest.js +1 -1
  41. package/dist/site/components/RadioButtons/component.js +4 -5
  42. package/dist/site/components/RadioButtons/manifest.js +8 -2
  43. package/dist/site/components/Repeater/manifest.js +1 -1
  44. package/dist/site/components/ShareButtons/component.js +6 -5
  45. package/dist/site/components/ShareButtons/manifest.js +2 -2
  46. package/dist/site/components/Slideshow/component.js +4 -4
  47. package/dist/site/components/Slideshow/manifest.js +8 -2
  48. package/dist/site/components/SlotsPlaceholder/component.js +3 -3
  49. package/dist/site/components/SlotsPlaceholder/manifest.js +2 -2
  50. package/dist/site/components/SocialPlayerSnapchat/manifest.js +1 -1
  51. package/dist/site/components/SocialPlayerTikTok/manifest.js +1 -1
  52. package/dist/site/components/SocialPlayerVimeo/manifest.js +1 -1
  53. package/dist/site/components/SocialPlayerYoutube/manifest.js +1 -1
  54. package/dist/site/components/Tabs/component.js +2 -3
  55. package/dist/site/components/Tabs/manifest.js +2 -2
  56. package/dist/site/components/TextBox/component.js +4 -5
  57. package/dist/site/components/TextBox/manifest.js +8 -2
  58. package/dist/site/components/TextEffects3d/component.js +1 -1
  59. package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
  60. package/dist/site/components/TextEffectsGlass/component.js +1 -1
  61. package/dist/site/components/TextEffectsGlitch/component.js +1 -1
  62. package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
  63. package/dist/site/components/TextEffectsMatrix/component.js +1 -1
  64. package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
  65. package/dist/site/components/TextEffectsNoisy/component.js +1 -1
  66. package/dist/site/components/TextEffectsOutlineOut/component.js +1 -1
  67. package/dist/site/components/TextEffectsRetro/component.js +1 -1
  68. package/dist/site/components/TextEffectsShook/component.js +1 -1
  69. package/dist/site/components/TextEffectsSticker/component.js +1 -1
  70. package/dist/site/components/TextEffectsStriped/component.js +1 -1
  71. package/dist/site/components/TextInput/component.js +2 -3
  72. package/dist/site/components/TextInput/manifest.js +8 -2
  73. package/dist/site/components/TextMarquee/component.js +5 -6
  74. package/dist/site/components/TextMarquee/manifest.js +3 -2
  75. package/dist/site/components/TimePicker/component.js +5 -5
  76. package/dist/site/components/TimePicker/manifest.js +4 -2
  77. package/dist/site/components/TransparentVideo/manifest.js +1 -1
  78. package/dist/site/components/VideoScrub/component.js +3 -3
  79. package/dist/site/components/VideoScrub/manifest.js +2 -2
  80. package/dist/site/components/VideoUpload/component.js +2 -3
  81. package/dist/site/components/VideoUpload/manifest.js +3 -2
  82. package/dist/site/components/chunks/AnimatedIcon.js +1 -1
  83. package/dist/site/components/chunks/Button.js +6 -7
  84. package/dist/site/components/chunks/index10.js +238 -3
  85. package/dist/site/components/chunks/index11.js +2 -31127
  86. package/dist/site/components/chunks/index12.js +3 -3
  87. package/dist/site/components/chunks/index13.js +31123 -38
  88. package/dist/site/components/chunks/index14.js +5 -0
  89. package/dist/site/components/chunks/index15.js +5 -0
  90. package/dist/site/components/chunks/index16.js +5 -0
  91. package/dist/site/components/chunks/index17.js +46 -0
  92. package/dist/site/components/chunks/index2.js +3 -3
  93. package/dist/site/components/chunks/index3.js +1 -1
  94. package/dist/site/components/chunks/index4.js +1 -1
  95. package/dist/site/components/chunks/index5.js +1 -1
  96. package/dist/site/components/chunks/index7.js +3 -67
  97. package/dist/site/components/chunks/index8.js +52 -2006
  98. package/dist/site/components/chunks/index9.js +2012 -230
  99. package/dist/site/components/chunks/parseHtml.js +1 -1
  100. package/dist/site/components/chunks/parseSvg.js +1 -1
  101. package/dist/site/components/chunks/staticService.js +1 -1
  102. package/dist/site/components/chunks/urlUtils.js +21 -0
  103. package/dist/site/components/chunks/useConsentPolicyProps.js +8 -8
  104. package/dist/site/components/chunks/useCurrentLanguage.js +20 -0
  105. package/package.json +9 -7
@@ -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 { E as EnvironmentDefinition } from "../chunks/index2.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;
@@ -2697,7 +2697,7 @@ function useScrollToClickedItem(openedItems, onValueChange) {
2697
2697
  /* @__PURE__ */ new Map()
2698
2698
  );
2699
2699
  const clickedItemIdRef = useRef(void 0);
2700
- const { reducedMotion } = useService(EnvironmentDefinition);
2700
+ const { reducedMotion } = useService(DeviceInfoDefinition);
2701
2701
  useLayoutEffect(() => {
2702
2702
  const clickedItemId = clickedItemIdRef.current;
2703
2703
  clickedItemIdRef.current = void 0;
@@ -349,13 +349,13 @@ const manifest = {
349
349
  moduleSpecifier: "@wix/editor-react-components/AccordionComponent",
350
350
  dependencies: {
351
351
  componentDependencies: ["@wix/editor-react-components/AnimatedIcon"],
352
- serviceDependencies: ["@wix/viewer-service-environment"]
352
+ serviceDependencies: ["@wix/site-service-device-info"]
353
353
  }
354
354
  },
355
355
  editor: {
356
356
  componentUrl: "./site/components/AccordionComponent/component.preview.tsx",
357
357
  dependencies: {
358
- serviceDependencies: ["@wix/viewer-service-environment"]
358
+ serviceDependencies: ["@wix/site-service-device-info"]
359
359
  }
360
360
  }
361
361
  },
@@ -1,11 +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 { E as EnvironmentDefinition } from "../chunks/index2.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
- const environment = useService(EnvironmentDefinition);
8
- const reducedMotion = environment.reducedMotion;
7
+ const { reducedMotion } = useService(DeviceInfoDefinition);
9
8
  return /* @__PURE__ */ jsx(AnimatedIcon, { ...props, ref, reducedMotion });
10
9
  });
11
10
  export {
@@ -152,9 +152,9 @@ const manifest = {
152
152
  client: {
153
153
  componentUrl: "./site/components/AnimatedIcon/component.tsx",
154
154
  moduleSpecifier: "@wix/editor-react-components/AnimatedIcon",
155
- serviceDependencies: ["@wix/viewer-service-environment"],
155
+ serviceDependencies: ["@wix/site-service-device-info"],
156
156
  dependencies: {
157
- serviceDependencies: ["@wix/viewer-service-environment"]
157
+ serviceDependencies: ["@wix/site-service-device-info"]
158
158
  }
159
159
  }
160
160
  },
@@ -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/index2.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";
@@ -3570,7 +3570,7 @@ const VolumeControls = ({
3570
3570
  }
3571
3571
  );
3572
3572
  const AudioPlayer = (props) => {
3573
- var _a, _b, _c, _d, _e, _f, _g, _h;
3573
+ var _a, _b, _c, _d, _e, _f, _g;
3574
3574
  const {
3575
3575
  id,
3576
3576
  className,
@@ -3592,8 +3592,7 @@ const AudioPlayer = (props) => {
3592
3592
  const audioUrl = audio == null ? void 0 : audio.url;
3593
3593
  const title = audio == null ? void 0 : audio.title;
3594
3594
  const artist = audio == null ? void 0 : audio.artist;
3595
- const environment = useService(EnvironmentDefinition);
3596
- const isSSR = ((_b = environment == null ? void 0 : environment.isSSR) == null ? void 0 : _b.call(environment)) ?? false;
3595
+ const { SSR: isSSR } = useService(RenderingContextDefinition);
3597
3596
  const fallbackInstanceId = useRef(
3598
3597
  `audio-player-${Math.random().toString(36).slice(2)}`
3599
3598
  );
@@ -3640,7 +3639,7 @@ const AudioPlayer = (props) => {
3640
3639
  className: clsx(
3641
3640
  selectors.coverMedia,
3642
3641
  styles.coverMediaWrapper,
3643
- (_c = elementProps == null ? void 0 : elementProps.coverArt) == null ? void 0 : _c.className
3642
+ (_b = elementProps == null ? void 0 : elementProps.coverArt) == null ? void 0 : _b.className
3644
3643
  ),
3645
3644
  image: coverImage,
3646
3645
  displayMode
@@ -3652,7 +3651,7 @@ const AudioPlayer = (props) => {
3652
3651
  {
3653
3652
  className: clsx(
3654
3653
  selectors.title,
3655
- (_d = elementProps == null ? void 0 : elementProps.audioTitle) == null ? void 0 : _d.className
3654
+ (_c = elementProps == null ? void 0 : elementProps.audioTitle) == null ? void 0 : _c.className
3656
3655
  ),
3657
3656
  children: title
3658
3657
  }
@@ -3673,7 +3672,7 @@ const AudioPlayer = (props) => {
3673
3672
  className: clsx(
3674
3673
  selectors.artistName,
3675
3674
  styles.artistName,
3676
- (_e = elementProps == null ? void 0 : elementProps.artistName) == null ? void 0 : _e.className
3675
+ (_d = elementProps == null ? void 0 : elementProps.artistName) == null ? void 0 : _d.className
3677
3676
  ),
3678
3677
  children: artist
3679
3678
  }
@@ -3696,8 +3695,8 @@ const AudioPlayer = (props) => {
3696
3695
  duration,
3697
3696
  hasError,
3698
3697
  onSeek: seekTo,
3699
- progressBarClassName: (_f = elementProps == null ? void 0 : elementProps.progressBar) == null ? void 0 : _f.className,
3700
- timeDisplayClassName: (_g = elementProps == null ? void 0 : elementProps.timeDisplay) == null ? void 0 : _g.className,
3698
+ progressBarClassName: (_e = elementProps == null ? void 0 : elementProps.progressBar) == null ? void 0 : _e.className,
3699
+ timeDisplayClassName: (_f = elementProps == null ? void 0 : elementProps.timeDisplay) == null ? void 0 : _f.className,
3701
3700
  controlsClassName
3702
3701
  }
3703
3702
  ),
@@ -3708,7 +3707,7 @@ const AudioPlayer = (props) => {
3708
3707
  isMuted,
3709
3708
  onToggleMute: toggleMute,
3710
3709
  onVolumeChange: setVolume,
3711
- className: (_h = elementProps == null ? void 0 : elementProps.volumeControls) == null ? void 0 : _h.className,
3710
+ className: (_g = elementProps == null ? void 0 : elementProps.volumeControls) == null ? void 0 : _g.className,
3712
3711
  controlsClassName
3713
3712
  }
3714
3713
  )
@@ -292,13 +292,13 @@ const manifest = {
292
292
  moduleSpecifier: "@wix/editor-react-components/AudioPlayer",
293
293
  dependencies: {
294
294
  componentDependencies: ["@wix/editor-react-components/Image3"],
295
- serviceDependencies: ["@wix/viewer-service-environment"]
295
+ serviceDependencies: ["@wix/site-service-rendering-context"]
296
296
  }
297
297
  },
298
298
  editor: {
299
299
  componentUrl: "./site/components/AudioPlayer/component.preview.tsx",
300
300
  dependencies: {
301
- serviceDependencies: ["@wix/viewer-service-environment"]
301
+ serviceDependencies: ["@wix/site-service-rendering-context"]
302
302
  }
303
303
  }
304
304
  },
@@ -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 { d as defineService } from "../chunks/index10.js";
4
+ import { E as ExperimentsDefinition } from "../chunks/index7.js";
5
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";
@@ -11,7 +11,6 @@ const styles = {
11
11
  root,
12
12
  minHeightFix
13
13
  };
14
- const ExperimentsDefinition = defineService("@wix/site-service-experiments");
15
14
  const SPECIAL_KEYS = /* @__PURE__ */ new Set([
16
15
  "role",
17
16
  "tabIndex",
@@ -10,9 +10,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";
12
12
  import { A as AnimatedIcon } from "../chunks/AnimatedIcon.js";
13
- import { d as defineService } from "../chunks/index10.js";
14
- import { E as EnvironmentDefinition } from "../chunks/index2.js";
15
- import { U as UrlDefinition } from "../chunks/index12.js";
13
+ import { d as defineService } from "../chunks/index11.js";
14
+ import { E as EditorContextDefinition } from "../chunks/index14.js";
15
+ import { U as UrlDefinition } from "../chunks/index16.js";
16
16
  const $b5e257d569688ac6$var$defaultContext = {
17
17
  prefix: String(Math.round(Math.random() * 1e10)),
18
18
  current: 0
@@ -1427,11 +1427,10 @@ function useCollapsedRange(rootRef, totalItems) {
1427
1427
  const SeoServiceDefinition = defineService("seo/seo-service");
1428
1428
  const BREADCRUMBS_SEO_ITEM_TYPE = "BREADCRUMBS_COMPONENT";
1429
1429
  function useSeoService(items = []) {
1430
- var _a;
1431
1430
  const seoService = useService(SeoServiceDefinition);
1432
- const environment = useService(EnvironmentDefinition);
1431
+ const { previewMode } = useService(EditorContextDefinition);
1433
1432
  const prevPayloadRef = useRef(null);
1434
- const shouldSkip = ((_a = environment == null ? void 0 : environment.getPreviewMode) == null ? void 0 : _a.call(environment)) || !(items == null ? void 0 : items.length);
1433
+ const shouldSkip = previewMode || !(items == null ? void 0 : items.length);
1435
1434
  const mappedItems = useMemo(
1436
1435
  () => items.map(({ label: label2, link }, index) => ({
1437
1436
  label: label2,
@@ -1447,18 +1446,18 @@ function useSeoService(items = []) {
1447
1446
  itemType: BREADCRUMBS_SEO_ITEM_TYPE,
1448
1447
  itemData: mappedItems
1449
1448
  }).catch(() => {
1450
- var _a2;
1451
- void ((_a2 = seoService.resetSeoEntity) == null ? void 0 : _a2.call(seoService));
1449
+ var _a;
1450
+ void ((_a = seoService.resetSeoEntity) == null ? void 0 : _a.call(seoService));
1452
1451
  });
1453
1452
  }
1454
1453
  useEffect(() => {
1455
1454
  return () => {
1456
- var _a2;
1457
- void ((_a2 = seoService == null ? void 0 : seoService.resetSeoEntity) == null ? void 0 : _a2.call(seoService));
1455
+ var _a;
1456
+ void ((_a = seoService == null ? void 0 : seoService.resetSeoEntity) == null ? void 0 : _a.call(seoService));
1458
1457
  };
1459
1458
  }, [seoService]);
1460
1459
  }
1461
- const PagesDefinition = defineService("@wix/viewer-service-pages");
1460
+ const PagesDefinition = defineService("@wix/site-service-pages");
1462
1461
  function buildPageUrl(path, externalBaseUrl) {
1463
1462
  const base = externalBaseUrl.replace(/\/$/, "");
1464
1463
  return path ? `${base}/${path}` : base;
@@ -1491,13 +1490,13 @@ function useBreadcrumbItems() {
1491
1490
  if (!pagesService) {
1492
1491
  return [];
1493
1492
  }
1494
- const pages = pagesService.pages();
1493
+ const pages = pagesService.pages;
1495
1494
  if (!pages || Object.keys(pages).length === 0) {
1496
1495
  return [];
1497
1496
  }
1498
- const currentPageId = pagesService.currentPageId();
1499
- const mainPageId = pagesService.mainPageId();
1500
- const externalBaseUrl = (urlService == null ? void 0 : urlService.getExternalBaseUrl()) ?? "";
1497
+ const currentPageId = pagesService.currentPage.id;
1498
+ const mainPageId = pagesService.mainPage.id;
1499
+ const externalBaseUrl = (urlService == null ? void 0 : urlService.siteUrl) ?? "";
1501
1500
  return buildBreadcrumbTrail(
1502
1501
  pages,
1503
1502
  currentPageId,
@@ -379,10 +379,10 @@ const manifest = {
379
379
  componentDependencies: ["@wix/editor-react-components/AnimatedIcon"],
380
380
  serviceDependencies: [
381
381
  "seo/seo-service",
382
- "@wix/viewer-service-environment",
383
- "@wix/viewer-service-pages",
382
+ "@wix/site-service-editor-context",
383
+ "@wix/site-service-pages",
384
384
  "@wix/site-service-translations",
385
- "@wix/viewer-service-url"
385
+ "@wix/site-service-url"
386
386
  ]
387
387
  }
388
388
  },
@@ -391,10 +391,10 @@ const manifest = {
391
391
  dependencies: {
392
392
  serviceDependencies: [
393
393
  "seo/seo-service",
394
- "@wix/viewer-service-environment",
395
- "@wix/viewer-service-pages",
394
+ "@wix/site-service-editor-context",
395
+ "@wix/site-service-pages",
396
396
  "@wix/site-service-translations",
397
- "@wix/viewer-service-url"
397
+ "@wix/site-service-url"
398
398
  ]
399
399
  }
400
400
  }
@@ -1,4 +1,6 @@
1
- import { Pages } from '@wix/viewer-service-pages/definition';
1
+ import { IPagesService } from '@wix/site-service-pages/definition';
2
2
  import { BreadcrumbItem } from './types';
3
+ type Pages = IPagesService['pages'];
3
4
  export declare function buildBreadcrumbTrail(pages: Pages, currentPageId: string, mainPageId: string, externalBaseUrl: string): Array<BreadcrumbItem>;
4
5
  export declare function useBreadcrumbItems(): Array<BreadcrumbItem>;
6
+ export {};
@@ -319,7 +319,10 @@ const manifest = {
319
319
  serviceDependencies: [
320
320
  "@wix/site-service-business-logger",
321
321
  "@wix/site-service-configuration",
322
- "@wix/viewer-service-environment"
322
+ "@wix/site-service-device-info",
323
+ "@wix/site-service-editor-context",
324
+ "@wix/site-service-locale",
325
+ "@wix/viewer-service-multilingual"
323
326
  ]
324
327
  }
325
328
  },
@@ -329,7 +332,10 @@ const manifest = {
329
332
  serviceDependencies: [
330
333
  "@wix/site-service-business-logger",
331
334
  "@wix/site-service-configuration",
332
- "@wix/viewer-service-environment"
335
+ "@wix/site-service-device-info",
336
+ "@wix/site-service-editor-context",
337
+ "@wix/site-service-locale",
338
+ "@wix/viewer-service-multilingual"
333
339
  ]
334
340
  }
335
341
  },
@@ -1,9 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { c as clsx } from "../chunks/clsx.js";
4
- import { F as Field, e as Checkbox, T as Tooltip } from "../chunks/index11.js";
5
- import { useService } from "@wix/services-manager-react";
6
- import { E as EnvironmentDefinition } from "../chunks/index2.js";
4
+ import { F as Field, e as Checkbox, T as Tooltip } from "../chunks/index13.js";
5
+ import { u as useCurrentLanguage } from "../chunks/useCurrentLanguage.js";
7
6
  import { f as formatClassNames } from "../chunks/classNames.js";
8
7
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
9
8
  import { u as useValidatedField, R as RequiredIndicator, I as InfoCircleSmall_default } from "../chunks/useValidatedField.js";
@@ -37,7 +36,7 @@ const noop = () => {
37
36
  };
38
37
  function CheckboxComponent(props) {
39
38
  var _a, _b;
40
- const environmentService = useService(EnvironmentDefinition);
39
+ const { language } = useCurrentLanguage();
41
40
  const {
42
41
  id,
43
42
  className = "",
@@ -103,7 +102,7 @@ function CheckboxComponent(props) {
103
102
  ...getDataAttributes(props),
104
103
  className: rootClassName,
105
104
  dir: direction,
106
- lang: environmentService.language,
105
+ lang: language,
107
106
  "data-testid": TestIds.root,
108
107
  children: /* @__PURE__ */ jsxs(Field.Root, { className: styles.field, invalid: isInvalid, children: [
109
108
  /* @__PURE__ */ jsxs(
@@ -187,13 +187,19 @@ const manifest = {
187
187
  client: {
188
188
  componentUrl: "./site/components/Checkbox/component.tsx",
189
189
  dependencies: {
190
- serviceDependencies: ["@wix/viewer-service-environment"]
190
+ serviceDependencies: [
191
+ "@wix/site-service-locale",
192
+ "@wix/viewer-service-multilingual"
193
+ ]
191
194
  }
192
195
  },
193
196
  editor: {
194
197
  componentUrl: "./site/components/Checkbox/component.preview.tsx",
195
198
  dependencies: {
196
- serviceDependencies: ["@wix/viewer-service-environment"]
199
+ serviceDependencies: [
200
+ "@wix/site-service-locale",
201
+ "@wix/viewer-service-multilingual"
202
+ ]
197
203
  }
198
204
  }
199
205
  },
@@ -1,9 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useRef } from "react";
3
3
  import { c as clsx } from "../chunks/clsx.js";
4
- import { a as Fieldset, T as Tooltip, b as InfoCircle_default, d as CheckboxGroup_CheckboxGroup_CheckboxGroup, e as Checkbox } from "../chunks/index11.js";
5
- import { useService } from "@wix/services-manager-react";
6
- import { E as EnvironmentDefinition } from "../chunks/index2.js";
4
+ import { a as Fieldset, T as Tooltip, b as InfoCircle_default, d as CheckboxGroup_CheckboxGroup_CheckboxGroup, e as Checkbox } from "../chunks/index13.js";
5
+ import { u as useCurrentLanguage } from "../chunks/useCurrentLanguage.js";
7
6
  import { f as formatClassNames } from "../chunks/classNames.js";
8
7
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
9
8
  import { u as useValidatedField, R as RequiredIndicator, I as InfoCircleSmall_default } from "../chunks/useValidatedField.js";
@@ -55,7 +54,7 @@ const CheckmarkIcon = () => /* @__PURE__ */ jsx(
55
54
  );
56
55
  function CheckboxGroupComponent(props) {
57
56
  var _a, _b;
58
- const environmentService = useService(EnvironmentDefinition);
57
+ const { language } = useCurrentLanguage();
59
58
  const {
60
59
  id,
61
60
  className = "",
@@ -183,7 +182,7 @@ function CheckboxGroupComponent(props) {
183
182
  ...getDataAttributes(props),
184
183
  className: rootClassName,
185
184
  dir: direction,
186
- lang: environmentService.language,
185
+ lang: language,
187
186
  "data-testid": TestIds.root,
188
187
  children: /* @__PURE__ */ jsxs(
189
188
  Fieldset.Root,
@@ -288,13 +288,19 @@ const manifest = {
288
288
  client: {
289
289
  componentUrl: "./site/components/CheckboxGroup/component.tsx",
290
290
  dependencies: {
291
- serviceDependencies: ["@wix/viewer-service-environment"]
291
+ serviceDependencies: [
292
+ "@wix/site-service-locale",
293
+ "@wix/viewer-service-multilingual"
294
+ ]
292
295
  }
293
296
  },
294
297
  editor: {
295
298
  componentUrl: "./site/components/CheckboxGroup/component.preview.tsx",
296
299
  dependencies: {
297
- serviceDependencies: ["@wix/viewer-service-environment"]
300
+ serviceDependencies: [
301
+ "@wix/site-service-locale",
302
+ "@wix/viewer-service-multilingual"
303
+ ]
298
304
  }
299
305
  }
300
306
  },
@@ -1,8 +1,7 @@
1
1
  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
- import { useService } from "@wix/services-manager-react";
5
- import { E as EnvironmentDefinition } from "../chunks/index2.js";
4
+ import { u as useCurrentLanguage } from "../chunks/useCurrentLanguage.js";
6
5
  import { f as formatClassNames } from "../chunks/classNames.js";
7
6
  import { p as parseHtml } from "../chunks/parseHtml.js";
8
7
  import { e as getTabIndexAttribute } from "../chunks/a11y.js";
@@ -113,7 +112,7 @@ const noop = () => {
113
112
  };
114
113
  function CollapsibleText(props) {
115
114
  var _a, _b, _c;
116
- const environmentService = useService(EnvironmentDefinition);
115
+ const { language } = useCurrentLanguage();
117
116
  const { a11y, id, className, text: text2, expandMode, link, linkText } = props;
118
117
  const { readMoreText, readLessText } = props;
119
118
  const {
@@ -175,7 +174,7 @@ function CollapsibleText(props) {
175
174
  ...getDataAttributes(props),
176
175
  ...getTabIndexAttribute(props),
177
176
  className: rootClassName,
178
- lang: (a11y == null ? void 0 : a11y.lang) ?? environmentService.language,
177
+ lang: (a11y == null ? void 0 : a11y.lang) ?? language,
179
178
  onClick,
180
179
  onDoubleClick: onDblClick,
181
180
  onMouseEnter: onMouseIn,
@@ -240,13 +240,23 @@ const manifest = {
240
240
  moduleSpecifier: "@wix/editor-react-components/CollapsibleText",
241
241
  dependencies: {
242
242
  componentDependencies: ["@wix/editor-react-components/Button"],
243
- serviceDependencies: ["@wix/viewer-service-environment"]
243
+ serviceDependencies: [
244
+ "@wix/site-service-device-info",
245
+ "@wix/site-service-editor-context",
246
+ "@wix/site-service-locale",
247
+ "@wix/viewer-service-multilingual"
248
+ ]
244
249
  }
245
250
  },
246
251
  editor: {
247
252
  componentUrl: "./site/components/CollapsibleText/component.preview.tsx",
248
253
  dependencies: {
249
- serviceDependencies: ["@wix/viewer-service-environment"]
254
+ serviceDependencies: [
255
+ "@wix/site-service-device-info",
256
+ "@wix/site-service-editor-context",
257
+ "@wix/site-service-locale",
258
+ "@wix/viewer-service-multilingual"
259
+ ]
250
260
  }
251
261
  },
252
262
  sdk: {
@@ -12,7 +12,7 @@ import { a as $d27d541f9569d26d$export$45712eceda6fad21, b as $24f9a20f226ad820$
12
12
  import { a as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7, $ as $2eb8e6d23f3d0cb0$export$a54013f0d02a8f82 } from "../chunks/I18nProvider.js";
13
13
  import __rspack_external_react_dom_7136dc57__default, { flushSync } from "react-dom";
14
14
  import { useService } from "@wix/services-manager-react";
15
- import { E as EnvironmentDefinition } from "../chunks/index2.js";
15
+ import { u as useCurrentLanguage } from "../chunks/useCurrentLanguage.js";
16
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";
@@ -4261,7 +4261,7 @@ const noop = () => {
4261
4261
  };
4262
4262
  function DatePicker2(props) {
4263
4263
  var _a, _b, _c;
4264
- const environmentService = useService(EnvironmentDefinition);
4264
+ const { language, regionalFormat } = useCurrentLanguage();
4265
4265
  const { translate } = useService(TranslationsDefinition);
4266
4266
  const translateOwn = translate(COMPONENT_TYPE);
4267
4267
  const translateLegacy = translate(ARIA_LABEL_NAMESPACE);
@@ -4285,7 +4285,7 @@ function DatePicker2(props) {
4285
4285
  const [portalContainer, setPortalContainer] = useState(
4286
4286
  null
4287
4287
  );
4288
- const locale = environmentService.language || "en-US";
4288
+ const locale = regionalFormat || "en-US";
4289
4289
  const ariaLabel = (a11y == null ? void 0 : a11y.ariaLabel) || (label2 ? void 0 : t(AriaLabels.root));
4290
4290
  const handleChange = (date) => {
4291
4291
  onValueChange(toLocalDate(date));
@@ -4308,7 +4308,7 @@ function DatePicker2(props) {
4308
4308
  !direction && directionStyles.fallbackDirection
4309
4309
  ),
4310
4310
  dir: direction || void 0,
4311
- lang: environmentService.language,
4311
+ lang: language,
4312
4312
  "data-testid": TestIds.root,
4313
4313
  children: /* @__PURE__ */ jsx($2eb8e6d23f3d0cb0$export$a54013f0d02a8f82, { locale, children: /* @__PURE__ */ jsxs(
4314
4314
  $06d5b8ec9ee5d538$export$5109c6dd95d8fb00,
@@ -418,7 +418,8 @@ const manifest = {
418
418
  componentUrl: "./site/components/DatePicker/component.tsx",
419
419
  dependencies: {
420
420
  serviceDependencies: [
421
- "@wix/viewer-service-environment",
421
+ "@wix/site-service-locale",
422
+ "@wix/viewer-service-multilingual",
422
423
  "@wix/site-service-translations"
423
424
  ]
424
425
  }
@@ -427,7 +428,8 @@ const manifest = {
427
428
  componentUrl: "./site/components/DatePicker/component.preview.tsx",
428
429
  dependencies: {
429
430
  serviceDependencies: [
430
- "@wix/viewer-service-environment",
431
+ "@wix/site-service-locale",
432
+ "@wix/viewer-service-multilingual",
431
433
  "@wix/site-service-translations"
432
434
  ]
433
435
  }
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { c as clsx } from "../chunks/clsx.js";
4
- import { F as Field, C as Combobox } from "../chunks/index11.js";
4
+ import { F as Field, C as Combobox } from "../chunks/index13.js";
5
5
  import { useService } from "@wix/services-manager-react";
6
- import { E as EnvironmentDefinition } from "../chunks/index2.js";
6
+ import { u as useCurrentLanguage } from "../chunks/useCurrentLanguage.js";
7
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";
@@ -74,7 +74,7 @@ function Dropdown({
74
74
  };
75
75
  const invalid = typeof errorMessage2 !== "undefined" && errorMessage2 !== "";
76
76
  const inErrorState = invalid || Boolean(previewError);
77
- const { language } = useService(EnvironmentDefinition);
77
+ const { language } = useCurrentLanguage();
78
78
  const { translate } = useService(TranslationsDefinition);
79
79
  const ariaLabel = (a11y == null ? void 0 : a11y.ariaLabel) || (label2 ? void 0 : translate(COMPONENT_TYPE)(
80
80
  AriaLabels.root.key,
@@ -556,7 +556,8 @@ const manifest = {
556
556
  componentUrl: "./site/components/Dropdown/component.tsx",
557
557
  dependencies: {
558
558
  serviceDependencies: [
559
- "@wix/viewer-service-environment",
559
+ "@wix/site-service-locale",
560
+ "@wix/viewer-service-multilingual",
560
561
  "@wix/site-service-translations"
561
562
  ]
562
563
  }
@@ -9,9 +9,10 @@ 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
10
  import { p as parse } from "../chunks/index5.js";
11
11
  import { useService } from "@wix/services-manager-react";
12
- import { E as EnvironmentDefinition } from "../chunks/index2.js";
12
+ import { R as RenderingContextDefinition } from "../chunks/index3.js";
13
13
  import { u as useConsentPolicyProps, C as ConsentPolicyWrapper } from "../chunks/useConsentPolicyProps.js";
14
14
  import { T as TranslationsDefinition } from "../chunks/index4.js";
15
+ import { u as useCurrentLanguage } from "../chunks/useCurrentLanguage.js";
15
16
  const mapContainer = "mapContainer__E0LTn";
16
17
  const style = {
17
18
  mapContainer
@@ -3418,8 +3419,8 @@ const translateKey = (translate, key) => translate(COMPONENT_TYPE)(
3418
3419
  const useGoogleMapProps = (props) => {
3419
3420
  const translationService = useService(TranslationsDefinition);
3420
3421
  const translate = (translationService == null ? void 0 : translationService.translate) ?? noopTranslate;
3421
- const environment = useService(EnvironmentDefinition);
3422
- const siteLanguage = (environment == null ? void 0 : environment.language) ?? "en";
3422
+ const { language } = useCurrentLanguage();
3423
+ const siteLanguage = language ?? "en";
3423
3424
  const consentPolicyProps = useConsentPolicyProps({
3424
3425
  namespace: COMPONENT_TYPE,
3425
3426
  translationEntries: ConsentTranslations
@@ -3514,9 +3515,7 @@ const useGoogleMapProps = (props) => {
3514
3515
  return { componentProps, mapData };
3515
3516
  };
3516
3517
  const MapContent = forwardRef((props, forwardedRef) => {
3517
- var _a;
3518
- const environment = useService(EnvironmentDefinition);
3519
- const isSSR = ((_a = environment == null ? void 0 : environment.isSSR) == null ? void 0 : _a.call(environment)) ?? false;
3518
+ const { SSR: isSSR } = useService(RenderingContextDefinition);
3520
3519
  return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Fragment, {}), children: !isSSR && /* @__PURE__ */ jsx(GoogleMapReactInteractiveMap$1, { ...props, ref: forwardedRef }) });
3521
3520
  });
3522
3521
  function GoogleMapComponent(props) {
@@ -223,7 +223,11 @@ const manifest = {
223
223
  dependencies: {
224
224
  serviceDependencies: [
225
225
  "@wix/viewer-service-consent-policy",
226
- "@wix/viewer-service-environment",
226
+ "@wix/site-service-device-info",
227
+ "@wix/site-service-editor-context",
228
+ "@wix/site-service-locale",
229
+ "@wix/viewer-service-multilingual",
230
+ "@wix/site-service-rendering-context",
227
231
  "@wix/site-service-translations"
228
232
  ]
229
233
  }