publ-echo 0.0.25 → 0.0.27

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.
@@ -19,6 +19,7 @@ export type LayoutItem = {
19
19
  isResizable?: boolean;
20
20
  resizeHandles?: ResizeHandleAxis[];
21
21
  isBounded?: boolean;
22
+ groupLayouts?: LayoutItem[];
22
23
  };
23
24
  export type Layout = LayoutItem[];
24
25
  export type DroppedEvent = {
@@ -59,24 +59,7 @@ export function withLayoutItem(layout, itemKey, cb) {
59
59
  }
60
60
  // Fast path to cloning, since this is monomorphic
61
61
  export function cloneLayoutItem(layoutItem) {
62
- return {
63
- w: layoutItem.w,
64
- h: layoutItem.h,
65
- x: layoutItem.x,
66
- y: layoutItem.y,
67
- z: layoutItem.z,
68
- i: layoutItem.i,
69
- minW: layoutItem.minW,
70
- maxW: layoutItem.maxW,
71
- minH: layoutItem.minH,
72
- maxH: layoutItem.maxH,
73
- moved: Boolean(layoutItem.moved),
74
- static: Boolean(layoutItem.static),
75
- isDraggable: layoutItem.isDraggable,
76
- isResizable: layoutItem.isResizable,
77
- resizeHandles: layoutItem.resizeHandles,
78
- isBounded: layoutItem.isBounded,
79
- };
62
+ return __assign(__assign({}, layoutItem), { w: layoutItem.w, h: layoutItem.h, x: layoutItem.x, y: layoutItem.y, z: layoutItem.z, i: layoutItem.i, minW: layoutItem.minW, maxW: layoutItem.maxW, minH: layoutItem.minH, maxH: layoutItem.maxH, moved: Boolean(layoutItem.moved), static: Boolean(layoutItem.static), isDraggable: layoutItem.isDraggable, isResizable: layoutItem.isResizable, resizeHandles: layoutItem.resizeHandles, isBounded: layoutItem.isBounded });
80
63
  }
81
64
  /**
82
65
  * Comparing React `children` is a bit difficult. This is a good way to compare them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",