pds-dev-kit-web-test 2.7.137 → 2.7.139
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.
|
@@ -284,6 +284,7 @@ exports.sampleMockComposition1 = {
|
|
|
284
284
|
compositionCode: 'CMP_GENERAL',
|
|
285
285
|
compositionTemplateCode: 'CMPTP_CB_CONTENTSCAROUSEL_NNN_CUSTOM',
|
|
286
286
|
dynamicLayoutComponentBlockId: 190124,
|
|
287
|
+
ccbManualItemUuid: 'manual-item-1',
|
|
287
288
|
id: 15,
|
|
288
289
|
insertedAt: '2025-03-27T10:54:25',
|
|
289
290
|
jsonProperties: {
|
|
@@ -144,12 +144,9 @@ function ContentsList(props) {
|
|
|
144
144
|
var isMobile = device === 'MOBILE';
|
|
145
145
|
var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
|
|
146
146
|
var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
// return compositions.find((comp) => comp.id === item.uuid);
|
|
151
|
-
// });
|
|
152
|
-
console.log(compositions);
|
|
147
|
+
var orderedCompositions = CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS.sort(function (a, b) { return a.order - b.order; }).map(function (item) {
|
|
148
|
+
return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
|
|
149
|
+
});
|
|
153
150
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [Object.entries(componentGroups).map(function (_a) {
|
|
154
151
|
var position = _a[0], groupComponents = _a[1];
|
|
155
152
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-contentslist-button-group ccb-elements", ref: function (el) {
|
|
@@ -167,7 +164,7 @@ function ContentsList(props) {
|
|
|
167
164
|
queryPath: CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA,
|
|
168
165
|
limit: displayedItemLength,
|
|
169
166
|
queryData: queryData,
|
|
170
|
-
compositions:
|
|
167
|
+
compositions: orderedCompositions
|
|
171
168
|
}).slice(startIndex, endIndex) })) }))] })) }))] }));
|
|
172
169
|
}
|
|
173
170
|
function getIsBgMedia(isMobile, specs) {
|