pds-dev-kit-web-test 2.5.346 → 2.5.347

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 (40) hide show
  1. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +3 -0
  2. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +7 -4
  3. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +14 -7
  4. package/dist/src/sub/DynamicLayout/CompositionRenderer/connectedDataHelpers.d.ts +9 -0
  5. package/dist/src/sub/DynamicLayout/CompositionRenderer/connectedDataHelpers.js +29 -0
  6. package/dist/src/sub/DynamicLayout/mock_composition.js +1 -1
  7. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +3 -3
  8. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +2 -0
  9. package/dist/src/sub/DynamicLayout/mock_contentsList.js +296 -0
  10. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +4 -4
  11. package/dist/src/sub/DynamicLayout/mocks.d.ts +3 -1
  12. package/dist/src/sub/DynamicLayout/mocks.js +14 -2
  13. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +5 -0
  14. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +10 -16
  15. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +1 -1
  16. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +1 -1
  17. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +4 -3
  18. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +2 -2
  19. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +8 -0
  20. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +92 -0
  21. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
  22. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
  23. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +27 -0
  24. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +188 -0
  25. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +30 -0
  26. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +357 -0
  27. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
  28. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +8 -0
  29. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +46 -0
  30. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
  31. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +4 -3
  32. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +2 -2
  33. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +2 -2
  34. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +17 -6
  35. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +11 -3
  36. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -0
  37. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  38. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +17 -2
  39. package/dist/src/sub/DynamicLayout/types.d.ts +1 -1
  40. package/package.json +1 -1
@@ -49,6 +49,9 @@ function ComponentBlockMatcher(_a) {
49
49
  case types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL: {
50
50
  return (0, jsx_runtime_1.jsx)("div", { children: "NOT SUPPORTED NESTED CAROUSEL" });
51
51
  }
52
+ case types_1.CB_ALL_CODES.CB_LIST: {
53
+ return (0, jsx_runtime_1.jsx)("div", { children: "NOT SUPPORTED NESTED CONTENTSLIST" });
54
+ }
52
55
  default:
53
56
  return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
54
57
  }
@@ -1,6 +1,9 @@
1
1
  /// <reference types="react" />
2
- import type { IComposition } from '../../DynamicLayout/types';
3
- declare function CompositionRenderer({ compositions }: {
2
+ import type { VALUE_TYPE } from '../sections/CustomSection/util/types';
3
+ import type { IComposition, QueryData } from '../../DynamicLayout/types';
4
+ export declare function createCompositions({ valueType, queryPath, queryData, compositions }: {
5
+ valueType: VALUE_TYPE;
6
+ queryPath: string;
7
+ queryData: QueryData | undefined;
4
8
  compositions: IComposition[];
5
- }): JSX.Element;
6
- export default CompositionRenderer;
9
+ }): JSX.Element[];
@@ -14,14 +14,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.createCompositions = void 0;
17
18
  var jsx_runtime_1 = require("react/jsx-runtime");
18
19
  require("react");
20
+ var compositionQueryContext_1 = require("../compositionQueryContext");
19
21
  var Composition_1 = __importDefault(require("./Composition"));
20
- function CompositionRenderer(_a) {
21
- var compositions = _a.compositions;
22
- return ((0, jsx_runtime_1.jsx)("div", __assign({ style: {
23
- width: '100%',
24
- height: '100%'
25
- } }, { children: compositions.map(function (composition) { return ((0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id)); }) })));
22
+ var connectedDataHelpers_1 = require("./connectedDataHelpers");
23
+ function createCompositions(_a) {
24
+ var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions;
25
+ var isQueryDataConnected = valueType === 'DATA';
26
+ if (!isQueryDataConnected || !queryPath || !queryData) {
27
+ return compositions.map(function (composition) { return (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id); });
28
+ }
29
+ var parsedQueryPath = (0, connectedDataHelpers_1.parseQueryPath)(queryPath);
30
+ var queryDataValue = queryData[parsedQueryPath];
31
+ var queryComposition = compositions.find(function (composition) { return composition.isDefault; });
32
+ return queryDataValue.map(function (query, index) { return ((0, jsx_runtime_1.jsx)(compositionQueryContext_1.CCBQueryPathContext.Provider, __assign({ value: { queryData: query } }, { children: (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, queryComposition)) }), index)); });
26
33
  }
