@lowdefy/build 4.0.0-rc.4 → 4.0.0-rc.6

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/index.js CHANGED
@@ -15,6 +15,7 @@
15
15
  */ import createContext from './createContext.js';
16
16
  import createPluginTypesMap from './utils/createPluginTypesMap.js';
17
17
  import addDefaultPages from './build/addDefaultPages/addDefaultPages.js';
18
+ import addKeys from './build/addKeys.js';
18
19
  import buildAuth from './build/buildAuth/buildAuth.js';
19
20
  import buildConnections from './build/buildConnections.js';
20
21
  import buildImports from './build/buildImports/buildImports.js';
@@ -34,6 +35,7 @@ import writePluginImports from './build/writePluginImports/writePluginImports.js
34
35
  import writeConfig from './build/writeConfig.js';
35
36
  import writeConnections from './build/writeConnections.js';
36
37
  import writeGlobal from './build/writeGlobal.js';
38
+ import writeMaps from './build/writeMaps.js';
37
39
  import writeMenus from './build/writeMenus.js';
38
40
  import writePages from './build/writePages.js';
39
41
  import writeRequests from './build/writeRequests.js';
@@ -75,6 +77,10 @@ async function build(options) {
75
77
  components,
76
78
  context
77
79
  });
80
+ addKeys({
81
+ components,
82
+ context
83
+ });
78
84
  buildTypes({
79
85
  components,
80
86
  context
@@ -114,6 +120,10 @@ async function build(options) {
114
120
  components,
115
121
  context
116
122
  });
123
+ await writeMaps({
124
+ components,
125
+ context
126
+ });
117
127
  await writeMenus({
118
128
  components,
119
129
  context
@@ -43,7 +43,9 @@ function testContext({ writeBuildArtifact , configDirectory , readConfigFile , l
43
43
  }
44
44
  },
45
45
  writeBuildArtifact: writeBuildArtifact || (()=>{}),
46
- readConfigFile: readConfigFile || (()=>{})
46
+ readConfigFile: readConfigFile || (()=>{}),
47
+ refMap: {},
48
+ keyMap: {}
47
49
  };
48
50
  context.logger = {
49
51
  ...defaultLogger,
@@ -0,0 +1,20 @@
1
+ /*
2
+ Copyright 2020-2023 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ let id_counter = 0;
16
+ function makeId() {
17
+ id_counter++;
18
+ return id_counter.toString(36);
19
+ }
20
+ export default makeId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/build",
3
- "version": "4.0.0-rc.4",
3
+ "version": "4.0.0-rc.6",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -51,50 +51,49 @@
51
51
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
52
52
  },
53
53
  "dependencies": {
54
- "@lowdefy/ajv": "4.0.0-rc.4",
55
- "@lowdefy/blocks-basic": "4.0.0-rc.4",
56
- "@lowdefy/blocks-loaders": "4.0.0-rc.4",
57
- "@lowdefy/helpers": "4.0.0-rc.4",
58
- "@lowdefy/node-utils": "4.0.0-rc.4",
59
- "@lowdefy/nunjucks": "4.0.0-rc.4",
60
- "@lowdefy/operators": "4.0.0-rc.4",
61
- "@lowdefy/operators-js": "4.0.0-rc.4",
54
+ "@lowdefy/ajv": "4.0.0-rc.6",
55
+ "@lowdefy/blocks-basic": "4.0.0-rc.6",
56
+ "@lowdefy/blocks-loaders": "4.0.0-rc.6",
57
+ "@lowdefy/helpers": "4.0.0-rc.6",
58
+ "@lowdefy/node-utils": "4.0.0-rc.6",
59
+ "@lowdefy/nunjucks": "4.0.0-rc.6",
60
+ "@lowdefy/operators": "4.0.0-rc.6",
61
+ "@lowdefy/operators-js": "4.0.0-rc.6",
62
62
  "ajv": "8.12.0",
63
63
  "json5": "2.2.3",
64
- "uuid": "9.0.0",
65
64
  "yaml": "2.2.1",
66
65
  "yargs": "17.6.2"
67
66
  },
68
67
  "devDependencies": {
69
68
  "@jest/globals": "28.1.0",
70
- "@lowdefy/actions-core": "4.0.0-rc.4",
71
- "@lowdefy/actions-pdf-make": "4.0.0-rc.4",
72
- "@lowdefy/blocks-aggrid": "4.0.0-rc.4",
73
- "@lowdefy/blocks-antd": "4.0.0-rc.4",
74
- "@lowdefy/blocks-color-selectors": "4.0.0-rc.4",
75
- "@lowdefy/blocks-echarts": "4.0.0-rc.4",
76
- "@lowdefy/blocks-google-maps": "4.0.0-rc.4",
77
- "@lowdefy/blocks-markdown": "4.0.0-rc.4",
78
- "@lowdefy/blocks-qr": "4.0.0-rc.4",
79
- "@lowdefy/connection-axios-http": "4.0.0-rc.4",
80
- "@lowdefy/connection-elasticsearch": "4.0.0-rc.4",
81
- "@lowdefy/connection-google-sheets": "4.0.0-rc.4",
82
- "@lowdefy/connection-knex": "4.0.0-rc.4",
83
- "@lowdefy/connection-mongodb": "4.0.0-rc.4",
84
- "@lowdefy/connection-redis": "4.0.0-rc.4",
85
- "@lowdefy/connection-sendgrid": "4.0.0-rc.4",
86
- "@lowdefy/connection-stripe": "4.0.0-rc.4",
87
- "@lowdefy/operators-change-case": "4.0.0-rc.4",
88
- "@lowdefy/operators-diff": "4.0.0-rc.4",
89
- "@lowdefy/operators-moment": "4.0.0-rc.4",
90
- "@lowdefy/operators-mql": "4.0.0-rc.4",
91
- "@lowdefy/operators-nunjucks": "4.0.0-rc.4",
92
- "@lowdefy/operators-uuid": "4.0.0-rc.4",
93
- "@lowdefy/operators-yaml": "4.0.0-rc.4",
94
- "@lowdefy/plugin-auth0": "4.0.0-rc.4",
95
- "@lowdefy/plugin-aws": "4.0.0-rc.4",
96
- "@lowdefy/plugin-csv": "4.0.0-rc.4",
97
- "@lowdefy/plugin-next-auth": "4.0.0-rc.4",
69
+ "@lowdefy/actions-core": "4.0.0-rc.6",
70
+ "@lowdefy/actions-pdf-make": "4.0.0-rc.6",
71
+ "@lowdefy/blocks-aggrid": "4.0.0-rc.6",
72
+ "@lowdefy/blocks-antd": "4.0.0-rc.6",
73
+ "@lowdefy/blocks-color-selectors": "4.0.0-rc.6",
74
+ "@lowdefy/blocks-echarts": "4.0.0-rc.6",
75
+ "@lowdefy/blocks-google-maps": "4.0.0-rc.6",
76
+ "@lowdefy/blocks-markdown": "4.0.0-rc.6",
77
+ "@lowdefy/blocks-qr": "4.0.0-rc.6",
78
+ "@lowdefy/connection-axios-http": "4.0.0-rc.6",
79
+ "@lowdefy/connection-elasticsearch": "4.0.0-rc.6",
80
+ "@lowdefy/connection-google-sheets": "4.0.0-rc.6",
81
+ "@lowdefy/connection-knex": "4.0.0-rc.6",
82
+ "@lowdefy/connection-mongodb": "4.0.0-rc.6",
83
+ "@lowdefy/connection-redis": "4.0.0-rc.6",
84
+ "@lowdefy/connection-sendgrid": "4.0.0-rc.6",
85
+ "@lowdefy/connection-stripe": "4.0.0-rc.6",
86
+ "@lowdefy/operators-change-case": "4.0.0-rc.6",
87
+ "@lowdefy/operators-diff": "4.0.0-rc.6",
88
+ "@lowdefy/operators-moment": "4.0.0-rc.6",
89
+ "@lowdefy/operators-mql": "4.0.0-rc.6",
90
+ "@lowdefy/operators-nunjucks": "4.0.0-rc.6",
91
+ "@lowdefy/operators-uuid": "4.0.0-rc.6",
92
+ "@lowdefy/operators-yaml": "4.0.0-rc.6",
93
+ "@lowdefy/plugin-auth0": "4.0.0-rc.6",
94
+ "@lowdefy/plugin-aws": "4.0.0-rc.6",
95
+ "@lowdefy/plugin-csv": "4.0.0-rc.6",
96
+ "@lowdefy/plugin-next-auth": "4.0.0-rc.6",
98
97
  "@swc/cli": "0.1.59",
99
98
  "@swc/core": "1.3.24",
100
99
  "@swc/jest": "0.2.24",
@@ -103,5 +102,5 @@
103
102
  "publishConfig": {
104
103
  "access": "public"
105
104
  },
106
- "gitHead": "64ac69e424c881ee15a5333b75bd22156bd58ccb"
105
+ "gitHead": "8238145a9eb26c6f3dc48661ab6eca6e3aca4f83"
107
106
  }