pds-dev-kit-web-test 2.5.468 → 2.5.470

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 (146) hide show
  1. package/dist/src/common/hooks/useTooltip.js +1 -1
  2. package/dist/src/common/styles/colorSet/index.d.ts +2 -2
  3. package/dist/src/common/styles/colorSet/index.js +2 -2
  4. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  5. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  6. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.d.ts +2 -17
  7. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +5 -35
  8. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +21 -0
  9. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +1133 -0
  10. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +4 -1
  11. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +5 -3
  12. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  13. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +11 -0
  14. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +45 -0
  15. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +10 -0
  16. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +79 -0
  17. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  18. package/dist/src/sub/DynamicLayout/DynamicLayout.js +3 -2
  19. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  20. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
  21. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
  22. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
  23. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
  24. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
  25. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
  26. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
  27. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
  28. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
  29. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
  30. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
  31. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
  32. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
  33. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
  34. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
  35. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
  36. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
  37. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
  38. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +3 -1
  39. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +5 -3
  40. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +2 -1
  41. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +9 -2
  42. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +139 -0
  43. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +2 -0
  44. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +8 -0
  45. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +14 -0
  46. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +3 -0
  47. package/dist/src/sub/DynamicLayout/mock_composition.js +1606 -0
  48. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -0
  49. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1123 -0
  50. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -0
  51. package/dist/src/sub/DynamicLayout/mock_contentsList.js +1091 -0
  52. package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +96 -0
  53. package/dist/src/sub/DynamicLayout/mock_queryData.js +2639 -0
  54. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +842 -0
  55. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +854 -0
  56. package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
  57. package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
  58. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +0 -1
  59. package/dist/src/sub/DynamicLayout/mock_video_cb.js +4 -5
  60. package/dist/src/sub/DynamicLayout/mocks.d.ts +8 -961
  61. package/dist/src/sub/DynamicLayout/mocks.js +4286 -6
  62. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
  63. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
  64. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -4
  65. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +13 -3
  66. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +18 -2
  67. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  68. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +249 -2
  69. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +17 -0
  70. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +59 -0
  71. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +35 -0
  72. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +118 -0
  73. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +32 -0
  74. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +183 -0
  75. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +23 -0
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +117 -0
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +849 -0
  79. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +43 -0
  80. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +162 -0
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +40 -0
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +747 -0
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +1 -0
  84. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +8 -0
  85. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +105 -0
  86. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +2 -0
  87. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +8 -0
  88. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +172 -0
  89. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
  90. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
  91. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +29 -0
  92. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +115 -0
  93. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +25 -0
  94. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +183 -0
  95. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +30 -0
  96. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +380 -0
  97. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
  98. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +8 -0
  99. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +56 -0
  100. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
  101. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +39 -3
  102. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +8 -0
  103. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +215 -0
  104. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +15 -0
  105. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +39 -0
  106. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +35 -0
  107. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +118 -0
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +33 -0
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +183 -0
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +23 -0
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +117 -0
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +849 -0
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +43 -0
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +162 -0
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +1 -0
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +8 -0
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +48 -0
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +956 -0
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +120 -0
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +2 -0
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +31 -7
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +3 -28
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +0 -1
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +5 -15
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +45 -3
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +27 -10
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +3 -1
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +14 -0
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +26 -0
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +52 -3
  140. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
  141. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -0
  142. package/dist/src/sub/DynamicLayout/types.d.ts +49 -16
  143. package/package.json +3 -2
  144. package/release-note.md +2 -2
  145. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
  146. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { Layout } from 'publ-echo/dist/lib';
3
- import type { ResizeEventType } from 'publ-echo/dist/lib/GridItem/types';
4
- import type { ComponentBlock, GroupBlock } from 'publ-echo/dist/lib/GridLayoutEditor/group';
5
- import type { LayoutItem, Layouts } from 'publ-echo/dist/lib/GridLayoutEditor/types';
2
+ import type { Layout } from 'publ-echo-test/dist/lib';
3
+ import type { ResizeEventType } from 'publ-echo-test/dist/lib/GridItem/types';
4
+ import type { ComponentBlock, GroupBlock } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
5
+ import type { LayoutItem, Layouts } from 'publ-echo-test/dist/lib/GridLayoutEditor/types';
6
6
  export type TypeOfSectionAction = ActionMap<ActionHandlerPayload>[keyof ActionMap<ActionHandlerPayload>];
