@lowdefy/layout 4.0.0-alpha.15 → 4.0.0-alpha.18

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.
package/dist/Area.js CHANGED
@@ -16,7 +16,7 @@
16
16
  import { Row } from 'antd';
17
17
  import { blockDefaultProps } from '@lowdefy/block-utils';
18
18
  import gutterSetup from './gutterSetup.js';
19
- const Area = ({ area , areaStyle , children , highlightBorders , id , makeCssClass })=>/*#__PURE__*/ React.createElement(Row, {
19
+ const Area = ({ area ={} , areaStyle , children , highlightBorders , id , makeCssClass })=>/*#__PURE__*/ React.createElement(Row, {
20
20
  id: id,
21
21
  align: area.align,
22
22
  className: makeCssClass(areaStyle),
@@ -42,8 +42,8 @@ const alignSelf = (align)=>{
42
42
  }
43
43
  return align;
44
44
  };
45
- const BlockLayout = ({ id , blockStyle , children , highlightBorders , layout , makeCssClass })=>{
46
- if (layout && layout.disabled) {
45
+ const BlockLayout = ({ id , blockStyle , children , highlightBorders , layout ={} , makeCssClass })=>{
46
+ if (layout.disabled) {
47
47
  return /*#__PURE__*/ React.createElement("div", {
48
48
  id: id,
49
49
  className: makeCssClass(blockStyle)
@@ -13,7 +13,7 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import { type } from '@lowdefy/helpers';
16
- const layoutParamsToArea = ({ areaKey , area , layout })=>{
16
+ const layoutParamsToArea = ({ areaKey , area ={} , layout ={} })=>{
17
17
  if (areaKey !== 'content') {
18
18
  return area;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/layout",
3
- "version": "4.0.0-alpha.15",
3
+ "version": "4.0.0-alpha.18",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -42,16 +42,16 @@
42
42
  "test": "jest --coverage"
43
43
  },
44
44
  "dependencies": {
45
- "@lowdefy/block-utils": "4.0.0-alpha.15",
46
- "@lowdefy/helpers": "4.0.0-alpha.15",
45
+ "@lowdefy/block-utils": "4.0.0-alpha.18",
46
+ "@lowdefy/helpers": "4.0.0-alpha.18",
47
47
  "antd": "4.20.7",
48
48
  "react": "18.1.0",
49
49
  "react-dom": "18.1.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@emotion/jest": "11.9.1",
53
- "@lowdefy/block-dev": "4.0.0-alpha.15",
54
- "@lowdefy/jest-yaml-transform": "4.0.0-alpha.15",
53
+ "@lowdefy/block-dev": "4.0.0-alpha.18",
54
+ "@lowdefy/jest-yaml-transform": "4.0.0-alpha.18",
55
55
  "@swc/cli": "0.1.57",
56
56
  "@swc/core": "1.2.194",
57
57
  "@swc/jest": "0.2.21",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "b4e4538475e997f95baa37f01f39689240e6f01c"
69
+ "gitHead": "9ba94a9ab39be2a165b3a58043fbb33f26b48ae3"
70
70
  }