@lowdefy/client 4.1.0 → 4.2.1
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.
|
@@ -61,7 +61,6 @@ const CategorySwitch = ({ block, Blocks, context, loading, lowdefy })=>{
|
|
|
61
61
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
62
62
|
id: `bl-${block.blockId}`,
|
|
63
63
|
blockStyle: block.eval.style,
|
|
64
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
65
64
|
layout: block.eval.layout,
|
|
66
65
|
makeCssClass: makeCssClass
|
|
67
66
|
}, /*#__PURE__*/ React.createElement(Component, {
|
|
@@ -89,7 +88,6 @@ const CategorySwitch = ({ block, Blocks, context, loading, lowdefy })=>{
|
|
|
89
88
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
90
89
|
id: `bl-${block.blockId}`,
|
|
91
90
|
blockStyle: block.eval.style,
|
|
92
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
93
91
|
layout: block.eval.layout,
|
|
94
92
|
makeCssClass: makeCssClass
|
|
95
93
|
}, /*#__PURE__*/ React.createElement(Component, {
|
package/dist/block/Container.js
CHANGED
|
@@ -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 React from 'react';
|
|
16
|
-
import { Area, BlockLayout
|
|
16
|
+
import { Area, BlockLayout } from '@lowdefy/layout';
|
|
17
17
|
import { makeCssClass } from '@lowdefy/block-utils';
|
|
18
18
|
import Block from './Block.js';
|
|
19
19
|
const Container = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
@@ -22,32 +22,28 @@ const Container = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
|
22
22
|
const areas = Blocks.subBlocks[block.id][0].areas;
|
|
23
23
|
Object.keys(areas).forEach((areaKey, i)=>{
|
|
24
24
|
content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
area: layoutParamsToArea({
|
|
28
|
-
area: block.eval.areas[areaKey],
|
|
29
|
-
areaKey,
|
|
30
|
-
layout: block.eval.layout
|
|
31
|
-
}),
|
|
25
|
+
area: block.eval.areas[areaKey],
|
|
26
|
+
areaKey: areaKey,
|
|
32
27
|
areaStyle: [
|
|
33
28
|
areaStyle,
|
|
34
29
|
block.eval.areas[areaKey]?.style
|
|
35
30
|
],
|
|
36
|
-
|
|
31
|
+
id: `ar-${block.blockId}-${areaKey}`,
|
|
32
|
+
key: `ar-${block.blockId}-${areaKey}-${i}`,
|
|
33
|
+
layout: block.eval.layout,
|
|
37
34
|
makeCssClass: makeCssClass
|
|
38
35
|
}, areas[areaKey].blocks.map((bl, k)=>/*#__PURE__*/ React.createElement(Block, {
|
|
39
|
-
key: `co-${bl.blockId}-${k}`,
|
|
40
|
-
Blocks: Blocks.subBlocks[block.id][0],
|
|
41
36
|
block: bl,
|
|
37
|
+
Blocks: Blocks.subBlocks[block.id][0],
|
|
42
38
|
context: context,
|
|
43
|
-
|
|
44
|
-
lowdefy: lowdefy
|
|
39
|
+
key: `co-${bl.blockId}-${k}`,
|
|
40
|
+
lowdefy: lowdefy,
|
|
41
|
+
parentLoading: loading
|
|
45
42
|
})));
|
|
46
43
|
});
|
|
47
44
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
48
|
-
id: `bl-${block.blockId}`,
|
|
49
45
|
blockStyle: block.eval.style,
|
|
50
|
-
|
|
46
|
+
id: `bl-${block.blockId}`,
|
|
51
47
|
layout: block.eval.layout,
|
|
52
48
|
makeCssClass: makeCssClass
|
|
53
49
|
}, /*#__PURE__*/ React.createElement(Component, {
|
package/dist/block/List.js
CHANGED
|
@@ -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 React from 'react';
|
|
16
|
-
import { Area, BlockLayout
|
|
16
|
+
import { Area, BlockLayout } from '@lowdefy/layout';
|
|
17
17
|
import { makeCssClass } from '@lowdefy/block-utils';
|
|
18
18
|
import Block from './Block.js';
|
|
19
19
|
const List = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
@@ -22,26 +22,23 @@ const List = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
|
22
22
|
Blocks.subBlocks[block.id].forEach((SBlock)=>{
|
|
23
23
|
Object.keys(SBlock.areas).forEach((areaKey)=>{
|
|
24
24
|
content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
area: layoutParamsToArea({
|
|
28
|
-
area: block.eval.areas[areaKey],
|
|
29
|
-
areaKey,
|
|
30
|
-
layout: block.eval.layout
|
|
31
|
-
}),
|
|
25
|
+
area: block.eval.areas[areaKey],
|
|
26
|
+
areaKey: areaKey,
|
|
32
27
|
areaStyle: [
|
|
33
28
|
areaStyle,
|
|
34
29
|
block.eval.areas[areaKey]?.style
|
|
35
30
|
],
|
|
36
|
-
|
|
31
|
+
id: `ar-${block.blockId}-${SBlock.id}-${areaKey}`,
|
|
32
|
+
key: `ar-${block.blockId}-${SBlock.id}-${areaKey}`,
|
|
33
|
+
layout: block.eval.layout,
|
|
37
34
|
makeCssClass: makeCssClass
|
|
38
35
|
}, SBlock.areas[areaKey].blocks.map((bl)=>/*#__PURE__*/ React.createElement(Block, {
|
|
39
|
-
key: `ls-${bl.blockId}`,
|
|
40
|
-
Blocks: SBlock,
|
|
41
36
|
block: bl,
|
|
37
|
+
Blocks: SBlock,
|
|
42
38
|
context: context,
|
|
43
|
-
|
|
44
|
-
lowdefy: lowdefy
|
|
39
|
+
key: `ls-${bl.blockId}`,
|
|
40
|
+
lowdefy: lowdefy,
|
|
41
|
+
parentLoading: loading
|
|
45
42
|
})));
|
|
46
43
|
});
|
|
47
44
|
contentList.push({
|
|
@@ -49,9 +46,8 @@ const List = ({ block, Blocks, Component, context, loading, lowdefy })=>{
|
|
|
49
46
|
});
|
|
50
47
|
});
|
|
51
48
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
52
|
-
id: `bl-${block.blockId}`,
|
|
53
49
|
blockStyle: block.eval.style,
|
|
54
|
-
|
|
50
|
+
id: `bl-${block.blockId}`,
|
|
55
51
|
layout: block.eval.layout,
|
|
56
52
|
makeCssClass: makeCssClass
|
|
57
53
|
}, /*#__PURE__*/ React.createElement(Component, {
|
|
@@ -64,7 +64,6 @@ const LoadingBlock = ({ blockId, blockLayout, blockProperties, blockStyle, conte
|
|
|
64
64
|
default:
|
|
65
65
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
66
66
|
blockStyle: skeleton.style ?? blockStyle,
|
|
67
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
68
67
|
id: `s-bl-${blockId}-${skeleton.id}`,
|
|
69
68
|
layout: skeleton.layout ?? blockLayout,
|
|
70
69
|
makeCssClass: makeCssClass
|
|
@@ -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 React from 'react';
|
|
16
|
-
import { Area, BlockLayout
|
|
16
|
+
import { Area, BlockLayout } from '@lowdefy/layout';
|
|
17
17
|
import { makeCssClass } from '@lowdefy/block-utils';
|
|
18
18
|
import LoadingBlock from './LoadingBlock.js';
|
|
19
19
|
const LoadingContainer = ({ blockId, blockLayout, blockProperties, blockStyle, Component, context, lowdefy, skeleton })=>{
|
|
@@ -21,18 +21,15 @@ const LoadingContainer = ({ blockId, blockLayout, blockProperties, blockStyle, C
|
|
|
21
21
|
// eslint-disable-next-line prefer-destructuring
|
|
22
22
|
Object.keys(skeleton.areas).forEach((areaKey, i)=>{
|
|
23
23
|
content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
|
|
24
|
-
area:
|
|
25
|
-
|
|
26
|
-
areaKey,
|
|
27
|
-
layout: skeleton.layout ?? blockLayout
|
|
28
|
-
}),
|
|
24
|
+
area: skeleton.areas[areaKey],
|
|
25
|
+
areaKey: areaKey,
|
|
29
26
|
areaStyle: [
|
|
30
27
|
areaStyle,
|
|
31
28
|
skeleton.areas[areaKey]?.style
|
|
32
29
|
],
|
|
33
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
34
30
|
id: `s-ar-${blockId}-${skeleton.id}-${areaKey}`,
|
|
35
31
|
key: `s-ar-${blockId}-${skeleton.id}-${areaKey}-${i}`,
|
|
32
|
+
layout: skeleton.layout ?? blockLayout,
|
|
36
33
|
makeCssClass: makeCssClass
|
|
37
34
|
}, skeleton.areas[areaKey].blocks.map((skl, k)=>/*#__PURE__*/ React.createElement(LoadingBlock, {
|
|
38
35
|
blockId: blockId,
|
|
@@ -44,7 +41,6 @@ const LoadingContainer = ({ blockId, blockLayout, blockProperties, blockStyle, C
|
|
|
44
41
|
});
|
|
45
42
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
46
43
|
blockStyle: skeleton.style ?? blockStyle,
|
|
47
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
48
44
|
id: `s-bl-${blockId}-${skeleton.id}`,
|
|
49
45
|
layout: skeleton.layout ?? blockLayout,
|
|
50
46
|
makeCssClass: makeCssClass
|
|
@@ -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 React from 'react';
|
|
16
|
-
import { Area, BlockLayout
|
|
16
|
+
import { Area, BlockLayout } from '@lowdefy/layout';
|
|
17
17
|
import { makeCssClass } from '@lowdefy/block-utils';
|
|
18
18
|
import LoadingBlock from './LoadingBlock.js';
|
|
19
19
|
const LoadingList = ({ blockId, blockLayout, blockProperties, blockStyle, Component, context, lowdefy, skeleton })=>{
|
|
@@ -22,18 +22,15 @@ const LoadingList = ({ blockId, blockLayout, blockProperties, blockStyle, Compon
|
|
|
22
22
|
new Array(3).forEach(()=>{
|
|
23
23
|
Object.keys(skeleton.areas).forEach((areaKey, i)=>{
|
|
24
24
|
content[areaKey] = (areaStyle)=>/*#__PURE__*/ React.createElement(Area, {
|
|
25
|
-
area:
|
|
26
|
-
|
|
27
|
-
areaKey,
|
|
28
|
-
layout: skeleton.layout ?? blockLayout
|
|
29
|
-
}),
|
|
25
|
+
area: skeleton.areas[areaKey],
|
|
26
|
+
areaKey: areaKey,
|
|
30
27
|
areaStyle: [
|
|
31
28
|
areaStyle,
|
|
32
29
|
skeleton.areas[areaKey]?.style
|
|
33
30
|
],
|
|
34
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
35
31
|
id: `s-ar-${blockId}-${skeleton.id}-${areaKey}`,
|
|
36
32
|
key: `s-ar-${blockId}-${skeleton.id}-${areaKey}-${i}`,
|
|
33
|
+
layout: skeleton.layout ?? blockLayout,
|
|
37
34
|
makeCssClass: makeCssClass
|
|
38
35
|
}, skeleton.areas[areaKey].blocks.map((skl, k)=>/*#__PURE__*/ React.createElement(LoadingBlock, {
|
|
39
36
|
blockId: blockId,
|
|
@@ -49,7 +46,6 @@ const LoadingList = ({ blockId, blockLayout, blockProperties, blockStyle, Compon
|
|
|
49
46
|
});
|
|
50
47
|
return /*#__PURE__*/ React.createElement(BlockLayout, {
|
|
51
48
|
blockStyle: skeleton.style ?? blockStyle,
|
|
52
|
-
highlightBorders: lowdefy.lowdefyGlobal.highlightBorders,
|
|
53
49
|
id: `s-bl-${blockId}-${skeleton.id}`,
|
|
54
50
|
layout: skeleton.layout ?? blockLayout,
|
|
55
51
|
makeCssClass: makeCssClass
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/client",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.2.1",
|
|
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": "4.1
|
|
38
|
-
"@lowdefy/engine": "4.1
|
|
39
|
-
"@lowdefy/helpers": "4.1
|
|
40
|
-
"@lowdefy/layout": "4.1
|
|
37
|
+
"@lowdefy/block-utils": "4.2.1",
|
|
38
|
+
"@lowdefy/engine": "4.2.1",
|
|
39
|
+
"@lowdefy/helpers": "4.2.1",
|
|
40
|
+
"@lowdefy/layout": "4.2.1",
|
|
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": "4.1
|
|
48
|
+
"@lowdefy/jest-yaml-transform": "4.2.1",
|
|
49
49
|
"@swc/cli": "0.1.63",
|
|
50
50
|
"@swc/core": "1.3.99",
|
|
51
51
|
"@swc/jest": "0.2.29",
|