7
7
  export type PayloadCBType = {
8
8
  type: ComponentBlock['type'];
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { ISection } from '../../types';
3
- import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
3
+ import type { Layout } from 'publ-echo-test/dist/lib/GridLayoutEditor/types';
4
4
  export type LayoutsType = {
5
5
  sm: Layout;
6
6
  lg: Layout;
@@ -51,9 +51,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
53
  var jsx_runtime_1 = require("react/jsx-runtime");
54
- var publ_echo_1 = require("publ-echo");
55
- var group_1 = require("publ-echo/dist/lib/GridLayoutEditor/group");
56
- var renderHelpers_1 = require("publ-echo/dist/lib/GridLayoutEditor/utils/renderHelpers");
54
+ var publ_echo_test_1 = require("publ-echo-test");
55
+ var group_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/group");
56
+ var renderHelpers_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/utils/renderHelpers");
57
57
  var react_1 = __importStar(require("react"));
58
58
  var ErrorBoundary_1 = require("../../../DynamicLayout/components/Section/ErrorBoundary");
59
59
  var dynamicLayoutContext_1 = require("../../../DynamicLayout/dynamicLayoutContext");
@@ -66,7 +66,7 @@ var clsx_1 = require("./newUtils/clsx");
66
66
  var group_2 = require("./newUtils/group");
67
67
  var util_1 = require("./util");
68
68
  var parseSectionPadding_1 = __importDefault(require("./util/layoutPropParsers/parseSectionPadding"));
69
- var Responsive = (0, publ_echo_1.WidthProvider)(publ_echo_1.ResponsiveGridEditor);
69
+ var Responsive = (0, publ_echo_test_1.WidthProvider)(publ_echo_test_1.ResponsiveGridEditor);
70
70
  var GRID_CELL_MIN = 24;
71
71
  var DESKTOP_GRID_COLS = 24;
72
72
  var MOBILE_GRID_COLS = 8;
@@ -19,11 +19,13 @@ require("react");
19
19
  var newUtils_1 = require("../../newUtils");
20
20
  var types_1 = require("../../types");
21
21
  var Button_1 = __importDefault(require("./componentBlocks/Button/Button"));
22
- var ContentsCarousel_1 = __importDefault(require("./componentBlocks/ContentsCarousel/ContentsCarousel"));
22
+ var ContentsCarousel_1 = require("./componentBlocks/ContentsCarousel");
23
+ var ContentsList_1 = require("./componentBlocks/ContentsList");
23
24
  var Divider_1 = __importDefault(require("./componentBlocks/Divider/Divider"));
24
25
  var Embed_1 = __importDefault(require("./componentBlocks/Embed/Embed"));
25
26
  var Image_1 = __importDefault(require("./componentBlocks/Image/Image"));
26
27
  var RichText_1 = require("./componentBlocks/RichText");
28
+ var SlideBanner_1 = require("./componentBlocks/SlideBanner");
27
29
  var Text_1 = __importDefault(require("./componentBlocks/Text/Text"));
28
30
  var Twitter_1 = __importDefault(require("./componentBlocks/Twitter/Twitter"));
29
31
  var VideoPlayer_1 = require("./componentBlocks/VideoPlayer");
@@ -51,9 +53,17 @@ function ComponentBlockMatcher(_a) {
51
53
  return (0, jsx_runtime_1.jsx)(Embed_1.default, __assign({}, propsWithValue, { index: index }));
52
54
  case types_1.CB_ALL_CODES.CB_VIDEOPLAYER:
53
55
  return (0, jsx_runtime_1.jsx)(VideoPlayer_1.VideoPlayer, __assign({}, propsWithValue, { index: index }));
54
- case types_1.CB_ALL_CODES.CB_CONTENTS_CAROUSEL: {
56
+ case types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL: {
55
57
  var compositions = cbProps.compositions;
56
- return ((0, jsx_runtime_1.jsx)(ContentsCarousel_1.default, __assign({}, propsWithValue, { compositions: compositions, index: index })));
58
+ return ((0, jsx_runtime_1.jsx)(ContentsCarousel_1.ContentsCarousel, __assign({}, propsWithValue, { compositions: compositions, index: index })));
59
+ }
60
+ case types_1.CB_ALL_CODES.CB_SLIDEBANNER: {
61
+ var compositions = cbProps.compositions;
62
+ return ((0, jsx_runtime_1.jsx)(SlideBanner_1.SlideBanner, __assign({}, propsWithValue, { compositions: compositions, index: index })));
63
+ }
64
+ case types_1.CB_ALL_CODES.CB_LIST: {
65
+ var compositions = cbProps.compositions;
66
+ return ((0, jsx_runtime_1.jsx)(ContentsList_1.ContentsList, __assign({}, propsWithValue, { compositions: compositions, index: index })));
57
67
  }
58
68
  default:
59
69
  return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
@@ -29,6 +29,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
29
29
  /* eslint-disable react/destructuring-assignment */
30
30
  var react_1 = require("react");
31
31
  var DynamicLayout_1 = require("../../../../../../../DynamicLayout");
32
+ var compositionQueryContext_1 = require("../../../../../../../DynamicLayout/compositionQueryContext");
32
33
  var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
33
34
  var useGoogleFonts_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks/useGoogleFonts");
34
35
  var newUtils_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/newUtils");
@@ -40,9 +41,24 @@ var S_HiddenCover_1 = require("../components/S_HiddenCover");
40
41
  var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
41
42
  function Button(props) {
42
43
  var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
43
- var index = props.index, CB_STYLE_PROP_COLOR = props.CB_STYLE_PROP_COLOR, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
44
+ var queryContext = (0, compositionQueryContext_1.useCCBQueryPath)();
45
+ var index = props.index, CB_STYLE_PROP_COLOR = props.CB_STYLE_PROP_COLOR, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
46
+ var cLinkValue = function () {
47
+ if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA' ||
48
+ CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
49
+ if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
50
+ return '';
51
+ }
52
+ var link = queryContext.queryData[CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA];
53
+ if (!link) {
54
+ return '';
55
+ }
56
+ return link;
57
+ }
58
+ return CB_CONTENT_PROP_CLINK_SPEC_SRC;
59
+ };
44
60
  var _c = (0, useCLINK_1.default)({
45
- src: CB_CONTENT_PROP_CLINK_SPEC_SRC,
61
+ src: cLinkValue(),
46
62
  type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
47
63
  openNewTab: CB_CONTENT_PROP_CLINK_SPEC_NEWTAB,
48
64
  internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { CB_CONTENTS_CAROUSEL } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
3
- import type { CB_BTN_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
4
- type Props = CB_BTN_PROPERTIES_TYPE & IndexForIntersection & {
5
- compositions: CB_CONTENTS_CAROUSEL['compositions'];
2
+ import type { CB_CONTENTSCAROUSEL } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
3
+ import type { CB_CONTENTSCAROUSEL_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
4
+ type Props = CB_CONTENTSCAROUSEL_PROPERTIES_TYPE & IndexForIntersection & {
5
+ compositions: CB_CONTENTSCAROUSEL['compositions'];
6
6
  };
7
7
  declare function ContentsCarousel(props: Props): JSX.Element;
8
8
  export default ContentsCarousel;
@@ -1,12 +1,259 @@
1
1
  "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
2
40
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
41
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
42
  };
5
43
  Object.defineProperty(exports, "__esModule", { value: true });
6
44
  var jsx_runtime_1 = require("react/jsx-runtime");
7
- var CompositionRenderer_1 = __importDefault(require("../../../../../../../DynamicLayout/CompositionRenderer/CompositionRenderer"));
45
+ var react_1 = require("react");
46
+ var createCompositions_1 = require("../../../../../../../DynamicLayout/CompositionRenderer/createCompositions");
47
+ var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
48
+ var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
49
+ var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
50
+ var styled_components_1 = __importStar(require("styled-components"));
51
+ var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
52
+ var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
53
+ var CustomNavigation_1 = require("./components/CustomNavigation");
54
+ // import { CustomPagination } from './components/CustomPagination';
55
+ var CustomProgressbar_1 = require("./components/CustomProgressbar");
56
+ var ContentsCarouselCore_1 = __importDefault(require("./ContentsCarouselCore"));
57
+ var contentsCarouselUtils_1 = require("./contentsCarouselUtils");
8
58
  function ContentsCarousel(props) {
59
+ var _a = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _a.device, mode = _a.mode, queryData = _a.queryData;
60
+ var index = props.index,
61
+ // // CONTENT : 캐로셀
62
+ _b = props.CB_CONTENT_PROP_CONTENTSCAROUSEL, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS = _b.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS = _b.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA,
63
+ // STYLE: 캐로셀
64
+ CB_STYLE_PROP_CONTENTSCAROUSEL = props.CB_STYLE_PROP_CONTENTSCAROUSEL,
65
+ // STYLE: 그림자
66
+ CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW,
67
+ // EFFECT: 진입
68
+ CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
9
69
  var compositions = props.compositions;
10
- return (0, jsx_runtime_1.jsx)(CompositionRenderer_1.default, { compositions: compositions });
70
+ var _c = (0, react_1.useState)(false), isHovered = _c[0], setIsHovered = _c[1];
71
+ // const [currentSlide, setCurrentSlide] = useState(1);
72
+ // const [totalPages, setTotalPages] = useState(0);
73
+ var _d = (0, react_1.useState)(true), isBeginning = _d[0], setIsBeginning = _d[1];
74
+ var _e = (0, react_1.useState)(false), isEnd = _e[0], setIsEnd = _e[1];
75
+ var progressRef = (0, react_1.useRef)(0);
76
+ var leftTimeMsRef = (0, react_1.useRef)(0);
77
+ var swiperRef = (0, react_1.useRef)(null);
78
+ var _f = (0, contentsCarouselUtils_1.parseCarouselStyleToCarouselCoreProp)({
79
+ props: CB_STYLE_PROP_CONTENTSCAROUSEL,
80
+ contentsPropsPartials: { CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS },
81
+ device: device
82
+ }), contentsCarouselNormalStyle = _f.normalStyle, contentsCarouselHoverStyle = _f.hoverStyle;
83
+ // const { normalStyle: customPaginationNormalStyle, hoverStyle: customPaginationHoverStyle } =
84
+ // parseCarouselStyleToCustomPaginationProp({
85
+ // props: CB_STYLE_PROP_CONTENTSCAROUSEL,
86
+ // device
87
+ // });
88
+ var _g = (0, contentsCarouselUtils_1.parseCarouselStyleToCustomNavigationProp)({
89
+ props: CB_STYLE_PROP_CONTENTSCAROUSEL,
90
+ device: device
91
+ }), customNavigationNormalStyle = _g.normalStyle, customNavigationHoverStyle = _g.hoverStyle;
92
+ var _h = (0, contentsCarouselUtils_1.parseCarouselStyleToCustomProgressbarProp)({
93
+ props: CB_STYLE_PROP_CONTENTSCAROUSEL,
94
+ device: device
95
+ }), customProgressbarNormalStyle = _h.normalStyle, customProgressbarHoverStyle = _h.hoverStyle;
96
+ var _j = (0, util_1.parseProperties)(props, device), style = _j.style, hoverStyle = _j.hoverStyle, layout = _j.layout, effect = _j.effect;
97
+ var loop = isHovered ? contentsCarouselHoverStyle.loop : contentsCarouselNormalStyle.loop;
98
+ // NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
99
+ var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
100
+ // NOTE: EFFECT와 관련된 함수들입니다.
101
+ var cbRef = (0, react_1.useRef)(null);
102
+ var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }, [
103
+ index
104
+ ]);
105
+ var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
106
+ var effectCssProperties = isVisible ? effect : {};
107
+ var isNoneEffectType = device === 'DESKTOP'
108
+ ? CB_EFFECT_PROP_ENTANIM.CB_EFFECT_PROP_ENTANIM_SPEC_TYPE === 'NONE'
109
+ : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
110
+ var hasEffect = !isNoneEffectType;
111
+ var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
112
+ (0, react_1.useEffect)(function () {
113
+ var _a, _b, _c;
114
+ (_b = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.update();
115
+ (_c = swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper.update();
116
+ }, [isHovered]);
117
+ var handleSwiper = function (swiper) {
118
+ // NOTE: 페이지네이션 관련 로직 임시 주석 처리
119
+ // const originalSlides = Array.from(swiper.slides).filter(
120
+ // (slide) => !slide.classList.contains('swiper-slide-duplicate')
121
+ // );
122
+ // const totalSlides = originalSlides.length;
123
+ // const slidesPerView =
124
+ // typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
125
+ // const slidesPerGroup =
126
+ // typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.slidesPerGroup : 1;
127
+ // const isLoop = swiper.params.loop || false;
128
+ // let totalPages;
129
+ // if (slidesPerView === slidesPerGroup && slidesPerGroup > 1) {
130
+ // // 페이지 단위로 넘어가는 경우 (loop 여부 상관없이 동일)
131
+ // totalPages = Math.ceil(totalSlides / slidesPerGroup);
132
+ // } else if (isLoop) {
133
+ // totalPages = totalSlides;
134
+ // } else {
135
+ // // loop가 꺼져있으면 마지막 슬라이드가 첫 번째 위치에 올 수 있는 경우까지만
136
+ // totalPages = Math.max(1, totalSlides - slidesPerView + 1);
137
+ // }
138
+ // setTotalPages(totalPages);
139
+ setIsBeginning(swiper.isBeginning);
140
+ setIsEnd(swiper.isEnd);
141
+ };
142
+ var handleSlideChangeTransitionEnd = function (swiper) {
143
+ // NOTE: 페이지네이션 관련 로직 임시 주석 처리
144
+ // const slidesPerGroup =
145
+ // typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.slidesPerGroup : 1;
146
+ // const slidesPerView =
147
+ // typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
148
+ // const isLoop = swiper.params.loop || false;
149
+ // // 현재 페이지 계산
150
+ // if (slidesPerView === slidesPerGroup && slidesPerGroup > 1) {
151
+ // // 페이지 단위로 이동하는 경우
152
+ // const currentPage = Math.floor(swiper.realIndex / slidesPerGroup) + 1;
153
+ // setCurrentSlide(currentPage);
154
+ // } else if (isLoop) {
155
+ // // loop 모드에서는 realIndex가 실제 슬라이드 인덱스
156
+ // setCurrentSlide(swiper.realIndex + 1);
157
+ // } else {
158
+ // // loop가 꺼져있을 때는 activeIndex 사용
159
+ // setCurrentSlide(swiper.activeIndex + 1);
160
+ // }
161
+ setIsBeginning(swiper.isBeginning);
162
+ setIsEnd(swiper.isEnd);
163
+ };
164
+ var handleAutoplayTimeLeft = (0, react_1.useCallback)(function (_, time, progress) {
165
+ leftTimeMsRef.current = time;
166
+ progressRef.current = progress;
167
+ }, []);
168
+ // NOTE: 페이지네이션 관련 로직 임시 주석 처리
169
+ // const handleBulletClick = (index: number) => {
170
+ // if (swiperRef.current) {
171
+ // const targetIndex = (swiperRef.current.swiper.params.slidesPerGroup || 1) * index;
172
+ // swiperRef.current.swiper.slideTo(targetIndex);
173
+ // }
174
+ // };
175
+ var handlePrevBtnClick = function () {
176
+ if (swiperRef.current) {
177
+ swiperRef.current.swiper.slidePrev();
178
+ }
179
+ };
180
+ var handleNextBtnClick = function () {
181
+ if (swiperRef.current) {
182
+ swiperRef.current.swiper.slideNext();
183
+ }
184
+ };
185
+ return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { borderBottomLeftRadius: style.borderBottomLeftRadius, borderBottomRightRadius: style.borderBottomRightRadius, borderTopLeftRadius: style.borderTopLeftRadius, borderTopRightRadius: style.borderTopRightRadius, borderWidth: undefined, borderColor: undefined, borderStyle: undefined }), hoverStyle: __assign(__assign({}, hoverStyle), { borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius, borderBottomRightRadius: hoverStyle.borderBottomRightRadius, borderTopLeftRadius: hoverStyle.borderTopLeftRadius, borderTopRightRadius: hoverStyle.borderTopRightRadius, borderWidth: undefined, borderColor: undefined, borderStyle: undefined }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: (0, jsx_runtime_1.jsxs)(S_SwiperWrapper, __assign({ customStyle: isHovered
186
+ ? contentsCarouselHoverStyle === null || contentsCarouselHoverStyle === void 0 ? void 0 : contentsCarouselHoverStyle.customStyle
187
+ : contentsCarouselNormalStyle === null || contentsCarouselNormalStyle === void 0 ? void 0 : contentsCarouselNormalStyle.customStyle }, { children: [(0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ borderStyle: {
188
+ borderBottomLeftRadius: style.borderBottomLeftRadius,
189
+ borderBottomRightRadius: style.borderBottomRightRadius,
190
+ borderTopLeftRadius: style.borderTopLeftRadius,
191
+ borderTopRightRadius: style.borderTopRightRadius,
192
+ borderWidth: style.borderWidth,
193
+ borderColor: style.borderColor,
194
+ borderStyle: style.borderStyle
195
+ }, hoverBorderStyle: {
196
+ borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius,
197
+ borderBottomRightRadius: hoverStyle.borderBottomRightRadius,
198
+ borderTopLeftRadius: hoverStyle.borderTopLeftRadius,
199
+ borderTopRightRadius: hoverStyle.borderTopRightRadius,
200
+ borderWidth: hoverStyle.borderWidth,
201
+ borderColor: hoverStyle.borderColor,
202
+ borderStyle: hoverStyle.borderStyle
203
+ } }, { children: (0, jsx_runtime_1.jsx)(ContentsCarouselCore_1.default, __assign({ ref: swiperRef, className: "contents-carousel-core", onSwiper: handleSwiper, onSlideChangeTransitionEnd: handleSlideChangeTransitionEnd, onAutoplayTimeLeft: handleAutoplayTimeLeft, slidesPerView: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS, scrollbar: isHovered
204
+ ? contentsCarouselHoverStyle.scrollbar
205
+ : contentsCarouselNormalStyle.scrollbar, slidesPerGroup: isHovered
206
+ ? contentsCarouselHoverStyle.slidesPerGroup
207
+ : contentsCarouselNormalStyle.slidesPerGroup, spaceBetween: isHovered
208
+ ? contentsCarouselHoverStyle.spaceBetween
209
+ : contentsCarouselNormalStyle.spaceBetween, freeMode: isHovered
210
+ ? contentsCarouselHoverStyle.freeMode
211
+ : contentsCarouselNormalStyle.freeMode, autoplay: isHovered
212
+ ? contentsCarouselHoverStyle.autoplay
213
+ : contentsCarouselNormalStyle.autoplay, useAutoplay: isHovered
214
+ ? contentsCarouselHoverStyle.useAutoplay
215
+ : contentsCarouselNormalStyle.useAutoplay, loop: isHovered ? contentsCarouselHoverStyle.loop : contentsCarouselNormalStyle.loop }, { children: (0, createCompositions_1.createCompositions)({
216
+ valueType: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE,
217
+ queryPath: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA,
218
+ limit: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS,
219
+ queryData: queryData,
220
+ compositions: compositions
221
+ }) })) })), (0, jsx_runtime_1.jsx)(CustomNavigation_1.CustomNavigation, { prevBtnDisabled: loop ? false : isBeginning, prevBtnType: isHovered
222
+ ? customNavigationHoverStyle.prevBtnType
223
+ : customNavigationNormalStyle.prevBtnType, prevBtnOffset: isHovered
224
+ ? customNavigationHoverStyle.prevBtnOffset
225
+ : customNavigationNormalStyle.prevBtnOffset, prevBtnSize: isHovered
226
+ ? customNavigationHoverStyle.prevBtnSize
227
+ : customNavigationNormalStyle.prevBtnSize, prevBtnPrimaryColor: isHovered
228
+ ? customNavigationHoverStyle.prevBtnPrimaryColor
229
+ : customNavigationNormalStyle.prevBtnPrimaryColor, prevBtnSecondaryColor: isHovered
230
+ ? customNavigationHoverStyle.prevBtnSecondaryColor
231
+ : customNavigationNormalStyle.prevBtnSecondaryColor, onPrevBtnClick: handlePrevBtnClick, nextBtnDisabled: loop ? false : isEnd, nextBtnType: isHovered
232
+ ? customNavigationHoverStyle.nextBtnType
233
+ : customNavigationNormalStyle.nextBtnType, nextBtnOffset: isHovered
234
+ ? customNavigationHoverStyle.nextBtnOffset
235
+ : customNavigationNormalStyle.nextBtnOffset, nextBtnSize: isHovered
236
+ ? customNavigationHoverStyle.nextBtnSize
237
+ : customNavigationNormalStyle.nextBtnSize, nextBtnPrimaryColor: isHovered
238
+ ? customNavigationHoverStyle.nextBtnPrimaryColor
239
+ : customNavigationNormalStyle.nextBtnPrimaryColor, nextBtnSecondaryColor: isHovered
240
+ ? customNavigationHoverStyle.nextBtnSecondaryColor
241
+ : customNavigationNormalStyle.nextBtnSecondaryColor, onNextBtnClick: handleNextBtnClick }), (0, jsx_runtime_1.jsx)(CustomProgressbar_1.CustomProgressbar, { progressRef: progressRef, leftTimeMsRef: leftTimeMsRef, type: isHovered ? customProgressbarHoverStyle.type : customProgressbarNormalStyle.type, size: isHovered ? customProgressbarHoverStyle.size : customProgressbarNormalStyle.size, primaryColor: isHovered
242
+ ? customProgressbarHoverStyle.primaryColor
243
+ : customProgressbarNormalStyle.primaryColor, secondaryColor: isHovered
244
+ ? customProgressbarHoverStyle.secondaryColor
245
+ : customProgressbarNormalStyle.secondaryColor })] })) })) })));
11
246
  }
