@wix/editor-react-components 1.2830.0 → 1.2831.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
3
3
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
|
-
import { M as MOVEMENT_DIRECTION, A as AUTOPLAY_STATE, P as PAUSE_BUTTON_VISIBILITY, s as slideshowDataDefaults, a as semanticClassNames, C as COMPONENT_TYPE, b as ARIA_LABEL_NAMESPACE,
|
|
4
|
+
import { M as MOVEMENT_DIRECTION, A as AUTOPLAY_STATE, P as PAUSE_BUTTON_VISIBILITY, s as slideshowDataDefaults, a as semanticClassNames, C as COMPONENT_TYPE, b as ARIA_LABEL_NAMESPACE, T as TranslationKeys, L as LegacyTranslationKeys, D as DefaultTranslations } from "../chunks/Slideshow.semanticClassNames.js";
|
|
5
5
|
import { u as useHasDisplayedElement } from "../chunks/useHasDisplayedElement.js";
|
|
6
6
|
import { B as Button } from "../chunks/Button.js";
|
|
7
7
|
import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
|
|
@@ -547,7 +547,7 @@ const SLIDE_CHANGING_CONTROL_SELECTORS = [
|
|
|
547
547
|
`.${semanticClassNames.pagination}`
|
|
548
548
|
];
|
|
549
549
|
const Slideshow = (props) => {
|
|
550
|
-
var _a
|
|
550
|
+
var _a;
|
|
551
551
|
const {
|
|
552
552
|
id,
|
|
553
553
|
className,
|
|
@@ -588,11 +588,7 @@ const Slideshow = (props) => {
|
|
|
588
588
|
);
|
|
589
589
|
const reducedMotion = environmentService.reducedMotion ?? false;
|
|
590
590
|
const siteDirection = environmentService.getLanguageDirection();
|
|
591
|
-
const
|
|
592
|
-
environmentService,
|
|
593
|
-
SLIDESHOW_SLIDE_LTR_DIRECTION_EXPERIMENT
|
|
594
|
-
)) ?? false;
|
|
595
|
-
const presetsWrapperProps = ((_b = props.wix) == null ? void 0 : _b.presetsWrapperProps) || {};
|
|
591
|
+
const presetsWrapperProps = ((_a = props.wix) == null ? void 0 : _a.presetsWrapperProps) || {};
|
|
596
592
|
const visibilityProps = useVisibilityProps({ isHidden, hidden });
|
|
597
593
|
const navigationButtonsProps = elementProps == null ? void 0 : elementProps.navigationButtons;
|
|
598
594
|
const slideIndicatorsProps = elementProps == null ? void 0 : elementProps.slideIndicators;
|
|
@@ -741,7 +737,7 @@ const Slideshow = (props) => {
|
|
|
741
737
|
return /* @__PURE__ */ jsx(
|
|
742
738
|
"li",
|
|
743
739
|
{
|
|
744
|
-
|
|
740
|
+
dir: "ltr",
|
|
745
741
|
...!isActive && { inert: "true" },
|
|
746
742
|
className: clsx(
|
|
747
743
|
styles.slide,
|
|
@@ -184,7 +184,6 @@ const MOVEMENT_DIRECTION = {
|
|
|
184
184
|
FORWARD: "forward",
|
|
185
185
|
BACKWARD: "backward"
|
|
186
186
|
};
|
|
187
|
-
const SLIDESHOW_SLIDE_LTR_DIRECTION_EXPERIMENT = "slideshowSlideLtrDirection";
|
|
188
187
|
const semanticClassNames = {
|
|
189
188
|
root: "slideshow",
|
|
190
189
|
buttons: "slideshow-buttons",
|
|
@@ -200,7 +199,6 @@ export {
|
|
|
200
199
|
LegacyTranslationKeys as L,
|
|
201
200
|
MOVEMENT_DIRECTION as M,
|
|
202
201
|
PAUSE_BUTTON_VISIBILITY as P,
|
|
203
|
-
SLIDESHOW_SLIDE_LTR_DIRECTION_EXPERIMENT as S,
|
|
204
202
|
TranslationKeys as T,
|
|
205
203
|
semanticClassNames as a,
|
|
206
204
|
ARIA_LABEL_NAMESPACE as b,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2831.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -224,5 +224,5 @@
|
|
|
224
224
|
"registry": "https://registry.npmjs.org/",
|
|
225
225
|
"access": "public"
|
|
226
226
|
},
|
|
227
|
-
"falconPackageHash": "
|
|
227
|
+
"falconPackageHash": "d99befa873b03938c32713d02cf95bbd2d5861d24704e3d573bae9e9"
|
|
228
228
|
}
|