27
- exports.default = CompositionRenderer;
34
+ exports.createCompositions = createCompositions;
@@ -0,0 +1,9 @@
1
+ import type { VALUE_TYPE } from '../sections/CustomSection/util/types';
2
+ import type { IComposition, QueryData } from '../../DynamicLayout/types';
3
+ export declare function parseQueryPath(queryPath: string): string;
4
+ export declare function queryManagerHelper({ valueType, queryPath, queryData, compositions }: {
5
+ valueType: VALUE_TYPE;
6
+ queryPath: string;
7
+ queryData: QueryData | undefined;
8
+ compositions: IComposition[];
9
+ }): Record<string, unknown>[] | null;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.queryManagerHelper = exports.parseQueryPath = void 0;
4
+ function isConnectedData(valueType) {
5
+ return valueType === 'DATA';
6
+ }
7
+ // NOTE: queryPath란 CB_CONTENT_PROP_X_SPEC_CONNECT_DATA 이런것.
8
+ function parseQueryPath(queryPath) {
9
+ return convertSlashToUnderscores(queryPath);
10
+ }
11
+ exports.parseQueryPath = parseQueryPath;
12
+ function convertSlashToUnderscores(input) {
13
+ return input.replace(/\//g, '_');
14
+ }
15
+ function queryManagerHelper(_a) {
16
+ var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions;
17
+ var isQueryDataConnected = isConnectedData(valueType);
18
+ if (!isQueryDataConnected || !queryPath || !queryData) {
19
+ return null;
20
+ }
21
+ var parsedQueryPath = parseQueryPath(queryPath);
22
+ var queryDataValue = queryData[parsedQueryPath];
23
+ if (!queryDataValue) {
24
+ return null;
25
+ }
26
+ var queryComposition = compositions.find(function (composition) { return composition.isDefault; });
27
+ return queryDataValue;
28
+ }
29
+ exports.queryManagerHelper = queryManagerHelper;
@@ -29,7 +29,7 @@ exports.sampleMockComposition1 = {
29
29
  CB_CONTENT_PROP_TEXT: {
30
30
  CB_CONTENT_PROP_TEXT_SPEC_TEXT: 'New Text',
31
31
  CB_CONTENT_PROP_TEXT_SPEC_TEXTMOBILEALTERNATIVE: null,
32
- CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE: 'QUERYDATA',
32
+ CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE: 'DATA',
33
33
  CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA_NAME: 'itemDesc'
34
34
  },
35
35
  CB_CONTENT_PROP_VISIBILITY: {
@@ -101,11 +101,11 @@ exports.SAMPLE_CONTENTSCAROUSEL_CB = {
101
101
  'CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_INFINITESCROLL:MOBILE:HOVER': true
102
102
  },
103
103
  CB_CONTENT_PROP_CONTENTSCAROUSEL: {
104
- CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUE_TYPE: 'QUERYDATA',
104
+ CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUE_TYPE: 'DATA',
105
105
  CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECT_DATA: 'PAPPQUERY/C00007/VOD/CLASS/TOTAL',
106
106
  CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DATASORTING: '최신순',
107
- CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_OFFSET: '1',
108
- CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MENUALITEM: [],
107
+ CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_OFFSET: 1,
108
+ CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MANUALITEMS: [],
109
109
  CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS: 50,
110
110
  CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS: 1
111
111
  },
@@ -0,0 +1,2 @@
1
+ import type { CB_LIST } from './sections/CustomSection/types';
2
+ export declare const SAMPLE_LIST_CB: CB_LIST;
@@ -0,0 +1,296 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SAMPLE_LIST_CB = void 0;
4
+ var mock_composition_1 = require("./mock_composition");
5
+ var types_1 = require("./sections/CustomSection/types");
6
+ exports.SAMPLE_LIST_CB = {
7
+ availablePlugins: [],
8
+ componentBlockCode: types_1.CB_ALL_CODES.CB_LIST,
9
+ dynamicLayoutSectionId: 18661,
10
+ type: 'GENERAL',
11
+ id: 188292,
12
+ blockId: 'CB_188292',
13
+ jsonProperties: {
14
+ data: {
15
+ CB_PLACEMENT_PROP_PLACEMENT: {
16
+ CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS: 7,
17
+ 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE': 8,
18
+ CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS: 16,
19
+ 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE': 20,
20
+ CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX: 5,
21
+ 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX:MOBILE': 0,
22
+ CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY: 0,
23
+ 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE': 0,
24
+ CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX: 3,
25
+ 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX:MOBILE': 2
26
+ // 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_LATEST_LOCKED_STARTY:MOBILE': 2,
27
+ // 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_LOCKSTATUS:MOBILE': 'FALLBACK_TO_SYNC'
28
+ },
29
+ CB_STYLE_PROP_CONTENTSLIST: {
30
+ CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL: false,
31
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL:HOVER': null,
32
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL:MOBILE': null,
33
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL:MOBILE:HOVER': null,
34
+ CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT: false,
35
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT:HOVER': null,
36
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT:MOBILE': null,
37
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT:MOBILE:HOVER': null,
38
+ CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT: 1,
39
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT:HOVER': null,
40
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT:MOBILE': null,
41
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT:MOBILE:HOVER': null,
42
+ CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING: 'NORMAL',
43
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING:HOVER': null,
44
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING:MOBILE': null,
45
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING:MOBILE:HOVER': null,
46
+ CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION: 'OUTSET1',
47
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:HOVER': null,
48
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE': null,
49
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE:HOVER': null,
50
+ CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE: 'MEDIUM',
51
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:HOVER': null,
52
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE': null,
53
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE:HOVER': null,
54
+ CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE: 'DESIGN1',
55
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:HOVER': null,
56
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE': null,
57
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE:HOVER': null,
58
+ CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE: 'DESIGN1',
59
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE:HOVER': null,
60
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE:MOBILE': null,
61
+ 'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE:MOBILE:HOVER': null
62
+ },
63
+ CB_CONTENT_PROP_CONTENTSLIST: {
64
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE: 'DATA',
65
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA: '아티클:포스트',
66
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATASORTING: '최신순',
67
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATAFILTER: 'NONE',
68
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_OFFSET: 0,
69
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS: [],
70
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_EDITCOMMONITEM: null,
71
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS: 1,
72
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS: 1
73
+ },
74
+ CB_STYLE_PROP_BORDER: {
75
+ CB_STYLE_PROP_BORDER_SPEC_STYLE: 'SOLID',
76
+ 'CB_STYLE_PROP_BORDER_SPEC_STYLE:HOVER': 'SOLID',
77
+ 'CB_STYLE_PROP_BORDER_SPEC_STYLE:MOBILE': 'DASHED',
78
+ 'CB_STYLE_PROP_BORDER_SPEC_STYLE:MOBILE:HOVER': 'DOTTED',
79
+ CB_STYLE_PROP_BORDER_SPEC_WIDTH: 0,
80
+ 'CB_STYLE_PROP_BORDER_SPEC_WIDTH:HOVER': 0,
81
+ 'CB_STYLE_PROP_BORDER_SPEC_WIDTH:MOBILE': 0,
82
+ 'CB_STYLE_PROP_BORDER_SPEC_WIDTH:MOBILE:HOVER': 0,
83
+ CB_STYLE_PROP_BORDER_SPEC_COLOR: '#FF573300',
84
+ 'CB_STYLE_PROP_BORDER_SPEC_COLOR:HOVER': '#FF573300',
85
+ 'CB_STYLE_PROP_BORDER_SPEC_COLOR:MOBILE': '#00FF5733',
86
+ 'CB_STYLE_PROP_BORDER_SPEC_COLOR:MOBILE:HOVER': '#5733FF00',
87
+ CB_STYLE_PROP_BORDER_SPEC_RADIUS: { tl: 5, tr: 5, bl: 5, br: 5 },
88
+ 'CB_STYLE_PROP_BORDER_SPEC_RADIUS:HOVER': { tl: 5, tr: 5, bl: 5, br: 5 },
89
+ 'CB_STYLE_PROP_BORDER_SPEC_RADIUS:MOBILE': { tl: 10, tr: 10, bl: 10, br: 10 },
90
+ 'CB_STYLE_PROP_BORDER_SPEC_RADIUS:MOBILE:HOVER': { tl: 15, tr: 15, bl: 15, br: 15 },
91
+ CB_STYLE_PROP_BORDER_SPEC_RADIUSFIX: true,
92
+ 'CB_STYLE_PROP_BORDER_SPEC_RADIUSFIX:HOVER': true,
93
+ 'CB_STYLE_PROP_BORDER_SPEC_RADIUSFIX:MOBILE': false,
94
+ 'CB_STYLE_PROP_BORDER_SPEC_RADIUSFIX:MOBILE:HOVER': true
95
+ },
96
+ CB_STYLE_PROP_SHADOW: {
97
+ CB_STYLE_PROP_SHADOW_SPEC_BLUR: 24,
98
+ 'CB_STYLE_PROP_SHADOW_SPEC_BLUR:HOVER': 24,
99
+ 'CB_STYLE_PROP_SHADOW_SPEC_BLUR:MOBILE': null,
100
+ 'CB_STYLE_PROP_SHADOW_SPEC_BLUR:MOBILE:HOVER': null,
101
+ CB_STYLE_PROP_SHADOW_SPEC_COLOR: '#000000',
102
+ 'CB_STYLE_PROP_SHADOW_SPEC_COLOR:HOVER': '#000000',
103
+ 'CB_STYLE_PROP_SHADOW_SPEC_COLOR:MOBILE': null,
104
+ 'CB_STYLE_PROP_SHADOW_SPEC_COLOR:MOBILE:HOVER': null,
105
+ CB_STYLE_PROP_SHADOW_SPEC_OPACITY: 30,
106
+ 'CB_STYLE_PROP_SHADOW_SPEC_OPACITY:HOVER': 30,
107
+ 'CB_STYLE_PROP_SHADOW_SPEC_OPACITY:MOBILE': null,
108
+ 'CB_STYLE_PROP_SHADOW_SPEC_OPACITY:MOBILE:HOVER': null,
109
+ CB_STYLE_PROP_SHADOW_SPEC_SPREAD: 2,
110
+ 'CB_STYLE_PROP_SHADOW_SPEC_SPREAD:HOVER': 2,
111
+ 'CB_STYLE_PROP_SHADOW_SPEC_SPREAD:MOBILE': null,
112
+ 'CB_STYLE_PROP_SHADOW_SPEC_SPREAD:MOBILE:HOVER': null,
113
+ CB_STYLE_PROP_SHADOW_SPEC_TYPE: 'OUTSET',
114
+ 'CB_STYLE_PROP_SHADOW_SPEC_TYPE:HOVER': 'OUTSET',
115
+ 'CB_STYLE_PROP_SHADOW_SPEC_TYPE:MOBILE': null,
116
+ 'CB_STYLE_PROP_SHADOW_SPEC_TYPE:MOBILE:HOVER': null,
117
+ CB_STYLE_PROP_SHADOW_SPEC_X: 0,
118
+ 'CB_STYLE_PROP_SHADOW_SPEC_X:HOVER': 0,
119
+ 'CB_STYLE_PROP_SHADOW_SPEC_X:MOBILE': null,
120
+ 'CB_STYLE_PROP_SHADOW_SPEC_X:MOBILE:HOVER': null,
121
+ CB_STYLE_PROP_SHADOW_SPEC_Y: 12,
122
+ 'CB_STYLE_PROP_SHADOW_SPEC_Y:HOVER': 12,
123
+ 'CB_STYLE_PROP_SHADOW_SPEC_Y:MOBILE': null,
124
+ 'CB_STYLE_PROP_SHADOW_SPEC_Y:MOBILE:HOVER': null
125
+ },
126
+ CB_STYLE_PROP_OPACITY: {
127
+ CB_STYLE_PROP_OPACITY_SPEC_OPACITY: 100,
128
+ 'CB_STYLE_PROP_OPACITY_SPEC_OPACITY:HOVER': 100,
129
+ 'CB_STYLE_PROP_OPACITY_SPEC_OPACITY:MOBILE': null,
130
+ 'CB_STYLE_PROP_OPACITY_SPEC_OPACITY:MOBILE:HOVER': null
131
+ },
132
+ CB_STYLE_PROP_BGCOLOR: {
133
+ CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE: 90,
134
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE:HOVER': 90,
135
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE:MOBILE': null,
136
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ANGLE:MOBILE:HOVER': null,
137
+ CB_STYLE_PROP_BGCOLOR_SPEC_COLOR: '#455EEFFF',
138
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_COLOR:HOVER': '#455EEFFF',
139
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_COLOR:MOBILE': null,
140
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_COLOR:MOBILE:HOVER': null,
141
+ CB_STYLE_PROP_BGCOLOR_SPEC_ENDCOLOR: '#ff0000',
142
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDCOLOR:HOVER': '#27FFBFFF',
143
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDCOLOR:MOBILE': null,
144
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDCOLOR:MOBILE:HOVER': null,
145
+ CB_STYLE_PROP_BGCOLOR_SPEC_ENDLOC: 100,
146
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDLOC:HOVER': 100,
147
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDLOC:MOBILE': null,
148
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_ENDLOC:MOBILE:HOVER': null,
149
+ CB_STYLE_PROP_BGCOLOR_SPEC_GRADIENT: 'NONE',
150
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_GRADIENT:HOVER': 'NONE',
151
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_GRADIENT:MOBILE': null,
152
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_GRADIENT:MOBILE:HOVER': null,
153
+ CB_STYLE_PROP_BGCOLOR_SPEC_STARTCOLOR: 'NONE',
154
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTCOLOR:HOVER': 'NONE',
155
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTCOLOR:MOBILE': null,
156
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTCOLOR:MOBILE:HOVER': null,
157
+ CB_STYLE_PROP_BGCOLOR_SPEC_STARTLOC: 0,
158
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTLOC:HOVER': 0,
159
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTLOC:MOBILE': null,
160
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_STARTLOC:MOBILE:HOVER': null,
161
+ CB_STYLE_PROP_BGCOLOR_SPEC_TYPE: 'SOLID',
162
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_TYPE:HOVER': 'SOLID',
163
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_TYPE:MOBILE': null,
164
+ 'CB_STYLE_PROP_BGCOLOR_SPEC_TYPE:MOBILE:HOVER': null
165
+ },
166
+ CB_STYLE_PROP_BGOVERLAY: {
167
+ CB_STYLE_PROP_BGOVERLAY_SPEC_ANGLE: 45,
168
+ CB_STYLE_PROP_BGOVERLAY_SPEC_COLOR: '#FF573300',
169
+ CB_STYLE_PROP_BGOVERLAY_SPEC_ENDCOLOR: '#00FF5733',
170
+ CB_STYLE_PROP_BGOVERLAY_SPEC_ENDLOC: 80,
171
+ CB_STYLE_PROP_BGOVERLAY_SPEC_GRADIENT: 'LINEAR',
172
+ CB_STYLE_PROP_BGOVERLAY_SPEC_STARTCOLOR: '#5733FF00',
173
+ CB_STYLE_PROP_BGOVERLAY_SPEC_STARTLOC: 20,
174
+ CB_STYLE_PROP_BGOVERLAY_SPEC_TYPE: 'OVERLAY',
175
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_ANGLE:HOVER': 60,
176
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_ANGLE:MOBILE': 30,
177
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_ANGLE:MOBILE:HOVER': 90,
178
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_COLOR:HOVER': '#AA573300',
179
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_COLOR:MOBILE': '#BBFF5733',
180
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_COLOR:MOBILE:HOVER': '#CC5733FF',
181
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDCOLOR:HOVER': '#DD573300',
182
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDCOLOR:MOBILE': '#EEFF5733',
183
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDCOLOR:MOBILE:HOVER': '#FF5733FF',
184
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDLOC:HOVER': 85,
185
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDLOC:MOBILE': 75,
186
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_ENDLOC:MOBILE:HOVER': 95,
187
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_GRADIENT:HOVER': 'RADIAL',
188
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_GRADIENT:MOBILE': 'LINEAR',
189
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_GRADIENT:MOBILE:HOVER': 'CONIC',
190
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTCOLOR:HOVER': '#11573300',
191
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTCOLOR:MOBILE': '#225733FF',
192
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTCOLOR:MOBILE:HOVER': '#3357FF00',
193
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTLOC:HOVER': 25,
194
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTLOC:MOBILE': 15,
195
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_STARTLOC:MOBILE:HOVER': 35,
196
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_TYPE:HOVER': 'BLEND',
197
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_TYPE:MOBILE': 'MIX',
198
+ 'CB_STYLE_PROP_BGOVERLAY_SPEC_TYPE:MOBILE:HOVER': 'OVERLAY'
199
+ },
200
+ CB_STYLE_PROP_BGMEDIA: {
201
+ // Base properties
202
+ CB_STYLE_PROP_BGMEDIA_SPEC_YSRC: 'https://example.com/video.mp4',
203
+ CB_STYLE_PROP_BGMEDIA_SPEC_TYPE: 'video',
204
+ CB_STYLE_PROP_BGMEDIA_SPEC_SCROLL: true,
205
+ CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME: 0,
206
+ CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY: false,
207
+ CB_STYLE_PROP_BGMEDIA_SPEC_MPLAY: true,
208
+ CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEPOSITION: 'center',
209
+ CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR: '.background-image',
210
+ CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT: 'cover',
211
+ CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME: 60,
212
+ // Hover state
213
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME:HOVER': 65,
214
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT:HOVER': 'contain',
215
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR:HOVER': '.bg-hover',
216
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEPOSITION:HOVER': 'top',
217
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY:HOVER': true,
218
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME:HOVER': 5,
219
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_SCROLL:HOVER': false,
220
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_TYPE:HOVER': 'gif',
221
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_YSRC:HOVER': 'https://example.com/hover-video.mp4',
222
+ // Mobile state
223
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME:MOBILE': 55,
224
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT:MOBILE': 'fill',
225
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR:MOBILE': '.bg-mobile',
226
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEPOSITION:MOBILE': 'bottom',
227
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_MPLAY:MOBILE': false,
228
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY:MOBILE': true,
229
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME:MOBILE': 10,
230
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_SCROLL:MOBILE': true,
231
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_TYPE:MOBILE': 'image',
232
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_YSRC:MOBILE': 'https://example.com/mobile-video.mp4',
233
+ // Mobile hover state
234
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME:MOBILE:HOVER': 70,
235
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT:MOBILE:HOVER': 'scale-down',
236
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR:MOBILE:HOVER': '.bg-mobile-hover',
237
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEPOSITION:MOBILE:HOVER': 'left',
238
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY:MOBILE:HOVER': false,
239
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME:MOBILE:HOVER': 15,
240
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_SCROLL:MOBILE:HOVER': false,
241
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_TYPE:MOBILE:HOVER': 'video',
242
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_YSRC:MOBILE:HOVER': 'https://example.com/mobile-hover-video.mp4'
243
+ },
244
+ CB_LAYOUT_PROP_PADDING: {
245
+ CB_LAYOUT_PROP_PADDING_SPEC_PADDING: {
246
+ top: 0,
247
+ right: 0,
248
+ bottom: 0,
249
+ left: 0
250
+ },
251
+ 'CB_LAYOUT_PROP_PADDING_SPEC_PADDING:MOBILE': {
252
+ top: 0,
253
+ right: 0,
254
+ bottom: 0,
255
+ left: 0
256
+ },
257
+ CB_LAYOUT_PROP_PADDING_SPEC_FIX: true,
258
+ 'CB_LAYOUT_PROP_PADDING_SPEC_FIX:MOBILE': false
259
+ },
260
+ CB_CONTENT_PROP_HOVER: {
261
+ CB_CONTENT_PROP_HOVER_SPEC_MUSE: true
262
+ },
263
+ CB_LAYOUT_PROP_ARRANGE: {
264
+ CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL: 'CENTER',
265
+ 'CB_LAYOUT_PROP_ARRANGE_SPEC_HORIZONTAL:MOBILE': 'CENTER',
266
+ CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL: 'MIDDLE',
267
+ 'CB_LAYOUT_PROP_ARRANGE_SPEC_VERTICAL:MOBILE': undefined
268
+ },
269
+ CB_CONTENT_PROP_VISIBILITY: {
270
+ CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP: true,
271
+ CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB: true
272
+ },
273
+ CB_EFFECT_PROP_ENTANIM: {
274
+ CB_EFFECT_PROP_ENTANIM_SPEC_TYPE: 'SLIDEINLEFT',
275
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE': 'SLIDEINLEFT',
276
+ CB_EFFECT_PROP_ENTANIM_SPEC_DURATION: 1,
277
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_DURATION:MOBILE': undefined,
278
+ CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT: 1,
279
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_REPEAT:MOBILE': undefined,
280
+ CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC: 'EASEINOUT',
281
+ 'CB_EFFECT_PROP_ENTANIM_SPEC_TFUNC:MOBILE': undefined
282
+ }
283
+ }
284
+ },
285
+ queryableDefinitionPreset: 'N/A',
286
+ queryableTapSrc: 'N/A',
287
+ compositions: [
288
+ mock_composition_1.sampleMockComposition1,
289
+ mock_composition_1.sampleMockComposition1,
290
+ mock_composition_1.sampleMockComposition1,
291
+ mock_composition_1.sampleMockComposition1,
292
+ mock_composition_1.sampleMockComposition1,
293
+ mock_composition_1.sampleMockComposition1,
294
+ mock_composition_1.sampleMockComposition1
295
+ ]
296
+ };
@@ -6,7 +6,7 @@ var types_1 = require("./sections/CustomSection/types");
6
6
  exports.SAMPLE_SLIDEBANNER_CB = {
7
7
  availablePlugins: [],
8
8
  componentBlockCode: types_1.CB_ALL_CODES.CB_SLIDEBANNER,
9
- dynamicLayoutSectionId: 18662,
9
+ dynamicLayoutSectionId: 18661,
10
10
  type: 'GENERAL',
11
11
  id: 188291,
12
12
  blockId: 'CB_188291',
@@ -93,11 +93,11 @@ exports.SAMPLE_SLIDEBANNER_CB = {
93
93
  'CB_STYLE_PROP_SLIDEBANNER_SPEC_INFINITESCROLL:MOBILE:HOVER': false
94
94
  },
95
95
  CB_CONTENT_PROP_SLIDEBANNER: {
96
- CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUE_TYPE: 'A',
96
+ CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUE_TYPE: 'DATA',
97
97
  CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECT_DATA: '아티클:포스트',
98
98
  CB_CONTENT_PROP_SLIDEBANNER_SPEC_DATASORTING: '최신순',
99
- CB_CONTENT_PROP_SLIDEBANNER_SPEC_OFFSET: '1',
100
- CB_CONTENT_PROP_SLIDEBANNER_SPEC_MENUALITEM: [],
99
+ CB_CONTENT_PROP_SLIDEBANNER_SPEC_OFFSET: 1,
100
+ CB_CONTENT_PROP_SLIDEBANNER_SPEC_MENUALITEMS: [],
101
101
  CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS: 50,
102
102
  CB_CONTENT_PROP_SLIDEBANNER_SPEC_DISPLAYCOUNTS: 1
103
103
  },
@@ -1,7 +1,7 @@
1
1
  export declare const MOCK_SECTIONS: {
2
2
  administrativeTitle: string;
3
3
  appearanceTemplate: string;
4
- componentBlocks: (import("./sections/CustomSection/types").CB_CONTENTSCAROUSEL | import("./sections/CustomSection/types").CB_SLIDEBANNER | {
4
+ componentBlocks: (import("./sections/CustomSection/types").CB_LIST | import("./sections/CustomSection/types").CB_CONTENTSCAROUSEL | import("./sections/CustomSection/types").CB_SLIDEBANNER | {
5
5
  availablePlugins: never[];
6
6
  blockId: string;
7
7
  componentBlockCode: string;
@@ -999,6 +999,7 @@ export declare const MOCK_SECTIONS: {
999
999
  '188287': number;
1000
1000
  '188290': number;
1001
1001
  '188291': number;
1002
+ '188292': number;
1002
1003
  };
1003
1004
  mobile: {
1004
1005
  '188262': number;
@@ -1029,6 +1030,7 @@ export declare const MOCK_SECTIONS: {
1029
1030
  '188287': number;
1030
1031
  '188290': number;
1031
1032
  '188291': number;
1033
+ '188292': number;
1032
1034
  };
1033
1035
  };
1034
1036
  };
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MOCK_SECTIONS = void 0;
4
4
  var mock_contentsCarousel_1 = require("./mock_contentsCarousel");
5
+ var mock_contentsList_1 = require("./mock_contentsList");
5
6
  var mock_slideBanner_1 = require("./mock_slideBanner");
6
7
  exports.MOCK_SECTIONS = [
7
8
  {
@@ -10,6 +11,7 @@ exports.MOCK_SECTIONS = [
10
11
  componentBlocks: [
11
12
  mock_slideBanner_1.SAMPLE_SLIDEBANNER_CB,
12
13
  mock_contentsCarousel_1.SAMPLE_CONTENTSCAROUSEL_CB,
14
+ mock_contentsList_1.SAMPLE_LIST_CB,
13
15
  {
14
16
  availablePlugins: [],
15
17
  blockId: 'CB_188265',
@@ -4644,6 +4646,14 @@ exports.MOCK_SECTIONS = [
4644
4646
  type: 'COMPONENT_BLOCK',
4645
4647
  zOrderDesktopInternal: 28,
4646
4648
  zOrderMobileInternal: 28
4649
+ },
4650
+ {
4651
+ blockId: 'CB_188292',
4652
+ children: [],
4653
+ componentBlockId: 188292,
4654
+ type: 'COMPONENT_BLOCK',
4655
+ zOrderDesktopInternal: 28,
4656
+ zOrderMobileInternal: 28
4647
4657
  }
4648
4658
  ],
4649
4659
  componentBlockId: null,
@@ -4681,7 +4691,8 @@ exports.MOCK_SECTIONS = [
4681
4691
  '188286': 26,
4682
4692
  '188287': 19,
4683
4693
  '188290': 27,
4684
- '188291': 28
4694
+ '188291': 28,
4695
+ '188292': 29
4685
4696
  },
4686
4697
  mobile: {
4687
4698
  '188262': 10,
@@ -4711,7 +4722,8 @@ exports.MOCK_SECTIONS = [
4711
4722
  '188286': 25,
4712
4723
  '188287': 19,
4713
4724
  '188290': 27,
4714
- '188291': 28
4725
+ '188291': 28,
4726
+ '188292': 29
4715
4727
  }
4716
4728
  }
4717
4729
  },
@@ -20,6 +20,7 @@ var newUtils_1 = require("../../newUtils");
20
20
  var types_1 = require("../../types");
21
21
  var Button_1 = __importDefault(require("./componentBlocks/Button/Button"));
22
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"));
@@ -57,6 +58,10 @@ function ComponentBlockMatcher(_a) {
57
58
  var compositions = cbProps.compositions;
58
59
  return ((0, jsx_runtime_1.jsx)(SlideBanner_1.SlideBanner, __assign({}, propsWithValue, { compositions: compositions, index: index })));
59
60
  }
61
+ case types_1.CB_ALL_CODES.CB_LIST: {
62
+ var compositions = cbProps.compositions;
63
+ return ((0, jsx_runtime_1.jsx)(ContentsList_1.ContentsList, __assign({}, propsWithValue, { compositions: compositions, index: index })));
64
+ }
60
65
  default:
61
66
  return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
62
67
  }
@@ -21,12 +21,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
21
21
  var jsx_runtime_1 = require("react/jsx-runtime");
22
22
  /* eslint-disable @typescript-eslint/no-unused-vars */
23
23
  var react_1 = require("react");
24
- var compositionQueryContext_1 = require("../../../../../../../DynamicLayout/compositionQueryContext");
25
- var Composition_1 = __importDefault(require("../../../../../../../DynamicLayout/CompositionRenderer/Composition"));
24
+ require("../../../../../../../DynamicLayout/compositionQueryContext");
25
+ require("../../../../../../../DynamicLayout/CompositionRenderer/Composition");
26
+ var CompositionRenderer_1 = require("../../../../../../../DynamicLayout/CompositionRenderer/CompositionRenderer");
26
27
  var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
27
28
  var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
28
29
  var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
29
30
  var styled_components_1 = __importDefault(require("styled-components"));
31
+ require("../../../../../../CompositionRenderer/connectedDataHelpers");
30
32
  var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
31
33
  var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
32
34
  var CustomNavigation_1 = require("./components/CustomNavigation");
@@ -126,15 +128,6 @@ function ContentsCarousel(props) {
126
128
  swiperRef.current.swiper.slideNext();
127
129
  }
128
130
  };
129
- var queryPath = CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUE_TYPE === 'QUERYDATA'
130
- ? convertColonsToUnderscores(CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECT_DATA)
131
- : null;
132
- var isQueryDataConnected = CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUE_TYPE === 'QUERYDATA' && queryPath;
133
- var filteredQueryData = isQueryDataConnected && queryData ? queryData[queryPath] : [];
134
- // NOTE: 이 방식이 맞으면 util로 빼서 모든 CCB들에 적용하기 쉽게 만들기.
135
- function convertColonsToUnderscores(input) {
136
- return input.replace(/\//g, '_');
137
- }
138
131
  var queryComposition = compositions.find(function (composition) { return composition.isDefault; });
139
132
  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), { position: 'relative', overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { position: 'relative', overflow: 'hidden' }), 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
140
133
  ? contentsCarouselHoverStyle === null || contentsCarouselHoverStyle === void 0 ? void 0 : contentsCarouselHoverStyle.customStyle
@@ -146,11 +139,12 @@ function ContentsCarousel(props) {
146
139
  ? contentsCarouselHoverStyle.spaceBetween
147
140
  : contentsCarouselNormalStyle.spaceBetween, freeMode: isHovered ? contentsCarouselHoverStyle.freeMode : contentsCarouselNormalStyle.freeMode, autoplay: isHovered ? contentsCarouselHoverStyle.autoplay : contentsCarouselNormalStyle.autoplay, useAutoplay: isHovered
148
141
  ? contentsCarouselHoverStyle.useAutoplay
149
- : contentsCarouselNormalStyle.useAutoplay, loop: isHovered ? contentsCarouselHoverStyle.loop : contentsCarouselNormalStyle.loop }, { children: filteredQueryData.length > 0
150
- ? filteredQueryData.map(function (query, index) {
151
- return ((0, jsx_runtime_1.jsxs)(compositionQueryContext_1.CCBQueryPathContext.Provider, __assign({ value: { queryData: query } }, { children: [(0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, queryComposition)), ";"] }), index));
152
- })
153
- : compositions.map(function (composition) { return ((0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id)); }) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { type: isHovered ? customPaginationHoverStyle.type : customPaginationNormalStyle.type, offset: isHovered ? customPaginationHoverStyle.offset : customPaginationNormalStyle.offset, current: currentSlide, total: totalPages, size: isHovered ? customPaginationHoverStyle.size : customPaginationNormalStyle.size, onBulletClick: handleBulletClick }), (0, jsx_runtime_1.jsx)(CustomNavigation_1.CustomNavigation, { prevBtnDisabled: isBeginning, prevBtnType: isHovered
142
+ : contentsCarouselNormalStyle.useAutoplay, loop: isHovered ? contentsCarouselHoverStyle.loop : contentsCarouselNormalStyle.loop }, { children: (0, CompositionRenderer_1.createCompositions)({
143
+ valueType: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUE_TYPE,
144
+ queryPath: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECT_DATA,
145
+ queryData: queryData,
146
+ compositions: compositions
147
+ }) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { type: isHovered ? customPaginationHoverStyle.type : customPaginationNormalStyle.type, offset: isHovered ? customPaginationHoverStyle.offset : customPaginationNormalStyle.offset, current: currentSlide, total: totalPages, size: isHovered ? customPaginationHoverStyle.size : customPaginationNormalStyle.size, onBulletClick: handleBulletClick }), (0, jsx_runtime_1.jsx)(CustomNavigation_1.CustomNavigation, { prevBtnDisabled: isBeginning, prevBtnType: isHovered
154
148
  ? customNavigationHoverStyle.prevBtnType
155
149
  : customNavigationNormalStyle.prevBtnType, prevBtnOffset: isHovered
156
150
  ? customNavigationHoverStyle.prevBtnOffset
@@ -11,7 +11,7 @@ export interface ContentsCarouselCoreProps extends SwiperProps {
11
11
  autoplay?: SwiperProps['autoplay'];
12
12
  useAutoplay?: boolean;
13
13
  loop?: SwiperProps['loop'];
14
- children?: React.ReactNode[];
14
+ children?: React.ReactNode[] | JSX.Element;
15
15
  }
16
16
  declare const ContentsCarouselCore: import("react").ForwardRefExoticComponent<ContentsCarouselCoreProps & import("react").RefAttributes<SwiperRef>>;
17
17
  export default ContentsCarouselCore;
@@ -33,7 +33,7 @@ var ContentsCarouselCore = (0, react_1.forwardRef)(function (_a, ref) {
33
33
  return ((0, jsx_runtime_1.jsx)(react_2.Swiper, __assign({ ref: ref, style: {
34
34
  width: '100%',
35
35
  height: '100%'
36
- }, 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: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children === null || children === void 0 ? void 0 : children.map(function (slide, index) { return ((0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: slide }, index)); }) }) })));
36
+ }, 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: Array.isArray(children) ? (children.map(function (slide, index) { return (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: slide }, index); })) : ((0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: children })) })));
37
37
  });
38
38
  ContentsCarouselCore.displayName = 'ContentsCarouselCore';
39
39
  exports.default = ContentsCarouselCore;