@doyourjob/gravity-ui-page-constructor 5.31.41-b → 5.31.41

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.
@@ -37,25 +37,10 @@ const ConstructorBlocks = ({ items }) => {
37
37
  }
38
38
  itemElement = (react_1.default.createElement(ConstructorItem_1.ConstructorItem, { data: item, key: blockId, blockKey: blockId }, children));
39
39
  }
40
- if (blockTypes.includes(item.type)) {
41
- if (parentId) {
42
- return (react_1.default.createElement(ConstructorBlock_1.ConstructorBlock, { key: blockId, data: item, index: index }, itemElement));
43
- }
44
- return (react_1.default.createElement("div", { key: blockId, className: "test-constructor-blog" },
45
- react_1.default.createElement(ConstructorBlock_1.ConstructorBlock, { data: item, index: index }, itemElement)));
46
- }
47
- return itemElement;
48
- // return blockTypes.includes(item.type) ? (
49
- // //TODO: replace ConstructorBlock (and delete it) with BlockBase when all
50
- // // components relying on constructor inner structure like Slider or blog-constructor will be refactored
51
- // <div key={blockId} className="test-constructor-blog">
52
- // <ConstructorBlock data={item} index={index}>
53
- // {itemElement}
54
- // </ConstructorBlock>
55
- // </div>
56
- // ) : (
57
- // itemElement
58
- // );
40
+ return blockTypes.includes(item.type) ? (
41
+ //TODO: replace ConstructorBlock (and delete it) with BlockBase when all
42
+ // components relying on constructor inner structure like Slider or blog-constructor will be refactored
43
+ react_1.default.createElement(ConstructorBlock_1.ConstructorBlock, { data: item, key: blockId, index: index }, itemElement)) : (itemElement);
59
44
  };
60
45
  return react_1.default.createElement(react_1.Fragment, null, items.map(renderer.bind(null, '')));
61
46
  };
@@ -33,25 +33,10 @@ export const ConstructorBlocks = ({ items }) => {
33
33
  }
34
34
  itemElement = (React.createElement(ConstructorItem, { data: item, key: blockId, blockKey: blockId }, children));
35
35
  }
36
- if (blockTypes.includes(item.type)) {
37
- if (parentId) {
38
- return (React.createElement(ConstructorBlock, { key: blockId, data: item, index: index }, itemElement));
39
- }
40
- return (React.createElement("div", { key: blockId, className: "test-constructor-blog" },
41
- React.createElement(ConstructorBlock, { data: item, index: index }, itemElement)));
42
- }
43
- return itemElement;
44
- // return blockTypes.includes(item.type) ? (
45
- // //TODO: replace ConstructorBlock (and delete it) with BlockBase when all
46
- // // components relying on constructor inner structure like Slider or blog-constructor will be refactored
47
- // <div key={blockId} className="test-constructor-blog">
48
- // <ConstructorBlock data={item} index={index}>
49
- // {itemElement}
50
- // </ConstructorBlock>
51
- // </div>
52
- // ) : (
53
- // itemElement
54
- // );
36
+ return blockTypes.includes(item.type) ? (
37
+ //TODO: replace ConstructorBlock (and delete it) with BlockBase when all
38
+ // components relying on constructor inner structure like Slider or blog-constructor will be refactored
39
+ React.createElement(ConstructorBlock, { data: item, key: blockId, index: index }, itemElement)) : (itemElement);
55
40
  };
56
41
  return React.createElement(Fragment, null, items.map(renderer.bind(null, '')));
57
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doyourjob/gravity-ui-page-constructor",
3
- "version": "5.31.41-b",
3
+ "version": "5.31.41",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {