@wix/editor-react-components 1.2841.0 → 1.2843.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.
@@ -17,7 +17,7 @@ import { T as TranslationsDefinition } from "../chunks/index4.js";
17
17
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
18
18
  import { d as directionStyles } from "../chunks/direction.module.js";
19
19
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
20
- import { T as TestIds, s as selectors, D as DesignStates, C as COMPONENT_TYPE, A as ARIA_LABEL_NAMESPACE, d as defaultValues, a as AriaLabels } from "../chunks/constants37.js";
20
+ import { T as TestIds, s as selectors, D as DesignStates, A as ARIA_LABEL_NAMESPACE, d as defaultValues, a as AriaLabels } from "../chunks/constants37.js";
21
21
  createContext(null);
22
22
  createContext(null);
23
23
  createContext(null);
@@ -4263,9 +4263,8 @@ function DatePicker2(props) {
4263
4263
  var _a, _b, _c;
4264
4264
  const { language, regionalFormat } = useCurrentLanguage();
4265
4265
  const { translate } = useService(TranslationsDefinition);
4266
- const translateOwn = translate(COMPONENT_TYPE);
4267
4266
  const translateLegacy = translate(ARIA_LABEL_NAMESPACE);
4268
- const t = (entry) => translateOwn(entry.key, translateLegacy(entry.legacyKey, entry.default));
4267
+ const t = (entry) => translateLegacy(entry.legacyKey, entry.default);
4269
4268
  const {
4270
4269
  id,
4271
4270
  className = "",
@@ -117,18 +117,16 @@ export declare const DesignStates: {
117
117
  export declare const PREVIEW_CALENDAR_OPEN = "previewCalendarOpen";
118
118
  export declare const ARIA_LABEL_NAMESPACE = "ariaLabels";
119
119
  /**
120
- * Viewer-facing aria labels: each entry is a translation `key` in the component's
121
- * own namespace, the `legacyKey` in the legacy namespace, plus an English
122
- * `default` fallback. Referenced from constants (never as inline string keys).
120
+ * Viewer-facing aria labels: each entry is the `legacyKey` in the legacy
121
+ * namespace, plus an English `default` fallback. Referenced from constants
122
+ * (never as inline string keys).
123
123
  */
124
124
  export declare const AriaLabels: {
125
125
  readonly root: {
126
- readonly key: "datePicker.field.ariaLabel";
127
126
  readonly legacyKey: "datePicker_aria_label";
128
127
  readonly default: "Date picker";
129
128
  };
130
129
  readonly openCalendar: {
131
- readonly key: "datePicker.calendarButton.ariaLabel";
132
130
  readonly legacyKey: "datePicker_open_calendar";
133
131
  readonly default: "Open calendar";
134
132
  };
@@ -1,5 +1,4 @@
1
1
  import { C as CSS_PROPERTIES, N as NativeStateType, b as DISPLAY_GROUPS, D as DATA, E as ELEMENTS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { g as getTranslationResources } from "../chunks/translationResources.js";
3
2
  import { P as PREVIEW_CALENDAR_OPEN, D as DesignStates, d as defaultValues, b as DisplayNames, c as Descriptions, e as PREVIEW_ERROR_MESSAGE, C as COMPONENT_TYPE, s as selectors } from "../chunks/constants37.js";
4
3
  import { g as getSelector } from "../chunks/manifest.js";
5
4
  const basePresetName = "baseDatePicker";
@@ -413,7 +412,6 @@ const manifest = {
413
412
  }
414
413
  },
415
414
  resources: {
416
- translations: getTranslationResources("DatePicker"),
417
415
  client: {
418
416
  componentUrl: "./site/components/DatePicker/component.tsx",
419
417
  dependencies: {
@@ -9,7 +9,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
9
9
  import { d as directionStyles } from "../chunks/direction.module.js";
10
10
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
11
11
  import { a as accessibilityStyles } from "../chunks/accessibility.module.js";
12
- import { C as COMPONENT_TYPE, A as AriaLabels, T as TestIds, e as editorElementClassNames, D as DesignStates } from "../chunks/constants36.js";
12
+ import { A as AriaLabels, T as TestIds, e as editorElementClassNames, D as DesignStates } from "../chunks/constants36.js";
13
13
  const root = "root__WnTks";
14
14
  const input = "input__pbp9w";
15
15
  const option = "option__QJeiF";
@@ -76,12 +76,9 @@ function Dropdown({
76
76
  const inErrorState = invalid || Boolean(previewError);
77
77
  const { language } = useCurrentLanguage();
78
78
  const { translate } = useService(TranslationsDefinition);
79
- const ariaLabel = (a11y == null ? void 0 : a11y.ariaLabel) || (label2 ? void 0 : translate(COMPONENT_TYPE)(
80
- AriaLabels.root.key,
81
- translate("ariaLabels")(
82
- AriaLabels.root.legacyKey,
83
- AriaLabels.root.default
84
- )
79
+ const ariaLabel = (a11y == null ? void 0 : a11y.ariaLabel) || (label2 ? void 0 : translate("ariaLabels")(
80
+ AriaLabels.root.legacyKey,
81
+ AriaLabels.root.default
85
82
  ));
86
83
  const comboboxId = `${id}-combobox`;
87
84
  const helperTextId = helperText2 ? `${id}-helper-text` : void 0;
@@ -93,7 +93,6 @@ export declare const editorElementClassNames: {
93
93
  };
94
94
  export declare const AriaLabels: {
95
95
  readonly root: {
96
- readonly key: "dropdown.combobox.ariaLabel";
97
96
  readonly legacyKey: "Dropdown_AriaLabel";
98
97
  readonly default: "Dropdown";
99
98
  };
@@ -1,5 +1,4 @@
1
1
  import { b as DISPLAY_GROUPS, D as DATA, E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { g as getTranslationResources } from "../chunks/translationResources.js";
3
2
  import { a as DisplayNames, b as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, F as FunctionalStateKeys, e as editorElementClassNames, D as DesignStates, C as COMPONENT_TYPE } from "../chunks/constants36.js";
4
3
  const basePresetName = "baseDropdown";
5
4
  const manifest = {
@@ -551,7 +550,6 @@ const manifest = {
551
550
  }
552
551
  },
553
552
  resources: {
554
- translations: getTranslationResources("Dropdown"),
555
553
  client: {
556
554
  componentUrl: "./site/components/Dropdown/component.tsx",
557
555
  dependencies: {
@@ -3,7 +3,7 @@ import { c as clsx } from "../chunks/clsx.js";
3
3
  import { useService } from "@wix/services-manager-react";
4
4
  import { T as TranslationsDefinition } from "../chunks/index4.js";
5
5
  import { d as directionStyles } from "../chunks/direction.module.js";
6
- import { C as COMPONENT_TYPE, T as TranslationKeys, a as TRANSLATIONS_NAMESPACE, L as LegacyTranslationKeys, D as DefaultTranslations, m as manifestClasses, d as defaultValues } from "../chunks/constants28.js";
6
+ import { T as TRANSLATIONS_NAMESPACE, L as LegacyTranslationKeys, D as DefaultTranslations, m as manifestClasses, d as defaultValues } from "../chunks/constants28.js";
7
7
  import "react";
8
8
  import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
9
9
  import { r as requireCjs } from "../chunks/index10.js";
@@ -12442,12 +12442,9 @@ const THEME_CLASSES = {
12442
12442
  const MarkdownBlock = (props) => {
12443
12443
  const { id, className, direction, content: content2, theme } = props;
12444
12444
  const { translate } = useService(TranslationsDefinition);
12445
- const scrollerAriaLabel = translate(COMPONENT_TYPE)(
12446
- TranslationKeys.scrollerAriaLabel,
12447
- translate(TRANSLATIONS_NAMESPACE)(
12448
- LegacyTranslationKeys.scrollerAriaLabel,
12449
- DefaultTranslations.scrollerAriaLabel
12450
- )
12445
+ const scrollerAriaLabel = translate(TRANSLATIONS_NAMESPACE)(
12446
+ LegacyTranslationKeys.scrollerAriaLabel,
12447
+ DefaultTranslations.scrollerAriaLabel
12451
12448
  );
12452
12449
  return /* @__PURE__ */ jsx(
12453
12450
  "div",
@@ -7,9 +7,6 @@ export declare const defaultValues: {
7
7
  readonly theme: "light";
8
8
  };
9
9
  export declare const TRANSLATIONS_NAMESPACE = "ariaLabels";
10
- export declare const TranslationKeys: {
11
- readonly scrollerAriaLabel: "markdownBlock.content.ariaLabel";
12
- };
13
10
  export declare const LegacyTranslationKeys: {
14
11
  readonly scrollerAriaLabel: "markdownBlock_aria_label_content";
15
12
  };
@@ -1,7 +1,6 @@
1
1
  import { L as LAYOUT, D as DATA, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
2
  import { g as getSelector } from "../chunks/manifest.js";
3
- import { g as getTranslationResources } from "../chunks/translationResources.js";
4
- import { d as defaultValues, b as DisplayNames, c as CONTENT_MAX_LENGTH, C as COMPONENT_TYPE, m as manifestClasses } from "../chunks/constants28.js";
3
+ import { d as defaultValues, a as DisplayNames, C as CONTENT_MAX_LENGTH, b as COMPONENT_TYPE, m as manifestClasses } from "../chunks/constants28.js";
5
4
  const manifest = {
6
5
  id: "09163c09-57cd-4241-bde6-b9e602fedbd8",
7
6
  type: COMPONENT_TYPE,
@@ -93,8 +92,7 @@ const manifest = {
93
92
  dependencies: {
94
93
  serviceDependencies: ["@wix/site-service-translations"]
95
94
  }
96
- },
97
- translations: getTranslationResources("MarkdownBlock")
95
+ }
98
96
  },
99
97
  moduleConfiguration: {
100
98
  package: { name: "@wix/editor-react-components", version: "^1.0.0" },
@@ -10,7 +10,7 @@ import { T as TranslationsDefinition } from "../chunks/index4.js";
10
10
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
11
11
  import { d as directionStyles } from "../chunks/direction.module.js";
12
12
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
13
- import { s as selectors, T as TestIds, D as DesignStates, C as COMPONENT_TYPE, A as AriaLabels, a as DEFAULT_LOCALE } from "../chunks/constants2.js";
13
+ import { s as selectors, T as TestIds, D as DesignStates, A as AriaLabels, a as DEFAULT_LOCALE } from "../chunks/constants2.js";
14
14
  const root = "root__dzkbY";
15
15
  const timePicker = "timePicker__j78My";
16
16
  const label = "label__THO5j";
@@ -128,12 +128,9 @@ function TimePicker(props) {
128
128
  const isInvalid = Boolean(errorMessage2);
129
129
  let ariaLabel = a11y == null ? void 0 : a11y.ariaLabel;
130
130
  if (!ariaLabel && !label2) {
131
- ariaLabel = translate(COMPONENT_TYPE)(
132
- AriaLabels.root.key,
133
- translate("ariaLabels")(
134
- AriaLabels.root.legacyKey,
135
- AriaLabels.root.default
136
- )
131
+ ariaLabel = translate("ariaLabels")(
132
+ AriaLabels.root.legacyKey,
133
+ AriaLabels.root.default
137
134
  );
138
135
  }
139
136
  return /* @__PURE__ */ jsx(
@@ -75,7 +75,6 @@ export declare const DesignStates: {
75
75
  };
76
76
  export declare const AriaLabels: {
77
77
  readonly root: {
78
- readonly key: "timePicker.field.ariaLabel";
79
78
  readonly legacyKey: "TimePicker_AriaLabel";
80
79
  readonly default: "Time picker";
81
80
  };
@@ -1,5 +1,4 @@
1
1
  import { b as DISPLAY_GROUPS, D as DATA, E as ELEMENTS, L as LAYOUT, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { g as getTranslationResources } from "../chunks/translationResources.js";
3
2
  import { b as DisplayNames, c as Descriptions, d as TEXT_PROP_STATIC_VALUE_MAX_LENGTH, D as DesignStates, P as PREVIEW_ERROR_MESSAGE, C as COMPONENT_TYPE, s as selectors } from "../chunks/constants2.js";
4
3
  import { g as getSelector } from "../chunks/manifest.js";
5
4
  const basePresetName = "baseTimePicker";
@@ -344,7 +343,6 @@ const manifest = {
344
343
  }
345
344
  },
346
345
  resources: {
347
- translations: getTranslationResources("TimePicker"),
348
346
  client: {
349
347
  componentUrl: "./site/components/TimePicker/component.tsx",
350
348
  dependencies: {
@@ -4,7 +4,7 @@ import { c as clsx } from "../chunks/clsx.js";
4
4
  import { useService } from "@wix/services-manager-react";
5
5
  import { T as TranslationsDefinition } from "../chunks/index4.js";
6
6
  import { V as Video } from "../chunks/Video.js";
7
- import { S as STICKY_TOP, a as ScrollSpeed, b as SCROLL_VH_PER_SECOND, c as START_LINE, M as MAX_SCROLL_VH, d as MIN_SCROLL_VH, e as assertDuration, i as isDuration, T as TIMEFRAME_CONTENT_CLASS, C as COMPONENT_TYPE, f as TIMEFRAMES_ARIA_LABEL_KEY, A as ARIA_LABEL_NAMESPACE, L as LEGACY_TIMEFRAMES_ARIA_LABEL_KEY, g as TIMEFRAMES_ARIA_LABEL_DEFAULT, D as DEFAULT_VIDEO_RATIO, h as TIMEFRAMES_LAYER_CLASS, R as ROOT_CLASS, j as ScrubStart } from "../chunks/types.js";
7
+ import { S as STICKY_TOP, a as ScrollSpeed, b as SCROLL_VH_PER_SECOND, c as START_LINE, M as MAX_SCROLL_VH, d as MIN_SCROLL_VH, e as assertDuration, i as isDuration, T as TIMEFRAME_CONTENT_CLASS, A as ARIA_LABEL_NAMESPACE, L as LEGACY_TIMEFRAMES_ARIA_LABEL_KEY, f as TIMEFRAMES_ARIA_LABEL_DEFAULT, D as DEFAULT_VIDEO_RATIO, g as TIMEFRAMES_LAYER_CLASS, R as ROOT_CLASS, h as ScrubStart } from "../chunks/types.js";
8
8
  import { c as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
9
9
  import { D as DeviceInfoDefinition } from "../chunks/index2.js";
10
10
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
@@ -506,12 +506,9 @@ const VideoScrub = ({
506
506
  const { translate } = useService(TranslationsDefinition);
507
507
  const layerA11y = {
508
508
  ...a11y && convertA11yKeysToHtmlFormat(a11y),
509
- "aria-label": (a11y == null ? void 0 : a11y.ariaLabel) || translate(COMPONENT_TYPE)(
510
- TIMEFRAMES_ARIA_LABEL_KEY,
511
- translate(ARIA_LABEL_NAMESPACE)(
512
- LEGACY_TIMEFRAMES_ARIA_LABEL_KEY,
513
- TIMEFRAMES_ARIA_LABEL_DEFAULT
514
- )
509
+ "aria-label": (a11y == null ? void 0 : a11y.ariaLabel) || translate(ARIA_LABEL_NAMESPACE)(
510
+ LEGACY_TIMEFRAMES_ARIA_LABEL_KEY,
511
+ TIMEFRAMES_ARIA_LABEL_DEFAULT
515
512
  )
516
513
  };
517
514
  const rootRef = useRef(null);
@@ -26,7 +26,6 @@ export declare const STICKY_TOP = "var(--video-scrub-sticky-top)";
26
26
  export declare const START_LINE: Partial<Record<ScrubStart, number>>;
27
27
  export declare const TIMEFRAMES_LAYER_CLASS = "video-scrub-timeframes";
28
28
  export declare const ARIA_LABEL_NAMESPACE = "ariaLabels";
29
- export declare const TIMEFRAMES_ARIA_LABEL_KEY = "videoScrub.timeframes.ariaLabel";
30
29
  export declare const LEGACY_TIMEFRAMES_ARIA_LABEL_KEY = "VideoScrub_AriaLabel_Timeframes";
31
30
  export declare const TIMEFRAMES_ARIA_LABEL_DEFAULT = "Video content";
32
31
  export declare const TIMEFRAMES_GROUP_KEY = "timeframes";
@@ -1,7 +1,6 @@
1
1
  import { L as LAYOUT, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, M as MEDIA, a as ACTIONS, D as DATA, c as ContainerType, A as Archetype } from "../chunks/chunk-LDITHLYN.js";
2
- import { g as getTranslationResources } from "../chunks/translationResources.js";
3
2
  import { V as VideoCategoryTypes } from "../chunks/types.impl.js";
4
- import { p as presets, k as TIMEFRAMES_GROUP_KEY, a as ScrollSpeed, j as ScrubStart, l as StickyMode, V as VIDEO_SCALING_PANEL_ID, T as TIMEFRAME_CONTENT_CLASS, m as MAX_COUNT, R as ROOT_CLASS, C as COMPONENT_TYPE } from "../chunks/types.js";
3
+ import { p as presets, j as TIMEFRAMES_GROUP_KEY, a as ScrollSpeed, h as ScrubStart, k as StickyMode, V as VIDEO_SCALING_PANEL_ID, T as TIMEFRAME_CONTENT_CLASS, l as MAX_COUNT, R as ROOT_CLASS, C as COMPONENT_TYPE } from "../chunks/types.js";
5
4
  const manifest = {
6
5
  id: "1a46792f-9775-4e08-a78a-11daf6e4d08b",
7
6
  type: COMPONENT_TYPE,
@@ -379,7 +378,6 @@ const manifest = {
379
378
  }
380
379
  },
381
380
  resources: {
382
- translations: getTranslationResources("VideoScrub"),
383
381
  client: {
384
382
  componentUrl: "./site/components/VideoScrub/component.tsx",
385
383
  dependencies: {
@@ -73,7 +73,6 @@ const DesignStates = {
73
73
  };
74
74
  const AriaLabels = {
75
75
  root: {
76
- key: "timePicker.field.ariaLabel",
77
76
  legacyKey: "TimePicker_AriaLabel",
78
77
  default: "Time picker"
79
78
  }
@@ -7,9 +7,6 @@ const defaultValues = {
7
7
  theme: "light"
8
8
  };
9
9
  const TRANSLATIONS_NAMESPACE = "ariaLabels";
10
- const TranslationKeys = {
11
- scrollerAriaLabel: "markdownBlock.content.ariaLabel"
12
- };
13
10
  const LegacyTranslationKeys = {
14
11
  scrollerAriaLabel: "markdownBlock_aria_label_content"
15
12
  };
@@ -35,13 +32,12 @@ const DisplayNames = {
35
32
  }
36
33
  };
37
34
  export {
38
- COMPONENT_TYPE as C,
35
+ CONTENT_MAX_LENGTH as C,
39
36
  DefaultTranslations as D,
40
37
  LegacyTranslationKeys as L,
41
- TranslationKeys as T,
42
- TRANSLATIONS_NAMESPACE as a,
43
- DisplayNames as b,
44
- CONTENT_MAX_LENGTH as c,
38
+ TRANSLATIONS_NAMESPACE as T,
39
+ DisplayNames as a,
40
+ COMPONENT_TYPE as b,
45
41
  defaultValues as d,
46
42
  manifestClasses as m
47
43
  };
@@ -83,7 +83,6 @@ const editorElementClassNames = {
83
83
  };
84
84
  const AriaLabels = {
85
85
  root: {
86
- key: "dropdown.combobox.ariaLabel",
87
86
  legacyKey: "Dropdown_AriaLabel",
88
87
  default: "Dropdown"
89
88
  }
@@ -113,12 +113,10 @@ const PREVIEW_CALENDAR_OPEN = "previewCalendarOpen";
113
113
  const ARIA_LABEL_NAMESPACE = "ariaLabels";
114
114
  const AriaLabels = {
115
115
  root: {
116
- key: "datePicker.field.ariaLabel",
117
116
  legacyKey: "datePicker_aria_label",
118
117
  default: "Date picker"
119
118
  },
120
119
  openCalendar: {
121
- key: "datePicker.calendarButton.ariaLabel",
122
120
  legacyKey: "datePicker_open_calendar",
123
121
  default: "Open calendar"
124
122
  }
@@ -36,7 +36,6 @@ const START_LINE = {
36
36
  };
37
37
  const TIMEFRAMES_LAYER_CLASS = "video-scrub-timeframes";
38
38
  const ARIA_LABEL_NAMESPACE = "ariaLabels";
39
- const TIMEFRAMES_ARIA_LABEL_KEY = "videoScrub.timeframes.ariaLabel";
40
39
  const LEGACY_TIMEFRAMES_ARIA_LABEL_KEY = "VideoScrub_AriaLabel_Timeframes";
41
40
  const TIMEFRAMES_ARIA_LABEL_DEFAULT = "Video content";
42
41
  const TIMEFRAMES_GROUP_KEY = "timeframes";
@@ -65,13 +64,12 @@ export {
65
64
  START_LINE as c,
66
65
  MIN_SCROLL_VH as d,
67
66
  assertDuration as e,
68
- TIMEFRAMES_ARIA_LABEL_KEY as f,
69
- TIMEFRAMES_ARIA_LABEL_DEFAULT as g,
70
- TIMEFRAMES_LAYER_CLASS as h,
67
+ TIMEFRAMES_ARIA_LABEL_DEFAULT as f,
68
+ TIMEFRAMES_LAYER_CLASS as g,
69
+ ScrubStart as h,
71
70
  isDuration as i,
72
- ScrubStart as j,
73
- TIMEFRAMES_GROUP_KEY as k,
74
- StickyMode as l,
75
- MAX_COUNT as m,
71
+ TIMEFRAMES_GROUP_KEY as j,
72
+ StickyMode as k,
73
+ MAX_COUNT as l,
76
74
  presets as p
77
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2841.0",
3
+ "version": "1.2843.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -228,5 +228,5 @@
228
228
  "registry": "https://registry.npmjs.org/",
229
229
  "access": "public"
230
230
  },
231
- "falconPackageHash": "8093e76fbf28006846bb95f8778771f5820d9e56de4ad007d2789a70"
231
+ "falconPackageHash": "c1e162c3c148d809dcf16aefc14c6264acd8f0f648d3b8327536cb9e"
232
232
  }