@nascentdigital/funnel-ui 4.5.4 → 4.5.7

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.
@@ -30,12 +30,12 @@ function groupBlocks(maybeBlocks) {
30
30
  // group blocks
31
31
  let deferredItems = [];
32
32
  const groupedBlocks = maybeBlocks.reduce((groups, maybeBlock) => {
33
- var _a, _b;
33
+ var _a, _b, _c;
34
34
  // handle block
35
35
  let group = funnel_core_1.ArrayUtils.last(groups);
36
36
  if (filterBlockProps(maybeBlock)) {
37
37
  // create new group if theme differs
38
- const theme = (_b = (_a = maybeBlock.props.model.config) === null || _a === void 0 ? void 0 : _a.theme.value) !== null && _b !== void 0 ? _b : 'default';
38
+ const theme = (_c = (_b = (_a = maybeBlock.props.model.config) === null || _a === void 0 ? void 0 : _a.theme) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : 'default';
39
39
  if (!group || group.theme !== theme) {
40
40
  // create group
41
41
  group = { theme, items: [] };
@@ -78,8 +78,8 @@ var BlockPanel;
78
78
  ? variation === 'v1'
79
79
  ? ['M', 'L']
80
80
  : ['L', 'M']
81
- // only message OR list
82
- : message ? ['M'] : ['L'];
81
+ // only list OR message
82
+ : list ? ['L'] : ['M'];
83
83
  }
84
84
  // or handle case where there's just a visual + message/list
85
85
  else if (!message || !list) {
@@ -6,16 +6,16 @@ var ListPanelLayout;
6
6
  (function (ListPanelLayout) {
7
7
  // schema
8
8
  ListPanelLayout.options = {
9
- brick: { name: 'Brick' },
10
- brickFlipped: { name: 'Brick flipped' },
9
+ grid: { name: 'Grid' },
11
10
  card: { name: 'Card' },
12
- carousel: { name: 'Carousel' },
13
11
  flexWrap: { name: 'Flex wrap' },
12
+ verticalStack: { name: 'Vertical stack' },
14
13
  horizontalStack: { name: 'Horizontal stack' },
15
14
  masonry: { name: 'Masonry' },
16
- verticalStack: { name: 'Vertical stack' },
17
- grid: { name: 'Grid' },
18
- bento: { name: 'Bento' }
15
+ bento: { name: 'Bento' },
16
+ brick: { name: 'Brick' },
17
+ brickFlipped: { name: 'Brick flipped' },
18
+ carousel: { name: 'Carousel' }
19
19
  };
20
20
  ListPanelLayout.schema = funnel_core_1.Schema.Field.enumeration({
21
21
  name: 'Layout',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nascentdigital/funnel-ui",
3
3
  "description": "UI components for funnel",
4
- "version": "4.5.4",
4
+ "version": "4.5.7",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
7
7
  "access": "restricted"
@@ -69,5 +69,5 @@
69
69
  "react-dom": "^19",
70
70
  "ts-jest": "^29.3.2"
71
71
  },
72
- "gitHead": "d3d65564e0935e40c8b1e441316b63a126516bca"
72
+ "gitHead": "aa14b53e99044a968b850c4f426e40d312a9306a"
73
73
  }