pds-dev-kit-web-test 2.7.583 → 2.7.584

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.
@@ -75,9 +75,10 @@ exports.parseGridStyleProp = parseGridStyleProp;
75
75
  function parseGridContentProp(_a) {
76
76
  var props = _a.props, device = _a.device;
77
77
  var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
78
- var displayCounts = props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS ||
79
- props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS ||
80
- 1;
78
+ var displayCountsByDevice = device === 'DESKTOP'
79
+ ? props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS
80
+ : props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_MDISPLAYCOUNTS;
81
+ var displayCounts = displayCountsByDevice || props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS || 1;
81
82
  var columnsByDevice = device === 'DESKTOP'
82
83
  ? props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS
83
84
  : props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_MCOLUMNS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.583",
3
+ "version": "2.7.584",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",