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

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 (43) hide show
  1. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +3 -0
  2. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +9 -0
  3. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +39 -0
  4. package/dist/src/sub/DynamicLayout/mock_composition.js +1 -1
  5. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +3 -3
  6. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +2 -0
  7. package/dist/src/sub/DynamicLayout/mock_contentsList.js +296 -0
  8. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +4 -4
  9. package/dist/src/sub/DynamicLayout/mocks.d.ts +3 -1
  10. package/dist/src/sub/DynamicLayout/mocks.js +14 -2
  11. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +5 -0
  12. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +17 -2
  13. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +10 -18
  14. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +1 -1
  15. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +1 -1
  16. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +4 -3
  17. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +2 -2
  18. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +8 -0
  19. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +98 -0
  20. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
  21. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
  22. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +27 -0
  23. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +188 -0
  24. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +30 -0
  25. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +357 -0
  26. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
  27. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +8 -0
  28. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +46 -0
  29. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
  30. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +31 -3
  31. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +27 -20
  32. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +4 -3
  33. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +2 -2
  34. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +16 -3
  35. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +21 -6
  36. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +11 -3
  37. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -0
  38. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  39. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +17 -2
  40. package/dist/src/sub/DynamicLayout/types.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
  43. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
@@ -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
  }
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
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;
8
+ compositions: IComposition[];
9
+ }): JSX.Element[];
@@ -0,0 +1,39 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.createCompositions = void 0;
18
+ var jsx_runtime_1 = require("react/jsx-runtime");
19
+ require("react");
20
+ var compositionQueryContext_1 = require("../compositionQueryContext");
21
+ var Composition_1 = __importDefault(require("./Composition"));
22
+ function createCompositions(_a) {
23
+ var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions;
24
+ var isQueryDataConnected = valueType === 'DATA';
25
+ if (!isQueryDataConnected || !queryPath || !queryData) {
26
+ return compositions.map(function (composition) { return (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id); });
27
+ }
28
+ var parsedQueryPath = convertSlashToUnderscores(queryPath);
29
+ var queryDataValue = queryData[parsedQueryPath];
30
+ var queryComposition = compositions.find(function (composition) { return composition.isDefault; });
31
+ if (!queryDataValue) {
32
+ return [(0, jsx_runtime_1.jsxs)("div", { children: ["NOT FOUND QUERYDATA: ", parsedQueryPath] }, "not-found")];
33
+ }
34
+ 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)); });
35
+ }
36
+ exports.createCompositions = createCompositions;
37
+ function convertSlashToUnderscores(queryPath) {
38
+ return queryPath.replace(/\//g, '_');
39
+ }
@@ -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_VALUETYPE: '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_VALUETYPE: '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
  }
@@ -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,23 @@ 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
+ if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
49
+ return "ERROR: QueryData NOT FOUND";
50
+ }
51
+ var link = queryContext.queryData[CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA];
52
+ if (!link) {
53
+ return "ERROR: ".concat(CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, " NOT found from queryData");
54
+ }
55
+ return link;
56
+ }
57
+ return CB_CONTENT_PROP_CLINK_SPEC_SRC;
58
+ };
44
59
  var _c = (0, useCLINK_1.default)({
45
- src: CB_CONTENT_PROP_CLINK_SPEC_SRC,
60
+ src: cLinkValue(),
46
61
  type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
47
62
  openNewTab: CB_CONTENT_PROP_CLINK_SPEC_NEWTAB,
48
63
  internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
@@ -21,8 +21,9 @@ 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 createCompositions_1 = require("../../../../../../../DynamicLayout/CompositionRenderer/createCompositions");
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");
@@ -38,7 +39,7 @@ function ContentsCarousel(props) {
38
39
  var _a = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _a.device, mode = _a.mode, queryData = _a.queryData;
39
40
  var index = props.index,
40
41
  // // CONTENT : 캐로셀
41
- _b = props.CB_CONTENT_PROP_CONTENTSCAROUSEL, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS = _b.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUE_TYPE = _b.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUE_TYPE, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECT_DATA = _b.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECT_DATA,
42
+ _b = props.CB_CONTENT_PROP_CONTENTSCAROUSEL, 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_CONNECT_DATA = _b.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECT_DATA,
42
43
  // STYLE: 캐로셀
43
44
  CB_STYLE_PROP_CONTENTSCAROUSEL = props.CB_STYLE_PROP_CONTENTSCAROUSEL,
44
45
  // STYLE: 그림자
@@ -126,16 +127,6 @@ function ContentsCarousel(props) {
126
127
  swiperRef.current.swiper.slideNext();
127
128
  }
128
129
  };
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
- var queryComposition = compositions.find(function (composition) { return composition.isDefault; });
139
130
  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
131
  ? contentsCarouselHoverStyle === null || contentsCarouselHoverStyle === void 0 ? void 0 : contentsCarouselHoverStyle.customStyle
141
132
  : contentsCarouselNormalStyle === null || contentsCarouselNormalStyle === void 0 ? void 0 : contentsCarouselNormalStyle.customStyle }, { children: [(0, jsx_runtime_1.jsx)(ContentsCarouselCore_1.default, __assign({ ref: swiperRef, className: "contents-carousel-core", onSwiper: handleSwiper, onSlideChange: handleSlideChange, onAutoplayTimeLeft: handleAutoplayTimeLeft, slidesPerView: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS, scrollbar: isHovered
@@ -146,11 +137,12 @@ function ContentsCarousel(props) {
146
137
  ? contentsCarouselHoverStyle.spaceBetween
147
138
  : contentsCarouselNormalStyle.spaceBetween, freeMode: isHovered ? contentsCarouselHoverStyle.freeMode : contentsCarouselNormalStyle.freeMode, autoplay: isHovered ? contentsCarouselHoverStyle.autoplay : contentsCarouselNormalStyle.autoplay, useAutoplay: isHovered
148
139
  ? 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
140
+ : contentsCarouselNormalStyle.useAutoplay, loop: isHovered ? contentsCarouselHoverStyle.loop : contentsCarouselNormalStyle.loop }, { children: (0, createCompositions_1.createCompositions)({
141
+ valueType: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE,
142
+ queryPath: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECT_DATA,
143
+ queryData: queryData,
144
+ compositions: compositions
145
+ }) })), (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
146
  ? customNavigationHoverStyle.prevBtnType
155
147
  : customNavigationNormalStyle.prevBtnType, prevBtnOffset: isHovered
156
148
  ? 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;