pds-dev-kit-web-test 2.5.353 → 2.5.354
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.
@@ -22,14 +22,24 @@ var Composition_1 = __importDefault(require("./Composition"));
|
|
22
22
|
function createCompositions(_a) {
|
23
23
|
var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions;
|
24
24
|
var isQueryDataConnected = valueType === 'DATA';
|
25
|
-
|
26
|
-
|
25
|
+
// 직접 입력 유형인 경우
|
26
|
+
if (!isQueryDataConnected) {
|
27
|
+
return compositions
|
28
|
+
.filter(function (composition) { return !composition.isDefault; })
|
29
|
+
.map(function (composition) { return (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id); });
|
30
|
+
}
|
31
|
+
// 데이터 연결 유형이나, 쿼리 데이터나 키가 없는 경우
|
32
|
+
if (!queryPath || !queryData) {
|
33
|
+
return compositions
|
34
|
+
.filter(function (composition) { return composition.isDefault; })
|
35
|
+
.map(function (composition) { return (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id); });
|
27
36
|
}
|
28
37
|
var parsedQueryPath = convertSlashToUnderscores(queryPath);
|
29
38
|
var queryDataValue = queryData[parsedQueryPath];
|
30
39
|
var queryComposition = compositions.find(function (composition) { return composition.isDefault; });
|
40
|
+
// 쿼리 데이터와 키가 있으나, 쿼리 데이터에 해당 키가 없는 경우
|
31
41
|
if (!queryDataValue) {
|
32
|
-
return [(0, jsx_runtime_1.jsxs)("div", { children: ["NOT FOUND QUERYDATA: ", parsedQueryPath] }, "not-found")];
|
42
|
+
return [(0, jsx_runtime_1.jsxs)("div", { children: ["NOT FOUND QUERYDATA OR DEFAULT: ", parsedQueryPath] }, "not-found")];
|
33
43
|
}
|
34
44
|
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
45
|
}
|
@@ -148,7 +148,9 @@ exports.sampleMockComposition1 = {
|
|
148
148
|
CB_CONTENT_PROP_HOVER_SPEC_MUSE: true
|
149
149
|
},
|
150
150
|
CB_CONTENT_PROP_IMAGE: {
|
151
|
-
CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR: 'https://static.publ.site/pages-sample/img_cb_content_prop_image_spec_selector_01.png'
|
151
|
+
CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR: 'https://static.publ.site/pages-sample/img_cb_content_prop_image_spec_selector_01.png',
|
152
|
+
CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE: 'DATA',
|
153
|
+
CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA: 'itemThumbnail'
|
152
154
|
},
|
153
155
|
CB_CONTENT_PROP_VISIBILITY: {
|
154
156
|
CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP: true,
|
@@ -482,7 +484,9 @@ exports.sampleMockComposition2 = {
|
|
482
484
|
CB_CONTENT_PROP_HOVER_SPEC_MUSE: true
|
483
485
|
},
|
484
486
|
CB_CONTENT_PROP_IMAGE: {
|
485
|
-
CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR: 'https://static.publ.site/pages-sample/img_cb_content_prop_image_spec_selector_01.png'
|
487
|
+
CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR: 'https://static.publ.site/pages-sample/img_cb_content_prop_image_spec_selector_01.png',
|
488
|
+
CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE: 'VALUE',
|
489
|
+
CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA: 'NONE'
|
486
490
|
},
|
487
491
|
CB_CONTENT_PROP_VISIBILITY: {
|
488
492
|
CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP: true,
|
@@ -93,7 +93,7 @@ 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_VALUETYPE: '
|
96
|
+
CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE: 'VALUE',
|
97
97
|
CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA: 'C00007/PAPPQUERY_C00007_VOD_CLASS_TOTAL',
|
98
98
|
CB_CONTENT_PROP_SLIDEBANNER_SPEC_DATASORTING: '최신순',
|
99
99
|
CB_CONTENT_PROP_SLIDEBANNER_SPEC_OFFSET: 1,
|