@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261015111022 → 0.8.1-dev.20261016052853
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/{InputControlClient-7CUK6ECL.mjs → InputControlClient-IKQYB764.mjs} +1 -1
- package/dist/{Slider-5VE2T2QN.mjs → Slider-BH5S4XRN.mjs} +8 -33
- package/dist/{Slider-3URCZ3JU.mjs → Slider-XDYPGJYI.mjs} +8 -33
- package/dist/{chunk-RNLQULF4.mjs → chunk-GNIFUHGR.mjs} +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -35
- package/dist/index.mjs +8 -5
- package/dist/server.js +8 -33
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
|
@@ -31,9 +31,7 @@ var Slider = ({
|
|
|
31
31
|
);
|
|
32
32
|
const [isPlaying, setIsPlaying] = useState(autoplay);
|
|
33
33
|
const trackRef = useRef(null);
|
|
34
|
-
|
|
35
|
-
const nextSlideRef = useRef(() => {
|
|
36
|
-
});
|
|
34
|
+
console.log("trackRef:", trackRef);
|
|
37
35
|
const [videoProgress, setVideoProgress] = useState(null);
|
|
38
36
|
useEffect(() => {
|
|
39
37
|
if (typeof initialSlidesToShow === "number") {
|
|
@@ -55,36 +53,16 @@ var Slider = ({
|
|
|
55
53
|
}, [initialSlidesToShow]);
|
|
56
54
|
useEffect(() => {
|
|
57
55
|
if (!autoplay) return;
|
|
58
|
-
if (trackRef.current) {
|
|
59
|
-
Array.from(trackRef.current.children).forEach((child, index) => {
|
|
60
|
-
if (index !== currentSlide) {
|
|
61
|
-
const nonActiveVideos = child.querySelectorAll("video");
|
|
62
|
-
nonActiveVideos.forEach((vid) => {
|
|
63
|
-
vid.pause();
|
|
64
|
-
vid.currentTime = 0;
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
56
|
const activeSlideElement = trackRef.current?.children[currentSlide];
|
|
70
57
|
const videoElement = activeSlideElement?.querySelector("video");
|
|
71
|
-
const isNewSlide = prevSlideRef.current !== currentSlide;
|
|
72
|
-
prevSlideRef.current = currentSlide;
|
|
73
58
|
if (videoElement) {
|
|
74
59
|
videoElement.loop = false;
|
|
75
|
-
|
|
76
|
-
|
|
60
|
+
setVideoProgress(0);
|
|
61
|
+
if (videoElement.ended) {
|
|
77
62
|
videoElement.currentTime = 0;
|
|
78
63
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
videoElement.currentTime = 0;
|
|
82
|
-
}
|
|
83
|
-
videoElement.play().catch(() => {
|
|
84
|
-
});
|
|
85
|
-
} else {
|
|
86
|
-
videoElement.pause();
|
|
87
|
-
}
|
|
64
|
+
videoElement.play().catch(() => {
|
|
65
|
+
});
|
|
88
66
|
const handleTimeUpdate = () => {
|
|
89
67
|
if (videoElement.duration && !isNaN(videoElement.duration) && videoElement.duration > 0) {
|
|
90
68
|
const pct = videoElement.currentTime / videoElement.duration * 100;
|
|
@@ -93,12 +71,10 @@ var Slider = ({
|
|
|
93
71
|
};
|
|
94
72
|
const handleVideoEnded = () => {
|
|
95
73
|
setVideoProgress(100);
|
|
96
|
-
|
|
74
|
+
nextSlide();
|
|
97
75
|
};
|
|
98
76
|
const handleVideoError = () => {
|
|
99
|
-
|
|
100
|
-
nextSlideRef.current();
|
|
101
|
-
}
|
|
77
|
+
nextSlide();
|
|
102
78
|
};
|
|
103
79
|
videoElement.addEventListener("timeupdate", handleTimeUpdate);
|
|
104
80
|
videoElement.addEventListener("loadedmetadata", handleTimeUpdate);
|
|
@@ -115,7 +91,7 @@ var Slider = ({
|
|
|
115
91
|
}
|
|
116
92
|
const timer = setInterval(() => {
|
|
117
93
|
if (isPlaying) {
|
|
118
|
-
|
|
94
|
+
nextSlide();
|
|
119
95
|
}
|
|
120
96
|
}, autoplay_speed);
|
|
121
97
|
return () => clearInterval(timer);
|
|
@@ -154,7 +130,6 @@ var Slider = ({
|
|
|
154
130
|
setCurrentSlide(slidePositions[currentStepIndex + 1]);
|
|
155
131
|
}
|
|
156
132
|
};
|
|
157
|
-
nextSlideRef.current = nextSlide;
|
|
158
133
|
const prevSlide = () => {
|
|
159
134
|
if (currentStepIndex <= 0) {
|
|
160
135
|
if (infinite_scroll) {
|
|
@@ -33,9 +33,7 @@ var Slider = ({
|
|
|
33
33
|
);
|
|
34
34
|
const [isPlaying, setIsPlaying] = useState(autoplay);
|
|
35
35
|
const trackRef = useRef(null);
|
|
36
|
-
|
|
37
|
-
const nextSlideRef = useRef(() => {
|
|
38
|
-
});
|
|
36
|
+
console.log("trackRef:", trackRef);
|
|
39
37
|
const [videoProgress, setVideoProgress] = useState(null);
|
|
40
38
|
useEffect(() => {
|
|
41
39
|
if (typeof initialSlidesToShow === "number") {
|
|
@@ -57,36 +55,16 @@ var Slider = ({
|
|
|
57
55
|
}, [initialSlidesToShow]);
|
|
58
56
|
useEffect(() => {
|
|
59
57
|
if (!autoplay) return;
|
|
60
|
-
if (trackRef.current) {
|
|
61
|
-
Array.from(trackRef.current.children).forEach((child, index) => {
|
|
62
|
-
if (index !== currentSlide) {
|
|
63
|
-
const nonActiveVideos = child.querySelectorAll("video");
|
|
64
|
-
nonActiveVideos.forEach((vid) => {
|
|
65
|
-
vid.pause();
|
|
66
|
-
vid.currentTime = 0;
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
58
|
const activeSlideElement = trackRef.current?.children[currentSlide];
|
|
72
59
|
const videoElement = activeSlideElement?.querySelector("video");
|
|
73
|
-
const isNewSlide = prevSlideRef.current !== currentSlide;
|
|
74
|
-
prevSlideRef.current = currentSlide;
|
|
75
60
|
if (videoElement) {
|
|
76
61
|
videoElement.loop = false;
|
|
77
|
-
|
|
78
|
-
|
|
62
|
+
setVideoProgress(0);
|
|
63
|
+
if (videoElement.ended) {
|
|
79
64
|
videoElement.currentTime = 0;
|
|
80
65
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
videoElement.currentTime = 0;
|
|
84
|
-
}
|
|
85
|
-
videoElement.play().catch(() => {
|
|
86
|
-
});
|
|
87
|
-
} else {
|
|
88
|
-
videoElement.pause();
|
|
89
|
-
}
|
|
66
|
+
videoElement.play().catch(() => {
|
|
67
|
+
});
|
|
90
68
|
const handleTimeUpdate = () => {
|
|
91
69
|
if (videoElement.duration && !isNaN(videoElement.duration) && videoElement.duration > 0) {
|
|
92
70
|
const pct = videoElement.currentTime / videoElement.duration * 100;
|
|
@@ -95,12 +73,10 @@ var Slider = ({
|
|
|
95
73
|
};
|
|
96
74
|
const handleVideoEnded = () => {
|
|
97
75
|
setVideoProgress(100);
|
|
98
|
-
|
|
76
|
+
nextSlide();
|
|
99
77
|
};
|
|
100
78
|
const handleVideoError = () => {
|
|
101
|
-
|
|
102
|
-
nextSlideRef.current();
|
|
103
|
-
}
|
|
79
|
+
nextSlide();
|
|
104
80
|
};
|
|
105
81
|
videoElement.addEventListener("timeupdate", handleTimeUpdate);
|
|
106
82
|
videoElement.addEventListener("loadedmetadata", handleTimeUpdate);
|
|
@@ -117,7 +93,7 @@ var Slider = ({
|
|
|
117
93
|
}
|
|
118
94
|
const timer = setInterval(() => {
|
|
119
95
|
if (isPlaying) {
|
|
120
|
-
|
|
96
|
+
nextSlide();
|
|
121
97
|
}
|
|
122
98
|
}, autoplay_speed);
|
|
123
99
|
return () => clearInterval(timer);
|
|
@@ -156,7 +132,6 @@ var Slider = ({
|
|
|
156
132
|
setCurrentSlide(slidePositions[currentStepIndex + 1]);
|
|
157
133
|
}
|
|
158
134
|
};
|
|
159
|
-
nextSlideRef.current = nextSlide;
|
|
160
135
|
const prevSlide = () => {
|
|
161
136
|
if (currentStepIndex <= 0) {
|
|
162
137
|
if (infinite_scroll) {
|
|
@@ -88,6 +88,7 @@ var LineTextInput = (props) => {
|
|
|
88
88
|
autoFocus: props?.attributes?.autoFocus,
|
|
89
89
|
required: props?.attributes?.required,
|
|
90
90
|
placeholder: props?.attributes?.placeholder,
|
|
91
|
+
size: props?.attributes?.size,
|
|
91
92
|
maxLength: props?.attributes?.maxLength,
|
|
92
93
|
pattern: props?.attributes?.pattern,
|
|
93
94
|
disabled: props?.attributes?.readOnly,
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2268,6 +2268,7 @@ var init_LineTextInput = __esm({
|
|
|
2268
2268
|
autoFocus: props?.attributes?.autoFocus,
|
|
2269
2269
|
required: props?.attributes?.required,
|
|
2270
2270
|
placeholder: props?.attributes?.placeholder,
|
|
2271
|
+
size: props?.attributes?.size,
|
|
2271
2272
|
maxLength: props?.attributes?.maxLength,
|
|
2272
2273
|
pattern: props?.attributes?.pattern,
|
|
2273
2274
|
disabled: props?.attributes?.readOnly,
|
|
@@ -7194,9 +7195,7 @@ var init_Slider = __esm({
|
|
|
7194
7195
|
);
|
|
7195
7196
|
const [isPlaying, setIsPlaying] = (0, import_react62.useState)(autoplay);
|
|
7196
7197
|
const trackRef = (0, import_react62.useRef)(null);
|
|
7197
|
-
|
|
7198
|
-
const nextSlideRef = (0, import_react62.useRef)(() => {
|
|
7199
|
-
});
|
|
7198
|
+
console.log("trackRef:", trackRef);
|
|
7200
7199
|
const [videoProgress, setVideoProgress] = (0, import_react62.useState)(null);
|
|
7201
7200
|
(0, import_react62.useEffect)(() => {
|
|
7202
7201
|
if (typeof initialSlidesToShow === "number") {
|
|
@@ -7218,36 +7217,16 @@ var init_Slider = __esm({
|
|
|
7218
7217
|
}, [initialSlidesToShow]);
|
|
7219
7218
|
(0, import_react62.useEffect)(() => {
|
|
7220
7219
|
if (!autoplay) return;
|
|
7221
|
-
if (trackRef.current) {
|
|
7222
|
-
Array.from(trackRef.current.children).forEach((child, index) => {
|
|
7223
|
-
if (index !== currentSlide) {
|
|
7224
|
-
const nonActiveVideos = child.querySelectorAll("video");
|
|
7225
|
-
nonActiveVideos.forEach((vid) => {
|
|
7226
|
-
vid.pause();
|
|
7227
|
-
vid.currentTime = 0;
|
|
7228
|
-
});
|
|
7229
|
-
}
|
|
7230
|
-
});
|
|
7231
|
-
}
|
|
7232
7220
|
const activeSlideElement = trackRef.current?.children[currentSlide];
|
|
7233
7221
|
const videoElement = activeSlideElement?.querySelector("video");
|
|
7234
|
-
const isNewSlide = prevSlideRef.current !== currentSlide;
|
|
7235
|
-
prevSlideRef.current = currentSlide;
|
|
7236
7222
|
if (videoElement) {
|
|
7237
7223
|
videoElement.loop = false;
|
|
7238
|
-
|
|
7239
|
-
|
|
7224
|
+
setVideoProgress(0);
|
|
7225
|
+
if (videoElement.ended) {
|
|
7240
7226
|
videoElement.currentTime = 0;
|
|
7241
7227
|
}
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
videoElement.currentTime = 0;
|
|
7245
|
-
}
|
|
7246
|
-
videoElement.play().catch(() => {
|
|
7247
|
-
});
|
|
7248
|
-
} else {
|
|
7249
|
-
videoElement.pause();
|
|
7250
|
-
}
|
|
7228
|
+
videoElement.play().catch(() => {
|
|
7229
|
+
});
|
|
7251
7230
|
const handleTimeUpdate = () => {
|
|
7252
7231
|
if (videoElement.duration && !isNaN(videoElement.duration) && videoElement.duration > 0) {
|
|
7253
7232
|
const pct = videoElement.currentTime / videoElement.duration * 100;
|
|
@@ -7256,12 +7235,10 @@ var init_Slider = __esm({
|
|
|
7256
7235
|
};
|
|
7257
7236
|
const handleVideoEnded = () => {
|
|
7258
7237
|
setVideoProgress(100);
|
|
7259
|
-
|
|
7238
|
+
nextSlide();
|
|
7260
7239
|
};
|
|
7261
7240
|
const handleVideoError = () => {
|
|
7262
|
-
|
|
7263
|
-
nextSlideRef.current();
|
|
7264
|
-
}
|
|
7241
|
+
nextSlide();
|
|
7265
7242
|
};
|
|
7266
7243
|
videoElement.addEventListener("timeupdate", handleTimeUpdate);
|
|
7267
7244
|
videoElement.addEventListener("loadedmetadata", handleTimeUpdate);
|
|
@@ -7278,7 +7255,7 @@ var init_Slider = __esm({
|
|
|
7278
7255
|
}
|
|
7279
7256
|
const timer = setInterval(() => {
|
|
7280
7257
|
if (isPlaying) {
|
|
7281
|
-
|
|
7258
|
+
nextSlide();
|
|
7282
7259
|
}
|
|
7283
7260
|
}, autoplay_speed);
|
|
7284
7261
|
return () => clearInterval(timer);
|
|
@@ -7317,7 +7294,6 @@ var init_Slider = __esm({
|
|
|
7317
7294
|
setCurrentSlide(slidePositions[currentStepIndex + 1]);
|
|
7318
7295
|
}
|
|
7319
7296
|
};
|
|
7320
|
-
nextSlideRef.current = nextSlide;
|
|
7321
7297
|
const prevSlide = () => {
|
|
7322
7298
|
if (currentStepIndex <= 0) {
|
|
7323
7299
|
if (infinite_scroll) {
|
|
@@ -11078,6 +11054,7 @@ var DataList = (props) => {
|
|
|
11078
11054
|
console.log(props.addLinkText);
|
|
11079
11055
|
const [isDataFound, setIsDataFound] = (0, import_react69.useState)(null);
|
|
11080
11056
|
const [searchTerm, setSearchTerm] = (0, import_react69.useState)(props.query?.searchTerm ?? "");
|
|
11057
|
+
const searchPlaceholder = `Search by ${props.columns.filter((col) => col.isSearchable).map((col) => col.label).join(", ")}`;
|
|
11081
11058
|
(0, import_react69.useEffect)(() => {
|
|
11082
11059
|
setSearchTerm(props.query?.searchTerm ?? "");
|
|
11083
11060
|
}, [props.query?.searchTerm]);
|
|
@@ -11367,7 +11344,8 @@ var DataList = (props) => {
|
|
|
11367
11344
|
callback: (e) => setSearchTerm(e.value),
|
|
11368
11345
|
attributes: {
|
|
11369
11346
|
autoFocus: true,
|
|
11370
|
-
placeholder:
|
|
11347
|
+
placeholder: searchPlaceholder,
|
|
11348
|
+
size: searchPlaceholder.length
|
|
11371
11349
|
}
|
|
11372
11350
|
}
|
|
11373
11351
|
),
|
|
@@ -11565,7 +11543,8 @@ var DataList = (props) => {
|
|
|
11565
11543
|
callback: (e) => setSearchTerm(e.value),
|
|
11566
11544
|
attributes: {
|
|
11567
11545
|
autoFocus: true,
|
|
11568
|
-
placeholder:
|
|
11546
|
+
placeholder: searchPlaceholder,
|
|
11547
|
+
size: searchPlaceholder.length
|
|
11569
11548
|
}
|
|
11570
11549
|
}
|
|
11571
11550
|
),
|
package/dist/index.mjs
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
getDialCodeByCountryCode,
|
|
32
32
|
resolveCountry,
|
|
33
33
|
splitPhoneNumber
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GNIFUHGR.mjs";
|
|
35
35
|
import {
|
|
36
36
|
Constants,
|
|
37
37
|
Hyperlink,
|
|
@@ -463,7 +463,7 @@ var ViewControl_default = ViewControl;
|
|
|
463
463
|
|
|
464
464
|
// src/components/controls/edit/InputControl.tsx
|
|
465
465
|
import dynamic7 from "next/dynamic";
|
|
466
|
-
var InputControl = dynamic7(() => import("./InputControlClient-
|
|
466
|
+
var InputControl = dynamic7(() => import("./InputControlClient-IKQYB764.mjs"), {
|
|
467
467
|
ssr: false
|
|
468
468
|
});
|
|
469
469
|
var InputControl_default = InputControl;
|
|
@@ -2551,7 +2551,7 @@ var Pagination = dynamic16(() => import("./Pagination-6R4XZLF6.mjs"), { ssr: tru
|
|
|
2551
2551
|
var DataBindingControls = dynamic16(() => import("./DataBindingControls-VSLL4WV2.mjs"), {
|
|
2552
2552
|
ssr: true
|
|
2553
2553
|
});
|
|
2554
|
-
var Slider = dynamic16(() => import("./Slider-
|
|
2554
|
+
var Slider = dynamic16(() => import("./Slider-XDYPGJYI.mjs"), {
|
|
2555
2555
|
ssr: false
|
|
2556
2556
|
});
|
|
2557
2557
|
function toCamelCase(str) {
|
|
@@ -3476,6 +3476,7 @@ var DataList = (props) => {
|
|
|
3476
3476
|
console.log(props.addLinkText);
|
|
3477
3477
|
const [isDataFound, setIsDataFound] = useState2(null);
|
|
3478
3478
|
const [searchTerm, setSearchTerm] = useState2(props.query?.searchTerm ?? "");
|
|
3479
|
+
const searchPlaceholder = `Search by ${props.columns.filter((col) => col.isSearchable).map((col) => col.label).join(", ")}`;
|
|
3479
3480
|
useEffect3(() => {
|
|
3480
3481
|
setSearchTerm(props.query?.searchTerm ?? "");
|
|
3481
3482
|
}, [props.query?.searchTerm]);
|
|
@@ -3765,7 +3766,8 @@ var DataList = (props) => {
|
|
|
3765
3766
|
callback: (e) => setSearchTerm(e.value),
|
|
3766
3767
|
attributes: {
|
|
3767
3768
|
autoFocus: true,
|
|
3768
|
-
placeholder:
|
|
3769
|
+
placeholder: searchPlaceholder,
|
|
3770
|
+
size: searchPlaceholder.length
|
|
3769
3771
|
}
|
|
3770
3772
|
}
|
|
3771
3773
|
),
|
|
@@ -3963,7 +3965,8 @@ var DataList = (props) => {
|
|
|
3963
3965
|
callback: (e) => setSearchTerm(e.value),
|
|
3964
3966
|
attributes: {
|
|
3965
3967
|
autoFocus: true,
|
|
3966
|
-
placeholder:
|
|
3968
|
+
placeholder: searchPlaceholder,
|
|
3969
|
+
size: searchPlaceholder.length
|
|
3967
3970
|
}
|
|
3968
3971
|
}
|
|
3969
3972
|
),
|
package/dist/server.js
CHANGED
|
@@ -4829,9 +4829,7 @@ var init_Slider = __esm({
|
|
|
4829
4829
|
);
|
|
4830
4830
|
const [isPlaying, setIsPlaying] = (0, import_react42.useState)(autoplay);
|
|
4831
4831
|
const trackRef = (0, import_react42.useRef)(null);
|
|
4832
|
-
|
|
4833
|
-
const nextSlideRef = (0, import_react42.useRef)(() => {
|
|
4834
|
-
});
|
|
4832
|
+
console.log("trackRef:", trackRef);
|
|
4835
4833
|
const [videoProgress, setVideoProgress] = (0, import_react42.useState)(null);
|
|
4836
4834
|
(0, import_react42.useEffect)(() => {
|
|
4837
4835
|
if (typeof initialSlidesToShow === "number") {
|
|
@@ -4853,36 +4851,16 @@ var init_Slider = __esm({
|
|
|
4853
4851
|
}, [initialSlidesToShow]);
|
|
4854
4852
|
(0, import_react42.useEffect)(() => {
|
|
4855
4853
|
if (!autoplay) return;
|
|
4856
|
-
if (trackRef.current) {
|
|
4857
|
-
Array.from(trackRef.current.children).forEach((child, index) => {
|
|
4858
|
-
if (index !== currentSlide) {
|
|
4859
|
-
const nonActiveVideos = child.querySelectorAll("video");
|
|
4860
|
-
nonActiveVideos.forEach((vid) => {
|
|
4861
|
-
vid.pause();
|
|
4862
|
-
vid.currentTime = 0;
|
|
4863
|
-
});
|
|
4864
|
-
}
|
|
4865
|
-
});
|
|
4866
|
-
}
|
|
4867
4854
|
const activeSlideElement = trackRef.current?.children[currentSlide];
|
|
4868
4855
|
const videoElement = activeSlideElement?.querySelector("video");
|
|
4869
|
-
const isNewSlide = prevSlideRef.current !== currentSlide;
|
|
4870
|
-
prevSlideRef.current = currentSlide;
|
|
4871
4856
|
if (videoElement) {
|
|
4872
4857
|
videoElement.loop = false;
|
|
4873
|
-
|
|
4874
|
-
|
|
4858
|
+
setVideoProgress(0);
|
|
4859
|
+
if (videoElement.ended) {
|
|
4875
4860
|
videoElement.currentTime = 0;
|
|
4876
4861
|
}
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
videoElement.currentTime = 0;
|
|
4880
|
-
}
|
|
4881
|
-
videoElement.play().catch(() => {
|
|
4882
|
-
});
|
|
4883
|
-
} else {
|
|
4884
|
-
videoElement.pause();
|
|
4885
|
-
}
|
|
4862
|
+
videoElement.play().catch(() => {
|
|
4863
|
+
});
|
|
4886
4864
|
const handleTimeUpdate = () => {
|
|
4887
4865
|
if (videoElement.duration && !isNaN(videoElement.duration) && videoElement.duration > 0) {
|
|
4888
4866
|
const pct = videoElement.currentTime / videoElement.duration * 100;
|
|
@@ -4891,12 +4869,10 @@ var init_Slider = __esm({
|
|
|
4891
4869
|
};
|
|
4892
4870
|
const handleVideoEnded = () => {
|
|
4893
4871
|
setVideoProgress(100);
|
|
4894
|
-
|
|
4872
|
+
nextSlide();
|
|
4895
4873
|
};
|
|
4896
4874
|
const handleVideoError = () => {
|
|
4897
|
-
|
|
4898
|
-
nextSlideRef.current();
|
|
4899
|
-
}
|
|
4875
|
+
nextSlide();
|
|
4900
4876
|
};
|
|
4901
4877
|
videoElement.addEventListener("timeupdate", handleTimeUpdate);
|
|
4902
4878
|
videoElement.addEventListener("loadedmetadata", handleTimeUpdate);
|
|
@@ -4913,7 +4889,7 @@ var init_Slider = __esm({
|
|
|
4913
4889
|
}
|
|
4914
4890
|
const timer = setInterval(() => {
|
|
4915
4891
|
if (isPlaying) {
|
|
4916
|
-
|
|
4892
|
+
nextSlide();
|
|
4917
4893
|
}
|
|
4918
4894
|
}, autoplay_speed);
|
|
4919
4895
|
return () => clearInterval(timer);
|
|
@@ -4952,7 +4928,6 @@ var init_Slider = __esm({
|
|
|
4952
4928
|
setCurrentSlide(slidePositions[currentStepIndex + 1]);
|
|
4953
4929
|
}
|
|
4954
4930
|
};
|
|
4955
|
-
nextSlideRef.current = nextSlide;
|
|
4956
4931
|
const prevSlide = () => {
|
|
4957
4932
|
if (currentStepIndex <= 0) {
|
|
4958
4933
|
if (infinite_scroll) {
|
package/dist/server.mjs
CHANGED
|
@@ -2507,7 +2507,7 @@ var Pagination = dynamic15(() => import("./Pagination-RMAXCIL7.mjs"), { ssr: tru
|
|
|
2507
2507
|
var DataBindingControls = dynamic15(() => import("./DataBindingControls-Z2AHWFYX.mjs"), {
|
|
2508
2508
|
ssr: true
|
|
2509
2509
|
});
|
|
2510
|
-
var Slider = dynamic15(() => import("./Slider-
|
|
2510
|
+
var Slider = dynamic15(() => import("./Slider-BH5S4XRN.mjs"), {
|
|
2511
2511
|
ssr: false
|
|
2512
2512
|
});
|
|
2513
2513
|
function toCamelCase(str) {
|