pds-dev-kit-web-test 2.7.151 → 2.7.153

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.
@@ -132,11 +132,11 @@ function ContentsCarousel(props) {
132
132
  var isMobile = device === 'MOBILE';
133
133
  var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
134
134
  var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
135
- var orderedCompositions = __spreadArray([], CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MANUALITEMS, true).sort(function (a, b) { return a.order - b.order; })
135
+ var orderedCompositions = __spreadArray([], CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MANUALITEMS, true).filter(function (item) { return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; }); })
136
+ .sort(function (a, b) { return a.order - b.order; })
136
137
  .map(function (item) {
137
138
  return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
138
139
  });
139
- console.log(orderedCompositions);
140
140
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [Object.entries(componentGroups).map(function (_a) {
141
141
  var position = _a[0], groupComponents = _a[1];
142
142
  return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-contentscarousel-button-group ccb-elements", ref: function (el) {
@@ -153,7 +153,8 @@ function ContentsList(props) {
153
153
  var isMobile = device === 'MOBILE';
154
154
  var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
155
155
  var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
156
- var orderedCompositions = __spreadArray([], CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS, true).sort(function (a, b) { return a.order - b.order; })
156
+ var orderedCompositions = __spreadArray([], CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS, true).filter(function (item) { return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; }); })
157
+ .sort(function (a, b) { return a.order - b.order; })
157
158
  .map(function (item) {
158
159
  return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
159
160
  });
@@ -135,7 +135,8 @@ function SlideBanner(props) {
135
135
  var isMobile = device === 'MOBILE';
136
136
  var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
137
137
  var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
138
- var orderedCompositions = __spreadArray([], CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS, true).sort(function (a, b) { return a.order - b.order; })
138
+ var orderedCompositions = __spreadArray([], CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS, true).filter(function (item) { return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; }); })
139
+ .sort(function (a, b) { return a.order - b.order; })
139
140
  .map(function (item) {
140
141
  return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
141
142
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.151",
3
+ "version": "2.7.153",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",