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

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.
@@ -52,7 +52,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
53
  var jsx_runtime_1 = require("react/jsx-runtime");
54
54
  /* eslint-disable @typescript-eslint/no-unused-vars */
55
- var publ_echo_test_1 = require("publ-echo-test");
55
+ var publ_echo_1 = require("publ-echo");
56
56
  var group_1 = require("publ-echo/dist/lib/GridLayoutEditor/group");
57
57
  var renderHelpers_1 = require("publ-echo/dist/lib/GridLayoutEditor/utils/renderHelpers");
58
58
  var react_1 = __importStar(require("react"));
@@ -71,7 +71,7 @@ var group_2 = require("../sections/CustomSection/newUtils/group");
71
71
  var util_1 = require("../sections/CustomSection/util");
72
72
  var parseSectionPadding_1 = __importDefault(require("../sections/CustomSection/util/layoutPropParsers/parseSectionPadding"));
73
73
  var parseCompositionPlacement_1 = __importDefault(require("../sections/CustomSection/util/parseCompositionPlacement"));
74
- var Responsive = (0, publ_echo_test_1.WidthProvider)(publ_echo_test_1.ResponsiveGridEditor);
74
+ var Responsive = (0, publ_echo_1.WidthProvider)(publ_echo_1.ResponsiveGridEditor);
75
75
  var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas(props, ref) {
76
76
  var _a, _b, _c, _d;
77
77
  var _e = props.editorProps, device = _e.device, shortcutKeyMode = _e.shortcutKeyMode, placementRestriction = _e.placementRestriction, compositionActionHandler = _e.compositionActionHandler;
@@ -51,7 +51,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
53
  var jsx_runtime_1 = require("react/jsx-runtime");
54
- var publ_echo_test_1 = require("publ-echo-test");
54
+ var publ_echo_1 = require("publ-echo");
55
55
  var group_1 = require("publ-echo/dist/lib/GridLayoutEditor/group");
56
56
  var renderHelpers_1 = require("publ-echo/dist/lib/GridLayoutEditor/utils/renderHelpers");
57
57
  var react_1 = __importStar(require("react"));
@@ -67,7 +67,7 @@ var clsx_1 = require("./newUtils/clsx");
67
67
  var group_2 = require("./newUtils/group");
68
68
  var util_1 = require("./util");
69
69
  var parseSectionPadding_1 = __importDefault(require("./util/layoutPropParsers/parseSectionPadding"));
70
- var Responsive = (0, publ_echo_test_1.WidthProvider)(publ_echo_test_1.ResponsiveGridEditor);
70
+ var Responsive = (0, publ_echo_1.WidthProvider)(publ_echo_1.ResponsiveGridEditor);
71
71
  var GRID_CELL_MIN = 24;
72
72
  var DESKTOP_GRID_COLS = 24;
73
73
  var MOBILE_GRID_COLS = 8;
@@ -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.585",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -25,7 +25,6 @@
25
25
  "lottie-react": "^2.3.1",
26
26
  "nuka-carousel": "^4.8.4",
27
27
  "publ-echo": "^0.0.132",
28
- "publ-echo-test": "^0.0.397",
29
28
  "react-hook-form": "^7.28.1",
30
29
  "react-i18next": "^11.12.0",
31
30
  "react-router-dom": "^5.2.0",