pds-dev-kit-web-test 2.5.629 → 2.5.631

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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { ComponentBlock } from './types';
2
+ import { type ComponentBlock } from './types';
3
3
  import type { Device } from './util/types';
4
4
  type Props = {
5
5
  cb: ComponentBlock;
@@ -21,17 +21,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
21
21
  var jsx_runtime_1 = require("react/jsx-runtime");
22
22
  var styled_components_1 = __importDefault(require("styled-components"));
23
23
  var ComponentBlockMatcher_1 = __importDefault(require("./components/ComponentBlock/ComponentBlockMatcher"));
24
+ var types_1 = require("./types");
24
25
  var gap = 10;
25
26
  function FlexGridItem(_a) {
26
27
  var cb = _a.cb, index = _a.index, device = _a.device, rowHeight = _a.rowHeight, zIndex = _a.zIndex;
27
28
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
28
29
  var defaultHeight = getMaxHeight(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device, rowHeight);
29
30
  var gridArea = getGridAreaFromCB(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device);
30
- return ((0, jsx_runtime_1.jsx)(GridItem, __assign({ "data-cb-id": cb.id, style: {
31
- zIndex: zIndex,
32
- gridArea: gridArea
33
- // maxHeight: cb.componentBlockCode !== CB_ALL_CODES.CB_TEXT ? defaultHeight : undefined
34
- } }, { children: (0, jsx_runtime_1.jsx)(ComponentBlockMatcher_1.default, { rowHeight: rowHeight, cbProps: cb, device: device, index: index }) })));
31
+ var isRichText = cb.componentBlockCode === types_1.CB_ALL_CODES.CB_RICHTEXT;
32
+ return ((0, jsx_runtime_1.jsx)(GridItem, __assign({ "data-cb-id": cb.id, style: __assign({ zIndex: zIndex, gridArea: gridArea }, (isRichText && {
33
+ minHeight: 0,
34
+ overflowY: 'scroll'
35
+ })) }, { children: (0, jsx_runtime_1.jsx)(ComponentBlockMatcher_1.default, { rowHeight: rowHeight, cbProps: cb, device: device, index: index }) })));
35
36
  }
36
37
  var GridItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: auto;\n word-break: break-word;\n"], ["\n height: auto;\n word-break: break-word;\n"])));
37
38
  function getMaxHeight(props, device, rowHeight) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.629",
3
+ "version": "2.5.631",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",