publ-echo-test 0.0.397 → 0.0.399

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.
@@ -23,6 +23,8 @@ export function GridBackgroundPlaceholder(_a) {
23
23
  var isHeightVariable = activeBlock
24
24
  ? getIsHeightVariable(activeBlock, device)
25
25
  : false;
26
+ console.log("activeBlock", activeBlock);
27
+ console.log("isHeightVariable", isHeightVariable);
26
28
  var showActiveRows = activeBlock && activeBlock.type === "GROUP_BLOCK"
27
29
  ? getShowActiveRows(activeBlock, layout)
28
30
  : !!activeDrag.heightFitContent || isHeightVariable;
@@ -819,6 +819,7 @@ var ReactGridLayout = function (_a) {
819
819
  ? generateGrouplayout(parsedSelectedBlockId.blockId)
820
820
  : null;
821
821
  var activeDragItemOrSelectedItem = activeDrag || selectedLayoutItem;
822
+ console.log("activeDragItemOrSelectedItem", parsedSelectedBlockId);
822
823
  var activeBlock = activeDragItemOrSelectedItem && parsedSelectedBlockId
823
824
  ? blockStructure
824
825
  ? findBlockByBlockId(blockStructure, parsedSelectedBlockId.blockId)
@@ -22,8 +22,8 @@ export type ComponentBlock = {
22
22
  zOrderDesktopInternal: number | null;
23
23
  zOrderMobileInternal: number | null;
24
24
  componentBlockId: number;
25
- isHeightVariableDesktop: boolean;
26
- isHeightVariableMobile: boolean;
25
+ isHeightVariableDesktop: boolean | null;
26
+ isHeightVariableMobile: boolean | null;
27
27
  };
28
28
  export type GroupBlock = {
29
29
  blockId: string;
@@ -31,8 +31,8 @@ export type GroupBlock = {
31
31
  zOrderDesktopInternal: number | null;
32
32
  zOrderMobileInternal: number | null;
33
33
  children: (ComponentBlock | GroupBlock)[];
34
- isHeightVariableDesktop: boolean;
35
- isHeightVariableMobile: boolean;
34
+ isHeightVariableDesktop: boolean | null;
35
+ isHeightVariableMobile: boolean | null;
36
36
  };
37
37
  export type RootBlock = {
38
38
  blockId: "ROOT";
@@ -40,8 +40,8 @@ export type RootBlock = {
40
40
  zOrderDesktopInternal: number | null;
41
41
  zOrderMobileInternal: number | null;
42
42
  children: (ComponentBlock | GroupBlock)[];
43
- isHeightVariableDesktop: boolean;
44
- isHeightVariableMobile: boolean;
43
+ isHeightVariableDesktop: boolean | null;
44
+ isHeightVariableMobile: boolean | null;
45
45
  };
46
46
  export type BulkBlockInternal = {
47
47
  blockId: "BULK";
@@ -49,8 +49,8 @@ export type BulkBlockInternal = {
49
49
  zOrderDesktopInternal: number;
50
50
  zOrderMobileInternal: number;
51
51
  children: (ComponentBlock | GroupBlock)[];
52
- isHeightVariableDesktop: boolean;
53
- isHeightVariableMobile: boolean;
52
+ isHeightVariableDesktop: boolean | null;
53
+ isHeightVariableMobile: boolean | null;
54
54
  };
55
55
  export declare const findBlockByBlockId: (block: Block, blockId: string) => Block | null;
56
56
  export declare const findDirectChildrenCbIds: (block: Block, targetId: string) => number[];
@@ -265,6 +265,13 @@ export function getBlockIdKind(blockId) {
265
265
  blockId: blockId,
266
266
  };
267
267
  }
268
+ if (Number.isInteger(Number(blockId))) {
269
+ return {
270
+ type: "CB",
271
+ cbId: Number(blockId).toString(),
272
+ blockId: formatCbIdToBlockId(Number(blockId)),
273
+ };
274
+ }
268
275
  return null;
269
276
  }
270
277
  // export const findAccessibleChildrenBlocks = (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.397",
3
+ "version": "0.0.399",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",