pds-dev-kit-web-test 2.7.264 → 2.7.266

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.
@@ -71,6 +71,7 @@ function ContentsCarousel(props) {
71
71
  var autoPlayEnabled = device === 'DESKTOP'
72
72
  ? CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD.CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD_SPEC_AUTOPLAYUSE
73
73
  : (_a = CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD['CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD_SPEC_AUTOPLAYUSE:MOBILE']) !== null && _a !== void 0 ? _a : CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD.CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD_SPEC_AUTOPLAYUSE;
74
+ // const useAutoplay = autoPlayEnabled && > 1;
74
75
  var displayCounts = device === 'DESKTOP'
75
76
  ? CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS
76
77
  : CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MDISPLAYCOUNTS !== null && CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MDISPLAYCOUNTS !== void 0 ? CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MDISPLAYCOUNTS : CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MANUALITEMS.length;
@@ -178,7 +179,9 @@ function ContentsCarousel(props) {
178
179
  limit: displayCounts,
179
180
  queryData: queryData,
180
181
  compositions: orderedCompositions
181
- }) }), CB_EFFECT_PROP_CONTENTSCAROUSEL_SPEC_TRANSITIONTYPE + autoPlayEnabled) })) }))] })) }))] }));
182
+ }) }), CB_EFFECT_PROP_CONTENTSCAROUSEL_SPEC_TRANSITIONTYPE +
183
+ autoPlayEnabled +
184
+ compositions.length) })) }))] })) }))] }));
182
185
  }
183
186
  var S_Overlay = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: inherit;\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"], ["\n border-radius: inherit;\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"])));
184
187
  function getIsBgMedia(isMobile, specs) {
@@ -30,9 +30,7 @@ var CustomProgressbar = function (_a) {
30
30
  (0, react_1.useEffect)(function () {
31
31
  var updateTimer = function () {
32
32
  var _a;
33
- var remainingMs = (_a = leftTimeMsRef.current) !== null && _a !== void 0 ? _a : 0; // 기본값을 10000 대신 0으로 변경
34
- // 1. Math.max를 사용해 0 미만으로 내려가지 않도록 함
35
- // 2. Math.ceil을 사용해 0.1초가 남아도 1초로 표시하도록 올림 처리
33
+ var remainingMs = (_a = leftTimeMsRef.current) !== null && _a !== void 0 ? _a : 0;
36
34
  var sec = Math.max(0, Math.ceil(remainingMs / 1000));
37
35
  setLeftTimeSec(sec);
38
36
  };
@@ -22,9 +22,9 @@ function useSwiper() {
22
22
  // swiper.autoplay.stop();
23
23
  // return;
24
24
  // }
25
+ console.log(swiper.autoplay.paused);
25
26
  leftTimeMsRef.current = time;
26
27
  progressRef.current = progress;
27
- console.log('time', time, 'progress', progress);
28
28
  }, []);
29
29
  var onClickPrevBtn = function () {
30
30
  if (swiperRef.current) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.264",
3
+ "version": "2.7.266",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",