@lowdefy/client 0.0.0-experimental-20250625124206 → 0.0.0-experimental-20250702125311

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.
@@ -16,7 +16,7 @@
16
16
  import { BlockLayout } from '@lowdefy/layout';
17
17
  import { makeCssClass } from '@lowdefy/block-utils';
18
18
  import { type } from '@lowdefy/helpers';
19
- import Hybrid from './Hybrid.js';
19
+ import InputContainer from './InputContainer.js';
20
20
  import Container from './Container.js';
21
21
  import List from './List.js';
22
22
  import LoadingBlock from './LoadingBlock.js';
@@ -85,8 +85,8 @@ const CategorySwitch = ({ block, Blocks, context, loading, lowdefy })=>{
85
85
  validation: block.eval.validation,
86
86
  value: block.value
87
87
  }));
88
- case 'hybrid':
89
- return /*#__PURE__*/ React.createElement(Hybrid, {
88
+ case 'input-container':
89
+ return /*#__PURE__*/ React.createElement(InputContainer, {
90
90
  block: block,
91
91
  Blocks: Blocks,
92
92
  Component: Component,
@@ -16,36 +16,30 @@
16
16
  import { Area, BlockLayout } from '@lowdefy/layout';
17
17
  import { makeCssClass } from '@lowdefy/block-utils';
18
18
  import Block from './Block.js';
19
- const Hybrid = ({ block, Blocks, Component, context, loading, lowdefy })=>{
19
+ const InputContainer = ({ block, Blocks, Component, context, loading, lowdefy })=>{
20
20
  const content = {};
21
- const contentList = [];
22
21
  // eslint-disable-next-line prefer-destructuring
23
- const SBlocks = Blocks.subAreas[block.id];
24
- SBlocks.forEach((SBlock)=>{
25
- Object.keys(SBlock.areas).forEach((areaKey, i)=>{
26
- content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
27
- area: block.eval.areas[areaKey],
28
- areaKey: areaKey,
29
- areaStyle: [
30
- areaStyle,
31
- block.eval.areas[areaKey]?.style
32
- ],
33
- id: `ar-${block.blockId}-${areaKey}`,
34
- key: `ar-${block.blockId}-${areaKey}-${i}`,
35
- layout: block.eval.layout,
36
- makeCssClass: makeCssClass
37
- }, SBlock.areas[areaKey].blocks.map((bl, k)=>/*#__PURE__*/ React.createElement(Block, {
38
- block: bl,
39
- Blocks: Blocks.subAreas[block.id][0],
40
- context: context,
41
- key: `co-${bl.blockId}-${k}`,
42
- lowdefy: lowdefy,
43
- parentLoading: loading
44
- })));
45
- });
46
- contentList.push({
47
- ...content
48
- });
22
+ const areas = Blocks.subAreas[block.id][0].areas;
23
+ Object.keys(areas).forEach((areaKey, i)=>{
24
+ content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
25
+ area: block.eval.areas[areaKey],
26
+ areaKey: areaKey,
27
+ areaStyle: [
28
+ areaStyle,
29
+ block.eval.areas[areaKey]?.style
30
+ ],
31
+ id: `ar-${block.blockId}-${areaKey}`,
32
+ key: `ar-${block.blockId}-${areaKey}-${i}`,
33
+ layout: block.eval.layout,
34
+ makeCssClass: makeCssClass
35
+ }, areas[areaKey].blocks.map((bl, k)=>/*#__PURE__*/ React.createElement(Block, {
36
+ block: bl,
37
+ Blocks: Blocks.subAreas[block.id][0],
38
+ context: context,
39
+ key: `co-${bl.blockId}-${k}`,
40
+ lowdefy: lowdefy,
41
+ parentLoading: loading
42
+ })));
49
43
  });
50
44
  return /*#__PURE__*/ React.createElement(BlockLayout, {
51
45
  blockStyle: block.eval.style,
@@ -71,7 +65,6 @@ const Hybrid = ({ block, Blocks, Component, context, loading, lowdefy })=>{
71
65
  content: content,
72
66
  events: block.eval.events,
73
67
  key: block.blockId,
74
- list: contentList,
75
68
  loading: loading,
76
69
  menus: lowdefy.menus,
77
70
  pageId: lowdefy.pageId,
@@ -81,4 +74,4 @@ const Hybrid = ({ block, Blocks, Component, context, loading, lowdefy })=>{
81
74
  value: block.value
82
75
  }));
83
76
  };
84
- export default Hybrid;
77
+ export default InputContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/client",
3
- "version": "0.0.0-experimental-20250625124206",
3
+ "version": "0.0.0-experimental-20250702125311",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy Client",
6
6
  "homepage": "https://lowdefy.com",
@@ -34,10 +34,10 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@ant-design/icons": "4.8.0",
37
- "@lowdefy/block-utils": "0.0.0-experimental-20250625124206",
38
- "@lowdefy/engine": "0.0.0-experimental-20250625124206",
39
- "@lowdefy/helpers": "0.0.0-experimental-20250625124206",
40
- "@lowdefy/layout": "0.0.0-experimental-20250625124206",
37
+ "@lowdefy/block-utils": "0.0.0-experimental-20250702125311",
38
+ "@lowdefy/engine": "0.0.0-experimental-20250702125311",
39
+ "@lowdefy/helpers": "0.0.0-experimental-20250702125311",
40
+ "@lowdefy/layout": "0.0.0-experimental-20250702125311",
41
41
  "classnames": "2.3.2",
42
42
  "react": "18.2.0",
43
43
  "react-dom": "18.2.0"
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@emotion/jest": "11.10.5",
47
47
  "@jest/globals": "28.1.3",
48
- "@lowdefy/jest-yaml-transform": "0.0.0-experimental-20250625124206",
48
+ "@lowdefy/jest-yaml-transform": "0.0.0-experimental-20250702125311",
49
49
  "@swc/cli": "0.1.63",
50
50
  "@swc/core": "1.3.99",
51
51
  "@swc/jest": "0.2.29",