247
+ var S_SwiperWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n ", "\n"], ["\n height: 100%;\n width: 100%;\n ", "\n"])), function (_a) {
248
+ var customStyle = _a.customStyle;
249
+ return customStyle;
250
+ });
251
+ var S_SwiperLayout = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n ", ";\n"], ["\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n ", ";\n"])), function (_a) {
252
+ var hoverBorderStyle = _a.hoverBorderStyle;
253
+ return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, hoverBorderStyle), { boxShadow: '' }));
254
+ }, function (_a) {
255
+ var borderStyle = _a.borderStyle;
256
+ return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, borderStyle), { boxShadow: '' }));
257
+ });
12
258
  exports.default = ContentsCarousel;
259
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import 'swiper/modules/navigation/navigation.min.css';
3
+ import 'swiper/swiper-bundle.css';
4
+ import type { SwiperProps, SwiperRef } from 'swiper/react/swiper-react.js';
5
+ export interface ContentsCarouselCoreProps extends SwiperProps {
6
+ scrollbar?: SwiperProps['scrollbar'];
7
+ slidesPerView?: SwiperProps['slidesPerView'];
8
+ slidesPerGroup?: SwiperProps['slidesPerGroup'];
9
+ spaceBetween?: SwiperProps['spaceBetween'];
10
+ freeMode?: SwiperProps['freeMode'];
11
+ autoplay?: SwiperProps['autoplay'];
12
+ useAutoplay?: boolean;
13
+ loop?: SwiperProps['loop'];
14
+ children?: React.ReactNode[] | JSX.Element;
15
+ }
16
+ declare const ContentsCarouselCore: import("react").ForwardRefExoticComponent<ContentsCarouselCoreProps & import("react").RefAttributes<SwiperRef>>;
17
+ export default ContentsCarouselCore;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
25
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
26
+ if (ar || !(i in from)) {
27
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
28
+ ar[i] = from[i];
29
+ }
30
+ }
31
+ return to.concat(ar || Array.prototype.slice.call(from));
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ var jsx_runtime_1 = require("react/jsx-runtime");
35
+ var react_1 = require("react");
36
+ var swiper_1 = require("swiper");
37
+ require("swiper/modules/navigation/navigation.min.css");
38
+ var react_2 = require("swiper/react");
39
+ require("swiper/swiper-bundle.css");
40
+ var ContentsCarouselCore = (0, react_1.forwardRef)(function (_a, ref) {
41
+ var scrollbar = _a.scrollbar, slidesPerView = _a.slidesPerView, slidesPerGroup = _a.slidesPerGroup, spaceBetween = _a.spaceBetween, freeMode = _a.freeMode, autoplay = _a.autoplay, useAutoplay = _a.useAutoplay, loop = _a.loop, children = _a.children, props = __rest(_a, ["scrollbar", "slidesPerView", "slidesPerGroup", "spaceBetween", "freeMode", "autoplay", "useAutoplay", "loop", "children"]);
42
+ var slidesWithEmpty = (0, react_1.useMemo)(function () {
43
+ var childrenArray = Array.isArray(children) ? children : [children];
44
+ if (slidesPerView === slidesPerGroup && slidesPerGroup && slidesPerGroup > 1) {
45
+ var remainder = childrenArray.length % slidesPerGroup;
46
+ if (remainder !== 0) {
47
+ var emptyCount = slidesPerGroup - remainder;
48
+ return __spreadArray(__spreadArray([], childrenArray, true), Array(emptyCount).fill(null), true);
49
+ }
50
+ }
51
+ return childrenArray;
52
+ }, [children, slidesPerView, slidesPerGroup]);
53
+ return ((0, jsx_runtime_1.jsx)(react_2.Swiper, __assign({ ref: ref, style: {
54
+ width: '100%',
55
+ height: '100%'
56
+ }, modules: [swiper_1.Pagination, swiper_1.Navigation, swiper_1.Scrollbar, swiper_1.FreeMode, swiper_1.Autoplay], slidesPerView: slidesPerView, scrollbar: scrollbar, slidesPerGroup: slidesPerGroup, spaceBetween: spaceBetween, freeMode: freeMode, autoplay: useAutoplay ? autoplay : false, loop: loop }, props, { children: slidesWithEmpty.map(function (slide, index) { return ((0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: slide || (0, jsx_runtime_1.jsx)("div", { className: "swiper-slide-empty" }) }, index)); }) })));
57
+ });
58
+ ContentsCarouselCore.displayName = 'ContentsCarouselCore';
59
+ exports.default = ContentsCarouselCore;
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import type { CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSTYLE_TYPE, CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSTYLE_TYPE } from '../types';
3
+ export type NavigationOffset = {
4
+ top?: string;
5
+ bottom?: string;
6
+ left?: string;
7
+ right?: string;
8
+ translateX?: number;
9
+ translateY?: number;
10
+ transformOrigin?: string;
11
+ };
12
+ export interface CustomNavigationProps {
13
+ prevBtnDisabled?: boolean;
14
+ prevBtnType?: CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PREVBTNSTYLE_TYPE;
15
+ prevBtnOffset?: NavigationOffset;
16
+ prevBtnSize?: number;
17
+ prevBtnPrimaryColor?: string;
18
+ prevBtnSecondaryColor?: string;
19
+ nextBtnDisabled?: boolean;
20
+ nextBtnType?: CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_NEXTBTNSTYLE_TYPE;
21
+ nextBtnOffset?: NavigationOffset;
22
+ nextBtnSize?: number;
23
+ nextBtnPrimaryColor?: string;
24
+ nextBtnSecondaryColor?: string;
25
+ onPrevBtnClick?: () => void;
26
+ onNextBtnClick?: () => void;
27
+ }
28
+ export declare const CustomNavigation: ({ prevBtnDisabled, prevBtnType, prevBtnOffset, prevBtnSize, prevBtnPrimaryColor, prevBtnSecondaryColor, nextBtnDisabled, nextBtnType, nextBtnOffset, nextBtnSize, nextBtnPrimaryColor, nextBtnSecondaryColor, onPrevBtnClick, onNextBtnClick }: CustomNavigationProps) => JSX.Element;
29
+ export interface FlexBoxProps {
30
+ direction?: 'row' | 'column';
31
+ justifyContent?: string;
32
+ alignItems?: string;
33
+ gap?: string;
34
+ }
35
+ export default CustomNavigation;