@lowdefy/engine 4.0.0-alpha.4 → 4.0.0-alpha.5
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/getContext.js +3 -12
- package/package.json +4 -4
package/dist/getContext.js
CHANGED
|
@@ -17,7 +17,7 @@ import Actions from './Actions.js';
|
|
|
17
17
|
import Blocks from './Blocks.js';
|
|
18
18
|
import Requests from './Requests.js';
|
|
19
19
|
import State from './State.js';
|
|
20
|
-
const blockData = ({ areas , blockId , blocks , events , field , id , layout ,
|
|
20
|
+
const blockData = ({ areas , blockId , blocks , events , field , id , layout , pageId , properties , requests , required , style , type , validate , visible , })=>({
|
|
21
21
|
areas,
|
|
22
22
|
blockId,
|
|
23
23
|
blocks,
|
|
@@ -25,8 +25,6 @@ const blockData = ({ areas , blockId , blocks , events , field , id , layout , m
|
|
|
25
25
|
field,
|
|
26
26
|
id,
|
|
27
27
|
layout,
|
|
28
|
-
meta,
|
|
29
|
-
operators,
|
|
30
28
|
pageId,
|
|
31
29
|
properties,
|
|
32
30
|
requests,
|
|
@@ -50,11 +48,6 @@ async function getContext({ config , lowdefy }) {
|
|
|
50
48
|
lowdefy.inputs[id] = {
|
|
51
49
|
};
|
|
52
50
|
}
|
|
53
|
-
const operatorsSet = new Set([
|
|
54
|
-
...config.operators,
|
|
55
|
-
'_not',
|
|
56
|
-
'_type'
|
|
57
|
-
]);
|
|
58
51
|
const ctx = {
|
|
59
52
|
id: id,
|
|
60
53
|
pageId: config.pageId,
|
|
@@ -65,9 +58,6 @@ async function getContext({ config , lowdefy }) {
|
|
|
65
58
|
},
|
|
66
59
|
_internal: {
|
|
67
60
|
lowdefy,
|
|
68
|
-
operators: [
|
|
69
|
-
...operatorsSet
|
|
70
|
-
],
|
|
71
61
|
rootBlock: blockData(config),
|
|
72
62
|
update: ()=>{
|
|
73
63
|
}
|
|
@@ -75,7 +65,8 @@ async function getContext({ config , lowdefy }) {
|
|
|
75
65
|
};
|
|
76
66
|
const _internal = ctx._internal;
|
|
77
67
|
_internal.parser = new WebParser({
|
|
78
|
-
context: ctx
|
|
68
|
+
context: ctx,
|
|
69
|
+
operators: lowdefy._internal.operators
|
|
79
70
|
});
|
|
80
71
|
await _internal.parser.init();
|
|
81
72
|
_internal.State = new State(ctx);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/engine",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.5",
|
|
4
4
|
"licence": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"test": "jest --coverage"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@lowdefy/helpers": "4.0.0-alpha.
|
|
42
|
-
"@lowdefy/operators": "4.0.0-alpha.
|
|
41
|
+
"@lowdefy/helpers": "4.0.0-alpha.5",
|
|
42
|
+
"@lowdefy/operators": "4.0.0-alpha.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@swc/cli": "0.1.52",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "995fcdb020927f3cdc626fc99c15a2e4137bd962"
|
|
54
54
|
}
|