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
- // const orderedCompositions = CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS.sort(
148
- // (a, b) => a.order - b.order
149
- // ).map((item) => {
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: compositions
167
+ compositions: orderedCompositions
171
168
  }).slice(startIndex, endIndex) })) }))] })) }))] }));
172
169
  }
173
170
  function getIsBgMedia(isMobile, specs) {
@@ -427,6 +427,7 @@ export interface IComposition {
427
427
  compositionCode: string;
428
428
  compositionTemplateCode: string;
429
429
  dynamicLayoutComponentBlockId: number;
430
+ ccbManualItemUuid: string;
430
431
  }
431
432
  export type ICompositionJsonProperties = {
432
433
  data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.137",
3
+ "version": "2.7.139",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",